diff --git a/assets/css/book-card.css b/assets/css/book-card.css index 9e52d04a..4562e8e6 100644 --- a/assets/css/book-card.css +++ b/assets/css/book-card.css @@ -28,10 +28,19 @@ color: var(--primary-dark); } -.book-cards .book-card .book-info p { +.book-cards .book-card .book-info * { @apply text-base m-0; } +.book-cards .book-card .book-info ol { + @apply list-decimal list-inside; +} + +.book-cards .book-card .book-info ul { + @apply list-disc list-inside; +} + + .book-cards .book-card .book-info > p:first-of-type { @apply text-sm; } @@ -57,7 +66,7 @@ @apply mb-2; } -.book-cards .book-card .book-info .book-description.line-clamp *:not(a):not(em):not(del):not(span):not(strong):not(u) { +.book-cards .book-card .book-info .book-description.line-clamp *:not(a):not(em):not(del):not(span):not(strong):not(u):not(li) { display: contents; } diff --git a/dist/assets/app-9952496b.js b/dist/assets/app-9952496b.js new file mode 100644 index 00000000..021e31d3 --- /dev/null +++ b/dist/assets/app-9952496b.js @@ -0,0 +1,5 @@ +var it=!1,st=!1,Y=[],ot=-1;function si(e){oi(e)}function oi(e){Y.includes(e)||Y.push(e),ai()}function yn(e){let t=Y.indexOf(e);t!==-1&&t>ot&&Y.splice(t,1)}function ai(){!st&&!it&&(it=!0,queueMicrotask(li))}function li(){it=!1,st=!0;for(let e=0;ee.effect(t,{scheduler:n=>{at?si(n):n()}}),mn=e.raw}function Ut(e){re=e}function di(e){let t=()=>{};return[r=>{let i=re(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(s=>s())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),_e(i))},i},()=>{t()}]}var vn=[],bn=[],$n=[];function fi(e){$n.push(e)}function xn(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,bn.push(t))}function hi(e){vn.push(e)}function pi(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function wn(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var St=new MutationObserver(Mt),Et=!1;function At(){St.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Et=!0}function Sn(){gi(),St.disconnect(),Et=!1}var ue=[],Ve=!1;function gi(){ue=ue.concat(St.takeRecords()),ue.length&&!Ve&&(Ve=!0,queueMicrotask(()=>{_i(),Ve=!1}))}function _i(){Mt(ue),ue.length=0}function x(e){if(!Et)return e();Sn();let t=e();return At(),t}var Dt=!1,Te=[];function yi(){Dt=!0}function mi(){Dt=!1,Mt(Te),Te=[]}function Mt(e){if(Dt){Te=Te.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let s=0;so.nodeType===1&&t.push(o)),e[s].removedNodes.forEach(o=>o.nodeType===1&&n.push(o))),e[s].type==="attributes")){let o=e[s].target,a=e[s].attributeName,l=e[s].oldValue,c=()=>{r.has(o)||r.set(o,[]),r.get(o).push({name:a,value:o.getAttribute(a)})},u=()=>{i.has(o)||i.set(o,[]),i.get(o).push(a)};o.hasAttribute(a)&&l===null?c():o.hasAttribute(a)?(u(),c()):u()}i.forEach((s,o)=>{wn(o,s)}),r.forEach((s,o)=>{vn.forEach(a=>a(o,s))});for(let s of n)if(!t.includes(s)&&(bn.forEach(o=>o(s)),s._x_cleanups))for(;s._x_cleanups.length;)s._x_cleanups.pop()();t.forEach(s=>{s._x_ignoreSelf=!0,s._x_ignore=!0});for(let s of t)n.includes(s)||s.isConnected&&(delete s._x_ignoreSelf,delete s._x_ignore,$n.forEach(o=>o(s)),s._x_ignore=!0,s._x_ignoreSelf=!0);t.forEach(s=>{delete s._x_ignoreSelf,delete s._x_ignore}),t=null,n=null,r=null,i=null}function En(e){return me(V(e))}function ye(e,t,n){return e._x_dataStack=[t,...V(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function V(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?V(e.host):e.parentNode?V(e.parentNode):[]}function me(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let s=Object.getOwnPropertyDescriptor(i,r);if(s.get&&s.get._x_alreadyBound||s.set&&s.set._x_alreadyBound)return!0;if((s.get||s.set)&&s.enumerable){let o=s.get,a=s.set,l=s;o=o&&o.bind(t),a=a&&a.bind(t),o&&(o._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(i,r,{...l,get:o,set:a})}return!0}return!1})||{})[r],set:(n,r,i)=>{let s=e.find(o=>o.hasOwnProperty(r));return s?s[r]=i:e[e.length-1][r]=i,!0}});return t}function An(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([s,{value:o,enumerable:a}])=>{if(a===!1||o===void 0)return;let l=i===""?s:`${i}.${s}`;typeof o=="object"&&o!==null&&o._x_interceptor?r[s]=o.initialize(e,l,s):t(o)&&o!==r&&!(o instanceof Element)&&n(o,l)})};return n(e)}function Dn(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,s){return e(this.initialValue,()=>vi(r,i),o=>lt(r,i,o),i,s)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(s,o,a)=>{let l=r.initialize(s,o,a);return n.initialValue=l,i(s,o,a)}}else n.initialValue=r;return n}}function vi(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function lt(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),lt(e[t[0]],t.slice(1),n)}}var Mn={};function O(e,t){Mn[e]=t}function ct(e,t){return Object.entries(Mn).forEach(([n,r])=>{let i=null;function s(){if(i)return i;{let[o,a]=Fn(t);return i={interceptor:Dn,...o},xn(t,a),i}}Object.defineProperty(e,`$${n}`,{get(){return r(t,s())},enumerable:!1})}),e}function bi(e,t,n,...r){try{return n(...r)}catch(i){he(i,e,t)}}function he(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} + +${n?'Expression: "'+n+`" + +`:""}`,t),setTimeout(()=>{throw e},0)}var Se=!0;function Tn(e){let t=Se;Se=!1;let n=e();return Se=t,n}function H(e,t,n={}){let r;return E(e,t)(i=>r=i,n),r}function E(...e){return kn(...e)}var kn=Cn;function $i(e){kn=e}function Cn(e,t){let n={};ct(n,e);let r=[n,...V(e)],i=typeof t=="function"?xi(r,t):Si(r,t,e);return bi.bind(null,e,t,i)}function xi(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let s=t.apply(me([r,...e]),i);ke(n,s)}}var et={};function wi(e,t){if(et[e])return et[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,s=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(o){return he(o,t,e),Promise.resolve()}})();return et[e]=s,s}function Si(e,t,n){let r=wi(t,n);return(i=()=>{},{scope:s={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let a=me([s,...e]);if(typeof r=="function"){let l=r(r,a).catch(c=>he(c,n,t));r.finished?(ke(i,r.result,a,o,n),r.result=void 0):l.then(c=>{ke(i,c,a,o,n)}).catch(c=>he(c,n,t)).finally(()=>r.result=void 0)}}}function ke(e,t,n,r,i){if(Se&&typeof t=="function"){let s=t.apply(n,r);s instanceof Promise?s.then(o=>ke(e,o,n,r)).catch(o=>he(o,i,t)):e(s)}else typeof t=="object"&&t instanceof Promise?t.then(s=>e(s)):e(t)}var Tt="x-";function ie(e=""){return Tt+e}function Ei(e){Tt=e}var ut={};function b(e,t){return ut[e]=t,{before(n){if(!ut[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const r=K.indexOf(n);K.splice(r>=0?r:K.indexOf("DEFAULT"),0,e)}}}function kt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let s=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),o=On(s);s=s.map(a=>o.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(s)}let r={};return t.map(Rn((s,o)=>r[s]=o)).filter(Bn).map(Mi(r,n)).sort(Ti).map(s=>Di(e,s))}function On(e){return Array.from(e).map(Rn()).filter(t=>!Bn(t))}var dt=!1,ce=new Map,Ln=Symbol();function Ai(e){dt=!0;let t=Symbol();Ln=t,ce.set(t,[]);let n=()=>{for(;ce.get(t).length;)ce.get(t).shift()();ce.delete(t)},r=()=>{dt=!1,n()};e(n),r()}function Fn(e){let t=[],n=a=>t.push(a),[r,i]=di(e);return t.push(i),[{Alpine:be,effect:r,cleanup:n,evaluateLater:E.bind(E,e),evaluate:H.bind(H,e)},()=>t.forEach(a=>a())]}function Di(e,t){let n=()=>{},r=ut[t.type]||n,[i,s]=Fn(e);pi(e,t.original,s);let o=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),dt?ce.get(Ln).push(r):r())};return o.runCleanups=s,o}var In=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Pn=e=>e;function Rn(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=Nn.reduce((s,o)=>o(s),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Nn=[];function Ct(e){Nn.push(e)}function Bn({name:e}){return zn().test(e)}var zn=()=>new RegExp(`^${Tt}([^:^.]+)\\b`);function Mi(e,t){return({name:n,value:r})=>{let i=n.match(zn()),s=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:s?s[1]:null,modifiers:o.map(l=>l.replace(".","")),expression:r,original:a}}}var ft="DEFAULT",K=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",ft,"teleport"];function Ti(e,t){let n=K.indexOf(e.type)===-1?ft:e.type,r=K.indexOf(t.type)===-1?ft:t.type;return K.indexOf(n)-K.indexOf(r)}function de(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function R(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>R(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)R(r,t),r=r.nextElementSibling}function N(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Jt=!1;function ki(){Jt&&N("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Jt=!0,document.body||N("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `