PageSourceSearch

https://www.imgconverters.com/build/assets/JpgToWordComponent-5164a3cb.js

js imgconverters.com collected 2026-10-02 00:31:08 UTC 31,716 bytes, 2 lines download raw bytes

1import"./vue-c41304f0.js";import{a as e}from"./axios-85e39b4e.js";import{R as t,S as l}from"./vue-picture-cropper-4d767d4e.js";import o from"./ErrorPopupComponent-6bceb20d.js";/* empty css                  */import a from"./CropComponent-f424a004.js";import r from"./SettingComponent-ddbe10ac.js";import{_ as i}from"./_plugin-vue_export-helper-1b428a4d.js";import{A as s,a as n}from"./lucide-vue-next-d09ca5f2.js";import{b as d,q as c,s as p,g as u,l as v,u as g,m as f,t as h,v as m,x,y as w,z as b,p as y,A as k,F as C,k as L,e as A,C as j,f as M,D as U,E as R,B as H}from"./@vue-9fa25491.js";const P={props:{translations:Object,files:Array},components:{VuePictureCropper:t,ErrorPopupComponent:o,CropComponent:a,SettingComponent:r,ArrowRight:s,Loader2:n},data:()=>({options:{viewMode:2,dragMode:"crop",aspectRatio:NaN},serverErrorMessage:"",yourErrorHeaderVariable:"",cropperPopup:!1,pic:"",result:null,files:[],currentFileIndex:null,convertedPdfUrl:null,quality:1,width:"",height:"",title:"JPG to WORD Converter",settingPopup:!1}),methods:{updatePopup(e){this.settingPopup=e},handleFileSelection(e){const t=Array.from(e.target.files).map((e=>({dataURL:URL.createObjectURL(e),name:e.name,type:e.type,uploading:!1,uploaded:!1,uploadProgress:0,error:null,file:e,pdfURL:null,convertedPdfUrl:null})));for(const l of t)this.uploadFile(l,this.quality);this.files.push(...t)},rotateTo(e){l.rotate(e)},flipX(){let e=!0===this.flipXValue?1:-1;l.scaleX(e),this.flipXValue=!this.flipXValue},flipY(){let e=!0===this.flipYValue?1:-1;l.scaleY(e),this.flipYValue=!this.flipYValue},getResult(e){this.result=e},reset(){l&&l.reset()}},setup(){const t=d(""),o=d(""),a=d("Select language"),r=d([]),i=d(!1),s=d(!1),n=d(!1),u=d(null),v=d(""),g=d(null),f=d(""),h=d(!1),m=d(!1),x=d(!1),w=d(!1),b=d(!1),y=d(!1),k=d(null),C=d(null),L=()=>{window.turnstile&&"function"==typeof window.turnstile.remove&&window.turnstile.remove(),window.turnstile.render(".cf-turnstile",{sitekey:"0x4AAAAAAAYPnENkBR7iR2js",callback:e=>{token.value=e}})},A=e=>{const t=(e.clipboardData||e.originalEvent.clipboardData).items;for(let l of t)if(0===l.type.indexOf("image")){const e=l.getAsFile();e&&(m.value=!0,j(e).finally((()=>{m.value=!1})))}},j=async(e,t="clipboard-image.png")=>{const l=new File([e],t,{type:e.type}),o={id:Date.now(),dataURL:URL.createObjectURL(e),name:l.name,file:l,uploading:!1,uploaded:!1,uploadProgress:0,error:null};r.value.push(o),x.value=!1},M=async(e,t)=>{var l=new Blob([e],{type:"application/msword"}),o=URL.createObjectURL(l),a=document.createElement("a");a.href=o,a.download="result-jpgconverters-com.doc",document.body.appendChild(a),a.click(),document.body.removeChild(a)},U=async e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);const l=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),l&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(l)),setTimeout((function(){U.classList.remove("active")}),2500)},R=async l=>{const a=new FormData;a.append("images",l.file);const r={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{const t=Math.round(e.loaded/e.total*100);l.uploading=!0,l.uploadProgress=t}};try{const t=await e.post("/convert-to-text",a,r);l.uploading=!1,l.uploaded=!0,l.uploadProgress=100,l.responseData=t.data,l.text=t.data.text||null}catch(i){if(l.uploading=!1,l.error="Error uploading image",i.response){const e=i.response.status;500===e?(t.value="Internal Server Error",o.value="Error 500"):422===e?(t.value=i.response.data.message||"Unprocessable Entity",o.value="Error 422"):400===e?(t.value="Bad Request",o.value="400"):408===e?(t.value="Request Timeout",o.value="Error 408"):503===e&&(t.value="Service Unavailable",o.value="Error 503")}}},H=e=>{const t=atob(e.split(",")[1]),l=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(t.length),a=new Uint8Array(o);for(let r=0;r<t.length;r++)a[r]=t.charCodeAt(r);return new Blob([a],{type:l})};return c((()=>{window.addEventListener("paste",A)})),p((()=>{window.removeEventListener("paste",A)})),{dragover:async()=>{i.value=!0},dragleave:async e=>{i.value=!1},dropFile:e=>{e.preventDefault(),i.value=!1;const t=Array.from(e.dataTransfer.files).map((e=>["image/jpeg","image/jpg"].includes(e.type)?{dataURL:URL.createObjectURL(e),name:e.name,uploading:!1,uploaded:!1,uploadProgress:0,error:null,file:e}:(isErrorMessage.value="⚠️ Invalid Format.  upload a jpg file.",null))).filter((e=>null!==e));setTimeout((()=>{isErrorMessage.value=!1}),3e3),r.value.push(...t)},remove:async e=>{r.value.splice(e,1),r.value.length||(s.value=!1)},translate:async(t,l,o)=>{let i=r.value[t];i.transltionLang=o,r.value[t]=i,a.value=o;const s=new FormData;s.append("text",i.text),s.append("to",l);const n={headers:{"Content-Type":"multipart/form-data"}};try{const l=await e.post("/translate-text",s,n);i.transltion=l.data.text,r.value[t]=i}catch(d){}},dragActive:i,language:a,submitted:s,files:r,handleFileSelection:e=>{const t=Array.from(e.target.files).map((e=>({dataURL:URL.createObjectURL(e),name:e.name,uploading:!1,uploaded:!1,uploadProgress:0,error:null,file:e})));r.value.push(...t)},uploadFiles:async()=>{s.value=!0;for(let e=0;e<r.value.length;e++)r.value[e].uploaded||(await R(r.value[e]),w.value=!0)},downloadDoc:M,cropperPopup:n,CropperPopupSet:e=>{u.value=e,n.value=!0,v.value=r.value[u.value].dataURL},confirmCrop:async()=>{const e=l.getDataURL(),t=H(e),o=r.value[u.value].name.replace(/\.[^/.]+$/,"")+"_cropped.png";r.value[u.value].dataURL=e,r.value[u.value].file=new File([t],o,{type:t.type}),r.value[u.value].name=o,n.value=!1},dataURLtoBlob:H,pic:v,downloadAllDocs:()=>{r.value.forEach((e=>{e.text&&M(e.text)}))},serverErrorMessage:t,yourErrorHeaderVariable:o,retryUpload:e=>{e?(L(),R(e)):alert("No file selected for upload")},resetTurnstile:L,copyText:U,removeAllFiles:()=>{r.value=[],s.value=!1},handleDragStart:(e,t)=>{g.value=e,t.dataTransfer.effectAllowed="move",t.target.classList.add("dragging")},handleDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="move";const t=e.currentTarget,l=t.getBoundingClientRect(),o=e.clientX-l.left;e.clientY,l.top,o<l.width/2?(C.value="left",t.classList.remove("drag-right","drag-top","drag-bottom"),t.classList.add("drag-left")):(C.value="right",t.classList.remove("drag-left","drag-top","drag-bottom"),t.classList.add("drag-right"))},handleDrop:(e,t)=>{if(t.preventDefault(),t.currentTarget.classList.remove("drag-left","drag-right","drag-top","drag-bottom"),null!==g.value&&g.value!==e){const t=r.value[g.value];r.value.splice(g.value,1),r.value.splice(e,0,t)}g.value=null,k.value=null,C.value=null},handleDragEnd:e=>{document.querySelectorAll(".drag-left, .drag-right, .drag-top, .drag-bottom").forEach((e=>{e.classList.remove("drag-left","drag-right","drag-top","drag-bottom")})),e.target.classList.remove("dragging"),g.value=null,k.value=null,C.value=null},isUrlLoading:h,handleUpload:async()=>
1{if(e=f.value,/\.(jpg)$/i.test(e)){var e;m.value=!0;try{const e=`/proxy-image?url=${encodeURIComponent(f.value)}`,t=await fetch(e);if(!t.ok)throw new Error("Failed to fetch image from URL");const l=t.headers.get("content-type");if(!l||!l.startsWith("image/"))return void alert("The provided URL is not a valid image.");const o=await t.blob();await j(o,f.value.split("/").pop()),f.value="",y.value=!1}catch(t){alert("Failed to upload image. Please provide a valid image URL.")}finally{m.value=!1}}else alert("Only jpg image URLs are allowed!")},fileUrl:f,isProcessing:m,disableConvertButton:x,conversionCompleted:w,isLoading:b,showUrlInput:y}}},V=e=>(U("data-v-ce0409ff"),e=e(),R(),e),D={class:"space-y-8"},E={class:"mx-auto cursor-pointer w-24 h-20 bg-gradient-to-br from-violet-600 to-violet-800 rounded-2xl flex items-center justify-center shadow-lg group-hover:shadow-md"},F=V((()=>f("svg",{class:"w-12 h-12 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1))),B={class:"space-y-4"},S={class:"text-xl font-semibold text-gray-800 mb-2"},T={class:"text-gray-600 text-sm"},z={class:"flex justify-center gap-4 mb-5"},O=["disabled"],Z=V((()=>f("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1))),I=[V((()=>f("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)))],Y={class:"flex items-center border border-violet-600 rounded-lg overflow-hidden"},X=["disabled"],_={key:0,class:"h-6 w-px bg-violet-600"},q=["disabled"],N=V((()=>f("div",{class:"max-w-sm mx-auto pt-4 border-t border-violet-200"},[f("p",{class:"text-sm text-gray-600 mb-3"},"Or import from URL and Ctrl + V")],-1))),$={key:1,class:"relative border-2 border-violet-300 rounded-2xl rounded-b-none p-6 md:p-8 mt-4 bg-gradient-to-br from-violet-50/80 to-indigo-50/30 shadow-sm"},K={class:"absolute top-2 mb-3 right-4 text-lg font-semibold text-gray-800"},W={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4 mt-3 mb-6"},G=["onDragstart","onDrop"],J={class:"relative mb-3"},Q={key:0,class:"absolute inset-0 bg-white/80 rounded-lg flex items-center justify-center z-10"},ee=[H('<div class="text-center" data-v-ce0409ff><div class="animate-spin mx-auto mb-2" data-v-ce0409ff><svg class="w-8 h-8 text-violet-600" fill="none" viewBox="0 0 24 24" data-v-ce0409ff><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" data-v-ce0409ff></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8H4z" data-v-ce0409ff></path></svg></div><p class="text-xs text-gray-600" data-v-ce0409ff>Processing...</p></div>',1)],te=["src"],le=["onClick"],oe=[V((()=>f("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)))],ae={class:"mb-3"},re=["title"],ie={class:"text-xs text-gray-500"},se={class:"flex justify-between gap-1"},ne=["onClick"],de=[V((()=>f("svg",{class:"w-4 h-4 mx-auto group-hover/btn:rotate-12 transition-transform duration-200",fill:"currentColor",viewBox:"0 0 24 24"},[f("path",{d:"M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z"}
1)],-1)))],ce=["onClick"],pe=[V((()=>f("svg",{class:"w-4 h-4 mx-auto group-hover/btn:-rotate-12 transition-transform duration-200",fill:"currentColor",viewBox:"0 0 24 24"},[f("path",{d:"M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42l1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"})],-1)))],ue=["onClick"],ve=[V((()=>f("svg",{class:"w-4 h-4 mx-auto",fill:"currentColor",viewBox:"0 0 24 24"},[f("path",{d:"M17,15H19V17H17V19H15V17H9C7.89,17 7,16.1 7,15V9H5V7H7V5H9V7H15C16.1,7 17,7.9 17,9V15M15,9H9V15H15V9Z"})],-1)))],ge={class:"text-center"},fe=V((()=>f("div",{class:"w-12 h-12 mx-auto mb-3 bg-violet-100 rounded-full flex items-center justify-center group-hover:bg-violet-200 transition-colors duration-200"},[f("svg",{class:"w-6 h-6 text-violet-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})])],-1))),he=V((()=>f("p",{class:"text-violet-600 font-medium text-sm"},"Add More",-1))),me=V((()=>f("p",{class:"text-xs text-gray-500 mt-1"},"Click to upload",-1))),xe={key:2,class:"flex flex-col sm:flex-row justify-between items-center gap-4 border-x-2 border-b-2 border-violet-300 rounded-b-md p-4 text-center mb-5 bg-gradient-to-br from-violet-50/80 to-indigo-50/30 shadow-sm"},we=V((()=>f("div",{class:"flex flex-wrap items-start gap-3"},null,-1))),be={class:"flex flex-wrap items-end gap-3"},ye=["disabled"],ke={key:0,class:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Ce=[V((()=>f("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1))),V((()=>f("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"},null,-1)))],Le={key:1,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ae=[V((()=>f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)))],je=V((()=>f("span",null," Convert ",-1))),Me=V((()=>f("svg",{class:"w-5 h-5 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1))),Ue={key:0,class:"flex flex-wrap shadow-2xl rounded-lg"},Re={class:"w-full flex justify-between"},He={class:"border-2 border-gray-200 rounded-md p-2 flex flex-wrap flex-row gap-2"},Pe={class:"w-auto text-center"},Ve=["src"],De={class:"text-xs"},Ee={key:0},Fe={key:1},Be={class:"relative flex-grow"},Se={key:0,class:"w-full flex flex-wrap"},Te={class:"md:w-1/2 mx-auto justify-center"},ze={class:"dropdown inline-block relative py-1 group"},Oe=H('<button class="text-xs bg-transparent hover:bg-white-400 text-violet-500 border-2 border-violet-500 font-bold py-1 px-1 rounded inline-flex items-center transition-all duration-300" data-v-ce0409ff><svg xmlns="http://www.w3.org/2000/svg" class="h-2 mx-1 w-2 md:h-2 md:w-2" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-ce0409ff><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-ce0409ff></path><path d="M4 5h7" data-v-ce0409ff></path><path d="M9 3v2c0 4.418 -2.239 8 -5 8" data-v-ce0409ff></path><path d="M5 9c0 2.144 2.952 3.908 6.7 4" data-v-ce0409ff></path><path d="M12 20l4 -9l4 9" data-v-ce0409ff></path><path d="M19.1 18h-6.2" data-v-ce0409ff></path></svg><span data-v-ce0409ff>Select Language</span></button>',1),Ze={class:"dropdown-menu hidden group-hover:block group w-full absolute text-left text-gray-700 pt-1 w-full text-sm bg-white border border-gray-300 rounded shadow-lg",style:{"max-height":"200px","overflow-y":"auto"}},Ie=["onClick"],Ye=["onClick"],Xe=["onClick"],_e=["onClick"],qe={class:"md:w-1/2 flex flex-row justify-end my-1"},Ne=["onClick"],$e=H('<svg xmlns="http://www.w3.org/2000/svg" width="15px" height="15px" viewBox="0 0 400 400" fill="#000000" data-v-ce0409ff><g stroke-width="0" data-v-ce0409ff></g><g stroke-linecap="round" stroke-linejoin="round" data-v-ce0409ff></g><g data-v-ce0409ff><g data-v-ce0409ff><path d="M325,105H250a5,5,0,0,1-5-5V25a5,5,0,1,1,10,0V95h70a5,5,0,0,1,0,10Z" data-v-ce0409ff></path> <path d="M325,154.83a5,5,0,0,1-5-5V102.07L247.93,30H100A20,20,0,0,0,80,50v98.17a5,5,0,0,1-10,0V50a30,30,0,0,1,30-30H250a5,5,0,0,1,3.54,1.46l75,75A5,5,0,0,1,330,100v49.83A5,5,0,0,1,325,154.83Z" data-v-ce0409ff></path>
1 <path d="M300,380H100a30,30,0,0,1-30-30V275a5,5,0,0,1,10,0v75a20,20,0,0,0,20,20H300a20,20,0,0,0,20-20V275a5,5,0,0,1,10,0v75A30,30,0,0,1,300,380Z" data-v-ce0409ff></path> <path d="M275,280H125a5,5,0,0,1,0-10H275a5,5,0,0,1,0,10Z" data-v-ce0409ff></path> <path d="M200,330H125a5,5,0,0,1,0-10h75a5,5,0,1,1,0,10Z" data-v-ce0409ff></path> <path d="M325,280H75a30,30,0,0,1-30-30V173.17a30,30,0,0,1,30.19-30l250,1.66a30.09,30.09,0,0,1,29.81,30V250A30,30,0,0,1,325,280ZM75,153.17a20,20,0,0,0-20,20V250a20,20,0,0,0,20,20H325a20,20,0,0,0,20-20V174.83a20.06,20.06,0,0,0-19.88-20l-250-1.66Z" data-v-ce0409ff></path> <path d="M163.16,236H152.85V190.92H138.67v-8.24h38.67v8.24H163.16Z" data-v-ce0409ff></path> <path d="M222.23,236H211l-11.8-21-12.5,21h-8.95l16.88-27.77-14.49-25.55h11.17l9.84,17.73,10.43-17.73h9L205.74,207Z" data-v-ce0409ff></path> <path d="M247.15,236H236.84V190.92H222.66v-8.24h38.67v8.24H247.15Z" data-v-ce0409ff></path></g></g></svg>',1),Ke=["onClick"],We=V((()=>f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",class:"w-4 h-4"},[f("g",{transform:"translate(-2.25 -2.25)"},[f("path",{d:"M5.173,16.787A2.926,2.926,0,0,1,2.25,13.864V5.173A2.926,2.926,0,0,1,5.173,2.25h8.691a2.926,2.926,0,0,1,2.923,2.923v.543a.75.75,0,1,1-1.5,0V5.173A1.424,1.424,0,0,0,13.864,3.75H5.173A1.424,1.424,0,0,0,3.75,5.173v8.691a1.424,1.424,0,0,0,1.423,1.423.75.75,0,0,1,0,1.5Z",transform:"translate(0 0)"}),m(),f("path",{"data-v-5e38c1d8":"",id:"Rectangle_6894","data-name":"Rectangle 6894",d:"M2-.75h9.037A2.753,2.753,0,0,1,13.787,2v9.037a2.753,2.753,0,0,1-2.75,2.75H2a2.753,2.753,0,0,1-2.75-2.75V2A2.753,2.753,0,0,1,2-.75Zm9.037,13.037a1.251,1.251,0,0,0,1.25-1.25V2A1.251,1.251,0,0,0,11.037.75H2A1.251,1.251,0,0,0,.75,2v9.037A1.251,1.251,0,0,0,2,12.287Z",transform:"translate(8.463 8.463)"})])],-1))),Ge=["innerHTML"],Je={key:2,class:"w-full min-h-fit"},Qe={class:"flex flex-wrap flex-row w-full justify-between items-center px-4"},et=H('<div class="flex flex-wrap justify-between flex-row items-center gap-2" data-v-ce0409ff><img src="/images/limit-img.webp" class="w-12 mx-auto" data-v-ce0409ff><div class="text-start" data-v-ce0409ff><p class="text-md w-full font-bold" data-v-ce0409ff>No Text Found</p><p class="text-sm w-full" data-v-ce0409ff>You can try again if you think something is wrong.</p></div></div>',1),tt={class:"flex flex-wrap flex-col gap-4 justify-center"},lt=["onClick"],ot=V((()=>f("svg",{viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5 inline"},[f("path",{"data-v-226c004c":"",d:"M16.9998 19.8333C17.7513 19.8333 18.4719 20.1318 19.0033 20.6632C19.5346 21.1946 19.8332 21.9152 19.8332 22.6667C19.8332 23.4181 19.5346 24.1388 19.0033 24.6701C18.4719 25.2015 17.7513 25.5 16.9998 25.5C16.2484 25.5 15.5277 25.2015 14.9964 24.6701C14.465 24.1388 14.1665 23.4181 14.1665 22.6667C14.1665 21.9152 14.465 21.1946 14.9964 20.6632C15.5277 20.1318 16.2484 19.8333 16.9998 19.8333ZM33.2348 12.5517L30.9823 22.3125L21.2498 20.06L26.6332 16.6883C24.6357 13.4583 21.0657 11.3333 16.9998 11.3333C11.404 11.3333 6.75732 15.385 5.83649 20.7258L3.04565 20.23C4.19315 13.5717 10.0015 8.5 16.9998 8.5C22.0715 8.5 26.534 11.1775 29.0415 15.1867L33.2348 12.5517Z",fill:"white"})],-1))),at=V((()=>f("div",{class:"w-full text-center my-2"},[f("div",{class:"cf-turnstile max-w-xs mx-auto","data-sitekey":"0x4AAAAAAAYPnENkBR7iR2js","data-callback":"javascriptCallback"})],-1))),rt={key:3,class:"animate-pulse w-full border-2 border-gray-200 rounded-md min-h-fit"},it=[H('<div class="flex-1 space-y-1 w-4/6 pl-4 pr-8 py-1" data-v-ce0409ff><div class="p-1 bg-pink-800 rounded w-3/4" data-v-ce0409ff></div><div class="space-y-1" data-v-ce0409ff><div class="p-1 bg-pink-800 rounded" data-v-ce0409ff></div><div class="p-1 bg-pink-800 rounded w-5/6" data-v-ce0409ff></div><div class="p-1 bg-pink-800 rounded" data-v-ce0409ff></div><div class="p-1 bg-pink-800 rounded w-4/6" data-v-ce0409ff></div></div></div>',1)],st={key:4,class:"w-full text-xs py-1"},nt=["innerHTML"],dt={key:3,class:"cropper-popup fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 flex flex-col"},ct={class:"bg-white p-4 rounded-lg md:w-[720px] relative"},pt=[V((()=>f("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"violet",height:"13px",width:"13px",version:"1.1",id:"Layer_1",viewBox:"0 0 492 492","xml:space":"preserve"},[f("g",null,[f("g",null,[f("path",{d:"M300.188,246L484.14,62.04c5.06-5.064,7.852-11.82,7.86-19.024c0-7.208-2.792-13.972-7.86-19.028L468.02,7.872    c-5.068-5.076-11.824-7.856-19.036-7.856c-7.2,0-13.956,2.78-19.024,7.856L246.008,191.82L62.048,7.872    c-5.06-5.076-11.82-7.856-19.028-7.856c-7.2,0-13.96,2.78-19.02,7.856L7.872,23.988c-10.496,10.496-10.496,27.568,0,38.052    L191.828,246L7.872,429.952c-5.064,5.072-7.852,11.828-7.852,19.032c0,7.204,2.788,13.96,7.852,19.028l16.124,16.116    c5.06,5.072,11.824,7.856,19.02,7.856c7.208,0,13.968-2.784,19.028-7.856l183.96-183.952l183.952,183.952    c5.068,5.072,11.824,7.856,19.024,7.856h0.008c7.204,0,13.96-2.784,19.028-7.856l16.12-16.116    c5.06-5.064,7.852-11.824,7.852-19.028c0-7.204-2.792-13.96-7.852-19.028L300.188,246z"})])])],-1)))];const ut=i(P,[["render",function(e,t,l,o,a,r){const i=j("Loader2"),s=j("ArrowRight"),n=j("SettingComponent"),d=j("VuePictureCropper"),c=j("CropComponent"),p=j("ErrorPopupComponent");return M(),u("div",null,[o.files.length<1?(M(),u("div",{key:0,class:v(["relative border-2 border-dashed border-violet-300 rounded-2xl p-8 md:p-12 text-center mt-3 mb-5 bg-gradient-to-br from-violet-50/80 to-indigo-50/50 hover:from-violet-100/90 hover:to-indigo-100/70 hover:border-violet-400 transition-all duration-300 cursor-pointer shadow-sm hover:shadow-md group",{"bg-violet-200 border-violet-600":o.dragActive}]),onClick:t[8]||(t[8]=t=>e.$refs.fileInput.click()),onDragover:t[9]||(t[9]=g(((...e)=>o.dragover&&o.dragover(...e)),["prevent"])),onDragleave:t[10]||(t[10]=g(((...e)=>o.dragleave&&o.dragleave(...e)),["prevent"])),onDrop:t[11]||(t[11]=g(((...e)=>o.dropFile&&o.dropFile(...e)),["prevent"]))},[f("div",D,[f("div",E,[f("input",{ref:"fileInput",type:"file",multiple:"",accept:".jpg",class:"hidden",onChange:t[0]||(t[0]=(...e)=>o.handleFileSelection&&o.handleFileSelection(...e))},null,544),F]),f("div",B,[f("div",null,[f("h3",S,h(o.isProcessing?"Processing Files...":"Upload Your Files"),1),f("p",T,h(o.isProcessing?"Please wait while we process your images":"Drag and drop your images here, or click to browse"),1)]),f("div",z,[f("input",{ref:"fileInput",type:"file",multiple:"",accept:".jpg",class:"hidden",onChange:t[1]||(t[1]=(...e)=>o.handleFileSelection&&o.handleFileSelection(...e))},null,544),f("button",{type:"button",class:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-violet-600 to-violet-700 text-white rounded-xl hover:from-violet-700 hover:to-violet-800 font-medium shadow-md hover:shadow-lg transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-violet-500 focus:ring-offset-2",disabled:o.isProcessing,onClick:t[2]||(t[2]=g((t=>e.$refs.fileInput.click()),["stop"]))},[Z,m(" Choose Files ")],8,O),f("button",{type:"button",class:"flex items-center justify-center w-12 h-12 bg-violet-200 text-violet-600 hover:text-white rounded-lg hover:bg-violet-600 hover:shadow-lg transition-all duration-100",onClick:t[3]||(t[3]=g((e=>o.showUrlInput=!o.showUrlInput),["stop"]))},I)]),o.showUrlInput?(M(),u("div",{key:0,class:"max-w-xs mx-auto",onClick:t[7]||(t[7]=g((()=>{}),["stop"]))},[f("div",Y,[x(f("input",{type:"text","onUpdate:modelValue":t[4]||(t[4]=e=>o.fileUrl=e),placeholder:"https://example.com",class:"flex-1 px-3 py-2 text-sm text-gray-900 border-none focus:outline-none focus:ring-0",disabled:o.isProcessing,onKeyup:t[5]||(t[5]=b(((...e)=>o.handleUpload&&o.handleUpload(...e)),["enter"]))},null,40,X),[[w,o.fileUrl]]),o.fileUrl?(M(),u("div",_)):y("",!0),o.fileUrl?(M(),u("button",{key:1,type:"button",onClick:t[6]||(t[6]=g(((...e)=>o.handleUpload&&o.handleUpload(...e)),["stop"])),class:"px-3 text-violet-600 hover:text-violet-800 ml-1 transition-colors duration-100 flex items-center justify-center",disabled:o.isProcessing},[o.isProcessing?(M(),k(i,{key:0,class:"w-4 h-4 animate-spin"})):(M(),k(s,{key:1,class:"w-5 h-5"}))],8,q)):y("",!0)])])):y("",!0)]),N])],34)):y("",!0),this.files.length&&!this.submitted?(M(),u("div",$,[f("div",K," Files Uploaded ("+h(o.files.length)+") ",1),f("div",W,[(M(!0),u(C,null,L(o.files,((e,l)=>(M(),u("div",{key:e.id||l,class:"group relative bg-white border-2 border-gray-200 rounded-xl p-3 shadow-sm hover:shadow-md hover:border-violet-300 transition-all duration-200 cursor-move",draggable:!0,onDragstart:e=>o.handleDragStart(l,e),onDragover:t[12]||(t[12]=g(((...e)=>o.handleDragOver&&o.handleDragOver(...e)),["prevent"])),onDrop:g((e=>o.handleDrop(l,e)),["prevent"]),onDragend:t[13]||(t[13]=(...e)=>o.handleDragEnd&&o.handleDragEnd(...e))},[f("div",J,[e.isLoading?(M(),u("div",Q,ee)):y("",!0),f("img",{src:e.dataURL,alt:"File image",class:"w-full h-32 object-cover rounded-lg"},null,8,te),f("button",{onClick:t=>o.remove(o.files.indexOf(e)),class:"absolute -top-2 -right-2 bg-violet-400 hover:bg-violet-500 text-white rounded-md p-1 shadow-md opacity-0 group-hover:opacity-100 transition-all duration-200","aria-label":"Remove file"},oe,8,le)]),f("div",ae,[f("p",{class:"font-medium text-sm text-gray-800 truncate",title:e.name},h(e.name),9,re),f("p",ie,h(Math.floor(e.file.size/1024))+" KB",1)]),f("div",se,[f("button",{onClick:e=>o.CropperPopupSet(l),class:"flex-1 p-2 bg-violet-50 hover:bg-violet-100 text-violet-600 rounded-lg transition-colors duration-200 group/btn",title:"Rotate Left"},de,8,ne),f("button",{onClick:e=>o.CropperPopupSet(l),class:"flex-1 p-2 bg-violet-50 hover:bg-violet-100 text-violet-600 rounded-lg transition-colors duration-200 group/btn",title:"Rotate Right"},pe,8,ce),f("button",{onClick:e=>o.CropperPopupSet(l),class:"flex-1 p-2 bg-violet-50 hover:bg-violet-100 text-violet-600 rounded-lg transition-colors duration-200",title:"Crop"},ve,8,ue)])],40,G)))),128)),f("div",{onClick:t[15]||(t[15]=t=>e.$refs.fileInput.click()),onDragover:t[16]||(t[16]=g(((...e)=>o.dragover&&o.dragover(...e)),["prevent"])),onDragleave:t[17]||(t[17]=g(((...e)=>o.dragleave&&o.dragleave(...e)),["prevent"])),onDrop:t[18]||(t[18]=g(((...e)=>o.dropFile&&o.dropFile(...e)),["prevent"])),class:v([{"bg-violet-50/50 border-violet-400":o.dragActive},"group bg-gray-50 border-2 border-dashed border-gray-300 rounded-xl p-3 cursor-pointer hover:border-violet-400 hover:bg-violet-50/50 transition-all duration-200 flex flex-col items-center justify-center min-h-[200px]"])},[f("div",ge,[fe,f("input",{ref:"fileInput",type:"file",multiple:"",accept:".jpg",class:"hidden",onChange:t[14]||(t[14]=(...e)=>o.handleFileSelection&&o.handleFileSelection(...e))},null,544),he,me])],34)])])):y("",!0),this.files.length&&!this.submitted?(M(),u("div",xe,[we,f("div",be,[o.files.length>0&&!o.conversionCompleted?(M(),u("button",{key:0,onClick:t[19]||(t[19]=(...e)=>o.uploadFiles&&o.uploadFiles(...e)),disabled:o.disableConvertButton,class:v([{"bg-violet-300":o.disableConvertButton,"bg-violet-500":!o.disableConvertButton,"hover:bg-violet-500 hover:shadow-sm":!o.disableConvertButton},"flex items-center gap-2 py-2 px-5 rounded-md text-white bg-violet-600 hover:bg-violet-800 disabled:bg-violet-300 disabled:cursor-not-allowed transition shadow-md"])},[o.isLoading?(M(),u("svg",ke,Ce)):(M(),u("svg",Le,Ae)),je],10,ye)):y("",!0),f("button",{onClick:t[20]||(t[20]=e=>
1o.files=[]),class:"flex items-center py-2 px-4 rounded-md bg-gray-500 hover:bg-gray-600 text-white shadow-md transition"},[Me,m(" Clear All ")])])])):y("",!0),f("div",null,[this.files.length&&this.submitted?(M(),u("div",Ue,[f("div",Re,[f("h3",null,"Results("+h(this.files.length)+")",1),o.files.length>1?(M(),u("button",{key:0,class:"text-xs bg-transparent hover:bg-white-400 text-violet-500 border-2 border-violet-500 font-bold py-1 px-1 rounded inline-flex items-center transition-all duration-300",onClick:t[21]||(t[21]=(...e)=>o.downloadAllDocs&&o.downloadAllDocs(...e))},"Download All")):y("",!0)]),(M(!0),u(C,null,L(o.files,((e,t)=>(M(),u("div",{class:"p-3 my-1 flex flex-wrap flex-col w-full",key:t},[f("div",He,[f("div",Pe,[f("img",{src:e.dataURL,class:"rounded-lg h-20 mx-auto object-contain",style:{"aspect-ratio":"16/9","object-fit":"cover"}},null,8,Ve),f("span",De,[e.name.length<10?(M(),u("span",Ee,h(e.name),1)):(M(),u("span",Fe,h(".."+e.name.substr(e.name.length-10)),1)),m(" - "+h(e.reslut),1)])]),f("div",Be,[e.text?(M(),u("div",Se,[f("div",Te,[m(" Translate into: "),f("div",ze,[Oe,f("ul",Ze,[f("li",null,[f("a",{onClick:t=>o.translate(o.files.indexOf(e),"en","English"),class:"cursor-pointer block mx-auto p-1 hover:bg-violet-500 hover:text-white"},"English",8,Ie)]),f("li",null,[f("a",{onClick:t=>o.translate(o.files.indexOf(e),"es","Spanish"),class:"cursor-pointer block mx-auto p-1 hover:bg-violet-500 hover:text-white"},"Spanish",8,Ye)]),f("li",null,[f("a",{onClick:t=>o.translate(o.files.indexOf(e),"ar","Arabic"),class:"cursor-pointer block mx-auto p-1 hover:bg-violet-500 hover:text-white"},"Arabic",8,Xe)]),f("li",null,[f("a",{onClick:t=>o.translate(o.files.indexOf(e),"hi","Hindi"),class:"cursor-pointer block mx-auto p-1 hover:bg-violet-500 hover:text-white"},"Hindi",8,_e)])])])]),f("div",qe,[e.text?(M(),u("button",{key:0,onClick:t=>o.downloadDoc(e.text),class:"cursor-pointer mx-2 inline-flex gap-1 items-center py-[5px] px-[8px] text-xs rounded hover:bg-gray-400 bg-gray-300 justify-center"},[$e,m(" Download .doc file ")],8,Ne)):y("",!0),e.text?(M(),u("button",{key:1,onClick:t=>o.copyText(e.text),title:"Copy Text",class:"copy-text gap-2 text-xs inline-flex items-center p-[5px] rounded hover:bg-gray-400 bg-gray-300 justify-center"},[We,m(" Copy To Clipboard ")],8,Ke)):y("",!0)])])):y("",!0),e.uploaded&&e.text?(M(),u("textarea",{key:1,rows:"4",class:"w-full border-2 border-gray-200 rounded-md min-h-fit",innerHTML:e.text},null,8,Ge)):!e.uploaded||null!==e.text&&""!==e.text?(M(),u("div",rt,it)):(M(),u("div",Je,[f("div",Qe,[et,f("div",tt,[f("button",{onClick:t=>o.retryUpload(e),class:"cursor-pointer bg-[#DB2777] w-24 hover:bg-[#c5236b] flex text-center text-xs text-white px-2 py-1 shadow-lg rounded-lg gap-3"},[ot,m(" Re-Try ")],8,lt)])]),at])),e.transltion?(M(),u("div",st,h(e.transltionLang),1)):y("",!0),e.transltion?(M(),u("textarea",{key:5,rows:"4",class:"w-full border-2 border-gray-200 rounded-md min-h-fit",innerHTML:e.transltion},null,8,nt)):y("",!0)])])])))),128))])):y("",!0)]),A(n,{settingPopup:a.settingPopup,"onUpdate:settingPopup":r.updatePopup,title:a.title},null,8,["settingPopup","onUpdate:settingPopup","title"]),o.cropperPopup?(M(),u("div",dt,[f("div",ct,[A(d,{aspectRatio:1,boxStyle:{width:"100%",height:"500px",backgroundColor:"#f8f8f8",margin:"auto"},img:o.pic,options:a.options,onCropend:r.getResult,ref:"cropperRef"},null,8,["img","options","onCropend"]),f("button",{class:"inline-flex items-center my-auto absolute top-5 right-5 z-50 px-3 py-3 rounded-full hover:bg-violet-50 bg-white",onClick:t[22]||(t[22]=e=>o.cropperPopup=!1)},pt),A(c,{isClodeModel:o.cropperPopup,"onUpdate:isClodeModel":t[23]||(t[23]=e=>o.cropperPopup=e),confirmCrop:o.confirmCrop,flipX:r.flipX,flipY:r.flipY,rotateTo:r.rotateTo,reset:r.reset},null,8,["isClodeModel","confirmCrop","flipX","flipY","rotateTo","reset"])])])):y("",!0),A(p,{errorMessage:o.serverErrorMessage,errorHeader:o.yourErrorHeaderVariable,ref:"errorPopup"},null,8,["errorMessage","errorHeader"])])}],["__scopeId","data-v-ce0409ff"]]);export{ut as default};
2//# sourceMappingURL=JpgToWordComponent-5164a3cb.js.map

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.