!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i{i=e.d,o=e.x,l=e.r,a=e.y,s=e.a7,c=e.a,u=e.V,g=e.A,d=e.F,p=e.C,v=e.q,m=e.S,f=e.R,y=e.a5,h=e.h,b=e.D,w=e.E},e=>{j=e.M},e=>{N=e.g,_=e.s,x=e.a,A=e.b},e=>{k=e.I},null],execute:function(){const Y="_woringBook_uv0qg_1",S="_woringHeader_uv0qg_6",O="_leftArrow_uv0qg_11",E="_title_uv0qg_14",R="_woringSecgtion_uv0qg_37",C="_woringImg_uv0qg_44",U=""+new URL("ai-exam-ac155650.png",n.meta.url).href,q=""+new URL("woring-practice-5f4735ad.png",n.meta.url).href,z=""+new URL("woring-stat-fe2f9a06.png",n.meta.url).href,B=i({name:"woring",emits:["close"],setup(e,{emit:n}){const i=o({box:{height:""},show:!1,steps:[{ele:"",eleRect:{},img:N("woring1.png"),handStyle:{left:"4.5rem"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"0.6rem",left:"0.8rem"},btnsStyle:{top:"5.2rem",left:"3.5rem"},type:"bottom"},{ele:"",eleRect:{},img:N("woring2.png"),handStyle:{left:"4.5rem"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"0.6rem",left:"0.8rem"},btnsStyle:{top:"5.2rem",left:"3.5rem"},type:"bottom"},{ele:"",img:N("woring3.png"),handStyle:{top:"-1.39rem",left:"4.5rem",transform:"rotate(180deg)"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"-7.4rem",left:"0.8rem"},btnsStyle:{top:"-2.6rem",left:"2.11rem"}}],step:0}),v=l(!1),m=l(!0),f=l({}),y=function(){var e=r((function*(){try{const t=yield x({guideTag:"guideInfo"});var e;if(t.data)f.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else f.value={};f.value&&f.value.woring?v.value=!1:v.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}(),h=()=>{const e=document.getElementById(`woring-${i.step}`);if(e){var t;const n=e.getBoundingClientRect();i.box={left:n.x+"px",top:n.y+"px",width:n.width+"px",height:n.height+"px"},console.log(null===(t=i.box)||void 0===t?void 0:t.height)}else w()};a((()=>{setTimeout((()=>{document.documentElement.clientWidth>750?(console.log("PAD"),m.value=!0):(m.value=!1,console.log("PHONE")),h(),y()}),500),window.addEventListener("resize",b)}));const b=()=>{h()};s((()=>{window.removeEventListener("resize",b)}));const w=()=>{i.step>=3?j():(i.step=i.step+1,h())},j=function(){var e=r((function*(){f.value?f.value.woring=!0:f.value={woring:!0};try{yield A({guideTag:"guideInfo",guideValue:JSON.stringify(f.value)})}catch(e){console.log(e)}v.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>c(u,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",_.guidePopup],show:v.value,"onUpdate:show":e=>v.value=e},{default:()=>[c("div",{class:_.content,onClick:()=>w()},[i.step!=i.steps.length-1&&c("div",{class:[_.backBtn,_.right],onClick:e=>{e.stopPropagation(),j()}},[g("跳过")]),c("div",{class:[_.box,_.noscalc],style:t({},i.box),id:`modeType-${i.step}`},[i.steps.map(((e,t)=>{var n,r,o,l;return c("div",{onClick:e=>e.stopPropagation(),class:_.item,style:"bottom"==e.type?{display:t===i.step?"":"none",left:`${null===(n=e.eleRect)||void 0===n?void 0:n.left}px`,top:`${null===(r=i.box)||void 0===r?void 0:r.height}`}:{display:t===i.step?"":"none",left:`${null===(o=e.eleRect)||void 0===o?void 0:o.left}px`,top:`${null===(l=e.eleRect)||void 0===l?void 0:l.top}px`}},[c("img",{class:_.img,style:e.imgStyle,src:e.img},null),c("img",{class:_.iconHead,style:e.handStyle,src:N("indexDot.png")},null),c("div",{class:_.btns,style:e.btnsStyle},[i.step+1==i.steps.length?c(d,null,[c(p,{class:[_.btn,_.sacleBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{i.step=0,h()}},{default:()=>[g("再看一遍")]}),c(p,{class:[_.btn,_.endBtn,_.sacleBtn],round:!0,type:"primary",onClick:()=>j()},{default:()=>[g("完成")]})]):c(p,{class:[_.btn,_.sacleBtn],round:!0,type:"primary",onClick:()=>w()},{default:()=>[g("下一步 ("),i.step+1,g("/"),i.steps.length,g(")")]})])])}))])])]})}});e("default",i({name:"wroing-book",setup(){const e=v(),t=function(){var t=r((function*(){try{const{data:t}=yield b.post("/edu-app/studentUnitExamination/errorEdition",{hideLoading:!1,data:{page:1,rows:50}});(t||{}).total>0?e.push({path:"/error-question-mode"}):setTimeout((()=>{w("暂无错题")}),100)}catch(t){}}));return function(){return t.apply(this,arguments)}}();return()=>c("div",{class:Y},[c(j,{position:"top"},{default:()=>[c(m,{border:!1,background:"transparent"},{content:()=>c("div",{class:S},[c("i",{onClick:()=>{f().isApp?y({api:"goBack"}):e.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",O]},null),c("span",{class:E},[c("i",null,null)])])})]}),c("div",{class:R},[c(k,h({id:"woring-0"},{lazyLoad:!0,src:z,class:C,onClick:()=>e.push("wroing-stat")}),null),c(k,h({id:"woring-1"},{lazyLoad:!0,src:q,class:C,onClick:t}),null),c(k,h({id:"woring-2"},{lazyLoad:!0,src:U,class:C,onClick:()=>e.push("ai-exam")}),null)]),c(B,null,null)])}}))}}}))}();