import{k as A,d as f,q as m,r as h,x as b,y as v,a as t,S as k,R as w,a4 as C,A as r,a0 as y,C as B,a1 as E,D as P,E as _}from"./index-971588a5.js";import{M as u}from"./index-b5096637.js";import{s as F,C as T}from"./index-7d44a89e.js";import{C as M}from"./index-d00f4365.js";import{C as O}from"./index-a1fa647c.js";import{I as S}from"./index-96cc08e7.js";import"./Checker-bb762d90.js";const x=A(F),z="_woringBook_1ch6t_1",R="_woringHeader_1ch6t_9",I="_leftArrow_1ch6t_14",K="_title_1ch6t_17",U="_woringSecgtion_1ch6t_39",X="_emptyContainer_1ch6t_47",H="_cell_1ch6t_74",J="_iconImg_1ch6t_77",D="_cellTitle_1ch6t_82",q="_cellContent_1ch6t_92",o={woringBook:z,woringHeader:R,leftArrow:I,title:K,woringSecgtion:U,emptyContainer:X,cell:H,iconImg:J,cellTitle:D,cellContent:q},V="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+xJREFUWMPU0UEKhDAUA9D8FtpKKaXgYgJzqTnA7A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5PYfI2ZgiE62Kv6c6ml4mlr4ulrLO/b9aaL0t4Ul9F+WD9+7CzcWH3cdchRk/nsfND030f6bitEzhEK7jcEur8Eltz54Bzl9EZ7TyUorYpPW9RCpWNKIFaZVMDKOj3ro4i3pl6ai4KkOaaSQNWbcSa0SEtr/B10hmc4FT6bxV+NFL3uqfSPF3jwRXkXGsmG3iKWva7ybpAqGwvR7lj1fHSllh8AMtbwifpv+6wAAAAAElFTkSuQmCC";function j(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!E(a)}const $=f({name:"wroing-book",setup(){const a=m(),s=h([]),e=b({loading:!1,list:[],checked:[]}),p=async()=>{e.loading=!0;try{const{data:n}=await P.post("/edu-app/knowledgePoint/studentPage");e.list=n||[]}catch(n){}e.loading=!1},d=n=>{s.value[n].toggle()},g=()=>{try{if(e.checked.length<=0){_("请选择练习知识点");return}a.push({path:"/examination-mode",query:{type:"ai",knowledgePointIds:e.checked.join(",")}})}catch(n){}};return v(()=>{p()}),()=>{let n;return t("div",{class:o.woringBook},[t(u,{position:"top"},{default:()=>[t(k,{border:!1,background:"transparent"},{content:()=>t("div",{class:o.woringHeader},[t("i",{onClick:()=>{w().isApp?C({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},[r("请选择练习知识点")]),t(M,{border:!1},{default:()=>[t(x,{modelValue:e.checked,"onUpdate:modelValue":l=>e.checked=l},j(n=e.list.map((l,i)=>t(O,{center:!0,onClick:()=>d(i),class:o.cell},{icon:()=>t(S,{src:V,class:o.iconImg},null),title:()=>t("div",{class:o.cellTitle},[l.name]),label:()=>t("p",{class:o.cellContent},[t("span",null,[l.questionNum]),r("道错题")]),"right-icon":()=>t(T,{name:l.pointId,ref:c=>s.value[i]=c,onClick:c=>c.stopPropagation()},null)})))?n:{default:()=>[n]}),e.list.length<=0&&!e.loading&&t("div",{class:o.emptyContainer},[t(y,null,null)])]})]),t(u,{position:"bottom",varName:"--bottom-height"},{default:()=>[t("div",{class:"btnGroup"},[t(B,{round:!0,block:!0,type:"primary",onClick:g},{default:()=>[r("确认")]})])]})])}}});export{$ as default};
