@e-llm-studio/citation 0.0.131 → 0.0.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/assests/svg/ButtonCognitiveIcon.js +2 -0
  2. package/dist/assests/svg/ButtonCognitiveIcon.js.map +1 -0
  3. package/dist/cjs/assests/svg/ButtonCognitiveIcon.js +2 -0
  4. package/dist/cjs/assests/svg/ButtonCognitiveIcon.js.map +1 -0
  5. package/dist/cjs/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js +1 -1
  6. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  7. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  8. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  9. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  10. package/dist/cjs/features/Bookemon/Bookemon.js +1 -1
  11. package/dist/cjs/features/Bookemon/BookemonContent.js +1 -1
  12. package/dist/cjs/features/Bookemon/utils/highlight.js +1 -1
  13. package/dist/cjs/features/ChatCitation/ChatCitationRenderer.js +1 -1
  14. package/dist/cjs/features/ChatCitation/components/wrappers/Modal.js +1 -1
  15. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js +1 -1
  16. package/dist/cjs/features/CognitiveDecisioning/CognitiveDecisioningWrapper.module.css.js +1 -1
  17. package/dist/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.js +1 -1
  18. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  19. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  20. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  21. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  22. package/dist/features/Bookemon/Bookemon.js +1 -1
  23. package/dist/features/Bookemon/BookemonContent.js +1 -1
  24. package/dist/features/Bookemon/utils/highlight.js +1 -1
  25. package/dist/features/ChatCitation/ChatCitationRenderer.js +1 -1
  26. package/dist/features/ChatCitation/components/wrappers/Modal.js +1 -1
  27. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.js +1 -1
  28. package/dist/features/CognitiveDecisioning/CognitiveDecisioningWrapper.module.css.js +1 -1
  29. package/dist/types/src/BookemonTest.d.ts.map +1 -1
  30. package/dist/types/src/assests/svg/ButtonCognitiveIcon.d.ts +2 -0
  31. package/dist/types/src/assests/svg/ButtonCognitiveIcon.d.ts.map +1 -0
  32. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +1 -1
  33. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +1 -1
  34. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +6 -1
  35. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +1 -1
  36. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +1 -1
  37. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +1 -1
  38. package/dist/types/src/features/Bookemon/Bookemon.d.ts +1 -1
  39. package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +1 -1
  40. package/dist/types/src/features/Bookemon/BookemonContent.d.ts +1 -1
  41. package/dist/types/src/features/Bookemon/BookemonContent.d.ts.map +1 -1
  42. package/dist/types/src/features/Bookemon/types/citation.types.d.ts +5 -0
  43. package/dist/types/src/features/Bookemon/types/citation.types.d.ts.map +1 -1
  44. package/dist/types/src/features/Bookemon/utils/highlight.d.ts +1 -0
  45. package/dist/types/src/features/Bookemon/utils/highlight.d.ts.map +1 -1
  46. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts +1 -0
  47. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts.map +1 -1
  48. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts +2 -1
  49. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts.map +1 -1
  50. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +1 -1
  51. package/package.json +14 -79
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t,__awaiter as n,__generator as o,__rest as r}from"tslib";import{jsxs as a,jsx as i,Fragment as l}from"react/jsx-runtime";import s from"@mui/material/Pagination";import c from"@mui/material/Skeleton";import{useRef as d,useEffect as u,useState as p}from"react";import g from"react-markdown";import{highlightTermsFunc as h}from"../utils/highlight.js";import{sanitizeHtml as x}from"../../../utils/sanitizeHtml.js";var m={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},quotesPadding:{paddingLeft:"12px"},quoteCard:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"16px",backgroundColor:"#F8FAFC",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",marginBottom:"16px",cursor:"pointer",transition:"transform 0.2s ease, box-shadow 0.2s ease"},quoteText:{fontStyle:"italic",color:"#475569",fontSize:"14px",fontWeight:400,marginBottom:"12px"},quoteMeta:{color:"#475569",fontSize:"12px",fontWeight:400},quoteAuthor:{fontSize:"10px",fontWeight:600,color:"#475569",marginTop:"8px",marginBottom:"18px"},button:{color:"#5928ED",fontSize:"14px",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0,textDecoration:"none",paddingLeft:"12px"},geoLocationsContainer:{marginTop:"24px",marginBottom:"24px"},geoText:{fontSize:"14px",fontWeight:500,cursor:"pointer",color:"#532BED"},geoDivider:{margin:"0 8px",color:"#475abb",backgroundColor:"#475abb",width:"1px",height:"18px",display:"inline-block"},geoLocationFlex:{display:"inline-flex",alignItems:"center",gap:"8px",marginBottom:"8px"},charactersContainer:{marginTop:"16px"},charactersGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px",marginBottom:"16px",paddingLeft:"12px"},characterCard:{border:"1px solid #E5E7EB",borderRadius:"8px",backgroundColor:"#FFFFFF",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"flex-start",gap:"12px",padding:"16px",cursor:"pointer",transition:"transform 0.2s ease, box-shadow 0.2s ease"},avatar:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontSize:"14px",fontWeight:600,flexShrink:0},charName:{fontStyle:"normal",fontWeight:600,color:"#101827",fontSize:"16px"},charDesc:{fontStyle:"normal",fontWeight:400,fontSize:"14px",color:"#6B7280"},retryButton:{backgroundColor:"#5928EC",color:"#fff",padding:"6px 10px",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"12px",fontWeight:"500"}},f=function(f){f.data;var y=f.updateQuotesToHighLight,v=f.handleFetchManuscriptElements,b=f.BookIsbn,k=f.title,T=f.highlightTerms,C=f.onHighlightMatch,S=d(!0);u(function(){return function(){S.current=!1}},[]);var w=p([]),L=w[0],N=w[1],B=p(1),q=B[0],D=B[1],M=p(!1),F=M[0],E=M[1],H=p(!0),I=H[0],P=H[1],W=p(0),z=W[0],_=W[1],R=p([]),j=R[0],G=R[1],K=p(1),Y=K[0],A=K[1],Q=p(!1),O=Q[0],J=Q[1],U=p(!0),V=U[0],X=U[1],Z=p(0),$=Z[0],ee=Z[1],te=p([]),ne=te[0],oe=te[1],re=p(1),ae=re[0],ie=re[1],le=p(!1),se=le[0],ce=le[1],de=p(!0),ue=de[0],pe=de[1],ge=p(0),he=ge[0],xe=ge[1],me=p({list:"",index:-1,page:1}),fe=me[0],ye=me[1],ve=d(!1);u(function(){var t,n,o;T&&0!==T.length&&(ve.current||e(e(e([],null!==(t=null==L?void 0:L.map(function(e){return e.text}))&&void 0!==t?t:[],!0),null!==(n=null==ne?void 0:ne.map(function(e){return e.name}))&&void 0!==n?n:[],!0),null!==(o=null==j?void 0:j.flatMap(function(e){return[e.name,e.description]}))&&void 0!==o?o:[],!0).some(function(e){return!!e&&T.some(function(t){return e.toLowerCase().includes(t.toLowerCase())})})&&(null==C||C(!0),ve.current=!0))},[T]),u(function(){ve.current=!1},[T]);var be=function(e){var t=e.endpoint,r=e.page,a=e.isbn,i=e.setData,l=e.setLoading,s=e.setHasMore,c=e.setTotalPage,d=e.title;return n(void 0,void 0,void 0,function(){var e,n,u,p;return o(this,function(o){switch(o.label){case 0:l(!0),o.label=1;case 1:return o.trys.push([1,,3,4]),[4,v({endpoint:t,page:r,pageSize:10,isbn:a,title:d})];case 2:return e=o.sent(),S.current?(i((null==e?void 0:e.data)||[]),c((null===(n=null==e?void 0:e.pagination)||void 0===n?void 0:n.totalPages)||0),s(!(null===(u=null==e?void 0:e.pagination)||void 0===u?void 0:u.hasNext)&&!(null===(p=null==e?void 0:e.pagination)||void 0===p?void 0:p.hasPrevious)),[3,4]):[2];case 3:return S.current&&l(!1),[7];case 4:return[2]}})})};return u(function(){be({endpoint:"notable-quotes",page:q,isbn:b,setData:N,setLoading:E,setHasMore:P,setTotalPage:_,title:k})},[q]),u(function(){be({endpoint:"notable-characters",page:Y,isbn:b,setData:G,setLoading:J,setHasMore:X,setTotalPage:ee,title:k})},[Y]),u(function(){be({endpoint:"geo-locations",page:ae,isbn:b,setData:oe,setLoading:ce,setHasMore:pe,setTotalPage:xe,title:k})},[ae]),a("div",t({className:"book-elements-container"},{children:[a("div",t({style:{marginBottom:"24px"}},{children:[i("p",t({style:m.sectionTitle,className:"book-elements-section-title"},{children:"Notable Quotes"})),a("div",t({style:m.quotesPadding},{children:[F?i("div",t({style:{display:"flex",flexDirection:"column",rowGap:"8px"}},{children:[1,2,3,4,5,6,7,8,9,10].map(function(e){return a("div",t({className:"book-elements-quote-card",style:m.quoteCard},{children:[i(c,{variant:"text",width:"60%",height:28}),i(c,{variant:"text",width:"40%",height:20}),i(c,{variant:"text",width:"25%",height:20}),i(c,{variant:"text",width:"30%",height:20})]}),e)})})):0===L.length?a("p",t({style:{color:"#6B7280",fontStyle:"italic"}},{children:["No notable quotes found. ",i("button",t({style:m.retryButton,onClick:function(){return be({endpoint:"notable-quotes",page:q,isbn:b,setData:N,setLoading:E,setHasMore:P,setTotalPage:_,title:k})}},{children:"Retry"}))]})):i(l,{children:L.map(function(e,r){var l="notable"===fe.list&&fe.page===q&&fe.index===r;return a("div",t({className:"book-elements-quote-card",style:t(t({},m.quoteCard),{borderColor:l?"rgb(83, 43, 237)":"#CBD5E1"}),onMouseEnter:function(e){e.currentTarget.style.transform="translateY(-4px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"},onMouseLeave:function(e){e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0, 0, 0, 0.1)"},onClick:function(){return n(void 0,void 0,void 0,function(){var t,n;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),ye({list:"notable",page:q,index:r}),(null===(n=null==e?void 0:e.chunkIds)||void 0===n?void 0:n.length)>0?[4,y(e.text,"Notable Quotes",e.chunkIds,0)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[3,4];case 3:return t=o.sent(),console.error("Failed to highlight quote:",t),[3,4];case 4:return[2]}})})}},{children:[T&&T.length>0?i("p",{style:m.quoteText,className:"book-elements-quote-text",dangerouslySetInnerHTML:{__html:x(h(null==e?void 0:e.text,T))}}):i("p",t({style:m.quoteText,className:"book-elements-quote-text"},{children:null==e?void 0:e.text})),a("p",t({style:m.quoteMeta,className:"book-elements-quote-meta"},{children:[e.chapter," ",i("br",{})," ",e.page]})),a("p",t({style:m.quoteAuthor},{children:["— ",null==e?void 0:e.author]}))]}),r)})}),i("div",t({className:"book-elements-pagination",style:{display:"flex",justifyContent:"flex-end",width:"100%"}},{children:!I&&i(s,{disabled:F,count:z,page:q,onChange:function(e,t){return D(t)},shape:"rounded",style:{marginTop:"8px"}})}))]}))]})),a("div",t({style:m.geoLocationsContainer},{children:[i("p",t({style:m.sectionTitle,className:"book-elements-section-title"},{children:"Key Geo Locations"})),a("div",t({className:"book-elements-geo-wrapper",style:t(t({},m.quotesPadding),{marginBottom:"8px"})},{children:[se?i("div",t({style:{display:"flex",flexWrap:"wrap",gap:"8px"}},{children:[1,2,3,4,5,6,7,8,9,10].map(function(e){return i(c,{variant:"rectangular",width:100,height:20,style:{borderRadius:"8px"}},e)})})):0===ne.length?a("p",t({style:{color:"#6B7280",fontStyle:"italic",paddingLeft:"12px"}},{children:["No key geo locations found. ",i("button",t({style:m.retryButton,onClick:function(){return be({endpoint:"geo-locations",page:ae,isbn:b,setData:oe,setLoading:ce,setHasMore:pe,setTotalPage:xe,title:k})}},{children:"Retry"}))]})):i(l,{children:ne.map(function(e,r){var l="geo_location"===fe.list&&fe.page===ae&&fe.index===r;return a("span",t({style:m.geoLocationFlex},{children:[i("span",t({className:"book-elements-geo-text",style:t(t({},m.geoText),{fontWeight:l?"700":"",textDecoration:l?"underline":""}),onClick:function(){return n(void 0,void 0,void 0,function(){var t,n;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),ye({list:"geo_location",page:ae,index:r}),(null===(n=null==e?void 0:e.chunkIds)||void 0===n?void 0:n.length)>0?[4,y(e.name,"Key Geo Locations",e.chunkIds,0)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[3,4];case 3:return t=o.sent(),console.error("Failed to highlight location:",t),[3,4];case 4:return[2]}})})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:T&&T.length>0?i("span",{dangerouslySetInnerHTML:{__html:x(h(null==e?void 0:e.name,T))}}):null==e?void 0:e.name})),r<ne.length-1&&i("span",{style:m.geoDivider})]}),r)})}),i("div",t({className:"book-elements-pagination",style:{display:"flex",justifyContent:"flex-end",width:"100%"}},{children:!ue&&i(s,{disabled:se,count:he,page:ae,onChange:function(e,t){return ie(t)},shape:"rounded",style:{marginTop:"8px"}})}))]}))]})),a("div",t({style:m.charactersContainer},{children:[i("p",t({style:m.sectionTitle,className:"book-elements-section-title"},{children:"Key Characters"})),O?i("div",t({style:{display:"flex",flexWrap:"wrap",gap:"8px"}},{children:[1,2,3,4,5,6,7,8,9,10].map(function(e){return a("div",t({style:t(t({},m.characterCard),{flexBasis:"40%"})},{children:[i(c,{variant:"circular",style:t(t({},m.avatar),{flexShrink:0})}),a("div",t({style:{display:"flex",flexDirection:"column",flex:1}},{children:[i(c,{variant:"text",style:{flex:"1",flexShrink:0}}),i(c,{variant:"text",style:{flex:"1"}}),i(c,{variant:"text",style:{flex:"1"}}),i(c,{variant:"text",style:{flex:"1"}})]}))]}),e)})})):0===j.length?a("p",t({style:{color:"#6B7280",fontStyle:"italic",paddingLeft:"12px"}},{children:["No key characters found. ",i("button",t({style:m.retryButton,onClick:function(){return be({endpoint:"notable-characters",page:Y,isbn:b,setData:G,setLoading:J,setHasMore:X,setTotalPage:ee,title:k})}},{children:"Retry"}))]})):i(l,{children:i("div",t({className:"book-elements-characters-grid",style:m.charactersGrid},{children:j.map(function(e,l){var s=t(t({},m.avatar),{backgroundColor:e.bg,color:e.color}),c="key_character"===fe.list&&fe.page===Y&&fe.index===l;return a("div",t({onMouseEnter:function(e){e.currentTarget.style.transform="translateY(-4px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"},onMouseLeave:function(e){e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0, 0, 0, 0.1)"},className:"book-elements-character-card",style:t(t({},m.characterCard),{borderColor:c?"rgb(83, 43, 237)":"#E5E7EB"}),onClick:function(){return n(void 0,void 0,void 0,function(){var t,n;return o(this,function(o){switch(o.label){case 0:ye({list:"key_character",page:Y,index:l}),o.label=1;case 1:return o.trys.push([1,4,,5]),(null===(n=null==e?void 0:e.chunkIds)||void 0===n?void 0:n.length)>0?[4,y(e.name,"Key Characters",e.chunkIds,0)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:return t=o.sent(),console.error("Failed to highlight character:",t),[3,5];case 5:return[2]}})})}},{children:[i("div",t({style:s},{children:e.initials})),a("div",t({style:{display:"flex",flexDirection:"column"}},{children:[i("p",t({className:"book-elements-char-name",style:t(t({},m.charName),{margin:0})},{children:T&&T.length>0?i("span",{dangerouslySetInnerHTML:{__html:x(h(e.name,T))}}):e.name})),i("p",t({className:"book-elements-char-desc",style:t(t({},m.charDesc),{margin:0,marginTop:"4px"})},{children:T&&T.length>0?i("span",{dangerouslySetInnerHTML:{__html:x(h(null==e?void 0:e.description,T))}}):i(g,t({components:{p:function(e){e.node;var n=r(e,["node"]);return i("p",t({style:{marginTop:"0"}},n))}}},{children:null==e?void 0:e.description}))}))]}))]}),l)})}))}),i("div",t({className:"book-elements-pagination",style:{display:"flex",justifyContent:"flex-end",width:"100%"}},{children:!V&&i(s,{count:$,disabled:O,page:Y,onChange:function(e,t){return A(t)},shape:"rounded",style:{marginTop:"8px"}})}))]}))]}))};export{f as default};
1
+ import{__assign as e,__awaiter as t,__generator as n,__rest as o}from"tslib";import{jsxs as r,jsx as a,Fragment as i}from"react/jsx-runtime";import l from"@mui/material/Pagination";import s from"@mui/material/Skeleton";import{useRef as c,useEffect as d,useState as u}from"react";import p from"react-markdown";import h from"rehype-raw";import g from"remark-breaks";import{highlightTermsFunc as x,processTextWithHighlight as f}from"../utils/highlight.js";import{sanitizeHtml as m}from"../../../utils/sanitizeHtml.js";var y={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},quotesPadding:{paddingLeft:"12px"},quoteCard:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"16px",backgroundColor:"#F8FAFC",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",marginBottom:"16px",cursor:"pointer",transition:"transform 0.2s ease, box-shadow 0.2s ease"},quoteText:{fontStyle:"italic",color:"#475569",fontSize:"14px",fontWeight:400,marginBottom:"12px"},quoteMeta:{color:"#475569",fontSize:"12px",fontWeight:400},quoteAuthor:{fontSize:"10px",fontWeight:600,color:"#475569",marginTop:"8px",marginBottom:"18px"},button:{color:"#5928ED",fontSize:"14px",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0,textDecoration:"none",paddingLeft:"12px"},geoLocationsContainer:{marginTop:"24px",marginBottom:"24px"},geoText:{fontSize:"14px",fontWeight:500,cursor:"pointer",color:"#532BED"},geoDivider:{margin:"0 8px",color:"#475abb",backgroundColor:"#475abb",width:"1px",height:"18px",display:"inline-block"},geoLocationFlex:{display:"inline-flex",alignItems:"center",gap:"8px",marginBottom:"8px"},charactersContainer:{marginTop:"16px"},charactersGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px",marginBottom:"16px",paddingLeft:"12px"},characterCard:{border:"1px solid #E5E7EB",borderRadius:"8px",backgroundColor:"#FFFFFF",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"flex-start",gap:"12px",padding:"16px",cursor:"pointer",transition:"transform 0.2s ease, box-shadow 0.2s ease"},avatar:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontSize:"14px",fontWeight:600,flexShrink:0},charName:{fontStyle:"normal",fontWeight:600,color:"#101827",fontSize:"16px"},charDesc:{fontStyle:"normal",fontWeight:400,fontSize:"14px",color:"#6B7280"},retryButton:{backgroundColor:"#5928EC",color:"#fff",padding:"6px 10px",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"12px",fontWeight:"500"}},v=function(v){var b,k,T;v.data;var C=v.updateQuotesToHighLight,w=v.handleFetchManuscriptElements,S=v.BookIsbn,q=v.title,L=v.highlightTerms,N=v.onHighlightMatch,B=v.defaultPages,D=c(!0);d(function(){return function(){D.current=!1}},[]);var M=u([]),E=M[0],F=M[1],P=u(null!==(b=null==B?void 0:B.quotes)&&void 0!==b?b:1),I=P[0],_=P[1],H=u(!1),W=H[0],z=H[1],R=u(!0),j=R[0],A=R[1],G=u(0),K=G[0],Y=G[1],Q=u([]),O=Q[0],V=Q[1],J=u(null!==(k=null==B?void 0:B.characters)&&void 0!==k?k:1),U=J[0],X=J[1],Z=u(!1),$=Z[0],ee=Z[1],te=u(!0),ne=te[0],oe=te[1],re=u(0),ae=re[0],ie=re[1],le=u([]),se=le[0],ce=le[1],de=u(null!==(T=null==B?void 0:B.locations)&&void 0!==T?T:1),ue=de[0],pe=de[1],he=u(!1),ge=he[0],xe=he[1],fe=u(!0),me=fe[0],ye=fe[1],ve=u(0),be=ve[0],ke=ve[1],Te=u({list:"",index:-1,page:1}),Ce=Te[0],we=Te[1],Se=c(!1),qe=c(null);d(function(){if(null==L?void 0:L.length){var e=L.map(function(e){return e.toLowerCase()}),t=function(t){return t&&e.some(function(e){return t.toLowerCase().includes(e)})},n=!1;E.forEach(function(e,o){!n&&t(e.text)&&(we({list:"notable",index:o,page:I}),null==N||N(!0),n=!0)}),se.forEach(function(e,o){!n&&t(e.name)&&(we({list:"geo_location",index:o,page:ue}),null==N||N(!0),n=!0)}),O.forEach(function(e,o){n||!t(e.name)&&!t(e.description)||(we({list:"key_character",index:o,page:U}),null==N||N(!0),n=!0)})}},[L,E,se,O,I,ue,U]),d(function(){-1!==Ce.index&&(W||ge||$||requestAnimationFrame(function(){requestAnimationFrame(function(){var e,t=null===(e=qe.current)||void 0===e?void 0:e.querySelector('[data-selected="true"]');null==t||t.scrollIntoView({behavior:"smooth",block:"center"})})}))},[Ce,W,ge,$]),d(function(){B&&(B.quotes&&_(B.quotes),B.locations&&pe(B.locations),B.characters&&X(B.characters))},[B]),d(function(){Se.current=!1},[L]);var Le=function(e){var o=e.endpoint,r=e.page,a=e.isbn,i=e.setData,l=e.setLoading,s=e.setHasMore,c=e.setTotalPage,d=e.title;return t(void 0,void 0,void 0,function(){var e,t,u,p;return n(this,function(n){switch(n.label){case 0:l(!0),n.label=1;case 1:return n.trys.push([1,,3,4]),[4,w({endpoint:o,page:r,pageSize:10,isbn:a,title:d})];case 2:return e=n.sent(),D.current?(i((null==e?void 0:e.data)||[]),c((null===(t=null==e?void 0:e.pagination)||void 0===t?void 0:t.totalPages)||0),s(!(null===(u=null==e?void 0:e.pagination)||void 0===u?void 0:u.hasNext)&&!(null===(p=null==e?void 0:e.pagination)||void 0===p?void 0:p.hasPrevious)),[3,4]):[2];case 3:return D.current&&l(!1),[7];case 4:return[2]}})})};return d(function(){Le({endpoint:"notable-quotes",page:I,isbn:S,setData:F,setLoading:z,setHasMore:A,setTotalPage:Y,title:q})},[I]),d(function(){Le({endpoint:"notable-characters",page:U,isbn:S,setData:V,setLoading:ee,setHasMore:oe,setTotalPage:ie,title:q})},[U]),d(function(){Le({endpoint:"geo-locations",page:ue,isbn:S,setData:ce,setLoading:xe,setHasMore:ye,setTotalPage:ke,title:q})},[ue]),r("div",e({ref:qe,className:"book-elements-container"},{children:[r("div",e({style:{marginBottom:"24px"}},{children:[a("p",e({style:y.sectionTitle,className:"book-elements-section-title"},{children:"Notable Quotes"})),r("div",e({style:y.quotesPadding},{children:[W?a("div",e({style:{display:"flex",flexDirection:"column",rowGap:"8px"}},{children:[1,2,3,4,5,6,7,8,9,10].map(function(t){return r("div",e({className:"book-elements-quote-card",style:y.quoteCard},{children:[a(s,{variant:"text",width:"60%",height:28}),a(s,{variant:"text",width:"40%",height:20}),a(s,{variant:"text",width:"25%",height:20}),a(s,{variant:"text",width:"30%",height:20})]}),t)})})):0===E.length?r("p",e({style:{color:"#6B7280",fontStyle:"italic"}},{children:["No notable quotes found. ",a("button",e({style:y.retryButton,onClick:function(){return Le({endpoint:"notable-quotes",page:I,isbn:S,setData:F,setLoading:z,setHasMore:A,setTotalPage:Y,title:q})}},{children:"Retry"}))]})):a(i,{children:E.map(function(o,i){var l="notable"===Ce.list&&Ce.page===I&&Ce.index===i;return r("div",e({className:"book-elements-quote-card",style:e(e({},y.quoteCard),{borderColor:l?"rgb(83, 43, 237)":"#CBD5E1"}),onMouseEnter:function(e){e.currentTarget.style.transform="translateY(-4px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"},onMouseLeave:function(e){e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0, 0, 0, 0.1)"},onClick:function(){return t(void 0,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),we({list:"notable",page:I,index:i}),(null===(t=null==o?void 0:o.chunkIds)||void 0===t?void 0:t.length)>0?[4,C(o.text,"Notable Quotes",o.chunkIds,0)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:return e=n.sent(),console.error("Failed to highlight quote:",e),[3,4];case 4:return[2]}})})},"data-selected":"notable"===Ce.list&&Ce.page===I&&Ce.index===i?"true":void 0},{children:[L&&L.length>0?a("p",{style:y.quoteText,className:"book-elements-quote-text",dangerouslySetInnerHTML:{__html:m(x(null==o?void 0:o.text,L))}}):a("p",e({style:y.quoteText,className:"book-elements-quote-text"},{children:null==o?void 0:o.text})),r("p",e({style:y.quoteMeta,className:"book-elements-quote-meta"},{children:[f(o.chapter,L)," ",a("br",{})," ",f(o.page,L)]})),r("p",e({style:y.quoteAuthor},{children:["— ",f(null==o?void 0:o.author,L)]}))]}),i)})}),a("div",e({className:"book-elements-pagination",style:{display:"flex",justifyContent:"flex-end",width:"100%"}},{children:!j&&a(l,{disabled:W,count:K,page:I,onChange:function(e,t){return _(t)},shape:"rounded",style:{marginTop:"8px"}})}))]}))]})),r("div",e({style:y.geoLocationsContainer},{children:[a("p",e({style:y.sectionTitle,className:"book-elements-section-title"},{children:"Key Geo Locations"})),r("div",e({className:"book-elements-geo-wrapper",style:e(e({},y.quotesPadding),{marginBottom:"8px"})},{children:[ge?a("div",e({style:{display:"flex",flexWrap:"wrap",gap:"8px"}},{children:[1,2,3,4,5,6,7,8,9,10].map(function(e){return a(s,{variant:"rectangular",width:100,height:20,style:{borderRadius:"8px"}},e)})})):0===se.length?r("p",e({style:{color:"#6B7280",fontStyle:"italic",paddingLeft:"12px"}},{children:["No key geo locations found. ",a("button",e({style:y.retryButton,onClick:function(){return Le({endpoint:"geo-locations",page:ue,isbn:S,setData:ce,setLoading:xe,setHasMore:ye,setTotalPage:ke,title:q})}},{children:"Retry"}))]})):a(i,{children:se.map(function(o,i){var l="geo_location"===Ce.list&&Ce.page===ue&&Ce.index===i;return r("span",e({"data-selected":"geo_location"===Ce.list&&Ce.page===ue&&Ce.index===i?"true":void 0,style:y.geoLocationFlex},{children:[a("span",e({className:"book-elements-geo-text",style:e(e({},y.geoText),{fontWeight:l?"700":"",textDecoration:l?"underline":""}),onClick:function(){return t(void 0,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),we({list:"geo_location",page:ue,index:i}),(null===(t=null==o?void 0:o.chunkIds)||void 0===t?void 0:t.length)>0?[4,C(o.name,"Key Geo Locations",o.chunkIds,0)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[3,4];case 3:return e=n.sent(),console.error("Failed to highlight location:",e),[3,4];case 4:return[2]}})})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:L&&L.length>0?a("span",{dangerouslySetInnerHTML:{__html:m(x(null==o?void 0:o.name,L))}}):null==o?void 0:o.name})),i<se.length-1&&a("span",{style:y.geoDivider})]}),i)})}),a("div",e({className:"book-elements-pagination",style:{display:"flex",justifyContent:"flex-end",width:"100%"}},{children:!me&&a(l,{disabled:ge,count:be,page:ue,onChange:function(e,t){return pe(t)},shape:"rounded",style:{marginTop:"8px"}})}))]}))]})),r("div",e({style:y.charactersContainer},{children:[a("p",e({style:y.sectionTitle,className:"book-elements-section-title"},{children:"Key Characters"})),$?a("div",e({style:{display:"flex",flexWrap:"wrap",gap:"8px"}},{children:[1,2,3,4,5,6,7,8,9,10].map(function(t){return r("div",e({style:e(e({},y.characterCard),{flexBasis:"40%"})},{children:[a(s,{variant:"circular",style:e(e({},y.avatar),{flexShrink:0})}),r("div",e({style:{display:"flex",flexDirection:"column",flex:1}},{children:[a(s,{variant:"text",style:{flex:"1",flexShrink:0}}),a(s,{variant:"text",style:{flex:"1"}}),a(s,{variant:"text",style:{flex:"1"}}),a(s,{variant:"text",style:{flex:"1"}})]}))]}),t)})})):0===O.length?r("p",e({style:{color:"#6B7280",fontStyle:"italic",paddingLeft:"12px"}},{children:["No key characters found. ",a("button",e({style:y.retryButton,onClick:function(){return Le({endpoint:"notable-characters",page:U,isbn:S,setData:V,setLoading:ee,setHasMore:oe,setTotalPage:ie,title:q})}},{children:"Retry"}))]})):a(i,{children:a("div",e({className:"book-elements-characters-grid",style:y.charactersGrid},{children:O.map(function(i,l){var s=e(e({},y.avatar),{backgroundColor:i.bg,color:i.color}),c="key_character"===Ce.list&&Ce.page===U&&Ce.index===l;return r("div",e({onMouseEnter:function(e){e.currentTarget.style.transform="translateY(-4px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"},onMouseLeave:function(e){e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 1px 4px rgba(0, 0, 0, 0.1)"},className:"book-elements-character-card",style:e(e({},y.characterCard),{borderColor:c?"rgb(83, 43, 237)":"#E5E7EB"}),onClick:function(){return t(void 0,void 0,void 0,function(){var e,t;return n(this,function(n){switch(n.label){case 0:we({list:"key_character",page:U,index:l}),n.label=1;case 1:return n.trys.push([1,4,,5]),(null===(t=null==i?void 0:i.chunkIds)||void 0===t?void 0:t.length)>0?[4,C(i.name,"Key Characters",i.chunkIds,0)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return e=n.sent(),console.error("Failed to highlight character:",e),[3,5];case 5:return[2]}})})},"data-selected":"key_character"===Ce.list&&Ce.page===U&&Ce.index===l?"true":void 0},{children:[a("div",e({style:s},{children:i.initials})),r("div",e({style:{display:"flex",flexDirection:"column"}},{children:[a("p",e({className:"book-elements-char-name",style:e(e({},y.charName),{margin:0})},{children:L&&L.length>0?a("span",{dangerouslySetInnerHTML:{__html:m(x(i.name,L))}}):i.name})),a("p",e({className:"book-elements-char-desc",style:e(e({},y.charDesc),{margin:0,marginTop:"4px"})},{children:a(p,e({remarkPlugins:[g],rehypePlugins:[h],components:{p:function(t){t.node;var n=o(t,["node"]);return a("p",e({style:{marginTop:0}},n))}}},{children:f(null==i?void 0:i.description,L)}))}))]}))]}),l)})}))}),a("div",e({className:"book-elements-pagination",style:{display:"flex",justifyContent:"flex-end",width:"100%"}},{children:!ne&&a(l,{count:ae,disabled:$,page:U,onChange:function(e,t){return X(t)},shape:"rounded",style:{marginTop:"8px"}})}))]}))]}))};export{v as default};
2
2
  //# sourceMappingURL=BookElementsCard.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t,__rest as n}from"tslib";import{jsxs as o,jsx as l,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as a,useLayoutEffect as c,useEffect as d}from"react";import s from"react-markdown";import u from"remark-breaks";import{highlightTermsFunc as p}from"../utils/highlight.js";import{sanitizeHtml as m}from"../../../utils/sanitizeHtml.js";var h={card:{border:"2px solid #E5E7EB",backgroundColor:"#FFFFFF",borderRadius:"12px",padding:"24px"},title:{fontSize:"16px",fontWeight:"bold",marginBottom:"24px"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(110px, 1fr))",gap:"24px",marginBottom:"24px"},gridItem:{backgroundColor:"#F8FAFC",border:"1px solid #DFE5EC",borderRadius:"8px",padding:"12px 8px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"12px"},gridItemHeight:{height:"50px"},label:{fontSize:"14px",fontWeight:400,color:"#64748B",margin:0},value:{fontWeight:"bold",fontSize:"14px",color:"#434C55",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"120px"},section:{marginBottom:"12px",padding:"8px 12px",borderRadius:"8px",border:"1px solid #DEE4EB"},sectionLabel:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"8px",whiteSpace:"pre-line"},summaryText:{marginTop:"0px"},sectionText:{fontSize:"16px",fontWeight:400,lineHeight:"1.625",color:"#64748B",marginBottom:"8px"},button:{color:"#5928ED",fontSize:"14px",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0,textDecoration:"none"},lineClamp:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},container:{fontFamily:"Inter, sans-serif",color:"#434C54",marginBottom:"8px"},partContainer:{marginBottom:"8px"},partTitle:{fontSize:"16px",fontWeight:"600",marginBottom:"10px"},chapterList:{listStyle:"none",paddingLeft:"20px",margin:0},chapterItem:{marginBottom:"6px"},chapterLink:{textDecoration:"none",color:"#63748A",fontSize:"16px",lineHeight:"1.5"},chapterLinkHover:{textDecoration:"underline"},singleChapter:{marginBottom:"4px",fontSize:"16px"},chapterNumber:{color:"#63748A"}},g=function(g){var v,f,b,x,y,k,C,T,B,L,N,S,w=g.data,D=g.highlightTerms,I=g.onHighlightMatch,M=r(!1),O=M[0],H=M[1],_=r(!1),A=_[0],z=_[1],F=r(!1),W=F[0],E=F[1],V=r(!1),j=V[0],R=V[1],P=a(null),q=(null==w?void 0:w.tableOfContent)&&w.tableOfContent.every(function(e){return!e.title||""===e.title.trim()}),G=null===(x=null===(b=null===(f=null===(v=null==w?void 0:w.bookDescription)||void 0===v?void 0:v.replace(/display:\s*-webkit-box;?/g,""))||void 0===f?void 0:f.replace(/-webkit-line-clamp:\s*\d+;?/g,""))||void 0===b?void 0:b.replace(/-webkit-box-orient:\s*vertical;?/g,""))||void 0===x?void 0:x.replace(/overflow:\s*hidden;?/g,"");return c(function(){if(P.current){var e=P.current.scrollHeight>P.current.clientHeight;R(e)}},[null==w?void 0:w.bookDescription,A]),d(function(){var t,n;if(D&&0!==D.length){var o=e([w.title,w.author,w.summary,w.bookDescription],null!==(n=null===(t=w.tableOfContent)||void 0===t?void 0:t.map(function(e){return e.title}))&&void 0!==n?n:[],!0).some(function(e){return!!e&&D.some(function(t){return e.toLowerCase().includes(t.toLowerCase())})});null==I||I(o)}},[D,w]),o("div",t({style:h.card,className:"book-card-container"},{children:[o("div",t({style:h.grid,className:"book-card-grid"},{children:[o("div",t({style:h.gridItem},{children:[l("p",t({style:h.label},{children:"Book Title"})),D&&D.length>0?l("p",{style:h.value,className:"book-card-value",title:null==w?void 0:w.title,dangerouslySetInnerHTML:{__html:m(p(null!==(y=null==w?void 0:w.title)&&void 0!==y?y:"NA",D))}}):l("p",t({style:h.value,className:"book-card-value",title:null==w?void 0:w.title},{children:null!==(k=null==w?void 0:w.title)&&void 0!==k?k:"NA"}))]})),o("div",t({style:h.gridItem},{children:[l("p",t({style:h.label},{children:"Book Author"})),D&&D.length>0?l("p",{style:h.value,className:"book-card-value",title:null==w?void 0:w.author,dangerouslySetInnerHTML:{__html:m(p(null!==(C=null==w?void 0:w.author)&&void 0!==C?C:"NA",D))}}):l("p",t({style:h.value,className:"book-card-value",title:null==w?void 0:w.author},{children:null!==(T=null==w?void 0:w.author)&&void 0!==T?T:"NA"}))]})),o("div",t({style:h.gridItem},{children:[l("p",t({style:h.label},{children:"Total Sections"})),l("p",t({style:h.value,className:"book-card-value"},{children:null!==(B=null==w?void 0:w.totalSectionCount)&&void 0!==B?B:"NA"}))]})),o("div",t({style:h.gridItem},{children:[l("p",t({style:h.label},{children:"Total Pages"})),l("p",t({style:h.value,className:"book-card-value"},{children:null!==(L=null==w?void 0:w.totalPages)&&void 0!==L?L:"NA"}))]})),o("div",t({style:h.gridItem},{children:[l("p",t({style:h.label},{children:"Reading Time"})),l("p",t({style:h.value,className:"book-card-value"},{children:null!==(N=null==w?void 0:w.readingTime)&&void 0!==N?N:"NA"}))]}))]})),(null==w?void 0:w.bookDescription)&&(null==w?void 0:w.bookDescription.length)>0&&o("div",t({style:h.section,className:"book-card-section"},{children:[l("p",t({style:h.sectionLabel},{children:"Book Description"})),l("div",t({ref:P,className:"book-card-section-text",style:t(t(t({},h.sectionText),h.summaryText),A?{}:h.lineClamp)},{children:l("div",{dangerouslySetInnerHTML:{__html:D&&D.length>0?m(p(G||"",D)):G}})})),(j||A)&&l("button",t({style:t(t({},h.button),{marginBottom:"10px"}),onClick:function(){return z(function(e){return!e})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:A?"View Less":"View More"}))]})),o("div",t({style:h.section,className:"book-card-section"},{children:[l("p",t({style:h.sectionLabel},{children:"AI Book Summary"})),l("p",t({className:"book-card-section-text",style:t(t({},h.sectionText),O?{}:h.lineClamp)},{children:D&&D.length>0?l("span",{dangerouslySetInnerHTML:{__html:m(p((null==w?void 0:w.summary)||"",D))}}):l(s,t({remarkPlugins:[u],components:{p:function(e){e.node;var o=n(e,["node"]);return l("p",t({style:{marginTop:"0"}},o))}}},{children:null==w?void 0:w.summary}))})),(null==w?void 0:w.summary)&&(null==w?void 0:w.summary.length)>0&&l("button",t({style:t(t({},h.button),{marginBottom:"10px"}),onClick:function(){return H(function(e){return!e})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:O?"View Less":"View More"}))]})),o("div",t({style:t(t({},h.section),{marginTop:"10px"})},{children:[l("p",t({style:t(t({},h.sectionLabel),{marginBottom:"18px"})},{children:"Table Of Content"})),l("div",t({style:t(t({},h.container),W?{}:h.lineClamp)},{children:(null==w?void 0:w.tableOfContent)&&!q?null===(S=null==w?void 0:w.tableOfContent)||void 0===S?void 0:S.map(function(e,n){return l("div",t({style:h.partContainer},{children:e.children?o(i,{children:[l("p",{style:h.partTitle,className:"book-card-part-title",dangerouslySetInnerHTML:{__html:D&&D.length>0?m(p(e.title,D)):e.title}}),l("ul",t({style:h.chapterList},{children:e.children.map(function(e,n){return l("li",t({style:h.chapterItem},{children:l("span",{style:h.chapterLink,className:"book-card-chapter-link",dangerouslySetInnerHTML:{__html:D&&D.length>0?m(p(e.title,D)):e.title}})}),n)})}))]}):l("div",t({style:h.singleChapter},{children:l("span",{style:h.chapterLink,className:"book-card-chapter-link",dangerouslySetInnerHTML:{__html:D&&D.length>0?m(p(e.title,D)):e.title}})}))}),n)}):l("p",t({style:{fontStyle:"italic",fontSize:"16px",color:"#6B7280",margin:"8px 0"}},{children:"Table of Contents not found for this book."}))})),(null==w?void 0:w.tableOfContent)&&!q&&(null==w?void 0:w.tableOfContent.length)>0&&l("button",t({style:t(t({},h.button),{marginBottom:"10px"}),onClick:function(){return E(function(e){return!e})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:W?"View Less":"View More"}))]}))]}))};export{g as default};
1
+ import{__assign as e,__rest as t}from"tslib";import{jsxs as n,jsx as l,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as r,useLayoutEffect as a,useEffect as d}from"react";import c from"react-markdown";import u from"remark-breaks";import s from"rehype-raw";import{highlightTermsFunc as p,processTextWithHighlight as m}from"../utils/highlight.js";import{sanitizeHtml as g}from"../../../utils/sanitizeHtml.js";var h={card:{border:"2px solid #E5E7EB",backgroundColor:"#FFFFFF",borderRadius:"12px",padding:"24px"},title:{fontSize:"16px",fontWeight:"bold",marginBottom:"24px"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(110px, 1fr))",gap:"24px",marginBottom:"24px"},gridItem:{backgroundColor:"#F8FAFC",border:"1px solid #DFE5EC",borderRadius:"8px",padding:"12px 8px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"12px"},gridItemHeight:{height:"50px"},label:{fontSize:"14px",fontWeight:400,color:"#64748B",margin:0},value:{fontWeight:"bold",fontSize:"14px",color:"#434C55",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"120px"},section:{marginBottom:"12px",padding:"8px 12px",borderRadius:"8px",border:"1px solid #DEE4EB"},sectionLabel:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"8px",whiteSpace:"pre-line"},summaryText:{marginTop:"0px"},sectionText:{fontSize:"16px",fontWeight:400,lineHeight:"1.625",color:"#64748B",marginBottom:"8px"},button:{color:"#5928ED",fontSize:"14px",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0,textDecoration:"none"},lineClamp:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},container:{fontFamily:"Inter, sans-serif",color:"#434C54",marginBottom:"8px"},partContainer:{marginBottom:"8px"},partTitle:{fontSize:"16px",fontWeight:"600",marginBottom:"10px"},chapterList:{listStyle:"none",paddingLeft:"20px",margin:0},chapterItem:{marginBottom:"6px"},chapterLink:{textDecoration:"none",color:"#63748A",fontSize:"16px",lineHeight:"1.5"},chapterLinkHover:{textDecoration:"underline"},singleChapter:{marginBottom:"4px",fontSize:"16px"},chapterNumber:{color:"#63748A"}},v=function(v){var f,y,b,x,k,T,C,S,N,L,B,w,I,D,M,_=v.data,H=v.highlightTerms,O=v.onHighlightMatch,A=i(!1),z=A[0],F=A[1],W=i(!1),E=W[0],P=W[1],V=i(!1),j=V[0],R=V[1],q=i(!1),G=q[0],J=q[1],K=r(null),Q=r(null),U=(null==_?void 0:_.tableOfContent)&&_.tableOfContent.every(function(e){return!e.title||""===e.title.trim()}),X=null===(x=null===(b=null===(y=null===(f=null==_?void 0:_.bookDescription)||void 0===f?void 0:f.replace(/display:\s*-webkit-box;?/g,""))||void 0===y?void 0:y.replace(/-webkit-line-clamp:\s*\d+;?/g,""))||void 0===b?void 0:b.replace(/-webkit-box-orient:\s*vertical;?/g,""))||void 0===x?void 0:x.replace(/overflow:\s*hidden;?/g,"");return a(function(){if(K.current){var e=K.current.scrollHeight>K.current.clientHeight;J(e)}},[null==_?void 0:_.bookDescription,E]),d(function(){var e;if(null==H?void 0:H.length){var t=H.map(function(e){return e.toLowerCase()}),n=function(e){return e&&t.some(function(t){return e.toLowerCase().includes(t)})},l=n(_.title),o=n(_.author),i=n(_.bookDescription),r=n(_.summary),a=n(_.totalSectionCount.toString()),d=n(_.totalPages.toString()),c=n(_.readingTime),u=null===(e=null==_?void 0:_.tableOfContent)||void 0===e?void 0:e.some(function(e){var t;return n(null==e?void 0:e.title)||(null===(t=null==e?void 0:e.children)||void 0===t?void 0:t.some(function(e){return n(null==e?void 0:e.title)}))}),s=l||o||i||r||a||d||c||u;null==O||O(s),s&&(i&&P(!0),r&&F(!0),u&&R(!0))}},[H,_]),n("div",e({ref:Q,style:h.card,className:"book-card-container"},{children:[n("div",e({style:h.grid,className:"book-card-grid"},{children:[n("div",e({style:h.gridItem},{children:[l("p",e({style:h.label},{children:"Book Title"})),H&&H.length>0?l("p",{style:h.value,className:"book-card-value",title:null==_?void 0:_.title,dangerouslySetInnerHTML:{__html:g(p(null!==(k=null==_?void 0:_.title)&&void 0!==k?k:"NA",H))}}):l("p",e({style:h.value,className:"book-card-value",title:null==_?void 0:_.title},{children:null!==(T=null==_?void 0:_.title)&&void 0!==T?T:"NA"}))]})),n("div",e({style:h.gridItem},{children:[l("p",e({style:h.label},{children:"Book Author"})),H&&H.length>0?l("p",{style:h.value,className:"book-card-value",title:null==_?void 0:_.author,dangerouslySetInnerHTML:{__html:g(p(null!==(C=null==_?void 0:_.author)&&void 0!==C?C:"NA",H))}}):l("p",e({style:h.value,className:"book-card-value",title:null==_?void 0:_.author},{children:null!==(S=null==_?void 0:_.author)&&void 0!==S?S:"NA"}))]})),n("div",e({style:h.gridItem},{children:[l("p",e({style:h.label},{children:"Total Sections"})),H&&H.length>0?l("p",{style:h.value,className:"book-card-value",dangerouslySetInnerHTML:{__html:g(p(null!==(N=String(null==_?void 0:_.totalSectionCount))&&void 0!==N?N:"NA",H))}}):l("p",e({style:h.value,className:"book-card-value"},{children:null!==(L=null==_?void 0:_.totalSectionCount)&&void 0!==L?L:"NA"}))]})),n("div",e({style:h.gridItem},{children:[l("p",e({style:h.label},{children:"Total Pages"})),H&&H.length>0?l("p",{style:h.value,className:"book-card-value",dangerouslySetInnerHTML:{__html:g(p(String(null!==(B=null==_?void 0:_.totalPages)&&void 0!==B?B:"NA"),H))}}):l("p",e({style:h.value,className:"book-card-value"},{children:null!==(w=null==_?void 0:_.totalPages)&&void 0!==w?w:"NA"}))]})),n("div",e({style:h.gridItem},{children:[l("p",e({style:h.label},{children:"Reading Time"})),H&&H.length>0?l("p",{style:h.value,className:"book-card-value",dangerouslySetInnerHTML:{__html:g(p(String(null!==(I=null==_?void 0:_.readingTime)&&void 0!==I?I:"NA"),H))}}):l("p",e({style:h.value,className:"book-card-value"},{children:null!==(D=null==_?void 0:_.readingTime)&&void 0!==D?D:"NA"}))]}))]})),(null==_?void 0:_.bookDescription)&&(null==_?void 0:_.bookDescription.length)>0&&n("div",e({style:h.section,className:"book-card-section"},{children:[l("p",e({style:h.sectionLabel},{children:"Book Description"})),l("div",e({ref:K,className:"book-card-section-text",style:e(e(e({},h.sectionText),h.summaryText),E?{}:h.lineClamp)},{children:l("div",{dangerouslySetInnerHTML:{__html:H&&H.length>0?g(p(X||"",H)):X}})})),(G||E)&&l("button",e({style:e(e({},h.button),{marginBottom:"10px"}),onClick:function(){return P(function(e){return!e})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:E?"View Less":"View More"}))]})),n("div",e({style:h.section,className:"book-card-section"},{children:[l("p",e({style:h.sectionLabel},{children:"AI Book Summary"})),l("p",e({className:"book-card-section-text",style:e(e({},h.sectionText),z?{}:h.lineClamp)},{children:l(c,e({remarkPlugins:[u],rehypePlugins:[s],components:{p:function(n){n.node;var o=t(n,["node"]);return l("p",e({style:{marginTop:"0"}},o))}}},{children:m(null==_?void 0:_.summary,H)}))})),(null==_?void 0:_.summary)&&(null==_?void 0:_.summary.length)>0&&l("button",e({style:e(e({},h.button),{marginBottom:"10px"}),onClick:function(){return F(function(e){return!e})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:z?"View Less":"View More"}))]})),n("div",e({style:e(e({},h.section),{marginTop:"10px"})},{children:[l("p",e({style:e(e({},h.sectionLabel),{marginBottom:"18px"})},{children:"Table Of Content"})),l("div",e({style:e(e({},h.container),j?{}:h.lineClamp)},{children:(null==_?void 0:_.tableOfContent)&&!U?null===(M=null==_?void 0:_.tableOfContent)||void 0===M?void 0:M.map(function(t,i){return l("div",e({style:h.partContainer},{children:t.children?n(o,{children:[l("p",{style:h.partTitle,className:"book-card-part-title",dangerouslySetInnerHTML:{__html:H&&H.length>0?g(p(t.title,H)):t.title}}),l("ul",e({style:h.chapterList},{children:t.children.map(function(t,n){return l("li",e({style:h.chapterItem},{children:l("span",{style:h.chapterLink,className:"book-card-chapter-link",dangerouslySetInnerHTML:{__html:H&&H.length>0?g(p(t.title,H)):t.title}})}),n)})}))]}):l("div",e({style:h.singleChapter},{children:l("span",{style:h.chapterLink,className:"book-card-chapter-link",dangerouslySetInnerHTML:{__html:H&&H.length>0?g(p(t.title,H)):t.title}})}))}),i)}):l("p",e({style:{fontStyle:"italic",fontSize:"16px",color:"#6B7280",margin:"8px 0"}},{children:"Table of Contents not found for this book."}))})),(null==_?void 0:_.tableOfContent)&&!U&&(null==_?void 0:_.tableOfContent.length)>0&&l("button",e({style:e(e({},h.button),{marginBottom:"10px"}),onClick:function(){return R(function(e){return!e})},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:j?"View Less":"View More"}))]}))]}))};export{v as default};
2
2
  //# sourceMappingURL=BookOverviewCard.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as l}from"tslib";import{jsxs as n,jsx as o,Fragment as t}from"react/jsx-runtime";import{useEffect as i}from"react";import{highlightTermsFunc as r}from"../utils/highlight.js";import{sanitizeHtml as a}from"../../../utils/sanitizeHtml.js";var d={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},card:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:500,fontSize:"14px",borderRadius:"4px",color:"#64748B",maxWidth:"100%",wordBreak:"break-word",marginBottom:"24px",width:"fit-content"},tag:{padding:"4px 12px",fontSize:"14px",fontWeight:500,color:"#3B82F6",backgroundColor:"#F3F8FF",borderRadius:"6px"},avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:"35px",width:"35px",borderRadius:"50%",backgroundColor:"#E5E7EB",color:"#4B5563",fontWeight:600,flexShrink:0,fontSize:"12px"},contributorName:{fontWeight:600,color:"#111827",marginTop:"8px",fontSize:"14px"},contributorRole:{fontSize:"12px",color:"#6B7280"},grid:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"24px",marginBottom:"24px",padding:"0 12px"},awardMeta:{fontSize:"14px",color:"#4B5563"},awardDesc:{fontSize:"14px",color:"#4B5563"},awardContainer:{display:"flex",gap:"8px"},awardInfo:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:600,fontSize:"12px",borderRadius:"4px",color:"#434C54",maxWidth:"100%",wordBreak:"break-word",width:"fit-content"},listContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",marginBottom:"24px"},awardContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px"}},p=function(p){var s,c,u,m=p.data,v=p.highlightTerms,g=p.onHighlightMatch,h=m.publisher,f=m.contributors,x=m.awards,y=void 0===x?[]:x,b=function(e){var l=e.trim().split(/\s+/).map(function(e){var l;return null===(l=e[0])||void 0===l?void 0:l.toUpperCase()}).join("");return l.length>3?"".concat(l.slice(0,3)):l};return i(function(){var l,n,o,t,i,r,a,d,p,s,c,u;if(v&&0!==v.length){var h=e(e(e(e([null!==(n=null===(l=m.publisher)||void 0===l?void 0:l.name)&&void 0!==n?n:""],null!==(t=null===(o=m.publisher)||void 0===o?void 0:o.tags)&&void 0!==t?t:[],!0),null!==(a=null===(r=null===(i=m.contributors)||void 0===i?void 0:i.primary)||void 0===r?void 0:r.flatMap(function(l){var n;return e([l.name,l.role],null!==(n=l.tags)&&void 0!==n?n:[],!0)}))&&void 0!==a?a:[],!0),null!==(s=null===(p=null===(d=m.contributors)||void 0===d?void 0:d.additional)||void 0===p?void 0:p.flatMap(function(l){var n;return e([l.name,l.role],null!==(n=l.tags)&&void 0!==n?n:[],!0)}))&&void 0!==s?s:[],!0),null!==(u=null===(c=m.awards)||void 0===c?void 0:c.flatMap(function(e){return[e.title,e.org,String(e.year),e.country]}))&&void 0!==u?u:[],!0).some(function(e){return!!e&&v.some(function(l){return e.toLowerCase().includes(l.toLowerCase())})});null==g||g(h)}},[v,m]),n("div",l({className:"book-people-container"},{children:[o("p",l({style:d.sectionTitle,className:"book-people-section-title"},{children:"Publishers"})),n("div",l({style:d.card,className:"book-people-card"},{children:[o("span",l({style:{color:"rgb(67, 76, 85)"}},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(h.name,v))}}):h.name})),(null==h?void 0:h.tags)&&(null==h?void 0:h.tags.length)>0&&o("div",l({style:{display:"flex",gap:"8px",marginTop:"18px"}},{children:null===(s=null==h?void 0:h.tags)||void 0===s?void 0:s.map(function(e,n){return o("span",l({style:d.tag},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(e,v))}}):e}),n)})}))]})),o("p",l({style:d.sectionTitle,className:"book-people-section-title"},{children:"Contributors"})),o("div",l({style:d.listContainerWrapper,className:"book-people-list-wrapper"},{children:null===(c=null==f?void 0:f.primary)||void 0===c?void 0:c.map(function(e,t){var i;return n("div",l({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[o("div",l({style:d.avatar,className:"book-people-avatar"},{children:b(null==e?void 0:e.name)})),o("span",l({style:d.contributorName,className:"book-people-name"},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(null==e?void 0:e.name,v))}}):null==e?void 0:e.name})),o("span",l({style:d.contributorRole,className:"book-people-role"},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(null==e?void 0:e.role,v))}}):null==e?void 0:e.role})),o("div",l({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:null===(i=null==e?void 0:e.tags)||void 0===i?void 0:i.map(function(e,n){return o("span",l({style:d.tag},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(e,v))}}):e}),n)})}))]}),t)})})),f.additional&&f.additional.length>0&&n(t,{children:[o("p",l({style:d.sectionTitle,className:"book-people-section-title"},{children:"Additional Contributors"})),o("div",l({style:d.listContainerWrapper,className:"book-people-list-wrapper"},{children:null===(u=null==f?void 0:f.additional)||void 0===u?void 0:u.map(function(e,t){return n("div",l({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[o("div",l({style:d.avatar,className:"book-people-avatar"},{children:b(null==e?void 0:e.name)})),o("span",l({style:d.contributorName,className:"book-people-name"},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(null==e?void 0:e.name,v))}}):null==e?void 0:e.name})),o("span",l({style:d.contributorRole,className:"book-people-role"},{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(null==e?void 0:e.role,v))}}):null==e?void 0:e.role}))]}),t)})}))]}),y.length>0&&n(t,{children:[o("p",l({style:d.sectionTitle,className:"book-people-section-title"},{children:"Awards"})),o("div",l({style:d.awardContainerWrapper,className:"book-people-award-wrapper"},{children:null==y?void 0:y.map(function(e,n){return o("div",l({style:d.awardInfo},{children:o("span",{children:v&&v.length>0?o("span",{dangerouslySetInnerHTML:{__html:a(r(null==e?void 0:e.title,v))}}):null==e?void 0:e.title})}),n)})}))]})]}))};export{p as default};
1
+ import{__spreadArray as e,__assign as l}from"tslib";import{jsxs as n,jsx as o,Fragment as t}from"react/jsx-runtime";import{useRef as i,useEffect as r}from"react";import{highlightTermsFunc as a}from"../utils/highlight.js";import{sanitizeHtml as d}from"../../../utils/sanitizeHtml.js";var p={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},card:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:500,fontSize:"14px",borderRadius:"4px",color:"#64748B",maxWidth:"100%",wordBreak:"break-word",marginBottom:"24px",width:"fit-content"},tag:{padding:"4px 12px",fontSize:"14px",fontWeight:500,color:"#3B82F6",backgroundColor:"#F3F8FF",borderRadius:"6px"},avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:"35px",width:"35px",borderRadius:"50%",backgroundColor:"#E5E7EB",color:"#4B5563",fontWeight:600,flexShrink:0,fontSize:"12px"},contributorName:{fontWeight:600,color:"#111827",marginTop:"8px",fontSize:"14px"},contributorRole:{fontSize:"12px",color:"#6B7280"},grid:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"24px",marginBottom:"24px",padding:"0 12px"},awardMeta:{fontSize:"14px",color:"#4B5563"},awardDesc:{fontSize:"14px",color:"#4B5563"},awardContainer:{display:"flex",gap:"8px"},awardInfo:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:600,fontSize:"12px",borderRadius:"4px",color:"#434C54",maxWidth:"100%",wordBreak:"break-word",width:"fit-content"},listContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",marginBottom:"24px"},awardContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px"}},s=function(s){var c,u,m,v=s.data,g=s.highlightTerms,h=s.onHighlightMatch,f=v.publisher,x=v.contributors,y=v.awards,b=void 0===y?[]:y,w=i(null),k=function(e){var l=e.trim().split(/\s+/).map(function(e){var l;return null===(l=e[0])||void 0===l?void 0:l.toUpperCase()}).join("");return l.length>3?"".concat(l.slice(0,3)):l};return r(function(){var l,n,o,t,i,r,a,d,p,s,c,u;if(g&&0!==g.length){var m=e(e(e(e([null!==(n=null===(l=v.publisher)||void 0===l?void 0:l.name)&&void 0!==n?n:""],null!==(t=null===(o=v.publisher)||void 0===o?void 0:o.tags)&&void 0!==t?t:[],!0),null!==(a=null===(r=null===(i=v.contributors)||void 0===i?void 0:i.primary)||void 0===r?void 0:r.flatMap(function(l){var n;return e([l.name,l.role],null!==(n=l.tags)&&void 0!==n?n:[],!0)}))&&void 0!==a?a:[],!0),null!==(s=null===(p=null===(d=v.contributors)||void 0===d?void 0:d.additional)||void 0===p?void 0:p.flatMap(function(l){var n;return e([l.name,l.role],null!==(n=l.tags)&&void 0!==n?n:[],!0)}))&&void 0!==s?s:[],!0),null!==(u=null===(c=v.awards)||void 0===c?void 0:c.flatMap(function(e){return[e.title,e.org,String(e.year),e.country]}))&&void 0!==u?u:[],!0).some(function(e){return!!e&&g.some(function(l){return e.toLowerCase().includes(l.toLowerCase())})});null==h||h(m)}},[g,v]),n("div",l({ref:w,className:"book-people-container"},{children:[o("p",l({style:p.sectionTitle,className:"book-people-section-title"},{children:"Publishers"})),n("div",l({style:p.card,className:"book-people-card"},{children:[o("span",l({style:{color:"rgb(67, 76, 85)"}},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(f.name,g))}}):f.name})),(null==f?void 0:f.tags)&&(null==f?void 0:f.tags.length)>0&&o("div",l({style:{display:"flex",gap:"8px",marginTop:"18px"}},{children:null===(c=null==f?void 0:f.tags)||void 0===c?void 0:c.map(function(e,n){return o("span",l({style:p.tag},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(e,g))}}):e}),n)})}))]})),o("p",l({style:p.sectionTitle,className:"book-people-section-title"},{children:"Contributors"})),o("div",l({style:p.listContainerWrapper,className:"book-people-list-wrapper"},{children:null===(u=null==x?void 0:x.primary)||void 0===u?void 0:u.map(function(e,t){var i;return n("div",l({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[o("div",l({style:p.avatar,className:"book-people-avatar"},{children:k(null==e?void 0:e.name)})),o("span",l({style:p.contributorName,className:"book-people-name"},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(null==e?void 0:e.name,g))}}):null==e?void 0:e.name})),o("span",l({style:p.contributorRole,className:"book-people-role"},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(null==e?void 0:e.role,g))}}):null==e?void 0:e.role})),o("div",l({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:null===(i=null==e?void 0:e.tags)||void 0===i?void 0:i.map(function(e,n){return o("span",l({style:p.tag},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(e,g))}}):e}),n)})}))]}),t)})})),x.additional&&x.additional.length>0&&n(t,{children:[o("p",l({style:p.sectionTitle,className:"book-people-section-title"},{children:"Additional Contributors"})),o("div",l({style:p.listContainerWrapper,className:"book-people-list-wrapper"},{children:null===(m=null==x?void 0:x.additional)||void 0===m?void 0:m.map(function(e,t){return n("div",l({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[o("div",l({style:p.avatar,className:"book-people-avatar"},{children:k(null==e?void 0:e.name)})),o("span",l({style:p.contributorName,className:"book-people-name"},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(null==e?void 0:e.name,g))}}):null==e?void 0:e.name})),o("span",l({style:p.contributorRole,className:"book-people-role"},{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(null==e?void 0:e.role,g))}}):null==e?void 0:e.role}))]}),t)})}))]}),b.length>0&&n(t,{children:[o("p",l({style:p.sectionTitle,className:"book-people-section-title"},{children:"Awards"})),o("div",l({style:p.awardContainerWrapper,className:"book-people-award-wrapper"},{children:null==b?void 0:b.map(function(e,n){return o("div",l({style:p.awardInfo},{children:o("span",{children:g&&g.length>0?o("span",{dangerouslySetInnerHTML:{__html:d(a(null==e?void 0:e.title,g))}}):null==e?void 0:e.title})}),n)})}))]})]}))};export{s as default};
2
2
  //# sourceMappingURL=BookPeopleAwardsCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsx as i}from"react/jsx-runtime";import e from"@mui/material/Dialog";import t from"@mui/material/DialogContent";import{BookemonContent as n}from"./BookemonContent.js";var r={maxWidth:"none",fontFamily:"Inter, sans-serif"},l={wrapper:{alignItems:"center",justifyContent:"center",textAlign:"center"},inner:{width:"100%"},iconWrapper:{width:"80px",height:"80px",background:"linear-gradient(to right, #3B82F6, #9333EA)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto"},icon:{width:"40px",height:"40px",color:"#FFFFFF"},heading:{fontSize:"36px",fontWeight:"bold",color:"#9333EA",marginBottom:"16px"},text:{fontSize:"18px",color:"#4B5563",lineHeight:1.6,textAlign:"center"},errorState:{color:"#CE3928",padding:"18px 0px",display:"flex",justifyContent:"center",width:"100%"}},s=i("svg",o({style:l.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},{children:i("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})),a=function(l){var a=l.open,g=l.onClose,h=l.isDialog,d=void 0===h||h,m=l.isBookPreview,c=void 0===m||m,u=l.isNonHighlightedBlur,p=l.isBookemon,f=l.getHighlightContent,x=l.handleFetchManuscriptElements,B=l.data,C=l.showComingSoon,v=void 0!==C&&C,k=l.comingSoonData,w=void 0===k?{header:"Bookemon Coming Soon!!",subheader:"We're working on something amazing. Stay tuned for updates!",icon:s}:k,y=l.customStyle,S=void 0===y?{}:y,F=l.isBlurToggleVisible,D=void 0!==F&&F,b=l.highlightTerms,H=null!=g?g:function(){};return d?i(e,o({open:null!=a&&a,fullWidth:!0,PaperProps:{style:o(o({},r),null==S?void 0:S.dialogDimension)}},{children:i(t,o({style:{padding:0}},{children:i(n,{data:B,customStyle:S,comingSoonData:w,showComingSoon:v,isNonHighlightedBlur:u,isBlurToggleVisible:D,isBookemon:p,highlightTerms:b,getHighlightContent:f,handleFetchManuscriptElements:x,isBookPreview:c,isDialog:d,onClose:H})}))})):i("div",o({style:{width:"100%",height:"100%"}},{children:i(n,{data:B,customStyle:S,comingSoonData:w,showComingSoon:v,isNonHighlightedBlur:u,isBlurToggleVisible:D,isBookemon:p,highlightTerms:b,getHighlightContent:f,handleFetchManuscriptElements:x,isBookPreview:c,isDialog:d,onClose:H})}))};export{l as comingSoonStyles,a as default,s as defaultIcon};
1
+ import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import i from"@mui/material/Dialog";import t from"@mui/material/DialogContent";import{BookemonContent as n}from"./BookemonContent.js";var l={maxWidth:"none",fontFamily:"Inter, sans-serif"},r={wrapper:{alignItems:"center",justifyContent:"center",textAlign:"center"},inner:{width:"100%"},iconWrapper:{width:"80px",height:"80px",background:"linear-gradient(to right, #3B82F6, #9333EA)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto"},icon:{width:"40px",height:"40px",color:"#FFFFFF"},heading:{fontSize:"36px",fontWeight:"bold",color:"#9333EA",marginBottom:"16px"},text:{fontSize:"18px",color:"#4B5563",lineHeight:1.6,textAlign:"center"},errorState:{color:"#CE3928",padding:"18px 0px",display:"flex",justifyContent:"center",width:"100%"}},a=o("svg",e({style:r.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},{children:o("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})),s=function(r){var s=r.open,g=r.onClose,h=r.isDialog,d=void 0===h||h,m=r.isBookPreview,u=void 0===m||m,c=r.isNonHighlightedBlur,p=r.isBookemon,f=r.getHighlightContent,x=r.handleFetchManuscriptElements,B=r.data,C=r.showComingSoon,v=void 0!==C&&C,k=r.comingSoonData,w=void 0===k?{header:"Bookemon Coming Soon!!",subheader:"We're working on something amazing. Stay tuned for updates!",icon:a}:k,y=r.customStyle,S=void 0===y?{}:y,F=r.isBlurToggleVisible,D=void 0!==F&&F,E=r.highlightTerms,b=r.defaultElementPages,P=null!=g?g:function(){};return d?o(i,e({open:null!=s&&s,fullWidth:!0,PaperProps:{style:e(e({},l),null==S?void 0:S.dialogDimension)}},{children:o(t,e({style:{padding:0}},{children:o(n,{data:B,customStyle:S,comingSoonData:w,showComingSoon:v,isNonHighlightedBlur:c,isBlurToggleVisible:D,isBookemon:p,highlightTerms:E,getHighlightContent:f,handleFetchManuscriptElements:x,isBookPreview:u,isDialog:d,onClose:P,defaultElementPages:b})}))})):o("div",e({style:{width:"100%",height:"100%"}},{children:o(n,{data:B,customStyle:S,comingSoonData:w,showComingSoon:v,isNonHighlightedBlur:c,isBlurToggleVisible:D,isBookemon:p,highlightTerms:E,getHighlightContent:f,handleFetchManuscriptElements:x,isBookPreview:u,isDialog:d,onClose:P,defaultElementPages:b})}))};export{r as comingSoonStyles,s as default,a as defaultIcon};
2
2
  //# sourceMappingURL=Bookemon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as o,__generator as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as l,useEffect as a}from"react";import{PanelGroup as d,Panel as c,PanelResizeHandle as s}from"react-resizable-panels";import h from"@mui/material/Accordion";import g from"@mui/material/AccordionSummary";import u from"@mui/material/Typography";import p from"@mui/material/AccordionDetails";import m from"@mui/material/IconButton";import f from"./BookDetailsCard/BookDetailsCard.js";import y from"./BookOverviewCard/BookOverviewCard.js";import v from"./BookElementsCard/BookElementsCard.js";import x from"./BookCopyrightsCard/BookCopyrightsCard.js";import b from"./BookPeopleAwardsCard/BookPeopleAwardsCard.js";import C from"./BookPreview/BookPreview.js";import k from"@mui/icons-material/ExpandMore";import w from"@mui/icons-material/Close";var B={dialogPaper:{maxWidth:"none",fontFamily:"Inter, sans-serif"},dialogHeight:{overflow:"hidden",height:"90vh",position:"relative"},dialogContent:{padding:0,backgroundColor:"#FFFFFF"},container:{display:"flex",height:"100%",width:"100%",alignItems:"flex-start"},leftPanel:{height:"100%",padding:"24px",overflowY:"auto",backgroundColor:"#F3F4F6",borderRadius:"12px",boxSizing:"border-box"},rightPanel:{width:"40%",backgroundColor:"#FFFFFF",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",overflow:"auto",flex:1,boxSizing:"border-box",overflowY:"auto"},accordion:{borderRadius:"12px",boxShadow:"none",marginBottom:"24px"},accordionSummary:{paddingLeft:"16px",paddingRight:"16px"},accordionDetails:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px"},heading:{fontWeight:"bold",color:"#000000",fontSize:"16px"},blurOverlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",backgroundColor:"rgba(255, 255, 255, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,borderRadius:"12px"},closeButton:{position:"absolute",top:"8px",right:"8px",color:"#111827"},resizeHandle:{width:"10px",backgroundColor:"#e5e7eb",cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center"},iconContainer:{display:"flex",flexDirection:"column",gap:"4px"},dot:{width:"4px",height:"4px",backgroundColor:"#6b7280",borderRadius:"50%"},resizeHandleBar:{width:"2px",height:"24px",backgroundColor:"#666",borderRadius:"2px"}},D={wrapper:{alignItems:"center",justifyContent:"center",textAlign:"center"},inner:{width:"100%"},iconWrapper:{width:"80px",height:"80px",background:"linear-gradient(to right, #3B82F6, #9333EA)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto"},icon:{width:"40px",height:"40px",color:"#FFFFFF"},heading:{fontSize:"36px",fontWeight:"bold",color:"#9333EA",marginBottom:"16px"},text:{fontSize:"18px",color:"#4B5563",lineHeight:1.6,textAlign:"center"},errorState:{color:"#CE3928",padding:"18px 0px",display:"flex",justifyContent:"center",width:"100%"}},F=function(o){var t=o.header,n=o.subheader,l=o.icon;return r("div",e({style:D.wrapper},{children:i("div",e({style:D.inner},{children:[r("div",e({style:{marginBottom:"32px"}},{children:r("div",e({style:D.iconWrapper},{children:l}))})),i("div",{children:[r("h1",e({style:D.heading},{children:t})),r("p",e({style:D.text},{children:n}))]})]}))}))},S=function(D){var S=D.showComingSoon,H=D.onClose,z=D.highlightTerms,j=D.data,M=D.customStyle,I=D.comingSoonData,P=D.isNonHighlightedBlur,T=D.isBlurToggleVisible,A=D.isBookemon,E=D.getHighlightContent,O=D.handleFetchManuscriptElements,L=D.isBookPreview,R=D.isDialog,W=n({textToHighLight:"",content:""}),N=W[0],V=W[1],Q=n(1),Y=Q[0],q=Q[1],_=n(!1),G=_[0],J=_[1],K=n("Book Preview"),U=K[0],X=K[1],Z=n(70),$=Z[0],ee=Z[1],oe=l(null),te=n(!1),ie=te[0],re=te[1],ne=function(e,i,r,n){return void 0===n&&(n=0),o(void 0,void 0,void 0,function(){var o,l,a,d,c,s,h,g,u,p,m,f,y,v,x,b;return t(this,function(t){switch(t.label){case 0:V({textToHighLight:"",content:""}),re(!1),J(!0),X(i),t.label=1;case 1:return t.trys.push([1,5,6,7]),r&&0!==r.length?[4,null==E?void 0:E([r[n]])]:(J(!1),ee(70),null===(x=oe.current)||void 0===x||x.resize(70),[2]);case 2:if(o=t.sent(),l=(null==o?void 0:o.data)||o||[],!Array.isArray(l)||0===l.length)return re(!0),J(!1),[2];for(d=(a=function(e){return e?e.replace(/<[^>]*>/g," ").replace(/&nbsp;/g," ").replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"').replace(/[\u2013\u2014]/g,"-").replace(/[.,!?;:'"(){}\[\]—–…\/\\@#&*_|\^~%=+<>`]/g,"").replace(/\s+/g," ").trim().toLowerCase():""})(e),c=null,s=0,h=l;s<h.length;s++)if(f=h[s],a(f.normalizedContent||f.htmlContent).includes(d)){c=f;break}if(!c)for(g=d.split(" ").filter(Boolean);g.length>0;){for(u=g.join(" "),p=0,m=l;p<m.length;p++)if(f=m[p],a(f.normalizedContent||f.htmlContent).includes(u)){c=f;break}if(c)break;g.pop()}return y=l.map(function(e){return e.htmlContent}).join("\n"),V({textToHighLight:c?c.htmlContent:"",content:y}),ee(50),null===(b=oe.current)||void 0===b||b.resize(50),!c&&n+1<r.length?[4,ne(e,i,r,n+1)]:[3,4];case 3:return[2,t.sent()];case 4:return[2];case 5:return v=t.sent(),console.error("Highlight error:",v),re(!0),[3,7];case 6:return J(!1),[7];case 7:return[2]}})})},le=n(!1),ae=le[0],de=le[1],ce=n(!1),se=ce[0],he=ce[1],ge=n(!1),ue=ge[0],pe=ge[1],me=n(!1),fe=me[0],ye=me[1],ve=n(!1),xe=ve[0],be=ve[1],Ce=n(!1),ke=Ce[0],we=Ce[1],Be=n(!1),De=Be[0],Fe=Be[1],Se=n(!1),He=Se[0],ze=Se[1],je=n(!1),Me=je[0],Ie=je[1],Pe=n(!1),Te=Pe[0],Ae=Pe[1];a(function(){ae&&we(!0),se&&Fe(!0),ue&&ze(!0),fe&&Ie(!0),xe&&Ae(!0)},[ae,se,ue,fe,xe]);var Ee=j.bookAwards,Oe=j.bookCopyRight,Le=j.bookDetails,Re=j.bookElements,We=j.bookOverView,Ne=j.bookCoverImage,Ve=null==Le?void 0:Le.isbn,Qe=null!=H?H:function(){};return i("div",e({style:e(e({},B.dialogContent),R?B.dialogHeight:{})},{children:[!S&&r("div",e({style:B.container},{children:i(d,e({direction:"horizontal"},{children:[r(c,e({order:1,ref:oe,defaultSize:$||70},{children:i("div",e({style:e(e({},null==B?void 0:B.leftPanel),null==M?void 0:M.leftPanel)},{children:[r("div",e({style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:i(h,e({expanded:ke,onChange:function(e,o){return we(o)},elevation:0,style:B.accordion},{children:[r(g,e({expandIcon:r(k,{}),style:B.accordionSummary},{children:r(u,e({style:B.heading},{children:"Book Overview"}))})),r(p,e({style:B.accordionDetails},{children:We&&Object.keys(We).length>0?r(y,{data:We,highlightTerms:z,onHighlightMatch:de}):r("div",e({style:B.errorState},{children:"No overview data available."}))}))]}))})),r("div",e({style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:i(h,e({elevation:0,style:B.accordion,expanded:De,onChange:function(e,o){return Fe(o)}},{children:[r(g,e({expandIcon:r(k,{}),style:B.accordionSummary},{children:r(u,e({style:B.heading},{children:"Book Manuscript Elements"}))})),r(p,e({style:B.accordionDetails},{children:r(v,{data:Re,title:(null==We?void 0:We.title)||"",handleFetchManuscriptElements:O,BookIsbn:Ve,updateQuotesToHighLight:ne,highlightTerms:z,onHighlightMatch:he})}))]}))})),r("div",e({style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:i(h,e({expanded:He,onChange:function(e,o){return ze(o)},elevation:0,style:B.accordion},{children:[r(g,e({expandIcon:r(k,{}),style:B.accordionSummary},{children:r(u,e({style:B.heading},{children:"Book Metadata Details"}))})),r(p,e({style:B.accordionDetails},{children:Le&&Object.keys(Le).length>0?r(f,{data:Le,highlightTerms:z,onHighlightMatch:pe}):r("div",e({style:B.errorState},{children:"No Book Metadata data available."}))}))]}))})),r("div",e({style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:i(h,e({elevation:0,style:B.accordion,expanded:Me,onChange:function(e,o){return Ie(o)}},{children:[r(g,e({expandIcon:r(k,{}),style:B.accordionSummary},{children:r(u,e({style:B.heading},{children:"Copyrights & Marketing"}))})),r(p,e({style:B.accordionDetails},{children:Oe&&Object.keys(Oe).length>0?r(x,{data:Oe,highlightTerms:z,onHighlightMatch:ye}):r("div",e({style:B.errorState},{children:"No Copyrights & Marketing data available."}))}))]}))})),r("div",{children:i(h,e({elevation:0,style:B.accordion,expanded:Te,onChange:function(e,o){return Ae(o)}},{children:[r(g,e({expandIcon:r(k,{}),style:B.accordionSummary},{children:r(u,e({style:B.heading},{children:"People & Awards"}))})),r(p,e({style:B.accordionDetails},{children:Ee&&Object.keys(Ee).length>0?r(b,{data:Ee,highlightTerms:z,onHighlightMatch:be}):r("div",e({style:B.errorState},{children:"No People & Awards data available."}))}))]}))})]}))})),L&&r(s,{style:{width:"3px",background:"#D1D5DC",cursor:"col-resize"}}),L&&r(c,e({order:2,minSize:30,maxSize:50,style:{overflow:"visible",position:"relative",transition:"all 300ms ease-in-out",WebkitTransition:"all 300ms ease-in-out"}},{children:r(C,{bookOverView:We,bookCoverImage:Ne,onClose:Qe,clickableElementCategory:U,quotesToHighLightData:N,updateQuotesToHighLight:ne,citationLoad:G,previewPage:Y,setPreviewPage:q,customStyle:M,comingSoonData:I,isNonHighlightedBlur:P,isBlurToggleVisible:T,isBookemon:A,noHtmlContent:ie})}))]}))})),S&&i("div",e({style:B.blurOverlay},{children:[r(m,e({style:B.closeButton,onClick:H,size:"large"},{children:r(w,{})})),r(F,{header:null==I?void 0:I.header,subheader:null==I?void 0:I.subheader,icon:null==I?void 0:I.icon})]}))]}))};export{S as BookemonContent};
1
+ import{__assign as e,__awaiter as t,__generator as o}from"tslib";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{useState as n,useRef as l,useEffect as a}from"react";import{PanelGroup as d,Panel as c,PanelResizeHandle as s}from"react-resizable-panels";import h from"@mui/material/Accordion";import u from"@mui/material/AccordionSummary";import g from"@mui/material/Typography";import p from"@mui/material/AccordionDetails";import m from"@mui/material/IconButton";import f from"./BookDetailsCard/BookDetailsCard.js";import v from"./BookOverviewCard/BookOverviewCard.js";import y from"./BookElementsCard/BookElementsCard.js";import b from"./BookCopyrightsCard/BookCopyrightsCard.js";import x from"./BookPeopleAwardsCard/BookPeopleAwardsCard.js";import k from"./BookPreview/BookPreview.js";import C from"@mui/icons-material/ExpandMore";import w from"@mui/icons-material/Close";var B={dialogPaper:{maxWidth:"none",fontFamily:"Inter, sans-serif"},dialogHeight:{overflow:"hidden",height:"90vh",position:"relative"},dialogContent:{padding:0,backgroundColor:"#FFFFFF"},container:{display:"flex",height:"100%",width:"100%",alignItems:"flex-start"},leftPanel:{height:"100%",padding:"24px",overflowY:"auto",backgroundColor:"#F3F4F6",borderRadius:"12px",boxSizing:"border-box"},rightPanel:{width:"40%",backgroundColor:"#FFFFFF",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",overflow:"auto",flex:1,boxSizing:"border-box",overflowY:"auto"},accordion:{borderRadius:"12px",boxShadow:"none",marginBottom:"24px"},accordionSummary:{paddingLeft:"16px",paddingRight:"16px"},accordionDetails:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px"},heading:{fontWeight:"bold",color:"#000000",fontSize:"16px"},blurOverlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",backgroundColor:"rgba(255, 255, 255, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,borderRadius:"12px"},closeButton:{position:"absolute",top:"8px",right:"8px",color:"#111827"},resizeHandle:{width:"10px",backgroundColor:"#e5e7eb",cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center"},iconContainer:{display:"flex",flexDirection:"column",gap:"4px"},dot:{width:"4px",height:"4px",backgroundColor:"#6b7280",borderRadius:"50%"},resizeHandleBar:{width:"2px",height:"24px",backgroundColor:"#666",borderRadius:"2px"}},S={wrapper:{alignItems:"center",justifyContent:"center",textAlign:"center"},inner:{width:"100%"},iconWrapper:{width:"80px",height:"80px",background:"linear-gradient(to right, #3B82F6, #9333EA)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto"},icon:{width:"40px",height:"40px",color:"#FFFFFF"},heading:{fontSize:"36px",fontWeight:"bold",color:"#9333EA",marginBottom:"16px"},text:{fontSize:"18px",color:"#4B5563",lineHeight:1.6,textAlign:"center"},errorState:{color:"#CE3928",padding:"18px 0px",display:"flex",justifyContent:"center",width:"100%"}},D=function(t){var o=t.header,n=t.subheader,l=t.icon;return i("div",e({style:S.wrapper},{children:r("div",e({style:S.inner},{children:[i("div",e({style:{marginBottom:"32px"}},{children:i("div",e({style:S.iconWrapper},{children:l}))})),r("div",{children:[i("h1",e({style:S.heading},{children:o})),i("p",e({style:S.text},{children:n}))]})]}))}))},F=function(S){var F=S.showComingSoon,P=S.onClose,H=S.highlightTerms,I=S.data,z=S.customStyle,j=S.comingSoonData,E=S.isNonHighlightedBlur,M=S.isBlurToggleVisible,T=S.isBookemon,A=S.getHighlightContent,O=S.handleFetchManuscriptElements,L=S.isBookPreview,R=S.isDialog,V=S.defaultElementPages,W=n({textToHighLight:"",content:""}),q=W[0],N=W[1],Q=n(1),Y=Q[0],_=Q[1],G=n(!1),J=G[0],K=G[1],U=n("Book Preview"),X=U[0],Z=U[1],$=n(70),ee=$[0],te=$[1],oe=l(null),re=n(!1),ie=re[0],ne=re[1],le=l(null),ae=l(null),de=l(null),ce=l(null),se=l(null),he=function(e,r,i,n){return void 0===n&&(n=0),t(void 0,void 0,void 0,function(){var t,l,a,d,c,s,h,u,g,p,m,f,v,y,b,x;return o(this,function(o){switch(o.label){case 0:N({textToHighLight:"",content:""}),ne(!1),K(!0),Z(r),o.label=1;case 1:return o.trys.push([1,5,6,7]),i&&0!==i.length?[4,null==A?void 0:A([i[n]])]:(K(!1),te(70),null===(b=oe.current)||void 0===b||b.resize(70),[2]);case 2:if(t=o.sent(),l=(null==t?void 0:t.data)||t||[],!Array.isArray(l)||0===l.length)return ne(!0),K(!1),[2];for(d=(a=function(e){return e?e.replace(/<[^>]*>/g," ").replace(/&nbsp;/g," ").replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"').replace(/[\u2013\u2014]/g,"-").replace(/[.,!?;:'"(){}\[\]—–…\/\\@#&*_|\^~%=+<>`]/g,"").replace(/\s+/g," ").trim().toLowerCase():""})(e),c=null,s=0,h=l;s<h.length;s++)if(f=h[s],a(f.normalizedContent||f.htmlContent).includes(d)){c=f;break}if(!c)for(u=d.split(" ").filter(Boolean);u.length>0;){for(g=u.join(" "),p=0,m=l;p<m.length;p++)if(f=m[p],a(f.normalizedContent||f.htmlContent).includes(g)){c=f;break}if(c)break;u.pop()}return v=l.map(function(e){return e.htmlContent}).join("\n"),N({textToHighLight:c?c.htmlContent:"",content:v}),te(50),null===(x=oe.current)||void 0===x||x.resize(50),!c&&n+1<i.length?[4,he(e,r,i,n+1)]:[3,4];case 3:return[2,o.sent()];case 4:return[2];case 5:return y=o.sent(),console.error("Highlight error:",y),ne(!0),[3,7];case 6:return K(!1),[7];case 7:return[2]}})})},ue=n(!1),ge=ue[0],pe=ue[1],me=n(!1),fe=me[0],ve=me[1],ye=n(!1),be=ye[0],xe=ye[1],ke=n(!1),Ce=ke[0],we=ke[1],Be=n(!1),Se=Be[0],De=Be[1],Fe=n(!1),Pe=Fe[0],He=Fe[1],Ie=n(!1),ze=Ie[0],je=Ie[1],Ee=n(!1),Me=Ee[0],Te=Ee[1],Ae=n(!1),Oe=Ae[0],Le=Ae[1],Re=n(!1),Ve=Re[0],We=Re[1];a(function(){ge&&He(!0),fe&&je(!0),be&&Te(!0),Ce&&Le(!0),Se&&We(!0)},[ge,fe,be,Ce,Se]);var qe=I.bookAwards,Ne=I.bookCopyRight,Qe=I.bookDetails,Ye=I.bookElements,_e=I.bookOverView,Ge=I.bookCoverImage,Je=null==Qe?void 0:Qe.isbn,Ke=null!=P?P:function(){};return r("div",e({style:e(e({},B.dialogContent),R?B.dialogHeight:{})},{children:[!F&&i("div",e({style:B.container},{children:r(d,e({direction:"horizontal"},{children:[i(c,e({order:1,ref:oe,defaultSize:ee||70},{children:r("div",e({style:e(e({},null==B?void 0:B.leftPanel),null==z?void 0:z.leftPanel)},{children:[i("div",e({ref:le,style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:r(h,e({expanded:Pe,onChange:function(e,t){return He(t)},slotProps:{transition:{onEntered:function(){var e=le.current,t=null==e?void 0:e.querySelector('[data-highlight="true"]');t&&e&&!e.dataset.scrolled&&(t.scrollIntoView({behavior:"smooth",block:"center"}),e.dataset.scrolled="true")}}},elevation:0,style:B.accordion},{children:[i(u,e({expandIcon:i(C,{}),style:B.accordionSummary},{children:i(g,e({style:B.heading},{children:"Book Overview"}))})),i(p,e({style:B.accordionDetails},{children:_e&&Object.keys(_e).length>0?i(v,{data:_e,highlightTerms:H,onHighlightMatch:pe}):i("div",e({style:B.errorState},{children:"No overview data available."}))}))]}))})),i("div",e({ref:ae,style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:r(h,e({elevation:0,style:B.accordion,expanded:ze,onChange:function(e,t){return je(t)},slotProps:{transition:{onEntered:function(){var e=ae.current,t=null==e?void 0:e.querySelector('[data-highlight="true"]');t&&e&&!e.dataset.scrolled&&(t.scrollIntoView({behavior:"smooth",block:"center"}),e.dataset.scrolled="true")}}}},{children:[i(u,e({expandIcon:i(C,{}),style:B.accordionSummary},{children:i(g,e({style:B.heading},{children:"Book Manuscript Elements"}))})),i(p,e({style:B.accordionDetails},{children:i(y,{data:Ye,title:(null==_e?void 0:_e.title)||"",handleFetchManuscriptElements:O,BookIsbn:Je,updateQuotesToHighLight:he,highlightTerms:H,onHighlightMatch:ve,defaultPages:V})}))]}))})),i("div",e({ref:de,style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:r(h,e({expanded:Me,onChange:function(e,t){return Te(t)},elevation:0,style:B.accordion,slotProps:{transition:{onEntered:function(){var e=de.current,t=null==e?void 0:e.querySelector('[data-highlight="true"]');t&&e&&!e.dataset.scrolled&&(t.scrollIntoView({behavior:"smooth",block:"center"}),e.dataset.scrolled="true")}}}},{children:[i(u,e({expandIcon:i(C,{}),style:B.accordionSummary},{children:i(g,e({style:B.heading},{children:"Book Metadata Details"}))})),i(p,e({style:B.accordionDetails},{children:Qe&&Object.keys(Qe).length>0?i(f,{data:Qe,highlightTerms:H,onHighlightMatch:xe}):i("div",e({style:B.errorState},{children:"No Book Metadata data available."}))}))]}))})),i("div",e({ref:ce,style:{marginBottom:"24px"},onMouseDown:function(e){return e.preventDefault()}},{children:r(h,e({elevation:0,style:B.accordion,expanded:Oe,onChange:function(e,t){return Le(t)},slotProps:{transition:{onEntered:function(){var e=ce.current,t=null==e?void 0:e.querySelector('[data-highlight="true"]');t&&e&&!e.dataset.scrolled&&(t.scrollIntoView({behavior:"smooth",block:"center"}),e.dataset.scrolled="true")}}}},{children:[i(u,e({expandIcon:i(C,{}),style:B.accordionSummary},{children:i(g,e({style:B.heading},{children:"Copyrights & Marketing"}))})),i(p,e({style:B.accordionDetails},{children:Ne&&Object.keys(Ne).length>0?i(b,{data:Ne,highlightTerms:H,onHighlightMatch:we}):i("div",e({style:B.errorState},{children:"No Copyrights & Marketing data available."}))}))]}))})),i("div",e({ref:se},{children:r(h,e({elevation:0,style:B.accordion,expanded:Ve,onChange:function(e,t){return We(t)},slotProps:{transition:{onEntered:function(){var e=se.current,t=null==e?void 0:e.querySelector('[data-highlight="true"]');t&&e&&!e.dataset.scrolled&&(t.scrollIntoView({behavior:"smooth",block:"center"}),e.dataset.scrolled="true")}}}},{children:[i(u,e({expandIcon:i(C,{}),style:B.accordionSummary},{children:i(g,e({style:B.heading},{children:"People & Awards"}))})),i(p,e({style:B.accordionDetails},{children:qe&&Object.keys(qe).length>0?i(x,{data:qe,highlightTerms:H,onHighlightMatch:De}):i("div",e({style:B.errorState},{children:"No People & Awards data available."}))}))]}))}))]}))})),L&&i(s,{style:{width:"3px",background:"#D1D5DC",cursor:"col-resize"}}),L&&i(c,e({order:2,minSize:30,maxSize:50,style:{overflow:"visible",position:"relative",transition:"all 300ms ease-in-out",WebkitTransition:"all 300ms ease-in-out"}},{children:i(k,{bookOverView:_e,bookCoverImage:Ge,onClose:Ke,clickableElementCategory:X,quotesToHighLightData:q,updateQuotesToHighLight:he,citationLoad:J,previewPage:Y,setPreviewPage:_,customStyle:z,comingSoonData:j,isNonHighlightedBlur:E,isBlurToggleVisible:M,isBookemon:T,noHtmlContent:ie})}))]}))})),F&&r("div",e({style:B.blurOverlay},{children:[i(m,e({style:B.closeButton,onClick:P,size:"large"},{children:i(w,{})})),i(D,{header:null==j?void 0:j.header,subheader:null==j?void 0:j.subheader,icon:null==j?void 0:j.icon})]}))]}))};export{F as BookemonContent};
2
2
  //# sourceMappingURL=BookemonContent.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as r}from"tslib";var t=function(t,e){if(!t)return"";if(!e||0===e.length)return t;for(var n=t,i=0,o=r([],e,!0).map(function(r){return r.trim()}).filter(Boolean).sort(function(r,t){return t.length-r.length});i<o.length;i++){var l=o[i].replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),f=new RegExp("\\b(".concat(l,")\\b"),"gi");n=n.replace(f,'<highlight style="background-color:#ffffb8;border-radius:2px;">$1</highlight>')}return n};export{t as highlightTermsFunc};
1
+ import{__spreadArray as r}from"tslib";var t=function(t,n){if(!t)return"";if(!n||0===n.length)return t;for(var e=t,o=0,a=r([],n,!0).map(function(r){return r.trim()}).filter(Boolean).sort(function(r,t){return t.length-r.length});o<a.length;o++){var i=a[o].replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),f=new RegExp("\\b(".concat(i,")\\b"),"gi");e=e.replace(f,'<span data-highlight="true" style="background-color:#ffffb8;border-radius:2px;">$1</span>')}return e},n=function(r,n){return r?n&&0!==n.length?t(r,n):r:""};export{t as highlightTermsFunc,n as processTextWithHighlight};
2
2
  //# sourceMappingURL=highlight.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o,__spreadArray as n}from"tslib";import{jsxs as t,Fragment as i,jsx as e}from"react/jsx-runtime";import{useState as r,useMemo as a}from"react";import l from"./InternalChatCitationRenderer.js";import{Modal as d}from"./components/wrappers/Modal.js";import s from"./components/IconContainer.js";import{Maximize2 as c,X as u}from"lucide-react";import v from"@mui/icons-material/SwapHoriz";function C(C){var h,p,m,y,f,b,k,w=r(!1),x=w[0],B=w[1],g=r(),S=g[0],E=g[1];function A(o){B(!0),E(o)}function D(){B(!1),E(void 0)}function R(o){E(o)}var z=a(function(){var o;return!!(null===(o=C.ruleBookContainer)||void 0===o?void 0:o.data)},[null===(h=C.ruleBookContainer)||void 0===h?void 0:h.data]),j=a(function(){var o;return!!((null===(o=C.tableComponent)||void 0===o?void 0:o.rows)&&Object.keys(C.tableComponent.rows).length>0)},[C.tableComponent]);return console.log("tableComponent data:",C.tableComponent),console.log("isTableDataPresent:",j),console.log("rootContainer",C.rootContainer),console.log("chatCitation",C.chatContainer),t(i,{children:[e(l,o({},C,{showRootContainer:C.showRootContainer,tableComponent:C.tableComponent,additionalData:o(o({},C.additionalData),{isExpanded:!1}),isRenderedCustomComponent:C.isRenderedCustomComponent||!1,closePreview:C.closePreview},C.chatContainer&&{chatContainer:o(o({},C.chatContainer),{show:!0,secondaryActions:function(t){var i,r,a,l,d;return n(n(n([],t,!0),null!==(r=null===(i=C.chatContainer)||void 0===i?void 0:i.additionalSecondaryActions)&&void 0!==r?r:[],!0),[(null===(d=null===(l=null===(a=C.chatContainer)||void 0===a?void 0:a.detailedTab)||void 0===l?void 0:l.chip)||void 0===d?void 0:d.isActive)&&e("span",{style:{width:"1px",height:"100%",border:"1px solid #E2E8F0"}}),e(s,o({onClick:function(){return A("chat")},style:{cursor:"pointer"}},{children:e(c,{size:16,color:"#64748B"})}))],!1)}})},{ruleBookContainer:z?o(o({},C.ruleBookContainer),{show:!0,secondaryActions:function(t){var i,r;return n(n(n([],t,!0),null!==(r=null===(i=C.ruleBookContainer)||void 0===i?void 0:i.additionalSecondaryActions)&&void 0!==r?r:[],!0),[e("span",{style:{width:"1px",border:"1px solid #E2E8F0"}}),e(s,o({onClick:function(){return A("rulebook")},style:{cursor:"pointer"}},{children:e(c,{size:16,color:"#64748B"})}))],!1)}}):void 0})),e(d,o({isOpen:x,onClose:D},{children:e(l,o({},C,{showRootContainer:C.showRootContainer,tableComponent:C.tableComponent,additionalData:o(o({},C.additionalData),{isExpanded:!0}),rootContainer:o(o({},C.rootContainer),{secondaryActions:function(t){return n(n([],t,!0),[e(s,o({onClick:D,style:{cursor:"pointer"}},{children:e(u,{size:20,color:"#64748B"})}))],!1)}})},C.chatContainer&&{chatContainer:o(o({},C.chatContainer),{show:void 0===S?void 0:"chat"===S,secondaryActions:function(t){var i,r,a;return n(n([],t,!0),[(null===(a=null===(r=null===(i=C.chatContainer)||void 0===i?void 0:i.detailedTab)||void 0===r?void 0:r.chip)||void 0===a?void 0:a.isActive)&&(z||j)&&e("span",{style:{width:"1px",height:"100%",border:"1px solid #E2E8F0"}}),(z||j)&&e(s,o({style:{cursor:"pointer"},onClick:function(){return R("rulebook")}},{children:e(v,{style:{color:"gray",fontSize:22}})}))],!1)},slotStyles:o(o({},null===(p=C.chatContainer)||void 0===p?void 0:p.slotStyles),{chatDataContainer:o(o({},null===(y=null===(m=C.chatContainer)||void 0===m?void 0:m.slotStyles)||void 0===y?void 0:y.chatDataContainer),{maxHeight:void 0})})})},{ruleBookContainer:z?o(o({},C.ruleBookContainer),{show:void 0===S?void 0:"rulebook"===S,secondaryActions:function(t){return n(n([],t,!0),[e("span",{style:{width:"1px",border:"1px solid #E2E8F0"}}),e(s,o({style:{cursor:"pointer"},onClick:function(){return R("chat")}},{children:e(v,{style:{color:"gray",fontSize:22}})}))],!1)},slotStyles:o(o({},null===(f=C.ruleBookContainer)||void 0===f?void 0:f.slotStyles),{dataContainer:o(o({},null===(k=null===(b=C.ruleBookContainer)||void 0===b?void 0:b.slotStyles)||void 0===k?void 0:k.dataContainer),{maxHeight:void 0})})}):void 0}))}))]})}export{C as default};
1
+ import{__assign as o,__spreadArray as n}from"tslib";import{jsxs as t,Fragment as i,jsx as e}from"react/jsx-runtime";import{useState as r,useMemo as a}from"react";import l from"./InternalChatCitationRenderer.js";import{Modal as d}from"./components/wrappers/Modal.js";import s from"./components/IconContainer.js";import{Maximize2 as c,X as u}from"lucide-react";import C from"@mui/icons-material/SwapHoriz";function v(v){var h,p,m,y,f,b,k,w=r(!1),x=w[0],B=w[1],S=r(),g=S[0],E=S[1];function A(o){B(!0),E(o)}function R(){B(!1),E(void 0)}function z(o){E(o)}var D=a(function(){var o;return!!(null===(o=v.ruleBookContainer)||void 0===o?void 0:o.data)},[null===(h=v.ruleBookContainer)||void 0===h?void 0:h.data]),j=a(function(){var o;return!!((null===(o=v.tableComponent)||void 0===o?void 0:o.rows)&&Object.keys(v.tableComponent.rows).length>0)},[v.tableComponent]);return console.log("tableComponent data:",v.tableComponent),console.log("isTableDataPresent:",j),console.log("rootContainer",v.rootContainer),console.log("chatCitation",v.chatContainer),t(i,{children:[e(l,o({},v,{showRootContainer:v.showRootContainer,tableComponent:v.tableComponent,additionalData:o(o({},v.additionalData),{isExpanded:!1}),isRenderedCustomComponent:v.isRenderedCustomComponent||!1,closePreview:v.closePreview},v.chatContainer&&{chatContainer:o(o({},v.chatContainer),{show:!0,secondaryActions:function(t){var i,r,a,l,d;return n(n(n([],t,!0),null!==(r=null===(i=v.chatContainer)||void 0===i?void 0:i.additionalSecondaryActions)&&void 0!==r?r:[],!0),[(null===(d=null===(l=null===(a=v.chatContainer)||void 0===a?void 0:a.detailedTab)||void 0===l?void 0:l.chip)||void 0===d?void 0:d.isActive)&&e("span",{style:{width:"1px",height:"100%",border:"1px solid #E2E8F0"}}),e(s,o({onClick:function(){return A("chat")},style:{cursor:"pointer"}},{children:e(c,{size:16,color:"#64748B"})}))],!1)}})},{ruleBookContainer:D?o(o({},v.ruleBookContainer),{show:!0,secondaryActions:function(t){var i,r;return n(n(n([],t,!0),null!==(r=null===(i=v.ruleBookContainer)||void 0===i?void 0:i.additionalSecondaryActions)&&void 0!==r?r:[],!0),[e("span",{style:{width:"1px",border:"1px solid #E2E8F0"}}),e(s,o({onClick:function(){return A("rulebook")},style:{cursor:"pointer"}},{children:e(c,{size:16,color:"#64748B"})}))],!1)}}):void 0})),e(d,o({isOpen:x,onClose:R,containerStyle:v.modalContainerStyle},{children:e(l,o({},v,{showRootContainer:v.showRootContainer,tableComponent:v.tableComponent,additionalData:o(o({},v.additionalData),{isExpanded:!0}),rootContainer:o(o({},v.rootContainer),{secondaryActions:function(t){return n(n([],t,!0),[e(s,o({onClick:R,style:{cursor:"pointer"}},{children:e(u,{size:20,color:"#64748B"})}))],!1)}})},v.chatContainer&&{chatContainer:o(o({},v.chatContainer),{show:void 0===g?void 0:"chat"===g,secondaryActions:function(t){var i,r,a;return n(n([],t,!0),[(null===(a=null===(r=null===(i=v.chatContainer)||void 0===i?void 0:i.detailedTab)||void 0===r?void 0:r.chip)||void 0===a?void 0:a.isActive)&&(D||j)&&e("span",{style:{width:"1px",height:"100%",border:"1px solid #E2E8F0"}}),(D||j)&&e(s,o({style:{cursor:"pointer"},onClick:function(){return z("rulebook")}},{children:e(C,{style:{color:"gray",fontSize:22}})})),!v.showRootContainer&&e(s,o({onClick:R,style:{cursor:"pointer"}},{children:e(u,{size:20,color:"#64748B"})}))],!1)},slotStyles:o(o({},null===(p=v.chatContainer)||void 0===p?void 0:p.slotStyles),{chatDataContainer:o(o({},null===(y=null===(m=v.chatContainer)||void 0===m?void 0:m.slotStyles)||void 0===y?void 0:y.chatDataContainer),{maxHeight:void 0})})})},{ruleBookContainer:D?o(o({},v.ruleBookContainer),{show:void 0===g?void 0:"rulebook"===g,secondaryActions:function(t){return n(n([],t,!0),[e("span",{style:{width:"1px",border:"1px solid #E2E8F0"}}),e(s,o({style:{cursor:"pointer"},onClick:function(){return z("chat")}},{children:e(C,{style:{color:"gray",fontSize:22}})})),!v.showRootContainer&&e(s,o({onClick:R,style:{cursor:"pointer"}},{children:e(u,{size:20,color:"#64748B"})}))],!1)},slotStyles:o(o({},null===(f=v.ruleBookContainer)||void 0===f?void 0:f.slotStyles),{dataContainer:o(o({},null===(k=null===(b=v.ruleBookContainer)||void 0===b?void 0:b.slotStyles)||void 0===k?void 0:k.dataContainer),{maxHeight:void 0})})}):void 0}))}))]})}export{v as default};
2
2
  //# sourceMappingURL=ChatCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import{createPortal as r}from"react-dom";var i=function(i){var n=i.isOpen,d=i.onClose,l=i.children;return t(function(){return document.body.style.overflow=n?"hidden":"unset",function(){document.body.style.overflow="unset"}},[n]),n?r(e("div",o({style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.6)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2147483647,backdropFilter:"blur(2px)"},onClick:d},{children:e("div",o({style:{width:"80%",height:"80%",maxWidth:"1200px",backgroundColor:"#fff",borderRadius:"12px",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.5)",position:"relative"},onClick:function(o){return o.stopPropagation()}},{children:e("div",o({style:{flex:1,overflow:"auto",padding:"16px"}},{children:l}))}))})),document.body):null};export{i as Modal};
1
+ import{__assign as o}from"tslib";import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import{createPortal as i}from"react-dom";var n=function(n){var r,l=n.isOpen,d=n.onClose,c=n.children,a=n.containerStyle;return t(function(){return document.body.style.overflow=l?"hidden":"unset",function(){document.body.style.overflow="unset"}},[l]),l?i(e("div",o({style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.6)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2147483647,backdropFilter:"blur(2px)"},onClick:d},{children:e("div",o({style:o({width:"80%",height:"80%",maxWidth:"1200px",backgroundColor:"#fff",borderRadius:"12px",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.5)",position:"relative"},a),onClick:function(o){return o.stopPropagation()}},{children:e("div",o({style:{flex:1,overflow:"auto",padding:null!==(r=null==a?void 0:a.padding)&&void 0!==r?r:"16px"}},{children:c}))}))})),document.body):null};export{n as Modal};
2
2
  //# sourceMappingURL=Modal.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i}from"react/jsx-runtime";import n from"react-markdown";import r from"rehype-raw";import o from"remark-gfm";import{forwardRef as s,useState as l,useMemo as d}from"react";import a from"./CognitiveDecisioningWrapper.module.css.js";var c=function(){return t("svg",e({width:"13",height:"15",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2059 0.857334C8.62849 -0.0137806 6.77225 -0.231241 5.03618 0.251692C3.30011 0.734626 1.8228 1.8794 0.921793 3.43996C0.0207848 5.00052 -0.232 6.85229 0.217771 8.59724C0.667543 10.3422 1.78397 11.841 3.32708 12.7716V15.2653C3.32708 15.3591 3.34555 15.452 3.38145 15.5387C3.41735 15.6253 3.46996 15.7041 3.53629 15.7704C3.60261 15.8367 3.68136 15.8894 3.76802 15.9252C3.85468 15.9611 3.94756 15.9796 4.04136 15.9796C4.13516 15.9796 4.22805 15.9611 4.31471 15.9252C4.40137 15.8894 4.48011 15.8367 4.54644 15.7704C4.61277 15.7041 4.66538 15.6253 4.70128 15.5387C4.73717 15.452 4.75565 15.3591 4.75565 15.2653V12.351C4.75517 12.2196 4.71871 12.0907 4.65021 11.9785C4.58171 11.8663 4.48379 11.775 4.36708 11.7145C3.50392 11.2743 2.77367 10.612 2.25152 9.79584C1.72938 8.97965 1.4342 8.03905 1.39637 7.07087C1.35855 6.10269 1.57946 5.14193 2.03634 4.28749C2.49323 3.43306 3.16958 2.71584 3.99577 2.20967C4.82196 1.7035 5.76813 1.42667 6.73686 1.40769C7.70559 1.38871 8.66188 1.62826 9.50726 2.10168C10.3526 2.5751 11.0566 3.26528 11.5466 4.10116C12.0366 4.93704 12.2949 5.88842 12.2951 6.85733V11.3419C12.2951 11.4498 12.2522 11.5533 12.1759 11.6296C12.0996 11.7059 11.9961 11.7488 11.8882 11.7488H9.64593C9.45649 11.7488 9.27481 11.824 9.14086 11.958C9.0069 12.0919 8.93165 12.2736 8.93165 12.463V15.2653C8.93165 15.4548 9.0069 15.6365 9.14086 15.7704C9.27481 15.9044 9.45649 15.9796 9.64593 15.9796C9.83537 15.9796 10.0171 15.9044 10.151 15.7704C10.285 15.6365 10.3602 15.4548 10.3602 15.2653V13.1773H11.8882C12.1293 13.1773 12.3679 13.1299 12.5906 13.0376C12.8133 12.9454 13.0156 12.8102 13.1861 12.6398C13.3565 12.4693 13.4917 12.267 13.5839 12.0443C13.6762 11.8216 13.7236 11.5829 13.7236 11.3419V6.85848C13.7234 5.63584 13.3974 4.43536 12.7791 3.38058C12.1608 2.3258 11.2726 1.45484 10.2059 0.857334ZM4.98651 3.51676C5.78545 3.05623 6.71898 2.8859 7.62909 3.0346C8.5392 3.1833 9.36997 3.64189 9.98079 4.33276C10.3922 4.7979 10.2779 5.46648 9.85508 5.84705C8.61165 6.97048 6.55108 8.42648 4.50308 8.96933C3.98193 9.10648 3.41051 8.85505 3.21965 8.31791C2.90724 7.43742 2.91289 6.47535 3.23562 5.5986C3.55835 4.72184 4.1778 3.98457 4.98651 3.51676Z",fill:"#6D28D9"})}))},h=function(){return t("div",e({style:{display:"flex",height:"32px",width:"32px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5ff",color:"#6b27d9",flexShrink:0,border:"1.5px solid #f5f5ff"}},{children:i("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("path",{d:"M9 18h6"}),t("path",{d:"M10 22h4"}),t("path",{d:"M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.55-3 6H8a7 7 0 0 1-3-6 7 7 0 0 1 7-7z"})]}))}))},C=function(){return t("div",e({style:{display:"flex",height:"32px",width:"32px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5ff",flexShrink:0,border:"1.5px solid #f5f5ff"}},{children:i("svg",e({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#6b27d9",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("path",{d:"M4.92363 2.64844H1.93457V5.34844M1.93457 10.7484V12.5484M8.90904 2.64844H12.9601M16.9455 2.64844H19.9346V5.34844M4.92363 20.6484H1.93457V17.9484"}),t("path",{d:"M18.2707 19.1183C19.6383 17.75 19.6383 15.53 18.2707 14.16C16.9031 12.79 14.6831 12.79 13.3155 14.16C11.9479 15.53 11.9479 17.75 13.3155 19.11C14.6831 20.48 16.9031 20.48 18.2707 19.11ZM18.2707 19.1183L21.1436 21.9987"})]}))}))},p=function(n){var r=n.color,o=void 0===r?"#7b39ed":r,s=n.width,l=void 0===s?13:s,d=n.height,a=void 0===d?13:d,c=n.style;return t("span",e({style:e({display:"inline-flex",alignItems:"center",marginLeft:"4px"},c)},{children:i("svg",e({width:l,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M12.9975 5.40607C12.8868 4.86464 12.1132 4.86464 12.0025 5.40607C11.3236 8.72775 8.72775 11.3236 5.40607 12.0025C4.86464 12.1132 4.86464 12.8868 5.40607 12.9975C8.72775 13.6764 11.3236 16.2723 12.0025 19.5939C12.1132 20.1354 12.8868 20.1354 12.9975 19.5939C13.6764 16.2723 16.2723 13.6764 19.5939 12.9975C20.1354 12.8868 20.1354 12.1132 19.5939 12.0025C16.2723 11.3236 13.6764 8.72775 12.9975 5.40607Z",fill:o}),t("path",{d:"M3.7829 0.026852C3.77558 -0.00895077 3.72442 -0.00895062 3.7171 0.0268522C3.33729 1.88509 1.88509 3.33729 0.0268517 3.7171C-0.00895119 3.72442 -0.00895119 3.77558 0.0268517 3.7829C1.88509 4.16271 3.33729 5.61491 3.7171 7.47315C3.72442 7.50895 3.77558 7.50895 3.7829 7.47315C4.16271 5.61491 5.61491 4.16271 7.47315 3.7829C7.50895 3.77558 7.50895 3.72442 7.47315 3.7171C5.61491 3.33729 4.16271 1.88509 3.7829 0.026852Z",fill:o})]}))}))},f=s(function(s,f){var g=s.reasoning,u=s.gap,m=s.score,v=s.isOpen,y=s.onToggle,x=s.title,k=void 0===x?"Cognitive Decisioning AI":x,w=s.sections,b=s.styles,M=void 0===b?{}:b,N=s.mdComponents,I=void 0===N?{}:N,L=s.headerIcon,T=s.reasoningIcon,V=s.gapIcon,B=s.scoreIcon,H=s.hideTrigger,j=void 0!==H&&H,W=l({reasoning:!0,gap:!0}),D=W[0],R=W[1],S=L||t(c,{}),Z=T||t(h,{}),A=V||t(C,{}),G=B||t(p,{}),O=d(function(){return w||[{id:"reasoning",title:"Reasoning",subtitle:"Why this was picked",icon:Z,content:g||"No reasoning provided."},{id:"gap",title:"Gap",subtitle:"What's missing or unclear",icon:A,content:u||"No gaps identified."}]},[w,g,u]),P=d(function(){return[r]},[]),z=d(function(){return[o]},[]);return i("div",e({style:{display:"contents"}},{children:[!j&&i("button",e({onClick:y,className:"".concat(a.pill," ").concat(v?a.pillOpen:a.pillClosed),style:M.pill,"aria-expanded":v},{children:[S,t("svg",e({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:v?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:t("path",{d:"M6 9l6 6 6-6"})}))]})),v&&i("div",e({ref:f,className:a.container,style:M.container},{children:[i("div",e({className:a.header,style:M.header},{children:[i("div",e({className:a.headerTitle,style:M.headerTitle},{children:[S,t("span",e({className:a.headerTitleText,style:M.headerTitleText},{children:k}))]})),m&&i("div",e({className:a.badge,style:M.badge},{children:[G,"Decision Strength: ",m,"%"]}))]})),O.map(function(r,o){return i("div",e({className:a.sectionItem,style:M.sectionItem},{children:[i("button",e({onClick:function(){return t=r.id,void R(function(i){var n;return e(e({},i),((n={})[t]=!i[t],n))});var t},className:a.sectionButton,style:M.sectionButton},{children:[i("div",e({className:a.sectionHeaderGroup,style:M.sectionHeaderGroup},{children:[r.icon,i("div",{children:[t("h4",e({className:a.sectionTitle,style:M.sectionTitle},{children:r.title})),r.subtitle&&t("p",e({className:a.sectionSubtitle,style:M.sectionSubtitle},{children:r.subtitle}))]})]})),t("svg",e({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#9CA3AF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:D[r.id]?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:t("path",{d:"M6 9l6 6 6-6"})}))]})),D[r.id]&&t("div",e({className:a.textContent,style:M.textContent},{children:t(n,e({components:I,rehypePlugins:P,remarkPlugins:z},{children:r.content}))}))]}),r.id)})]}))]}))});f.displayName="CognitiveDecisioningCard";export{c as HumanWithBrainIcon,f as default};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i}from"react/jsx-runtime";import n from"react-markdown";import r from"rehype-raw";import o from"remark-gfm";import{forwardRef as s,useState as l,useMemo as d}from"react";import a from"./CognitiveDecisioningWrapper.module.css.js";import{ButtonCognitiveIcon as c}from"../../assests/svg/ButtonCognitiveIcon.js";var h=function(){return t("div",e({style:{display:"flex",height:"32px",width:"32px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5ff",color:"#6b27d9",flexShrink:0,border:"1.5px solid #f5f5ff"}},{children:i("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("path",{d:"M9 18h6"}),t("path",{d:"M10 22h4"}),t("path",{d:"M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.55-3 6H8a7 7 0 0 1-3-6 7 7 0 0 1 7-7z"})]}))}))},p=function(){return t("div",e({style:{display:"flex",height:"32px",width:"32px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5ff",flexShrink:0,border:"1.5px solid #f5f5ff"}},{children:i("svg",e({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#6b27d9",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("path",{d:"M4.92363 2.64844H1.93457V5.34844M1.93457 10.7484V12.5484M8.90904 2.64844H12.9601M16.9455 2.64844H19.9346V5.34844M4.92363 20.6484H1.93457V17.9484"}),t("path",{d:"M18.2707 19.1183C19.6383 17.75 19.6383 15.53 18.2707 14.16C16.9031 12.79 14.6831 12.79 13.3155 14.16C11.9479 15.53 11.9479 17.75 13.3155 19.11C14.6831 20.48 16.9031 20.48 18.2707 19.11ZM18.2707 19.1183L21.1436 21.9987"})]}))}))},f=function(n){var r=n.color,o=void 0===r?"#7b39ed":r,s=n.width,l=void 0===s?13:s,d=n.height,a=void 0===d?13:d,c=n.style;return t("span",e({style:e({display:"inline-flex",alignItems:"center",marginLeft:"4px"},c)},{children:i("svg",e({width:l,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M12.9975 5.40607C12.8868 4.86464 12.1132 4.86464 12.0025 5.40607C11.3236 8.72775 8.72775 11.3236 5.40607 12.0025C4.86464 12.1132 4.86464 12.8868 5.40607 12.9975C8.72775 13.6764 11.3236 16.2723 12.0025 19.5939C12.1132 20.1354 12.8868 20.1354 12.9975 19.5939C13.6764 16.2723 16.2723 13.6764 19.5939 12.9975C20.1354 12.8868 20.1354 12.1132 19.5939 12.0025C16.2723 11.3236 13.6764 8.72775 12.9975 5.40607Z",fill:o}),t("path",{d:"M3.7829 0.026852C3.77558 -0.00895077 3.72442 -0.00895062 3.7171 0.0268522C3.33729 1.88509 1.88509 3.33729 0.0268517 3.7171C-0.00895119 3.72442 -0.00895119 3.77558 0.0268517 3.7829C1.88509 4.16271 3.33729 5.61491 3.7171 7.47315C3.72442 7.50895 3.77558 7.50895 3.7829 7.47315C4.16271 5.61491 5.61491 4.16271 7.47315 3.7829C7.50895 3.77558 7.50895 3.72442 7.47315 3.7171C5.61491 3.33729 4.16271 1.88509 3.7829 0.026852Z",fill:o})]}))}))},g=s(function(s,g){var u=s.reasoning,m=s.gap,v=s.score,C=s.isOpen,y=s.onToggle,k=s.title,x=void 0===k?"Cognitive Decisioning AI":k,b=s.sections,w=s.styles,N=void 0===w?{}:w,M=s.mdComponents,I=void 0===M?{}:M,L=s.headerIcon,T=s.reasoningIcon,j=s.gapIcon,B=s.scoreIcon,H=s.hideTrigger,W=void 0!==H&&H,S=l({reasoning:!0,gap:!0}),D=S[0],V=S[1],A=L||t(c,{}),G=T||t(h,{}),R=j||t(p,{}),Z=B||t(f,{}),O=d(function(){return b||[{id:"reasoning",title:"Reasoning",subtitle:"Why this was picked",icon:G,content:u||"No reasoning provided."},{id:"gap",title:"Gap",subtitle:"What's missing or unclear",icon:R,content:m||"No gaps identified."}]},[b,u,m]),P=d(function(){return[r]},[]),z=d(function(){return[o]},[]);return i("div",e({style:{display:"contents"}},{children:[!W&&i("button",e({onClick:y,className:"".concat(a.pill," ").concat(C?a.pillOpen:a.pillClosed),style:N.pill,"aria-expanded":C},{children:[A,t("svg",e({width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#4B5563",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:C?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:t("path",{d:"M6 9l6 6 6-6"})}))]})),C&&i("div",e({ref:g,className:a.container,style:N.container},{children:[i("div",e({className:a.header,style:N.header},{children:[i("div",e({className:a.headerTitle,style:N.headerTitle},{children:[A,t("span",e({className:a.headerTitleText,style:N.headerTitleText},{children:x}))]})),v&&i("div",e({className:a.badge,style:N.badge},{children:[Z,"Decision Strength: ",v,"%"]}))]})),O.map(function(r,o){return i("div",e({className:a.sectionItem,style:N.sectionItem},{children:[i("button",e({onClick:function(){return t=r.id,void V(function(i){var n;return e(e({},i),((n={})[t]=!i[t],n))});var t},className:a.sectionButton,style:N.sectionButton},{children:[i("div",e({className:a.sectionHeaderGroup,style:N.sectionHeaderGroup},{children:[r.icon,i("div",{children:[t("h4",e({className:a.sectionTitle,style:N.sectionTitle},{children:r.title})),r.subtitle&&t("p",e({className:a.sectionSubtitle,style:N.sectionSubtitle},{children:r.subtitle}))]})]})),t("svg",e({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#9CA3AF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:D[r.id]?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},{children:t("path",{d:"M6 9l6 6 6-6"})}))]})),D[r.id]&&t("div",e({className:a.textContent,style:N.textContent},{children:t(n,e({components:I,rehypePlugins:P,remarkPlugins:z},{children:r.content}))}))]}),r.id)})]}))]}))});g.displayName="CognitiveDecisioningCard";export{g as default};
2
2
  //# sourceMappingURL=CognitiveDecisioningWrapper.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"CognitiveDecisioningWrapper-module_container__ztKXm",header:"CognitiveDecisioningWrapper-module_header__3542F",headerTitle:"CognitiveDecisioningWrapper-module_headerTitle__72107",headerTitleText:"CognitiveDecisioningWrapper-module_headerTitleText__-DtFX",badge:"CognitiveDecisioningWrapper-module_badge__TrxQq",pill:"CognitiveDecisioningWrapper-module_pill__zQ6XY",pillOpen:"CognitiveDecisioningWrapper-module_pillOpen__-7bY-",pillClosed:"CognitiveDecisioningWrapper-module_pillClosed__Tiq2v",sectionItem:"CognitiveDecisioningWrapper-module_sectionItem__ELgck",sectionButton:"CognitiveDecisioningWrapper-module_sectionButton__PbbDt",sectionHeaderGroup:"CognitiveDecisioningWrapper-module_sectionHeaderGroup__sJnQq",sectionTitle:"CognitiveDecisioningWrapper-module_sectionTitle__gHzRy",sectionSubtitle:"CognitiveDecisioningWrapper-module_sectionSubtitle__ioISB",textContent:"CognitiveDecisioningWrapper-module_textContent__GJN-Z"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const i=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;i&&e.setAttribute("nonce",i),e.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");.CognitiveDecisioningWrapper-module_container__ztKXm{background-color:#fff;border:1.5px solid #cacdfa;border-radius:8px;box-shadow:0 2px 4px -1px #0000000d;display:block;font-family:Plus Jakarta Sans,sans-serif;margin-bottom:12px;margin-top:8px;max-width:100%;overflow:hidden;width:100%}.CognitiveDecisioningWrapper-module_header__3542F{align-items:center;background-color:#f4f2ff;border-bottom:1.5px solid #d4dbff;display:flex;gap:8px;justify-content:space-between;padding:8px 12px}.CognitiveDecisioningWrapper-module_headerTitle__72107{align-items:center;display:flex;gap:8px}.CognitiveDecisioningWrapper-module_headerTitleText__-DtFX{color:#1f2937;font-size:14px;font-weight:600}.CognitiveDecisioningWrapper-module_badge__TrxQq{align-items:center;background-color:#fff;border:1.3px solid #bb97f9;border-radius:9999px;color:#1e293b;display:flex;font-size:11px;font-weight:600;gap:4px;padding:2px 10px}.CognitiveDecisioningWrapper-module_pill__zQ6XY{align-items:center;border-radius:6px;cursor:pointer;display:inline-flex;font-family:Plus Jakarta Sans,sans-serif;gap:8px;outline:none;padding:4px 8px;transition:all .2s ease}.CognitiveDecisioningWrapper-module_pillOpen__-7bY-{background-color:#f5f3ff;border:1.5px solid #7c3aed}.CognitiveDecisioningWrapper-module_pillClosed__Tiq2v{background-color:#fff;border:1.5px solid #ded6ff}.CognitiveDecisioningWrapper-module_sectionItem__ELgck{border-bottom:1.5px solid #f0f1f7}.CognitiveDecisioningWrapper-module_sectionItem__ELgck:last-child{border-bottom:none}.CognitiveDecisioningWrapper-module_sectionButton__PbbDt{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:space-between;padding:12px;text-align:left;width:100%}.CognitiveDecisioningWrapper-module_sectionHeaderGroup__sJnQq{align-items:center;display:flex;gap:12px}.CognitiveDecisioningWrapper-module_sectionTitle__gHzRy{color:#111827;font-size:14px;font-weight:600;margin:0}.CognitiveDecisioningWrapper-module_sectionSubtitle__ioISB{color:#6b7280;font-size:12px;margin:0}.CognitiveDecisioningWrapper-module_textContent__GJN-Z{color:#4b5563;font-size:14px;line-height:1.6;margin-top:2px;padding-bottom:12px;padding-left:52px;padding-right:16px}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={container:"CognitiveDecisioningWrapper-module_container__ztKXm",header:"CognitiveDecisioningWrapper-module_header__3542F",headerTitle:"CognitiveDecisioningWrapper-module_headerTitle__72107",headerTitleText:"CognitiveDecisioningWrapper-module_headerTitleText__-DtFX",badge:"CognitiveDecisioningWrapper-module_badge__TrxQq",pill:"CognitiveDecisioningWrapper-module_pill__zQ6XY",sectionItem:"CognitiveDecisioningWrapper-module_sectionItem__ELgck",sectionButton:"CognitiveDecisioningWrapper-module_sectionButton__PbbDt",sectionHeaderGroup:"CognitiveDecisioningWrapper-module_sectionHeaderGroup__sJnQq",sectionTitle:"CognitiveDecisioningWrapper-module_sectionTitle__gHzRy",sectionSubtitle:"CognitiveDecisioningWrapper-module_sectionSubtitle__ioISB",textContent:"CognitiveDecisioningWrapper-module_textContent__GJN-Z"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const i=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;i&&e.setAttribute("nonce",i),e.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");.CognitiveDecisioningWrapper-module_container__ztKXm{background-color:#fff;border:1.5px solid #cacdfa;border-radius:8px;box-shadow:0 2px 4px -1px #0000000d;display:block;font-family:Plus Jakarta Sans,sans-serif;margin-bottom:12px;margin-top:8px;max-width:100%;overflow:hidden;width:100%}.CognitiveDecisioningWrapper-module_header__3542F{align-items:center;background-color:#f4f2ff;border-bottom:1.5px solid #d4dbff;display:flex;gap:8px;justify-content:space-between;padding:8px 12px}.CognitiveDecisioningWrapper-module_headerTitle__72107{align-items:center;display:flex;gap:8px}.CognitiveDecisioningWrapper-module_headerTitleText__-DtFX{color:#1f2937;font-size:14px;font-weight:600}.CognitiveDecisioningWrapper-module_badge__TrxQq{align-items:center;background-color:#fff;border:1.3px solid #bb97f9;border-radius:9999px;color:#1e293b;display:flex;font-size:11px;font-weight:600;gap:4px;padding:2px 10px}.CognitiveDecisioningWrapper-module_pill__zQ6XY{align-items:center;background-color:initial;border:none;border-radius:6px;cursor:pointer;display:inline-flex;font-family:Plus Jakarta Sans,sans-serif;gap:2px;outline:none;padding:4px 6px;transition:all .2s ease}.CognitiveDecisioningWrapper-module_sectionItem__ELgck{border-bottom:1.5px solid #f0f1f7}.CognitiveDecisioningWrapper-module_sectionItem__ELgck:last-child{border-bottom:none}.CognitiveDecisioningWrapper-module_sectionButton__PbbDt{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:space-between;padding:12px;text-align:left;width:100%}.CognitiveDecisioningWrapper-module_sectionHeaderGroup__sJnQq{align-items:center;display:flex;gap:12px}.CognitiveDecisioningWrapper-module_sectionTitle__gHzRy{color:#111827;font-size:14px;font-weight:600;margin:0}.CognitiveDecisioningWrapper-module_sectionSubtitle__ioISB{color:#6b7280;font-size:12px;margin:0}.CognitiveDecisioningWrapper-module_textContent__GJN-Z{color:#4b5563;font-size:14px;line-height:1.6;margin-top:2px;padding-bottom:12px;padding-left:52px;padding-right:16px}'));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=CognitiveDecisioningWrapper.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookemonTest.d.ts","sourceRoot":"","sources":["../../../src/BookemonTest.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgYd,CAAA;AAGH,eAAO,MAAM,mBAAmB,aAAmB,MAAM,EAAE,iBA2B1D,CAAC;AAGF,eAAO,MAAM,kBAAkB;cAAmE,GAAG;UAAS,GAAG;cAAa,GAAG;UAAS,GAAG;WAAW,MAAM;kBAW7J,CAAC;AAGF,eAAO,MAAM,6BAA6B;cAAkE,GAAG;UAAS,GAAG;cAAW,GAAG;UAAQ,GAAG;WAAU,MAAM;kBASjK,CAAC;AAEJ,eAAO,MAAM,cAAc,UAAqF,CAAA;AAEhH,QAAA,MAAM,YAAY,+CAmHjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"BookemonTest.d.ts","sourceRoot":"","sources":["../../../src/BookemonTest.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgYd,CAAA;AAGH,eAAO,MAAM,mBAAmB,aAAmB,MAAM,EAAE,iBA2B1D,CAAC;AAGF,eAAO,MAAM,kBAAkB;cAAmE,GAAG;UAAS,GAAG;cAAa,GAAG;UAAS,GAAG;WAAW,MAAM;kBAW7J,CAAC;AAGF,eAAO,MAAM,6BAA6B;cAAkE,GAAG;UAAS,GAAG;cAAW,GAAG;UAAQ,GAAG;WAAU,MAAM;kBASjK,CAAC;AAEJ,eAAO,MAAM,cAAc,UAAU,CAAA;AAErC,QAAA,MAAM,YAAY,+CAwHjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const ButtonCognitiveIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=ButtonCognitiveIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonCognitiveIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/svg/ButtonCognitiveIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,+CAe/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BookCopyrightsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,UAAU,CAAC;IACtB,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,kBAAkB,+CAAgD,uBAAuB,4CAgE9F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"BookCopyrightsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,UAAU,CAAC;IACtB,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,kBAAkB,+CAAgD,uBAAuB,4CAkE9F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BookDetailsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookDetailsCard/BookDetailsCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,uBAAuB,CAAC;AAmF/B,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,YAAY,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,CAAC;AACF,QAAA,MAAM,eAAe,+CAAgD,oBAAoB,4CA4KxF,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"BookDetailsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookDetailsCard/BookDetailsCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,uBAAuB,CAAC;AAmF/B,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,YAAY,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,CAAC;AACF,QAAA,MAAM,eAAe,+CAAgD,oBAAoB,4CAiMxF,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -37,7 +37,12 @@ interface BookElementsCardProps {
37
37
  title: string;
38
38
  highlightTerms?: string[];
39
39
  onHighlightMatch?: (matched: boolean) => void;
40
+ defaultPages?: {
41
+ quotes?: number;
42
+ locations?: number;
43
+ characters?: number;
44
+ };
40
45
  }
41
- declare const BookElementsCard: ({ data, updateQuotesToHighLight, handleFetchManuscriptElements, BookIsbn, title, highlightTerms, onHighlightMatch }: BookElementsCardProps) => import("react/jsx-runtime").JSX.Element;
46
+ declare const BookElementsCard: ({ data, updateQuotesToHighLight, handleFetchManuscriptElements, BookIsbn, title, highlightTerms, onHighlightMatch, defaultPages }: BookElementsCardProps) => import("react/jsx-runtime").JSX.Element;
42
47
  export default BookElementsCard;
43
48
  //# sourceMappingURL=BookElementsCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookElementsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookElementsCard/BookElementsCard.tsx"],"names":[],"mappings":"AAOA,OAAO,wBAAwB,CAAC;AA0IhC,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAG,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAG,MAAM,EAAE,CAAC;IACpB,IAAI,EAAG,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,uBAAuB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAC,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,EAAE,EAAE,YAAY,EAAG,MAAM,KAAK,IAAI,CAAC;IACnH,6BAA6B,EAAE,CAAC,EAC/B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,KAAK,EACN,EAAE;QACD,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG,CAAC;QACV,KAAK,EAAG,MAAM,CAAA;KACf,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,QAAQ,EAAG,MAAM,CAAC;IAClB,KAAK,EAAG,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,gBAAgB,wHAQnB,qBAAqB,4CAgdvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"BookElementsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookElementsCard/BookElementsCard.tsx"],"names":[],"mappings":"AASA,OAAO,wBAAwB,CAAC;AA0IhC,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAG,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAG,MAAM,EAAE,CAAC;IACpB,IAAI,EAAG,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,iBAAiB,CAAC;IACxB,uBAAuB,EAAE,CAAC,eAAe,EAAE,MAAM,EAAC,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAC,MAAM,EAAE,EAAE,YAAY,EAAG,MAAM,KAAK,IAAI,CAAC;IACnH,6BAA6B,EAAE,CAAC,EAC/B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,KAAK,EACN,EAAE;QACD,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG,CAAC;QACV,KAAK,EAAG,MAAM,CAAA;KACf,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,QAAQ,EAAG,MAAM,CAAC;IAClB,KAAK,EAAG,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,QAAA,MAAM,gBAAgB,sIASnB,qBAAqB,4CAqkBvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BookOverviewCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookOverviewCard/BookOverviewCard.tsx"],"names":[],"mappings":"AAKA,OAAO,wBAAwB,CAAC;AAwIhC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAG,MAAM,CAAC;IAChB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,eAAe,EAAG,MAAM,CAAC;IACzB,cAAc,EAAG,GAAG,EAAE,CAAA;CACvB;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,gBAAgB,+CAAgD,qBAAqB,4CAoM1F,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"BookOverviewCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookOverviewCard/BookOverviewCard.tsx"],"names":[],"mappings":"AAMA,OAAO,wBAAwB,CAAC;AAwIhC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAG,MAAM,CAAC;IAChB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,eAAe,EAAG,MAAM,CAAC;IACzB,cAAc,EAAG,GAAG,EAAE,CAAA;CACvB;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,gBAAgB,+CAAgD,qBAAqB,4CAkP1F,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BookPeopleAwardsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.tsx"],"names":[],"mappings":"AAGA,OAAO,4BAA4B,CAAA;AAwGnC,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAG,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,UAAU,CAAC;IACtB,YAAY,EAAE;QACZ,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,oBAAoB,+CAAgD,yBAAyB,4CA0LlG,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"BookPeopleAwardsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.tsx"],"names":[],"mappings":"AAGA,OAAO,4BAA4B,CAAA;AAwGnC,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAG,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,UAAU,CAAC;IACtB,YAAY,EAAE;QACZ,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,oBAAoB,+CAAgD,yBAAyB,4CA2LlG,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -4,6 +4,6 @@ export declare const comingSoonStyles: {
4
4
  [key: string]: CSSProperties;
5
5
  };
6
6
  export declare const defaultIcon: import("react/jsx-runtime").JSX.Element;
7
- declare const Bookemon: ({ open, onClose, isDialog, isBookPreview, isNonHighlightedBlur, isBookemon, getHighlightContent, handleFetchManuscriptElements, data, showComingSoon, comingSoonData, customStyle, isBlurToggleVisible, highlightTerms, }: BookemonProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const Bookemon: ({ open, onClose, isDialog, isBookPreview, isNonHighlightedBlur, isBookemon, getHighlightContent, handleFetchManuscriptElements, data, showComingSoon, comingSoonData, customStyle, isBlurToggleVisible, highlightTerms, defaultElementPages }: BookemonProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default Bookemon;
9
9
  //# sourceMappingURL=Bookemon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bookemon.d.ts","sourceRoot":"","sources":["../../../../../src/features/Bookemon/Bookemon.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAWvD,eAAO,MAAM,gBAAgB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CA4C5D,CAAC;AACF,eAAO,MAAM,WAAW,yCAcvB,CAAC;AAUF,QAAA,MAAM,QAAQ,8NAmBX,aAAa,4CAoMf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Bookemon.d.ts","sourceRoot":"","sources":["../../../../../src/features/Bookemon/Bookemon.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAWvD,eAAO,MAAM,gBAAgB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CA4C5D,CAAC;AACF,eAAO,MAAM,WAAW,yCAcvB,CAAC;AAUF,QAAA,MAAM,QAAQ,kPAoBX,aAAa,4CAsMf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { BookemonProps } from "./types/citation.types";
2
- export declare const BookemonContent: ({ showComingSoon, onClose, highlightTerms, data, customStyle, comingSoonData, isNonHighlightedBlur, isBlurToggleVisible, isBookemon, getHighlightContent, handleFetchManuscriptElements, isBookPreview, isDialog }: BookemonProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BookemonContent: ({ showComingSoon, onClose, highlightTerms, data, customStyle, comingSoonData, isNonHighlightedBlur, isBlurToggleVisible, isBookemon, getHighlightContent, handleFetchManuscriptElements, isBookPreview, isDialog, defaultElementPages }: BookemonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=BookemonContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookemonContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/Bookemon/BookemonContent.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AA0LvD,eAAO,MAAM,eAAe,uNAcvB,aAAa,4CAiZf,CAAC"}
1
+ {"version":3,"file":"BookemonContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/Bookemon/BookemonContent.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AA0LvD,eAAO,MAAM,eAAe,4OAevB,aAAa,4CAsff,CAAC"}
@@ -54,5 +54,10 @@ export interface BookemonProps {
54
54
  };
55
55
  };
56
56
  highlightTerms?: string[];
57
+ defaultElementPages?: {
58
+ quotes?: number;
59
+ locations?: number;
60
+ characters?: number;
61
+ };
57
62
  }
58
63
  //# sourceMappingURL=citation.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"citation.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/types/citation.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3D,6BAA6B,EAAE,CAAC,IAAI,EAAE;QACpC,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAEnB,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,mBAAmB,CAAC,EAAE;YACpB,qBAAqB,CAAC,EAAE,aAAa,CAAC;YACtC,KAAK,CAAC,EAAE,aAAa,CAAC;YACtB,cAAc,CAAC,EAAE,aAAa,CAAC;YAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;YAClC,UAAU,CAAC,EAAE,aAAa,CAAC;YAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;YACzB,SAAS,CAAC,EAAE,aAAa,CAAC;YAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;YAChC,eAAe,CAAC,EAAE,aAAa,CAAC;YAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;YACpC,eAAe,CAAC,EAAE,aAAa,CAAC;YAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;YACrC,eAAe,CAAC,EAAE,aAAa,CAAC;SACjC,CAAC;KACH,CAAC;IACF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
1
+ {"version":3,"file":"citation.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/types/citation.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3D,6BAA6B,EAAE,CAAC,IAAI,EAAE;QACpC,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,GAAG,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAEnB,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,mBAAmB,CAAC,EAAE;YACpB,qBAAqB,CAAC,EAAE,aAAa,CAAC;YACtC,KAAK,CAAC,EAAE,aAAa,CAAC;YACtB,cAAc,CAAC,EAAE,aAAa,CAAC;YAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;YAClC,UAAU,CAAC,EAAE,aAAa,CAAC;YAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;YACzB,SAAS,CAAC,EAAE,aAAa,CAAC;YAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;YAChC,eAAe,CAAC,EAAE,aAAa,CAAC;YAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;YACpC,eAAe,CAAC,EAAE,aAAa,CAAC;YAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;YACrC,eAAe,CAAC,EAAE,aAAa,CAAC;SACjC,CAAC;KACH,CAAC;IACF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,mBAAmB,CAAC,EAAE;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
@@ -3,4 +3,5 @@
3
3
  * NOTE: Do NOT escape HTML here. Sanitization happens at render time.
4
4
  */
5
5
  export declare const highlightTermsFunc: (text: string | null | undefined, terms?: string[]) => string;
6
+ export declare const processTextWithHighlight: (text: string | null | undefined, highlightTerms?: string[]) => string;
6
7
  //# sourceMappingURL=highlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/utils/highlight.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SACvB,MAAM,GAAG,IAAI,GAAG,SAAS,UACvB,MAAM,EAAE,KACf,MA4BF,CAAC"}
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/utils/highlight.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SACvB,MAAM,GAAG,IAAI,GAAG,SAAS,UACvB,MAAM,EAAE,KACf,MA4BF,CAAC;AAEF,eAAO,MAAM,wBAAwB,SAC7B,MAAM,GAAG,IAAI,GAAG,SAAS,mBACd,MAAM,EAAE,KACxB,MAQF,CAAC"}
@@ -6,6 +6,7 @@ interface BigQueryTableData {
6
6
  }
7
7
  type ChatCitationRendererProps = Omit<ChatCitationProps, "rootContainer" | "chatContainer" | "ruleBookContainer"> & {
8
8
  showRootContainer?: boolean;
9
+ modalContainerStyle?: React.CSSProperties;
9
10
  rootContainer?: ChatCitationProps["rootContainer"] extends undefined ? undefined : Omit<Exclude<ChatCitationProps["rootContainer"], undefined>, "secondaryActions">;
10
11
  chatContainer?: ChatCitationProps["chatContainer"] extends undefined ? undefined : Omit<Exclude<ChatCitationProps["chatContainer"], undefined>, "secondaryActions" | "show"> & {
11
12
  additionalSecondaryActions?: React.ReactNode[];
@@ -1 +1 @@
1
- {"version":3,"file":"ChatCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/ChatCitation/ChatCitationRenderer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAM5D,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,KAAK,yBAAyB,GAAG,IAAI,CACnC,iBAAiB,EACjB,eAAe,GAAG,eAAe,GAAG,mBAAmB,CACxD,GAAG;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,SAAS,SAAS,GAChE,SAAS,GACT,IAAI,CACF,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,EACtD,kBAAkB,CACnB,CAAC;IACR,aAAa,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,SAAS,SAAS,GAChE,SAAS,GACT,IAAI,CACF,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,EACtD,kBAAkB,GAAG,MAAM,CAC5B,GACC;QACA,0BAA0B,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;KAChD,CAAC;IACJ,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,SAAS,SAAS,GACxE,SAAS,GACT,IAAI,CACF,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,EAC1D,kBAAkB,GAAG,MAAM,CAC5B,GAAE;QACP,0BAA0B,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;KAChD,CAAC;IACA,cAAc,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,SAAS,SAAS,GAClE,SAAS,GACT,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,CAAC;IAC5D,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,YAAY,CAAC,EAAC,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IACpC,yBAAyB,CAAC,EAAC,OAAO,CAAC;IACnC,aAAa,CAAC,EAAC,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAyK5E"}
1
+ {"version":3,"file":"ChatCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/ChatCitation/ChatCitationRenderer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAM5D,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,KAAK,yBAAyB,GAAG,IAAI,CACnC,iBAAiB,EACjB,eAAe,GAAG,eAAe,GAAG,mBAAmB,CACxD,GAAG;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,aAAa,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,SAAS,SAAS,GAChE,SAAS,GACT,IAAI,CACF,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,EACtD,kBAAkB,CACnB,CAAC;IACR,aAAa,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,SAAS,SAAS,GAChE,SAAS,GACT,IAAI,CACF,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,EACtD,kBAAkB,GAAG,MAAM,CAC5B,GACC;QACA,0BAA0B,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;KAChD,CAAC;IACJ,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,SAAS,SAAS,GACxE,SAAS,GACT,IAAI,CACF,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,EAC1D,kBAAkB,GAAG,MAAM,CAC5B,GAAE;QACP,0BAA0B,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;KAChD,CAAC;IACA,cAAc,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,SAAS,SAAS,GAClE,SAAS,GACT,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,CAAC;IAC5D,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,YAAY,CAAC,EAAC,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IACpC,yBAAyB,CAAC,EAAC,OAAO,CAAC;IACnC,aAAa,CAAC,EAAC,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAmL5E"}
@@ -3,7 +3,8 @@ interface ModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
5
5
  children: ReactNode;
6
+ containerStyle?: React.CSSProperties;
6
7
  }
7
- export declare const Modal: ({ isOpen, onClose, children }: ModalProps) => React.ReactPortal | null;
8
+ export declare const Modal: ({ isOpen, onClose, children, containerStyle }: ModalProps) => React.ReactPortal | null;
8
9
  export {};
9
10
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/ChatCitation/components/wrappers/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG9D,UAAU,UAAU;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,kCAAmC,UAAU,6BAyD9D,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/ChatCitation/components/wrappers/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG9D,UAAU,UAAU;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACtC;AAED,eAAO,MAAM,KAAK,kDAAmD,UAAU,6BA8D9E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveDecisioningWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAK7D,eAAO,MAAM,kBAAkB,+CAI9B,CAAC;AAyDF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC;AAED,UAAU,KAAK;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC,CAAC;IAE5D,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,wBAAwB,8EA8I5B,CAAC;AAGH,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"CognitiveDecisioningWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,eAAO,MAAM,kBAAkB,+CAI9B,CAAC;AAyDF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC;AAED,UAAU,KAAK;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,UAAU,CAAC,CAAC;IAE5D,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,QAAA,MAAM,wBAAwB,8EA8I5B,CAAC;AAGH,eAAe,wBAAwB,CAAC"}