import{d as A,q as f,r as m,x as h,y as b,a as t,W as v,V as k,Q as w,A as s,a7 as B,C,a8 as E,D as y,N as P}from"./index-7945cc5d.js";import{M as u}from"./index-264ec3df.js";import{C as _}from"./index-5e7acd86.js";import{C as F,a as T}from"./index-c991355c.js";import{C as M}from"./index-7ae44f82.js";import{I as O}from"./index-610eeac6.js";import"./index-ce5f9846.js";import"./Checker-cfdc8b8e.js";const x="_woringBook_1ig9h_1",z="_woringHeader_1ig9h_9",S="_leftArrow_1ig9h_14",K="_title_1ig9h_17",R="_woringSecgtion_1ig9h_40",U="_emptyContainer_1ig9h_48",X="_cell_1ig9h_75",I="_iconImg_1ig9h_78",H="_cellTitle_1ig9h_83",J="_cellContent_1ig9h_93",o={woringBook:x,woringHeader:z,leftArrow:S,title:K,woringSecgtion:R,emptyContainer:U,cell:X,iconImg:I,cellTitle:H,cellContent:J},D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAMAAAC5dNAvAAABX1BMVEUAAADn8//w6er//+3869v/6tXn9P/n9P/n8//o8//+69fn8//96tfq9f//7Njo9f/+69ro9f/77d3/6tTn8//96tb67Nz/6tPo8//n8/8crPH669zl8v7769r86tj+6tb/6dT269/u8PL47ODy7+ro8v3v8PD27eP369707ujv7+3s8ffq8vj5697/so//tpT/wqL/qIPt8fTz7eX17eX/yKn/wJ/q8vr/o3z/qoX/tJH/vp3/oXr/pH/o8fn////x7+3/uJb/xqb/vJv/rYn/n3j/xKT/p4D+nnf/rIj/upjm8vzK3uP/sIz/r4v/u5r/yav6075Jrd1Jq9qd0+n/3MyZ1PGb0+3/3tD/yqzp8PX/4tRJr9/r6uzx7en07OL/y6yY1fPs6OhHue3w4dsrsfBSvO3z3dH12Mn8ya79waP/y63d7fjP6PfA4/bL3uXa5OLO4OLp6OFAqt2uo6KtnXa4AAAAGXRSTlMA6hAF6ur46JKEhICAVFRMTMXFxaiokpLFgycpDwAAA+xJREFUWMPU0UEKhDAUA9D8FtpKKaXgYgJzq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71tgWm5PYfI2ZgiE62Kv6c6ml4mlr4ulrLO/b9aaL0t4Ul9F+WD9+7CzcWH3cdchRk/nsfND030f6bitEzhEK7jcEur8Eltz54Bzl9EZ7TyUorYpPW9RCpWNKIFaZVMDKOj3ro4i3pl6ai4KkOaaSQNWbcSa0SEtr/B10hmc4FT6bxV+NFL3uqfSPF3jwRXkXGsmG3iKWva7ybpAqGwvR7lj1fHSllh8AMtbwifpv+6wAAAAAElFTkSuQmCC";function V(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!E(a)}const Y=A({name:"wroing-book",setup(){const a=f(),i=m([]),e=h({loading:!1,list:[],checked:[]}),g=async()=>{e.loading=!0;try{const{data:n}=await y.post("/edu-app/knowledgePoint/studentPage");e.list=n||[]}catch(n){}e.loading=!1},p=n=>{i.value[n].toggle()},d=()=>{try{if(e.checked.length<=0){P("请选择练习知识点");return}a.push({path:"/examination-mode",query:{type:"ai",knowledgePointIds:e.checked.join(",")}})}catch(n){}};return b(()=>{g()}),()=>{let n;return t("div",{class:o.woringBook},[t(u,{position:"top"},{default:()=>[t(v,{border:!1,background:"transparent"},{content:()=>t("div",{class:o.woringHeader},[t("i",{onClick:()=>{k().isApp?w({api:"goBack"}):a.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",o.leftArrow]},null),t("span",{class:o.title},[t("i",null,null)])])})]}),t("div",{class:o.woringSecgtion},[t("div",{class:o.title},[s("请选择练习知识点")]),t(_,{border:!1},{default:()=>[t(F,{modelValue:e.checked,"onUpdate:modelValue":l=>e.checked=l},V(n=e.list.map((l,c)=>t(M,{center:!0,onClick:()=>p(c),class:o.cell},{icon:()=>t(O,{src:D,class:o.iconImg},null),title:()=>t("div",{class:o.cellTitle},[l.name]),label:()=>t("p",{class:o.cellContent},[t("span",null,[l.questionNum]),s("道错题")]),"right-icon":()=>t(T,{name:l.pointId,ref:r=>i.value[c]=r,onClick:r=>r.stopPropagation()},null)})))?n:{default:()=>[n]}),e.list.length<=0&&!e.loading&&t("div",{class:o.emptyContainer},[t(B,{description:"暂无知识点"},null)])]})]),t(u,{position:"bottom",varName:"--bottom-height"},{default:()=>[t("div",{class:"btnGroup"},[t(C,{round:!0,block:!0,type:"primary",onClick:d},{default:()=>[s("确认")]})])]})])}}});export{Y as default};
