import{_ as h,a as y}from"./BCard.vue_vue_type_script_setup_true_lang-BAaV9t2h-BRkPXOoi.js";import{_ as v,a as k}from"./BCardText.vue_vue_type_script_setup_true_lang-SRGbviaO-lEmvBHzm.js";import{_ as w}from"./BBadge.vue_vue_type_script_setup_true_lang-D9DEOOtU-CS7HajdW.js";import{_ as C}from"./BAlert.vue_vue_type_script_setup_true_lang-BoLIpZFk-cCJ5v_dt.js";import{_ as N}from"./BButton.vue_vue_type_script_setup_true_lang-D5Eg7-Zv-DDRCX2AG.js";import{_ as x,d,o,a as _,c,t as i,b as a,w as e,e as n,F as B,r as L,n as R}from"./index-D02r7Zsc.js";import"./dom-DVb-f0ZG-Crdf0-mU.js";import"./useColorVariantClasses-ZDE19TZw-Cvu7SygP.js";import"./useDefaults-DESCdb0p-CFLjYrdG.js";import"./BImg.vue_vue_type_script_setup_true_lang-BJeFN9OT-6jJZkpT2.js";import"./useRadiusElementClasses-DtKYQuWz-DKKObN9q.js";import"./object-0ALvRU0O-3BORTTD-.js";import"./index-C0p9vHHI-DoOEDIMw.js";import"./BLink.vue_vue_type_script_setup_true_lang-Ct47WhzE-DDPYis_D.js";import"./stringUtils-gJJ6T6UC-g5BZrMym.js";import"./ConditionalWrapper.vue_vue_type_script_lang-IX_NpHH--DrWkD0m2.js";import"./BCloseButton.vue_vue_type_script_setup_true_lang-byZmQ_ot-CWP55Z5N.js";import"./BProgress.vue_vue_type_script_setup_true_lang-DDTA5_ZV-eRxVOfNj.js";import"./useId-t29UARy6-BH5d2231.js";import"./useShowHide-717t6y_D-BZTBbOpd.js";import"./classes-BW_GpXTu-AKwVND4h.js";import"./BSpinner.vue_vue_type_script_setup_true_lang-H1MzHypA-D8AXjJB0.js";const V={data:function(){return{}},computed:{readinglists(){return this.get("readinglists")}}},F={class:"d-flex align-items-center"},O={class:"h3 title text-secondary text-center mb-0 flex-grow-1 me-5"},P={class:"d-grid gap-2 my-2"},T={key:1};function j(s,r,z,D,E,m){const p=N,u=C,f=w,g=y,l=k,$=h,b=v;return o(),d("div",null,[_("div",F,[_("h1",O,i(s.$t("readinglists.listTitle")),1)]),_("div",P,[a(p,{variant:"outline-primary",class:"m-1",onClick:r[0]||(r[0]=t=>s.$router.push({name:"addreadinglist"}))},{default:e(()=>[r[1]||(r[1]=_("i",{class:"bi bi-plus","aria-hidden":"true"},null,-1)),n(" "+i(s.$t("readinglists.newReadingList")),1)]),_:1})]),m.readinglists.length==0?(o(),c(u,{key:0,variant:"info",show:""},{default:e(()=>[n(i(s.$t("readinglists.noReadingLists")),1)]),_:1})):(o(),d("div",T,[a(b,{class:"m-2"},{default:e(()=>[(o(!0),d(B,null,L(m.readinglists,t=>(o(),c($,{key:t.id,onClick:S=>s.$router.push({name:"readinglistitem",params:{id:t.reading_list_id}}),class:"overflow-hidden shadow p-3 my-3 rounded"},{default:e(()=>[a(g,{class:"d-flex justify-content-between align-items-center"},{default:e(()=>[n(i(t.reading_list_name)+" ",1),a(f,{variant:"badge",pill:""},{default:e(()=>[n(i(t.reading_list_notice_ids.length),1)]),_:2},1024)]),_:2},1024),a(l,null,{default:e(()=>[n(i(t.reading_list_caption),1)]),_:2},1024),a(l,null,{default:e(()=>[n(i(t.reading_list_date),1)]),_:2},1024),a(l,null,{default:e(()=>[n(i(t.reading_list_public==1?s.$t("readinglists.isPublic"):s.$t("readinglists.isNotPublic")),1)]),_:2},1024),a(l,{class:R(t.reading_list_readonly==1?"text-warning":"text-success")},{default:e(()=>[n(i(t.reading_list_readonly==1?s.$t("readinglists.isReadOnly"):s.$t("readinglists.isNotReadOnly")),1)]),_:2},1032,["class"])]),_:2},1032,["onClick"]))),128))]),_:1})]))])}const lt=x(V,[["render",j]]);export{lt as default};
