1import{e as Q,j as H,k as Y,c as Z,l as ee,r as te,d as F}from"./DreXj5-j.js";import{_ as se}from"./DHQlqZgf.js";import{e as oe,b as le,f as ae,d as ne,g as re,c as pe,s as ce,_ as ie}from"./DrdF87Z8.js";/* empty css *//* empty css *//* empty css */import{_ as ue,i as de}from"./DWzTklQ1.js";import{_ as me,a as _e,b as xe}from"./De-2Ph06.js";import{_ as I}from"./Ci5Q3ncB.js";import{a as fe}from"./De9c1rRa.js";import{u as he}from"./DUiA8Rxm.js";import{x as ve,c as d,f as D,b as ge,S as we,y as a,Q as c,A as t,I as m,l as T,u as s,O as i,P as v,z as n,M as ye,C as be,a6 as V,D as R,K as G}from"./B8J0x_Tz.js";import"./DivhiOfO.js";import"./Zy69V4Jb.js";const Pe={class:"flex"},ke={class:"w-[720px] h5:w-[6.86rem] px-[20px] pb-[32px] text-[#020815]"},Te={key:0,class:"text-[20px] h5:text-[0.26rem] font-bold"},Ee={key:1,class:"flex items-center text-[20px] h5:text-[0.26rem] font-bold"},Je={class:"text-[14px]"},Oe={class:"mt-[32px] h5:mt-[0.24rem] flex items-center"},Ce={key:0,class:"w-[38px] h-[48px] h5:w-[0.96rem] h5:h-auto",src:me,alt:"Word file"},Fe={key:1,class:"w-[38px] h-[48px] h5:w-[0.96rem] h5:h-auto",src:_e,alt:"Excel file"},De={key:2,class:"w-[38px] h-[48px] h5:w-[0.96rem] h5:h-auto",src:xe,alt:"PowerPoint file"},Ve={key:3,class:"w-[38px] h-[48px] h5:w-[0.96rem] h5:h-auto",src:de,alt:"PDF file"},Re={class:"ml-[22px] flex-1"},Ge={class:"flex justify-between items-end"},Ie={class:"text-[16px] h5:w-[1rem] h5:text-[0.26rem] font-bold truncate max-w-[400px]"},Se={class:"flex items-center"},Le={key:0,class:"text-primary-500 text-[12px]"},Ne={class:"relative mt-[12px] h-[2px] bg-[#F5F5F5] rounded-[4px]"},Ue={class:"mx-auto pt-[40px] pb-[160px] h5:pt-[0.4rem] h5:pb-[2rem] text-center text-[#020815]"},We={class:"text-[64px] font-black h5:font-bold h5:text-[0.6rem]"},$e={class:"mt-[24px] h5:mt-[0.2rem] mx-auto max-w-[1200px] h5:w-[90vw] font-light text-[28px] h5:text-[0.3rem] opacity-50"},je={class:"mt-[40px] flex items-center justify-center"},qe={class:"tetx-[12px] text-[#150302] font-normal"},ze={key:0,class:"w-[12px]",src:I,alt:"hook"},Be={class:"tetx-[12px] text-[#150302] font-normal"},Ke={key:0,class:"w-[12px]",src:I,alt:"hook"},Me={class:"h5:w-[6.68rem] w-[680px] mx-auto"},Xe=ve({__name:"ppt-to-jpg",setup(Ae){fe({titleKey:"page.title.pptToJpg",descriptionKey:"page.meta.pptToJpg",keywordsKey:"page.keywords.pptToJpg",ogImage:"/assets/og/ppt-to-jpg.png"});const f=oe(),{t:p}=le(),S=()=>{F.error(p("uploadError.pptToJpg"))},r=d("PPT"),g=[{label:"PDF",value:"PDF",type:"PDF_TO_JPG",accept:".pdf"},{label:"WORD",value:"WORD",type:"WORD_TO_JPG",accept:".doc,.docx"},{label:"EXCEL",value:"EXCEL",type:"EXCEL_TO_JPG",accept:".xls,.xlsx"},{label:"PPT",value:"PPT",type:"PPT_TO_JPG",accept:".ppt,.pptx"}],h=d("JPG"),L=[{label:"JPG",value:"JPG"}],w=D(()=>{const l=g.find(e=>e.value===r.value);return(l==null?void 0:l.type)||"PDF_TO_WORD"}),N=D(()=>{const l=g.find(e=>e.value===r.value);return(l==null?void 0:l.accept)||".pdf"}),y=d(),U=l=>{y.value=l,q()},{executeOperation:W}=he(),{conversion:$,queryConversionTask:j}=ae(),b=d();let _=null;const x=d(!1),u=d(0),P=d(!1),q=()=>{if(P.value)return;P.value=!0,u.value=0,x.value=!0;const l=5e3,e=100,k=100/(l/e);_=ce(async()=>{u.value+=k,u.value>=100&&(u.value=100,_&&(clearInterval(_),_=null),P.value=!1)},e)},z=ne(),{$track:B,$getPageCode:K}=re(),M=async()=>{B({eventName:"convert_to_JPG_option",pageCode:K(z.currentRoute.value.fullPath),actionCode:"convertToJpgOption",note:w.value}),await W({operationName:"ä¸è½½PDFæä»¶",description:"ä¸è½½ç¼è¾åçPDFæä»¶",requireLogin:!0,requireVip:!0,requiredCredits:20,onExecute:async()=>{f.openProcessing(),x.value=!1;const l=await $(y.value,{conversionEnum:w.value});if(l.status===200){f.closeProcessing();const e=l.data;f.openQuerytask(e,async()=>{await j({taskId:e,conversionEnum:w.value})})}else F.error(l.message||"转æ¢ä»»å¡æäº¤å¤±è´¥")},onSuccess:()=>{f.closeProcessing()},onError:l=>{f.closeProcessing()}})},E=l=>{var e;((e=l.detail)==null?void 0:e.action)==="selectFile"&&b.value&&b.value.selectFile()};return ge(()=>{window.addEventListener("trigger-upload",E)}),we(()=>{window.removeEventListener("trigger-upload",E),_&&clearInterval(_)}),(l,e)=>{const J=Z,k=Q,O=ee,C=H,X=Y,A=se;return n(),a(v,null,[c(k,{modelValue:s(x),"onUpdate:modelValue":e[1]||(e[1]=o=>T(x)?x.value=o:null),"append-to-body":"","show-header":!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,class:"common-center-dialog-wrap"},{header:m(()=>[t("div",Pe,[t("img",{class:"ml-auto mt-[20px] mr-[20px] cursor-pointer",onClick:e[0]||(e[0]=o=>x.value=!1),src:pe,alt:"close"})]),t("div",ke,[s(u)!==100?(n(),a("p",Te,i(s(p)("home.processing.t
1itle")),1)):(n(),a("p",Ee,[e[4]||(e[4]=t("img",{class:"mr-[8px] w-[20px] h-[20px] h5:w-[0.36rem] h5:h-[0.36rem]",src:ue,alt:"checked_green"},null,-1)),t("span",null,i(s(p)("home.processing.done")),1)])),t("p",Je,i(s(p)("home.processing.fileCount")),1),t("div",Oe,[s(r)==="WORD"?(n(),a("img",Ce)):s(r)==="EXCEL"?(n(),a("img",Fe)):s(r)==="PPT"?(n(),a("img",De)):(n(),a("img",Ve)),t("div",Re,[t("div",Ge,[t("div",null,[t("p",Ie,i(s(y)[0].name),1)]),t("div",Se,[s(u)!==100?(n(),a("div",Le," Optimizing⦠")):(n(),a(v,{key:1},[e[5]||(e[5]=t("div",{class:"mr-[12px] flex items-center"},[t("span",{class:"text-[16px] font-bold text-[#606266]"}," JPG ")],-1)),c(J,{onClick:M,class:"w-[104px] !h-[40px] h5:!h-[0.6rem] !rounded-[28px] h5:!rounded-[]",type:"primary"},{default:m(()=>[ye(i(s(p)("home.processing.download")),1)]),_:1})],64))])]),t("div",Ne,[t("div",{class:"absolute left-0 top-0 h-[2px] inline-block bg-primary-500 rounded-[4px]",style:be({width:`${s(u)}%`})},null,4)])])])])]),_:1},8,["modelValue"]),t("div",null,[t("div",Ue,[t("h1",We,i(s(p)("pptToJpg.title")),1),t("h3",$e,i(s(p)("pptToJpg.subtitle")),1),t("div",je,[c(C,{class:"!w-[120px]",modelValue:s(r),"onUpdate:modelValue":e[2]||(e[2]=o=>T(r)?r.value=o:null),placeholder:s(p)("pptToJpg.select")},{default:m(()=>[(n(),a(v,null,V(g,o=>c(O,{key:o.value,label:o.label,value:o.value,class:R(["flex justify-between",[o.value===s(r)?"bg-[rgba(23,59,185,.08)]":""]])},{default:m(()=>[t("span",qe,i(o.label),1),o.value===s(r)?(n(),a("img",ze)):G("",!0)]),_:2},1032,["label","value","class"])),64))]),_:1},8,["modelValue","placeholder"]),c(X,{class:"mx-[10px] !text-[26px]"},{default:m(()=>[c(s(te))]),_:1}),c(C,{class:"!w-[120px]",modelValue:s(h),"onUpdate:modelValue":e[3]||(e[3]=o=>T(h)?h.value=o:null),placeholder:s(p)("pptToJpg.select")},{default:m(()=>[(n(),a(v,null,V(L,o=>c(O,{key:o.value,label:o.label,value:o.value,class:R(["flex justify-between",[o.value===s(h)?"bg-[rgba(23,59,185,.08)]":""]])},{default:m(()=>[t("span",Be,i(o.label),1),o.value===s(h)?(n(),a("img",Ke)):G("",!0)]),_:2},1032,["label","value","class"])),64))]),_:1},8,["modelValue","placeholder"])]),t("div",Me,[c(A,{ref_key:"uploadRef",ref:b,accept:s(N),onFileSelected:U,onUploadError:S},null,8,["accept"])])])])],64)}}}),it=ie(Xe,[["__scopeId","data-v-b76d4c89"]]);export{it as default};
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.