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EAAAA,KAAA,OAAKC,UAAS,sBAAAC,OAAwByB,EAAMuB,gBAAkB,cAAgB,IAAK/C,UACjFH,EAAAA,EAAAA,KAACyB,EAAAA,EAAW,UAGT,EAIb,OACErB,EAAAA,EAAAA,MAAA,OACEyB,GAAIA,EAAGnC,QACPO,UAAS,iBAAAC,OAA0C,UAAvByB,EAAMwB,aAA2B,UAAY,iBAAgB,KAAAjD,OAjE/DkD,MAC5B,OAAQzB,EAAM0B,MACZ,IAAK,UACH,MAAO,GAET,IAAK,QACH,MAAO,gBAET,QACE,MAAO,iBACX,EAuD+FD,IAA0BjD,SAAA,CAGtHwB,EAAMQ,YACLnC,EAAAA,EAAAA,KAAA,OACEC,UAAU,wBACViB,QAAUoB,IAAO,IAADgB,EAAAC,EACdjB,EAAEK,iBACFL,EAAEM,kBAEuB,QAAzBU,EAAA3B,EAAMkB,2BAAmB,IAAAS,GAAzBA,EAAAjC,KAAAM,GAEuB,QAAvB4B,EAAA5B,EAAM6B,yBAAiB,IAAAD,GAAvBA,EAAAlC,KAAAM,EAA2B,KAI/B3B,EAAAA,EAAAA,KAAAK,EAAAA,SAAA,IAGDsB,EAAMQ,YAAcR,EAAM8B,qBACzBzD,EAAAA,EAAAA,KAAC0D,EAAAA,EAAmB,CAACC,OAAQ9B,EAAGnC,QAAQS,SAAEwB,EAAM8B,uBAEhDzD,EAAAA,EAAAA,KAAAK,EAAAA,SAAA,IAGDsB,EAAMe,MACL1C,EAAAA,EAAAA,KAAA,KAAG0C,KAAMf,EAAMe,KAAMiB,OAAO,SAASC,IAAI,sBAAqBzD,SAC3D6B,OAGHhC,EAAAA,EAAAA,KAAAK,EAAAA,SAAA,CAAAF,SAAG6B,QAED,IAIVjB,EAAgB8C,YAAc,kBAE9B,S","sources":["components/ui/ConfirmationOverlay/ConfirmationOverlay.tsx","components/ui/LoadingAnimations/LoadingDots/LoadingDots.tsx","components/ui/NectarineButton/NectarineButton.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\nimport { Subscription } from 'rxjs';\nimport GeneralHelper from '../../Helpers/GeneralHelper';\nimport NectarineButton from '../NectarineButton/NectarineButton';\nimport './ConfirmationOverlay.scss';\nimport { ConfirmationOverlayPrompt, useConfirmationOverlayContext } from './ConfirmationOverlayContext';\n\nconst ConfirmationOverlay: React.FC = () => {\n const allSubscriptions = useRef(new Subscription());\n\n const { confirmationOverlayPrompt$, hideConfirmationOverlay } = useConfirmationOverlayContext();\n\n const [displayedPrompt, setDisplayedPrompt] = useState(null);\n const [isDisplayed, setIsDisplayed] = useState(false);\n const [isHiding, setIsHiding] = useState(false);\n\n useEffect(() => {\n allSubscriptions.current.add(\n confirmationOverlayPrompt$.subscribe((v) => {\n setIsDisplayed(v !== null);\n setIsHiding(false);\n\n setDisplayedPrompt(v);\n })\n );\n\n const allSubscriptionsObj = allSubscriptions.current;\n\n return () => {\n allSubscriptionsObj.unsubscribe();\n };\n }, [confirmationOverlayPrompt$]);\n\n return (\n
\n {displayedPrompt ? (\n <>\n {displayedPrompt.headerIconClass ? (\n
\n \n
\n ) : (\n <>\n )}\n\n {displayedPrompt.title ? (\n
\n
{displayedPrompt.title}
\n
\n ) : (\n <>\n )}\n\n
\n
\n
\n\n {displayedPrompt.text2 ? (\n
\n
\n
\n ) : (\n <>\n )}\n\n
\n {!displayedPrompt.doNotShowNoButton ? (\n {\n setIsHiding(true);\n hideConfirmationOverlay();\n\n displayedPrompt.noAction?.();\n }}\n />\n ) : (\n <>\n )}\n\n {\n setIsHiding(true);\n hideConfirmationOverlay();\n\n displayedPrompt.yesAction();\n }}\n />\n
\n \n ) : (\n <>\n )}\n \n );\n};\n\nexport default ConfirmationOverlay;\n","import React from 'react';\n\nconst LoadingDots: React.FC = () => {\n return (\n
\n
\n
\n
\n
\n
\n );\n};\n\nexport default LoadingDots;\n","import { forwardRef, useRef } from 'react';\nimport { UncontrolledTooltip } from 'reactstrap';\nimport GeneralHelper from '../../Helpers/GeneralHelper';\nimport LoadingDots from '../LoadingAnimations/LoadingDots/LoadingDots';\nimport './NectarineButton.scss';\n\nexport type NectarineButtonColors = 'blue' | 'red' | 'white' | 'green' | 'gray';\n\ninterface NectarineButtonProps {\n text: string;\n iconClassString?: string;\n onClick?: (() => void) | (() => Promise);\n href?: string;\n // An optional click event that always fires, even if the button is disabled\n onClickValidationFn?: () => void;\n // An optional click event that only fires when the button is disabled\n onDisabledClickFn?: () => void;\n color?: NectarineButtonColors;\n size?: 'regular' | 'medium' | 'small';\n displayStyle?: 'block' | 'inline-block';\n isDisabled?: boolean;\n showLoadingDots?: boolean;\n disabledTooltipText?: string;\n allowClickEventToBubble?: boolean;\n}\n\nconst NectarineButton = forwardRef((props: NectarineButtonProps, ref) => {\n // NOTE: We have to put a letter in front of the GUID, or else the UncontrolledTooltip breaks\n const id = useRef('M' + GeneralHelper.generateGuid());\n\n const getColorClass = () => {\n switch (props.color) {\n case 'red':\n return 'btn-danger';\n\n case 'white':\n return 'btn-light';\n\n case 'green':\n return 'btn-success';\n\n case 'gray':\n return 'btn-secondary';\n\n case 'blue':\n default:\n return 'btn-primary';\n }\n };\n\n const getButtonSizeCSSClass = () => {\n switch (props.size) {\n case 'regular':\n return '';\n\n case 'small':\n return 'isSmallButton';\n\n default:\n return 'isMediumButton';\n }\n };\n\n const getButtonJsx = (): JSX.Element => {\n return (\n {\n if (!props.allowClickEventToBubble && !props.href) {\n e.preventDefault();\n e.stopPropagation();\n }\n\n props.onClickValidationFn?.();\n\n // If we have an href, we can stop here without calling the onClick event\n if (props.href) {\n return;\n }\n\n if (!props.isDisabled) {\n props.onClick?.();\n }\n }}\n onKeyDown={(e) => {\n if ((!props.isDisabled && e.key === ' ') || e.key === 'Enter') {\n props.onClick?.();\n }\n }}\n >\n
\n {props.iconClassString ? (\n \n \n \n ) : (\n <>\n )}\n\n {props.text.length ? {props.text} : <>}\n\n
\n \n
\n
\n \n );\n };\n\n return (\n \n {/* Include an overlay so we can still receive a click event and run a validation function if we need */}\n {props.isDisabled ? (\n {\n e.preventDefault();\n e.stopPropagation();\n\n props.onClickValidationFn?.();\n\n props.onDisabledClickFn?.();\n }}\n >\n ) : (\n <>\n )}\n\n {props.isDisabled && props.disabledTooltipText ? (\n {props.disabledTooltipText}\n ) : (\n <>\n )}\n\n {props.href ? (\n \n {getButtonJsx()}\n \n ) : (\n <>{getButtonJsx()}\n )}\n \n );\n});\n\nNectarineButton.displayName = 'NectarineButton';\n\nexport default NectarineButton;\n"],"names":["ConfirmationOverlay","_displayedPrompt$noBu","_displayedPrompt$yesB","_displayedPrompt$yesB2","allSubscriptions","useRef","Subscription","confirmationOverlayPrompt$","hideConfirmationOverlay","useConfirmationOverlayContext","displayedPrompt","setDisplayedPrompt","useState","isDisplayed","setIsDisplayed","isHiding","setIsHiding","useEffect","current","add","subscribe","v","allSubscriptionsObj","unsubscribe","_jsx","className","concat","children","_jsxs","_Fragment","headerIconClass","title","dangerouslySetInnerHTML","__html","GeneralHelper","sanitizeHtml","text","text2","doNotShowNoButton","NectarineButton","color","noButtonText","onClick","_displayedPrompt$noAc","noAction","call","yesButtonColor","yesButtonText","yesAction","LoadingDots","forwardRef","props","ref","id","generateGuid","getColorClass","getButtonJsx","_props$isDisabled","type","isDisabled","length","disabled","e","_props$onClickValidat","_props$onClick","allowClickEventToBubble","href","preventDefault","stopPropagation","onClickValidationFn","onKeyDown","_props$onClick2","key","iconClassString","showLoadingDots","displayStyle","getButtonSizeCSSClass","size","_props$onClickValidat2","_props$onDisabledClic","onDisabledClickFn","disabledTooltipText","UncontrolledTooltip","target","rel","displayName"],"sourceRoot":""}