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iC,cAAcE,eAEZrE,KAAK,wBACpBsE,EAAUzE,EAAE,gDAEZuE,EAAMG,SAAS,sBACXD,EAAQ7F,OAAS,GACjB6F,EAAQjB,QAAQmB,SAAS,qBAE7BJ,EAAMK,YAAY,sBAElBL,EAAMI,SAAS,oBAGtB,KAGsC,KAArChE,OAAOC,UAAUiE,iBACnB7E,EAAE,oBAAoBI,GAAG,SAAS,WACzBJ,EAAE,qBAAqB0E,SAAS,gCACjC1E,EAAE,qBAAqB2E,SAAS,8BAEvC,IAGLhE,OAAOC,UAAUkE,eAAiB,IAAIlB,EAAejD,OAAOC,UAAUmE,aACzE,G","sources":["webpack://search.web/./Content/js/v2/utilities/Cookies.js","webpack://search.web/./Content/js/v2/components/SiteMessageBanner.js","webpack://search.web/./Content/js/v2/components/TlsDepreciationMessageBanner.js","webpack://search.web/./Content/js/v2/components/PreventUserLoginBanner.js","webpack://search.web/./Content/js/v2/components/CookieSettingsModal.js","webpack://search.web/./Content/js/v2/components/CookieBanner.js","webpack://search.web/./Content/js/v2/utilities/FeatureManager.js","webpack://search.web/./Content/js/v2/pages/All.js"],"sourcesContent":["export default class Cookies {\n static get(name) {\n let nameEQ = name + \"=\";\n let ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n }\n\n static set(name, value, maxAgeMinutes) {\n if (value === null || typeof (value) === 'undefined') {\n throw Error('No null, undefined, or empty values in cookies please');\n }\n const cookieDomain = location.hostname === 'localhost' ? 'localhost' : 'overdrive.com'\n document.cookie = `${name}=${value};secure;${maxAgeMinutes ? `Max-Age=${maxAgeMinutes * 60};` : ''};domain=${cookieDomain};path=/`;\n }\n\n static erase(name) {\n Cookies.set(name, '', -1);\n }\n}","import Cookies from '../utilities/Cookies';\n\nexport default class SiteMessageBanner{\n\n constructor(message, className, lifespanMin, isDismissable = true) {\n this.message = message;\n this.lifespan = lifespanMin;\n this.className = className;\n this.isDismissable = isDismissable;\n this.targetEle = $(\".SiteMessageBannerContainer\");\n }\n\n render() {\n if (Cookies.get(this.className) === null) {\n let banner = $(`
\n

${this.message}

${this.isDismissable ? `` : ``}\n
`);\n\n banner.find(\".dismiss\").on(\"click\", () => {\n this.dismissBanner();\n });\n\n this.targetEle.append(banner);\n this.targetEle.show();\n }\n }\n\n dismissBanner() {\n this.targetEle.hide();\n Cookies.set(this.className, 0, this.lifespan);\n }\n}\n\n","import SiteMessageBanner from \"./SiteMessageBanner\";\n\nexport default class TlsDepreciationMessageBanner {\n constructor() {\n let link = `${window.OverDrive.SiteCopy.get(\"learnMore\")}`;\n let copyToUse = window.OverDrive.SiteCopy.get(\"tlsEarlyWarningMessage\", { 'learnMoreLink': link});\n let banner = new SiteMessageBanner(copyToUse, \"TlsDepreciationMessage\", 14 * 60 * 24);\n this.render(banner);\n }\n\n render(banner) {\n let url = \"https://www.howsmyssl.com/a/check\";\n $.get(url, function (data) {\n let version = data.tls_version.split(' ');\n if (version[0] != 'TLS' || version[1] < 1.2) {\n banner.render();\n }\n });\n }\n}\n","import SiteMessageBanner from \"./SiteMessageBanner\";\n\nexport default class PreventUserLoginBanner {\n constructor() {\n let copyToUse = window.OverDrive.SiteCopy.get(\"preventLoginBanner\");\n let banner = new SiteMessageBanner(copyToUse, \"PreventUserLoginMessage\", 14 * 60 * 24, false);\n this.render(banner);\n }\n\n render(banner) {\n if ($(\".SiteMessageBannerContainer.PreventLoginBanner\").length > 0) {\n banner.render();\n }\n }\n}","import Cookies from \"../utilities/Cookies\";\n\nexport default class CookieSettingsModal {\n constructor({ showMessage, dismissable = true, implicitConsent = false }) {\n const odTrackCookie = Cookies.get(\"od_track\");\n const trackingDefault = window.OverDrive.isGdprCountry ? false : true;\n\n this.allowPerformanceCookies = odTrackCookie === null ? trackingDefault : !!(odTrackCookie & 1);\n this.allowUserBehaviorCookies = odTrackCookie === null ? trackingDefault : !!(odTrackCookie & 2);\n\n this.showMessage = showMessage;\n this.dismissable = dismissable;\n this.implicitConsent = implicitConsent;\n\n this.targetEle = $(\".modal-backdrop\");\n this.render();\n }\n\n buildTemplate() {\n const getCopy = (key) => window.OverDrive.SiteCopy.get(key);\n return `\n
\n
\n

${getCopy(\"cookieSettings.cookieSettingsHeader\")}

\n
\n ${this.dismissable ? `` : ''}\n
\n

${getCopy(\"cookieSettings.description\")}

\n
\n \n ${getCopy(\"cookieSettings.requiredCookiesLabel\")}\n

${getCopy(\"cookieSettings.requiredCookiesDescription\")}

\n
\n
\n \n ${getCopy(\"cookieSettings.performanceCookiesLabel\")}\n

${getCopy(\"cookieSettings.performanceCookiesDescription\")}

\n
\n
\n \n ${getCopy(\"cookieSettings.researchCookiesLabel\")}\n

${getCopy(\"cookieSettings.researchCookiesDescription\")}

\n
\n \n

${getCopy(\"cookieSettings.learnMoreAboutCookies\")}

\n

${getCopy(\"cookieSettings.learnMoreAboutPrivacy\")}

\n
\n\n \n
\n `;\n }\n\n render() {\n this.targetEle.empty();\n this.targetEle.append(this.buildTemplate());\n this.targetEle.show();\n\n // clear render pipeline, otherwise click handler doesn't register\n setTimeout(() => {\n $(\".CookieSettingsModal .close, .modal-backdrop\").on(\"click\", () => {\n if (this.dismissable) {\n if (this.implicitConsent) {\n CookieSettingsModal.consentImplicitly();\n }\n this.close();\n }\n });\n }, 0);\n\n $(\".CookieSettingsModal\").on(\"click\", (e) => {\n e.stopPropagation();\n });\n\n $('input[name=\"performance-cookie\"]').click((e) => {\n e.stopPropagation();\n this.allowPerformanceCookies = !this.allowPerformanceCookies;\n\n $('input[name=\"performance-cookie\"]').prop(\"checked\", this.allowPerformanceCookies);\n });\n\n\n $('input[name=\"behavior-cookie\"]').click((e) => {\n e.stopPropagation();\n this.allowUserBehaviorCookies = !this.allowUserBehaviorCookies;\n\n $('input[name=\"behavior-cookie\"]').prop(\"checked\", this.allowUserBehaviorCookies);\n });\n\n $(\".save-button\").on(\"click\", () => {\n $.post(\"/cookie-settings/edit\",\n {\n allowUserBehaviorCookies: this.allowUserBehaviorCookies,\n allowPerformanceCookies: this.allowPerformanceCookies,\n showMessage: this.showMessage\n },\n (data) => {\n this.close();\n window.location.replace(window.location);\n }\n );\n });\n }\n\n close() {\n if (!this.dismissable) return;\n this.targetEle.hide();\n window.location.hash = '';\n }\n\n static consentImplicitly() {\n if (Cookies.get(\"od_track\") === null) {\n Cookies.set(\"od_track\", 3, 10 * 365 * 24 * 60);\n }\n }\n\n static shouldShowModalImmediately() {\n return window.OverDrive.isGdprCountry\n && Cookies.get(\"od_track\") === null\n && window.location.pathname !== \"/cookie-settings/edit\";\n }\n}","import Cookies from \"../utilities/Cookies\";\nimport CookieSettingsModal from \"./CookieSettingsModal\";\n\nexport default class CookieBanner {\n constructor() {\n this.targetEle = $(\".cookie-banner\");\n this.render();\n }\n\n buildTemplate() {\n const siteCopy = (key) => window.OverDrive.SiteCopy.get(key);\n return `\n
\n

\n ${siteCopy(\"cookieBanner.notice\")}\n

\n \n
\n `;\n }\n\n render() {\n this.targetEle.empty();\n this.targetEle.append(this.buildTemplate());\n this.targetEle.show();\n this.targetEle.find(\".banner-body\").trigger(\"focus\");\n\n $(\".cookie-banner .close, body>:not(.cookie-banner)\").on(\"click\", () => {\n // \"body\" handles soft dismiss, blocked by below if clicking the banner\n this.consentAndClose();\n });\n\n $(\".cookie-banner\").on(\"click\", (e) => {\n // clicking anywhere on the banner will propagate to the \"body\" listener otherwise\n e.stopPropagation();\n });\n\n $(\".banner-cookie-button\").on(\"click\", () => {\n var modal = new CookieSettingsModal({ showMessage: true, implicitConsent: true });\n this.close();\n });\n\n $(\".cookie-banner .close, .banner-cookie-button\").on(\"keydown\", (e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n $(e.target).trigger(\"click\");\n }\n });\n\n this.targetEle.on('keydown', (e) => {\n this._keepFocus(e);\n });\n\n this.targetEle.on('keypress', '*', (e) => {\n if (e.key === \"Tab\") {\n this._keepFocus(e);\n }\n });\n }\n\n consentAndClose() {\n CookieSettingsModal.consentImplicitly();\n this.close();\n }\n\n close() {\n // remove soft dismiss listener\n $(\"body>:not(.cookie-banner)\").off(\"click\");\n this.targetEle.hide();\n }\n\n _keepFocus(e) {\n const activeElem = $(document.activeElement);\n const alertFocus = this.targetEle.find(\".banner-body\");\n const firstFocusable = this.targetEle.find(\"a\").first();\n const lastFocusable = this.targetEle.find(\"button\");\n\n if (e.key === \"Escape\") {\n this.consentAndClose();\n } else if (\n (activeElem.is(firstFocusable) || activeElem.is(alertFocus)) &&\n e.key === \"Tab\" &&\n e.shiftKey\n ) {\n e.preventDefault();\n lastFocusable.trigger(\"focus\");\n } else if (\n $(activeElem).is(lastFocusable) &&\n e.key === \"Tab\" &&\n !e.shiftKey\n ) {\n e.preventDefault();\n firstFocusable.trigger(\"focus\");\n }\n }\n\n static shouldShowBanner() {\n return !window.OverDrive.isGdprCountry\n && Cookies.get(\"od_track\") === null\n && window.location.pathname !== \"/cookie-settings/edit\";\n }\n}","export default class FeatureManager {\n constructor(featureFlags) {\n this.featureFlags = featureFlags;\n }\n\n isEnabled(flagName) {\n return this.featureFlags && this.featureFlags[flagName];\n }\n}","import TlsDepreciationMessageBanner from \"../components/TlsDepreciationMessageBanner\";\nimport PreventUserLoginBanner from \"../components/PreventUserLoginBanner\";\nimport CookieSettingsModal from \"../components/CookieSettingsModal\";\nimport CookieBanner from \"../components/CookieBanner\";\nimport FeatureManager from \"../utilities/FeatureManager\";\n\n$(document).ready(function () {\n if (!!window.OverDrive.EnableTlsSiteMessage === true) {\n var tlsBanner = new TlsDepreciationMessageBanner();\n }\n var preventLoginBanner = new PreventUserLoginBanner();\n\n $(\".cookies-modal-button, .cs-footer_cookie-modal\").on('click', () => {\n var modal = new CookieSettingsModal({ showMessage: true });\n });\n\n if (CookieSettingsModal.shouldShowModalImmediately()) {\n var modal = new CookieSettingsModal({ showMessage: false, dismissable: false });\n } else if (CookieBanner.shouldShowBanner()) {\n var cookieBanner = new CookieBanner();\n }\n\n if (window.OverDrive.UsingContentStackFooter) {\n $(\".site-footer__section .headerContainer\").keypress((e) => {\n var key = e.which;\n if (key == 13 || key == 32) // the enter and space key codes\n {\n $(e.currentTarget).click();\n e.preventDefault();\n return false;\n }\n }); \n\n $(\".site-footer__section .headerContainer\").on(\"click\", (e) => {\n var target = $(e.currentTarget.parentElement);\n\n var items = target.find(\"ul.site-footer__list\");\n var openTab = $(\"ul.site-footer__list:not(.footer-items-hide)\");\n\n if (items.hasClass(\"footer-items-hide\")) {\n if (openTab.length > 0) {\n openTab.first().addClass(\"footer-items-hide\");\n }\n items.removeClass(\"footer-items-hide\");\n } else {\n items.addClass(\"footer-items-hide\");\n }\n\n });\n }\n\n if (!!window.OverDrive.AddLibbyBlogTab === true) {\n $(\".u_search__query\").on(\"input\", () => {\n if (!$(\".tt-dropdown-menu\").hasClass(\"libbyBlogLinkStylingUpdates\")) {\n $(\".tt-dropdown-menu\").addClass(\"libbyBlogLinkStylingUpdates\")\n }\n });\n }\n\n window.OverDrive.featureManager = new FeatureManager(window.OverDrive.FeatureFlags);\n});"],"names":["Cookies","name","nameEQ","ca","document","cookie","split","i","length","c","charAt","substring","indexOf","value","maxAgeMinutes","Error","cookieDomain","location","hostname","set","SiteMessageBanner","message","className","lifespanMin","isDismissable","this","lifespan","targetEle","$","get","banner","find","on","dismissBanner","append","show","hide","TlsDepreciationMessageBanner","link","window","OverDrive","SiteCopy","copyToUse","render","data","version","tls_version","PreventUserLoginBanner","CookieSettingsModal","showMessage","dismissable","implicitConsent","odTrackCookie","trackingDefault","isGdprCountry","allowPerformanceCookies","allowUserBehaviorCookies","pathname","getCopy","key","empty","buildTemplate","setTimeout","consentImplicitly","close","e","stopPropagation","click","prop","post","replace","hash","CookieBanner","siteCopy","trigger","consentAndClose","preventDefault","target","_keepFocus","off","activeElem","activeElement","alertFocus","firstFocusable","first","lastFocusable","is","shiftKey","FeatureManager","featureFlags","flagName","ready","EnableTlsSiteMessage","shouldShowModalImmediately","shouldShowBanner","UsingContentStackFooter","keypress","which","currentTarget","items","parentElement","openTab","hasClass","addClass","removeClass","AddLibbyBlogTab","featureManager","FeatureFlags"],"sourceRoot":""}