{"version":3,"sources":["components/Forms/PeriodPickerField.tsx","components/shared/AutoConvertLogo.svg","components/Proposals/ProposalList/ProposalListActionButtons.tsx","components/Proposals/ProposalList/RunningMannDropDownItem.tsx","components/PagedList/RunningManDropdown.tsx","components/Proposals/ProposalList/SlaDropdown.tsx","components/Proposals/ProposalList/ProposalDropdown.tsx","components/Proposals/ProposalList/ProposalListItem.tsx","components/Proposals/ProposalStatisticsQuery.tsx","components/Proposals/ProposalList/ProposalListTotals.tsx","components/Proposals/ProposalList/ProposalSearchFilterPanel.tsx","components/Proposals/ProposalList/ProposalStatusDropdown.tsx","components/Proposals/ProposalList/ProposalSearchInputField.tsx","components/Proposals/ProposalList/index.tsx","components/PagedList/ListTotals.tsx"],"names":["PeriodPickerField","monthsOnly","compactView","submitOnChange","disabled","props","startDateFieldName","endDateFieldName","editDatesFieldName","form","values","setFieldValue","submitForm","startDate","endDate","editDates","onSelectMonth","moment","format","setTimeout","module","exports","ProposalListActionButtons","variables","dealerId","context","ContextNames","DEALER","input","undefined","useLoggedInUser","checkCanCreate","checkCanRead","useDealer","dealer","dealerLoading","loading","className","PermissionModuleNames","Proposals","to","classnames","isSuspended","DraftProposals","RunningManDropDownItem","error","data","runningManText","proposalSlas","sLAs","DropdownItem","icon","faArrowDown","LoadingSpinner","RunningManDropdown","children","allowClicks","UncontrolledDropdown","DropdownToggle","outline","onClick","e","preventDefault","stopPropagation","faRunning","DropdownMenu","right","PROPOSAL_SLAS","gql","SlaDropdown","React","memo","useState","SLAs","setSLAs","useLazyQuery","getSLAs","id","useEffect","Array","isArray","initialValues","map","sla","index","key","DELETE_PROPOSAL","REFRESH_PROPOSAL","ProposalDropdown","proposal","proposalRef","autoConvertReference","requestSlas","useMutation","deleteProposal","refreshProposal","client","useApolloClient","name","individualCustomer","getFullName","business","checkCanDelete","isDealer","isAccountManager","isAdministrator","canOpenInAutoConvert","ActionsDropdown","href","config","AUTOCONVERT_URL","target","rel","src","AutoConvertLogo","alt","AUTOCONVERT_NAME","style","width","display","then","ms","Promise","resolve","query","PROPOSAL_LIST","fetchPolicy","faSync","divider","title","message","confirmButtonText","confirmButtonColor","confirm","refetchQueries","faTrash","ProposalListItemLoadingPlaceholder","colSpan","ProposalListItemNoItemsPlaceholder","compose","withRouter","loggedInUser","item","history","roles","includes","UserRoles","encodeURIComponent","toLowerCase","push","vehicle","regNo","toUpperCase","make","model","finance","totalFinance","formatCurrency","Math","round","aprRate","dealerCommission","ProposalBadges","toString","PROPOSAL_STATISTICS","ProposalListTotals","searchArgs","page","pageSize","useQuery","proposalStatistics","useProposalStatistics","ListTotals","label","value","getPeriodDescription","totalDealerCommission","getQuerystringForReports","args","status","length","s","replace","convertedArgs","create","querystring","stringify","ProposalSearchFilterPanel","isSuperUser","Row","Col","md","FormGroup","caret","color","filterByDate","ProposalSearchDateLookup","description","ProposalSearchDate","CREATED_DATE","Object","keys","x","ACCOUNT_MANAGER","lg","Label","AccountManagerSelect","accountManagerId","onSelectAccountManager","isClearable","DealerSelect","fundedDealersOnly","onSelectDealer","BooleanCheckboxField","FileDownloadLink","API_URL","faFileExcel","ProposalStatusDropdownItem","active","updateStatus","ProposalStatusDropdown","withToggleState","currentStatus","toggle","difference","ActiveProposalStatus","ProposalStatusLookup","allStatus","ProposalStatusEnum","activeGroup","inactiveGroup","InputGroupButtonDropdown","addonType","isOpen","ProposalSearchInputField","placeholder","InputGroup","field","Input","type","InputGroupAddon","Button","faSearch","mapValuesToQuerystring","getQuerystringStatus","mapQuerystringToValues","qs","hasDebitBackOnly","getStatusFromQuerystring","defaultValues","PAID_OUT_DATE","statisticsFilterByDate","ProposalListTableContainer","ProposalList","this","defaultArgs","fixedArgs","SearchForm","defaults","fixedValues","searchInput","filterPanel","formikProps","table","FormikEffects","onChange","prevValues","currentValues","setStatusToAll","statusIncludesPaidOut","PAID_OUT","PagedList","getSearchResults","proposals","listItemsContainer","actionButtonsComponent","pollInterval","loadingPlaceholder","noItemsPlaceholder","listItemComponent","ProposalListItem","withLoggedInU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AmFZmN,gBAAiB5B,K,kCCnOhC,6EAKMxM,EAAiB,kBACrB,gBAAC,IAAD,CAAiBhB,UAAU,kBAAkBc,KAAMuO,KAAWC,MAAM,KAkBzDC,EAAiB,SAAC,GAIH,IAH1B/G,EAGyB,EAHzBA,MACAC,EAEyB,EAFzBA,MACA1I,EACyB,EADzBA,QAEA,OACE,uBAAKC,UAAU,oBACb,wBAAMA,UAAU,qBAAqBwI,GACrC,wBAAMxI,UAAU,qBACbD,EAAU,gBAACiB,EAAD,MAAqByH,GAAS,QAMlCF,IAnBW,SAAC,GAA8C,IAA5CrH,EAA2C,EAA3CA,SAAUlB,EAAiC,EAAjCA,UACrC,OAAO,uBAAKA,UAAWwP,IAAW,cAAexP,IAAakB,K","file":"static/js/6.377aaf84.chunk.js","sourcesContent":["import { Field, FieldProps } from \"formik\";\nimport moment from \"moment\";\nimport * as React from \"react\";\nimport PeriodPicker from \"../shared/PeriodPicker\";\n\ninterface PeriodPickerFieldProps {\n compactView?: boolean;\n monthsOnly?: boolean;\n submitOnChange?: boolean;\n startDateFieldName?: string;\n endDateFieldName?: string;\n editDatesFieldName?: string;\n disabled?: boolean;\n}\n\nconst PeriodPickerField = ({\n monthsOnly,\n compactView,\n submitOnChange,\n disabled,\n ...props\n}: PeriodPickerFieldProps) => {\n const {\n startDateFieldName = \"startDate\",\n endDateFieldName = \"endDate\",\n editDatesFieldName = \"editDates\"\n } = props;\n\n return (\n
\n Are you sure you want to delete proposal \"{proposalRef}\"\n for {name}?\n
\n\n This action cannot be undone\n
\n >\n }\n confirmButtonText=\"Delete proposal\"\n confirmButtonColor=\"danger\"\n >\n {(confirm) => (\n\n {getName(item) || \"[No name]\"}\n
\n\n {item.vehicle.regNo\n ? `${item.vehicle.regNo.toUpperCase()}, `\n : null}\n {item.vehicle.make || item.vehicle.model\n ? `${item.vehicle.make} ${item.vehicle.model}`\n : \"[vehicle unknown]\"}\n
\n{item.dealer.name}
\n ) : null}\n\n\n Finance:{\" \"}\n {item.finance.totalFinance\n ? formatCurrency(item.finance.totalFinance)\n : \"\"}\n
\n\n APR: {`${Math.round((item.finance.aprRate || 0) * 100) / 100}%`}\n
\n\n\n Comm:{\" \"}\n {`${\n item.finance.dealerCommission\n ? formatCurrency(item.finance.dealerCommission)\n : \"-\"\n }`}\n
\n\nNo results found
\nReport is limited to 200 proposals
\n )}\n >\n )}\n >\n );\n};\nexport default ProposalSearchFilterPanel;\n","import { difference } from \"lodash\";\nimport * as React from \"react\";\nimport {\n DropdownItem,\n DropdownMenu,\n DropdownToggle,\n InputGroupButtonDropdown\n} from \"reactstrap\";\nimport withToggleState, { ToggleStateProps } from \"../../withToggleState\";\nimport {\n ActiveProposalStatus,\n ProposalStatusEnum,\n ProposalStatusLookup\n} from \"../types\";\n\n// tslint:disable:jsx-no-lambda\nconst ProposalStatusDropdownItem = ({\n status,\n active,\n updateStatus,\n title\n}: {\n title: string;\n active: boolean;\n status: string[];\n updateStatus: (status: string[]) => void;\n}) => {\n const update = () => updateStatus(status);\n\n return (\n\n | Finance | \nAPR | \nCommission | \n {loggedInUser && isAdministrator(loggedInUser) ? (\n\n ) : null}\n |
---|