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