1import{_ as k}from"./DDa5GI7h.js";import{_ as A}from"./Cibt-LbG.js";import{_ as I}from"./CXcBDEVY.js";import{_ as M}from"./DPJ1Eyzb.js";import{_ as W}from"./3xduB05y.js";import{f as F,u as h,E as D,P as V,a2 as E,H as G,B as d,w as b,o as c,a as T,g as z,b as S,C as a,ab as H,Z as p}from"#entry";import{u as L}from"./C-CT_Gz3.js";import{u as K}from"./BtkDAwqv.js";import{u as R}from"./Bi-096E6.js";import"./CJy8OIgT.js";import"./BJlHthO2.js";import"./BI6mHWaF.js";import"./BW_FzNZC.js";import"./K_3RXKlZ.js";import"./BspM55uw.js";import"./BGrUPpX4.js";import"./CEKZVz-X.js";/* empty css */import"./CmgHvNvM.js";import"./36GKFx9T.js";import"./DvRFuGty.js";import"./DE4O4SPZ.js";import"./DrWHbcBr.js";const Z={class:"px-[60px] py-[45px]"},j="53f127b63d50449fabc250f43e5bbf5a",vt=F({__name:"index",async setup(q){let n,u;h({title:"å¼é¢PPT"});const{$zsFetch:r}=D(),{setGlobalLoading:i}=K(),[f,m]=L(null),[B,_]=L(!1),{formState:o,resetFormState:y}=V(()=>({id:"",fileList:[],education:"0",collapsedTemplate:!0,selectIndex:0,goodsName:"å¼é¢PPT"})),g=E({}),{data:v}=([n,u]=G(async()=>R(async()=>{const[e,t]=await r("/aiWriting/pptTemplate",{body:{templateType:"1"}});return e?[]:t.data.list},"$mbA1zW1l5p")),n=await n,u(),n),C=async e=>{if(o.value.id)return x();i(!0);const t=new FormData;t.append("file",e.fileList[0].file),t.append("templateNo",v.value[e.selectIndex].template_no),t.append("educational",e.education),t.append("goodsId",j),t.append("id",o.value.id??"");const[s,l]=await r("/aiWriting/savePptOrder",{body:t});if(i(!1),s)return p.error(s.message);o.value={...e,id:l.data.id},x()},x=async()=>{i(!0);const[e,t]=await r("/aiWriting/payment",{body:{id:o.value.id}});if(i(!1),e)return p.error(e.message);g.value={...t.data,transType:"0"},m("zsModalPay")},P=async e=>{_(!0);const[t,s]=await r("/aiWriting/fullText",{method:"POST",body:{id:o.value.id,...e},timeout:600*1e3});if(_(!1),t)return p.error(t.message);p.success("订åæäº¤æåã"),m("zsModalPaySuccess")};return(e,t)=>{const s=k,l=A,$=I,w=M,N=W;return c(),d(N,null,{left:b(()=>[S(s,{current:1,"step-list":[{name:"ä¸ä¼ 论æ/éæ©æ¨¡ç",step:1},{name:"ä¸è½½",step:2}]})]),default:b(()=>[T("div",Z,[t[2]||(t[2]=T("div",{class:"text-[22px] text-center"},"å¼é¢PPT",-1)),S(l,{"default-data":a(o),"ppt-list":a(v),"form-keys":["ä¸ä¼ æä»¶","å¦å","模ç"],onSubmit:C},null,8,["default-data","ppt-list"])]),a(f)==="zsModalPay"?(c(),d($,{key:0,title:`è´ä¹°è§£é-${a(o).goodsName}`,"order-info":a(g),loading:a(B),onCancel:t[0]||(t[0]=O=>a(m)("")),onExchange:P,onSuccess:P},null,8,["title","order-info","loading"])):z("",!0),a(f)==="zsModalPaySuccess"?(c(),d(w,{key:1,onClose:a(y),onLeftButton:a(y),onRightButton:t[1]||(t[1]=O=>("navigateTo"in e?e.navigateTo:a(H))("/order/ai"))},null,8,["onClose","onLeftButton"])):z("",!0)]),_:1})}}});
1export{vt 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.