PageSourceSearch

https://deepsearchai.co/assets/DigitalLibrary-BtA4eAoD.js

js deepsearchai.co collected 2026-10-02 01:21:44 UTC 6,417 bytes, 2 lines download raw bytes

1import{j as e}from"./motion-media-DawMv428.js";import{u as F}from"./growth-payment-BfHadXwg.js";import{r as m}from"./redux-CL95a3IE.js";import{D as K,E as $,F as T}from"./index-Cz5ChEQq.js";import{L as R}from"./Loader-B0M1cCO-.js";import{PdfUpsellModal as k}from"./index-BWej-HrU.js";import{u as E,D as I}from"./upsell-status-BOleBmI-.js";import{c as S}from"./calculate-price-diff-DfAQfiNe.js";import{a as A}from"./pro-k0wisggv.js";import{B as u,C as h,r as O,d as B,l as z}from"./Table-DJc65YUW.js";import"./carousels-DxFOfUD6.js";import{N as U}from"./react-vendor-D7_aQVuf.js";import{T as r}from"./i18n-BHtsDrR1.js";import"./forms-B9OIJNcw.js";import"./firebase-core-BKuvjIs7.js";import"./hubx-analytics-DIbwCOgs.js";import"./user-x8tAkV4a.js";import"./names-BMg9Zd4j.js";import"./subscription-DeeMW2SB.js";import"./landing-flow-DgnUhZHa.js";import"./path-BwZy-gV3.js";import"./custom-event-push-Cu10HthM.js";import"./Modal-DrrpmWM4.js";import"./ToastHelper-DWXL6ZrB.js";import"./firestore-DPkgl4RA.js";import"./user-preferences-DvQYfRGE.js";import"./content-rendering-BMcRWwGo.js";const G="_container_1lnbp_1",M="_empty_1lnbp_1",Y="_empty__icon_1lnbp_1",H="_empty__text_1lnbp_1",W="_discover_1lnbp_1",V="_discover__header_1lnbp_1",q="_card_1lnbp_1",J="_card__main_1lnbp_1",Q="_card__cover_1lnbp_1",X="_card__content_1lnbp_1",Z="_card__copy_1lnbp_1",ee="_card__meta_1lnbp_1",ce="_card__title_1lnbp_1",re="_card__description_1lnbp_1",ae="_card__chips_1lnbp_1",ie="_card__chip_1lnbp_1",se="_card__actions_1lnbp_1",c={container:G,empty:M,empty__icon:Y,empty__text:H,discover:W,discover__header:V,card:q,card__main:J,card__cover:Q,card__content:X,card__copy:Z,card__meta:ee,card__title:ce,"card__title--plain":"_card__title--plain_1lnbp_1",card__description:re,card__chips:ae,card__chip:ie,"card__chip--success":"_card__chip--success_1lnbp_1",card__actions:se,"action-button":"_action-button_1lnbp_1","action-button--primary":"_action-button--primary_1lnbp_1","action-button--plain":"_action-button--plain_1lnbp_1"},ne=(a,t)=>{try{return new Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(a)}catch{return`${t} ${a.toFixed(2)}`}},te=a=>a===void 0?null:new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(a.toDate()),ke=()=>{const[a,t]=E(I),{data:d}=A(),[L,x]=m.useState(!1),s=K(),_=F("dw-upsell",!1),i=m.useMemo(()=>_?$(s):null,[_,s]),b=m.useMemo(()=>T(s),[s]),y="https://cdn.deepsearchai.app/resources/upsell/book-settings.webp",o=b?.readUrl,l=b?.downloadUrl,w=o!==void 0||l!==void 0,j=i===null?null:ne(i.amount,i.currency),g=i===null?null:S({originalPrice:i.originalAmount,discountedPrice:i.amount}),p=te(t),D=()=>{o!==void 0&&window.open(o,"_blank","noopener,noreferrer")},C=()=>{if(l===void 0)return;const n=document.createElement("a");n.href=l,n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),n.remove()},v=a===!0,f=a!==null&&!a,N=a===null||d===null||f&&s===null,P=_&&f&&!!d&&i!==null;return!N&&!v&&!P?d?e.jsx(U,{to:"/profile",replace:!0}):e.jsx(U,{to:"/plans",replace:!0}):e.jsxs(R,{loading:N,height:200,children:[e.jsx("div",{className:c.container,children:v?e.jsxs("div",{className:c.card,children:[e.jsxs("div",{className:c.card__main,children:[e.jsx("img",{src:y,alt:"","aria-hidden":!0,className:c.card__cover}),e.jsxs("div",{className:c.card__content,children:[e.jsxs("div",{className:c.card__copy,children:[e.jsx("p",{className:c.card__meta,children:p===null?e.jsx(r,{i18nKey:"account.digitalLibrary.purchased",children:"Purchased"}):e.jsxs(r,{i18nKey:"account.digitalLibrary.purchasedOn",values:{date:p},children:["Purchased on ",p]})}),e.jsx("h2",{className:c.card__title,children:e.jsx(r,{i18nKey:"account.digitalLibrary.productTitle",children:"How to Reduce Your Digital Footprint"})})]}),e.jsxs("div",{className:c.card__chips,children:[e.jsx("span",{className:c.card__chip,children:e.jsx(r,{i18nKey:"account.digitalLibrary.format",children:"PDF"})}),e.jsx("span",{className:`${c.card__chip} ${c["card__chip--success"]}`,children:e.jsx(r,{i18nKey:"account.digitalLibrary.status",children:"Purchased"})})]})]})]}),w&&e.jsxs("div",{className:c.card__actions,children:[o!==void 0&&e.jsxs(u,{variant:"nostyle",className:`${c["action-button"]} ${c["action-button--primary"]}`,onClick:D,children:[e.jsx(h,{icon:O,size:"small"}),e.jsx(r,{i18nKey:"account.digitalLibrary.readNow",children:"Read now"})]}),l!==void 0&&e.jsxs(u,{variant:"nostyle",className:c["action-button"],onClick:C,children:[e.jsx(h,{icon:B,size:"small"}),e.jsx(r,{i18nKey:"download",children:"Download"})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:c.empty,children:[e.jsx(h,{icon:z,size:"giant",className:c.empty__icon}),e.jsx("p",{className:c.empty__text,children:e.jsx(r,{i18nKey:"account.digitalLibrary.empty",components:{br:e.jsx("br",{})}})})]}),P&&e.jsxs("section",{className:c.discover,children:[e.jsxs("div",{className:c.discover__header,children:[e.jsx("h2",{children:e.jsx(r,{i18nKey:"account.digitalLibrary.discoverTitle",children:"Discover assets"})}),e.jsx("p",{children:e.jsx(r,{i18nKey:"account.digitalLibrary.discoverDescription",children:"Special discount applied just for you!"})})]}),e.jsxs("div",{className:c.card,children:[e.jsxs("div",{className:c.card__main,children:[e.jsx("img",{src:y,alt:"","aria-hidden":!0,
1className:c.card__cover}),e.jsxs("div",{className:c.card__content,children:[e.jsxs("div",{className:c.card__copy,children:[e.jsx("h2",{className:`${c.card__title} ${c["card__title--plain"]}`,children:e.jsx(r,{i18nKey:"account.digitalLibrary.productTitle",children:"How to Reduce Your Digital Footprint"})}),e.jsx("p",{className:c.card__description,children:e.jsx(r,{i18nKey:"pdfUpsell.description"})})]}),e.jsxs("div",{className:c.card__chips,children:[g!==null&&e.jsx("span",{className:c.card__chip,children:e.jsx(r,{i18nKey:"pdfUpsell.saveBadge",values:{percent:g}})}),j!==null&&e.jsx("span",{className:`${c.card__chip} ${c["card__chip--success"]}`,children:j})]})]})]}),e.jsx(u,{variant:"nostyle",className:`${c["action-button"]} ${c["action-button--primary"]} ${c["action-button--plain"]}`,onClick:()=>{x(!0)},children:e.jsx(r,{i18nKey:"account.digitalLibrary.discoverGuides",children:"Discover guides"})})]})]})]})}),i!==null&&e.jsx(k,{open:L,webUpsell:i,onClose:()=>{x(!1)}})]})};export{ke as DigitalLibraryRoute};
2//# sourceMappingURL=DigitalLibrary-BtA4eAoD.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.