PageSourceSearch

https://www.metadata2go.com/build/sat_feature_v2.0f57b6d3.js

js metadata2go.com collected 2026-09-24 18:20:45 UTC 67,307 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]="aeaa493d-9eb8-50e1-a688-13b97dcb6a57")}catch(e){}}();
3(globalThis.webpackChunksat_monorepo=globalThis.webpackChunksat_monorepo||[]).push([[435341],{349973(e,t,r){var o=r(953751),a=r(571244),l=r(58352),n=r(306218),i=(r(874423),r(120641)),s=r(790033),u=r(750953),d=r(400588),c=r(846990),v=r(236345),p=r(411048),m=r(202525),f=r(606265),k=r(687192),b=r(915276),h=r(575647),g=r(190134),x=r(756825),w=r(489985),y=r(693576),C=r(802800),L=r(365820);const E=["onClick"],_=["onClick"],R={class:"mt-2 text-xs text-neutral-500 dark:text-neutral-400"},F={class:"flex items-center justify-center gap-4 mt-4 text-xs text-neutral-500 dark:text-neutral-400 flex-wrap"},M=["onClick"],B={key:0,class:"flex justify-center mt-3"},P={class:"flex items-center justify-between"},W={class:"text-xs font-medium text-neutral-500 dark:text-neutral-400 uppercase tracking-wider"},T=["data-testid","data-file-source","data-file-uploaded","data-file-has-thumbnail"],I={key:0,class:"absolute bottom-0 left-0 right-0 h-0.5 bg-neutral-100 dark:bg-neutral-700"},X={class:"flex items-center gap-3 p-3 min-h-14"},U={class:"w-10 h-10 rounded-lg overflow-hidden shrink-0 bg-neutral-100 dark:bg-neutral-800 flex items-center justify-center relative"},j=["src","alt","onError"],A={key:1,class:"w-5 h-5 text-neutral-400 dark:text-neutral-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},S={key:2,class:"absolute inset-0 flex items-center justify-center bg-black/10 dark:bg-black/30"},O={key:3,class:"absolute bottom-0 right-0 w-4 h-4 bg-green-500 rounded-tl-md flex items-center justify-center"},z={key:4,class:"absolute inset-0 flex items-center justify-center bg-red-500/20 dark:bg-red-500/30 rounded-lg"},H={class:"flex-1 min-w-0"},$={class:"text-sm font-medium text-neutral-800 dark:text-neutral-100 truncate leading-tight"},Q={class:"flex items-center gap-1.5 mt-1 text-xs leading-tight"},V={class:"text-neutral-500 dark:text-neutral-400 tabular-nums"},K={class:"text-blue-600 dark:text-blue-300 tabular-nums"},N={class:"text-neutral-500 dark:text-neutral-400 tabular-nums"},D={class:"text-blue-600 dark:text-blue-300"},Z={"data-testid":"feature-file-status-ready",class:"text-green-600 dark:text-green-400 font-medium"},G={class:"text-red-500 dark:text-red-400"},J={key:0,class:"mt-0.5 text-xs text-red-500 dark:text-red-400 leading-snug"},Y=["data-testid","onClick"],q={key:1,class:"shrink-0 text-sm font-semibold text-blue-600 dark:text-blue-300 tabular-nums w-10 text-right"},ee=["data-testid","onClick"],te=(0,i.pM)({__name:"FeatureUploader",props:{exampleFile:{},showUrlInput:{type:Boolean},compact:{type:Boolean},hideUploadZone:{type:Boolean}},setup(e){const t=e,{t:r}=(0,y.B)(),{thumbnailsBlocked:a,reportThumbnailFailure:l}=(0,L.N)(),{track:n}=(0,C.f)(),v=(0,d.F)(),{showValidationError:m,showFileLimitError:f,showFileTooLargeError:k,showJobSizeLimitError:b}=(0,p.m)(),h=(0,u.KR)(null),te=(0,i.EW)(()=>v.files.value),re=(0,i.EW)(()=>t.compact||te.value.length>0);function oe(e){return e>=1073741824?`${(e/1073741824).toFixed(1)} GB`:e>=1048576?`${(e/1048576).toFixed(0)} MB`:`${(e/1024).toFixed(0)} KB`}async function ae(e){const t=v.config.value?.singleFile;if(t&&v.files.value.length>0)return void m("Single file only","This tool accepts one file at a time.",{upsell:!1});const r=[];for(let o=0;o<e.length;o++){const a=e[o],l=t?1:void 0;if(l&&v.files.value.length>=l)break;const n=v.addFile(a);r.push({file:a,entry:n})}if(!r.length)return;await c.W.ensureConstraints();const o=v.maxFileSize.value,a=v.maxInputCount.value,l=v.maxJobSize.value;for(const{file:e,entry:t}of r)if(o&&e.size>o)v.removeFile(t.id),k(e.name,oe(e.size),oe(o));else{if(a&&v.files.value.filter(e=>!e.error).length>a){v.removeFile(t.id),f(a);break}if(l){if(v.files.value.reduce((e,t)=>e+t.size,0)>l){v.removeFile(t.id),b(e.name,oe(l));continue}}c.W.uploadFile(t)}}async function le(e){await c.W.addRemoteInput(e,void 0,"remote")}async function ne(e){await c.W.ensureConstraints();for(const t of e){if(!c.W.isFileCountAllowed()){f(v.maxInputCount.value??0);break}"dropbox"===t.provider||"onedrive"===t.provider?await c.W.addRemoteInput(t.source,t.name,t.provider):"gdrive"===t.provider&&await c.W.addGoogleDriveInput(t.source,t.name,t.contentType,t.token||"")}}async function ie(){await c.W.clearAllFiles()}
3function se(){t.exampleFile&&(n("conversion:sample_file"),c.W.addSampleFile(t.exampleFile))}function ue(e){if(0===e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["B","KB","MB","GB"][t]}`}function de(e){if(e<=0)return"";const t=Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t);return`${r<10?r.toFixed(1):Math.round(r)} ${["B","KB","MB","GB"][t]}/s`}function ce(e){if(e<0)return"";if(e<60)return`${Math.ceil(e)}s left`;return`${Math.floor(e/60)}m ${Math.ceil(e%60)}s left`}function ve(e){return"upload"!==e}function pe(e){return{upload:"Upload",remote:"URL",dropbox:"Dropbox",gdrive:"Google Drive",onedrive:"OneDrive",sample:"Sample"}[e]}return(t,n)=>((0,i.uX)(),(0,i.CE)("div",null,[e.hideUploadZone?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.Wv)(g.A,{key:0,ref_key:"uploadZoneRef",ref:h,accept:"*/*",multiple:!0,"show-url":e.showUrlInput??!0,"show-cloud-storage":!0,"enable-paste":!0,compact:re.value,onFilesAdded:ae,onUrlSubmitted:le,onCloudFilesSelected:ne},{default:(0,i.k6)(t=>{let{isDragging:a,triggerFileInput:l,toggleUrlMode:d,isUrlMode:c,handleUrlSubmitted:p,handleCloudFilesSelected:m,showCloudStorage:f}=t;return[(0,i.Lk)("div",{"data-testid":"upload-zone",class:(0,s.C4)(["relative rounded-2xl border-2 border-dashed transition-all duration-300",[re.value?"py-4 px-4":"py-12 sm:py-16 px-6",a?"border-blue-500 bg-blue-50 dark:bg-blue-500/10":"border-neutral-300 dark:border-neutral-600 hover:border-blue-400 dark:hover:border-blue-500"]])},[(0,i.Lk)("div",{class:"flex flex-col items-center text-center",onClick:l},[(0,i.Lk)("div",{class:(0,s.C4)(["mb-3 rounded-xl bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center transition-all cursor-pointer",re.value?"w-8 h-8":"w-12 h-12"])},[((0,i.uX)(),(0,i.CE)("svg",{class:(0,s.C4)([re.value?"w-5 h-5":"w-7 h-7","text-blue-600 dark:text-blue-400"]),fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[...n[1]||(n[1]=[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"},null,-1)])],2))],2),(0,i.Lk)("button",{class:(0,s.C4)(["inline-flex items-center gap-2 font-medium rounded-lg shadow-sm transition-all cursor-pointer",re.value?"px-4 py-2 text-sm bg-blue-600 hover:bg-blue-700 text-white":"px-6 py-3 text-base bg-blue-600 hover:bg-blue-700 text-white hover:shadow-md"]),onClick:(0,o.D$)(l,["stop"])},(0,s.v_)((0,u.R1)(r)((0,u.R1)(v).config.value?.uploadLabel||"Upload your file")),11,_),(0,i.Lk)("p",R,(0,s.v_)(a?(0,u.R1)(r)("Drop files here"):(0,u.R1)(r)("or drop, paste, or select from cloud")),1)],8,E),(0,i.Lk)("div",F,[e.showUrlInput?((0,i.uX)(),(0,i.CE)("button",{key:0,"data-testid":"url-upload-toggle",class:"inline-flex items-center gap-1 hover:text-blue-600 dark:hover:text-blue-400 transition-colors cursor-pointer",onClick:(0,o.D$)(d,["stop"])},[n[2]||(n[2]=(0,i.Lk)("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(r)("Paste URL")),1)],8,M)):(0,i.Q3)("v-if",!0),e.exampleFile?((0,i.uX)(),(0,i.CE)("button",{key:1,"data-testid":"try-sample-button",class:"inline-flex items-center gap-1 hover:text-blue-600 dark:hover:text-blue-400 transition-colors cursor-pointer",onClick:(0,o.D$)(se,["stop"])},[n[3]||(n[3]=(0,i.Lk)("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25a2.25 2.25 0 0 0-2.25-2.25H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(r)("Try sample")),1)])):(0,i.Q3)("v-if",!0)]),f?((0,i.uX)(),(0,i.CE)("div",B,[(0,i.bF)(x.A,{compact:re.value,onFilesSelected:m},null,8,["compact","onFilesSelected"])])):(0,i.Q3)("v-if",!0),c?((0,i.uX)(),(0,i.CE)("div",{key:1,class:"mt-3",onClick:n[0]||(n[0]=(0,o.D$)(()=>{},["stop"]))},[(0,i.bF)(w.A,{"show-close":!0,onUrlSubmitted:p,onClose:d},null,8,["onUrlSubmitted","onClose"])])):(0,i.Q3)("v-if",!0)],2)]}),_:1},8,["show-url","compact"])),te.value.length>0?((0,i.uX)(),(0,i.CE)("div",{key:1,"data-testid":"feature-file-list",class:(0,s.C4)(e.hideUploadZone?"space-y-2":"mt-3 space-y-2")},[(0,i.Lk)("div",P,[(0,i.Lk)("p",W,(0,s.v_)(te.value.length)+" "+(0,s.v_)(1===te.value.length?(0,u.R1)(r)("file"):(0,u.R1)(r)("files")),1),(0,i.Lk)("button",{"data-testid":"feature-file-clear-all",class:"text-xs font-medium text-neutral-400 hover:text-red-500 dark:text-neutral-400 dark:hover:text-red-400 cursor-pointer transition-colors",onClick:ie},(0,s.v_)((0,u.R1)(r)("Clear all")),1)]),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(te.value,e=>{return(0,i.uX)(),(0,i.CE)("div",{key:e.id,"data-testid":`feature-file-row-${e.id}`,"data-file-source":e.source,"data-file-uploaded":e.uploaded?"true":"false","data-file-has-thumbnail":e.previewUrl&&!(0,u.R1)(a)?"true":"false",class:(0,s.C4)(["group relative rounded-xl border bg-white dark:bg-white/3 shadow-sm transition-all duration-200 hover:shadow-md overflow-hidden",e.error?"border-red-200 dark:border-red-800/50":e.uploaded?"border-neutral-200 dark:border-white/6":"border-blue-200 dark:border-blue-700/40"])},[e.uploaded||e.error?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("div",I,[(0,i.Lk)("div",{class:"h-full bg-blue-500 transition-all duration-300 ease-out",style:(0,s.Tr)({width:e.uploadProgress+"%"})},null,4)])),(0,i.Lk)("div",X,[(0,i.Lk)("div",U,[e.previewUrl&&!(0,u.R1)(a)?((0,i.uX)(),(0,i.CE)("img",{key:0,src:e.previewUrl,alt:e.name,"data-testid":"uploaded-file-thumbnail",class:(0,s.C4)(["w-full h-full object-cover",e.uploaded?"":"opacity-70"]),onError:t=>(0,u.R1)(l)(e.previewUrl)}
3,null,42,j)):((0,i.uX)(),(0,i.CE)("svg",A,[...n[4]||(n[4]=[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"},null,-1)])])),e.uploaded||e.error?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("div",S,[...n[5]||(n[5]=[(0,i.Lk)("div",{class:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"},null,-1)])])),e.uploaded?((0,i.uX)(),(0,i.CE)("div",O,[...n[6]||(n[6]=[(0,i.Lk)("svg",{class:"w-2.5 h-2.5 text-white",fill:"none",viewBox:"0 0 24 24","stroke-width":"3",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})],-1)])])):(0,i.Q3)("v-if",!0),e.error?((0,i.uX)(),(0,i.CE)("div",z,[...n[7]||(n[7]=[(0,i.Lk)("svg",{class:"w-5 h-5 text-red-500",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})],-1)])])):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("div",H,[(0,i.Lk)("div",$,(0,s.v_)(e.name),1),(0,i.Lk)("div",Q,[(0,i.Lk)("span",{class:(0,s.C4)(["inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-medium",(t=e.source,{upload:"bg-neutral-100 text-neutral-600 dar
3k:bg-neutral-700 dark:text-neutral-300",remote:"bg-purple-50 text-purple-600 dark:bg-purple-900/30 dark:text-purple-300",dropbox:"bg-blue-50 text-blue-600 dark:bg-blue-900/30 dark:text-blue-300",gdrive:"bg-amber-50 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",onedrive:"bg-sky-50 text-sky-600 dark:bg-sky-900/30 dark:text-sky-300",sample:"bg-green-50 text-green-600 dark:bg-green-900/30 dark:text-green-300"}[t])])},(0,s.v_)(pe(e.source)),3),!(e.size>0)||e.uploaded&&ve(e.source)?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[n[8]||(n[8]=(0,i.Lk)("span",{class:"text-neutral-300 dark:text-neutral-500"},"·",-1)),(0,i.Lk)("span",V,(0,s.v_)(ue(e.size)),1)],64)),!e.uploaded&&!e.error&&e.uploadSpeed>0?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[n[9]||(n[9]=(0,i.Lk)("span",{class:"text-neutral-300 dark:text-neutral-500"},"·",-1)),(0,i.Lk)("span",K,(0,s.v_)(de(e.uploadSpeed)),1)],64)):(0,i.Q3)("v-if",!0),!e.uploaded&&!e.error&&e.timeRemaining>=0?((0,i.uX)(),(0,i.CE)(i.FK,{key:2},[n[10]||(n[10]=(0,i.Lk)("span",{class:"text-neutral-300 dark:text-neutral-500"},"·",-1)),(0,i.Lk)("span",N,(0,s.v_)(ce(e.timeRemaining)),1)],64)):(0,i.Q3)("v-if",!0),e.uploaded||e.error||0!==e.uploadSpeed?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)(i.FK,{key:3},[n[11]||(n[11]=(0,i.Lk)("span",{class:"text-neutral-300 dark:text-neutral-500"},"·",-1)),(0,i.Lk)("span",D,(0,s.v_)((0,u.R1)(r)("Uploading…")),1)],64)),e.uploaded?((0,i.uX)(),(0,i.CE)(i.FK,{key:4},[n[12]||(n[12]=(0,i.Lk)("span",{class:"text-neutral-300 dark:text-neutral-500"},"·",-1)),(0,i.Lk)("span",Z,(0,s.v_)((0,u.R1)(r)("Ready")),1)],64)):(0,i.Q3)("v-if",!0),e.error?((0,i.uX)(),(0,i.CE)(i.FK,{key:5},[n[13]||(n[13]=(0,i.Lk)("span",{class:"text-neutral-300 dark:text-neutral-500"},"·",-1)),(0,i.Lk)("span",G,(0,s.v_)((0,u.R1)(r)("Upload failed")),1)],64)):(0,i.Q3)("v-if",!0)]),e.error?((0,i.uX)(),(0,i.CE)("p",J,(0,s.v_)(e.error),1)):(0,i.Q3)("v-if",!0)]),e.error&&e.isRetryable?((0,i.uX)(),(0,i.CE)("button",{key:0,"data-testid":`feature-file-retry-${e.id}`,class:"shrink-0 flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-blue-50 hover:bg-blue-100 dark:bg-blue-500/10 dark:hover:bg-blue-500/20 text-blue-600 dark:text-blue-400 transition-all cursor-pointer",onClick:t=>async function(e){await c.W.retryUpload(e)}(e.id)},[n[14]||(n[14]=(0,i.Lk)("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.992 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(r)("Retry")),1)],8,Y)):(0,i.Q3)("v-if",!0),e.uploaded||e.error?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("div",q,(0,s.v_)(e.uploadProgress)+"% ",1)),(0,i.Lk)("button",{"data-testid":`feature-file-remove-${e.id}`,class:"shrink-0 p-1.5 rounded-lg opacity-0 group-hover:opacity-100 focus:opacity-100 hover:bg-neutral-100 dark:hover:bg-white/10 text-neutral-400 hover:text-red-500 dark:text-neutral-400 dark:hover:text-red-400 transition-all cursor-pointer",onClick:t=>async function(e){await c.W.removeFile(e)}(e.id)},[...n[15]||(n[15]=[(0,i.Lk)("svg",{class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])],8,ee)])],10,T);var t}),128))],2)):(0,i.Q3)("v-if",!0)]))}}),re={key:0,"data-testid":"settings-panel",class:"rounded-2xl bg-white dark:bg-neutral-800 p-5 shadow-sm border border-neutral-200 dark:border-neutral-700"},oe=(0,i.pM)({__name:"FeatureSettings",props:{appId:{}},setup(e){const t=e,o={"compress-image":()=>r.e(806617).then(r.bind(r,806617)),"resize-image":()=>r.e(189202).then(r.bind(r,189202)),"ai-upscale-image":()=>r.e(221190).then(r.bind(r,221190)),"remove-background":()=>r.e(338413).then(r.bind(r,338413)),"image-restoration":()=>r.e(643012).then(r.bind(r,643012)),"blur-faces":()=>r.e(669114).then(r.bind(r,669114)),"colorize-image":()=>r.e(560683).then(r.bind(r,560683)),"convert-image-to-image":()=>r.e(463336).then(r.bind(r,463336)),"convert-to-image":()=>r.e(463336).then(r.bind(r,463336)),"convert-image-to-document":()=>r.e(463336).then(r.bind(r,463336)),"rotate-image":()=>r.e(960420).then(r.bind(r,960420)),"convert-to-jpg":()=>r.e(694622).then(r.bind(r,694622)),"convert-heic-to-jpg":()=>r.e(47696).then(r.bind(r,47696)),"convert-webp-to-jpg":()=>r.e(745497).then(r.bind(r,745497)),"convert-to-svg":()=>r.e(646701).then(r.bind(r,646701)),"convert-image-to-pdf":()=>r.e(390438).then(r.bind(r,390438)),"convert-png-to-ico":()=>r.e(532129).then(r.bind(r,532129)),"create-animated-gif":()=>r.e(590481).then(r.bind(r,812862)),"convert-video-to-gif":()=>r.e(801996).then(r.bind(r,801996)),"com.audio2edit.converttomp3":()=>Promise.all([r.e(10504),r.e(801360),r.e(399704)]).then(r.bind(r,954423)),"com.audio2edit.converttoogg":()=>Promise.all([r.e(10504),r.e(801360),r.e(730103)]).then(r.bind(r,274716)),"com.audio2edit.converttoaudio":()=>Promise.all([r.e(10504),r.e(801360),r.e(302350)]).then(r.bind(r,717421)),"com.audio2edit.extractaudio":()=>
3Promise.all([r.e(10504),r.e(801360),r.e(863128)]).then(r.bind(r,390327)),"com.audio2edit.normalizeaudio":()=>Promise.all([r.e(10504),r.e(801360),r.e(777306)]).then(r.bind(r,129129)),"com.audio2edit.volumebooster":()=>Promise.all([r.e(10504),r.e(801360),r.e(138956)]).then(r.bind(r,314555)),"com.audio2edit.trim":()=>Promise.all([r.e(10504),r.e(801360),r.e(977282)]).then(r.bind(r,518017)),"com.audio2edit.stt":()=>Promise.all([r.e(10504),r.e(801360),r.e(653539)]).then(r.bind(r,330392)),"com.audio2edit.tts":()=>Promise.all([r.e(10504),r.e(801360),r.e(654826)]).then(r.bind(r,515705)),"com.ocr2edit.searchable":()=>Promise.all([r.e(199018),r.e(652493)]).then(r.bind(r,652493)),"com.ocr2edit.scanneddoctotext":()=>Promise.all([r.e(199018),r.e(301874)]).then(r.bind(r,301874)),"com.ocr2edit.scannedimagetotext":()=>Promise.all([r.e(199018),r.e(301874)]).then(r.bind(r,301874)),"com.ocr2edit.imagetotext":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(293937)]).then(r.bind(r,883886)),"com.ocr2edit.scannedpdftotext":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(32785)]).then(r.bind(r,8974)),"com.ocr2edit.converttotxt":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(277966)]).then(r.bind(r,871277)),"com.ocr2edit.converttopdf":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(283660)]).then(r.bind(r,466619)),"com.ocr2edit.converttoword":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(719757)]).then(r.bind(r,155066)),"com.ocr2edit.converttopowerpoint":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(253297)]).then(r.bind(r,686190)),"com.ocr2edit.converttoexcel":()=>Promise.all([r.e(10504),r.e(801360),r.e(409388)]).then(r.bind(r,937307)),"com.video2edit.compressvideo":()=>Promise.all([r.e(10504),r.e(801360),r.e(872608)]).then(r.bind(r,413807)),"com.video2edit.resizevideo":()=>Promise.all([r.e(10504),r.e(801360),r.e(551695)]).then(r.bind(r,546564)),"com.video2edit.cut":()=>Promise.all([r.e(10504),r.e(801360),r.e(954371)]).then(r.bind(r,189368)),"com.video2edit.rotatevideo":()=>Promise.all([r.e(10504),r.e(801360),r.e(594261)]).then(r.bind(r,825490)),"com.video2edit.converttoimage":()=>Promise.all([r.e(10504),r.e(801360),r.e(279843)]).then(r.bind(r,92824)),"com.video2edit.audioeditor":()=>Promise.all([r.e(10504),r.e(801360),r.e(217306)]).then(r.bind(r,318633)),"com.video2edit.normalizeaudio":()=>Promise.all([r.e(10504),r.e(801360),r.e(725714)]).then(r.bind(r,336593)),"com.video2edit.extracttracks":()=>Promise.all([r.e(10504),r.e(801360),r.e(313287)]).then(r.bind(r,342892)),"com.video2edit.converttomp4":()=>Promise.all([r.e(10504),r.e(801360),r.e(476217),r.e(165525)]).then(r.bind(r,476217)),"com.video2edit.converttowebm":()=>Promise.all([r.e(10504),r.e(801360),r.e(476217),r.e(165525)]).then(r.bind(r,476217)),"com.video2edit.converttomov":()=>Promise.all([r.e(10504),r.e(801360),r.e(476217),r.e(165525)]).then(r.bind(r,476217)),"com.video2edit.converttovideo":()=>Promise.all([r.e(10504),r.e(801360),r.e(476217),r.e(165525)]).then(r.bind(r,476217)),"convert-from-video":()=>Promise.all([r.e(10504),r.e(801360),r.e(476217),r.e(645692)]).then(r.bind(r,852971)),"com.video2edit.converttomp3":()=>Promise.all([r.e(10504),r.e(801360),r.e(399704)]).then(r.bind(r,954423)),"com.video2edit.volumebooster":()=>Promise.all([r.e(10504),r.e(801360),r.e(138956)]).then(r.bind(r,314555)),"com.video2edit.converttogif":()=>r.e(801996).then(r.bind(r,801996)),"com.compress2go.compressimage":()=>r.e(806617).then(r.bind(r,806617)),"com.compress2go.compressvideo":()=>Promise.all([r.e(10504),r.e(801360),r.e(872608)]).then(r.bind(r,413807)),"com.compress2go.compresspdf":()=>Promise.all([r.e(10504),r.e(801360),r.e(160100)]).then(r.bind(r,164419)),"com.compress2go.compresstojpg":()=>Promise.all([r.e(10504),r.e(801360),r.e(543853)]).then(r.bind(r,196698)),"com.compress2go.compresstopng":()=>Promise.all([r.e(10504),r.e(801360),r.e(543853)]).then(r.bind(r,196698)),"com.compress2go.zip":()=>Promise.all([r.e(10504),r.e(801360),r.e(930796)]).then(r.bind(r,75675)),"com.compress2go.archive":()=>Promise.all([r.e(10504),r.e(801360),r.e(930796)]).then(r.bind(r,75675)),"com.metadata2go.analyzeimage":()=>Promise.all([r.e(10504),r.e(801360),r.e(926188)]).then(r.bind(r,405851)),"com.metadata2go.deletepdfassets":()=>Promise.all([r.e(10504),r.e(801360),r.e(989475)]).then(r.bind(r,132440)),"com.metadata2go.videoextractor":()=>Promise.all([r.e(10504),r.e(801360),r.e(259012)]).then(r.bind(r,114211)),"com.ebook2edit.converttoepub":()=>Promise.all([r.e(10504),r.e(801360),r.e(392386)]).then(r.bind(r,544385)),"com.ebook2edit.converttomobi":()=>Promise.all([r.e(10504),r.e(801360),r.e(546023)]).then(r.bind(r,709388)),"com.ebook2edit.converttopdf":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(763602)]).then(r.bind(r,981585)),"com.ebook2edit.converttopdfebook":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(172027)]).then(r.bind(r,903584)),"com.ebook2edit.converttoebook":()=>Promise.all([r.e(10504),r.e(801360),r.e(664981)]).then(r.bind(r,767186)),"com.ebook2edit.kindle":()=>Promise.all([r.e(10504),r.e(801360),r.e(7707)]).then(r.bind(r,216384)),"convert-from-ebook":()=>Promise.all([r.e(10504),r.e(801360),r.e(199018),r.e(371666)]).then(r.bind(r,40529))},a=(0,i.EW)(()=>{const e=o[t.appId];return e?(0,i.$V)(e):null});return(e,t)=>a.value?((0,i.uX)(),(0,i.CE)("div",re,[((0,i.uX)(),(0,i.Wv)((0,i.$y)(a.value)))])):(0,i.Q3)("v-if",!0)}}),ae={class:"flex flex-col gap-3"},le=["disabled"],ne={key:0,"data-testid":"error-display",class:"flex items-start gap-2 p-3 rounded-xl bg-red-50 dark:bg-red-500/10 border border-red-200 dark:border-red-500/20"},ie={class:"text-sm text-red-700 dark:text-red-300"},se=["data-file-count"],ue=(0,i.pM)({__name:"FeatureActionBar",props:{compact:{type:Boolean,default:!1}},setup(e){const t=e,{t:r}=(0,y.B)(),{track:o}=(0,C.f)(),a=(0,d.F)(),l=(0,i.EW)(()=>a.fileCount.value),n=(0,i.EW)(()=>a.isConverting.value),v=(0,i.EW)(()=>a.isWaitingForUploads.value),p=(0,i.EW)(()=>a.errorMessage.value),m=(0,i.EW)(()=>a.files.value.length>0&&!n.value),f=(0,i.EW)(()=>a.actionLabel.value),k=(0,i.EW)(()=>n.value?"bg-neutral-200 dark:bg-white/10 text-neutral-500 dark:text-neutral-400 cursor-wait":m.value?"bg-blue-600 hover:bg-blue-700 text-white shadow-sm hover:shadow-md cursor-pointer":"bg-neutral-200 dark:bg-white/10 text-neutral-400 dark:text-neutral-400 cursor-not-allowed");function b(){m.value&&(o("conversion:start_click",{file_count:String(l.value)}),c.W.runConversion())}return(e,o)=>((0,i.uX)(),(0,i.CE)("div",ae,[(0,i.Lk)("button",{"data-testid":"action-button",class:(0,s.C4)(["flex items-center justify-center gap-2 px-6 py-3 text-sm font-medium rounded-lg transition-all duration-200",[k.value,t.compact?"w-auto":"w-full"]]),disabled:!m.value,onClick:b},[n.value?v.value?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[o[1]||(o[1]=(0,i.Lk)("svg",{class:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24"},[(0,i.Lk)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,i.Lk)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(r)("Waiting for uploads…")),1)],64)):((0,i.uX)(),(0,i.CE)(i.FK,{key:2},[o[2]||(o[2]=(0,i.Lk)("svg",{class:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24"},[(0,i.Lk)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,i.Lk)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(r)("Processing...")),1)],64)):((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[o[0]||(o[0]=(0,i.Lk)("svg",{class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})],-1)),(0,i.eW)(" "+(0,s.v_)(f.value)+" "+(0,s.v_)((0,u.R1)(r)("Now")),1)],64))],10,le),p.value?((0,i.uX)(),(0,i.CE)("div",ne,[o[3]||(o[3]=(0,i.Lk)("svg",{class:"w-4 h-4 text-red-500 shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})],-1)),(0,i.Lk)("p",ie,(0,s.v_)(p.value),1)])):(0,i.Q3)("v-if",!0),l.value>0&&!n.value?((0,i.uX)(),(0,i.CE)("p",{key:1,"data-testid":"feature-file-count","data-file-count":l.value,class:"text-xs text-center text-neutral-400 dark:text-neutral-400"},(0,s.v_)(l.value)+" "+(0,s.v_)(1===l.value?(0,u.R1)(r)("file"):(0,u.R1)(r)("files"))+" "+(0,s.v_)((0,u.R1)(r)("ready")),9,se)):(0,i.Q3)("v-if",!0)]))}});var de=r(524888),ce=r(352664),ve=r(86010),pe=r(946419),me=r(961341),fe=r(960082),ke=r(330247),be=r(368659),he=r(856233),ge=r(341344),xe=r(667650),we=r(848790);const ye={"data-testid":"result-container",class:"space-y-6 py-4"},Ce={key:0,class:"flex flex-col items-center text-center space-y-4 py-8"},Le={class:"text-sm text-neutral-500 dark:text-neutral-400"},Ee={class:"flex flex-col items-center text-center space-y-4"},_e={class:"text-xl font-semibold text-neutral-900 dark:text-white"},Re={key:0,class:"mt-1 text-sm text-neutral-500 dark:text-neutral-400"}
3,Fe={key:1,class:"text-xs text-neutral-400 dark:text-neutral-400 mt-0.5"},Me={class:"flex flex-col items-center gap-3"},Be={class:"flex"},Pe=["href","download"],We=["href"],Te={class:"flex flex-col md:flex-row gap-4"},Ie={class:"flex-1 min-w-0"},Xe={class:"w-full md:w-80 shrink-0"},Ue={class:"rounded-xl bg-white dark:bg-neutral-800 ring-1 ring-neutral-200 dark:ring-neutral-700 p-4"},je={class:"flex items-start gap-3 mb-4"},Ae={class:"text-sm font-semibold text-neutral-800 dark:text-neutral-200"},Se={class:"mt-1 text-xs text-neutral-500 dark:text-neutral-400"},Oe={class:"flex flex-col gap-2"},ze=(0,i.pM)({__name:"FeatureResultSimple",emits:["reset"],setup(e){const{t}=(0,y.B)(),{track:r}=(0,C.f)(),o=(0,ge.P)(),a=(0,we.O)(),n=(0,d.F)(),c=(0,i.EW)(()=>n.conversionResult.value),v=(0,i.EW)(()=>n.config.value),p=(0,i.EW)(()=>n.actionLabel.value),m=(0,i.EW)(()=>ke.X.isCloudStorageEnabled()),f=(0,u.KR)(!1);let k=null;const b=(0,i.EW)(()=>c.value?.isWorkflow&&c.value.jobId?`/workspace/canvas/${c.value.jobId}?mode=files&panel=get-started`:null),h=(0,i.EW)(()=>c.value?c.value.primaryOutput?.uri?c.value.primaryOutput.uri:c.value.downloadUrls.length>0?c.value.downloadUrls[0]:c.value.files.length>0?c.value.files[0].uri:"":""),g=(0,i.EW)(()=>!!h.value),x=(0,i.EW)(()=>c.value?c.value.primaryOutput?.filename?c.value.primaryOutput.filename:c.value.files.length>0?c.value.files[0].filename:"":""),w=(0,i.EW)(()=>{const e=c.value?.primaryOutput?.size??c.value?.files[0]?.size;return e?e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`:""});(0,i.sV)(async()=>{if(!c.value)return;const e=c.value.isWorkflow?"rw":"rj";history.replaceState(null,"",`${window.location.pathname}${window.location.search}#${e}=${c.value.jobId}`),c.value.isWorkflow&&!h.value&&await async function(){if(!c.value)return;const e=c.value.jobId;f.value=!0;const t=async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{const o=await me.WorkflowService.get(e,"workspace"),a=o.workflow??o,i=a.file_groups??[];let s=null;for(const e of i){const t=e.versions??[],r=t.length>1?t[t.length-1]:null;if(r&&r.version>1){s={uri:r.uri,filename:r.filename,size:r.size};break}}if(s){let e,t;for(const t of a.file_groups??[]){const r=t.versions?.[t.versions.length-1];if(r?.source_job_id&&r.version>1){e=r.source_job_id;break}}if(e)try{const r=await ce.b.get(e);"number"!=typeof r&&(t=r.sat?.download_password,t&&fe.k.isDownloadPasswordEnabled()&&(await pe.a.init(),pe.a.setPassword(e,t)))}catch(t){l.vF.warn("Failed to fetch source job for download password",{sourceJobId:e,error:t})}return n.setResult({...c.value,files:[{filename:s.filename,extension:s.filename.split(".").pop()||"",uri:s.uri,size:s.size}],primaryOutput:{uri:s.uri,renderUri:s.uri,filename:s.filename,size:s.size},downloadPassword:t}),void(f.value=!1)}if((a.file_groups??[]).every(e=>"failed"===e.status))return void(f.value=!1);if(r<60){const e=Math.min(2e3*Math.pow(1.5,r),15e3);k=setTimeout(()=>t(r+1),e)}else f.value=!1}catch(e){l.vF.error("Failed to poll workflow for simple result",e),r<60?k=setTimeout(()=>t(r+1),5e3):f.value=!1}};await t()}()}),(0,i.xo)(()=>{k&&(clearTimeout(k),k=null)});const L=["jpg","jpeg","png","gif","webp","svg","bmp","ico","tiff","tif","avif"];function E(){const e=(x.value||"").split(".").pop()?.toLowerCase()||"";return L.includes(e)&&h.value?h.value:null}function _(e){if(e.preventDefault(),!h.value)return;r("result:download",{type:"single",source:"feature_page"});const t=c.value?.downloadPassword;t&&pe.a.setFallbackCookie(t),o.downloadWithToast(h.value,x.value||"download",{thumbnailUri:E()}),window.location.href=h.value}async function R(e){if("zip"===e)return;r("result:cloud_upload",{provider:e,source:"feature_page"});const t=h.value;if(!t)return;const o={id:c.value?.jobId||"primary",filename:x.value||"download",extension:(x.value||"").split(".").pop()||"",size:c.value?.primaryOutput?.size??0,uri:c.value?.primaryOutput?.renderUri??"",downloadUri:t,status:"complete"};await a.uploadTo(e,[o])}
3function F(e){r("conversion:social_share",{provider:e});const t=window.location.href;let o="";switch(e){case"facebook":o=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(t)}`;break;case"twitter":o=`https://twitter.com/intent/tweet?url=${encodeURIComponent(t)}&text=${encodeURIComponent("Check out this free online tool!")}`;break;case"linkedin":o=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(t)}`}o&&window.open(o,"popup","width=600,height=600")}async function M(e){try{await ve.n.submitFeedback({rating:e.rating,feedback:e.comment,operation:v.value?.operation??"",jobId:c.value?.jobId,origin:"feature_page_simple"})}catch(e){l.vF.error("Failed to submit feedback",e)}}return(e,o)=>((0,i.uX)(),(0,i.CE)("div",ye,[f.value?((0,i.uX)(),(0,i.CE)("div",Ce,[o[5]||(o[5]=(0,i.Lk)("div",{class:"w-16 h-16 rounded-full border-4 border-blue-200 dark:border-blue-800 border-t-blue-600 dark:border-t-blue-400 animate-spin"},null,-1)),(0,i.Lk)("p",Le,(0,s.v_)((0,u.R1)(t)("Processing your file…")),1)])):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[(0,i.bF)(xe.A),(0,i.Lk)("div",Ee,[o[6]||(o[6]=(0,i.Lk)("div",{class:"w-24 h-24 rounded-full bg-green-100 dark:bg-green-500/15 flex items-center justify-center"},[(0,i.Lk)("svg",{class:"w-12 h-12 text-green-500 dark:text-green-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])],-1)),(0,i.Lk)("div",null,[(0,i.Lk)("h2",_e,(0,s.v_)((0,u.R1)(t)("%action% complete!",{"%action%":p.value})),1),x.value?((0,i.uX)(),(0,i.CE)("p",Re,(0,s.v_)(x.value),1)):(0,i.Q3)("v-if",!0),w.value?((0,i.uX)(),(0,i.CE)("p",Fe,(0,s.v_)(w.value),1)):(0,i.Q3)("v-if",!0)])]),(0,i.Lk)("div",Me,[(0,i.Lk)("div",Be,[(0,i.Lk)("a",{href:h.value,download:x.value,"data-testid":"download-button",class:(0,s.C4)(["inline-flex items-center justify-center gap-2.5 px-10 py-4 bg-blue-600 hover:bg-blue-700 text-white font-semibold shadow-sm transition-colors cursor-pointer text-lg",[m.value?"rounded-l-xl":"rounded-xl",g.value?"":"opacity-50 pointer-events-none"]]),onClick:_},[o[7]||(o[7]=(0,i.Lk)("svg",{class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(t)("Download")),1)],10,Pe),m.value?((0,i.uX)(),(0,i.Wv)(he.A,{key:0,"trigger-class":"px-3 py-4 rounded-r-xl border-l border-blue-700 dark:border-blue-600 bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600","show-zip-option":!1,"dropdown-position":"left",onSelect:R})):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("button",{class:"text-sm text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300 transition-colors cursor-pointer",onClick:o[0]||(o[0]=t=>e.$emit("reset"))},(0,s.v_)((0,u.R1)(t)("%action% another file",{"%action%":p.value})),1),b.value?((0,i.uX)(),(0,i.CE)("a",{key:0,href:b.value,class:"text-sm text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors cursor-pointer",onClick:o[1]||(o[1]=e=>(0,u.R1)(r)("cta:click",{cta_id:"continue_in_workspace",location:"feature_result"}))},(0,s.v_)((0,u.R1)(t)("Continue in Workspace")),9,We)):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("div",Te,[(0,i.Lk)("div",Ie,[(0,i.bF)(be.A,{onSubmit:M})]),(0,i.Lk)("div",Xe,[(0,i.Lk)("div",Ue,[(0,i.Lk)("div",je,[o[8]||(o[8]=(0,i.Lk)("div",{class:"shrink-0 mt-0.5"},[(0,i.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",fill:"none",class:"h-8 w-8"},[(0,i.Lk)("path",{d:"M49.8403 16.4347C49.8403 8.86524 43.7042 2.72913 36.1361 2.72913C31.5417 2.72913 27.4875 4.99718 25 8.46385C22.5125 4.99718 18.4583 2.72913 13.8653 2.72913C6.29584 2.72913 0.159729 8.86385 0.159729 16.4347C0.159729 17.5069 0.29584 18.5458 0.529173 19.5472C2.43195 31.3708 15.5778 43.8444 25 47.2694C34.4208 43.8444 47.5681 31.3708 49.4681 19.5486C49.7042 18.5472 49.8403 17.5083 49.8403 16.4347Z",fill:"#DD2E44"}),(0,i.Lk)("path",{d:"M47.7042 33.1861L42.393 31.2194L40.4264 25.9083C40.3281 25.642 40.1506 25.4122 39.9178 25.2498C39.6849 25.0875 39.4079 25.0003 39.1241 25.0002C38.8402 25 38.5631 25.0869 38.3301 25.249C38.0971 25.4111 37.9194 25.6407 37.8208 25.9069L35.8542 31.2181L30.543 33.1847C30.2774 33.2837 30.0483 33.4616 29.8866 33.6944C29.7249 33.9273 29.6382 34.204 29.6382 34.4875C29.6382 34.771 29.7249 35.0477 29.8866 35.2806C30.0483 35.5134 30.2774 35.6913 30.543 35.7903L35.8542 37.7569L37.8208 43.0681C37.9
3192 43.3343 38.0968 43.564 38.3298 43.7263C38.5627 43.8885 38.8397 43.9755 39.1236 43.9755C39.4075 43.9755 39.6845 43.8885 39.9174 43.7263C40.1504 43.564 40.328 43.3343 40.4264 43.0681L42.393 37.7569L47.7042 35.7903C47.9694 35.691 48.1979 35.5132 48.3593 35.2805C48.5207 35.0478 48.6071 34.7714 48.6071 34.4882C48.6071 34.205 48.5207 33.9286 48.3593 33.6959C48.1979 33.4632 47.9694 33.2854 47.7042 33.1861ZM15.7597 10.9625L12.475 9.74723L11.2597 6.4625C11.1613 6.19624 10.9837 5.96652 10.7508 5.80428C10.5178 5.64203 10.2408 5.55505 9.95693 5.55505C9.67307 5.55505 9.39602 5.64203 9.1631 5.80428C8.93017 5.96652 8.75255 6.19624 8.65415 6.4625L7.43749 9.74723L4.15415 10.9625C3.88789 11.0609 3.65817 11.2385 3.49593 11.4714C3.33368 11.7044 3.2467 11.9814 3.2467 12.2653C3.2467 12.5491 3.33368 12.8262 3.49593 13.0591C3.65817 13.292 3.88789 13.4697 4.15415 13.5681L7.43888 14.7833L8.65415 18.0681C8.75255 18.3343 8.93017 18.564 9.1631 18.7263C9.39602 18.8885 9.67307 18.9755 9.95693 18.9755C10.2408 18.9755 10.5178 18.8885 10.7508 18.7263C10.9837 18.564 11.1613 18.3343 11.2597 18.0681L12.475 14.7833L15.7597 13.5681C16.026 13.4697 16.2557 13.292 16.4179 13.0591C16.5802 12.8262 16.6672 12.5491 16.6672 12.2653C16.6672 11.9814 16.5802 11.7044 16.4179 11.4714C16.2557 11.2385 16.026 11.0609 15.7597 10.9625Z",fill:"#FDCB58"})])],-1)),(0,i.Lk)("div",null,[(0,i.Lk)("h3",Ae,(0,s.v_)((0,u.R1)(t)("Want to support us?")),1),(0,i.Lk)("p",Se,(0,s.v_)((0,u.R1)(t)("Let friends in on the secret and share your new favorite tool!")),1)])]),(0,i.Lk)("div",Oe,[(0,i.Lk)("button",{onClick:o[2]||(o[2]=e=>F("facebook")),class:"flex flex-1 items-center justify-center gap-1.5 rounded-lg bg-[#1877F2] px-3 py-2 text-xs font-semibold text-white transition-opacity hover:opacity-90 cursor-pointer"},[o[9]||(o[9]=(0,i.Lk)("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 24 24"},[(0,i.Lk)("path",{d:"M14 13.5H16.5L17.5 9.5H14V7.5C14 6.47 14 5.5 16 5.5H17.5V2.14C17.174 2.097 15.943 2 14.643 2C11.928 2 10 3.657 10 6.7V9.5H7V13.5H10V22H14V13.5Z"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(t)("Facebook")),1)]),(0,i.Lk)("button",{onClick:o[3]||(o[3]=e=>F("twitter")),class:"flex flex-1 items-center justify-center gap-1.5 rounded-lg bg-black px-3 py-2 text-xs font-semibold text-white transition-opacity hover:opacity-90 cursor-pointer"},[o[10]||(o[10]=(0,i.Lk)("svg",{class:"h-3.5 w-3.5",fill:"currentColor",viewBox:"-4 -2 22 22"},[(0,i.Lk)("path",{d:"M14.1747 0.86438H16.9361L10.9048 7.75617L18 17.1356H12.4459L8.09257 11.4485L3.11734 17.1356H0.352021L6.80183 9.76268L0 0.86438H5.69492L9.62582 6.06255L14.1747 0.86438ZM13.2047 15.485H14.734L4.8618 2.42892H3.21904L13.2047 15.485Z"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(t)("Twitter")),1)]),(0,i.Lk)("button",{onClick:o[4]||(o[4]=e=>F("linkedin")),class:"flex flex-1 items-center justify-center gap-1.5 rounded-lg bg-[#0A66C2] px-3 py-2 text-xs font-semibold text-white transition-opacity hover:opacity-90 cursor-pointer"},[o[11]||(o[11]=(0,i.Lk)("svg",{class:"h-4 w-4",fill:"currentColor",viewBox:"0 0 24 24"},[(0,i.Lk)("path",{d:"M6.94 5.00002C6.93974 5.53046 6.72877 6.03906 6.35351 6.41394C5.97825 6.78883 5.46944 6.99929 4.939 6.99902C4.40857 6.99876 3.89997 6.78779 3.52508 6.41253C3.1502 6.03727 2.93974 5.52846 2.94 4.99802C2.94027 4.46759 3.15124 3.95899 3.5265 3.5841C3.90176 3.20922 4.41057 2.99876 4.941 2.99902C5.47144 2.99929 5.98004 3.21026 6.35492 3.58552C6.72981 3.96078 6.94027 4.46959 6.94 5.00002ZM7 8.48002H3V21H7V8.48002ZM13.32 8.48002H9.34V21H13.28V14.43C13.28 10.77 18.05 10.43 18.05 14.43V21H22V13.07C22 6.90002 14.94 7.13002 13.28 10.16L13.32 8.48002Z"})],-1)),(0,i.eW)(" "+(0,s.v_)((0,u.R1)(t)("LinkedIn")),1)])])])])])],64))]))}}),He=ze,$e={key:2,class:"text-center space-y-6"},Qe={class:"text-lg font-semibold text-neutral-900 dark:text-white"}
3,Ve={class:"text-sm text-neutral-600 dark:text-neutral-400 mt-1"},Ke={key:0,class:"text-xs text-neutral-400 dark:text-neutral-500 mt-2"},Ne={class:"flex flex-wrap items-center justify-center gap-3"},De=(0,i.pM)({__name:"FeatureResult",emits:["reset","retry"],setup(e,t){let{emit:n}=t;const c=n,{t:v}=(0,y.B)(),{track:p}=(0,C.f)(),m=l.J6.getInstance().createContextLogger("FeatureResult"),f=(0,d.F)(),k=(0,i.EW)(()=>f.hasResult.value),b=(0,i.EW)(()=>f.hasFailed.value),h=(0,i.EW)(()=>f.conversionResult.value),g=(0,i.EW)(()=>f.errorMessage.value),x=(0,i.EW)(()=>"simple"===f.config.value?.resultMode),w=(0,u.KR)(null);let L=null;function E(){L&&(L.unmount(),L=null,m.debug("Result app unmounted")),history.replaceState(null,"",window.location.pathname+window.location.search)}return(0,i.wB)(k,async e=>{e&&!x.value?(await(0,i.dY)(),await async function(){if(!w.value||!h.value)return;const e=(0,de.m)(a.G);e.$reset(),e.redoUrl=window.location.pathname;const t=h.value.isWorkflow?"w":"j";history.replaceState(null,"",`${window.location.pathname}${window.location.search}#${t}=${h.value.jobId}`);const[{default:l},{createResultRouter:n}]=await Promise.all([Promise.all([r.e(674965),r.e(142230),r.e(760515),r.e(76429),r.e(394095),r.e(306162)]).then(r.bind(r,394095)),Promise.all([r.e(674965),r.e(871223),r.e(837178)]).then(r.bind(r,871223))]),i=n();if(L=(0,o.Ef)(l),L.use(a.G),L.use(i),L.mount(w.value),m.debug("Result app mounted inline"),await new Promise(t=>{const r=()=>{e.isInitialized?t():setTimeout(r,50)};setTimeout(r,50)}),e.isNotFound||e.isUnauthorized)return m.debug("Inline result not accessible, resetting to upload"),E(),void c("reset");const s=h.value.isWorkflow?"rw":"rj";history.replaceState(null,"",`${window.location.pathname}${window.location.search}#${s}=${h.value.jobId}`)}()):E()},{immediate:!0}),(0,i.xo)(()=>{E()}),(e,t)=>k.value&&x.value?((0,i.uX)(),(0,i.Wv)(He,{key:0,onReset:t[0]||(t[0]=()=>{(0,u.R1)(p)("conversion:reset"),c("reset")})})):k.value?((0,i.uX)(),(0,i.CE)("div",{key:1,ref_key:"resultContainer",ref:w},null,512)):b.value?((0,i.uX)(),(0,i.CE)("div",$e,[t[3]||(t[3]=(0,i.Lk)("div",{class:"flex justify-center"},[(0,i.Lk)("div",{class:"w-16 h-16 rounded-full bg-red-100 dark:bg-red-500/15 flex items-center justify-center"},[(0,i.Lk)("svg",{class:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])])],-1)),(0,i.Lk)("div",null,[(0,i.Lk)("p",Qe,(0,s.v_)((0,u.R1)(v)("Something Went Wrong")),1),(0,i.Lk)("p",Ve,(0,s.v_)((0,u.R1)(v)("An unexpected error occurred. You can try again or upload a different file.")),1),g.value?((0,i.uX)(),(0,i.CE)("p",Ke,(0,s.v_)(g.value),1)):(0,i.Q3)("v-if",!0)]),(0,i.Lk)("div",Ne,[(0,i.Lk)("button",{class:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg shadow-sm transition-all cursor-pointer",onClick:t[1]||(t[1]=()=>{(0,u.R1)(p)("conversion:retry_click"),c("retry")})}
3,(0,s.v_)((0,u.R1)(v)("Try Again")),1),(0,i.Lk)("button",{class:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-neutral-300 dark:border-neutral-600 text-neutral-700 dark:text-neutral-300 font-semibold rounded-lg transition-all hover:bg-neutral-100 dark:hover:bg-neutral-700 cursor-pointer",onClick:t[2]||(t[2]=()=>{(0,u.R1)(p)("conversion:reset_click"),c("reset")})},(0,s.v_)((0,u.R1)(v)("Try Another File")),1)])])):(0,i.Q3)("v-if",!0)}});var Ze=r(237631),Ge=r(852671),Je=r(310642),Ye=r(328137);const qe={class:"relative w-full"},et={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-blue-500/10 dark:bg-blue-500/20 backdrop-blur-sm pointer-events-none"},tt={class:"rounded-2xl border-2 border-dashed border-blue-400 bg-white/80 dark:bg-neutral-900/80 px-10 py-8 text-center shadow-lg"},rt={class:"text-sm font-semibold text-blue-700 dark:text-blue-300"},ot={key:"upfront-layout",class:"space-y-5"},at={class:"grid grid-cols-1 lg:grid-cols-12 gap-5"},lt={class:"lg:col-span-8 space-y-4"},nt={key:"upload-only"},it={key:"progress",class:"max-w-xl mx-auto space-y-4"},st={class:"rounded-xl bg-blue-50 dark:bg-blue-500/10 border border-blue-200 dark:border-blue-500/20 p-5"},ut={class:"flex items-start gap-4"},dt={class:"flex-1 min-w-0"},ct={key:"upload-text"},vt={class:"text-sm font-semibold text-blue-800 dark:text-blue-200"},pt={class:"mt-1 text-sm text-blue-700/80 dark:text-blue-300/80"},mt={key:"conv-text"},ft={class:"text-sm font-semibold text-blue-800 dark:text-blue-200"},kt={class:"mt-1 text-sm text-blue-700/80 dark:text-blue-300/80"},bt={key:"split-layout",class:"grid grid-cols-1 lg:grid-cols-12 gap-5 items-start"},ht={class:"lg:col-span-5 min-w-0"},gt={class:"lg:col-span-7 space-y-4"},xt=(0,i.pM)({__name:"FeatureApp",setup(e){const{t}=(0,y.B)(),r=(0,d.F)(),l=(0,Ye.Q)(),{activeError:n,clear:g}=(0,p.m)(),x=(0,i.EW)(()=>r.config.value),w=(0,i.EW)(()=>r.hasResult.value),C=(0,i.EW)(()=>r.hasFailed.value),L=(0,i.EW)(()=>r.files.value.length>0),E=(0,i.EW)(()=>r.isWaitingForUploads.value),_=(0,i.EW)(()=>r.isConverting.value),R=(0,i.EW)(()=>x.value?.operation??x.value?.appId),{exhausted:F,globalRateLimit:M,status:B}=(0,m.c)(R),P=(0,i.EW)(()=>"design"===x.value?.resultMode||"fileview"===x.value?.resultMode),W=(0,i.EW)(()=>!1!==x.value?.autoHandoff),T=(0,i.EW)(()=>r.allFilesUploaded.value),I=(0,i.EW)(()=>x.value?.showSettingsUpfront&&!_.value&&!E.value),X=(0,u.KR)(!1);let U=null;function j(e){return!!e.dataTransfer&&Array.from(e.dataTransfer.types).includes("Files")}function A(){null!==U&&(clearTimeout(U),U=null)}function S(){A(),X.value=!0}function O(){A(),X.value=!1}function z(e){j(e)&&S()}function H(e){j(e)&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),S())}function $(){A(),U=setTimeout(O,80)}async function Q(e){if(O(),!j(e))return;e.preventDefault();const t=e.dataTransfer?.files;if(!t?.length)return;const o=Array.from(t),a=[];for(const e of o){const t=r.addFile(e);a.push({file:e,entry:t})}await c.W.ensureConstraints();const l=r.maxInputCount.value,n=r.maxFileSize.value;for(const{file:e,entry:t}of a)if(n&&e.size>n)r.removeFile(t.id);else{if(l&&r.files.value.filter(e=>!e.error).length>l){r.removeFile(t.id);break}c.W.uploadFile(t)}}function V(){O()}function K(){O()}function N(e){e.persisted&&(g(),r.reset())}function D(){g(),r.reset()}function Z(){g(),r.setStatus("ready"),c.W.runConversion()}function G(e){"retry"===e?(g(),r.setStatus("ready"),c.W.runConversion()):"change_settings"===e?(g(),r.setStatus("ready")):"reset"===e&&D()}function J(){r.setStatus("ready")}return(0,i.sV)(()=>{window.addEventListener("pageshow",N),window.addEventListener("dragenter",z),window.addEventListener("dragover",H),window.addEventListener("dragleave",$),window.addEventListener("drop",Q),document.addEventListener("drop",V,!0),document.addEventListener("dragend",K,!0),v.v.loadFilesFromUrl()}),(0,i.wB)(T,e=>{e&&P.value&&W.value&&"converting"!==r.status.value&&"completed"!==r.status.value&&c.W.runConversion()}),(0,i.wB)(F,e=>{if(!e){const e=n.value?.errorType;return void(e!==b.By.GLOBAL_TOO_MANY_JOBS&&e!==b.By.FEATURE_TOO_MANY_JOBS||g())}if(n.value)return;const t=M.value?.hit?M.value:B.value;if(!t)return;const r=(0,h.useUserStore)(a.G),o=r.isLoggedIn?"free"===r.userTier.toLowerCase()?"free":"premium":"unregistered",l=(0,k.dn)(b.By.GLOBAL_TOO_MANY_JOBS,o,{constraints:[t],ttl:t.ttl,currentTtl:t.ttl,maxValue:t.max,currentValue:t.current});(0,f.d)().setActiveError(l)},{immediate:!0}),(0,i.hi)(()=>{window.removeEventListener("dragenter",z),window.removeEventListener("pageshow",N),window.removeEventListener("dragover",H),window.removeEventListener("dragleave",$),window.removeEventListener("drop",Q),document.removeEventListener("drop",V,!0),document.removeEventListener("dragend",K,!0),A(),r.reset()}),(e,r)=>((0,i.uX)(),(0,i.CE)(i.FK,null,[(0,i.Lk)("div",qe,[(0,i.bF)(o.eB,{"enter-active-class":"transition-opacity duration-150","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:(0,i.k6)(()=>[X.value?((0,i.uX)(),(0,i.CE)("div",et,[(0,i.Lk)("div",tt,[r[1]||(r[1]=(0,i.Lk)("svg",{class:"mx-auto w-10 h-10 text-blue-500 mb-2",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,i.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})],-1)),(0,i.Lk)("p",rt,(0,s.v_)((0,u.R1)(t)("Drop files anywhere to upload")),1)])])):(0,i.Q3)("v-if",!0)]),_:1}),w.value||C.value?((0,i.uX)(),(0,i.Wv)(De,{key:0,onReset:D,onRetry:Z})):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[(0,i.bF)(Ze.A,{mode:"contained",backdrop:"",onAction:G}),(0,i.bF)(o.eB,{mode:"out-in","enter-active-class":"transition-opacity duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-150 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:(0,i.k6)(()=>[I.value?((0,i.uX)(),(0,i.CE)("div",ot,[(0,i.bF)(te,{"example-file":x.value?.exampleFile,"show-url-input"
3:!0,compact:L.value},null,8,["example-file","compact"]),(0,i.Lk)("div",at,[(0,i.Lk)("div",lt,[(0,i.bF)(ue,{compact:!0}),(0,i.bF)(oe,{"app-id":x.value?.appId??""},null,8,["app-id"])])])])):L.value?E.value||_.value||P.value&&L.value&&W.value?((0,i.uX)(),(0,i.CE)("div",it,[(0,i.Lk)("div",st,[(0,i.Lk)("div",ut,[r[2]||(r[2]=(0,i.Lk)("div",{class:"shrink-0 w-10 h-10 rounded-full bg-blue-100 dark:bg-blue-500/20 flex items-center justify-center"},[(0,i.Lk)("svg",{class:"w-5 h-5 text-blue-500 animate-spin",fill:"none",viewBox:"0 0 24 24"},[(0,i.Lk)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,i.Lk)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})])],-1)),(0,i.Lk)("div",dt,[(0,i.bF)(o.eB,{mode:"out-in","enter-active-class":"transition-opacity duration-200","enter-from-class":"opacity-0","leave-active-class":"transition-opacity duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:(0,i.k6)(()=>[T.value?((0,i.uX)(),(0,i.CE)("div",mt,[(0,i.Lk)("h3",ft,(0,s.v_)((0,u.R1)(t)("Processing your files…")),1),(0,i.Lk)("p",kt,(0,s.v_)((0,u.R1)(t)("This will only take a moment.")),1)])):((0,i.uX)(),(0,i.CE)("div",ct,[(0,i.Lk)("h3",vt,(0,s.v_)((0,u.R1)(t)("Uploading your files…")),1),(0,i.Lk)("p",pt,(0,s.v_)(P.value?(0,u.R1)(t)("You will be redirected to the editor shortly."):(0,u.R1)(t)("Processing will start automatically once all uploads complete.")),1)]))]),_:1})]),E.value?((0,i.uX)(),(0,i.CE)("button",{key:0,class:"shrink-0 px-4 py-2 text-sm font-medium rounded-lg border-2 border-blue-300 dark:border-blue-500/30 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-500/20 transition-colors cursor-pointer",onClick:J},(0,s.v_)((0,u.R1)(t)("Cancel")),1)):(0,i.Q3)("v-if",!0)])]),(0,i.Lk)("div",{class:(0,s.C4)(_.value?"pointer-events-none":"")},[(0,i.bF)(te,{"show-url-input":!1,compact:!0,"hide-upload-zone":!0})],2)])):((0,i.uX)(),(0,i.CE)("div",bt,[(0,i.Lk)("div",ht,[(0,i.bF)(te,{"example-file":x.value?.exampleFile,"show-url-input":!0,compact:!0},null,8,["example-file"])]),(0,i.Lk)("div",gt,[(0,i.bF)(ue),(0,i.bF)(oe,{"app-id":x.value?.appId??""},null,8,["app-id"])])])):((0,i.uX)(),(0,i.CE)("div",nt,[(0,i.bF)(te,{"example-file":x.value?.exampleFile,"show-url-input":!0,compact:!1},null,8,["example-file"])]))]),_:1})],64))]),(0,i.bF)(Ge.A,{open:(0,u.R1)(l).isOpen.value,origin:(0,u.R1)(l).origin.value,"show-type-selector":(0,u.R1)(l).showTypeSelector.value,"initial-rating":(0,u.R1)(l).initialRating.value,"job-id":(0,u.R1)(l).jobId.value,"workflow-id":(0,u.R1)(l).workflowId.value,operation:R.value,onClose:r[0]||(r[0]=e=>(0,u.R1)(l).closeFeedback())},null,8,["open","origin","show-type-selector","initial-rating","job-id","workflow-id","operation"]),(0,i.bF)(Je.A)],64))}});var wt=r(650513);async function yt(){await n.L.load(["features"]),function(){const e=document.getElementById("feature-app");if(!e)return void l.vF.debug("No #feature-app element found - skipping feature app init");const t=e.dataset.config;if(!t)return void l.vF.warn("No data-config attribute on #feature-app");let r;try{r=JSON.parse(t)}catch(e){return void l.vF.error("Failed to parse feature app config",e)}const n=(0,o.Ef)(xt);n.use(a.G),(0,d.F)().setConfig(r),n.mount(e),l.vF.debug("Feature app mounted",{appId:r.appId}),(0,wt.i)({skipFeedbackModal:!0})}()}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>yt()):yt()},365820(e,t,r){r.d(t,{N:()=>i});var o=r(750953);const a=(0,o.KR)(!1);let l=!1;function n(e){e&&e.startsWith("blob:")&&(a.value=!0)}function i(){return l||(l=!0,async function(){if("undefined"==typeof document)return;const e=document.createElement("canvas");e.width=1,e.height=1;const t=await new Promise(t=>e.toBlob(t,"image/png"));if(!t)return;const r=URL.createObjectURL(t);try{await new Promise((e,t)=>{const o=new Image;o.onload=()=>e(),o.onerror=()=>t(new Error("object URL image blocked")),o.src=r})}catch{a.value=!0}finally{URL.revokeObjectURL(r)}}()),{thumbnailsBlocked:(0,o.tB)(a),reportThumbnailFailure:n}}},411048(e,t,r){r.d(t,{m:()=>f});r(874423);var o=r(120641),a=r(410810),l=r(606265),n=r(575647),i=r(680658),s=r(687192),u=r(58352),d=r(269978),c=r(759641),v=r(915276),p=r(306218);function m(e,t){if(!e)return"unregistered";return"free"===t.toLowerCase()?"free":"premium"}function f(){const e=(0,l.u)(),t=(0,n.useUserStore)(),{isLoggedIn:r,userTier:f}=(0,a.bP)(t);function k(t){const o=(0,i.fe)(t),a=m(r.value,f.value),l=(0,s.dn)(o.errorType,a,o.context);e.setActiveError(l);return[v.By.CREDITS_CONSUMED,v.By.CREDITS_CONSUMED_WAS_PREMIUM,v.By.INPUT_TOO_LARGE,v.By.TOO_MANY_INPUTS,v.By.BATCH_IS_PREMIUM,v.By.OCR_IS_PREMIUM,v.By.GENERIC_OPTION_IS_PREMIUM,v.By.FEATURE_IS_PREMIUM,v.By.FEATURE_TOO_MANY_JOBS,v.By.GLOBAL_TOO_MANY_JOBS,v.By.GLOBAL_TOO_MANY_CONCURRENT,v.By.RATE_LIMITED,v.By.TEAM_FEATURE_DISABLED,v.By.GENERIC_LIMIT].includes(o.errorType)&&d.A.track(c.We.UPGRADE_PROMPT_SHOWN,{limit_type:o.errorType,product:String(o.context?.product??""),trigger:"job_error"}),u.vF.debug("[useJobErrors] Handled error:",`${o.errorType} tier=${a}`),l}return{handleError:k,handlePaymentError:function(e){return k(e)},handleTimeoutError:function(t){const r="init"===t?v.By.JOB_INIT_TIMEOUT:v.By.JOB_INCOMPLETE_TIMEOUT,o=(0,s.Q$)(r);return e.setActiveError(o),o},handleConversionError:function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=v.KP[t]??v.By.CONVERSION_GENERIC,l=m(r.value,f.value),n=(0,s.H4)(a,l,o);return e.setActiveError(n),n},handleJobWarnings:function(t){e.setJobWarnings(t)},showValidationError:function(t,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{upsell:l=!0}=a,n=m(r.value,f.value),i={label:p.L.t("Go Premium"),action:"open_payment_modal",variant:"blue"},s={label:p.L.t("Sign Up Free"),action:"open_auth_register",variant:"blue"}
3,u=l&&"unregistered"===n,d=l&&"free"===n,c={category:"validation",errorType:v.By.UNKNOWN,title:t,description:o,primaryCta:u?s:d?i:null,secondaryCta:null,subtext:d?p.L.t("Cancel anytime"):null,canDismiss:!0,countdown:null,disableConverter:!1,isRetryable:!1,showLoginHint:u,metadata:{}};e.setActiveError(c)},showFileLimitError:function(t){const o=m(r.value,f.value);e.setActiveError((0,s.tX)(o,t))},showFileTooLargeError:function(t,o,a){const l=m(r.value,f.value),n=p.L.t("File size limit reached");let i;i="premium"===l?p.L.t('"%name%" is %size% — maximum is %max%.',{"%name%":t,"%size%":o,"%max%":a}):"free"===l?p.L.t("Processing large files is only available to premium users. Upgrade your account to process large files."):p.L.t("Processing large files requires an account. Sign up free to process large files."),e.setActiveError((0,s.BZ)({errorType:v.By.INPUT_TOO_LARGE,title:n,description:i,tier:l}))},showJobSizeLimitError:function(t,o){const a=m(r.value,f.value),l=p.L.t("File size limit reached");let n;n="premium"===a?p.L.t('Adding "%name%" would exceed the %size% total size limit.',{"%name%":t,"%size%":o}):"free"===a?p.L.t("Processing large files is only available to premium users. Upgrade your account to process large files."):p.L.t("Processing large files requires an account. Sign up free to process large files."),e.setActiveError((0,s.BZ)({errorType:v.By.JOB_TOO_LARGE,title:l,description:n,tier:a}))},clear:function(){e.clearActiveError()},activeError:(0,o.EW)(()=>e.activeError),hasError:(0,o.EW)(()=>e.hasActiveError)}}},310642(e,t,r){r.d(t,{A:()=>M});r(874423);var o=r(120641),a=r(953751),l=r(750953),n=r(790033),i=r(341344),s=r(802800),u=r(693576),d=r(330261);const c={key:0,class:"sticky top-0 left-0 right-0 h-8 bg-gradient-to-b from-white dark:from-[#1d1f26] to-transparent z-10 pointer-events-none"},v={class:"flex items-start gap-3"},p={class:"relative shrink-0"},m={class:"w-14 h-14 rounded-lg overflow-hidden border border-neutral-200/60 dark:border-white/10 bg-neutral-50 dark:bg-white/5"},f=["src"],k={key:1,class:"w-full h-full flex items-center justify-center"},b=["onClick"],h={class:"flex-1 min-w-0 pt-0.5"},g={class:"flex items-center justify-between gap-2"},x={class:"text-sm font-semibold text-neutral-900 dark:text-white truncate"},w={key:0,class:"mt-2 w-full h-1.5 rounded-full overflow-hidden",style:{background:"rgba(0, 0, 0, 0.06)"}},y={key:1,class:"mt-2 w-full h-1.5 rounded-full bg-emerald-500"},C={key:2,class:"mt-2 w-full h-1.5 rounded-full bg-red-400"},L={key:3,class:"mt-1.5 text-xs text-neutral-500 dark:text-neutral-400"},E=["href","download"],_={key:4,class:"mt-1.5 text-xs text-red-500 dark:text-red-400 truncate"},R={key:5,class:"mt-1.5 text-xs text-neutral-400 dark:text-neutral-400 truncate"},F={key:1,class:"sticky bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-white dark:from-[#1d1f26] to-transparent z-10 pointer-events-none"},M=(0,o.pM)({__name:"DownloadToast",setup(e){const{t}=(0,u.B)(),{isMobile:r}=(0,d.Q)(),M=(0,i.P)(),{track:B}=(0,s.f)(),P=(0,l.KR)(null),W=(0,l.KR)(null),T=(0,l.KR)(!1),I=(0,l.KR)(!1),X=[30,55,90],U=(0,l.KR)(0),j=(0,l.KR)(!1);let A=0,S=0;function O(){return"undefined"!=typeof window?window.innerHeight/100:0}function z(e){r.value&&(j.value=!0,A=e.clientY,S=U.value||Math.round(X[0]*O()),U.value=S,e.target.setPointerCapture?.(e.pointerId),window.addEventListener("pointermove",H),window.addEventListener("pointerup",$,{once:!0}),window.addEventListener("pointercancel",$,{once:!0}))}function H(e){if(!j.value)return;const t=e.clientY-A,r=S-t,o=O();U.value=Math.max(80,Math.min(r,95*o))}function $(){if(!j.value)return;j.value=!1,window.removeEventListener("pointermove",H);const e=O();if(U.value<X[0]*e*.55)return void M.hideToastsPanel();const t=X.map(t=>t*e);let r=t[0],o=Math.abs(U.value-t[0]);for(const e of t){const t=Math.abs(U.value-e);t<o&&(o=t,r=e)}U.value=Math.round(r)}function Q(){const e=W.value;e&&(T.value=e.scrollTop>8,I.value=e.scrollHeight>e.clientHeight&&e.scrollTop+e.clientHeight<e.scrollHeight-8)}function V(){(0,o.dY)(()=>{Q();const e=W.value;e&&e.scrollHeight>e.clientHeight&&(I.value=!0)})}function K(e){switch(e.status){case"completed":return"text-emerald-600 dark:text-emerald-400";case"error":return"text-red-500 dark:text-red-400";default:return"text-neutral-400 dark:text-neutral-400"}}function N(e,t){let{attrs:r}=t;return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",...r},[(0,o.h)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25A2.25 2.25 0 0 0 20.25 3H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z"})])}function D(e,t){let{attrs:r}=t;return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",...r},[(0,o.h)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H6.75a2.25 2.25 0 0 0-2.25 2.25v13.5a2.25 2.25 0 0 0 2.25 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-.75"})])}function Z(e,t){let{attrs:r}=t;return(0,o.h)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",...r},[(0,o.h)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])}function G(e){const t=e.fileType.toLowerCase();return t.includes("jpg")||t.includes("png")?N:t.includes("all")||t.includes("zip")?Z:D}return(0,o.wB)(()=>M.toastsPanelVisible.value,e=>{e&&r.value&&(U.value=Math.round(X[0]*O()))}),(0,o.wB)(()=>M.toasts.value.length,V),(0,o.sV)(()=>{V()}),(e,i)=>((0,o.uX)(),(0,o.Wv)(o.Im,{to:"body"},[(0,o.bF)(a.eB,{"enter-active-class":"transition-opacity duration-300 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-200 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:(0,o.k6)(()=>[(0,l.R1)(M).toastsPanelVisible.value&&(0,l.R1)(M).toasts.value.length>0?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,n.C4)(["fixed inset-0",(0,l.R1)(r)?"bg-black/40":""]),style:{"z-index":"2000"},onClick:i[0]||(i[0]=e=>(0,l.R1)(M).hideToastsPanel())},null,2)):(0,o.Q3)("v-if",!0)]),_:1}),(0,o.bF)(a.eB,{"enter-active-class":(0,l.R1)(r)?"transition-transform duration-300 ease-out":"transition-all duration-300 ease-out","enter-from-class":(0,l.R1)(r)?"translate-y-full":"opacity-0 translate-y-4","enter-to-class":(0,l.R1)(r)?"translate-y-0":"opacity-100 translate-y-0","leave-active-class":(0,l.R1)(r)?"transition-transform duration-200 ease-in":"transition-all duration-200 ease-in","leave-from-class":(0,l.R1)(r)?"translate-y-0":"opacity-100 translate-y-0","leave-to-class":(0,l.R1)(r)?"translate-y-full":"opacity-0 translate-y-4"},{default:(0,o.k6)(()=>[(0,l.R1)(M).toastsPanelVisible.value&&(0,l.R1)(M).toasts.value.length>0?((0,o.uX)(),(0,o.CE)("div",{key:0,ref_key:"containerRef",ref:P,class:(0,n.C4)((0,l.R1)(r)?"fixed inset-x-0 bottom-0 w-full rounded-t-2xl bg-white dark:bg-[#1d1f26] ring-1 ring-black/5 dark:ring-white/10 flex flex-col pb-[env(safe-area-inset-bottom,0)]":"fixed bottom-6 right-6 w-[420px] rounded-2xl shadow-2xl border bg-white border-neutral-200/80 dark:bg-[#1d1f26] dark:border-white/10 overflow-hidden flex flex-col"),style:(0,n.Tr)((0,l.R1)(r)?{zIndex:2001,height:U.value+"px",maxHeight:"95vh",transition:j.value?"none":"height 0.25s cubic-bezier(0.32, 0.72, 0, 1)",boxShadow:"0 -8px 24px -4px rgba(0,0,0,0.12), 0 -2px 6px -2px rgba(0,0,0,0.08)"}:{zIndex:9999,maxHeight:"140px"}),onClick:i[2]||(i[2]=(0,a.D$)(()=>{},["stop"]))},[(0,l.R1)(r)?((0,o.uX)(),(0,o.CE)("div",{key:0,class:"flex justify-center pt-2.5 pb-1.5 shrink-0 cursor-ns-resize touch-none select-none",onPointerdown:z},[...i[3]||(i[3]=[(0,o.Lk)("div",{class:"w-12 h-1 rounded-full bg-neutral-300 dark:bg-neutral-600"},null,-1)])],32)):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",{ref_key:"scrollRef",ref:W,class:"overflow-y-auto overscroll-contain flex-1 relative",onScroll:Q},[T.value?((0,o.uX)(),(0,o.CE)("div",c)):(0,o.Q3)("v-if",!0),(0,o.bF)(a.F,{"enter-active-class":"transition-all duration-300 ease-out","enter-from-class":"opacity-0 translate-y-3","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition-all duration-200 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 -translate-y-2"},{default:(0,o.k6)(()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,l.R1)(M).toasts.value,e=>((0,o.uX)(),(0,o.CE)("div",{key:e.id,class:"px-4 py-3 border-b last:border-b-0 border-neutral-100 dar
3k:border-white/5"},[(0,o.Lk)("div",v,[(0,o.Lk)("div",p,[(0,o.Lk)("div",m,[e.thumbnailUri?((0,o.uX)(),(0,o.CE)("img",{key:0,src:e.thumbnailUri,class:"w-full h-full object-cover",alt:""},null,8,f)):((0,o.uX)(),(0,o.CE)("div",k,[((0,o.uX)(),(0,o.Wv)((0,o.$y)(G(e)),{class:"w-6 h-6 text-neutral-300 dark:text-neutral-500"}))]))]),(0,o.Lk)("button",{onClick:t=>(0,l.R1)(M).dismissToast(e.id),class:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded-full bg-white dark:bg-neutral-700 border border-neutral-200 dark:border-neutral-600 shadow-sm flex items-center justify-center cursor-pointer hover:bg-neutral-100 dark:hover:bg-neutral-600 transition-colors"},[...i[4]||(i[4]=[(0,o.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2.5",stroke:"currentColor",class:"w-2.5 h-2.5 text-neutral-500 dark:text-neutral-300"},[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])],8,b)]),(0,o.Lk)("div",h,[(0,o.Lk)("div",g,[(0,o.Lk)("p",x,(0,n.v_)(e.label),1),(0,o.Lk)("span",{class:(0,n.C4)(["text-xs font-medium shrink-0",K(e)])},(0,n.v_)("processing"===e.status?`${e.progress}%`:"completed"===e.status?"Completed":"Failed"),3)]),"processing"===e.status?((0,o.uX)(),(0,o.CE)("div",w,[(0,o.Lk)("div",{class:"h-full rounded-full relative overflow-hidden",style:(0,n.Tr)({width:e.progress+"%",background:"linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6)",backgroundSize:"200% 100%",animation:"progress-glow 2s ease-in-out infinite",transition:"width 0.5s ease-out"})},[...i[5]||(i[5]=[(0,o.Lk)("div",{class:"absolute inset-0",style:{background:"linear-gradient(\n                            90deg,\n                            transparent 0%,\n                            rgba(255, 255, 255, 0.4) 50%,\n                            transparent 100%\n                          )",animation:"shimmer 1.5s ease-in-out infinite"}},null,-1)])],4)])):"completed"===e.status?((0,o.uX)(),(0,o.CE)("div",y)):((0,o.uX)(),(0,o.CE)("div",C)),"completed"===e.status?((0,o.uX)(),(0,o.CE)("p",L,[e.downloadUrl?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.eW)((0,n.v_)((0,l.R1)(t)("If your download hasn't started,"))+" ",1),(0,o.Lk)("a",{href:e.downloadUrl,download:e.downloadFilename,class:"text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 underline underline-offset-2 transition-colors cursor-pointer",onClick:i[1]||(i[1]=e=>(0,l.R1)(B)("result:download",{type:"single",source:"download_toast"}))},(0,n.v_)((0,l.R1)(t)("click here.")),9,E)],64)):((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.eW)((0,n.v_)((0,l.R1)(t)("Your file has been downloaded.")),1)],64))])):"error"===e.status?((0,o.uX)(),(0,o.CE)("p",_,(0,n.v_)(e.statusMessage),1)):((0,o.uX)(),(0,o.CE)("p",R,(0,n.v_)(e.statusMessage),1))])])]))),128))]),_:1}),I.value?((0,o.uX)(),(0,o.CE)("div",F)):(0,o.Q3)("v-if",!0)],544)],6)):(0,o.Q3)("v-if",!0)]),_:1},8,["enter-active-class","enter-from-class","enter-to-class","leave-active-class","leave-from-class","leave-to-class"])]))}})}},e=>{e.O(0,[953751,874423,691926,489302,914126,680658,58352,327404,952629,818878,735112,243088,575647,790091,976061,154337,532490,237631,650513,398113,554205],()=>{return t=349973,e(e.s=t);var t});e.O()}]);
4//# debugId=aeaa493d-9eb8-50e1-a688-13b97dcb6a57

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.