{"version":3,"sources":["webpack:///./src/js/constants.js","webpack:///./src/js/components/Spinner.js","webpack:///./src/js/modules/document-cart/hooks/useDocumentCart.js","webpack:///./src/js/modules/document-cart/DocumentCart.js","webpack:///./src/js/modules/document-cart/index.js"],"names":["KEYS","END","HOME","LEFT","UP","RIGHT","DOWN","ENTER","ESC","TAB","SPACE","KEYS_DIRECTION","37","38","39","40","Spinner","props","loading","React","className","documentCache","useDocumentCart","docsInCart","current","labels","useRef","JSON","parse","docsBtnString","setDocsBtnString","useState","myDocuments","docs","setDocs","errorMessage","setErrorMessage","isLoading","setIsLoading","showCartModal","setShowCartModal","showDocsButton","setShowDocsButton","showEmailButton","setShowEmailButton","useEffect","documentCartBtn","document","querySelector","chatBotElement","style","transform","blur","getDocsInCart","window","localStorage","getItem","length","errorMessageTooManyDocs","handleKeyDown","keyCode","emailModal","setAttribute","body","_$","overflow","_on","removeEventListener","handleClearAll","e","removeItem","dispatchEvent","Event","handleCloseClick","isCloseButton","currentTarget","classList","contains","isModalBackdrop","target","handleDeleteClick","idx","parseInt","dataset","splice","setItem","stringify","handleEmailClick","modal","getElementById","closeModal","backdrop","addEventListener","replacedEmailTemplate","emailTemplate","replaceAll","documentList","forEach","$doc","url","docUrl","encodeURIComponent","emailContents","replace","open","handleExportClick","zip","JSZip","zipFilename","count","urlArr","split","extension","filename","sanitize","docName","substring","file","binary","generateAsync","type","then","content","saveAs","cacheBustUrl","includes","Date","getTime","JSZipUtils","getBinaryContent","err","data","handleDocsButtonClick","DocumentCart","_b","_a","__spreadValues","config","__objRest","FocusTrap","active","focusTrapOptions","fallbackFocus","activeElement","clickOutsideDeactivates","allowOutsideClick","aria-hidden","onClick","role","aria-label","tabIndex","title","height","viewBox","width","xlinkHref","map","$item","$i","key","docType","removeFromCart","data-idx","String","export","disabled","email","clearAll","id","dangerouslySetInnerHTML","__html","modalMessage","Module"],"mappings":"2FAAO,0EAAMA,EAAO,CAClBC,IAAK,GACLC,KAAM,GACNC,KAAM,GACNC,G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M,MAAM,KAAKF,OAAO,KAAKC,QAAQ,eACtDtI,IAAA,cAAC,OAAIwI,UAAU,sBAIrBxI,IAAA,cAAC,OAAIC,UAAU,qBAAqBqJ,wBAAyB,CAAEC,OAAQjJ,EAAOkJ,gBAC9ExJ,IAAA,cAAC,UAAOC,UAAU,yBAS9BD,IAAA,cAAC,UACC+H,eAAcT,EAAOhG,eACrBrB,UAAW,8DACRqH,EAAOhG,iBAAmBgG,EAAOlG,cAAiB,GAAK,+BAE1D8H,UAAW5B,EAAOhG,eAClB0G,QAASV,EAAOL,sBAChBZ,KAAK,UACLiB,EAAO5G,eACTV,IAAA,cAACH,IAAA,CAAQE,QAASuH,EAAOpG,cCnIhBuI","file":"39.3b7275bd9fb7589df898.js?v=342d8be4c2d3922164ca","sourcesContent":["export const KEYS = {\n END: 35,\n HOME: 36,\n LEFT: 37,\n UP: 38,\n RIGHT: 39,\n DOWN: 40,\n ENTER: 13,\n ESC: 27,\n TAB: 9,\n SPACE: 32\n};\n\nexport const KEYS_DIRECTION = {\n 37: -1,\n 38: -1,\n 39: 1,\n 40: 1\n};\n","import React from 'react';\n\nconst Spinner = props => {\n return props.loading ? (\n
{config.docsBtnString}
\n \n{$item.docType}
\n \n{$item.docName}
\n