{"version":3,"sources":["constants/types.js","stores/settings/settingsActions.js","components/Address.js","components/UploadArchive.js","components/UploadArchiveManual.js","components/forms/FormItem.js","components/forms/ListHeader.js","components/ListTable.js","components/WidgetCard.js","components/Icon/Icon.js","assets/images/location.svg","components/ContainerAddress.js","components/RemoteInsert.js","components/schedule/messages.js","components/schedule/Schedule.js","components/SelectScheduled.js","components/SelectGender.js","components/DragSortingTable.js","components/SelectBloodGroup.js","components/RemoteSelectCrud.js","components/ServiceProviderProfile.js","components/CrudEdit.js","components/RemoteSelectPopover.js","components/SelectBoolean.js","components/InputMask.js","components/FilterRemoteSelect.js","components/HtmlEditor/HtmlEditor.js","components/Section/SectionField.js","components/Section/SectionFieldDocument.js","components/Section/SectionFieldPrescription.js","components/Section/Section.js","components/SelectColor.js","components/FormListWrap.js","components/CheckboxInput.js","components/DrawerModal.js","components/ActionsList.js","components/CreditCardIcon.js","constants/cardBrands.js","components/PaymentPlan.js","components/PageContainer.js","components/PageEdit.js","components/InputCurrency.js","components/PlanDetail.js","components/AccessResourcesDenied.js","components/AccountAccessDenied.js","stores/notifications/notificationActions.js","components/notifications/NotificationDate.js","components/notifications/NotificationTreatmentItem.js","components/notifications/NotificationContainer.js","components/notifications/NotificationCommonItem.js","components/notifications/NotificationItem.js","components/notifications/NotificationList.js","components/notifications/MyNotifications.js","components/SelectStates.js","components/SelectProfessionalRegistrationTypes.js","components/FilterRangePicker.js","components/DisplayAmount.js","components/SelectPaymentMethod.js","components/Footer.js","components/Drawer.js","components/SelectEntryType.js","util/removeAccents.js","components/RemoteSelectTree.js","components/SelectProfile.js","components/FilterSelect.js","components/TawktoChat.js","components/TreatmentPartnerStatus.js","components/SelectCampaignStatus.js","components/CampaignStatusTag.js","components/CampaignEnabledChannels.js","components/HtmlEditorTags.js","components/InputNumeric.js","components/InputPercent.js","components/InvoiceIcon.js","components/SelectTaxRegime.js","components/SelectSpecialTaxRegime.js","components/AccessDenied.js","components/AccountStudentAccessDenied.js","components/PatientAnnotationModal.js","components/ShowFilesModal.js","components/SharingFileQRCode.js","components/UploadList.js","components/RestrictedAccessRole.js","components/SelectOptionLabel.js","components/RemoteSelectLedgerAccount.js","components/RemoteSelectStandardHistory.js","components/FormItemUserDetail.js","components/CardConciliation.js","components/LoadingWithSpin.js","components/StatusOrTypeTag.js","components/CardTitle.js","components/CardRecharts.js","components/UploadProfileImageV2.js","components/UploadProfileImage.js","components/SelectSubscriptionFrequency.js","components/Upload.js","components/ClipboardLabel.js","components/SelectAccountTypes.js","components/fields/RemoteCostCenterFieldSelect.js","components/FilterRemoteSelectV2.js","components/DrawerWrapper.js","components/InputHide.js","components/PlatformImage.js","components/Loading.js","components/GoogleCalendarButton.js","assets/images/platforms/google-calendar.png","components/ReportHeader.js","components/Display.js","stores/platforms/platformActions.js","stores/companies/companyActions.js","stores/events/eventActions.js","util/validators/mobilePhoneValidator.js","util/validators/postalCodeValidator.js","components/ResCol.js","constants/platforms.js","pages/app/financialEntries/FinancialEntryInstallmentNumber.js","pages/app/financialEntries/FinancialEntryFormPaymentItem.js","stores/ledgerAccounts/ledgerAccountActions.js","stores/standardHistories/standardHistoryActions.js","stores/packages/packageActions.js","assets/images/logo.png","stores/subscriptions/subscriptionActions.js","stores/medicalRecordSections/medicalRecordSectionActions.js","stores/campaigns/campaignActions.js","components/InputListSearch.js","core/wrappers/FormInstance.js","components/Filter.js","pages/app/financialEntries/FinancialEntryFilter.js","pages/app/financialEntries/FinancialEntrySummary.js","pages/app/financialEntries/FinancialEntryFilterAdvanced.js","pages/app/financialEntries/FinancialEntryHeader.js","pages/app/financialEntries/FinancialEntryAccountantAlert.js","pages/app/financialEntries/FinancialEntryResendEmail.js","pages/app/financialEntries/FinancialEntryListTable.js","pages/app/financialEntries/FinancialEntryTransferDrawer.js","pages/app/financialEntries/FinancialEntryList.js","components/CurrencyInput.js","pages/app/patients/PatientEdit.js","hooks/useCookieHandler.js","hooks/useCustomHistory.js","core/hooks/useScreenSize.js","components/ResourceErrorAlert.js","util/functions/truncate.js","components/RemoteSelectAutoCrud.js","util/formatters/formatCurrency.js","components/AddressV2.js","components/RawHtml.js","constants/featureIdentifiers.js","pages/app/financialEntries/FinancialEntryViewDetail.js","pages/app/suppliers/SupplierEdit.js","core/hooks/usePermissions.js","pages/app/financialEntries/FinancialEntryToolbarEdit.js","pages/app/financialEntries/FinancialEntryEdit.js","util/functions/decimal.js","pages/app/financialEntries/FinancialEntryInvoiceEdit.js","pages/app/financialEntries/FinancialEntryEditManager.js","constants/Currencies.js","components/CurrencyCodeSelect.js","stores/treatments/treatmentActions.js","util/functions/isNullOrEmpty.js","stores/auth/authActions.js","stores/accounts/accountActions.js","util/formatters/formatSegment.js","stores/healthServiceProviders/healthServiceProviderActions.js","components/SearchValue.js","pages/shared/CompanySettingsForm.js","components/HorizontalMenu.js","components/HorizontalToolbar.js","constants/index.js","components/HtmlEditor/translations.js","stores/openFinancialExchanges/openFinancialExchangeActions.js","stores/financialStatistic/financialStatisticActions.js","util/iugu.js","components/RemoteSelectV2.js","util/functions/generateUUID.js","components/CustomScrollbars.js","util/functions/join.js","core/hooks/useCompany.js","assets/images/platforms/kuidare.png","assets/images/platforms/kiwify.png","assets/images/platforms/eduzz.png","assets/images/platforms/hotmart.png","assets/images/platforms/monetizze.png","assets/images/platforms/tmb.png","assets/images/platforms/kuidare.alt.png","assets/images/platforms/kiwify.alt.png","assets/images/platforms/eduzz.alt.png","assets/images/platforms/hotmart.alt.png","assets/images/platforms/monetizze.alt.png","assets/images/platforms/tmb.alt.png","util/getDataFromStorage.js","core/auth/authInitialState.js","components/CircularProgress.js","util/asyncComponent.js","components/Auxiliary.js","components/Sidebar/SidebarLogo.js","components/Sidebar/SidebarContentRoute.js","components/Sidebar/SidebarContent.js","components/Sidebar/Sidebar.js","components/IconLibrary.js","components/CurrentAdminProfile.js","components/Topbar/TopbarAdmin.js","components/routes/RestrictedRoute.js","components/routes/RouteRedirect.js","components/routes/SimpleRoute.js","components/routes/Routes.js","containers/admin/AdminContainer.js","components/Topbar/InsideHeader.js","pages/shared/UploadRegistrationStatementModal.js","containers/app/AppContainer.js","pages/app/settings/SettingsMenu.js","pages/app/settings/Settings.js","containers/partnership/PartnershipContainer.js","config/config.js","config/index.js","stores/users/userReducer.js","stores/settings/settingsReducer.js","stores/auth/authReducer.js","stores/accounts/accountReducer.js","stores/medicalRecordSections/medicalRecordSectionReducer.js","stores/events/eventReducer.js","stores/attendances/attendanceReducer.js","stores/patients/patientReducer.js","stores/treatments/treatmentReducer.js","stores/dashboards/dashboardReducer.js","stores/companies/companyReducer.js","core/store/createReducer.js","stores/subscriptions/subscriptionReducer.js","stores/prescriptions/prescriptionReducer.js","stores/financialEntries/financialEntryReducer.js","stores/categories/categoryReducer.js","stores/checkingAccounts/checkingAccountReducer.js","stores/campaigns/campaignReducer.js","stores/ledgerAccounts/ledgerAccountReducer.js","stores/standardHistories/standardHistoryReducer.js","stores/openFinancialExchanges/openFinancialExchangeReducer.js","stores/financialStatistic/financialStatisticReducer.js","stores/collaborators/collaboratorReducer.js","stores/healthServiceProviders/healthServiceProviderReducer.js","stores/packages/packageReducer.js","stores/partnerships/partnershipReducer.js","stores/resourceReducer.js","stores/productMovements/productMovementReducer.js","stores/patients/patientPackageReducer.js","stores/platforms/platformReducer.js","stores/reports/reportReducer.js","stores/rootReducer.js","stores/rootStore.js","Main.js","index.js","stores/dashboards/dashboardActions.js","components/FormManager.js","stores/checkingAccounts/checkingAccountActions.js","core/hooks/useCostCenter.js","components/UserProfileImage.js","core/hooks/useSubscription.js","components/SelectWrapperPrefix.js","core/hooks/useClipboard.js","core/hooks/useSubscriptionPlanHelper.js","core/hooks/useSettingInvoice.js","constants/themeSettings.js","core/hooks/useAuth.js","pages/shared/UpdatePassword.js","stores/financialEntries/financialEntryActions.js","util/functions/mimeTypes.js","util/validators/federalTaxNumberValidator.js","stores/patients/patientPackageActions.js","pages/shared/CurrentUserEdit.js","constants/roles.js","helpers/index.js","helpers/InvoiceHelper.js","assets/images/w-logo.png","components/SegmentProfileSelect.js","components/forms/ResCol.js","stores/users/userActions.js","pages/app/customers/CustomerEdit.js","stores/prescriptions/prescriptionActions.js","stores/collaborators/collaboratorActions.js","constants/states.js","stores/categories/categoryActions.js","stores/partnerships/partnershipActions.js","stores/productMovements/productMovementActions.js","stores/reports/reportActions.js","util/normalizers/cityNormalizeToSelect.js","util/normalizers/reducerName.js","pages/shared/CurrentUserMyPreferences.js","pages/shared/PatientFinancialEntryList.js","pages/shared/CompanyEdit.js","pages/shared/CurrentProfessionalEdit.js","components/CurrentUserProfile.js","stores/patients/patientActions.js","util/formatters/formartOnlyNumber.js","util/formatters/formatFederalTaxNumber.js","util/formatters/formartDateTimeUTC.js","util/formatters/formatDateToNumber.js","util/formatters/formatPhone.js","util/formatters/formatInitials.js","core/hooks/useSegmentField.js","constants/display.js","util/converters/normalizeFromSelect.js","util/converters/normalizeToSelect.js","util/converters/getDayOfWeek.js","components/RemoteSelect.js","stores/attendances/attendanceActions.js"],"names":["CREATED","ACTIVATED","INACTIVATED","CANCELED","SUSPENDED","EXPIRED","INTRIAL","CANCELLATION_REQUESTED","CONCLUDED","INPROGRESS","AVAILABLE","PENDING","ACCEPTED","RECONCILED","IGNORED","MEMED","RECEITADIGITAL","RECEIPT","PAYMENT","BALANCE","BEFOREBALANCE","ENDBALANCE","INITIALBALANCE","BILLETBANK","CREDITCARD","DEBITCARD","DIRECTDEBIT","BANKDEPOSIT","PAYPAL","BANKTRANSFER","CASH","BANKCHECK","BALANCEWALLETS","PIX","ELECTRONICTRANSFER","OTHER","INCOMING","OUTGOING","APOSITIVE","ANEGATIVE","BPOSITIVE","BNEGATIVE","ABPOSITIVE","ABNEGATIVE","OPOSITIVE","ONEGATIVE","APPROXIMATETAXES_COMPLETE","APPROXIMATETAXES_SIMPLIFIED","YEAR","MONTH","DAY","COSTCENTER","NATIONAL","STATE","MUNICIPAL","ACCOUNT_TYPE_STUDENT","ROLE_ADMIN","ROLE_PROFESSIONAL","ROLE_RECEPTIONIST","ROLE_USER","ROLE_STUDENT","ROLE_OTHER_HEALTH_PROFESSIONAL","ROLE_CLINIC_ADMINISTRATOR","ROLE_FINANCIAL","ROLE_ACCOUNTANT","ROLE_PARTNERSHIP","ROLE_FINANCIAL_ADMINISTRATOR","ROLE_STOCK","PROFILE_DOCTOR","PROFILE_ADMINISTRADOR","PROFILE_OTHER","PROFILE_RECEPTIONIST","PROFILE_ACCOUNTANT","PROFILE_FINANCIAL","PROFILE_STUDENT","PROFILE_USER","PROFILE_PARTNERSHIP","PROFILE_FINANCIAL_ADMINISTRATOR","ACCOUNTANTS","TOGGLE_COLLAPSED_NAV","WINDOW_WIDTH","SWITCH_LANGUAGE","CHAT_LOADED","updateWindowWidth","width","type","toggleCollapsedSideNav","navCollapsed","onNavStyleChange","navStyle","NAV_STYLE","chatLoad","Address","UploadArchive","_ref","onChange","name","resource","extension","displayDocument","params","onRemove","initialValue","disabled","placeholder","state","setState","useState","loading","uri","useEffect","setArchive","response","uploadButton","_jsx","children","LoadingOutlined","_jsxs","className","FontAwesomeIcon","icon","size","style","height","position","paddingBottom","Button","onClick","handleRemoveClick","right","top","background","display","alignItems","justifyContent","CloseCircleOutlined","Upload","listType","customRequest","options","data","FormData","Object","keys","forEach","key","set","append","file","api","post","then","res","errors","message","error","onSuccess","beforeUpload","isCorrectFormat","includes","replace","toLowerCase","fileName","text","match","extractingExtension","concat","join","map","c","toUpperCase","isLt2M","info","status","archive","result","showUploadList","getContent","src","process","alt","UploadArchiveManual","extensions","onRequest","uploading","setUploading","setFileName","setExtension","uploadProps","extractedExtension","names","UploadOutlined","truncate","React","Component","FormItem","ListHeader","onSearch","setQueryParams","queryParams","menu","title","create","renderButton","searchForm","onBeforeFilter","buttonTitle","showChildren","initialValues","rest","delayedSearch","setDelayedSearch","e","clearTimeout","input","target","setTimeout","value","page","filterText","arguments","length","undefined","openToCreate","PlusOutlined","ListTable","props","_pagination","dataSource","initEditing","initCreation","rowSelection","rowClassName","handleTableChange","columns","components","moveRow","onDoubleClick","removeRecord","showHeader","showActions","actionsComponent","ActionsComponent","header","filter","showPagination","doubleClick","expandable","pagination","pageCount","Array","isArray","some","push","align","render","_","record","_Fragment","Popconfirm","onConfirm","id","cancelText","okText","Table","scroll","x","configManager","getConfig","layout","list","table","rowKey","_record$id","uuid","array","locale","emptyText","onRow","index","handleDoubleClick","WidgetCard","styleName","cover","extra","actions","Card","Icon","FormManager","RemoteInsert","messages","date","time","event","allDay","week","work_week","day","month","previous","next","yesterday","tomorrow","today","agenda","noEventsInRange","Empty","image","PRESENTED_IMAGE_SIMPLE","showMore","count","moment","localizer","momentLocalizer","VIEWS","Schedule","events","onSelectSlot","eventPropGetter","onSelectEvent","defaultView","step","min","max","view","setView","_ref2","format","Calendar","timeslots","tooltipAccessor","startAccessor","endAccessor","onRangeChange","handleRangeChange","dates","nextView","currentView","start","end","startOf","selectable","endOf","SelectScheduled","serviceProviderId","tenantId","user","useAuth","open","setOpen","isMobile","useScreenSize","settings","fetchNextPeriod","fetch","startDate","endDate","add","firstAvailable","startTime","endTime","_value$serviceProvide","serviceProvider","Row","gutter","ResCol","span","DatePicker","newStartDate","temp","hours","minutes","seconds","clone","durationOfService","setPeriod","allowClear","onSelect","onBlur","MaskedInput","mask","formartOnlyNumber","hour","minute","handleChangeStartTime","handleChangeEndTime","Tooltip","placement","ReloadOutlined","handleChangeNextTime","_value$endTime","SelectGender","showUninformed","Select","optionFilterProp","filterOption","option","indexOf","Option","DragableBodyRow","restProps","ref","useRef","isOver","dropClassName","drop","useDrop","accept","collect","monitor","dragIndex","getItem","item","drag","useDrag","isDragging","cursor","DragSortingTable","onSorting","getDataSource","filterInverse","body","row","useCallback","hoverIndex","dragRow","rejecteds","update","$splice","DndProvider","backend","HTML5Backend","cloneElement","SelectBloodGroup","CreateEditComponentWrap","resourceTitle","form","Form","useForm","CrudEditContextProvider","resourceToEdit","saving","editing","loadingEdition","readOnly","visible","action","RESOURCE_ACTION_EDIT","RemoteSelectCrud","editComponent","EditComponent","textPropName","enableEdit","onCreateOrUpdate","crud","useCrud","get","componentKey","stateComponentKey","selectRef","setText","setComponentKey","generateUUID","allowShow","setAllowShow","isMultiple","mode","handleChange","handleAddClick","current","focus","blur","useImperativeHandle","isEmpty","RemoteSelectV2","onDropdownVisibleChange","customDropdownRender","_ref3","fetching","Spin","onFetched","handleFetched","tagRender","_ref5","label","onClose","EditOutlined","CloseOutlined","handleEditClick","onCreateOrUpdateSuccess","_ref4","_selectRef$current","reset","newValue","findIndex","forwardRef","ServiceProviderProfile","_medicalSpecialties$","classNameRow","profileImage","professionalName","medicalSpecialties","crm","specialty","medicalSpecialty","professionalTitle","justify","Col","UserProfileImage","CrudEdit","cancelEdit","handleClickCreate","values","handleClickEdit","edit","editingRender","_data$resourceToEdit","_data$resourceToEdit2","resetFields","editingProps","RESOURCE_ACTION_CREATE","RemoteSelectPopover","constructor","_this","super","this","fetchData","hasNextPage","lastFetchId","fetchId","currentPage","totalCount","items","prevState","textSearched","isSelect","handleAdd","multiple","handleRemove","handleOnChangeVisible","clearSearchField","handleOnSearch","handleSearch","refInput","handleOnScroll","renderItem","remove","loadingId","customButtonAdd","customButtonRemove","isSelected","DeleteOutlined","handleCreateOrUpdateSuccess","refCrud","debounce","fethOnMount","createRef","componentDidMount","addButtonText","Popover","trigger","onVisibleChange","content","Input","maxLength","onPressEnter","handleOnPressEnter","CustomScrollbars","onScrollEnd","description","defaultProps","SelectBoolean","FilterRemoteSelect","isLast","showSearch","hidden","setVisible","popover","select","handleVisiblePopover","Item","noStyle","RemoteSelect","showArrow","maxTagPlaceholder","dropdownMatchSelectWidth","maxTagCount","HtmlEditor","editor","setEditor","EditorState","createEmpty","loaded","setLoaded","editorRef","createWithContent","stateFromHTML","insert","html","currentSelection","getSelection","currentContent","getCurrentContent","newContent","Modifier","replaceText","newEditorState","forceSelection","getSelectionAfter","Editor","localization","translations","editorState","onEditorStateChange","stateToHTML","toolbarHidden","handleReturn","keyCode","shiftKey","insertNewUnstyledBlock","RichUtils","insertSoftNewline","toolbar","SectionField","answer","attachments","split","str","contentType","isImage","isPDF","isExcel","isVideo","isAudio","url","window","getUrlFromResource","handleAttachment","isChecked","SectionFieldDocument","creationTime","lastModificationTime","dangerouslySetInnerHTML","__html","DownloadOutlined","handleDownload","SectionFieldPrescription","prescription","source","receitaDigital","urlFromPdf","Section","fields","documents","prescriptions","showFieldMedicalRecord","_c$options$filter","SelectColor","CirclePicker","circleSize","color","hex","colors","FormListContext","createContext","FormListItemWrap","field","useContext","Error","getName","FormItemWrap","fieldKey","FormListWrap","onBeforeCreateItem","addText","hideAddButton","rules","List","Provider","shouldUpdate","prevValues","curValues","lodash","isEqual","getFieldValue","onCreate","fieldIndex","ErrorList","CheckboxInput","hint","Checkbox","checked","InfoCircleOutlined","DrawerModal","Drawer","Modal","onCancel","ActionsList","renderRight","showDeletedButton","CreditCardIcon","number","iconName","Iugu","utils","getBrandByCreditCardNumber","getBrandIconName","PaymentPlan","onSubmit","plan","segmentFields","useSegmentField","search","useLocation","applypartnerdiscount","qs","parse","validatingCard","setValidatingCard","isPartnership","usePermissions","getFeatureValue","identifiers","useSubscriptionPlanHelper","MIN_LICENSE","MIN_PROFESSIONAL_NUMBER","MAX_LICENSE","MAX_PROFESSIONAL_NUMBER","amountInitial","amount","setAmount","validateNumber","rule","Promise","resolve","validateCreditCardNumber","reject","validateExpirationDate","validateExpirationString","validateName","test","validateNumberOfProfessionals","Number","isNaN","parseInt","installmentsData","parcel","isLoading","installments","numberOfPaidProfessionals","numberOfLicenses","onFinish","expirationDate","cardholderName","securityCode","substr","year","firstName","lastNames","lastName","cc","CreditCard","valid","createPaymentToken","removeLicense","paymentMethod","creditCard","token","holder","validateCreditCard","validateTrigger","onValuesChange","handleChangeValues","Divider","orientation","features","feature","Fragment","BsCheck2Square","flex","required","validator","autoFocus","InputNumber","Alert","frequency","formatCurrency","whitespace","suffix","valuePropName","validateSecurityCode","cardNumber","cvv","brand","validateCVV","toString","submit","PageContainer","maskClosable","onOkClick","onBackClick","okButtonText","backButtonText","toolbarComponent","ToolbarComponent","marginRight","PageEdit","onBeforeBinding","updateFormOnDataChanged","onDataChanged","showConfirmDataLoss","editingForm","useCrudEditContext","modified","setModified","dataChanged","setFieldsValue","handleSubmit","validateFields","dataToSend","handleBackClick","confirm","ExclamationCircleOutlined","onOk","ResourceErrorAlert","handleValuesChange","changedValues","allValues","InputCurrency","prefix","decimalSeparator","decimalsLimit","decimalScale","onFocus","userValue","setUserValue","CurrencyInput","allowNegativeValue","onValueChange","changedValue","parseFloat","PlanDetail","subscription","expiresTrialMessage","useSubscription","isTrial","Descriptions","bordered","column","getTitle","_plan$name","planName","numberOfProfessionals","numberOfLicense","Tag","numberOfFreeProfessionals","serviceProviders","hasLicense","partnershipName","AccessResourcesDenied","subTitle","Result","LockOutlined","fontSize","AccountAccessDenied","types","hasAccountType","history","useHistory","handleChangeSubscription","setVisualized","async","dispatcher","dispatchResouceAction","dispatch","actionType","effect","NotificationDate","fromNow","NotificationTreatmentItem","_notification$paramet","useDispatch","refresh","refreshToken","notification","isActive","treatmentPartnerAcceptingId","useSelector","_c$resources$treatmen","_c$resources","resources","treatments","handleSuccess","_data$result2","pathname","location","_data$result","startsWith","endsWith","reload","parameters","JSON","patientName","profissionalName","treatmentPartnerId","handleAccepted","acceptedTreatmentPartner","NotificationContainer","isVisualized","onKeyDown","role","tabIndex","NotificationCommonItem","handlePress","patientId","NotificationItem","NotificationList","paginationChanged","renderDivider","handleScrollEnd","total","MyNotifications","iconClassName","endpoint","fixedQueryParams","onlyIsActive","openClassName","overlayClassName","Badge","notVisualizedCount","SelectStates","states","initials","SelectProfessionalRegistrationTypes","FilterRangePicker","ranges","RangePicker","DisplayAmount","useMoneySign","disabledColor","classNames","SelectPaymentMethod","ignoreds","Footer","bottom","borderTop","padding","textAlign","footer","sizeClass","DrawerAntd","bodyStyle","SelectEntryType","removeAccents","normalize","TreeNode","TreeSelect","RemoteSelectTree","handleLoadData","treeNode","onChangeSelect","treeCheckable","filterNode","indexes","i","normalizeItem","subItems","getSubItems","j","normalizeString","handleFilterTreeNode","inputValue","onFilterTreeNode","node","handleDisabled","onDisabled","renderChildren","_this$getSubItems","beforeStr","afterStr","isLeaf","_value$map","tempValue","filterTreeNode","dropdownStyle","maxHeight","overflow","PROFILES","SelectProfile","hideProfiles","SelectWrapperPrefix","FilterSelect","isTawktoLoaded","Tawk_API","TawktoChat","checkHasFeature","onLoad","chatLoaded","configureChatLoad","onLoaded","limitRetryChatLoad","setAttributes","email","showWidget","hideWidget","minimize","Helmet","waitingForAuthorization","pending","accepted","rejected","refuse","TreatmentPartnerStatus","labels","serviceRecipient","SelectCampaignStatus","campaignStatus","draft","published","CampaignStatusTag","app","whatsApp","CampaignEnabledChannels","channelTypes","HtmlEditorTags","handleClickTag","regex","InputNumeric","InputPercent","groupSeparator","InvoiceIcon","processingDetail","urlPdf","icons","authorized","canceled","received","enqueued","inContingent","code","crtOptions","SelectTaxRegime","specialRegimeOptions","SelectSpecialTaxRegime","AccessDenied","AccountStudentAccessDenied","getRandomColor","Math","floor","random","PatientAnnotationModalWrapper","patient","changed","setChanged","treatment","isNullOrEmpty","handleCancel","closeAnnotation","confirmLoading","isLinkTreatment","markers","marker","normalizeFromSelect","createAnnotation","shared","TextArea","rows","isHealthcareEnabled","RemoteSelectAutoCrud","onBeforeCreate","onMouseDown","preventDefault","stopPropagation","optionRender","userId","PatientAnnotationModal","createAnnotationData","_c$resources$patients","patients","normalizeDocument","fileType","NoRender","Header","previousDocument","nextDocument","currentDocument","currentFileNo","link","document","createElement","href","download","click","LeftOutlined","RightOutlined","ShowFilesModal","files","docViewerRef","activeDocument","setActiveDocument","DocViewer","config","overrideComponent","noRenderer","onDocumentChange","pluginRenderers","DocViewerRenderers","language","SharingFileQRCode","supportedTypes","onNewUpload","setToken","setFiles","fileUploadedd","setFileUploadedd","systemSettings","apiUrl","normalizeFile","uid","thumbUrl","socket","signalR","withUrl","configureLogging","None","withAutomaticReconnect","build","invoke","on","prevStates","handleUploadFile","off","stop","appUrl","QRCode","showIcon","fileList","showDownloadIcon","showRemoveIcon","UploadList","onUpload","hiddenQrCode","showRemove","openShowFile","setOpenShowFile","openSharingQRCode","setOpenSharingQRCode","handleOnChange","newFile","handleClosePreview","FaQrcode","onDownload","onPreview","find","onError","isLt3M","PaperClipOutlined","RestrictedAccessRole","roles","hasRole","SelectOptionLabel","PureComponent","RemoteSelectLedgerAccountUtils","normalizeToSelect","classification","_value$label","omit","RemoteSelectLedgerAccount","normalizeFromSelectLabel","RemoteSelectStandardHistoryUtils","RemoteSelectStandardHistory","FormItemUserDetail","Avatar","CardConciliation","transaction","typeof","openFinancialExchangeCode","LoadingWithSpin","tip","getColorByType","StatusOrTypeTag","_customDisplay$type","customDisplay","CardTitle","CardRecharts","componentRight","lastUpdateDate","paddingLeft","paddingRight","UploadProfileImageV2","setLoading","border","marginTop","Image","UploadProfile","isJpgOrPng","SelectSubscriptionFrequency","_value","buttonName","UploadAntd","handleOnRemove","handlePreview","filename","dotIndex","lastIndexOf","slice","truncatedName","truncateFilename","ClipboardLabel","copy","useClipboard","handleCopy","SelectAccountTypes","RemoteCostCenterFieldSelect","useRow","enabledCostCenter","useCostCenter","DrawerWrapper","globalEvents","invokeEvents","unloaded","InputHide","setEditing","handleEndOfEdit","handleEdit","onKeyPress","PlatformImageTooltip","platform","showTooltip","getPlatformLabel","PlatformImage","_icons$platform","platformDefaultIcons","platformAltIcons","default","Loading","indicator","GoogleCalendarButton","googleCalendarConnected","isProfessional","connected","disconnecting","setDisconnecting","refreshProfessionalToken","connect","useGoogleLogin","codeResponse","success","handleConnect","flow","ux_mode","redirect_uri","prompt","scope","toogleConnection","warning","StatusTag","onOpenChange","googleLogout","catch","ReportHeader","company","useCompany","companyName","federalTaxNumber","formatFederalTaxNumber","Display","isPhone","isFederalTaxNumber","isDate","formattedValue","formatPhone","formartDateTimeUTC","PLATFORM","PLATFORM_GET","PLATFORM_GET_FINISHED","PLATFORM_UPDATE","PLATFORM_UPDATE_FINISHED","PLATFORM_SHOW_CONNECTIONS","PLATFORM_CLOSE_CONNECTIONS","PLATFORM_RELOAD_CONNECTIONS","PLATFORM_RELOAD","PLATFORM_SHOW_SYNC_ORDERS","PLATFORM_CLOSE_SYNC_ORDERS","PLATFORM_SYNC_ORDERS","PLATFORM_SYNC_ORDERS_FINISHED","PLATFORM_SHOW_FILE_IMPORT_ORDERS","PLATFORM_CLOSE_FILE_IMPORT_ORDERS","PLATFORM_FILE_IMPORT_ORDERS","PLATFORM_FILE_IMPORT_ORDERS_FINISHED","getByPlatformId","platformId","queryString","URLSearchParams","getByConnectionId","connectionId","payload","put","showConnections","createAction","closeConnections","reloadConnections","showSyncOrders","connection","closeSyncOrders","syncOrders","initialDate","showFileImportOrders","closeFileImportOrders","sendFileImportOrders","COMPANY","COMPANY_GET","COMPANY_GET_FINISHED","COMPANY_GET_SETTINGS","COMPANY_GET_SETTINGS_FINISHED","COMPANY_UPDATE","COMPANY_UPDATE_FINISHED","COMPANY_SETTINGS_UPDATE","COMPANY_SETTINGS_UPDATE_FINISHED","COMPANY_UPLOAD_CERTIFICATE","COMPANY_UPLOAD_CERTIFICATE_FINISHED","COMPANY_UPLOAD_CERTIFICATE_ERROR","COMPANY_CANCEL","COMPANY_GET_SETUP_STEPS","COMPANY_GET_SETUP_STEPS_FINISHED","getSettings","updateSettings","postCertificate","formData","onFail","EVENT","EVENT_FETCH_APPOINTMENT_TODAY","EVENT_FETCH_APPOINTMENT_TODAY_FINISHED","EVENT_CHANGE_STATUS","EVENT_CHANGE_STATUS_FINISHED","EVENT_DELETE","EVENT_DELETE_FINISHED","EVENT_GET_VIEW","EVENT_GET_VIEW_FINISHED","EVENT_GET_VIEW_CLOSE","EVENT_REFRESH","EVENT_SCHEDULES_UNLOAD","EVENT_SCHEDULES","EVENT_SCHEDULES_FINISHED","EVENT_FETCH_FAST_SEARCH","EVENT_FETCH_FAST_SEARCH_FINISHED","fetchFastSearch","fetchAppointmentToday","fetchByPatient","fetchByPatientUnload","changeStatus","del","removeWithRecurring","getView","getViewClose","createPatient","RESOURCE_CREATE","updatePatient","mobilePhoneValidator","postalCodeValidator","xs","sm","md","lg","xl","xxl","platforms","kuidare","require","kiwify","eduzz","hotmart","monetizze","tmb","FinancialEntryInstallmentNumber","totalInstallments","FinancialEntryFormPaymentItem","showAudit","drawerForm","checkingAccount","setCheckingAccount","setPaymentMethod","payment","method","accountantId","typeLabel","getPaymentNextBusinessDay","nextBusinessDay","credicardInvoiceClosingDay","credicardInvoiceDueDate","invoiceClosing","invoiceDueDate","newDueDate","getNextBusinessDay","dueDate","getReceiptNextBusinessDay","toISOString","setFields","_initialValues$checki","handleTriggerClose","closable","allowsYouToChangeCharges","paymentDate","_ref7","interestAmount","fineAmount","discount","netAmount","handleChangeCharges","hasChangedAmount","hasChangedPaymentMethodOrCheckingAccount","checkIsPaymentMethodAllowedForCheckingAccount","_item$payment","changedCheckingAccount","changedPaymentMethod","changedPaymentDate","_ref6","afterClose","preserve","ledgerAccount","newCheckingAccount","credicardType","disabledDate","isAfter","tooltip","exportAudit","LEDGERACCOUNT","LEDGERACCOUNT_FILE_IMPORT","LEDGERACCOUNT_FILE_IMPORT_FINISHED","importFile","STANDARDHISTORY","STANDARDHISTORY_FILE_IMPORT","STANDARDHISTORY_FILE_IMPORT_FINISHED","PACKAGE","PACKAGE_FETCH","PACKAGE_FETCH_FINISHED","SUBSCRIPTION","SUBSCRIPTION_SET_VALUES","SUBSCRIPTION_SET_LOADING","SUBSCRIPTION_CURRENT_GET","SUBSCRIPTION_CURRENT_GET_FINISHED","SUBSCRIPTION_OPEN_PURCHASE_PACKAGE","SUBSCRIPTION_CLOSE_PURCHASE_PACKAGE","SUBSCRIPTION_OPEN_PACKAGE_LIST","SUBSCRIPTION_CLOSE_PACKAGE_LIST","SUBSCRIPTION_PURCHASE_PACKAGE","SUBSCRIPTION_PURCHASE_PACKAGE_FINISHED","SUBSCRIPTION_BALANCE_DETAILS","SUBSCRIPTION_BALANCE_DETAILS_FINISHED","SUBSCRIPTION_UPDATE","SUBSCRIPTION_UPDATE_FINISHED","setValues","getActiveSubscription","openPurchasePackage","closePurchasePackage","postPurchasePackage","packageId","getBalanceDetails","openPackageList","closePackageList","updateSubscription","subscriptionId","MEDICALRECORDSECTION","MEDICALRECORDSECTION_SORTING","updateSorting","ordination","CAMPAIGN","CAMPAIGN_CLONE_FETCH_FINISHED","InputListSearch","SearchOutlined","FormInstanceCreate","WrapperForm","FormInstance","WrappedComponent","createReactClass","Filter","onBeforeSubmit","onChangeDebounce","handleSetValues","handleBeforeBinding","formProps","autoSubmit","TODAY","WEEK","dateTypes","invoiceStatus","FinancialEntryFilter","onRefreshPage","allowSearch","onFilterAdvanced","onExportExcel","exportingExcel","onPrint","enableInvoice","useSettingInvoice","SyncOutlined","spin","FilterOutlined","FileExcelOutlined","PrinterOutlined","FinancialEntrySummary","onFilter","summary","_c$resources$financia","amountReceipt","amountPayment","totalReceiptPending","totalPaymentPending","totalTransactions","previousBalance","balance","dateType","handleFilterReceiptPending","itemStatus","handleFilterPaymentPending","Hoje","Semana","Mês","Ano","reconciledStatus","launchStatus","FinancialEntryFilterAdvanced","userCompany","subCategories","isEnableInvoice","_company$settings","_userCompany$settings","onlyCurrentTenant","FinancialEntryHeader","disableEditing","customButtons","initialValuesOfCreation","hideSummary","defaultQueryParams","isBankReconciliation","filterAdvanced","setFilterAdvanced","formDrawer","_history$location","handleClickPayment","handleClickReceipt","handleRefreshPage","convertParamsOfArray","param","handleChangeFilter","rangePicker","categories","checkingAccounts","costCenters","paymentMethods","serviceProviderIds","categoryIds","checkingAccountIds","costCenterIds","normalizeParams","handleOpenFilterAdvanced","handleCloseFilterAdvanced","handleApplyDrawerFilter","handleClearFilter","handleChangeFilterSummary","otherValues","handleFileExportOnSuccess","handleExportExcel","querySearch","stringify","arrayFormat","skipNull","createFileExport","handleOpenTransfer","openTransfer","PrintContextConsumer","handlePrint","onClearFilter","FinancialEntryAccountantAlert","setMessages","showDetail","setShowDetail","FinancialEntryResendEmailInternal","_financialEntry$patie3","financialEntry","setRequired","_financialEntry$patie","_financialEntry$patie2","emails","handleClose","closeResendInvoice","_financialEntry$invoi","postResendInvoice","invoice","allowSendByApp","emailValidator","labelAlign","Switch","FinancialEntryResendEmail","resendEmailData","_state$resources$fina","_state$resources","FinancialEntryListTable","hiddenButtonActions","isAdmin","openFiles","setOpenFiles","renderPaymentIcon","_record$payment","_record$payment2","_record$payment3","uniqueSequentialNumber","FaHandHoldingUsd","marginLeft","renderExportedIcon","auditedExportDocument","auditedExportItem","isChanged","isModified","generateMessage","formattedData","renderReconciledIcon","dateOfConciliation","userOfConciliation","handleEditInvoice","editInvoice","invoiceIsAuthorized","_ref9","_financialEntry$invoi3","isDeleted","buttons","EyeOutlined","openViewDetail","FaFileInvoiceDollar","_ref8","effectiveDate","transferInfo","InvoiceHelper","isReadOnly","_ref13","internalCancel","cancelInvoice","SendOutlined","openResendInvoice","urlXml","_financialEntry$invoi2","_ref16","_ref17","CopyOutlined","handleClone","_ref14","_ref15","recurring","CloudSyncOutlined","_ref11","_financialEntry$invoi5","syncInvoice","_ref10","_financialEntry$invoi4","_ref12","_financialEntry$trans","transactionId","_financialEntry$trans2","deleteTransfer","_ref18","FinancialEntryViewDetail","_ref19","Column","dataIndex","_ref20","_ref21","_ref22","_patient$name","_transferInfo$origin","_transferInfo$destina","supplier","customer","origin","destination","_ref23","category","costCenter","_record$financialEntr2","_record$financialEntr3","_company$settings2","_record$financialEntr4","_record$financialEntr5","_record$financialEntr","renderDeletedIcon","hasAccountingIssues","WarningOutlined","_record$financialEntr6","attachment","Dropdown","overlay","Menu","FinancialEntryTransferDrawer","closeTransfer","createTransfer","triggerSubmit","defaultParams","FinancialEntryList","disableAccountingAlert","enableSelectRow","getCheckboxProps","suggestAsDefaultCheckingAccount","onConfirmSelect","titleOfSelectedConfirmButton","useQueryStringParams","loadingSelection","selectedRows","setSelectedRows","getFixedQueryParams","selectedRowKeys","onSelectChange","selected","onSelectAll","onSelectAllChange","d","handleConfirmSelect","useMemo","headerProps","FinancialEntryEditManagerMemo","FinancialEntryEditManager","ReactToPrint","documentTitle","removeAfterPrint","media","Crud","headerComponent","onBuildQueryParams","PatientEdit","isRequiredResponsible","setIsRequiredResponsible","openResponsible","setOpenResponsible","handleCalculeRequiredResponsible","birthDate","diff","isEditing","hasUserId","hasFederalTaxNumber","handleSearchFederalTaxNumberSuccess","initializeCreate","handleSearchFederalTaxNumberFail","handleChangeResponsible","DrawerEdit","responsible","utc","federalTaxNumberValidator","hasFeedback","validateStatus","findByFederalTaxNumber","autoSize","AddressV2","client","COOKIE_DOMAIN","useCookieHandler","cookies","setCookie","removeCookie","useCookies","getExpires","days","expires","toDate","setCookieHandler","path","domain","useCustomHistory","hasTenantId","_c$settings","errorText","scrollIntoView","limit","ellipsis","last","useVersionV2","handleCreate","handleCreateSucess","handleDropdownVisibleChange","searchValue","notFoundContent","useDecimal","valueInt","toLocaleString","currency","trim","lastPostalCode","loadingAddress","findAddress","postalCode","newAddress","street","district","additionalInformation","city","address","sender","normalizeLabel","RawHtml","LIMIT_APPOINTMENTS_TODAY","MAX_FREE_INVOICES_MONTH_PER_PROFESSIONAL","PROCEDURE_PACKAGE_MANAGEMENT","FinancialEntryViewDetailInternal","_data$attachments","fieldEditing","setFieldEditing","handleBeforePaymentBinding","handleBeforeExportAuditBinding","closeViewDetail","_c$payment","_c$payment2","_c$payment3","_c$payment4","_c$payment5","_c$payment6","dateOfCompensation","handleFieldClose","isPaid","handleChangeField","parentCategoryId","userLastModifier","viewDetail","SupplierEdit","isLegalPerson","setIsLegalPerson","_rest$isLegalPerson","Radio","Group","toggler","integrated","auth","_len","_key","isStudent","isReceptionist","isClinicAdmin","isUserAdmin","isFinancial","isFinancialAdministrator","FinancialEntryToolbarEdit","deleting","handleDelete","minimumValueRule","FinancialEntryEdit","_data$invoice","hasOneReceived","setHasOneReceived","numberOfInstallments","setNumberOfInstallments","currentCategory","setCurrentCategory","recurringEnabled","setRecurringEnabled","tabKey","setTabKey","eventId","createByEvent","platformType","handleSortItems","a","b","installmentNumber","handleLoadSettings","getFieldsValue","hasChangedValues","allowsUpdateItem","every","newItems","sort","distributeValueToInstallments","totalValue","numInstallments","valuePerInstallment","remainingValue","installment","toFixed","installmentAmount","nextDate","openEditingField","changeField","newValues","merge","_c$payment7","handleCheckLimit","handleBeforeSubmit","toolbarProps","closeEditingField","Tabs","activeKey","tab","TabPane","CustomerEdit","defaultActiveFirstOption","roundDecimal","exp","NaN","ResourceEdit","_data$patient","_data$invoice2","_data$invoice6","_data$invoice7","_data$invoice8","_data$invoice9","hasPerson","currentPatient","setCurrentPatient","handleBeforeBindingIInvoice","authorizationDate","cancellationDate","cancelEditInvoice","calculeAmount","base","rate","round","recalcuteAll","allFields","deductionsAmount","issRate","pisRate","cofinsRate","irRate","csllRate","inssRate","invoiceAmount","issBaseTax","issAmount","pisAmount","cofinsAmount","csllAmount","irAmount","inssAmount","displayTaxes","issWithheld","pisWithheld","cofinsWithheld","csllWithheld","irWithheld","inssWithheld","calculateDisplayTaxes","handleLoadedSettings","serviceInvoice","cityServiceCode","cnaeCode","federalServiceCode","taxationType","discrimination","handleGetSettings","companyId","_data$invoice$company","_data$invoice3","_data$invoice4","_data$invoice5","defaultCampany","handleFieldsChange","allowToCreateOtherCompanies","onlyInvoiceEnabled","rpsNumber","Collapse","Panel","forceRender","editingInvoice","FinancialEntryInvoiceEdit","currencies","BRL","USD","EUR","MXN","PERCENT","decimalPlaces","GBP","ARS","CHF","GTQ","JPY","PEN","costCurrencies","CurrencyCodeSelect","showEmpty","currencyInfo","TREATMENT","TREATMENT_CONCLUDE","TREATMENT_CONCLUDE_FINISHED","TREATMENT_MY_TREATMENT_PARTNER","TREATMENT_MY_TREATMENT_PARTNER_FINISHED","TREATMENT_ACCEPTED_TREATMENT_PARTNER","TREATMENT_ACCEPTED_TREATMENT_PARTNER_FINISHED","TREATMENT_CANCEL","TREATMENT_CANCEL_FINISHED","TREATMENT_OPEN_CANCELLATION","TREATMENT_CLOSE_CANCELLATION","conclude","selectPartner","partner","removePartner","cancel","openCancellation","closeCancellation","LOGIN_REQUEST","LOGIN_REQUEST_FINISHED","AUTH_REFRESH_TOKEN_FINISHED","LOGOUT","AUTH_REFRESH_USER","AUTH_SET_CURRENT_COLLABORATOR","AUTH_REMOVE_CURRENT_COLLABORATOR","onAuthSuccess","Date","setSeconds","getSeconds","expireInSeconds","localStorage","setItem","removeItem","btoa","accessToken","createAccount","createSubscription","changeTenant","ACCOUNT","ACCOUNT_SHARING_UNLOAD","ACCOUNT_SHARING_GET","ACCOUNT_SHARING_GET_FINISHED","ACCOUNT_SHARING_GET_ERROR","ACCOUNT_ACTIVITY_FETCH","ACCOUNT_ACTIVITY_FETCH_FINISHED","ACCOUNT_SETTINGS_GET","ACCOUNT_SETTINGS_GET_FINISHED","ACCOUNT_SETTINGS_UPDATE","ACCOUNT_SETTINGS_UPDATE_FINISHED","ACCOUNT_CANCEL_FINISHED","getResourceByRole","getSharing","unloadSharing","SegmentFieldFormatter","fieldName","fieldValue","Plural","pluralize","Singular","SegmentField","service","priceTable","HEALTHSERVICEPROVIDER","HEALTHSERVICEPROVIDER_GET_CURRENT_FINISHED","HEALTHSERVICEPROVIDER_PUT_CURRENT","HEALTHSERVICEPROVIDER_PUT_CURRENT_FINISHED","HEALTHSERVICEPROVIDER_CANCEL_CURRENT","HEALTHSERVICEPROVIDER_AVAILABILITY_FETCH","HEALTHSERVICEPROVIDER_AVAILABILITY_FETCH_FINISHED","getCurrentProfessional","updateCurrentProfessional","cancelCurrentProfessional","SearchValue","_columns$find","searchInputPlaceHolder","fixedParams","sorting","defaultSorting","tenant","drawerSize","SearchForm","inputRef","drawerVisible","setDrawerVisible","setLastFetchId","setPagination","pageSize","showSizeChanger","showLessItems","setDataSource","isKey","idColumn","triggerChange","onSelectValue","idFieldName","setValue","handleSearchFormChange","Search","currentTarget","classList","contains","FormContextProvider","DrawerForm","rowIndex","tablePagination","CompanySettingsForm","_data$serviceInvoice","enabled","hideAllowToCreateOtherCompanies","useBatchNumber","provider","useInvoiceNumber","useRps","useSeries","authentication","useFederalServiceCode","HorizontalMenu","routes","sub","route","basePath","isContainer","SubMenu","Link","to","buildMatchPath","defaultOpenKeys","isAuthenticated","HorizontalToolbar","module","exports","OPENFINANCIALEXCHANGE","OPENFINANCIALEXCHANGE_FILE_IMPORT","OPENFINANCIALEXCHANGE_FILE_IMPORT_FINISHED","OPENFINANCIALEXCHANGE_TRANSACTIONS_QUERYPARAMS","OPENFINANCIALEXCHANGE_TRANSACTIONS","OPENFINANCIALEXCHANGE_TRANSACTIONS_FINISHED","OPENFINANCIALEXCHANGE_UPDATE_TRANSACTION","OPENFINANCIALEXCHANGE_CONCILIATIONS","OPENFINANCIALEXCHANGE_CONCILIATIONS_FINISHED","OPENFINANCIALEXCHANGE_CHANGE_CONCILIATION","OPENFINANCIALEXCHANGE_CHANGE_CONCILIATION_FINISHED","transactionsFetch","conciliationsFetch","changeTransaction","changeConciliation","FINANCIALSTATISTIC","FINANCIALSTATISTIC_GET_TOP_RECEIPT_CATEGORIES","FINANCIALSTATISTIC_GET_TOP_RECEIPT_CATEGORIES_FINISHED","FINANCIALSTATISTIC_GET_TOP_PAYMENT_CATEGORIES","FINANCIALSTATISTIC_GET_TOP_PAYMENT_CATEGORIES_FINISHED","FINANCIALSTATISTIC_GET_TOTAL_LAST_MONTH","FINANCIALSTATISTIC_GET_TOTAL_LAST_MONTH_FINISHED","FINANCIALSTATISTIC_GET_SUMMARY","FINANCIALSTATISTIC_GET_SUMMARY_FINISHED","FINANCIALSTATISTIC_GET_CASHFLOW","FINANCIALSTATISTIC_GET_CASHFLOW_FINISHED","getReceiptTopCategories","categoryType","getPaymentTopCategories","getTotalLastMonth","getSummary","getCashFlow","defaultSettings","initialState","_settings$key","_settings$labels","paths","internalRef","onFetching","autoFetchValue","distinctItems","_settings$key2","uniqBy","onFetch","handleFetchSuccess","debouncedFetch","normalizedValue","labelInValue","changedItem","onClear","handleClear","dropdownRender","changedOpen","onPopupScroll","ceil","scrollTop","offsetHeight","scrollHeight","internalOptionRender","getTime","d2","performance","now","r","scrollbar","debouncingScrollEnd","resetScroll","Scrollbars","autoHide","onScroll","renderView","renderViewProps","overflowX","renderTrackHorizontal","renderProps","arr","middleSeparator","lastSeparator","getDataFromStorage","auth64","atob","currentCollaborator","authInitialState","claims","permissions","CircularProgress","antIcon","asyncComponent","importComponent","showSpinner","AsyncFunc","component","mounted","Nprogress","configure","done","componentWillUnmount","ReactPlaceholder","ready","Auxiliary","SidebarLogo","themeType","TAB_SIZE","NAV_STYLE_FIXED","NAV_STYLE_DRAWER","NAV_STYLE_NO_HEADER_MINI_SIDEBAR","THEME_TYPE_LITE","SidebarContentRoute","replacePathBase","selectedKeys","theme","SidebarContent","getNoHeaderClass","NAV_STYLE_NO_HEADER_EXPANDED_SIDEBAR","getNavStyleSubMenuClass","currentApp","resourceUsers","editingPassword","UpdatePassword","updatePassword","users","editingUser","RECORD_FIELD","Sider","Layout","Sidebar","context","onToggleCollapsedNav","bind","addEventListener","innerWidth","drawerStyle","NAV_STYLE_MINI_SIDEBAR","collapsed","collapsible","library","fasFaCopy","farFaCopy","faUniversity","faGavel","faCity","faBuilding","faTachometerAlt","faUser","faList","faClipboardCheck","faForward","faPencilAlt","faTrashAlt","faSave","faTimes","faClipboardList","faLayerGroup","faBook","faHome","faFileAlt","faFileSignature","faEye","faInfoCircle","faPlusCircle","faCaretRight","faUserShield","faChevronLeft","faCheck","faCheckSquare","faReply","faFilter","faDownload","faArrowRight","faUpload","faFileContract","faUndoAlt","faUserEdit","faLightbulb","faExclamationTriangle","faCircle","farFile","faUsers","faUserFriends","faBox","faUserMd","faBriefcaseMedical","faShareAltSquare","faFileMedicalAlt","faBan","faFirstAid","faNotesMedical","faAngleDown","faSlidersH","faFilePdf","faFileExcel","faFileVideo","faFileAudio","faFileWord","faFileImage","faShareAlt","faFileMedical","faPrescriptionBottleAlt","faPlayCircle","faListAlt","faProcedures","farCalendarAlt","farCalendarCheck","faCalendarDay","faUserCheck","faArrowLeft","faMobileAlt","faAt","faCalendarAlt","faHeartbeat","faLaptopMedical","faBriefcase","faThumbsUp","faCcVisa","faCcMastercard","faCcDinersClub","faCcAmex","faMapMarkedAlt","faCashRegister","faWallet","faEnvelope","faCoins","faBalanceScaleRight","faBell","faClock","faHandHoldingUsd","faTags","faChartLine","faReceipt","faStickyNote","faAngleLeft","faUserPlus","faTimesCircle","faUserTimes","faSignInAlt","faPaperPlane","faWhatsapp","faMobile","farEnvelope","faFileInvoiceDollar","faFunnelDollar","faSpinner","faHourglassHalf","faPrint","farTimesCircle","faLandmark","faCogs","faTruckLoading","faCalendar","faCalculator","faBalanceScale","farCheckCircle","faUserGraduate","faGraduationCap","faSchool","faIdBadge","faCubes","faRulerHorizontal","faBoxes","faCog","faEraser","faThLarge","faTable","faBookOpen","faChartPie","faChartBar","faChartArea","faHandHolding","CurrentAdminProfile","editingCurrentUser","userMenuOptions","handleEditProfile","currentUserGet","changePasswordClickHandle","signoutClickHandle","userName","displayName","base64","CurrentUserEdit","TopbarAdmin","toggleClickHandle","RestrictedRoute","userFeatures","userRoles","Route","redirectToDefaultUserRoute","defaultPath","Redirect","RouteRedirect","SimpleRoute","exact","WrappedRoute","_route$isContainer","onBeforeRouteRender","buildPath","renderRoute","routeProps","isContainerAux","redirectTo","Routes","Suspense","fallback","Content","AdminContainer","useAuthContext","handleClickHelp","wlogo","logo","handleClickSettings","QuestionCircleOutlined","CurrentUserProfile","UploadRegistrationStatementModal","isRequiredRegistrationStatement","setFileList","newFileList","splice","handleUpload","_error$message","finally","AppContainer","isMultiTenant","isActivated","InsideHeader","hasTreatmentInvite","SettingsMenu","allowRenderRoute","_route$hidden","call","userHasFeature","getIcon","_route$menu","hide","handleGo","substring","Settings","setCollapsed","baseRoute","isBaseRoute","defaultRoute","defaultCollapsed","toggleCollapsed","MenuFoldOutlined","rotate","PartnershipContainer","useConfig","getRecordRouteItems","singularTitle","accountType","serviceRecipients","enableStock","getRecordRoutes","childRoutes","priceTables","getServiceRoutes","services","clients","userReducer","createResourceReducer","USER","USER_UPDATE_PASSWORD","newState","normalizeResourceState","updateResourceState","USER_SAVE_PASSWORD","RESOURCE","USER_SAVE_PASSWORD_FINISHED","USER_SAVE_PASSWORD_FAILED","USER_CURRENT_GET_FINISHED","currentUser","USER_CURRENT_UPDATE","USER_CURRENT_UPDATE_FINISHED","USER_CURRENT_CANCEL","USER_REPORT_INITIALIZE","report","USER_REPORT_CANCEL","USER_REPORT_FAIL","USER_REPORT_SEND","USER_REPORT_SEND_FINISHED","USER_CONTRIBUTOR_DELETE_FINISHED","USER_GET_MY_PREFERENCES_FINISHED","myPreferences","USER_UPDATE_MY_PREFERENCES","USER_UPDATE_MY_PREFERENCES_FINISHED","USER_CANCEL_MY_PREFERENCES","USER_CREATE_COMPANY","USER_CLOSE_COMPANY_EDIT","USER_GET_COMPANY_FINISHED","USER_POST_COMPANY","USER_POST_COMPANY_FINISHED","USER_PUT_COMPANY","USER_PUT_COMPANY_FINISHED","layoutType","LAYOUT_TYPE_FULL","colorSelection","THEME_COLOR_SELECTION_PRESET","APP_DEFAULT","isDirectionRTL","languageId","settingsReducer","THEME_TYPE_SEMI_DARK","APP_ADMIN","THEME_TYPE","THEME_COLOR","themeColor","LAYOUT_TYPE","authReducer","authenticating","_payload$data$user$cl","tenantName","concatReducers","accountReducer","activities","errorMessage","act","medicalRecordSectionReducer","eventReducer","appointmentTodayItems","updatingStatus","deletingId","_resource$schedules","schedules","defaultResourceState","_action$payload$confi","attendanceReducer","ATTENDANCE","ATTENDANCE_START_OR_STOP_SERVICE","startingOrstopping","ATTENDANCE_START_OR_STOP_SERVICE_FINISHED","ATTENDANCE_SET_EDIT_VALUES","ATTENDANCE_UPDATE_ANSWER","sections","newSections","ATTENDANCE_CREATE_DOCUMENT","modalDocumentEdit","ATTENDANCE_CLOSE_DOCUMENT","ATTENDANCE_CREATE_DOCUMENT_FIELD","creatingDocument","ATTENDANCE_CREATE_DOCUMENT_FIELD_FINISHED","sectionId","ATTENDANCE_UPDATE_DOCUMENT_FIELD","ATTENDANCE_UPDATE_DOCUMENT_FIELD_FINISHED","ATTENDANCE_DELETE_DOCUMENT_FIELD","ATTENDANCE_DELETE_PRESCRIPTION_FIELD","ATTENDANCE_UPDATE_ANSWER_FINISHED","ATTENDANCE_CREATE_PRESCRIPTION_FIELD","creatingPrescription","ATTENDANCE_CREATE_PRESCRIPTION_FIELD_FINISHED","modalPrescriptionEdit","ATTENDANCE_CLOSE_PRESCRIPTION","ATTENDANCE_CREATE_PRESCRIPTION","ATTENDANCE_UPDATE_PRESCRIPTION_FIELD","ATTENDANCE_UPDATE_PRESCRIPTION_FIELD_FINISHED","ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL","redirecting","ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL_FINISHED","ATTENDANCE_GET_ANALYSIS","ATTENDANCE_GET_ANALYSIS_FINISHED","analysis","handleError","patientReducer","PATIENT","PATIENT_VIEW","PATIENT_LIST_REFRESH","PATIENT_EVENT_FETCH","PATIENT_EVENT_FETCH_FINISHED","PATIENT_VIEW_FINISHED","resourceView","PATIENT_VIEW_UPDATE","PATIENT_CREATE_ATTENDANCE","creatingService","PATIENT_EVENT_UNLOAD","PATIENT_EVENT_LINK_TREATMENT_FINISHED","PATIENT_EVENT_SHARE_FINISHED","PATIENT_SHOW_EVENTS","show","PATIENT_SHOW_ACTIVITIES","PATIENT_SHOW_SCHEDULES","showSchedulesPatientId","PATIENT_CLOSE_SCHEDULES","PATIENT_EVENT_PRESCRIPTION_SHOW","eventPrescription","PATIENT_EVENT_PRESCRIPTION_CLOSE","PATIENT_EVENT","PATIENT_EVENT_FINISHED","PATIENT_PRESCRIPTION_CREATE_INTEGRATED","PATIENT_PRESCRIPTION_CREATE_INTEGRATED_FINISHED","PATIENT_OPEN_ANNOTATION","PATIENT_CLOSE_ANNOTATION","PATIENT_EVENT_CREATE_ANNOTATION","PATIENT_EVENT_CREATE_ANNOTATION_FINISHED","PATIENT_EVENT_LIST_OPEN_FILTER","openFilter","PATIENT_EVENT_LIST_CLOSE_FILTER","PATIENT_GET_TAGS_FINISHED","_action$payload$data$","_action$payload","_action$payload$data","tags","PATIENT_CREATE_TAG","tag","PATIENT_REMOVE_TAG","PATIENT_SHOW_FINANCIALENTRY","visibleFinancialEntryPatientId","PATIENT_CLOSE_FINANCIALENTRY","treatmentReducer","myTreatmentPartnerLoading","myTreatmentPartners","canceling","cancellation","dashboardReducer","STATISTICS_GET","STATISTICS_GET_FINISHED","STATISTICS_USER_GET_FINISHED","userProductivity","STATISTICS_GET_PRODUCTIVITY_FINISHED","productivity","STATISTICS_GET_STEPS","onlyConcluded","STATISTICS_GET_STEPS_FINISHED","steps","STATISTICS_GET_ATTENDANCES_IN_PROGRESS_FINISHED","attendances","companyReducer","editingSettings","setupSteps","createReducer","actionTypePrefix","methods","errorHandler","subscriptionReducer","plans","purchasePackage","buyingPackage","balanceDetails","packageList","prescriptionReducer","PRESCRIPTION","PRESCRIPTION_SHOW","forceDefaultPrescription","PRESCRIPTION_CLOSE","financialEntryReducer","FINANCIALENTRY","FINANCIALENTRY_OPEN_INVOICE_FINISHED","FINANCIALENTRY_CLOSE_INVOICE","FINANCIALENTRY_CANCEL_INVOICE_FINISHED","FINANCIALENTRY_REFRESH","FINANCIALENTRY_OPEN_RESEND_EMAIL_INVOICE","FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE","FINANCIALENTRY_RESEND_EMAIL_INVOICE","FINANCIALENTRY_RESEND_EMAIL_INVOICE_FINISHED","FINANCIALENTRY_POST","FINANCIALENTRY_POST_FINISHED","FINANCIALENTRY_OPEN_DETAIL","FINANCIALENTRY_OPEN_DETAIL_FINISHED","FINANCIALENTRY_CLOSE_DETAIL","FINANCIALENTRY_DELETE","FINANCIALENTRY_DELETE_FINISHED","FINANCIALENTRY_EXPORT","exporting","FINANCIALENTRY_EXPORT_FINISHED","exportedItems","FINANCIALENTRY_CHANGE_TO_EXPORT","FINANCIALENTRY_CHANGE_TO_EXPORT_FINISHED","FINANCIALENTRY_EXPORT_CSV","FINANCIALENTRY_EXPORT_CSV_FINISHED","FINANCIALENTRY_OPEN_TRANSFER","FINANCIALENTRY_CLOSE_TRANSFER","FINANCIALENTRY_CREATE_TRANSFER","FINANCIALENTRY_CREATE_TRANSFER_FINISHED","FINANCIALENTRY_DELETE_TRANSFER","FINANCIALENTRY_DELETE_TRANSFER_FINISHED","FINANCIALENTRY_CASH_FLOW","cashFlowLoading","FINANCIALENTRY_CASH_FLOW_FINISHED","totalIncome","totalExpense","income","expense","cashFlows","FINANCIALENTRY_CASH_BOOK","cashBookLoading","FINANCIALENTRY_CASH_BOOK_FINISHED","cashBooks","FINANCIALENTRY_CASH_BOOK_UNLOAD","categoryReducer","CATEGORY","CATEGORY_FETCH","CATEGORY_FETCH_FINISHED","checkingAccountReducer","CHECKINGACCOUNT","CHECKINGACCOUNT_REFRESH_RESOURCE","CHECKINGACCOUNT_FETCH_BALANCES","CHECKINGACCOUNT_FETCH_BALANCES_FINISHED","balances","CHECKINGACCOUNT_FETCH_INCOME_STATEMENT","CHECKINGACCOUNT_FETCH_INCOME_STATEMENT_FINISHED","incomeStatements","campaignReducer","cloningCampaign","ledgerAccountReducer","importingFile","standardHistoryReducer","openFinancialExchangeReducer","loadingConciliationId","conciliation","financialStatisticReducer","_action$payload2","_action$payload3","totalLastMonths","loadingSummary","loadingCashFlow","cashFlow","collaboratorReducer","COLLABORATOR","COLLABORATOR_INVITATION_RESEND_FINISHED","COLLABORATOR_CHANGE_INACTIVATE_FINISHED","healthServiceProviderReducer","notFound","currentProfessional","editingCurrentProfessional","packageReducer","partnershipReducer","PARTNERSHIP","PARTNERSHIP_INVITATION_RESEND","PARTNERSHIP_LICENSE_SUMMARY_FINISHED","resourceReducer","RESOURCE_GET_TO_EDIT","RESOURCE_GET_TO_EDIT_FINISHED","RESOURCE_UPDATE","RESOURCE_UPDATE_FINISHED","RESOURCE_CREATE_FINISHED","RESOURCE_SET_PARAMS_FINISHED","RESOURCE_SET_CURRENT","currentAttr","RESOURCE_CREATE_INITIALIZE","RESOURCE_FETCH","RESOURCE_FETCH_FINISHED","RESOURCE_CANCEL_EDIT","RESOURCE_UNLOAD","RESOURCE_CURRENT_UNLOAD","resourceState","productMovementReducer","PRODUCTMOVEMENT","PRODUCTMOVEMENT_DELETE","PRODUCTMOVEMENT_DELETE_FINISHED","patientPackageReducer","PATIENT_PACKAGE","PATIENT_PACKAGE_SHOW_LIST","showPackageList","PATIENT_PACKAGE_CLOSE_LIST","PATIENT_PACKAGE_INACTIVATE_FINISHED","platformReducer","element","connectionsPlatform","syncOrdersParams","synchronizingOrders","fileImportOrdersParams","importingOrdersFile","reportReducer","REPORT","REPORT_ACCOUNT_RECEIVABLE","REPORT_ACCOUNT_RECEIVABLE_FINISHED","accountsReceivables","resourceRedurcers","appReducer","reducerMap","router","connectRouter","subscriptions","combineReducers","rootReducer","updateLocale","weekdaysMin","customizeRenderEmpty","MainFunction","expiration","isBefore","currentRefreshToken","removeEventListener","THEME_TYPE_DARK","LAYOUT_TYPE_BOXED","LAYOUT_TYPE_FRAMED","setLayoutType","NAV_STYLE_DEFAULT_HORIZONTAL","NAV_STYLE_DARK_HORIZONTAL","NAV_STYLE_INSIDE_HEADER_HORIZONTAL","NAV_STYLE_ABOVE_HEADER","NAV_STYLE_BELOW_HEADER","setNavStyle","ConfigProvider","renderEmpty","ptBR","AuthContextProvider","enableRefreshToken","onBeforeRefreshToken","authData","GoogleOAuthProvider","clientId","setConfig","memedUrl","multiTenant","host","iuguAccountId","isTestMode","labelCol","wrapperCol","validateMessages","pattern","mismatch","setAccountID","setTestMode","console","log","createBrowserHistory","store","middlewares","thunk","routerMiddleware","Boolean","composeEnhancers","compose","createStore","applyMiddleware","rootStore","ReactDOM","ConnectedRouter","Main","getElementById","getMonthlyProductivity","getAttendanceInProgress","defaultValidateMessages","Context","defaultRules","refreshResource","fetchIncomeStatement","setEnabled","uniqueCostCenter","setUniqueCostCenter","isMounted","allowUseResponse","uniqueCostCenterResponse","all","_allowUseResponse$dat","_allowUseResponse$dat2","_uniqueCostCenterResp","_uniqueCostCenterResp2","word","n","backgroundColor","_subscription$hasLice","endTrialPeriod","isExpired","isSame","period","duration","humanize","getMessage","hasFeature","identifier","getValueFeature","allowThrow","customMessage","navigator","clipboard","writeText","_features$find","featureIdentifiers","_auth$authenticating","_auth$user2","getKey","_len2","_key2","tenants","account","_len3","_key3","_auth$user$roles$some","_auth$user","_auth$user$roles","Edit","useFormContext","formField","useFormField","savePasswordFailed","handleSave","err","newPassword","passwordConfirmation","savePassword","warn","isRequired","financialEntryId","exportFetch","changeExport","getCashBook","chashBookUnload","video","audio","pdf","excel","sum","isInteger","numbers","Set","calc","factor","digits","PATIENT_PACKAGE_INACTIVATE","showList","closeList","inactivateItem","packageItemId","activateItem","onAfterUpdate","refreshAuthenticatedUser","currentUserUpdate","currentUserCancel","ROLES","getProfileByRole","getOptions","segment","useProfileId","SegmentProfileSelect","SegmentRoleSelect","hidePermissions","allRoles","inputKey","inputLabel","getMyPreferences","updateMyPreferences","cancelMyPreferences","createCompany","closeCompanyEdit","getCompany","postCompany","userOwnerId","putCompany","_props$data","close","COLLABORATOR_CHANGE_INACTIVATE","resendInvitation","inactivate","activate","fetchTree","resendEmail","getAccountsReceivables","getAccountsPayable","cityNormalizeToSelect","_c$state","abbreviations","reducerName","namesWithoutAbbreviations","CurrentUserMyPreferences","PatientFinancialEntryListInternal","closeFinancialEntry","patientIds","PatientFinancialEntryList","CompanyEditInternal","_data$isLegalPerson","certificate","isUploadCertificate","setIsUploadCertificate","setEnable","setImage","isCompany","setIsCompany","lastFederalTaxNumber","findCompany","legalName","stateTaxNumber","cityTaxNumber","setCompanyData","handleSuccessPostCertificate","submittedValues","uploadCertificate","_settings$serviceInvo","expirationAt","_settings$serviceInvo2","_settings$serviceInvo3","_settings$serviceInvo4","Password","_c$resources$users","_c$resources$companie","companies","unloadOnUnmount","ResourceComponent","registrationType","setRegistrationType","_professionalRegistra","professionalRegistration","UploadProfileImage","CurrentProfessionalEdit","_user$professionalNam","_user$profileImage","handleEditProfessional","handleMyPreferences","allowCreateCompany","handleEditingCompany","handleMySubscription","changeTenantClickHandle","handleUpdatePassword","handleBackToRootTenant","signout","CompanyEdit","getDetail","fetchEvents","updateView","showCreateAttendance","unloadEvents","openAnnotation","linkEventToTreatment","treatmentId","shareEvent","showEvents","showActivities","showSchedules","closeSchedules","createEvent","createIntegratedPrescription","syncDigitalEventPrescription","onlyNumber","eventsOpenFilter","eventsCloseFilter","getTags","createTag","removeTag","patientTagId","showFinancialEntry","years","months","formatDateToNumber","phone","formatInitials","_initials$shift","_initials$pop","rgx","RegExp","matchAll","shift","pop","records","BLOOD","WEEKDAYS","sunday","monday","tuesday","wednesday","thursday","friday","saturday","USERTENANT_INVITATION_STATUS","PAYMENTMETHOD","PAYMENT_METHOD_ABBR","PATIENTPROCEDURESUITE","fieldsDefault","outKey","outLabel","getNormalizedData","object","objects","isFunction","functionToCheck","getDayOfWeek","convertIsoWeekdayForEnum","isoWeekday","cache","unit","_unit$name","self","filterObjectByKey","String","getObject","handleSelect","onDeselect","objectSelected","handleScroll","triggerTagRender","handleMaxTagPlaceholder","remoteSelect","shouldComponentUpdate","nextProps","nextParams","getByKey","_this$state$cache$fin","addCaches","postStartAndStop","setEditValues","attendance","stopService","updateAnswers","section","createDocumentField","createPrescriptionField","saveAsModel","updateDocumentField","deleteDocumentField","createDocumentEdit","closeDocumentEdit","createPrescriptionEdit","closePrescriptionEdit","deletePrescriptionField","updatePrescriptionField","syncDigitalPrescription","attendanceId","callbackUrl","fetchAnalysis"],"mappings":"iGAAA,qrFAAO,MAAMA,EAAU,UACVC,EAAY,YACZC,EAAc,cACdC,EAAW,WACXC,EAAY,YACZC,EAAU,UACVC,EAAU,UACVC,EAAyB,wBACzBC,EAAY,YACZC,EAAa,aAEbC,EAAY,YAEZC,EAAU,UACVC,EAAW,WAC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AC,IACAC,IACAC,KACAC,IACAC,KACAC,IACAC,IACAC,IACAC,IACAC,IACAC,IACAC,KACAC,IACAC,KACAC,KACAC,KACAC,KACAC,IACAC,IACAC,IACAC,KACAC,IACAC,KACAC,IACAC,IACAC,KACAC,KACAC,IACAC,KACAC,IACAC,IACAC,IACAC,IACAC,KACAC,IACAC,KACAC,IACAC,IACAC,IACAC,IACAC,IACAC,KACAC,KACAC,IACAC,KACAC,KACAC,IACAC,KACAC,KACAC,KACAC,KACAC,KACAC,IACAC,KACAC,IACAC,IACAC,KACAC,KACAC,KACAC,KACAC,IACAC,KACAC,IACAC,KACAC,IACAC,IACAC,IACAC,IACAC,KACAC,KACAC,KACAC,KACAC,IACAC,KACAC,IACAC,IACAC,IACAC,KACAC,KACAC,IACAC,IACAC,IACAC,IACAC,M,+BCzMaC,OA9DaA,KAC1B,MAAM,KAAE7+D,GAASC,cACX+gB,EAAWO,wBACXd,EAAUC,eACV,mBAAEo+C,EAAoB,CAACnJ,gBAAeN,GAAkBxzC,uBAC3D9wB,GAAUA,EAAMixB,UAAUyzC,OAAS,CAAC,IAejCsJ,EACJptE,eAACqiD,IAAI,CAAAviD,SAAA,CACHD,cAACwiD,IAAKtlC,KAAI,CAACrc,QANW2sE,KACxBh+C,EAASi+C,YAAej/D,EAAKrF,IAAI,EAKOlJ,SAAC,eACvCD,cAACwiD,IAAKtlC,KAAI,CAACrc,QAXmB6sE,KAChCl+C,EAASw0C,YAAe,CAAEhoC,OAAQxtB,EAAKrF,KAAM,EAUGlJ,SAAC,kBAC/CD,cAACwiD,IAAKtlC,KAAI,CAACrc,QAhBY8sE,KACzB1+C,EAAQtmB,KAAK,WAAW,EAeiB1I,SAAC,YAItC2tE,EAAWp/D,EAAOA,EAAKq/D,aAAer/D,EAAK1P,KAAO,KAExD,OAAK0P,EAKHrO,eAAA6I,WAAA,CAAA/I,SAAA,CACED,cAACsiD,IAAQ,CAACC,QAASgrB,EAAiBzxD,QAAS,CAAC,SAAS7b,SACr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,WACAzwB,SAAU,cACV0wB,WAAY0oD,EACZruC,QAAS3gC,EACTumB,OAAQL,SAAYltB,MAAIkrC,IAAI,cAAc,GAADjqC,OAAK+F,EAAE,wBAChDzG,aACA,EAGSw4F,EAA0BA,CAACh8F,EAAQwD,IAAc2sB,gBAGtDC,aAAWC,sBAAsB,CACrCC,WACAzwB,SAAU,cACV0wB,WAAYkpD,EACZ7uC,QAAS5qC,EACTwwB,OAAQL,SAAYltB,MAAI4nC,IAAI,iCAAkC7qC,GAC9DwD,aACA,EAGSy4F,EAA0BA,CACrCC,EACAvhE,EACAn3B,IACG2sB,gBACGC,aAAWC,sBAAsB,CACrCC,WACAzwB,SAAU,cACV0wB,WAvLF,sCAwLEC,OAAQL,SACNltB,MAAIC,KAAK,sDAADgB,OACgDg4F,EAAY,UAAAh4F,OAASy2B,IAE/En3B,aACA,EAGSqzF,EAA+BA,CAC1CqF,EACAC,EACA34F,IACG2sB,gBACGC,aAAWC,sBAAsB,CACrCC,WACAzwB,SAAU,cACV0wB,WAAYopD,EACZnpD,OAAQL,SACNltB,MAAImT,IACF,cAAc,qCAADlS,OACwBg4F,EAAY,iBAAAh4F,OAAgBi4F,IAErE34F,aACA,EAGS44F,EAAgBA,CAACp8F,EAAQwD,IAAc2sB,gBAC5CC,aAAWC,sBAAsB,CACrCC,WACAzwB,SAAU,cACV0wB,WAAYupD,EACZtpD,OAAQL,SAAYltB,MAAI6M,MAAM,uBAAwB9P,GACtDwD,aACA,C","file":"static/js/main.53c35d21.chunk.js","sourcesContent":["export const CREATED = 'created';\r\nexport const ACTIVATED = 'activated';\r\nexport const INACTIVATED = 'inactivated';\r\nexport const CANCELED = 'canceled';\r\nexport const SUSPENDED = 'suspended';\r\nexport const EXPIRED = 'expired';\r\nexport const INTRIAL = 'inTrial';\r\nexport const CANCELLATION_REQUESTED = 'cancellationRequested';\r\nexport const CONCLUDED = 'concluded';\r\nexport const INPROGRESS = 'inProgress';\r\n\r\nexport const AVAILABLE = 'available';\r\n\r\nexport const PENDING = 'pending';\r\nexport const ACCEPTED = 'accepted';\r\nexport const RECONCILED = 'reconciled';\r\nexport const IGNORED = 'ignored';\r\n\r\nexport const MEMED = 'memed';\r\nexport const RECEITADIGITAL = 'receitaDigital';\r\n\r\nexport const RECEIPT = 'receipt';\r\nexport const PAYMENT = 'payment';\r\n\r\nexport const SUMMARY = 'summary';\r\nexport const BALANCE = 'balance';\r\nexport const BEFOREBALANCE = 'beforeBalance';\r\nexport const ENDBALANCE = 'endBalance';\r\nexport const INITIALBALANCE = 'initialBalance';\r\n\r\nexport const BILLETBANK = 'billetBank';\r\nexport const CREDITCARD = 'creditCard';\r\nexport const DEBITCARD = 'debitCard';\r\nexport const DIRECTDEBIT = 'directDebit';\r\nexport const BANKDEPOSIT = 'bankDeposit';\r\nexport const PAYPAL = 'paypal';\r\nexport const BANKTRANSFER = 'bankTransfer';\r\nexport const CASH = 'cash';\r\nexport const BANKCHECK = 'bankCheck';\r\nexport const BALANCEWALLETS = 'balanceWallets';\r\nexport const PIX = 'pix';\r\nexport const ELECTRONICTRANSFER = 'electronicTransfer';\r\nexport const OTHER = 'other';\r\n\r\nexport const INCOMING = 'incoming';\r\nexport const OUTGOING = 'outgoing';\r\n\r\nexport const APOSITIVE = 'aPositive';\r\nexport const ANEGATIVE = 'aNegative';\r\nexport const BPOSITIVE = 'bPositive';\r\nexport const BNEGATIVE = 'bNegative';\r\nexport const ABPOSITIVE = 'abPositive';\r\nexport const ABNEGATIVE = 'abNegative';\r\nexport const OPOSITIVE = 'oPositive';\r\nexport const ONEGATIVE = 'oNegative';\r\n\r\nexport const APPROXIMATETAXES_DISABLED = 'disabled';\r\nexport const APPROXIMATETAXES_COMPLETE = 'complete';\r\nexport const APPROXIMATETAXES_SIMPLIFIED = 'simplified';\r\n\r\nexport const YEAR = 'year';\r\nexport const MONTH = 'month';\r\nexport const DAY = 'day';\r\nexport const COSTCENTER = 'costCenter';\r\n\r\nexport const NATIONAL = 'national';\r\nexport const STATE = 'state';\r\nexport const MUNICIPAL = 'municipal';\r\n\r\nexport const ACCOUNT_TYPE_STUDENT = 'student';\r\n\r\nexport const ROLE_ADMIN = 'Admin';\r\nexport const ROLE_PROFESSIONAL = 'Professional';\r\nexport const ROLE_RECEPTIONIST = 'Receptionist';\r\nexport const ROLE_USER = 'User';\r\nexport const ROLE_STUDENT = 'Student';\r\nexport const ROLE_OTHER_HEALTH_PROFESSIONAL = 'Other health professional';\r\nexport const ROLE_CLINIC_ADMINISTRATOR = 'Clinic administrator';\r\nexport const ROLE_FINANCIAL = 'Financial';\r\nexport const ROLE_ACCOUNTANT = 'Accountant';\r\nexport const ROLE_PARTNERSHIP = 'Partnership';\r\nexport const ROLE_FINANCIAL_ADMINISTRATOR = 'Financial administrator';\r\nexport const ROLE_STOCK = 'Stock';\r\n\r\nexport const PROFILE_DOCTOR = 'doctor';\r\nexport const PROFILE_ADMINISTRADOR = 'administrador';\r\nexport const PROFILE_OTHER = 'other';\r\nexport const PROFILE_RECEPTIONIST = 'receptionist';\r\nexport const PROFILE_ACCOUNTANT = 'accountant';\r\nexport const PROFILE_FINANCIAL = 'financial';\r\nexport const PROFILE_STUDENT = 'student';\r\nexport const PROFILE_USER = 'user';\r\nexport const PROFILE_PARTNERSHIP = 'partnership';\r\nexport const PROFILE_FINANCIAL_ADMINISTRATOR = 'financialAdministrator';\r\n\r\nexport const ACCOUNTANTS = 'accountants';\r\n","import { NAV_STYLE } from 'constants/themeSettings';\r\n\r\nexport const TOGGLE_COLLAPSED_NAV = 'SETTINGS_TOGGLE_COLLAPSE_MENU';\r\nexport const WINDOW_WIDTH = 'SETTINGS_WINDOW-WIDTH';\r\nexport const SWITCH_LANGUAGE = 'SETTINGS_SWITCH-LANGUAGE';\r\nexport const CHAT_LOADED = 'CHAT_LOADED';\r\n\r\nexport const updateWindowWidth = (width) => {\r\n return { type: WINDOW_WIDTH, width };\r\n};\r\n\r\nexport function toggleCollapsedSideNav(navCollapsed) {\r\n return { type: TOGGLE_COLLAPSED_NAV, navCollapsed };\r\n}\r\n\r\nexport function onNavStyleChange(navStyle) {\r\n return { type: NAV_STYLE, navStyle };\r\n}\r\n\r\nexport function chatLoad() {\r\n return { type: CHAT_LOADED };\r\n}\r\n","import React, { useState } from 'react';\r\nimport { Input, Row, Col } from 'antd';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { normalizeToSelect } from 'util/converters';\r\nimport {\r\n FormItem,\r\n api,\r\n RemoteSelect,\r\n useFormContext\r\n} from '@unicus/react-ui-kit';\r\n\r\nconst formItemLayout = {\r\n labelCol: {\r\n xs: { span: 24 },\r\n sm: { span: 9 }\r\n },\r\n wrapperCol: {\r\n xs: { span: 24 },\r\n sm: { span: 15 }\r\n },\r\n labelAlign: 'left',\r\n colon: false\r\n};\r\n\r\nconst Address = ({ address }) => {\r\n const [state, setState] = useState({\r\n lastPostalCode: null,\r\n loadingAddress: false\r\n });\r\n\r\n const { form } = useFormContext();\r\n\r\n const setAddress = (newAddress) => {\r\n form.setFieldsValue({\r\n address: {\r\n ...newAddress,\r\n city: normalizeToSelect(newAddress.city)\r\n }\r\n });\r\n };\r\n\r\n const findAddress = (postalCode) => {\r\n postalCode = postalCode.replace(/[^0-9.]/g, '');\r\n\r\n if (state.lastPostalCode === postalCode) {\r\n return;\r\n }\r\n\r\n setState({ ...state, lastPostalCode: postalCode, loadingAddress: true });\r\n\r\n api.fetch('localizations', { postalCode }).then(({ data }) => {\r\n setState({ ...state, loadingAddress: false });\r\n setAddress(\r\n data\r\n ? data.result\r\n : {\r\n street: null,\r\n number: null,\r\n district: null,\r\n additionalInformation: null,\r\n city: undefined\r\n }\r\n );\r\n });\r\n };\r\n\r\n const handlePostalCodeChange = (sender) => {\r\n const postalCode = sender.target.value.replace(/[^0-9.]/g, '');\r\n if (postalCode.length === 8) {\r\n findAddress(postalCode);\r\n }\r\n };\r\n\r\n const {\r\n postalCode,\r\n number,\r\n district,\r\n additionalInformation,\r\n city,\r\n street\r\n } = address;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Address;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Upload, Spin, message, Button } from 'antd';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { api, LinkButton } from '@unicus/react-ui-kit';\r\nimport join from 'util/functions/join';\r\nimport { CloseCircleOutlined, LoadingOutlined } from '@ant-design/icons';\r\n\r\nconst UploadArchive = ({\r\n onChange,\r\n name,\r\n resource,\r\n extension = ['png', 'jpg'],\r\n type = 'image',\r\n displayDocument = '',\r\n params,\r\n onRemove,\r\n initialValue,\r\n disabled,\r\n placeholder\r\n}) => {\r\n const [state, setState] = useState({\r\n loading: false,\r\n uri: initialValue\r\n });\r\n\r\n useEffect(() => {\r\n setState({ ...state, uri: initialValue });\r\n }, [initialValue]);\r\n\r\n const extractingExtension = (fileName) => {\r\n const text = fileName.match(/\\.[0-9a-z]+$/i)[0];\r\n return text != null ? text : '';\r\n };\r\n\r\n const beforeUpload = (file) => {\r\n let isCorrectFormat = false;\r\n\r\n if (\r\n type === 'image' &&\r\n extension.includes(file.type.replace('image/', '').toLowerCase())\r\n ) {\r\n isCorrectFormat = true;\r\n } else if (\r\n extension.includes(extractingExtension(file.name).replace('.', ''))\r\n ) {\r\n isCorrectFormat = true;\r\n }\r\n\r\n if (!isCorrectFormat) {\r\n message.error(\r\n `É permitido somente arquivos com a extensão ${join(\r\n extension.map((c) => c.toUpperCase()),\r\n ', ',\r\n ' e '\r\n )}.`\r\n );\r\n }\r\n\r\n const isLt2M = file.size / 1024 / 1024 < 2;\r\n\r\n if (!isLt2M) {\r\n message.error('O tamanho do arquivo não pode ser superior a 2MB');\r\n }\r\n\r\n return isCorrectFormat && isLt2M;\r\n };\r\n\r\n const setArchive = (uri, response) => {\r\n setState({\r\n uri,\r\n loading: false\r\n });\r\n\r\n if (onChange) {\r\n onChange(response);\r\n }\r\n };\r\n\r\n const handleUploadChange = (info) => {\r\n if (info.file.status === 'uploading') {\r\n setState({ loading: true });\r\n return;\r\n }\r\n\r\n if (info.file.status === 'done') {\r\n let archive = '';\r\n\r\n if (type === 'image') {\r\n archive = info.file.response.result.uri;\r\n } else {\r\n archive = info.file.response.result;\r\n }\r\n\r\n setArchive(archive, info.file.response.result);\r\n }\r\n };\r\n\r\n const handleRemoveClick = () => {\r\n setArchive(null, null);\r\n\r\n if (onRemove) {\r\n onRemove();\r\n }\r\n };\r\n\r\n const handleOnRequest = (options) => {\r\n const data = new FormData();\r\n\r\n if (params) {\r\n Object.keys(params).forEach((key) => {\r\n data.set(key, params[key]);\r\n });\r\n }\r\n\r\n data.append(name, options.file);\r\n api.post(resource, data).then((res) => {\r\n if (!(res && res.errors)) {\r\n options.onSuccess(res.data, options.file);\r\n } else {\r\n message.error(\r\n 'Ocorreu um erro inesperado ao processar sua solicitação'\r\n );\r\n setState({ ...state, loading: false });\r\n }\r\n });\r\n };\r\n\r\n const uploadButton = (\r\n
\r\n {state.loading ? (\r\n \r\n ) : (\r\n
\r\n {placeholder ? {placeholder} : null}\r\n \r\n
\r\n )}\r\n
\r\n );\r\n\r\n const getContent = () => {\r\n const { uri } = state;\r\n\r\n if (!uri) {\r\n return uploadButton;\r\n }\r\n\r\n if (type === 'image') {\r\n return (\r\n \r\n );\r\n }\r\n\r\n if (type === 'document') {\r\n return (\r\n
\r\n {displayDocument || uri}\r\n
\r\n );\r\n }\r\n\r\n return null;\r\n };\r\n\r\n const { uri } = state;\r\n\r\n return (\r\n \r\n {uri && !disabled && (\r\n \r\n \r\n \r\n )}\r\n \r\n {getContent()}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default UploadArchive;\r\n","import React, { useState } from 'react';\r\nimport { UploadOutlined } from '@ant-design/icons';\r\nimport { message, Upload, Button } from 'antd';\r\nimport join from 'util/functions/join';\r\nimport truncate from 'util/functions/truncate';\r\n\r\nconst UploadArchiveManual = ({\r\n placeholder,\r\n extensions = [],\r\n onRequest,\r\n name,\r\n width\r\n}) => {\r\n const [uploading, setUploading] = useState(false);\r\n const [fileName, setFileName] = useState(null);\r\n const [extension, setExtension] = useState(null);\r\n const extractingExtension = (file) => {\r\n const text = file.match(/\\.[0-9a-z]+$/i)[0];\r\n return text != null ? text : '';\r\n };\r\n\r\n const handleBeforeUpload = (file) => {\r\n let isCorrectFormat = false;\r\n\r\n const extractedExtension = extractingExtension(file.name).replace('.', '');\r\n if (extensions.includes(extractedExtension.toLowerCase())) {\r\n isCorrectFormat = true;\r\n }\r\n\r\n if (!isCorrectFormat) {\r\n const names = join(extensions, ', ', ' e ');\r\n message.error(`É somente permitido arquivos com a extensão ${names}.`);\r\n }\r\n\r\n const isLt2M = file.size / 1024 / 1024 < 2;\r\n\r\n if (!isLt2M) {\r\n message.error('O tamanho do arquivo não pode ser superior a 2MB');\r\n }\r\n\r\n setFileName(file.name);\r\n setExtension(extractedExtension);\r\n setUploading(isCorrectFormat && isLt2M);\r\n return isCorrectFormat && isLt2M;\r\n };\r\n\r\n const handleCustomRequest = (options) => {\r\n if (onRequest) {\r\n onRequest(options);\r\n }\r\n };\r\n\r\n const uploadProps = {\r\n name,\r\n beforeUpload: handleBeforeUpload,\r\n showUploadList: false,\r\n customRequest: handleCustomRequest\r\n };\r\n\r\n return uploading ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default UploadArchiveManual;\r\n","import React from 'react';\r\nimport { Form } from '@ant-design/compatible';\r\nimport '@ant-design/compatible/assets/index.css';\r\nimport { FormContextConsumer } from '@unicus/react-ui-kit';\r\n\r\nclass FormItem extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.ref = null;\r\n }\r\n\r\n componentDidMount() {\r\n if (this.ref) {\r\n setTimeout(() => this.ref.focus(), 100);\r\n }\r\n }\r\n\r\n render() {\r\n const {\r\n isRequired = false,\r\n initialValue,\r\n label,\r\n name,\r\n visible,\r\n type,\r\n children,\r\n autoFocus,\r\n valuePropName = 'value',\r\n useDisplayLabel = true,\r\n ...rest\r\n } = this.props;\r\n\r\n const { rules = [] } = this.props;\r\n\r\n const displayLabel = label || name;\r\n\r\n rules.push({\r\n required: isRequired,\r\n message: `${displayLabel} é obrigatório`\r\n });\r\n\r\n if (type === 'email') {\r\n rules.push({ type: 'email', message: 'E-mail inválido' });\r\n }\r\n\r\n const parent = this;\r\n const input = React.cloneElement(\r\n children,\r\n autoFocus\r\n ? {\r\n ref: (node) => {\r\n parent.ref = node;\r\n }\r\n }\r\n : {}\r\n );\r\n\r\n return visible === false ? null : (\r\n \r\n {(context) => (\r\n \r\n {context.form.getFieldDecorator(name, {\r\n initialValue,\r\n valuePropName,\r\n rules\r\n })(input)}\r\n \r\n )}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default FormItem;\r\n","import React, { useState } from 'react';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { Button, Form } from 'antd';\r\nimport { PlusOutlined } from '@ant-design/icons';\r\n\r\nconst ListHeader = ({\r\n onSearch,\r\n setQueryParams,\r\n queryParams,\r\n menu,\r\n title,\r\n create,\r\n renderButton,\r\n children,\r\n searchForm,\r\n onBeforeFilter,\r\n buttonTitle = 'Novo',\r\n showChildren = true,\r\n initialValues = {},\r\n ...rest\r\n}) => {\r\n const [delayedSearch, setDelayedSearch] = useState(null);\r\n\r\n const handleSearchChange = (e) => {\r\n if (delayedSearch) {\r\n clearTimeout(delayedSearch);\r\n }\r\n\r\n const input = e.target;\r\n\r\n if (onSearch && e.target) {\r\n setDelayedSearch(setTimeout(() => onSearch(input.value), 600));\r\n return;\r\n }\r\n\r\n setDelayedSearch(\r\n setTimeout(\r\n () =>\r\n setQueryParams({\r\n ...queryParams,\r\n page: 1,\r\n filterText: input.value\r\n }),\r\n 600\r\n )\r\n );\r\n };\r\n\r\n const openToCreate = (record = {}) => {\r\n create(record);\r\n };\r\n\r\n const handleOnSubmit = () => {\r\n searchForm.validateFields().then((values) => {\r\n if (onSearch) {\r\n setDelayedSearch(setTimeout(() => onSearch(values), 600));\r\n return;\r\n }\r\n\r\n const newValues = onBeforeFilter ? onBeforeFilter(values) : values;\r\n\r\n setDelayedSearch(\r\n setTimeout(\r\n () =>\r\n setQueryParams({\r\n ...queryParams,\r\n page: 1,\r\n ...newValues\r\n }),\r\n 600\r\n )\r\n );\r\n });\r\n };\r\n\r\n return (\r\n
\r\n
\r\n {title || menu ? (\r\n
\r\n {menu && menu.icon && (\r\n \r\n \r\n \r\n )}\r\n\r\n {title}\r\n
\r\n ) : null}\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {renderButton ? (\r\n renderButton()\r\n ) : (\r\n
\r\n openToCreate(initialValues)}\r\n >\r\n \r\n {buttonTitle}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n {showChildren && children ? (\r\n
\r\n {children}\r\n
\r\n ) : null}\r\n
\r\n );\r\n};\r\n\r\nexport default ListHeader;\r\n","import React from 'react';\r\nimport { Table, Button, Popconfirm } from 'antd';\r\nimport { configManager } from '@unicus/react-ui-kit';\r\n\r\nconst ListTable = (props) => {\r\n const {\r\n dataSource,\r\n loading,\r\n children,\r\n initEditing,\r\n initCreation,\r\n rowSelection,\r\n rowClassName,\r\n className,\r\n handleTableChange,\r\n columns,\r\n components,\r\n moveRow,\r\n onDoubleClick,\r\n removeRecord,\r\n showHeader,\r\n showActions = true,\r\n actionsComponent: ActionsComponent,\r\n header = null,\r\n filter,\r\n showPagination = true,\r\n doubleClick = true,\r\n expandable\r\n } = props;\r\n\r\n let { pagination } = props;\r\n\r\n if (!showPagination || pagination?.pageCount === 1) {\r\n pagination = false;\r\n }\r\n\r\n const handleDoubleClick = (record) => {\r\n if (!doubleClick) {\r\n return;\r\n }\r\n\r\n if (onDoubleClick) {\r\n onDoubleClick(record);\r\n } else if (initEditing) {\r\n initEditing(record);\r\n }\r\n };\r\n\r\n if (\r\n Array.isArray(columns) &&\r\n showActions &&\r\n !columns.some((c) => c.key === 'action')\r\n ) {\r\n columns.push({\r\n key: 'action',\r\n align: 'right',\r\n render: (_, record) =>\r\n ActionsComponent ? (\r\n \r\n ) : (\r\n <>\r\n \r\n removeRecord(record.id)}\r\n cancelText=\"Não\"\r\n okText=\"Sim\"\r\n >\r\n \r\n \r\n \r\n )\r\n });\r\n }\r\n\r\n const wrapperFilter = (array) => {\r\n if (filter) {\r\n return array.filter(filter);\r\n }\r\n\r\n return array;\r\n };\r\n\r\n return (\r\n <>\r\n {header}\r\n record.id ?? record.uuid}\r\n rowSelection={rowSelection}\r\n pagination={pagination}\r\n onChange={handleTableChange}\r\n dataSource={wrapperFilter(dataSource)}\r\n rowClassName={rowClassName}\r\n showHeader={showHeader}\r\n columns={columns}\r\n expandable={expandable}\r\n locale={{ emptyText: 'Nenhum registro para exibir' }}\r\n components={components}\r\n onRow={(record, index) => {\r\n return {\r\n onDoubleClick: () => handleDoubleClick(record),\r\n index,\r\n moveRow\r\n };\r\n }}\r\n >\r\n {typeof children === 'function'\r\n ? children({ initEditing, removeRecord, initCreation })\r\n : children}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default ListTable;\r\n","import React from 'react';\r\nimport { Card } from 'antd';\r\n\r\nconst WidgetCard = ({ title, children, styleName, cover, extra, actions }) => {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport default WidgetCard;\r\n","import React from 'react';\r\nimport IcomoonReact from 'icomoon-react';\r\nimport iconSet from './selection.json';\r\n\r\nconst Icon = ({ className, color, size, name }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default Icon;\r\n","export default __webpack_public_path__ + \"static/media/location.0c0840fc.svg\";","import React, { useState } from 'react';\r\nimport { Input, Row, Col, Tooltip, Form } from 'antd';\r\nimport { AimOutlined } from '@ant-design/icons';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { normalizeToSelect } from 'util/converters';\r\nimport { api, RemoteSelect } from '@unicus/react-ui-kit';\r\nimport FormManager from './FormManager';\r\nimport Maps from './Maps';\r\n\r\nconst { FormItem } = FormManager;\r\n\r\nconst formItemLayout = {\r\n labelCol: {\r\n xs: { span: 24 },\r\n sm: { span: 9 }\r\n },\r\n wrapperCol: {\r\n xs: { span: 24 },\r\n sm: { span: 15 }\r\n },\r\n labelAlign: 'left',\r\n colon: false\r\n};\r\n\r\nconst Address = () => {\r\n const form = FormManager.useForm();\r\n\r\n const [state, setState] = useState({\r\n lastPostalCode: null,\r\n loadingAddress: false,\r\n map: {\r\n visible: false,\r\n text: ''\r\n }\r\n });\r\n\r\n const setAddress = (newAddress) => {\r\n form.setFieldsValue({\r\n address: {\r\n ...newAddress,\r\n city: normalizeToSelect(newAddress.city)\r\n }\r\n });\r\n };\r\n\r\n const findAddress = (postalCode) => {\r\n postalCode = postalCode.replace(/[^0-9.]/g, '');\r\n\r\n if (state.lastPostalCode === postalCode) {\r\n return;\r\n }\r\n\r\n setState({ ...state, lastPostalCode: postalCode, loadingAddress: true });\r\n\r\n api.fetch('localizations', { postalCode }).then(({ data }) => {\r\n setState({ ...state, loadingAddress: false });\r\n setAddress(\r\n data\r\n ? data.result\r\n : {\r\n street: null,\r\n number: null,\r\n district: null,\r\n additionalInformation: null,\r\n city: undefined\r\n }\r\n );\r\n });\r\n };\r\n\r\n const handlePostalCodeChange = (sender) => {\r\n const postalCode = sender.target.value.replace(/[^0-9.]/g, '');\r\n if (postalCode.length === 8) {\r\n findAddress(postalCode);\r\n }\r\n };\r\n\r\n const handleSelectMap = () => {\r\n let value = '';\r\n const { address } = form.getFieldsValue();\r\n const { street, district, city, longitude, latitude } = address;\r\n\r\n if (city && city?.label) {\r\n value = city?.label.toLowerCase().replaceAll(' ', '_');\r\n }\r\n\r\n if (street) {\r\n value += `_${street.toLowerCase().replaceAll(' ', '_')}`;\r\n }\r\n\r\n if (district) {\r\n value += `_${district.toLowerCase().replaceAll(' ', '_')}`;\r\n }\r\n\r\n setState({\r\n ...state,\r\n map: { ...state.map, visible: true, text: value, longitude, latitude }\r\n });\r\n };\r\n\r\n const handleSetPosition = ({ longitude, latitude }) => {\r\n const { address } = form.getFieldsValue();\r\n\r\n form.setFieldsValue({\r\n address: {\r\n ...address,\r\n longitude,\r\n latitude\r\n }\r\n });\r\n };\r\n\r\n const handleChangeMaps = (value) => {\r\n handleSetPosition(value);\r\n\r\n setState({\r\n ...state,\r\n map: { ...state.map, visible: false }\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {state.map.visible ? (\r\n \r\n setState({ ...state, map: { ...state.map, visible: false } })\r\n }\r\n />\r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nexport default Address;\r\n","/* eslint-disable no-template-curly-in-string */\r\nimport React from 'react';\r\nimport { RemoteSelect } from '@unicus/react-ui-kit';\r\nimport { Form, Row, Col, Button } from 'antd';\r\nimport FormManager from 'components/FormManager';\r\n\r\nconst defaultValidateMessages = {\r\n required: '${label} é obrigatório'\r\n};\r\n\r\nconst funcDefault = (c) => c;\r\n\r\nconst RemoteInsert = ({\r\n name,\r\n resource,\r\n label,\r\n onValidate,\r\n onChange = funcDefault\r\n}) => {\r\n const [form] = Form.useForm();\r\n const formEditing = FormManager.useForm();\r\n\r\n const handleAdd = (value) => {\r\n const values = formEditing.getFieldValue(name) || [];\r\n\r\n if (onValidate) {\r\n const error = onValidate({ items: values, item: value });\r\n\r\n if (error) {\r\n form.setFields([{ name, errors: [error] }]);\r\n return;\r\n }\r\n }\r\n\r\n formEditing.setFieldsValue({\r\n [name]: [...values, value]\r\n });\r\n\r\n form.resetFields();\r\n };\r\n\r\n const handleClick = () => {\r\n form.validateFields().then((values) => {\r\n handleAdd(onChange(values[name]));\r\n });\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default RemoteInsert;\r\n","import React from 'react';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { Empty } from 'antd';\r\n\r\nconst messages = {\r\n date: 'Data',\r\n time: 'Tempo',\r\n event: 'Evento',\r\n allDay: 'Dia todo',\r\n week: 'Semana',\r\n work_week: 'Semana de trabalho',\r\n day: 'Dia',\r\n month: 'Mês',\r\n previous: 'Voltar',\r\n next: 'Próximo',\r\n yesterday: 'Ontem',\r\n tomorrow: 'Amanhã',\r\n today: 'Hoje',\r\n agenda: 'Agenda',\r\n noEventsInRange: (\r\n
\r\n \r\n
\r\n ),\r\n showMore: (count) => `Exibir todos - total ${count + 1}`\r\n};\r\n\r\nexport default messages;\r\n","import React, { useState, useEffect } from 'react';\r\nimport { Calendar, momentLocalizer } from 'react-big-calendar';\r\nimport 'react-big-calendar/lib/css/react-big-calendar.css';\r\nimport moment from 'moment';\r\nimport 'moment/locale/pt-br';\r\nimport messages from './messages';\r\n\r\nmoment.locale('pt-br');\r\nconst localizer = momentLocalizer(moment);\r\n\r\nconst VIEWS = {\r\n MONTH: 'month',\r\n WEEK: 'week',\r\n DAY: 'day',\r\n AGENDA: 'agenda'\r\n};\r\n\r\nconst Schedule = (props) => {\r\n const {\r\n events = [],\r\n onChange,\r\n onSelectSlot,\r\n eventPropGetter,\r\n onSelectEvent = () => {},\r\n defaultView,\r\n step,\r\n min,\r\n max\r\n } = props;\r\n let { components } = props;\r\n const [view, setView] = useState(defaultView);\r\n\r\n const handleRangeChange = (dates, nextView) => {\r\n const currentView = nextView ?? view;\r\n\r\n if (!onChange) {\r\n return;\r\n }\r\n\r\n if (nextView) {\r\n setView(nextView);\r\n }\r\n\r\n if (currentView === VIEWS.WEEK) {\r\n onChange(dates[0], dates[6]);\r\n return;\r\n }\r\n\r\n if (currentView === VIEWS.DAY) {\r\n onChange(dates[0], dates[0]);\r\n return;\r\n }\r\n\r\n if (currentView === VIEWS.MONTH) {\r\n onChange(\r\n moment(dates.start).startOf('day'),\r\n moment(dates.end).startOf('day')\r\n );\r\n return;\r\n }\r\n\r\n onChange(dates.start, dates.end);\r\n };\r\n\r\n const handleSelectSlot = ({ start, end, ...rest }) => {\r\n if (!onSelectSlot) {\r\n return;\r\n }\r\n\r\n if (view === VIEWS.MONTH) {\r\n start = moment(start).startOf('day');\r\n end = moment(end).endOf('day');\r\n\r\n onSelectSlot({ ...rest, start, end });\r\n return;\r\n }\r\n\r\n onSelectSlot({ ...rest, start, end });\r\n };\r\n\r\n if (components && !components.header) {\r\n components = {\r\n ...components,\r\n header: ({ date }) => {\r\n if (view === 'month') {\r\n return moment(date).format('dddd');\r\n }\r\n\r\n if (view === 'week') {\r\n return (\r\n
\r\n
{moment(date).format('dddd')}
\r\n
\r\n {moment(date).format('DD/MM')}\r\n
\r\n
\r\n );\r\n }\r\n\r\n return null;\r\n }\r\n };\r\n }\r\n\r\n return (\r\n
\r\n null}\r\n onSelectEvent={onSelectEvent}\r\n startAccessor=\"start\"\r\n eventPropGetter={eventPropGetter}\r\n endAccessor=\"end\"\r\n onRangeChange={handleRangeChange}\r\n defaultView={defaultView}\r\n selectable={view === 'week' || view === 'day'}\r\n onSelectSlot={handleSelectSlot}\r\n />\r\n
\r\n );\r\n};\r\n\r\nexport default Schedule;\r\n","/* eslint-disable spaced-comment */\r\nimport React, { useEffect, useState } from 'react';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport moment from 'moment';\r\nimport { Button, DatePicker, Row, Tooltip } from 'antd';\r\nimport { ReloadOutlined } from '@ant-design/icons';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { formartOnlyNumber } from 'util/formatters';\r\nimport useScreenSize from 'core/hooks/useScreenSize';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport ResCol from './ResCol';\r\nimport 'moment/locale/pt-br';\r\n\r\nconst SelectScheduled = ({\r\n value,\r\n onChange,\r\n disabled,\r\n serviceProviderId,\r\n tenantId\r\n}) => {\r\n const { user } = useAuth();\r\n const [open, setOpen] = useState(false);\r\n const { isMobile } = useScreenSize();\r\n const { settings } = user;\r\n\r\n const setPeriod = (startTime, endTime) => {\r\n if (onChange) {\r\n onChange({\r\n startTime: moment(startTime),\r\n endTime: moment(endTime)\r\n });\r\n }\r\n };\r\n\r\n const handleChange = (newStartDate) => {\r\n if (value?.startTime) {\r\n const temp = moment(value?.startTime);\r\n\r\n newStartDate = newStartDate\r\n .hours(temp.hours())\r\n .minutes(temp.minutes())\r\n .seconds(temp.seconds());\r\n }\r\n\r\n let endDate = newStartDate.clone();\r\n\r\n if (value?.endTime) {\r\n const temp = moment(value?.endTime);\r\n\r\n endDate = endDate\r\n .hours(temp.hours())\r\n .minutes(temp.minutes())\r\n .seconds(temp.seconds());\r\n } else {\r\n endDate.add(settings?.durationOfService, 'minute');\r\n }\r\n\r\n setPeriod(newStartDate, endDate);\r\n };\r\n\r\n const handleChangeStartTime = (startTime) => {\r\n if (formartOnlyNumber(startTime).length > 3) {\r\n const startDate = moment(value?.startTime);\r\n startDate.set('hour', 0);\r\n startDate.set('minute', 0);\r\n startDate.add(moment(startTime, 'HH:mm').hour(), 'hour');\r\n startDate.add(moment(startTime, 'HH:mm').minute(), 'minute');\r\n const endDate = startDate.clone();\r\n endDate.add(settings?.durationOfService, 'minute');\r\n\r\n if (onChange) {\r\n onChange({\r\n startTime: startDate,\r\n endTime: endDate\r\n });\r\n }\r\n }\r\n };\r\n\r\n const handleChangeEndTime = (endTime) => {\r\n if (formartOnlyNumber(endTime).length > 3) {\r\n const endDate = moment(value?.endTime);\r\n endDate.set('hour', 0);\r\n endDate.set('minute', 0);\r\n endDate.add(moment(endTime, 'HH:mm').hour(), 'hour');\r\n endDate.add(moment(endTime, 'HH:mm').minute(), 'minute');\r\n\r\n if (onChange) {\r\n onChange({\r\n startTime: value?.startTime,\r\n endTime: endDate\r\n });\r\n }\r\n }\r\n };\r\n\r\n const fetchNextPeriod = (date) => {\r\n if (serviceProviderId) {\r\n api\r\n .fetch('health-service-providers/next-period', {\r\n serviceProviderId,\r\n tenantId,\r\n startDate: moment(date).format('MM-DD-YYYY HH:mm'),\r\n endDate: moment(date)\r\n .add(15, 'day')\r\n .format('MM-DD-YYYY HH:mm'),\r\n firstAvailable: true\r\n })\r\n .then((response) => {\r\n if (!response?.errors) {\r\n const { data } = response;\r\n const { startTime, endTime, ...rest } = data.result;\r\n if (onChange) {\r\n onChange({\r\n ...rest,\r\n startTime: moment(startTime),\r\n endTime: moment(endTime)\r\n });\r\n }\r\n }\r\n });\r\n }\r\n };\r\n\r\n const handleChangeNextTime = () => {\r\n if (!disabled) {\r\n fetchNextPeriod(value?.endTime ?? moment());\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (value === null) {\r\n fetchNextPeriod(moment());\r\n }\r\n\r\n if (\r\n value?.serviceProvider &&\r\n value.serviceProvider?.id !== serviceProviderId\r\n ) {\r\n fetchNextPeriod(moment());\r\n }\r\n }, [value, serviceProviderId]);\r\n\r\n return (\r\n \r\n \r\n setOpen(true)}\r\n onSelect={() => setOpen(false)}\r\n onBlur={() => setOpen(false)}\r\n />\r\n \r\n \r\n
\r\n handleChangeStartTime(e.target.value)}\r\n />\r\n às\r\n\r\n handleChangeEndTime(e.target.value)}\r\n />\r\n\r\n \r\n \r\n \r\n }\r\n onClick={handleChangeNextTime}\r\n >\r\n {!isMobile ? 'Próximo horário' : null}\r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default SelectScheduled;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\n\r\nconst SelectGender = ({ showUninformed = true, ...rest }) => {\r\n return (\r\n \r\n option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0\r\n }\r\n >\r\n {showUninformed ? (\r\n \r\n Não informado\r\n \r\n ) : null}\r\n \r\n Masculino\r\n \r\n \r\n Feminino\r\n \r\n \r\n );\r\n};\r\n\r\nexport default SelectGender;\r\n","import React, { useState, useCallback, useRef } from 'react';\r\nimport { DndProvider, useDrag, useDrop } from 'react-dnd';\r\nimport { HTML5Backend } from 'react-dnd-html5-backend';\r\nimport update from 'immutability-helper';\r\n\r\nconst type = 'DragableBodyRow';\r\n\r\nconst DragableBodyRow = ({\r\n index,\r\n moveRow,\r\n className,\r\n style,\r\n ...restProps\r\n}) => {\r\n const ref = useRef();\r\n const [{ isOver, dropClassName }, drop] = useDrop({\r\n accept: type,\r\n collect: (monitor) => {\r\n const { index: dragIndex } = monitor.getItem() || {};\r\n if (dragIndex === index) {\r\n return {};\r\n }\r\n return {\r\n isOver: monitor.isOver(),\r\n dropClassName:\r\n dragIndex < index ? ' drop-over-downward' : ' drop-over-upward'\r\n };\r\n },\r\n drop: (item) => {\r\n if (moveRow) {\r\n moveRow(item.index, index);\r\n }\r\n }\r\n });\r\n const [, drag] = useDrag({\r\n type,\r\n item: { type, index },\r\n collect: (monitor) => ({\r\n isDragging: monitor.isDragging()\r\n })\r\n });\r\n drop(drag(ref));\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nconst DragSortingTable = ({\r\n children,\r\n components = {},\r\n dataSource = [],\r\n filter,\r\n onSorting,\r\n ...rest\r\n}) => {\r\n const getDataSource = (filterInverse) => {\r\n if (filter && filterInverse) {\r\n return dataSource.filter((c) => !filter(c));\r\n }\r\n\r\n if (filter) {\r\n return dataSource.filter(filter);\r\n }\r\n\r\n return dataSource;\r\n };\r\n\r\n if (components) {\r\n components.body = { row: DragableBodyRow, ...components.body };\r\n } else {\r\n components = { body: { row: DragableBodyRow, ...components.body } };\r\n }\r\n\r\n const moveRow = useCallback(\r\n (dragIndex, hoverIndex) => {\r\n const dragRow = getDataSource()[dragIndex];\r\n\r\n if (onSorting) {\r\n const rejecteds = filter ? getDataSource(true) : [];\r\n\r\n onSorting([\r\n ...update(getDataSource(), {\r\n $splice: [\r\n [dragIndex, 1],\r\n [hoverIndex, 0, dragRow]\r\n ]\r\n }),\r\n ...rejecteds\r\n ]);\r\n }\r\n },\r\n [dataSource]\r\n );\r\n\r\n return (\r\n \r\n {React.cloneElement(children, {\r\n onRow: (_, index) => ({\r\n index,\r\n moveRow\r\n }),\r\n moveRow,\r\n components,\r\n dataSource,\r\n filter,\r\n ...rest\r\n })}\r\n \r\n );\r\n};\r\n\r\nexport default DragSortingTable;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\n\r\nconst SelectBloodGroup = (props) => {\r\n return (\r\n \r\n option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0\r\n }\r\n >\r\n \r\n A +\r\n \r\n \r\n A -\r\n \r\n \r\n B +\r\n \r\n \r\n B -\r\n \r\n \r\n AB +\r\n \r\n \r\n AB -\r\n \r\n \r\n O +\r\n \r\n \r\n O -\r\n \r\n \r\n );\r\n};\r\n\r\nexport default SelectBloodGroup;\r\n","import React, { useMemo, useRef, useState, useImperativeHandle } from 'react';\r\nimport { Button, Form, Spin } from 'antd';\r\nimport { CloseOutlined, EditOutlined } from '@ant-design/icons';\r\nimport {\r\n RemoteSelect,\r\n isEmpty,\r\n normalizeToSelect,\r\n useCrud,\r\n CrudEditContextProvider,\r\n RESOURCE_ACTION_EDIT\r\n} from '@unicus/react-ui-kit';\r\nimport generateUUID from 'util/functions/generateUUID';\r\nimport RemoteSelectV2 from './RemoteSelectV2';\r\n\r\nconst CreateEditComponentWrap = ({\r\n children,\r\n data,\r\n resource,\r\n resourceTitle,\r\n ...rest\r\n}) => {\r\n const [form] = Form.useForm();\r\n\r\n return (\r\n \r\n {React.cloneElement(children, {\r\n ...rest,\r\n data: data.resourceToEdit,\r\n saving: data.saving,\r\n loading: data.loading,\r\n editing: data.editing,\r\n loadingEdition: data.loadingEdition,\r\n readOnly: data.readOnly,\r\n visible: data.visible || data.editing,\r\n action: data.action,\r\n title: `${data.action !== RESOURCE_ACTION_EDIT ? 'Novo ' : 'Editar '} ${\r\n resourceTitle ? resourceTitle?.toLowerCase() : ''\r\n }`,\r\n resource\r\n })}\r\n \r\n );\r\n};\r\n\r\nconst RemoteSelectCrud = (\r\n {\r\n editComponent: EditComponent,\r\n resource,\r\n textPropName,\r\n resourceTitle,\r\n enableEdit = true,\r\n onChange,\r\n value,\r\n onCreateOrUpdate,\r\n ...rest\r\n },\r\n ref\r\n) => {\r\n const crud = useCrud({ resource });\r\n const {\r\n create,\r\n get,\r\n data: { editing, action, componentKey: stateComponentKey }\r\n } = crud;\r\n\r\n const selectRef = useRef(null);\r\n const [text, setText] = useState(null);\r\n const [componentKey, setComponentKey] = useState(generateUUID());\r\n const [allowShow, setAllowShow] = useState(true);\r\n const isMultiple = rest.mode === 'multiple';\r\n\r\n const handleChange = (item) => {\r\n onChange?.(item);\r\n };\r\n\r\n const handleAddClick = () => {\r\n selectRef.current.focus();\r\n selectRef.current.blur();\r\n setText(null);\r\n\r\n if (!isMultiple) {\r\n handleChange({});\r\n }\r\n\r\n setTimeout(() => {\r\n create(textPropName ? { [textPropName]: text } : {}, { componentKey });\r\n }, 500);\r\n };\r\n\r\n const handleEditClick = () => {\r\n const { id } = value;\r\n get(id, { componentKey });\r\n };\r\n\r\n const handleEditClickTag = (id) => {\r\n get(id, { componentKey });\r\n };\r\n\r\n const notFoundRender = () => {\r\n return (\r\n allowShow && (\r\n \r\n + Adicionar{text ? ` (${text}...)` : ''}\r\n \r\n )\r\n );\r\n };\r\n\r\n const customDropdownRender = ({ menu, fetching }) => {\r\n return (\r\n <>\r\n {menu}\r\n {fetching ? (\r\n
\r\n \r\n
\r\n ) : (\r\n notFoundRender()\r\n )}\r\n \r\n );\r\n };\r\n\r\n const handleCreateOrUpdateSuccess = ({ data: result }) => {\r\n selectRef.current?.reset();\r\n\r\n if (isMultiple) {\r\n const newValue = [...value];\r\n const index = value.findIndex((c) => c.id === result.result.id);\r\n\r\n if (index > -1) {\r\n newValue[index] = result.result;\r\n } else {\r\n newValue.push(result.result);\r\n }\r\n\r\n handleChange(newValue);\r\n } else {\r\n handleChange(result.result);\r\n }\r\n\r\n setComponentKey(generateUUID());\r\n onCreateOrUpdate?.(result.result);\r\n };\r\n\r\n const handleSearch = (text) => {\r\n setAllowShow(false);\r\n setText(text);\r\n };\r\n\r\n const handleFetched = () => {\r\n setAllowShow(true);\r\n };\r\n\r\n const handleDropdownVisibleChange = (visible) => {\r\n if (!visible) {\r\n setText(null);\r\n }\r\n };\r\n\r\n const tagRender = ({ label, onClose, value }) => {\r\n return (\r\n
\r\n {label}\r\n
\r\n handleEditClickTag(value)}\r\n />\r\n \r\n
\r\n
\r\n );\r\n };\r\n\r\n useImperativeHandle(ref, () => selectRef.current);\r\n\r\n return (\r\n \r\n \r\n {!isMultiple && enableEdit && !isEmpty(value) && (\r\n \r\n \r\n }\r\n >\r\n {children}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nRemoteSelectPopover.defaultProps = { fethOnMount: false };\r\n\r\nexport default RemoteSelectPopover;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\n\r\nconst SelectBoolean = (props, ref) => {\r\n return (\r\n \r\n option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0\r\n }\r\n >\r\n \r\n Sim\r\n \r\n \r\n Não\r\n \r\n \r\n );\r\n};\r\n\r\nexport default React.forwardRef(SelectBoolean);\r\n","import React, { forwardRef } from 'react';\r\nimport { Input } from 'antd';\r\nimport ReactInputMask from 'react-input-mask';\r\n\r\nconst InputMask = (props, ref) => {\r\n const { disabled } = props;\r\n\r\n return (\r\n \r\n {(inputProps) => (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default forwardRef(InputMask);\r\n","/* eslint-disable react/jsx-indent */\r\nimport React, { useState } from 'react';\r\nimport { Form, Popover } from 'antd';\r\nimport RemoteSelect from './RemoteSelect';\r\n\r\nconst FilterRemoteSelect = ({\r\n children,\r\n className,\r\n data,\r\n initialValue,\r\n isLast,\r\n name,\r\n multiple,\r\n placeholder,\r\n showSearch,\r\n label,\r\n resource,\r\n width,\r\n hidden,\r\n ...rest\r\n}) => {\r\n const [visible, setVisible] = useState({ popover: false, select: false });\r\n\r\n const handleVisiblePopover = (value) => {\r\n setVisible({ ...visible, popover: visible.select ? false : value });\r\n };\r\n\r\n const handleVisibleSelect = (value) => {\r\n setVisible({ select: value, popover: false });\r\n };\r\n\r\n const getPlaceholder = (values) => {\r\n if (values.length <= 0) {\r\n return '';\r\n }\r\n\r\n if (values.length === 1) {\r\n return values[0].label;\r\n }\r\n\r\n return (\r\n \r\n {values.map((c) => (\r\n
\r\n {c.label}\r\n
\r\n ))}\r\n \r\n }\r\n >\r\n {`${values.length} selecionados`}\r\n \r\n );\r\n };\r\n\r\n return (\r\n
\r\n );\r\n};\r\n\r\nexport default FilterRemoteSelect;\r\n","import React, { useEffect, useImperativeHandle, useRef, useState } from 'react';\r\nimport { EditorState, Modifier, RichUtils } from 'draft-js';\r\nimport { Editor } from 'react-draft-wysiwyg';\r\nimport { stateToHTML } from 'draft-js-export-html';\r\nimport { stateFromHTML } from 'draft-js-import-html';\r\nimport { insertNewUnstyledBlock } from 'draftjs-utils';\r\nimport translations from './translations';\r\n\r\nconst HtmlEditor = (\r\n { onChange, value = '', readOnly, disabled, options },\r\n ref\r\n) => {\r\n const [editor, setEditor] = useState(EditorState.createEmpty());\r\n const [loaded, setLoaded] = useState(false);\r\n const editorRef = useRef(null);\r\n\r\n useEffect(() => {\r\n if ((readOnly || disabled || !loaded) && value) {\r\n setLoaded(true);\r\n setEditor(EditorState.createWithContent(stateFromHTML(value)));\r\n }\r\n }, [value]);\r\n\r\n const onEditorStateChange = (editorState) => {\r\n if (onChange) {\r\n onChange(stateToHTML(editorState.getCurrentContent()));\r\n }\r\n\r\n setEditor(editorState);\r\n };\r\n\r\n const insert = (html) => {\r\n const currentSelection = editor.getSelection();\r\n const currentContent = editor.getCurrentContent();\r\n\r\n const newContent = Modifier.replaceText(\r\n currentContent,\r\n currentSelection,\r\n html\r\n );\r\n\r\n const newEditorState = EditorState.push(\r\n editor,\r\n newContent,\r\n 'insert-characters'\r\n );\r\n\r\n setEditor(\r\n EditorState.forceSelection(newEditorState, newContent.getSelectionAfter())\r\n );\r\n };\r\n\r\n useImperativeHandle(ref, () => ({\r\n insert\r\n }));\r\n\r\n return (\r\n {\r\n let newEditorState = null;\r\n if (event.keyCode === 13 && event.shiftKey) {\r\n newEditorState = insertNewUnstyledBlock(editor);\r\n } else if (event.keyCode === 13 && !event.shiftKey) {\r\n newEditorState = RichUtils.insertSoftNewline(editor);\r\n }\r\n if (newEditorState) {\r\n setEditor(newEditorState);\r\n return true;\r\n }\r\n return false;\r\n }}\r\n toolbar={{\r\n options: options ?? [\r\n 'inline',\r\n 'blockType',\r\n 'fontFamily',\r\n 'list',\r\n 'textAlign',\r\n 'colorPicker',\r\n 'link'\r\n ]\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default React.forwardRef(HtmlEditor);\r\n","import React from 'react';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { Button } from 'antd';\r\n\r\nimport {\r\n isAudio,\r\n isExcel,\r\n isImage,\r\n isPDF,\r\n isVideo\r\n} from 'util/functions/mimeTypes';\r\nimport join from 'util/functions/join';\r\n\r\nconst getIconName = (contentType) => {\r\n if (isImage(contentType)) {\r\n return 'file-image';\r\n }\r\n if (isPDF(contentType)) {\r\n return 'file-pdf';\r\n }\r\n if (isExcel(contentType)) {\r\n return 'file-exel';\r\n }\r\n\r\n if (isVideo(contentType)) {\r\n return 'file-video';\r\n }\r\n\r\n if (isAudio(contentType)) {\r\n return 'file-audio';\r\n }\r\n\r\n return 'file-alt';\r\n};\r\n\r\nconst SectionField = ({\r\n type,\r\n name,\r\n options = [],\r\n answer,\r\n attachments = [],\r\n ...rest\r\n}) => {\r\n const handleAttachment = ({ url }) => {\r\n window.open(`${api.getUrlFromResource('attendances')}/${url}`, '_blank');\r\n };\r\n\r\n const render = () => {\r\n if (type === 'multiline') {\r\n return (\r\n
\r\n \r\n {answer?.split('\\n').map((str) => (\r\n <>\r\n {str}\r\n
\r\n \r\n ))}\r\n
\r\n
\r\n );\r\n }\r\n\r\n if (type === 'attachment') {\r\n return (\r\n
\r\n {attachments.map((c) => (\r\n
\r\n
\r\n \r\n handleAttachment(c)}\r\n >\r\n Baixar\r\n \r\n
\r\n
\r\n ))}\r\n
\r\n );\r\n }\r\n\r\n if (type === 'boolean' && answer) {\r\n return (\r\n
\r\n {answer === 'true' ? 'Sim' : 'Não'}\r\n
\r\n );\r\n }\r\n\r\n if (type === 'options') {\r\n return (\r\n
\r\n \r\n {join(\r\n options.filter((c) => c.isChecked).map((c) => c.name),\r\n ' e '\r\n )}\r\n \r\n
\r\n );\r\n }\r\n\r\n return null;\r\n };\r\n\r\n return (\r\n
\r\n
\r\n {name}\r\n
\r\n {render()}\r\n
\r\n );\r\n};\r\n\r\nexport default SectionField;\r\n","/* eslint-disable react/no-danger */\r\nimport React from 'react';\r\nimport moment from 'moment';\r\nimport { Button } from 'antd';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport { DownloadOutlined } from '@ant-design/icons';\r\nimport HtmlEditor from 'components/HtmlEditor/HtmlEditor';\r\n\r\nconst SectionFieldDocument = ({\r\n id,\r\n name,\r\n text,\r\n creationTime,\r\n lastModificationTime\r\n}) => {\r\n const handleDownload = () => {\r\n const url = api.getUrlFromResource(`attendances/${id}/document-pdf`);\r\n window.open(url);\r\n };\r\n\r\n return (\r\n
\r\n
{name}
\r\n
\r\n {moment(creationTime).format('[Criado em] DD/MM/YYYY HH:mm')}\r\n
\r\n {lastModificationTime ? (\r\n
\r\n {moment(lastModificationTime).format(\r\n '[Atualizado em] DD/MM/YYYY HH:mm'\r\n )}\r\n
\r\n ) : null}\r\n
\r\n
\r\n }\r\n onClick={handleDownload}\r\n >\r\n Imprimir\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default SectionFieldDocument;\r\n","/* eslint-disable react/no-danger */\r\nimport React from 'react';\r\nimport moment from 'moment';\r\nimport { Button } from 'antd';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport { DownloadOutlined } from '@ant-design/icons';\r\nimport HtmlEditor from 'components/HtmlEditor/HtmlEditor';\r\nimport { MEMED, RECEITADIGITAL } from 'constants/types';\r\n\r\nconst SectionFieldPrescription = ({\r\n id,\r\n creationTime,\r\n lastModificationTime,\r\n prescription = {}\r\n}) => {\r\n const { name, text, source, receitaDigital } = prescription ?? {};\r\n\r\n const handleDownload = () => {\r\n if (source === RECEITADIGITAL && receitaDigital) {\r\n const { urlFromPdf } = receitaDigital;\r\n window.open(urlFromPdf);\r\n return;\r\n }\r\n\r\n window.open(\r\n api.getUrlFromResource(`attendances/${prescription.id}/prescription-pdf`)\r\n );\r\n };\r\n\r\n return (\r\n
\r\n
{name}
\r\n
\r\n {moment(creationTime).format('[Criado em] DD/MM/YYYY HH:mm')}\r\n
\r\n {lastModificationTime ? (\r\n
\r\n {moment(lastModificationTime).format(\r\n '[Atualizado em] DD/MM/YYYY HH:mm'\r\n )}\r\n
\r\n ) : null}\r\n
\r\n
\r\n }\r\n onClick={handleDownload}\r\n id=\"teste-memed\"\r\n >\r\n Imprimir\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default SectionFieldPrescription;\r\n","import React from 'react';\r\nimport SectionField from './SectionField';\r\nimport SectionFieldDocument from './SectionFieldDocument';\r\nimport SectionFieldPrescription from './SectionFieldPrescription';\r\n\r\nconst Section = (props) => {\r\n const {\r\n id,\r\n name,\r\n type,\r\n fields = [],\r\n documents = [],\r\n prescriptions = []\r\n } = props;\r\n\r\n const showFieldMedicalRecord = (c) => {\r\n return (\r\n c.answer ||\r\n c.attachments.length > 0 ||\r\n c.options.filter((c) => c.isChecked)?.length > 0\r\n );\r\n };\r\n\r\n const render = () => {\r\n if (type === 'medicalRecord') {\r\n return fields\r\n .filter(showFieldMedicalRecord)\r\n .map((values) => );\r\n }\r\n\r\n if (type === 'document') {\r\n return documents.map((c) => );\r\n }\r\n\r\n if (type === 'prescription') {\r\n return prescriptions.map((c) => (\r\n \r\n ));\r\n }\r\n\r\n return null;\r\n };\r\n\r\n if (type === 'medicalRecord' && !fields.some(showFieldMedicalRecord)) {\r\n return null;\r\n }\r\n\r\n if (type === 'document' && documents.length === 0) {\r\n return null;\r\n }\r\n\r\n if (type === 'prescription' && prescriptions.length === 0) {\r\n return null;\r\n }\r\n\r\n if (type === 'comments') {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n
\r\n {name}\r\n
\r\n
{render()}
\r\n
\r\n );\r\n};\r\n\r\nexport default Section;\r\n","import React from 'react';\r\nimport { CirclePicker } from 'react-color';\r\n\r\nconst SelectColor = ({ value, onChange }) => {\r\n return (\r\n
\r\n onChange(hex)}\r\n colors={[\r\n '#f9e1db',\r\n '#f56193',\r\n '#cf7bdd',\r\n '#b695f1',\r\n '#c6cfff',\r\n '#9bcdf5',\r\n '#9deff9',\r\n '#b1f7f0',\r\n '#a9ffad',\r\n '#fff1c9',\r\n '#c4d6df'\r\n ]}\r\n />\r\n
\r\n );\r\n};\r\n\r\nexport default SelectColor;\r\n","import React from 'react';\r\nimport { Form, Button } from 'antd';\r\nimport { FormItemWrap } from '@unicus/react-ui-kit';\r\nimport { PlusOutlined } from '@ant-design/icons';\r\nimport lodash from 'lodash';\r\n\r\nconst FormListContext = React.createContext({ form: null });\r\n\r\nconst FormListItemWrap = ({ children, name, noStyle, ...rest }) => {\r\n const { field } = React.useContext(FormListContext);\r\n\r\n if (!field) {\r\n throw new Error('Missing FormListWrap in its parent.');\r\n }\r\n\r\n const getName = () => {\r\n if (typeof name === 'string') {\r\n return [name];\r\n }\r\n\r\n return name;\r\n };\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nconst FormListWrap = ({\r\n name,\r\n onBeforeCreateItem,\r\n onRemove = () => true,\r\n addText = 'Adicionar',\r\n hideAddButton = false,\r\n children,\r\n rules\r\n}) => {\r\n const handleRemove = (remove, fieldIndex, value) => {\r\n if (onRemove(value)) {\r\n remove(fieldIndex);\r\n }\r\n };\r\n\r\n const handleAdd = (add) => {\r\n let value = {};\r\n\r\n if (onBeforeCreateItem) {\r\n value = onBeforeCreateItem(value);\r\n }\r\n\r\n add(value);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n {(fields, { add, remove }, { errors }) => (\r\n <>\r\n {fields.map((field, index) => (\r\n \r\n {\r\n return lodash.isEqual(prevValues, curValues);\r\n }}\r\n >\r\n {({ getFieldValue }) => {\r\n const value = getFieldValue([name, field.name]);\r\n return children({\r\n onCreate: () => handleAdd(add),\r\n onRemove: () => handleRemove(remove, index, value),\r\n field,\r\n fields,\r\n value,\r\n index\r\n });\r\n }}\r\n \r\n \r\n ))}\r\n {!hideAddButton && (\r\n }\r\n onClick={() => handleAdd(add)}\r\n >\r\n {addText}\r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport { FormListWrap, FormListItemWrap, FormListContext };\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Checkbox, Tooltip } from 'antd';\r\nimport { InfoCircleOutlined } from '@ant-design/icons';\r\n\r\nconst CheckboxInput = ({\r\n placeholder,\r\n children,\r\n onChange,\r\n value,\r\n id,\r\n hint\r\n}) => {\r\n const [loaded, setLoaded] = useState(false);\r\n const [visible, setVisible] = useState(!!value);\r\n\r\n useEffect(() => {\r\n if (!loaded && value) {\r\n setLoaded(true);\r\n setVisible(true);\r\n }\r\n }, [value]);\r\n\r\n const handleChange = ({ target }) => {\r\n if (!target.checked) {\r\n onChange(null);\r\n }\r\n\r\n setVisible(target.checked);\r\n };\r\n\r\n return (\r\n
\r\n \r\n {placeholder}\r\n {hint ? (\r\n \r\n \r\n \r\n ) : null}\r\n \r\n {visible\r\n ? React.cloneElement(children, {\r\n value,\r\n id,\r\n onChange\r\n })\r\n : null}\r\n
\r\n );\r\n};\r\n\r\nexport default CheckboxInput;\r\n","import React from 'react';\r\nimport { Drawer, Modal } from 'antd';\r\n\r\nconst DrawerModal = ({ mode = 'drawer', children, onClose, ...rest }) => {\r\n if (mode === 'drawer') {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }\r\n\r\n if (mode === 'modal') {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }\r\n\r\n return null;\r\n};\r\n\r\nexport default DrawerModal;\r\n","import React from 'react';\r\nimport { Button, Popconfirm } from 'antd';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\n\r\nconst ActionsList = ({\r\n editing = true,\r\n record,\r\n initEditing,\r\n removeRecord,\r\n renderRight = () => {},\r\n showDeletedButton = true\r\n}) => {\r\n return (\r\n \r\n {editing ? (\r\n initEditing(record)}\r\n icon={}\r\n >\r\n Editar\r\n \r\n ) : null}\r\n {showDeletedButton && (\r\n removeRecord(record.id)}\r\n cancelText=\"Não\"\r\n okText=\"Sim\"\r\n >\r\n }\r\n >\r\n Excluir\r\n \r\n \r\n )}\r\n {renderRight(record)}\r\n \r\n );\r\n};\r\n\r\nexport default ActionsList;\r\n","import React from 'react';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport Iugu from 'util/iugu';\r\nimport { AMEX, DINERS, MASTERCARD, VISA } from 'constants/cardBrands';\r\n\r\nconst getBrandIconName = (number) => {\r\n try {\r\n const brand = Iugu.utils.getBrandByCreditCardNumber(number);\r\n\r\n switch (brand) {\r\n case VISA:\r\n return ['fab', 'cc-visa'];\r\n case MASTERCARD:\r\n return ['fab', 'cc-mastercard'];\r\n case AMEX:\r\n return ['fab', 'cc-amex'];\r\n case DINERS:\r\n return ['fab', 'cc-diners-club'];\r\n default:\r\n return null;\r\n }\r\n } catch (error) {\r\n return null;\r\n }\r\n};\r\n\r\nconst CreditCardIcon = ({ className = '', number }) => {\r\n const iconName = getBrandIconName(number);\r\n\r\n return iconName ? (\r\n \r\n ) : null;\r\n};\r\n\r\nexport default CreditCardIcon;\r\n","export const VISA = 'visa';\r\nexport const AMEX = 'amex';\r\nexport const DINERS = 'diners';\r\nexport const MASTERCARD = 'mastercard';\r\nexport const ELO = 'elo';\r\n","import React, { useState } from 'react';\r\nimport {\r\n Form,\r\n Input,\r\n Row,\r\n Button,\r\n Divider,\r\n Select,\r\n InputNumber,\r\n Col,\r\n Alert\r\n} from 'antd';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport {\r\n formartOnlyNumber,\r\n configManager,\r\n FormItemWrap\r\n} from '@unicus/react-ui-kit';\r\nimport { useLocation } from 'react-router-dom';\r\nimport qs from 'query-string';\r\nimport Iugu from 'util/iugu';\r\nimport ResCol from 'components/forms/ResCol';\r\nimport { formatCurrency } from 'util/formatters';\r\nimport { BsCheck2Square } from 'react-icons/bs';\r\nimport { useSubscriptionPlanHelper } from 'core/hooks';\r\nimport usePermissions from 'core/hooks/usePermissions';\r\nimport CreditCardIcon from './CreditCardIcon';\r\n\r\nconst PaymentPlan = ({ loading, onSubmit, plan, onCancel }) => {\r\n const segmentFields = useSegmentField();\r\n const { search } = useLocation();\r\n const { applypartnerdiscount } = qs.parse(search);\r\n const [validatingCard, setValidatingCard] = useState(false);\r\n const { isPartnership } = usePermissions();\r\n const { getFeatureValue, identifiers } = useSubscriptionPlanHelper(plan);\r\n\r\n const min = isPartnership\r\n ? getFeatureValue(identifiers.MIN_LICENSE)\r\n : getFeatureValue(identifiers.MIN_PROFESSIONAL_NUMBER);\r\n\r\n const max = isPartnership\r\n ? getFeatureValue(identifiers.MAX_LICENSE)\r\n : getFeatureValue(identifiers.MAX_PROFESSIONAL_NUMBER);\r\n\r\n const amountInitial =\r\n (isPartnership\r\n ? getFeatureValue(identifiers.MIN_LICENSE)\r\n : getFeatureValue(identifiers.MIN_PROFESSIONAL_NUMBER)) * plan.amount;\r\n\r\n const [amount, setAmount] = useState(amountInitial);\r\n const [form] = Form.useForm();\r\n\r\n const validateCreditCard = ({\r\n number,\r\n expirationDate,\r\n cardholderName,\r\n securityCode,\r\n installments = null,\r\n numberOfPaidProfessionals,\r\n numberOfLicenses\r\n }) => {\r\n const month = expirationDate.substr(0, 2);\r\n const year = expirationDate.substr(3, 6);\r\n const [firstName, ...lastNames] = cardholderName.split(' ');\r\n const lastName = lastNames.join(' ');\r\n\r\n const cc = Iugu.CreditCard(\r\n number,\r\n month,\r\n year,\r\n firstName,\r\n lastName,\r\n securityCode\r\n );\r\n\r\n if (cc.valid()) {\r\n setValidatingCard(true);\r\n Iugu.createPaymentToken(cc, (response) => {\r\n setValidatingCard(false);\r\n\r\n onSubmit({\r\n numberOfPaidProfessionals,\r\n numberOfLicenses,\r\n amount,\r\n removeLicense: !applypartnerdiscount,\r\n paymentMethod: {\r\n creditCard: {\r\n token: response.id,\r\n holder: {\r\n name: cardholderName\r\n }\r\n },\r\n installments\r\n }\r\n });\r\n });\r\n }\r\n };\r\n\r\n const handleFinish = (values) => {\r\n validateCreditCard(values);\r\n };\r\n\r\n const validateNumber = (rule, value) => {\r\n if (!value) {\r\n return Promise.resolve();\r\n }\r\n\r\n const number = formartOnlyNumber(value);\r\n\r\n if (number.length <= 16 && !Iugu.utils.validateCreditCardNumber(number)) {\r\n return Promise.reject(new Error('Número de cartão inválido'));\r\n }\r\n\r\n return Promise.resolve();\r\n };\r\n\r\n const validateExpirationDate = (rule, value) => {\r\n if (!value) {\r\n return Promise.resolve();\r\n }\r\n\r\n const date = formartOnlyNumber(value);\r\n\r\n if (date.length === 6 && !Iugu.utils.validateExpirationString(value)) {\r\n return Promise.reject(new Error('Data de validade inválida'));\r\n }\r\n\r\n return Promise.resolve();\r\n };\r\n\r\n const validateName = (rule, value) => {\r\n if (!value) {\r\n return Promise.resolve();\r\n }\r\n\r\n if (/\\d/.test(value)) {\r\n return Promise.reject(new Error('Nome não pode conter números'));\r\n }\r\n\r\n if (value.split(' ').filter((c) => c !== '').length === 1) {\r\n return Promise.reject(new Error('Digite o nome completo'));\r\n }\r\n\r\n return Promise.resolve();\r\n };\r\n\r\n const validateSecurityCode = (value, number) => {\r\n if (!value || !number) {\r\n return true;\r\n }\r\n\r\n const cardNumber = formartOnlyNumber(number);\r\n const cvv = formartOnlyNumber(value);\r\n const brand = Iugu.utils.getBrandByCreditCardNumber(cardNumber);\r\n\r\n if (\r\n cardNumber.length === 16 &&\r\n cvv.length === 3 &&\r\n !Iugu.utils.validateCVV(cvv, brand)\r\n ) {\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n const validateNumberOfProfessionals = (rule, value) => {\r\n if (!value && value !== 0) {\r\n return Promise.resolve();\r\n }\r\n\r\n const label = isPartnership ? 'licenças' : 'profissionais';\r\n\r\n if (!Number.isNaN(Number(min)) && value < Number.parseInt(min, 10)) {\r\n return Promise.reject(\r\n new Error(`O plano tem um limite mínimo de ${min} ${label}`)\r\n );\r\n }\r\n\r\n if (!Number.isNaN(Number(max)) && value > Number.parseInt(max, 10)) {\r\n return Promise.reject(\r\n new Error(`O plano tem um limite máximo de ${max} ${label}`)\r\n );\r\n }\r\n\r\n return Promise.resolve();\r\n };\r\n\r\n const handleChangeValues = (\r\n _,\r\n { numberOfPaidProfessionals, numberOfLicenses }\r\n ) => {\r\n if (!isPartnership) {\r\n setAmount(numberOfPaidProfessionals * plan.amount);\r\n return;\r\n }\r\n\r\n if (isPartnership) {\r\n setAmount(numberOfLicenses * plan.amount);\r\n }\r\n };\r\n\r\n const installmentsData = [];\r\n\r\n for (let parcel = 1; parcel < 13; parcel += 1) {\r\n installmentsData.push(parcel);\r\n }\r\n\r\n const isLoading = loading || validatingCard;\r\n\r\n return (\r\n \r\n \r\n \r\n Resumo da assinatura\r\n
\r\n
\r\n
    \r\n
    \r\n {plan.name}\r\n
    \r\n {plan.features.map((feature, index) => (\r\n
  • \r\n \r\n \r\n {feature.description}\r\n \r\n
  • \r\n ))}\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n {!isPartnership\r\n ? `Quant. ${segmentFields.serviceProvider}`\r\n : 'Quant. Licença'}\r\n \r\n \r\n \r\n ({\r\n validator: validateNumberOfProfessionals\r\n })\r\n ]}\r\n autoFocus\r\n >\r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n {plan.frequency === 'yearly'\r\n ? `Assinatura anual`\r\n : `Assinatura mensal`}\r\n \r\n \r\n {formatCurrency(amount)}\r\n \r\n
\r\n }\r\n type=\"info\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n ({\r\n validator: validateName\r\n })\r\n ]}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n ({\r\n validator: validateNumber\r\n })\r\n ]}\r\n >\r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n ({\r\n validator: validateExpirationDate\r\n })\r\n ]}\r\n >\r\n \r\n \r\n \r\n \r\n ({\r\n validator(rule, value) {\r\n if (\r\n !validateSecurityCode(value, getFieldValue('number'))\r\n ) {\r\n return Promise.reject(\r\n new Error('Código de segurança inválido')\r\n );\r\n }\r\n\r\n return Promise.resolve();\r\n }\r\n })\r\n ]}\r\n >\r\n \r\n \r\n \r\n \r\n {plan.frequency === 'yearly' ? (\r\n \r\n \r\n option.props.children\r\n .toLowerCase()\r\n .indexOf(input.toLowerCase()) >= 0\r\n }\r\n >\r\n {installmentsData.map((c) => (\r\n \r\n {`${c}x ${formatCurrency(plan.amount / c)}`}\r\n \r\n ))}\r\n \r\n \r\n ) : null}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Confirmar pagamento\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default PaymentPlan;\r\n\r\n","import React from 'react';\r\nimport { Button, Card, Row, Col, Spin } from 'antd';\r\n\r\nconst PageContainer = ({\r\n title,\r\n visible,\r\n children,\r\n readOnly = false,\r\n maskClosable = true,\r\n onOkClick,\r\n onBackClick,\r\n okButtonText = 'Confirmar',\r\n backButtonText = 'Voltar',\r\n loading,\r\n saving,\r\n className = '',\r\n toolbarComponent: ToolbarComponent,\r\n size,\r\n ...rest\r\n}) => {\r\n const width =\r\n size && (size.includes('%') || size.includes('px')) ? size : undefined;\r\n const sizeClass = size && !width ? size : null;\r\n\r\n return (\r\n
\r\n \r\n
{title}
\r\n {children}\r\n
\r\n {ToolbarComponent ? (\r\n \r\n ) : (\r\n
\r\n {readOnly ? (\r\n \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n )}\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default PageContainer;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Modal } from 'antd';\r\nimport { ExclamationCircleOutlined } from '@ant-design/icons';\r\nimport {\r\n configManager,\r\n useCrudEditContext,\r\n RESOURCE_ACTION_EDIT,\r\n RESOURCE_ACTION_CREATE\r\n} from '@unicus/react-ui-kit';\r\nimport PageContainer from './PageContainer';\r\nimport ResourceErrorAlert from './ResourceErrorAlert';\r\n\r\nconst PageEdit = ({\r\n children,\r\n cancelEdit,\r\n post,\r\n update,\r\n visible,\r\n action,\r\n data,\r\n size = 'sm',\r\n resource,\r\n submit,\r\n onSubmit,\r\n onBeforeBinding,\r\n updateFormOnDataChanged = true,\r\n readOnly = false,\r\n onDataChanged,\r\n onValuesChange,\r\n showConfirmDataLoss = true,\r\n onCreateOrUpdateSuccess,\r\n ...rest\r\n}) => {\r\n const { form: editingForm } = useCrudEditContext();\r\n const [modified, setModified] = useState(false);\r\n\r\n useEffect(() => {\r\n const dataChanged = onBeforeBinding ? onBeforeBinding(data) : data;\r\n if (updateFormOnDataChanged) {\r\n editingForm.setFieldsValue(dataChanged);\r\n }\r\n if (onDataChanged) {\r\n onDataChanged(dataChanged);\r\n }\r\n }, [updateFormOnDataChanged, data]);\r\n\r\n const handleSubmit = () => {\r\n if (!action) {\r\n action = data.id ? RESOURCE_ACTION_EDIT : RESOURCE_ACTION_CREATE;\r\n }\r\n\r\n editingForm.validateFields().then((values) => {\r\n let dataToSend = { ...data, ...values };\r\n\r\n if (onSubmit) {\r\n dataToSend = onSubmit(dataToSend);\r\n if (!dataToSend) {\r\n return;\r\n }\r\n }\r\n if (submit) {\r\n submit(values, action);\r\n } else if (action === RESOURCE_ACTION_EDIT) {\r\n update(data.id, dataToSend, onCreateOrUpdateSuccess);\r\n } else {\r\n post(dataToSend, onCreateOrUpdateSuccess);\r\n }\r\n });\r\n };\r\n\r\n const handleValuesChange = (changedValues, allValues) => {\r\n onValuesChange?.(changedValues, allValues);\r\n setModified(true);\r\n };\r\n\r\n const handleBackClick = () => {\r\n if (showConfirmDataLoss && modified) {\r\n Modal.confirm({\r\n title: 'As modifições serão descartadas. Deseja sair sem salvar?',\r\n icon: ,\r\n okText: 'Sair',\r\n cancelText: 'Cancelar',\r\n onOk() {\r\n cancelEdit();\r\n }\r\n });\r\n } else {\r\n cancelEdit();\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n {React.cloneElement(children, {\r\n form: editingForm,\r\n onValuesChange: handleValuesChange,\r\n initialValues: !updateFormOnDataChanged\r\n ? onBeforeBinding\r\n ? onBeforeBinding(data)\r\n : data\r\n : undefined,\r\n ...configManager.getConfig().layout.form\r\n })}\r\n \r\n );\r\n};\r\n\r\nexport default PageEdit;\r\n","import React, { useEffect, useState } from 'react';\r\nimport CurrencyInput from 'react-currency-input-field';\r\n\r\nconst InputCurrency = ({\r\n prefix = '',\r\n decimalSeparator = ',',\r\n decimalsLimit = 2,\r\n decimalScale = 2,\r\n onChange,\r\n value,\r\n onFocus,\r\n ...rest\r\n}) => {\r\n const [userValue, setUserValue] = useState(value);\r\n\r\n const triggerChange = (changedValue) => {\r\n onChange?.(\r\n changedValue ? parseFloat(changedValue.replace(decimalSeparator, '.')) : 0\r\n );\r\n setUserValue(changedValue);\r\n };\r\n\r\n const handleOnFocus = (e) => {\r\n e.target.select();\r\n\r\n if (onFocus) {\r\n onFocus(e);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n setUserValue(value ?? 0);\r\n }, [value]);\r\n\r\n return (\r\n \r\n );\r\n};\r\nexport default InputCurrency;\r\n","import React from 'react';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport { Col, Descriptions, Row, Tag } from 'antd';\r\nimport moment from 'moment';\r\nimport { formatCurrency } from 'util/formatters';\r\nimport display from 'constants/display';\r\nimport { BsCheck2Square } from 'react-icons/bs';\r\nimport useSubscription from 'core/hooks/useSubscription';\r\nimport {\r\n ACTIVATED,\r\n CANCELED,\r\n CREATED,\r\n EXPIRED,\r\n INTRIAL,\r\n SUSPENDED\r\n} from 'constants/types';\r\nimport CustomScrollbars from './CustomScrollbars';\r\n\r\nconst colors = {\r\n [CREATED]: 'blue ',\r\n [ACTIVATED]: 'green ',\r\n [CANCELED]: 'grey',\r\n [SUSPENDED]: 'red',\r\n [EXPIRED]: 'orange ',\r\n [INTRIAL]: 'purple'\r\n};\r\n\r\nconst PlanDetail = ({ subscription }) => {\r\n const segmentFields = useSegmentField();\r\n const { expiresTrialMessage } = useSubscription();\r\n const { plan } = subscription;\r\n\r\n const frequency =\r\n plan != null ? (plan.frequency === 'monthly' ? 'MÊS' : 'ANO') : null;\r\n const isTrial = subscription.status === INTRIAL;\r\n\r\n const getTitle = () => {\r\n const planName = plan?.name ?? 'Licença';\r\n\r\n if (subscription?.numberOfProfessionals > 0) {\r\n let number = subscription?.numberOfProfessionals;\r\n\r\n if (subscription.numberOfPaidProfessionals > 0) {\r\n number = subscription.numberOfPaidProfessionals;\r\n }\r\n\r\n return number === 1\r\n ? `${planName} (1 ${segmentFields.serviceProvider.toLowerCase()})`\r\n : `${planName} (${number} ${segmentFields.serviceProvider.toLowerCase()})`;\r\n }\r\n\r\n if (subscription?.numberOfLicenses > 0) {\r\n return subscription?.numberOfLicense === 1\r\n ? `${planName} (1 licença)`\r\n : `${planName} (${subscription?.numberOfLicenses} licenças)`;\r\n }\r\n\r\n return plan?.name;\r\n };\r\n\r\n return (\r\n \r\n {getTitle()}\r\n \r\n {subscription.amount === 0 ? (\r\n 'Bonificado'\r\n ) : (\r\n
{`${formatCurrency(subscription.amount)} / ${frequency}`}
\r\n )}\r\n
\r\n \r\n \r\n \r\n \r\n {display[subscription.status]}\r\n \r\n {subscription.numberOfFreeProfessionals > 0 ? (\r\n \r\n {`+ Licença parceiro (${\r\n subscription.numberOfFreeProfessionals\r\n } ${\r\n subscription.numberOfFreeProfessionals > 1\r\n ? segmentFields.serviceProvider.toLowerCase()\r\n : segmentFields.serviceProviders.toLowerCase()\r\n })`}\r\n \r\n ) : null}\r\n \r\n \r\n {isTrial ? (\r\n \r\n {expiresTrialMessage}\r\n \r\n ) : null}\r\n \r\n \r\n \r\n {subscription.hasLicense ? (\r\n \r\n \r\n {subscription?.partnershipName}\r\n \r\n \r\n ) : null}\r\n \r\n \r\n {plan?.features.map((feature, index) => (\r\n
\r\n \r\n {feature.description}\r\n
\r\n ))}\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default PlanDetail;\r\n\r\n","import React from 'react';\r\nimport { Card, Result } from 'antd';\r\nimport { LockOutlined } from '@ant-design/icons';\r\n\r\nconst AccessResourcesDenied = ({ title, subTitle, extra }) => {\r\n return (\r\n
\r\n \r\n }\r\n status=\"info\"\r\n title={title}\r\n subTitle={subTitle}\r\n extra={extra}\r\n />\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default AccessResourcesDenied;\r\n","import React from 'react';\r\nimport { Button } from 'antd';\r\nimport { useHistory } from 'react-router';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport AccessResourcesDenied from './AccessResourcesDenied';\r\n\r\nconst AccountAccessDenied = ({ children, title, types = [] }) => {\r\n const { hasAccountType } = useAuth();\r\n const history = useHistory();\r\n\r\n const handleChangeSubscription = () => {\r\n history.push('/app/subscriptions');\r\n };\r\n\r\n if (types?.length === 0) {\r\n return null;\r\n }\r\n\r\n if (hasAccountType(...types)) {\r\n return (\r\n \r\n Upgrade de assinatura\r\n \r\n }\r\n />\r\n );\r\n }\r\n\r\n return children;\r\n};\r\n\r\nexport default AccountAccessDenied;\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const NOTIFICATION = 'NOTIFICATION';\r\nexport const NOTIFICATION_SET_VISUALIZED = 'NOTIFICATION_SET_VISUALIZED';\r\nexport const NOTIFICATION_SET_VISUALIZED_FINISHED =\r\n 'NOTIFICATION_SET_VISUALIZED_FINISHED';\r\n\r\nexport const setVisualized = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'notifications',\r\n actionType: NOTIFICATION_SET_VISUALIZED,\r\n effect: async () => api.post(`notifications/visualized/${id}`),\r\n onSuccess\r\n });\r\n};\r\n","import React from 'react';\r\nimport moment from 'moment';\r\n\r\nconst NotificationDate = ({ date }) => {\r\n return (\r\n
\r\n {moment(date).fromNow()}\r\n
\r\n );\r\n};\r\n\r\nexport default NotificationDate;\r\n","import React from 'react';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { useHistory } from 'react-router';\r\nimport { acceptedTreatmentPartner } from 'stores/treatments/treatmentActions';\r\nimport { setVisualized } from 'stores/notifications/notificationActions';\r\nimport { Button } from 'antd';\r\nimport NotificationDate from './NotificationDate';\r\n\r\nconst NotificationTreatmentItem = ({ item, fetch }) => {\r\n const dispatch = useDispatch();\r\n const { refresh, refreshToken } = useAuth();\r\n const history = useHistory();\r\n const { notification, isActive, creationTime } = item;\r\n\r\n const { treatmentPartnerAcceptingId } = useSelector(\r\n (c) => c.resources?.treatments ?? {}\r\n );\r\n\r\n const handleSuccess = ({ data }) => {\r\n const { pathname } = window.location;\r\n\r\n fetch();\r\n dispatch(setVisualized(item.id));\r\n refresh({ refreshToken, type: 'professional' });\r\n\r\n if (\r\n pathname.startsWith('/app/recipient-care/profiles/') &&\r\n pathname.endsWith('/history')\r\n ) {\r\n history.replace(`/app/recipient-care/profiles/${data.result?.id}/history`);\r\n window.location.reload();\r\n return;\r\n }\r\n\r\n history.push(`/app/recipient-care/profiles/${data.result?.id}/history`);\r\n };\r\n\r\n const handleAccepted = (id) => {\r\n dispatch(acceptedTreatmentPartner(id, handleSuccess));\r\n };\r\n\r\n const parameters = JSON.parse(notification.parameters ?? '{}');\r\n const { patientName, profissionalName, treatmentPartnerId } = parameters;\r\n\r\n return (\r\n
\r\n
\r\n \r\n Você foi convidado para participar do tratamento do(a) paciente\r\n {` ${patientName} `}\r\n iniciado por\r\n {` ${profissionalName}.`}\r\n \r\n
\r\n \r\n\r\n {isActive && (\r\n handleAccepted(treatmentPartnerId)}\r\n loading={treatmentPartnerId === treatmentPartnerAcceptingId}\r\n >\r\n Aceitar\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default NotificationTreatmentItem;\r\n","import React from 'react';\r\nimport NotificationDate from './NotificationDate';\r\n\r\nconst NotificationContainer = ({ item, children, onClick }) => {\r\n const { creationTime, isVisualized } = item;\r\n\r\n let className = 'notification-item';\r\n\r\n if (typeof onClick === 'function') {\r\n className += ' gx-pointer';\r\n }\r\n\r\n if (!isVisualized) {\r\n className += ' not-visualized';\r\n }\r\n\r\n return (\r\n {}}\r\n role=\"button\"\r\n tabIndex=\"0\"\r\n >\r\n {children}\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default NotificationContainer;\r\n","import React from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { useHistory } from 'react-router';\r\nimport { setVisualized } from 'stores/notifications/notificationActions';\r\nimport NotificationContainer from './NotificationContainer';\r\n\r\nconst NotificationCommonItem = ({ item }) => {\r\n const { notification } = item;\r\n const history = useHistory();\r\n const dispatch = useDispatch();\r\n\r\n const handlePress = () => {\r\n const { pathname } = window.location;\r\n\r\n const parameters = JSON.parse(notification.parameters ?? '{}');\r\n dispatch(setVisualized(item.id));\r\n\r\n if (\r\n pathname.startsWith('/app/recipient-care/profiles/') &&\r\n pathname.endsWith('/history')\r\n ) {\r\n history.replace(\r\n `/app/recipient-care/profiles/${parameters.patientId}/history`\r\n );\r\n window.location.reload();\r\n return;\r\n }\r\n\r\n history.push(`/app/recipient-care/profiles/${parameters.patientId}/history`);\r\n };\r\n\r\n return (\r\n \r\n
\r\n {notification.title}\r\n
\r\n
{notification.description}
\r\n
\r\n );\r\n};\r\n\r\nexport default NotificationCommonItem;\r\n","import React from 'react';\r\nimport NotificationTreatmentItem from './NotificationTreatmentItem';\r\nimport NotificationCommonItem from './NotificationCommonItem';\r\n\r\nconst NotificationItem = (props) => {\r\n const { item } = props;\r\n\r\n switch (item.notification.type) {\r\n case 'treatmentInvitation':\r\n return ;\r\n case 'common':\r\n return ;\r\n default:\r\n return null;\r\n }\r\n};\r\n\r\nexport default NotificationItem;\r\n","import React from 'react';\r\nimport { Divider, Empty } from 'antd';\r\nimport CustomScrollbars from 'components/CustomScrollbars';\r\nimport NotificationItem from './NotificationItem';\r\n\r\nconst NotificationList = ({ data, paginationChanged, pagination, fetch }) => {\r\n const { items = [], loaded, loading } = data;\r\n\r\n const renderDivider = (count, index) => {\r\n if (count > 1 && index !== count - 1) {\r\n return ;\r\n }\r\n\r\n return null;\r\n };\r\n\r\n const paginationChangeHandler = () => {\r\n if (pagination.total > items.length) {\r\n paginationChanged(pagination.current + 1);\r\n }\r\n };\r\n\r\n const handleScrollEnd = () => {\r\n paginationChangeHandler();\r\n };\r\n\r\n return (\r\n \r\n {items.map((c, index) => (\r\n
\r\n \r\n {renderDivider(items.length, index)}\r\n
\r\n ))}\r\n {loaded && !loading && items.length === 0 && }\r\n \r\n );\r\n};\r\n\r\nexport default NotificationList;\r\n","import React, { useState } from 'react';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { Badge, Popover, Tooltip } from 'antd';\r\nimport { useCrud } from '@unicus/react-ui-kit';\r\nimport NotificationList from './NotificationList';\r\n\r\nconst MyNotifications = ({ iconClassName = '' }) => {\r\n const crud = useCrud({\r\n resource: 'notifications',\r\n endpoint: 'notifications/my-notifications',\r\n fixedQueryParams: { onlyIsActive: true }\r\n });\r\n\r\n const { data, fetch } = crud;\r\n\r\n if (!data.loaded && !data.loading) {\r\n fetch();\r\n }\r\n\r\n return (\r\n \r\n }\r\n trigger=\"click\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default MyNotifications;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\nimport states from 'constants/states';\r\n\r\nconst SelectStates = ({ ...rest }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default SelectStates;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\n\r\nconst items = [\r\n {\r\n initials: 'crm',\r\n name: 'Conselho Regional de Medicina'\r\n },\r\n {\r\n initials: 'crp',\r\n name: 'Conselho Regional de Psicologia'\r\n },\r\n {\r\n initials: 'crefono',\r\n name: 'Conselho Regional de Fonoaudiologia'\r\n },\r\n {\r\n initials: 'crefito',\r\n name: 'Conselho Regional de Fisioterapia e Terapia Ocupacional'\r\n },\r\n {\r\n initials: 'crn',\r\n name: 'Conselho Regional de Nutricionistas'\r\n },\r\n {\r\n initials: 'cro',\r\n name: 'Conselho Regional de Odontologia'\r\n },\r\n {\r\n initials: 'coren',\r\n name: 'Conselho Regional de Enfermagem'\r\n }\r\n];\r\n\r\nconst SelectProfessionalRegistrationTypes = (props) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default SelectProfessionalRegistrationTypes;\r\n","import React from 'react';\r\nimport 'moment/locale/pt-br';\r\nimport { Form, DatePicker } from 'antd';\r\n\r\nconst FilterRangePicker = ({\r\n name,\r\n initialValue,\r\n ranges = [],\r\n noStyle = true,\r\n label,\r\n width,\r\n allowClear,\r\n className\r\n}) => {\r\n return (\r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default FilterRangePicker;\r\n","import React from 'react';\r\nimport { formatCurrency } from 'util/formatters';\r\n\r\nconst DisplayAmount = ({\r\n className = '',\r\n amount = 0,\r\n useMoneySign = false,\r\n disabledColor = false,\r\n loading\r\n}) => {\r\n if (loading) {\r\n return ;\r\n }\r\n\r\n let classNames = ['gx-text-wrap-nowrap'];\r\n\r\n if (className) {\r\n classNames = [className];\r\n }\r\n\r\n if (!disabledColor && amount > 0) {\r\n classNames.push('gx-displayamount-positive');\r\n }\r\n\r\n if (!disabledColor && amount < 0) {\r\n classNames.push('gx-displayamount-negative');\r\n }\r\n\r\n return (\r\n \r\n {formatCurrency(amount, useMoneySign)}\r\n \r\n );\r\n};\r\n\r\nexport default DisplayAmount;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\nimport {\r\n BANKCHECK,\r\n BANKDEPOSIT,\r\n BILLETBANK,\r\n CASH,\r\n CREDITCARD,\r\n DEBITCARD,\r\n ELECTRONICTRANSFER,\r\n OTHER,\r\n PIX\r\n} from 'constants/types';\r\nimport display from 'constants/display';\r\n\r\nconst { Option } = Select;\r\n\r\nconst items = [\r\n PIX,\r\n CASH,\r\n BANKCHECK,\r\n CREDITCARD,\r\n DEBITCARD,\r\n BANKDEPOSIT,\r\n BILLETBANK,\r\n ELECTRONICTRANSFER,\r\n OTHER\r\n];\r\n\r\nconst SelectPaymentMethod = ({ ignoreds = [], width, ...rest }, ref) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default React.forwardRef(SelectPaymentMethod);\r\n","import React from 'react';\r\n\r\nconst Footer = ({ children }) => {\r\n return (\r\n \r\n
{children}
\r\n \r\n );\r\n};\r\n\r\nexport default Footer;\r\n","import React from 'react';\r\nimport { Drawer as DrawerAntd } from 'antd';\r\n\r\nconst Drawer = ({\r\n className,\r\n size,\r\n visible,\r\n title,\r\n onClose,\r\n children,\r\n footer\r\n}) => {\r\n const width =\r\n size && (size.includes('%') || size.includes('px')) ? size : undefined;\r\n const sizeClass = size && !width ? size : null;\r\n\r\n return (\r\n \r\n {children}\r\n {footer ? (\r\n \r\n {footer}\r\n \r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nexport default Drawer;\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\nimport { PAYMENT, RECEIPT } from 'constants/types';\r\nimport display from 'constants/display';\r\n\r\nconst { Option } = Select;\r\n\r\nconst SelectEntryType = (props) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default SelectEntryType;\r\n","const removeAccents = (text) => {\r\n if (!text) {\r\n return '';\r\n }\r\n\r\n return text.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\r\n};\r\n\r\nexport default removeAccents;\r\n","import React from 'react';\r\nimport { TreeSelect } from 'antd';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport removeAccents from 'util/removeAccents';\r\nimport display from 'constants/display';\r\n\r\nconst { TreeNode } = TreeSelect;\r\n\r\nexport default class RemoteSelectTree extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n dataSource: [],\r\n filterText: ''\r\n };\r\n\r\n this.handleLoadData();\r\n }\r\n\r\n handleLoadData = async (treeNode) => {\r\n const { dataSource } = this.state;\r\n const { params, resource } = this.props;\r\n let response;\r\n\r\n if (dataSource.length === 0 && !treeNode) {\r\n response = await api.fetch(`${resource}/tree`, params);\r\n }\r\n\r\n if (response && !response.errors) {\r\n this.setState({ dataSource: response.data.result });\r\n }\r\n };\r\n\r\n handleChange = (value) => {\r\n const { onChange, onChangeSelect, multiple, treeCheckable } = this.props;\r\n const { dataSource } = this.state;\r\n let data = [];\r\n\r\n this.filterNode(dataSource, data, value);\r\n\r\n if (!multiple && !treeCheckable) {\r\n data = data.length === 1 ? data[0] : undefined;\r\n }\r\n\r\n if (onChange) {\r\n onChange(data);\r\n }\r\n\r\n if (onChangeSelect) {\r\n onChangeSelect(data);\r\n }\r\n };\r\n\r\n filterNode = (items = [], data = [], indexes = []) => {\r\n for (let i = 0; i < items.length; i += 1) {\r\n const item = items[i];\r\n\r\n if (Array.isArray(indexes) && indexes.includes(item.id)) {\r\n data.push(this.normalizeItem(item));\r\n } else if (!Array.isArray(indexes) && indexes === item.id) {\r\n data.push(this.normalizeItem(item));\r\n }\r\n\r\n const subItems = this.getSubItems(item);\r\n\r\n for (let j = 0; j < subItems.length; j += 1) {\r\n this.filterNode([subItems[j]], data, indexes);\r\n }\r\n }\r\n };\r\n\r\n handleSearch = (filterText) => {\r\n this.setState({ filterText });\r\n };\r\n\r\n normalizeString = (text) => {\r\n return removeAccents(text).toLowerCase();\r\n };\r\n\r\n handleFilterTreeNode = (inputValue, { props }) => {\r\n const { onFilterTreeNode } = this.props;\r\n const title = this.getTitle(props.node);\r\n\r\n if (onFilterTreeNode) {\r\n return onFilterTreeNode(this.normalizeString(inputValue), props.node);\r\n }\r\n\r\n return this.normalizeString(title).includes(\r\n this.normalizeString(inputValue)\r\n );\r\n };\r\n\r\n getTitle = (node) => {\r\n const { getTitle } = this.props;\r\n\r\n if (getTitle) {\r\n return getTitle(node);\r\n }\r\n\r\n return node?.title || node?.description;\r\n };\r\n\r\n getSubItems = (node) => {\r\n const { getSubItems } = this.props;\r\n\r\n if (getSubItems) {\r\n return getSubItems(node);\r\n }\r\n\r\n return node?.subItems || [];\r\n };\r\n\r\n normalizeItem = (node) => {\r\n const { normalizeItem } = this.props;\r\n\r\n if (normalizeItem) {\r\n return normalizeItem(node);\r\n }\r\n\r\n return node;\r\n };\r\n\r\n handleDisabled = (node) => {\r\n const { onDisabled } = this.props;\r\n\r\n if (onDisabled) {\r\n return onDisabled(node);\r\n }\r\n\r\n return false;\r\n };\r\n\r\n renderChildren = (node) => {\r\n const { filterText } = this.state;\r\n const { id, type } = node;\r\n\r\n let title = this.getTitle(node);\r\n\r\n const index = this.normalizeString(title).indexOf(\r\n this.normalizeString(filterText)\r\n );\r\n\r\n const beforeStr = title.substr(0, index);\r\n const afterStr = title.substr(index + filterText.length);\r\n\r\n if (index > -1) {\r\n title = (\r\n <>\r\n \r\n {beforeStr}\r\n \r\n {title.substr(index, filterText.length)}\r\n \r\n {afterStr}\r\n \r\n {type ? (\r\n {` / ${display[type]}`}\r\n ) : null}\r\n \r\n );\r\n }\r\n\r\n const items = this.getSubItems(node) ?? [];\r\n\r\n return (\r\n \r\n {items.map((c) => this.renderChildren(c))}\r\n \r\n );\r\n };\r\n\r\n render() {\r\n const { dataSource } = this.state;\r\n const {\r\n className,\r\n maxTagCount,\r\n placeholder,\r\n style,\r\n multiple,\r\n maxTagPlaceholder,\r\n value,\r\n dropdownMatchSelectWidth,\r\n disabled,\r\n allowClear,\r\n onSelect,\r\n width\r\n } = this.props;\r\n\r\n const tempValue = multiple ? value?.map((c) => c.id) ?? [] : value?.id;\r\n\r\n return (\r\n this.setState({ filterText: '' })}\r\n filterTreeNode={this.handleFilterTreeNode}\r\n dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}\r\n placeholder={placeholder}\r\n maxTagPlaceholder={maxTagPlaceholder}\r\n showSearch\r\n onChange={this.handleChange}\r\n onSelect={onSelect}\r\n >\r\n {dataSource.map((c) => this.renderChildren(c))}\r\n \r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport { Select } from 'antd';\r\nimport {\r\n PROFILE_ACCOUNTANT,\r\n PROFILE_ADMINISTRADOR,\r\n PROFILE_DOCTOR,\r\n PROFILE_FINANCIAL,\r\n PROFILE_FINANCIAL_ADMINISTRATOR,\r\n PROFILE_OTHER,\r\n PROFILE_PARTNERSHIP,\r\n PROFILE_RECEPTIONIST,\r\n PROFILE_STUDENT\r\n} from 'constants/types';\r\nimport { display } from '../constants';\r\nimport SelectWrapperPrefix from './SelectWrapperPrefix';\r\n\r\nconst types = [\r\n {\r\n id: PROFILE_FINANCIAL_ADMINISTRATOR,\r\n name: display.PROFILES[PROFILE_FINANCIAL_ADMINISTRATOR]\r\n },\r\n { id: PROFILE_DOCTOR, name: display.PROFILES[PROFILE_DOCTOR] },\r\n { id: PROFILE_ADMINISTRADOR, name: display.PROFILES[PROFILE_ADMINISTRADOR] },\r\n { id: PROFILE_OTHER, name: display.PROFILES[PROFILE_OTHER] },\r\n { id: PROFILE_RECEPTIONIST, name: display.PROFILES[PROFILE_RECEPTIONIST] },\r\n { id: PROFILE_ACCOUNTANT, name: display.PROFILES[PROFILE_ACCOUNTANT] },\r\n { id: PROFILE_FINANCIAL, name: display.PROFILES[PROFILE_FINANCIAL] },\r\n { id: PROFILE_STUDENT, name: display.PROFILES[PROFILE_STUDENT] },\r\n { id: PROFILE_PARTNERSHIP, name: display.PROFILES[PROFILE_PARTNERSHIP] }\r\n];\r\n\r\nconst SelectProfile = ({ hideProfiles = [], prefix, ...rest }) => {\r\n if (!prefix) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default SelectProfile;\r\n","/* eslint-disable react/jsx-indent */\r\nimport React, { useState } from 'react';\r\nimport { Select, Form, Popover } from 'antd';\r\n\r\nconst FilterSelect = (\r\n {\r\n children,\r\n className,\r\n data,\r\n initialValue,\r\n isLast,\r\n name,\r\n multiple,\r\n placeholder,\r\n showSearch,\r\n label,\r\n width,\r\n disabled,\r\n allowClear,\r\n hidden,\r\n ...rest\r\n },\r\n ref\r\n) => {\r\n const [visible, setVisible] = useState({ popover: false, select: false });\r\n\r\n const handleVisiblePopover = (value) => {\r\n setVisible({ ...visible, popover: visible.select ? false : value });\r\n };\r\n\r\n const handleVisibleSelect = (value) => {\r\n setVisible({ select: value, popover: false });\r\n };\r\n\r\n const getPlaceholder = (values) => {\r\n if (values.length <= 0) {\r\n return '';\r\n }\r\n\r\n if (values.length === 1) {\r\n return values[0].label;\r\n }\r\n\r\n return (\r\n \r\n {values.map((c) => (\r\n
\r\n {c.label}\r\n
\r\n ))}\r\n \r\n }\r\n >\r\n {`${values.length} selecionados`}\r\n \r\n );\r\n };\r\n\r\n return (\r\n
\r\n );\r\n};\r\n\r\nexport default InputHide;\r\n","import React from 'react';\r\nimport { Tooltip } from 'antd';\r\nimport {\r\n platformDefaultIcons,\r\n platformAltIcons,\r\n getPlatformLabel\r\n} from 'constants/platforms';\r\n\r\nconst PlatformImageTooltip = ({ children, platform, showTooltip }) => {\r\n if (!showTooltip) {\r\n return children;\r\n }\r\n return {children};\r\n};\r\n\r\nconst PlatformImage = ({\r\n className,\r\n platform,\r\n type = 'default',\r\n showTooltip = true\r\n}) => {\r\n const icons = type === 'default' ? platformDefaultIcons : platformAltIcons;\r\n return icons[platform] ? (\r\n \r\n \r\n \r\n ) : null;\r\n};\r\n\r\nexport default PlatformImage;\r\n","import React from 'react';\r\nimport { Spin } from 'antd';\r\nimport { LoadingOutlined } from '@ant-design/icons';\r\n\r\nconst Loading = ({ className, fontSize = 24 }) => {\r\n return (\r\n }\r\n />\r\n );\r\n};\r\n\r\nexport default Loading;\r\n","import { api } from '@unicus/react-ui-kit';\r\nimport { message, Popconfirm, Tag } from 'antd';\r\nimport React from 'react';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { googleLogout, useGoogleLogin } from '@react-oauth/google';\r\nimport usePermissions from 'core/hooks/usePermissions';\r\nimport googleCalendarIcon from '../assets/images/platforms/google-calendar.png';\r\n\r\nconst GoogleCalendarButton = () => {\r\n const { refresh, refreshToken, googleCalendarConnected } = useAuth();\r\n const { isProfessional } = usePermissions();\r\n const connected = googleCalendarConnected;\r\n const [disconnecting, setDisconnecting] = React.useState(false);\r\n\r\n function refreshProfessionalToken() {\r\n refresh({\r\n refreshToken,\r\n type: 'professional'\r\n });\r\n }\r\n\r\n function handleConnect(refreshToken) {\r\n api\r\n .post('users/connect-google-calendar', { refreshToken })\r\n .then((res) => {\r\n if (!(res && res.errors)) {\r\n message.success('Conectado com sucesso');\r\n refreshProfessionalToken();\r\n } else {\r\n message.error(\r\n 'Ocorreu um erro inesperado ao processar sua solicitação'\r\n );\r\n }\r\n });\r\n }\r\n\r\n const connect = useGoogleLogin({\r\n onSuccess: (codeResponse) => {\r\n handleConnect(codeResponse.code);\r\n },\r\n flow: 'auth-code',\r\n ux_mode: 'popup',\r\n redirect_uri: 'postmessage',\r\n prompt: 'consent',\r\n scope: 'https://www.googleapis.com/auth/calendar'\r\n });\r\n\r\n function disconnect() {\r\n setDisconnecting(true);\r\n googleLogout();\r\n api\r\n .post('users/disconnect-google-calendar')\r\n .then((res) => {\r\n if (!(res && res.errors)) {\r\n message.success('Desconectado com sucesso');\r\n setDisconnecting(false);\r\n refreshProfessionalToken();\r\n } else {\r\n message.error(\r\n 'Ocorreu um erro inesperado ao processar sua solicitação'\r\n );\r\n }\r\n })\r\n .catch(() => {\r\n setDisconnecting(false);\r\n });\r\n }\r\n\r\n async function toogleConnection() {\r\n if(!isProfessional) {\r\n message.warning('Você não tem permissão para acessar essa funcionalidade.');\r\n return;\r\n }\r\n\r\n if (connected) {\r\n setDisconnecting(true);\r\n } else {\r\n setDisconnecting(false);\r\n connect();\r\n }\r\n }\r\n\r\n const StatusTag = () => {\r\n if (connected) {\r\n return (\r\n toogleConnection()}\r\n onConfirm={() => disconnect()}\r\n onCancel={() => setDisconnecting(false)}\r\n okText=\"Sim\"\r\n cancelText=\"Não\"\r\n >\r\n \r\n {connected ? 'Habilitado' : 'Desabilitado'}\r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n toogleConnection()}>\r\n {connected ? 'Habilitado' : 'Desabilitado'}\r\n \r\n );\r\n };\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n \r\n Google Agenda\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default GoogleCalendarButton;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n ","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUGVYSWZNTQAqAAAACAACARIAAwAAAAEAAQAAh2kABAAAAAEAAAAmAAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAADIoAMABAA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q+Ws1o+EgIPnblKNf4gyHg4BEv7nkq8WMh8P6gBhXH8zXFpeipc1BOKwPiNO9+EyKNpn8dDUn4bA+IDP3XfGmdHKVRy3nZ7u0YklzFA7rA+J1UC4T32XFhkEn5FHux68hL+WJwvrrQWYHLr8xTyvE2mXNYTi8dWF9QFRJu8ZV263dcPLQsZyGIx0BkV7OPrjtEbkhz+152BatW8YchyM1AfE6Onv/tm+xJ+lwfHIejlQF5HhIZE8y0395QYbvkzffbnkocb0Ix3FZq++s6Lvu5ZhE7g96g4y7off6PRvcucJW7ZizfKcNUViQ3ZPWOkSN7E5a2GQO237Hw+zqs2QIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAQCoE/g8CopfNAaLNUQAAAABJRU5ErkJggg==\"","import React from 'react';\r\nimport useCompany from 'core/hooks/useCompany';\r\nimport { formatFederalTaxNumber } from 'util/formatters';\r\nimport { Col, Row } from 'antd';\r\n\r\nconst ReportHeader = ({ title, children, renderRight }) => {\r\n const { company } = useCompany();\r\n\r\n const companyName = company?.name;\r\n const federalTaxNumber = formatFederalTaxNumber(company.federalTaxNumber);\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n {companyName}\r\n {federalTaxNumber && (\r\n \r\n {`(${federalTaxNumber})`}\r\n \r\n )}\r\n \r\n
\r\n
\r\n {title}\r\n
\r\n {children}\r\n \r\n\r\n {renderRight}\r\n
\r\n );\r\n};\r\n\r\nexport default ReportHeader;\r\n","import React from 'react';\r\nimport {\r\n formartDateTimeUTC,\r\n formatFederalTaxNumber,\r\n formatPhone\r\n} from 'util/formatters';\r\n\r\nconst Display = ({\r\n className = '',\r\n value,\r\n loading,\r\n isPhone,\r\n isFederalTaxNumber,\r\n isDate,\r\n format\r\n}) => {\r\n if (loading) {\r\n return ;\r\n }\r\n\r\n let formattedValue = value;\r\n let classNames = ['gx-text-wrap-nowrap'];\r\n\r\n if (className) {\r\n classNames = [className];\r\n }\r\n\r\n if (isPhone) {\r\n formattedValue = formatPhone(value);\r\n }\r\n\r\n if (isFederalTaxNumber) {\r\n formattedValue = formatFederalTaxNumber(value);\r\n }\r\n\r\n if (isDate) {\r\n formattedValue = formartDateTimeUTC(value, format);\r\n }\r\n\r\n return {formattedValue};\r\n};\r\n\r\nexport default Display;\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const PLATFORM = 'PLATFORM';\r\nexport const PLATFORM_GET = 'PLATFORM_GET';\r\nexport const PLATFORM_GET_FINISHED = 'PLATFORM_GET_FINISHED';\r\nexport const PLATFORM_UPDATE = 'PLATFORM_UPDATE';\r\nexport const PLATFORM_UPDATE_FINISHED = 'PLATFORM_UPDATE_FINISHED';\r\n\r\nexport const PLATFORM_SHOW_CONNECTIONS = 'PLATFORM_SHOW_CONNECTIONS';\r\nexport const PLATFORM_CLOSE_CONNECTIONS = 'PLATFORM_CLOSE_CONNECTIONS';\r\n\r\nexport const PLATFORM_RELOAD_CONNECTIONS = 'PLATFORM_RELOAD_CONNECTIONS';\r\nexport const PLATFORM_RELOAD = 'PLATFORM_RELOAD';\r\n\r\nexport const PLATFORM_SHOW_SYNC_ORDERS = 'PLATFORM_SHOW_SYNC_ORDERS';\r\nexport const PLATFORM_CLOSE_SYNC_ORDERS = 'PLATFORM_CLOSE_SYNC_ORDERS';\r\n\r\nexport const PLATFORM_SYNC_ORDERS = 'PLATFORM_SYNC_ORDERS';\r\nexport const PLATFORM_SYNC_ORDERS_FINISHED = 'PLATFORM_SYNC_ORDERS_FINISHED';\r\n\r\nexport const PLATFORM_SHOW_FILE_IMPORT_ORDERS =\r\n 'PLATFORM_SHOW_FILE_IMPORT_ORDERS';\r\nexport const PLATFORM_CLOSE_FILE_IMPORT_ORDERS =\r\n 'PLATFORM_CLOSE_FILE_IMPORT_ORDERS';\r\n\r\nexport const PLATFORM_FILE_IMPORT_ORDERS = 'PLATFORM_FILE_IMPORT_ORDERS';\r\nexport const PLATFORM_FILE_IMPORT_ORDERS_FINISHED =\r\n 'PLATFORM_FILE_IMPORT_ORDERS_FINISHED';\r\n\r\nexport const getByPlatformId = (platformId) => async (dispatch) => {\r\n const queryString = new URLSearchParams({ platformId }).toString();\r\n\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'platforms',\r\n actionType: PLATFORM_GET,\r\n effect: async () =>\r\n api.get('platforms', `connection-by-platform-id?${queryString}`)\r\n });\r\n};\r\n\r\nexport const getByConnectionId = (connectionId) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'platforms',\r\n actionType: PLATFORM_GET,\r\n effect: async () => api.get('platforms', `${connectionId}/connection`)\r\n });\r\n};\r\n\r\nexport const update = (payload = {}, onSuccess) => async (dispatch) => {\r\n const { id } = payload;\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'platforms',\r\n actionType: PLATFORM_UPDATE,\r\n payload,\r\n effect: async () => api.put(`platforms/${id}/connection`, { ...payload }),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const showConnections = (platform) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PLATFORM_SHOW_CONNECTIONS, 'platforms', platform)\r\n );\r\n};\r\n\r\nexport const closeConnections = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PLATFORM_CLOSE_CONNECTIONS, 'platforms'));\r\n};\r\n\r\nexport const reloadConnections = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n PLATFORM_RELOAD_CONNECTIONS,\r\n 'platforms/connections'\r\n )\r\n );\r\n};\r\n\r\nexport const reload = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PLATFORM_RELOAD, 'platforms'));\r\n};\r\n\r\nexport const showSyncOrders = (platform, connection) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PLATFORM_SHOW_SYNC_ORDERS, 'platforms', {\r\n platform,\r\n connection\r\n })\r\n );\r\n};\r\n\r\nexport const closeSyncOrders = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PLATFORM_CLOSE_SYNC_ORDERS, 'platforms'));\r\n};\r\n\r\nexport const syncOrders = ({ initialDate, connectionId }, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'platforms',\r\n actionType: PLATFORM_SYNC_ORDERS,\r\n effect: async () =>\r\n api.post(\r\n `platforms/syncronize-orders?initialDate=${initialDate}&connectionId=${connectionId}`\r\n ),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const showFileImportOrders = (platform, connection) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PLATFORM_SHOW_FILE_IMPORT_ORDERS, 'platforms', {\r\n platform,\r\n connection\r\n })\r\n );\r\n};\r\n\r\nexport const closeFileImportOrders = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PLATFORM_CLOSE_FILE_IMPORT_ORDERS, 'platforms')\r\n );\r\n};\r\n\r\nexport const sendFileImportOrders = (connectionId, file, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'platforms',\r\n actionType: PLATFORM_FILE_IMPORT_ORDERS,\r\n effect: async () =>\r\n api.post(\r\n `platforms/connections/${connectionId}/import-file-orders`,\r\n file\r\n ),\r\n onSuccess\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const COMPANY = 'COMPANY';\r\nexport const COMPANY_GET = 'COMPANY_GET';\r\nexport const COMPANY_GET_FINISHED = 'COMPANY_GET_FINISHED';\r\nexport const COMPANY_GET_SETTINGS = 'COMPANY_GET_SETTINGS';\r\nexport const COMPANY_GET_SETTINGS_FINISHED = 'COMPANY_GET_SETTINGS_FINISHED';\r\nexport const COMPANY_UPDATE = 'COMPANY_UPDATE';\r\nexport const COMPANY_UPDATE_FINISHED = 'COMPANY_UPDATE_FINISHED';\r\nexport const COMPANY_SETTINGS_UPDATE = 'COMPANY_SETTINGS_UPDATE';\r\nexport const COMPANY_SETTINGS_UPDATE_FINISHED =\r\n 'COMPANY_SETTINGS_UPDATE_FINISHED';\r\nexport const COMPANY_CREATE = 'COMPANY_CREATE';\r\nexport const COMPANY_CREATE_FINISHED = 'COMPANY_CREATE_FINISHED';\r\nexport const COMPANY_UPLOAD_CERTIFICATE = 'COMPANY_UPLOAD_CERTIFICATE';\r\nexport const COMPANY_UPLOAD_CERTIFICATE_FINISHED =\r\n 'COMPANY_UPLOAD_CERTIFICATE_FINISHED';\r\nexport const COMPANY_UPLOAD_CERTIFICATE_ERROR =\r\n 'COMPANY_UPLOAD_CERTIFICATE_ERROR';\r\nexport const COMPANY_CANCEL = 'COMPANY_CANCEL';\r\nexport const COMPANY_FIND = 'COMPANY_FIND';\r\nexport const COMPANY_ISSUE_TYPES = 'COMPANY_ISSUE_TYPES';\r\nexport const COMPANY_ALLOW_REGISTER = 'COMPANY_ALLOW_REGISTER';\r\nexport const COMPANY_SAVE_CERTIFICATE = 'COMPANY_SAVE_CERTIFICATE';\r\nexport const COMPANY_GET_SETUP_STEPS = 'COMPANY_GET_SETUP_STEPS';\r\nexport const COMPANY_GET_SETUP_STEPS_FINISHED =\r\n 'COMPANY_GET_SETUP_STEPS_FINISHED';\r\n\r\nexport const COMPANY_SERVICE_APPROXIMATE_TAXES_GET =\r\n 'COMPANY_SERVICE_APPROXIMATE_TAXES_GET';\r\n\r\nexport const get = (id, tab) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n payload: { tab },\r\n resource: 'companies',\r\n actionType: COMPANY_GET,\r\n effect: async () => api.get('companies', id)\r\n });\r\n};\r\n\r\nexport const getSettings = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_GET_SETTINGS,\r\n effect: async () => api.fetch('companies/:id/settings', { id })\r\n });\r\n};\r\n\r\nexport const update = (payload = {}, onSuccess) => async (dispatch) => {\r\n const { id } = payload;\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_UPDATE,\r\n payload,\r\n effect: async () => api.put(`companies/${id}`, { ...payload }),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const updateSettings = (id, payload = {}, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_SETTINGS_UPDATE,\r\n payload,\r\n effect: async () => api.put(`companies/${id}/settings`, payload),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const create = (payload = {}, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_CREATE,\r\n payload,\r\n effect: async () => api.post(`companies`, { ...payload }),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const postCertificateError = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(COMPANY_UPLOAD_CERTIFICATE_ERROR, 'companies')\r\n );\r\n};\r\n\r\nexport const postCertificate = (formData, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_UPLOAD_CERTIFICATE,\r\n effect: async () => api.post(`companies/certificates`, formData),\r\n onSuccess,\r\n onFail: () => dispatch(postCertificateError())\r\n });\r\n};\r\n\r\nexport const cancel = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(COMPANY_CANCEL, 'companies'));\r\n};\r\n\r\nexport const findByFederalTaxNumber = (\r\n federaltaxnumber,\r\n onSuccess,\r\n onFail\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_FIND,\r\n effect: async () => api.get('companies/find', federaltaxnumber),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const getIssueTypes = (\r\n companyId,\r\n model,\r\n environmentType,\r\n onSuccess,\r\n onFail\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_ISSUE_TYPES,\r\n effect: async () =>\r\n api.fetch('companies/:companyId/issue-types', {\r\n companyId,\r\n model,\r\n environmentType\r\n }),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const allowRegisterFederalTaxNumber = (\r\n federaltaxnumber,\r\n onSuccess,\r\n onFail\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_ALLOW_REGISTER,\r\n effect: async () =>\r\n api.get(\r\n 'companies/is-allow-register-federal-tax-number',\r\n federaltaxnumber\r\n ),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const saveCertificate = (formData, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_SAVE_CERTIFICATE,\r\n effect: async () => api.post(`companies/certificates`, formData),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const SetupSteps = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_GET_SETUP_STEPS,\r\n effect: async () => api.fetch('companies/:id/setup-steps-completed', { id })\r\n });\r\n};\r\n\r\nexport const getServiceApproximateTaxes = (\r\n federalServiceCode,\r\n onSuccess\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'companies',\r\n actionType: COMPANY_SERVICE_APPROXIMATE_TAXES_GET,\r\n onSuccess,\r\n effect: async () =>\r\n api.get(\r\n 'companies/service-approximate-taxes',\r\n `?federalservicecode=${federalServiceCode}`\r\n )\r\n });\r\n};\r\n","import { dispatcher, api, RESOURCE_CREATE } from '@unicus/react-ui-kit';\r\n\r\nexport const EVENT = 'EVENT';\r\n\r\nexport const EVENT_FETCH_APPOINTMENT_TODAY = 'EVENT_FETCH_APPOINTMENT_TODAY';\r\nexport const EVENT_FETCH_APPOINTMENT_TODAY_FINISHED =\r\n 'EVENT_FETCH_APPOINTMENT_TODAY_FINISHED';\r\n\r\nexport const RESOURCE_FETCH = 'RESOURCE_FETCH';\r\nexport const RESOURCE_FETCH_FINISHED = 'RESOURCE_FETCH_FINISHED';\r\n\r\nexport const EVENT_CHANGE_STATUS = 'EVENT_CHANGE_STATUS';\r\nexport const EVENT_CHANGE_STATUS_FINISHED = 'EVENT_CHANGE_STATUS_FINISHED';\r\n\r\nexport const EVENT_DELETE = 'EVENT_DELETE';\r\nexport const EVENT_DELETE_FINISHED = 'EVENT_DELETE_FINISHED';\r\n\r\nexport const EVENT_GET_VIEW = 'EVENT_GET_VIEW';\r\nexport const EVENT_GET_VIEW_FINISHED = 'EVENT_GET_VIEW_FINISHED';\r\n\r\nexport const EVENT_GET_VIEW_CLOSE = 'EVENT_GET_VIEW_CLOSE';\r\n\r\nexport const EVENT_REFRESH = 'EVENT_REFRESH';\r\n\r\nexport const EVENT_SCHEDULES_UNLOAD = 'EVENT_SCHEDULES_UNLOAD';\r\nexport const EVENT_SCHEDULES = 'EVENT_SCHEDULES';\r\nexport const EVENT_SCHEDULES_FINISHED = 'EVENT_SCHEDULES_FINISHED';\r\n\r\nexport const EVENT_FETCH_FAST_SEARCH = 'EVENT_FETCH_FAST_SEARCH';\r\nexport const EVENT_FETCH_FAST_SEARCH_FINISHED =\r\n 'EVENT_FETCH_FAST_SEARCH_FINISHED';\r\n\r\nexport const fetch = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: RESOURCE_FETCH,\r\n effect: async () => api.fetch('events', params)\r\n });\r\n};\r\n\r\nexport const fetchFastSearch = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: EVENT_FETCH_FAST_SEARCH,\r\n payload: params,\r\n effect: async () => api.fetch('events/fast-search', params)\r\n });\r\n};\r\n\r\nexport const fetchAppointmentToday = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: EVENT_FETCH_APPOINTMENT_TODAY,\r\n effect: async () => api.fetch('events', params)\r\n });\r\n};\r\n\r\nexport const fetchByPatient = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: EVENT_SCHEDULES,\r\n effect: async () => api.fetch('events', params)\r\n });\r\n};\r\n\r\nexport const fetchByPatientUnload = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(EVENT_SCHEDULES_UNLOAD, 'events'));\r\n};\r\n\r\nexport const changeStatus = (id, status, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n payload: status,\r\n actionType: EVENT_CHANGE_STATUS,\r\n effect: async () => api.put(`events/${id}/change-status`, { status }),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const remove = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: EVENT_DELETE,\r\n payload: id,\r\n effect: async () => api.del('events', id)\r\n });\r\n};\r\n\r\nexport const removeWithRecurring = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: EVENT_DELETE,\r\n payload: id,\r\n effect: async () => api.del('events', `${id}/with-recurring`)\r\n });\r\n};\r\n\r\nexport const refresh = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(EVENT_REFRESH, 'events'));\r\n};\r\n\r\nexport const getView = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'events',\r\n actionType: EVENT_GET_VIEW,\r\n effect: async () => api.get('events', id),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const getViewClose = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(EVENT_GET_VIEW_CLOSE, 'events'));\r\n};\r\n\r\nexport const createPatient = (id, data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: RESOURCE_CREATE,\r\n effect: async () => api.post(`events/${id}/patient`, data),\r\n payload: data,\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const updatePatient = (id, data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: RESOURCE_CREATE,\r\n effect: async () => api.put(`events/${id}/patient`, data),\r\n payload: data,\r\n onSuccess\r\n });\r\n};\r\n","import { formartOnlyNumber } from '@unicus/react-ui-kit';\r\nconst mobilePhoneValidator = (_, value = '') => {\r\n const formattedValue = formartOnlyNumber(value);\r\n\r\n if (!formattedValue) {\r\n return Promise.resolve();\r\n }\r\n\r\n if (formattedValue.length < 11) {\r\n return Promise.reject(new Error('Celular inválido'));\r\n }\r\n\r\n return Promise.resolve();\r\n};\r\n\r\nexport default mobilePhoneValidator;\r\n","import { formartOnlyNumber } from '@unicus/react-ui-kit';\r\n\r\nconst postalCodeValidator = (_, value = '') => {\r\n const formattedValue = formartOnlyNumber(value);\r\n\r\n if (!formattedValue) {\r\n return Promise.resolve();\r\n }\r\n\r\n if (formattedValue.length < 8 && formattedValue.length > 0) {\r\n return Promise.reject(new Error('Preencha o campo CEP'));\r\n }\r\n\r\n return Promise.resolve();\r\n};\r\n\r\nexport default postalCodeValidator;\r\n","import React from 'react';\r\nimport { Col, Form } from 'antd';\r\n\r\nconst ResCol = ({\r\n span = 24,\r\n xs = 24,\r\n sm = 24,\r\n md,\r\n lg,\r\n xl,\r\n xxl,\r\n children,\r\n className\r\n}) => {\r\n if (!xs) {\r\n xs = 24;\r\n }\r\n\r\n if (!sm) {\r\n sm = 24;\r\n }\r\n\r\n if (!md) {\r\n md = span;\r\n }\r\n\r\n if (!lg) {\r\n lg = span;\r\n }\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport default ResCol;\r\n","const platforms = [\r\n { key: 'kuidare', label: 'Kuidare' },\r\n { key: 'kiwify', label: 'Kiwify' },\r\n { key: 'eduzz', label: 'Eduzz' },\r\n { key: 'hotmart', label: 'Hotmart' },\r\n { key: 'monetizze', label: 'Monetizze' },\r\n { key: 'tmb', label: 'TMB Educação' }\r\n];\r\n\r\nconst platformDefaultIcons = {\r\n kuidare: require('assets/images/platforms/kuidare.png'),\r\n kiwify: require('assets/images/platforms/kiwify.png'),\r\n eduzz: require('assets/images/platforms/eduzz.png'),\r\n hotmart: require('assets/images/platforms/hotmart.png'),\r\n monetizze: require('assets/images/platforms/monetizze.png'),\r\n tmb: require('assets/images/platforms/tmb.png')\r\n};\r\n\r\nconst platformAltIcons = {\r\n kuidare: require('assets/images/platforms/kuidare.alt.png'),\r\n kiwify: require('assets/images/platforms/kiwify.alt.png'),\r\n eduzz: require('assets/images/platforms/eduzz.alt.png'),\r\n hotmart: require('assets/images/platforms/hotmart.alt.png'),\r\n monetizze: require('assets/images/platforms/monetizze.alt.png'),\r\n tmb: require('assets/images/platforms/tmb.alt.png')\r\n};\r\n\r\nconst getPlatformLabel = (platform) => {\r\n return platforms.find((c) => c.key === platform).label;\r\n};\r\n\r\nexport { platformDefaultIcons, platformAltIcons, platforms, getPlatformLabel };\r\n","import React from 'react';\r\n\r\nconst FinancialEntryInstallmentNumber = ({ form, value }) => {\r\n const totalInstallments = form.getFieldValue('totalInstallments');\r\n\r\n return {`${value}/${totalInstallments}`};\r\n};\r\nexport default FinancialEntryInstallmentNumber;\r\n","import React, { useEffect, useState } from 'react';\r\nimport lodash from 'lodash';\r\nimport { FormItemWrap, api } from '@unicus/react-ui-kit';\r\nimport {\r\n Col,\r\n DatePicker,\r\n Form,\r\n Row,\r\n Modal,\r\n Divider,\r\n Alert,\r\n message,\r\n Input\r\n} from 'antd';\r\nimport {\r\n FormItemUserDetail,\r\n InputCurrency,\r\n SelectBoolean,\r\n SelectPaymentMethod\r\n} from 'components';\r\nimport {\r\n BANKCHECK,\r\n BILLETBANK,\r\n CREDITCARD,\r\n DEBITCARD,\r\n PAYMENT,\r\n RECEIPT\r\n} from 'constants/types';\r\nimport RemoteSelect from 'components/RemoteSelect';\r\nimport moment from 'moment';\r\nimport useAuth from 'core/hooks/useAuth';\r\n\r\nconst FinancialEntryFormPaymentItem = ({\r\n onClose,\r\n field,\r\n type,\r\n form,\r\n disabled = false,\r\n showAudit = false\r\n}) => {\r\n const initialValues = form.getFieldValue(['items', field.name]);\r\n const [drawerForm] = Form.useForm();\r\n const selectRef = React.useRef(null);\r\n const [checkingAccount, setCheckingAccount] = useState(null);\r\n const [paymentMethod, setPaymentMethod] = useState(\r\n initialValues.payment.method\r\n );\r\n const { accountantId } = useAuth();\r\n const typeLabel = type === RECEIPT ? 'recebimento' : 'pagamento';\r\n\r\n const getLabelPaymentMethod = () => {\r\n return type === RECEIPT ? 'Forma de recebimento' : 'Forma de pagamento';\r\n };\r\n\r\n const hasChangedAmount = (values) => {\r\n return (\r\n lodash.get(values, 'payment.interestAmount') !== undefined ||\r\n lodash.get(values, 'payment.discount') !== undefined ||\r\n lodash.get(values, 'payment.fineAmount') !== undefined\r\n );\r\n };\r\n\r\n const handleSelectCheckingAccount = (newCheckingAccount) => {\r\n if (newCheckingAccount?.type === 'card') {\r\n if (newCheckingAccount.credicardType !== type) {\r\n message.error(\r\n `Conta do tipo cartão não pode ser usado para ${typeLabel}`\r\n );\r\n\r\n setTimeout(() => {\r\n drawerForm.setFieldsValue({ checkingAccount: null });\r\n }, 250);\r\n return;\r\n }\r\n }\r\n\r\n setCheckingAccount(newCheckingAccount);\r\n };\r\n\r\n const hasChangedPaymentMethodOrCheckingAccount = (values) => {\r\n return (\r\n lodash.get(values, 'checkingAccount') !== undefined ||\r\n lodash.get(values, 'payment.method') !== undefined ||\r\n lodash.get(values, 'payment.date') !== undefined\r\n );\r\n };\r\n\r\n const alertNotCredicard = () => {\r\n Modal.info({\r\n width: '700px',\r\n title: 'Conta não está configurada para usar cartão de crédito',\r\n content:\r\n 'A conta selecionada não possui as informações do dia de fechamento e vencimento da fatura do cartão de crédito. Favor informar esses dados no cadastro da conta. A data disponível deve ser a data do vencimento da fatura do cartão que essa despesa estará incluída.'\r\n });\r\n };\r\n\r\n const getReceiptNextBusinessDay = ({ method, date }) => {\r\n const nextBusinessDay = moment(date).clone();\r\n\r\n switch (method) {\r\n case BANKCHECK:\r\n case DEBITCARD:\r\n return nextBusinessDay.add(1, 'day');\r\n case BILLETBANK:\r\n return nextBusinessDay.add(2, 'day');\r\n case CREDITCARD:\r\n return nextBusinessDay.add(30, 'day');\r\n default:\r\n return nextBusinessDay;\r\n }\r\n };\r\n\r\n const getPaymentNextBusinessDay = ({ method, date }) => {\r\n const nextBusinessDay = moment(date).clone();\r\n\r\n if (method === CREDITCARD) {\r\n const { type, credicardInvoiceClosingDay, credicardInvoiceDueDate } =\r\n checkingAccount ?? {};\r\n\r\n if (!(type === 'bankAccount')) {\r\n return nextBusinessDay.add(30, 'day');\r\n }\r\n\r\n if (!(type === 'card')) {\r\n alertNotCredicard();\r\n return nextBusinessDay.add(30, 'day');\r\n }\r\n\r\n const invoiceClosing = nextBusinessDay\r\n .clone()\r\n .date(credicardInvoiceClosingDay);\r\n\r\n const invoiceDueDate = nextBusinessDay\r\n .clone()\r\n .date(credicardInvoiceDueDate);\r\n\r\n const newDueDate = moment(invoiceDueDate).clone();\r\n\r\n if (newDueDate > date && date <= invoiceClosing) {\r\n return newDueDate.date(credicardInvoiceDueDate);\r\n }\r\n\r\n return newDueDate.add(1, 'month').date(credicardInvoiceDueDate);\r\n }\r\n\r\n switch (method) {\r\n case BANKCHECK:\r\n return nextBusinessDay.add(1, 'day');\r\n default:\r\n return nextBusinessDay;\r\n }\r\n };\r\n\r\n const getNextBusinessDay = ({ payment, dueDate }) => {\r\n let nextBusinessDay = null;\r\n\r\n if (type === RECEIPT) {\r\n nextBusinessDay = getReceiptNextBusinessDay(payment);\r\n }\r\n\r\n if (type === PAYMENT) {\r\n nextBusinessDay = getPaymentNextBusinessDay(payment, dueDate);\r\n }\r\n\r\n if (nextBusinessDay) {\r\n api\r\n .get(`holidays/next-business-day`, nextBusinessDay.toISOString())\r\n .then(({ data }) => {\r\n if (data?.result) {\r\n drawerForm.setFields([\r\n {\r\n name: ['payment', 'dateOfCompensation'],\r\n value: moment(data?.result)\r\n }\r\n ]);\r\n }\r\n });\r\n }\r\n };\r\n\r\n const checkIsPaymentMethodAllowedForCheckingAccount = (\r\n changedValues,\r\n item\r\n ) => {\r\n const { checkingAccount, payment } = item;\r\n\r\n if (!(checkingAccount && payment.method)) {\r\n return;\r\n }\r\n\r\n const changedCheckingAccount =\r\n lodash.get(changedValues, 'checkingAccount') !== undefined;\r\n const changedPaymentMethod =\r\n lodash.get(changedValues, 'payment.method') !== undefined;\r\n const changedPaymentDate =\r\n lodash.get(changedValues, 'payment.date') !== undefined;\r\n\r\n if (changedCheckingAccount || changedPaymentMethod) {\r\n api\r\n .post(\r\n `checking-accounts/${checkingAccount?.key}/validate-payment-methods/${payment.method}`\r\n )\r\n .then(({ data }) => {\r\n if (!data?.result) {\r\n Modal.confirm({\r\n width: '700px',\r\n cancelText: 'Voltar',\r\n okText: 'Continuar',\r\n afterClose: () => {\r\n selectRef.current.focus();\r\n },\r\n onCancel: () => {\r\n if (changedCheckingAccount) {\r\n setCheckingAccount(null);\r\n drawerForm.setFieldsValue({ checkingAccount: null });\r\n }\r\n\r\n if (changedPaymentMethod) {\r\n drawerForm.setFieldsValue({ payment: { method: null } });\r\n }\r\n },\r\n\r\n onOk: () => {},\r\n title: `A forma de ${typeLabel} selecionada não é recomendada para usar nesta conta. Deseja prosseguir?`\r\n });\r\n }\r\n });\r\n }\r\n\r\n if ((changedPaymentMethod || changedPaymentDate) && item?.payment?.date) {\r\n getNextBusinessDay(item);\r\n }\r\n };\r\n\r\n const handleSubmit = () => {\r\n drawerForm.validateFields().then((values) => {\r\n form.setFields([\r\n {\r\n name: ['items', field.name],\r\n value: {\r\n ...initialValues,\r\n ...values,\r\n checkingAccount: {\r\n ...values.checkingAccount,\r\n item: checkingAccount\r\n }\r\n }\r\n }\r\n ]);\r\n\r\n onClose();\r\n });\r\n };\r\n\r\n const allowsYouToChangeCharges = (values) => {\r\n if (type !== RECEIPT) {\r\n return false;\r\n }\r\n\r\n return (\r\n lodash.get(values, 'payment.method') !== undefined ||\r\n lodash.get(values, 'payment.date') !== undefined\r\n );\r\n };\r\n\r\n const handleChangeCharges = (values) => {\r\n const { amount, dueDate, payment } = values;\r\n\r\n const params = {\r\n amount,\r\n dueDate: moment(dueDate).format('YYYY-MM-DD'),\r\n paymentDate: moment(payment.date).format('YYYY-MM-DD')\r\n };\r\n\r\n api\r\n .fetch('financial-entries/calculate-charges', params)\r\n .then(({ data }) => {\r\n if (data?.result) {\r\n drawerForm.setFields([\r\n {\r\n name: ['payment', 'interestAmount'],\r\n value: data?.result.interestAmount\r\n },\r\n {\r\n name: ['payment', 'fineAmount'],\r\n value: data?.result.fineAmount\r\n },\r\n {\r\n name: ['payment', 'discount'],\r\n value: data?.result.discount\r\n },\r\n {\r\n name: ['payment', 'netAmount'],\r\n value: data?.result.netAmount\r\n }\r\n ]);\r\n }\r\n });\r\n };\r\n\r\n const handleChangeValues = (changedValues, values) => {\r\n if (allowsYouToChangeCharges(changedValues)) {\r\n handleChangeCharges(values);\r\n }\r\n\r\n if (hasChangedAmount(changedValues)) {\r\n const netAmount =\r\n values.amount +\r\n values.payment.interestAmount +\r\n values.payment.fineAmount -\r\n values.payment.discount;\r\n\r\n drawerForm.setFieldsValue({ payment: { netAmount } });\r\n }\r\n\r\n if (paymentMethod !== values.payment.method) {\r\n setPaymentMethod(values.payment.method);\r\n }\r\n\r\n if (!hasChangedPaymentMethodOrCheckingAccount(changedValues)) {\r\n return;\r\n }\r\n\r\n checkIsPaymentMethodAllowedForCheckingAccount(changedValues, values);\r\n };\r\n\r\n const handleTriggerClose = () => {\r\n if (disabled) {\r\n onClose();\r\n return;\r\n }\r\n\r\n Modal.confirm({\r\n width: '700px',\r\n cancelText: 'Voltar',\r\n okText: 'Sim',\r\n onOk: () => {\r\n form.setFields([\r\n {\r\n name: ['items', field.name, 'isPaid'],\r\n value: false\r\n }\r\n ]);\r\n onClose();\r\n },\r\n title: 'Deseja cancelar o pagamento dessa parcela?'\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (!checkingAccount) {\r\n setCheckingAccount(initialValues?.checkingAccount?.item);\r\n }\r\n }, []);\r\n\r\n const handleBeforeBinding = (values) => {\r\n if (!values.payment.date) {\r\n values.payment.date = moment();\r\n }\r\n\r\n return values;\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n\r\n {accountantId && checkingAccount?.ledgerAccount === null && (\r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n date.isAfter(moment(), 'day')}\r\n disabled={disabled}\r\n />\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n {['creditCard', 'debitCard'].includes(paymentMethod) ? (\r\n \r\n \r\n \r\n \r\n \r\n ) : null}\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {showAudit && (\r\n <>\r\n Auditoria\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {showAudit && initialValues.exportAudit && (\r\n <>\r\n Auditoria contábil\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default FinancialEntryFormPaymentItem;\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const LEDGERACCOUNT = 'LEDGERACCOUNT';\r\n\r\nexport const LEDGERACCOUNT_FILE_IMPORT = 'LEDGERACCOUNT_FILE_IMPORT';\r\nexport const LEDGERACCOUNT_FILE_IMPORT_FINISHED =\r\n 'LEDGERACCOUNT_FILE_IMPORT_FINISHED';\r\n\r\nexport const importFile = (file, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'ledgerAccounts',\r\n actionType: LEDGERACCOUNT_FILE_IMPORT,\r\n effect: async () => api.post(`ledger-accounts/import-file`, file),\r\n onSuccess,\r\n onFail: () => true\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const STANDARDHISTORY = 'STANDARDHISTORY';\r\n\r\nexport const STANDARDHISTORY_FILE_IMPORT = 'STANDARDHISTORY_FILE_IMPORT';\r\nexport const STANDARDHISTORY_FILE_IMPORT_FINISHED =\r\n 'STANDARDHISTORY_FILE_IMPORT_FINISHED';\r\n\r\nexport const importFile = (file, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'standardHistories',\r\n actionType: STANDARDHISTORY_FILE_IMPORT,\r\n effect: async () => api.post(`standard-histories/import-file`, file),\r\n onSuccess,\r\n onFail: () => true\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const PACKAGE = 'PACKAGE';\r\n\r\nexport const PACKAGE_FETCH = 'PACKAGE_FETCH';\r\nexport const PACKAGE_FETCH_FINISHED = 'PACKAGE_FETCH_FINISHED';\r\n\r\nexport const fetch = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'packages',\r\n actionType: PACKAGE_FETCH,\r\n effect: async () => api.fetch('packages/without-pagination', params)\r\n });\r\n};\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYQAAAB5CAMAAAAOGKaSAAAAA3NCSVQICAjb4U/gAAAC6FBMVEUhtX2l4ck0u4j///9jy6Td9OuD1rbH7N5HwpMjtn656Nbv+fVUxZtyz6yb3cQquILR8OQ7vo2x5dLp9/JszqmP2b5cyaDz+/h707JNxJcxuocmt4DZ8unj9e6/6tpBv5Cr485mzKY4vYvL7uFZx56L2Lv2/PmV28Ht+fQitX2h38dKw5V+1LTD69wsuYTX8efx+vcpuIF40bDn9/FQxZk2u4m359Vwz6uu5M+e38ZEwZFgyaE+v47r+PPb8+pWx5zP7+Ph9e0ktn6O2b0uuYX1+/mp4s1qzadMw5W86djl9vAyu4fK7d+H17g6vYsitX500a6Y3cNky6XF693V8eaC1bXD69s0vYlSxZr///+559aT27+j4Mkuu4Xv+fcot4Hz+/c2vYvX8enk9e+05dNGwZNuz6rf9OxOxJin4ct91LP1/flIwpTb8+kkt4EsuYOP2b2I17l20a+d3sVeyaFayJ+t489iy6Nmy6VAv4/F7d1CwJA6vY1wz63J7d+/6dnR7+Tp+fPd8+tKw5fN7uKx5dHp9/HX8+lYx508vo2X3MG159Vey6Gh38l607H4/fvj9u+P272559dEwZOF1reR2r9ozKdSx5souYMyu4mF17mr48+B1bXT8OWT28FayZ9Ow5d807PN7uFOxZd206+M2buZ3cNAwZGb38Xr+fXx+/Wl4ctgy6O96dg2vYmJ17s8v4/v+/Xh9e/f9evL7eFSxZmd38Vy0a3l9++z5tPv+/e159OD1bfH7d2v5dHB6trR7+WV3cFUx5tw0a1rzant+fVkzaUwuoVmzaUot4NIwZTV8edAwY+H17lYyZ/X8+d40a+F17e76Neb3cWX3cGR2b+R271ey6Px+/en48vH691cyJ/r+fNMw5dUx53Z8+nB6tu/6dvJ7eHN7eFeyaPH7d88vY1sz6uf38e76de96dmL2bvj9e+R2b2t5c900K1407FIwpOz5dN+1LOh4ceJ2btgyaP///8ApmH5AAAA+HRSTlP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ACjOtjcAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAFnRFWHRDcmVhdGlvbiBUaW1lADA3LzA1LzIxqZV7yAAAEmBJREFUeJztnd9PU9kWxytFq9Ni5YJCaeVHgcKAQBXKj7ZAGX4KiiDVECTBBAU1GJURHWICxuiNaDL1AXyCZMZkeLkxvjgPEyfxRUNyJyZz8fHeB59ufDNX/4Hbrr1Pe37ss/c+py33guf7ZPHss89Zn3P2j7X22sdk4tZ3bCVVmv9KvlqdqQmxVeU+RSy8cX2BXfjskH2L72m7qanDzKHzLbXE0us5PKX7y5xbfFfbTMURHjOapzNIhXv7uQqbXxivAlWNfBBafYSywRAfA/MxAwJVSUBwFnv4GJyY37f1N7adBBDGSwLq+nJeBUJ+K1g4V71oZ17siLc3jS6BLoBwpJYywnRUkiH85EIWtquWLFiE1+xd1//gvraVAMIVWps9Q4bQtQkWPkkeNoEOemNHNC6Rh7eG4tINgW3hAIx+D48aszWW9EJAFu5oULewewFelVljZMSUTgjYwrS58Hh37IhdPqMxYkonhHEPy8JZ9bEj1maM0Slb+iBgC+9Vt7A/HDsir8QYnXJIFwRk4fM/qFvY/hdorlYKvk3Vhe5k6YFg/4wsvKFu4eVYIfPZIqMx4pEeCMtvYxb+QHFGtN+LHVH/0GiMuKQDgmBh9dHpwAd4VY5cS9117mhphyBYmFJmOOZuMjerRIIMyaUdwjB45R5QLFzyJHZEm8OYKnNKM4SSSZaFg/dj5/RMTTCqdhbdzF9f2uKuO6Nhqjz3/20SrxUC28LOHpjI7c+gj05nmxfCu+u9W/q67N1fGHIdbm0p2MI6eaQRArbw+wF1C/8IYYaXfsYj/hhaNfO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drQQU3CWyJ8pU4gyszYU1Z1GHgphFU/cXA0HBU/zkuFBossfyGSrQaU9cVZzlA4oPyNrSK5TTNFKf8vUVt2HIUME/RdHci+N35jbxgAAAABJRU5ErkJggg==\"","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const SUBSCRIPTION = 'SUBSCRIPTION';\r\nexport const SUBSCRIPTION_SET_VALUES = 'SUBSCRIPTION_SET_VALUES';\r\nexport const SUBSCRIPTION_SET_LOADING = 'SUBSCRIPTION_SET_LOADING';\r\nexport const SUBSCRIPTION_CURRENT_GET = 'SUBSCRIPTION_CURRENT_GET';\r\nexport const SUBSCRIPTION_CURRENT_GET_FINISHED =\r\n 'SUBSCRIPTION_CURRENT_GET_FINISHED';\r\n\r\nexport const SUBSCRIPTION_OPEN_PURCHASE_PACKAGE =\r\n 'SUBSCRIPTION_OPEN_PURCHASE_PACKAGE';\r\nexport const SUBSCRIPTION_CLOSE_PURCHASE_PACKAGE =\r\n 'SUBSCRIPTION_CLOSE_PURCHASE_PACKAGE';\r\n\r\nexport const SUBSCRIPTION_OPEN_PACKAGE_LIST = 'SUBSCRIPTION_OPEN_PACKAGE_LIST';\r\nexport const SUBSCRIPTION_CLOSE_PACKAGE_LIST =\r\n 'SUBSCRIPTION_CLOSE_PACKAGE_LIST';\r\n\r\nexport const SUBSCRIPTION_PURCHASE_PACKAGE = 'SUBSCRIPTION_PURCHASE_PACKAGE';\r\nexport const SUBSCRIPTION_PURCHASE_PACKAGE_FINISHED =\r\n 'SUBSCRIPTION_PURCHASE_PACKAGE_FINISHED';\r\n\r\nexport const SUBSCRIPTION_BALANCE_DETAILS = 'SUBSCRIPTION_BALANCE_DETAILS';\r\nexport const SUBSCRIPTION_BALANCE_DETAILS_FINISHED =\r\n 'SUBSCRIPTION_BALANCE_DETAILS_FINISHED';\r\n\r\nexport const SUBSCRIPTION_UPDATE = 'SUBSCRIPTION_UPDATE';\r\nexport const SUBSCRIPTION_UPDATE_FINISHED = 'SUBSCRIPTION_UPDATE_FINISHED';\r\n\r\nexport const setValues = (values) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(SUBSCRIPTION_SET_VALUES, 'subscriptions', values)\r\n );\r\n};\r\n\r\nexport const setLoading = (loading) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(SUBSCRIPTION_SET_LOADING, 'subscriptions', loading)\r\n );\r\n};\r\n\r\nexport const getActiveSubscription = () => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'subscriptions',\r\n actionType: SUBSCRIPTION_CURRENT_GET,\r\n effect: async () => api.fetch('subscriptions/current-subscription')\r\n });\r\n};\r\n\r\nexport const openPurchasePackage = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(SUBSCRIPTION_OPEN_PURCHASE_PACKAGE, 'subscriptions')\r\n );\r\n};\r\n\r\nexport const closePurchasePackage = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n SUBSCRIPTION_CLOSE_PURCHASE_PACKAGE,\r\n 'subscriptions'\r\n )\r\n );\r\n};\r\n\r\nexport const postPurchasePackage = (\r\n packageId,\r\n paymentMethod,\r\n onSuccess\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'subscriptions',\r\n actionType: SUBSCRIPTION_PURCHASE_PACKAGE,\r\n onSuccess,\r\n effect: async () =>\r\n api.post(\r\n `subscriptions/purchase-package?packageId=${packageId}`,\r\n paymentMethod\r\n )\r\n });\r\n};\r\n\r\nexport const getBalanceDetails = () => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'subscriptions',\r\n actionType: SUBSCRIPTION_BALANCE_DETAILS,\r\n effect: async () => api.fetch('subscriptions/balance-details')\r\n });\r\n};\r\n\r\nexport const openPackageList = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(SUBSCRIPTION_OPEN_PACKAGE_LIST, 'subscriptions')\r\n );\r\n};\r\n\r\nexport const closePackageList = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(SUBSCRIPTION_CLOSE_PACKAGE_LIST, 'subscriptions')\r\n );\r\n};\r\n\r\nexport const updateSubscription = (\r\n subscriptionId,\r\n payload = {},\r\n onSuccess,\r\n onFail\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'subscriptions',\r\n actionType: SUBSCRIPTION_UPDATE,\r\n payload,\r\n effect: async () => api.put(`subscriptions/${subscriptionId}`, payload),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const MEDICALRECORDSECTION = 'MEDICALRECORDSECTION';\r\nexport const MEDICALRECORDSECTION_SORTING = 'MEDICALRECORDSECTION_SORTING';\r\nexport const MEDICALRECORDSECTION_SORTING_FINISHED =\r\n 'MEDICALRECORDSECTION_SORTING_FINISHED';\r\n\r\nexport const updateSorting = (dataSource = []) => async (dispatch) => {\r\n const params = [];\r\n let ordination = 1;\r\n\r\n dataSource.forEach(({ id }) => {\r\n params.push({ id, ordination });\r\n ordination += 1;\r\n });\r\n\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'record-sections',\r\n actionType: MEDICALRECORDSECTION_SORTING,\r\n payload: dataSource,\r\n effect: async () => api.put(`medical-record-sections/sorting`, params)\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const CAMPAIGN = 'CAMPAIGN';\r\n\r\nexport const CAMPAIGN_CLONE_FETCH = 'CAMPAIGN_CLONE_FETCH';\r\nexport const CAMPAIGN_CLONE_FETCH_FINISHED = 'CAMPAIGN_CLONE_FETCH_FINISHED';\r\n\r\nexport const clone = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'campaigns',\r\n actionType: CAMPAIGN_CLONE_FETCH,\r\n effect: async () => api.post(`campaigns/${id}/clone`),\r\n onSuccess\r\n });\r\n};\r\n","import React from 'react';\r\nimport { Form, Input } from 'antd';\r\nimport { FormItemWrap } from '@unicus/react-ui-kit';\r\nimport { SearchOutlined } from '@ant-design/icons';\r\n\r\nconst InputListSearch = ({ placeholder, width, name, onChange, prefix }) => {\r\n return (\r\n
\r\n
\r\n \r\n }\r\n onChange={onChange}\r\n />\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default InputListSearch;\r\n","/* eslint-disable react/prefer-es6-class */\r\n/* eslint-disable react/prefer-stateless-function */\r\nimport React from 'react';\r\nimport createReactClass from 'create-react-class';\r\nimport { Form } from 'antd';\r\n\r\nconst FormInstanceCreate = ({ children, ...rest }) => {\r\n const [form] = Form.useForm();\r\n return React.cloneElement(children, { form, ...rest });\r\n};\r\n\r\nconst WrapperForm = ({ children, form, ...rest }) => {\r\n if (form) {\r\n return React.cloneElement(children, { form, ...rest });\r\n }\r\n\r\n return {children};\r\n};\r\n\r\nclass FormInstance {\r\n static create(WrappedComponent) {\r\n return createReactClass({\r\n render() {\r\n const { children, ...rest } = this.props;\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport default FormInstance;\r\n","import React, { Component } from 'react';\r\nimport { Form } from 'antd';\r\nimport { debounce, values } from 'lodash';\r\nimport FormInstance from 'core/wrappers/FormInstance';\r\n\r\nclass Filter extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.onChangeDebounce = debounce((value) => props.onChange(value), 800);\r\n }\r\n\r\n handleSubmit = ({ filterText }, allValues) => {\r\n const { onChange, onBeforeSubmit, onSearch } = this.props;\r\n\r\n let values = allValues;\r\n\r\n if (onBeforeSubmit) {\r\n values = onBeforeSubmit(values);\r\n }\r\n\r\n if (filterText !== undefined) {\r\n this.onChangeDebounce(values);\r\n\r\n if (onSearch) {\r\n onSearch(filterText);\r\n }\r\n } else if (onChange) {\r\n onChange(values);\r\n }\r\n };\r\n\r\n submit = () => {\r\n const { form } = this.props;\r\n\r\n form.validateFields().then((values) => {\r\n this.handleSubmit({}, values);\r\n });\r\n };\r\n\r\n handleSetValues = (params = {}) => {\r\n const { form } = this.props;\r\n\r\n if (form) {\r\n form.setFieldsValue({ ...params });\r\n }\r\n };\r\n\r\n handleBeforeBinding = (values) => {\r\n const { onBeforeBinding } = this.props;\r\n\r\n if (onBeforeBinding) {\r\n return onBeforeBinding(values);\r\n }\r\n\r\n return values;\r\n };\r\n\r\n render() {\r\n const {\r\n children,\r\n queryParams,\r\n form,\r\n formProps = {},\r\n autoSubmit = true\r\n } = this.props;\r\n\r\n return (\r\n \r\n {typeof children === 'function'\r\n ? children({ form, setValues: this.handleSetValues })\r\n : React.cloneElement(children, {\r\n setValues: this.handleSetValues,\r\n form\r\n })}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default FormInstance.create(Filter);\r\n","import React from 'react';\r\nimport { Col, Form, Row, Tooltip } from 'antd';\r\nimport moment from 'moment';\r\nimport ResCol from 'components/forms/ResCol';\r\nimport { FilterRangePicker, FilterSelect } from 'components';\r\nimport InputListSearch from 'components/InputListSearch';\r\nimport {\r\n FileExcelOutlined,\r\n FilterOutlined,\r\n LoadingOutlined,\r\n PrinterOutlined,\r\n SyncOutlined\r\n} from '@ant-design/icons';\r\nimport { useSettingInvoice } from 'core/hooks';\r\n\r\nconst TODAY = 'Hoje';\r\nconst WEEK = 'Semana';\r\nconst MONTH = 'Mês';\r\nconst YEAR = 'Ano';\r\n\r\nconst ranges = {\r\n [TODAY]: [moment(), moment()],\r\n [WEEK]: [moment().startOf('week'), moment().endOf('week')],\r\n [MONTH]: [moment().startOf('month'), moment().endOf('month')],\r\n [YEAR]: [moment().startOf('year'), moment()]\r\n};\r\n\r\nconst dateTypes = [\r\n { key: 'creationTime', label: 'Lançamento' },\r\n { key: 'dateOfCompensation', label: 'Regime de caixa' },\r\n { key: 'effectiveDate', label: 'Competência' },\r\n { key: 'dueDate', label: 'Vencimento' },\r\n { key: 'paymentDate', label: 'Baixa' }\r\n];\r\n\r\nconst invoiceStatus = [\r\n { key: 'created', label: 'Não emitida' },\r\n { key: 'authorized', label: 'Emitida' },\r\n { key: 'rejected', label: 'Rejeitada' },\r\n { key: 'canceled', label: 'Cancelada' }\r\n];\r\n\r\nconst FinancialEntryFilter = ({\r\n onRefreshPage,\r\n loading,\r\n allowSearch,\r\n onFilterAdvanced,\r\n onExportExcel,\r\n exportingExcel,\r\n onPrint\r\n}) => {\r\n const { enableInvoice } = useSettingInvoice();\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n {enableInvoice && (\r\n \r\n )}\r\n\r\n {allowSearch && (\r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {exportingExcel ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n {onPrint ? (\r\n \r\n \r\n \r\n ) : null}\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default FinancialEntryFilter;\r\n","/* eslint-disable jsx-a11y/control-has-associated-label */\r\nimport React from 'react';\r\nimport { Button, Card, Col, Row } from 'antd';\r\nimport { useSelector } from 'react-redux';\r\nimport { DisplayAmount } from 'components';\r\n\r\nconst FinancialEntrySummary = ({ onFilter }) => {\r\n const { summary = {} } = useSelector(\r\n (c) => c.resources['financial-entries'] ?? {}\r\n );\r\n\r\n const {\r\n amountReceipt = 0,\r\n amountPayment = 0,\r\n totalReceiptPending = 0,\r\n totalPaymentPending = 0,\r\n totalTransactions = 0,\r\n previousBalance = 0,\r\n balance = 0,\r\n dateType\r\n } = summary;\r\n\r\n const handleFilterReceiptPending = () => {\r\n onFilter({\r\n type: 'receipt',\r\n itemStatus: 'awaitingPayment'\r\n });\r\n };\r\n\r\n const handleFilterPaymentPending = () => {\r\n onFilter({\r\n type: 'payment',\r\n itemStatus: 'awaitingPayment'\r\n });\r\n };\r\n\r\n return (\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Receitas pendentesDespesas pendentesLançamentos
\r\n {totalReceiptPending > 0 ? (\r\n \r\n {totalReceiptPending}\r\n \r\n ) : (\r\n totalReceiptPending\r\n )}\r\n \r\n {totalPaymentPending > 0 ? (\r\n \r\n {totalPaymentPending}\r\n \r\n ) : (\r\n totalPaymentPending\r\n )}\r\n \r\n {totalTransactions}\r\n
\r\n\r\n \r\n \r\n {dateType === 'dateOfCompensation' ? (\r\n \r\n ) : null}\r\n \r\n \r\n {dateType === 'dateOfCompensation' ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n {dateType === 'dateOfCompensation' ? (\r\n \r\n ) : null}\r\n \r\n \r\n \r\n \r\n
Saldo AnteriorTotal de receitasTotal de despesasSaldo atualSaldo
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default FinancialEntrySummary;\r\n","import React from 'react';\r\nimport { FormItemWrap, RemoteSelect } from '@unicus/react-ui-kit';\r\nimport {\r\n FilterRangePicker,\r\n FilterRemoteSelect,\r\n FilterRemoteSelectV2,\r\n FilterSelect,\r\n RemoteSelectTree,\r\n SelectPaymentMethod\r\n} from 'components';\r\nimport moment from 'moment';\r\nimport isNullOrEmpty from 'util/functions/isNullOrEmpty';\r\nimport useCompany from 'core/hooks/useCompany';\r\nimport useCostCenter from 'core/hooks/useCostCenter';\r\n\r\nconst dateTypes = [\r\n { key: 'creationTime', label: 'Lançamento' },\r\n { key: 'dateOfCompensation', label: 'Regime de caixa' },\r\n { key: 'effectiveDate', label: 'Competência' },\r\n { key: 'dueDate', label: 'Vencimento' },\r\n { key: 'paymentDate', label: 'Baixa' }\r\n];\r\n\r\nconst ranges = {\r\n Hoje: [moment(), moment()],\r\n Semana: [moment().startOf('week'), moment().endOf('week')],\r\n Mês: [moment().startOf('month'), moment().endOf('month')],\r\n Ano: [moment().startOf('year'), moment()]\r\n};\r\n\r\nconst invoiceStatus = [\r\n { key: 'created', label: 'Não emitida' },\r\n { key: 'authorized', label: 'Emitida' },\r\n { key: 'rejected', label: 'Rejeitada' },\r\n { key: 'canceled', label: 'Cancelada' }\r\n];\r\n\r\nconst itemStatus = [\r\n { key: 'awaitingPayment', label: 'Em aberto' },\r\n { key: 'paid', label: 'Baixado' },\r\n { key: 'canceled', label: 'Cancelado' }\r\n];\r\n\r\nconst reconciledStatus = [\r\n { key: 'pending', label: 'Não conciliado' },\r\n { key: 'reconciled', label: 'Conciliado' }\r\n];\r\n\r\nconst launchStatus = [\r\n { key: 'active', label: 'Ativo' },\r\n { key: 'inactive', label: 'Excluído' }\r\n];\r\n\r\nconst FinancialEntryFilterAdvanced = ({ mode = 'all' }) => {\r\n const { enabledCostCenter } = useCostCenter();\r\n const { company, userCompany } = useCompany();\r\n\r\n const isEnableInvoice = () => {\r\n if (!isNullOrEmpty(userCompany, 'object')) {\r\n return userCompany.settings?.enableInvoice;\r\n }\r\n\r\n return company.settings?.enableInvoice;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n\r\n \r\n subCategories}\r\n getTitle={({ name }) => name}\r\n params={{ types: mode === 'all' ? [] : [mode] }}\r\n allowClear\r\n normalizeItem={({ id, name, type }) => ({\r\n id,\r\n name,\r\n type\r\n })}\r\n />\r\n \r\n\r\n \r\n\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default FinancialEntryHeader;\r\n","import React, { useState, useEffect } from 'react';\r\nimport { Alert, Button } from 'antd';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport generateUUID from 'util/functions/generateUUID';\r\n\r\nconst FinancialEntryAccountantAlert = () => {\r\n const { accountantId } = useAuth();\r\n const [messages, setMessages] = useState([]);\r\n const [showDetail, setShowDetail] = useState(false);\r\n\r\n const handleCheck = () => {\r\n if (!accountantId) {\r\n return;\r\n }\r\n\r\n api\r\n .get('accountants', `${accountantId}/validate-all-parameters`)\r\n .then(({ errors }) => {\r\n if (Array.isArray(errors)) {\r\n setMessages(errors.map((c) => c.message));\r\n }\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n handleCheck();\r\n }, []);\r\n\r\n if (!Array.isArray(messages) || messages.length === 0) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n {showDetail ? (\r\n
\r\n {messages.map((c, index) => (\r\n
\r\n \r\n {`${index + 1}`}\r\n {` - ${c}`}\r\n \r\n
\r\n ))}\r\n
Favor contactar a contabilidade.
\r\n
\r\n ) : (\r\n \r\n )}\r\n \r\n }\r\n type=\"warning\"\r\n closable\r\n />\r\n );\r\n};\r\n\r\nexport default FinancialEntryAccountantAlert;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { DatePicker, Form, message, Modal, Row, Select, Switch } from 'antd';\r\nimport { FormItemWrap, configManager } from '@unicus/react-ui-kit';\r\nimport moment from 'moment';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport { ResCol } from 'components';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {\r\n closeResendInvoice,\r\n postResendInvoice\r\n} from 'stores/financialEntries/financialEntryActions';\r\n\r\nconst FinancialEntryResendEmailInternal = ({ saving, data }) => {\r\n const dispatch = useDispatch();\r\n const { financialEntry } = data;\r\n const [form] = Form.useForm();\r\n const [required, setRequired] = useState(true);\r\n const segmentFields = useSegmentField();\r\n\r\n const handleSuccess = () => {\r\n message.success('Enviado com sucesso.');\r\n };\r\n\r\n const handleSubmit = () => {\r\n form.validateFields().then((values) => {\r\n dispatch(\r\n postResendInvoice(\r\n { ...values, id: financialEntry.invoice?.id },\r\n handleSuccess\r\n )\r\n );\r\n });\r\n };\r\n\r\n const handleClose = () => {\r\n form.resetFields();\r\n dispatch(closeResendInvoice());\r\n };\r\n\r\n const emailValidator = (_, value) => {\r\n if (value?.length > 5) {\r\n return Promise.reject(new Error('Maximo de 10 e-mails'));\r\n }\r\n\r\n return Promise.resolve();\r\n };\r\n\r\n useEffect(() => {\r\n if (financialEntry.patient?.email) {\r\n form.setFieldsValue({ emails: [financialEntry.patient?.email] });\r\n }\r\n }, []);\r\n\r\n const handleValuesChange = (_, { allowSendByApp }) => {\r\n setRequired(!allowSendByApp);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n required\r\n >\r\n \r\n moment(date).isAfter(moment())\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n\r\n \r\n Responsável\r\n \r\n \r\n \r\n \r\n\r\n {openResponsible && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {segmentFields.isHealthcareEnabled && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {segmentFields.isHealthcareEnabled && (\r\n <>\r\n Informações adicionais\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n Endereço\r\n \r\n {hasUserId && !isEditing ? (\r\n {\r\n if (value) {\r\n return Promise.resolve();\r\n }\r\n\r\n return Promise.reject(\r\n new Error('Confirmação dos dados é obrigatório')\r\n );\r\n }\r\n }\r\n ]}\r\n >\r\n \r\n Os dados do {segmentFields.client.toLowerCase()} foram\r\n confirmados?\r\n \r\n \r\n ) : null}\r\n \r\n \r\n );\r\n};\r\nexport default PatientEdit;\r\n\r\n\r\n\r\n","import { useState } from 'react';\r\nimport { useCookies } from 'react-cookie';\r\nimport moment from 'moment';\r\n\r\nlet COOKIE_DOMAIN = 'kuidare.com.br';\r\nconst COOKIE_PATH = '/';\r\n\r\nconst useCookieHandler = (names = []) => {\r\n const [cookies, setCookie, removeCookie] = useCookies([names]);\r\n const [loaded, setLoaded] = useState(false);\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n COOKIE_DOMAIN = undefined;\r\n }\r\n\r\n const getExpires = (days, minutes) => {\r\n let expires = moment();\r\n\r\n if (days) {\r\n expires = expires.add(days, 'days');\r\n }\r\n\r\n if (minutes) {\r\n expires = expires.add(minutes, 'minutes');\r\n }\r\n\r\n return expires.toDate();\r\n };\r\n\r\n const setCookieHandler = (name, value, days, minutes) => {\r\n if (!value) {\r\n return;\r\n }\r\n\r\n setLoaded(true);\r\n setCookie(name, value, {\r\n path: COOKIE_PATH,\r\n domain: COOKIE_DOMAIN,\r\n expires: getExpires(days, minutes)\r\n });\r\n };\r\n\r\n const removeCookieHandler = (name) => {\r\n if (!name) {\r\n return;\r\n }\r\n\r\n removeCookie(name, { domain: COOKIE_DOMAIN, path: COOKIE_PATH });\r\n };\r\n\r\n return {\r\n loaded,\r\n setCookie: setCookieHandler,\r\n removeCookie: removeCookieHandler,\r\n cookies\r\n };\r\n};\r\n\r\nexport default useCookieHandler;\r\n","import { useHistory } from 'react-router-dom';\r\nimport usePermissions from 'core/hooks/usePermissions';\r\n\r\nconst useCustomHistory = () => {\r\n const history = useHistory();\r\n const { isAdmin, isPartnership, hasTenantId } = usePermissions();\r\n\r\n const normalize = (path) => {\r\n if (!hasTenantId && isAdmin) {\r\n return `/a/${path}`;\r\n }\r\n\r\n if (isPartnership) {\r\n return `/p/${path}`;\r\n }\r\n\r\n return `/app/${path}`;\r\n };\r\n\r\n const push = (path, isContainer = true) => {\r\n if (isContainer) {\r\n history.push(normalize(path));\r\n } else {\r\n history.push(path);\r\n }\r\n };\r\n\r\n return { push };\r\n};\r\n\r\nexport default useCustomHistory;\r\n","import { useSelector } from 'react-redux';\r\n\r\nexport const MOBILE = 768;\r\n\r\nconst useScreenSize = () => {\r\n const { width } = useSelector((c) => c.settings ?? {});\r\n\r\n const isMobile = width <= MOBILE;\r\n\r\n return { isMobile, width };\r\n};\r\n\r\nexport default useScreenSize;\r\n","import React, { useEffect, useRef } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { Alert } from 'antd';\r\n\r\nconst ResourceErrorAlert = ({ resource }) => {\r\n const errors = useSelector((state) =>\r\n state.resources[resource] ? state.resources[resource].errors : []\r\n );\r\n const errorText =\r\n errors && errors.length > 0\r\n ? errors.map((item) => item.message).join(' ')\r\n : null;\r\n\r\n const ref = useRef(null);\r\n useEffect(() => {\r\n if (errorText && ref.current) {\r\n ref.current.scrollIntoView();\r\n }\r\n }, [errorText, ref.current]);\r\n\r\n return (\r\n errorText && (\r\n
\r\n \r\n
\r\n )\r\n );\r\n};\r\n\r\nexport default ResourceErrorAlert;\r\n","const truncate = (text, limit, ellipsis = '...') => {\r\n if (text.length > limit) {\r\n limit -= 1;\r\n\r\n let last = text.substr(limit - 1, 1);\r\n\r\n while (last !== ' ' && limit > 0) {\r\n limit -= 1;\r\n last = text.substr(limit - 1, 1);\r\n }\r\n\r\n last = text.substr(limit - 2, 1);\r\n\r\n if (last === ',' || last === ';' || last === ':') {\r\n text = text.substr(0, limit - 2) + ellipsis;\r\n } else if (last === '.' || last === '?' || last === '!') {\r\n text = text.substr(0, limit - 1);\r\n } else {\r\n text = text.substr(0, limit - 1) + ellipsis;\r\n }\r\n }\r\n\r\n return text;\r\n};\r\n\r\nexport default truncate;\r\n","import React, { useRef, useState } from 'react';\r\nimport { Button, Spin } from 'antd';\r\nimport { CloseOutlined, EditOutlined } from '@ant-design/icons';\r\nimport { normalizeToSelect, useCrud } from '@unicus/react-ui-kit';\r\nimport RemoteSelect from './RemoteSelect';\r\nimport RemoteSelectV2 from './RemoteSelectV2';\r\n\r\nconst RemoteSelectAutoCrud = ({\r\n resource,\r\n textPropName,\r\n resourceTitle,\r\n enableEdit = true,\r\n onChange,\r\n value,\r\n onCreate,\r\n onBeforeCreate,\r\n useVersionV2,\r\n ...rest\r\n}) => {\r\n const ref = useRef(null);\r\n const { get, post } = useCrud({ resource });\r\n const [text, setText] = useState('');\r\n const [allowShow, setAllowShow] = useState(true);\r\n const isMultiple = rest.mode === 'multiple';\r\n\r\n const handleChange = (item) => {\r\n onChange?.(item);\r\n };\r\n\r\n const handleCreateSucess = ({ data: result }) => {\r\n ref.current.add(result.result);\r\n\r\n if (isMultiple) {\r\n const newValue = [...value];\r\n newValue.push({\r\n ...normalizeToSelect(result.result),\r\n item: result.result\r\n });\r\n\r\n handleChange(newValue);\r\n } else {\r\n handleChange({\r\n ...normalizeToSelect(result.result),\r\n item: result.result\r\n });\r\n }\r\n\r\n onCreate?.(result.result);\r\n\r\n return false;\r\n };\r\n\r\n const handleCreate = () => {\r\n ref.current.reset();\r\n setText('');\r\n\r\n const values = onBeforeCreate(text);\r\n post(values, (response) => handleCreateSucess(response));\r\n };\r\n\r\n const handleEditClickTag = (key) => {\r\n get(key);\r\n };\r\n\r\n const notFoundRender = () => {\r\n return allowShow && text ? (\r\n \r\n + Adicionar{text ? ` (${text}...)` : ''}\r\n \r\n ) : null;\r\n };\r\n\r\n const customDropdownRender = ({ menu, fetching }) => {\r\n return (\r\n <>\r\n {menu}\r\n {fetching ? (\r\n
\r\n \r\n
\r\n ) : (\r\n notFoundRender()\r\n )}\r\n \r\n );\r\n };\r\n\r\n const handleSearch = (text) => {\r\n setAllowShow(false);\r\n setText(text);\r\n };\r\n\r\n const handleFetched = () => {\r\n setAllowShow(true);\r\n };\r\n\r\n const handleDropdownVisibleChange = (visible) => {\r\n if (!visible) {\r\n setText('');\r\n }\r\n };\r\n\r\n const onKeyDown = (e) => {\r\n if (e.keyCode === 13 && ref.current.isEmpty() && text) {\r\n handleCreate();\r\n }\r\n };\r\n\r\n const tagRender = ({ label, onClose, value }) => {\r\n return (\r\n
\r\n {label}\r\n
\r\n handleEditClickTag(value)}\r\n />\r\n \r\n
\r\n
\r\n );\r\n };\r\n\r\n if (useVersionV2) {\r\n
\r\n
}\r\n ref={ref}\r\n value={value}\r\n onChange={handleChange}\r\n {...rest}\r\n />\r\n
;\r\n }\r\n\r\n return (\r\n
\r\n
}\r\n ref={ref}\r\n value={value}\r\n onChange={handleChange}\r\n {...rest}\r\n />\r\n
\r\n );\r\n};\r\n\r\nexport default RemoteSelectAutoCrud;\r\n","function formatCurrency(value, useMoneySign = true, useDecimal = false) {\r\n let valueInt = Number(value);\r\n if (Number.isNaN(valueInt)) {\r\n valueInt = 0;\r\n }\r\n\r\n let formattedValue = valueInt.toLocaleString('pt-BR', {\r\n style: useDecimal ? 'decimal' : 'currency',\r\n currency: 'BRL'\r\n });\r\n\r\n if (!useMoneySign) {\r\n formattedValue = formattedValue.replace('R$', '');\r\n }\r\n\r\n formattedValue = formattedValue.trim();\r\n\r\n return formattedValue;\r\n}\r\n\r\nexport default formatCurrency;\r\n","import React, { useState } from 'react';\r\nimport { Input, Row } from 'antd';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { api, useCrudEditContext, FormItemWrap } from '@unicus/react-ui-kit';\r\nimport { postalCodeValidator } from 'util/validators';\r\nimport ResCol from './ResCol';\r\nimport RemoteSelectV2 from './RemoteSelectV2';\r\n\r\nconst AddressV2 = ({ required = true, disabled = false }) => {\r\n const [state, setState] = useState({\r\n lastPostalCode: null,\r\n loadingAddress: false\r\n });\r\n\r\n const { form } = useCrudEditContext();\r\n\r\n const setAddress = (newAddress) => {\r\n form.setFieldsValue({\r\n address: newAddress\r\n });\r\n };\r\n\r\n const findAddress = (postalCode) => {\r\n postalCode = postalCode.replace(/[^0-9.]/g, '');\r\n\r\n if (state.lastPostalCode === postalCode) {\r\n return;\r\n }\r\n\r\n setState({ ...state, lastPostalCode: postalCode, loadingAddress: true });\r\n\r\n api.fetch('localizations', { postalCode }).then(({ data }) => {\r\n setState({ ...state, loadingAddress: false });\r\n setAddress(\r\n data\r\n ? data.result\r\n : {\r\n street: null,\r\n number: null,\r\n district: null,\r\n additionalInformation: null,\r\n city: undefined\r\n }\r\n );\r\n });\r\n };\r\n\r\n const postalCodeChangeHandle = (sender) => {\r\n const postalCode = sender.target.value.replace(/[^0-9.]/g, '');\r\n if (postalCode.length === 8) {\r\n findAddress(postalCode);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n `${c.name} - ${c.state.toUpperCase()}`}\r\n />\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default AddressV2;\r\n","/* eslint-disable react/no-danger */\r\nimport React from 'react';\r\n\r\nconst RawHtml = ({ html }) => {\r\n return
;\r\n};\r\n\r\nexport default RawHtml;\r\n","const LIMIT_APPOINTMENTS_TODAY = 'limit_appointments_per_day';\r\nconst MIN_PROFESSIONAL_NUMBER = 'min_professional_number';\r\nconst MAX_PROFESSIONAL_NUMBER = 'max_professional_number';\r\nconst MAX_FREE_INVOICES_MONTH_PER_PROFESSIONAL =\r\n 'max_free_invoices_month_per_professional';\r\nconst MAX_LICENSE = 'max_license';\r\nconst MIN_LICENSE = 'min_license';\r\nconst PROCEDURE_PACKAGE_MANAGEMENT = 'procedure_package_management';\r\n\r\nexport {\r\n LIMIT_APPOINTMENTS_TODAY,\r\n MIN_PROFESSIONAL_NUMBER,\r\n MAX_PROFESSIONAL_NUMBER,\r\n MAX_FREE_INVOICES_MONTH_PER_PROFESSIONAL,\r\n MAX_LICENSE,\r\n MIN_LICENSE,\r\n PROCEDURE_PACKAGE_MANAGEMENT\r\n};\r\n","import React, { useState } from 'react';\r\nimport {\r\n Alert,\r\n Avatar,\r\n Checkbox,\r\n Col,\r\n DatePicker,\r\n Divider,\r\n Drawer,\r\n Form,\r\n Input,\r\n InputNumber,\r\n Row,\r\n Select,\r\n Switch\r\n} from 'antd';\r\nimport { FormItemWrap } from '@unicus/react-ui-kit';\r\nimport {\r\n FormItemUserDetail,\r\n FormListItemWrap,\r\n FormListWrap,\r\n InputCurrency,\r\n RemoteSelectTree,\r\n ResCol,\r\n SelectBoolean,\r\n SelectPaymentMethod,\r\n UploadList\r\n} from 'components';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { closeViewDetail } from 'stores/financialEntries/financialEntryActions';\r\nimport moment from 'moment';\r\nimport { normalizeToSelect } from 'util/converters';\r\nimport RemoteSelect from 'components/RemoteSelect';\r\nimport { PAYMENT, RECEIPT } from 'constants/types';\r\nimport { EyeOutlined } from '@ant-design/icons';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport FinancialEntryInstallmentNumber from './FinancialEntryInstallmentNumber';\r\nimport FinancialEntryFormPaymentItem from './FinancialEntryFormPaymentItem';\r\n\r\nconst FinancialEntryViewDetailInternal = ({ data }) => {\r\n const dispatch = useDispatch();\r\n const segmentFields = useSegmentField();\r\n const [form] = Form.useForm();\r\n const [fieldEditing, setFieldEditing] = useState(false);\r\n const { type } = data;\r\n\r\n const handleCancel = () => {\r\n dispatch(closeViewDetail());\r\n };\r\n\r\n const handleBeforePaymentBinding = (payment) => {\r\n if (!payment) {\r\n return null;\r\n }\r\n\r\n return { ...payment, date: moment(payment.date) };\r\n };\r\n\r\n const handleBeforeExportAuditBinding = (exportAudit) => {\r\n if (!exportAudit) {\r\n return null;\r\n }\r\n\r\n return { ...exportAudit, date: moment(exportAudit.date) };\r\n };\r\n\r\n const handleBeforeBinding = ({\r\n checkingAccount,\r\n type,\r\n amount = 0,\r\n effectiveDate,\r\n patient,\r\n customer,\r\n supplier,\r\n costCenter,\r\n attachments = [],\r\n payment,\r\n creationTime,\r\n lastModificationTime,\r\n items = [],\r\n exportAudit,\r\n ...rest\r\n }) => {\r\n return {\r\n ...rest,\r\n type,\r\n creationTime: moment(creationTime),\r\n lastModificationTime: moment(lastModificationTime),\r\n patient: patient ? normalizeToSelect(patient) : null,\r\n customer: customer ? normalizeToSelect(customer) : null,\r\n supplier: supplier ? normalizeToSelect(supplier) : null,\r\n amount: type === PAYMENT && amount < 0 ? amount * -1 : amount,\r\n effectiveDate: effectiveDate ? moment(effectiveDate) : moment(),\r\n checkingAccount: normalizeToSelect(checkingAccount),\r\n costCenter: normalizeToSelect(costCenter),\r\n attachments: attachments.map((c) => c.attachment),\r\n payment: handleBeforePaymentBinding(payment),\r\n exportAudit: handleBeforeExportAuditBinding(exportAudit),\r\n items: items.map((c) => ({\r\n ...c,\r\n dueDate: moment(c.dueDate),\r\n checkingAccount: normalizeToSelect(c.checkingAccount),\r\n exportAudit: handleBeforeExportAuditBinding(c.exportAudit),\r\n payment: {\r\n ...c.payment,\r\n date: c.payment?.date ? moment(c.payment?.date) : null,\r\n creationTime: c.payment?.creationTime\r\n ? moment(c.payment?.creationTime)\r\n : null,\r\n dateOfCompensation: c.payment?.dateOfCompensation\r\n ? moment(c.payment?.dateOfCompensation)\r\n : null\r\n }\r\n }))\r\n };\r\n };\r\n\r\n const handleChangeField = (field) => {\r\n setFieldEditing(field);\r\n };\r\n\r\n const handleFieldClose = () => {\r\n setFieldEditing(null);\r\n };\r\n\r\n return (\r\n \r\n \r\n {fieldEditing && (\r\n \r\n )}\r\n {data.patient && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {data.customer && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {data.supplier && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n Parcelas\r\n \r\n {({ field, value }) => (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {value.isPaid && (\r\n \r\n \r\n handleChangeField(field)}\r\n />\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n subCategories}\r\n getTitle={({ name }) => name}\r\n onDisabled={({ parentCategoryId }) => {\r\n return parentCategoryId === null;\r\n }}\r\n normalizeItem={({ id, name, type }) => ({\r\n id,\r\n name,\r\n type\r\n })}\r\n />\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n {data.attachments?.length > 0 ? (\r\n <>\r\n Anexos\r\n \r\n \r\n \r\n \r\n ) : null}\r\n\r\n Auditoria\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n {data.exportAudit && (\r\n <>\r\n Auditoria contábil\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nconst FinancialEntryViewDetail = () => {\r\n const { viewDetail } = useSelector(\r\n (c) => c.resources['financial-entries'] ?? {}\r\n );\r\n\r\n if (!viewDetail) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default FinancialEntryViewDetail;\r\n\r\n\r\n","import React, { useState } from 'react';\r\nimport { Input, Form, Row, Col, Radio } from 'antd';\r\nimport { DrawerEdit, FormItemWrap } from '@unicus/react-ui-kit';\r\nimport { ResCol } from 'components';\r\nimport { federalTaxNumberValidator } from 'util/validators';\r\nimport { MaskedInput } from 'antd-mask-input';\r\n\r\nconst SupplierEdit = (props) => {\r\n const [isLegalPerson, setIsLegalPerson] = useState(false);\r\n\r\n const toggler = () => {\r\n setIsLegalPerson(!isLegalPerson);\r\n };\r\n\r\n const handleSubmit = ({ address, ...rest }) => {\r\n return {\r\n ...rest,\r\n isLegalPerson\r\n };\r\n };\r\n\r\n const handleBeforeBinding = ({ ...rest }) => {\r\n setIsLegalPerson(rest.isLegalPerson ?? false);\r\n\r\n return {\r\n ...rest\r\n };\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n Pessoa Física\r\n Pessoa Jurídica\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n );\r\n};\r\nexport default SupplierEdit;\r\n","import {\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PARTNERSHIP,\r\n ROLE_PROFESSIONAL,\r\n ROLE_RECEPTIONIST,\r\n ROLE_STUDENT\r\n} from 'constants/types';\r\nimport { useCallback } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport useAuth from './useAuth';\r\n\r\nconst usePermissions = () => {\r\n const data = useSelector((state) => state.auth);\r\n const { isAdmin, tenantId } = useAuth();\r\n\r\n const hasRole = useCallback(\r\n (...roles) => data.user.roles.some((role) => roles.includes(role)),\r\n [data]\r\n );\r\n\r\n const isProfessional = hasRole(\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL\r\n );\r\n const isStudent = hasRole(ROLE_STUDENT);\r\n const isReceptionist = hasRole(ROLE_RECEPTIONIST);\r\n const isClinicAdmin = hasRole(ROLE_CLINIC_ADMINISTRATOR);\r\n const isUserAdmin = hasRole(\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR\r\n );\r\n const isFinancial = hasRole(ROLE_FINANCIAL);\r\n const isPartnership = hasRole(ROLE_PARTNERSHIP);\r\n const isFinancialAdministrator = hasRole(ROLE_FINANCIAL_ADMINISTRATOR);\r\n\r\n return {\r\n isProfessional,\r\n isStudent,\r\n isClinicAdmin,\r\n isUserAdmin,\r\n isReceptionist,\r\n isAdmin: isAdmin(),\r\n isFinancial,\r\n isPartnership,\r\n isFinancialAdministrator,\r\n hasTenantId: !!tenantId\r\n };\r\n};\r\n\r\nexport default usePermissions;\r\n","import React from 'react';\r\nimport { Button, Row, Col, Modal } from 'antd';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { remove } from 'stores/financialEntries/financialEntryActions';\r\n\r\nconst Icon = ({ checked }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nconst FinancialEntryToolbarEdit = ({\r\n readOnly,\r\n backButtonText,\r\n onBackClick,\r\n okButtonText,\r\n onOkClick,\r\n saving,\r\n record\r\n}) => {\r\n const dispatch = useDispatch();\r\n\r\n const { deleting } = useSelector(\r\n (c) => c.resources['financial-entries'] ?? {}\r\n );\r\n\r\n const handleDelete = () => {\r\n Modal.confirm({\r\n title: 'Deseja excluir ?',\r\n okText: 'Excluir',\r\n width: 600,\r\n onOk: () => {\r\n dispatch(remove(record.id));\r\n }\r\n });\r\n };\r\n\r\n return (\r\n \r\n \r\n {readOnly ? (\r\n \r\n ) : (\r\n <>\r\n {record?.id && (\r\n \r\n Excluir\r\n \r\n )}\r\n \r\n {backButtonText}\r\n \r\n \r\n {okButtonText}\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default FinancialEntryToolbarEdit;\r\n","import React, { useState, useEffect, isValidElement } from 'react';\r\nimport {\r\n Form,\r\n Row,\r\n Input,\r\n DatePicker,\r\n Select,\r\n Divider,\r\n Modal,\r\n InputNumber,\r\n Col,\r\n Switch,\r\n Alert,\r\n Radio,\r\n Card,\r\n Tabs\r\n} from 'antd';\r\nimport {\r\n DrawerEdit,\r\n FormItemWrap,\r\n normalizeFromSelect,\r\n normalizeToSelect,\r\n api,\r\n useCrudEditContext\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n FormListItemWrap,\r\n FormListWrap,\r\n InputCurrency,\r\n RemoteSelectTree,\r\n RemoteSelectCrud,\r\n ResCol,\r\n UploadList,\r\n SharingFileQRCode\r\n} from 'components';\r\nimport moment from 'moment';\r\nimport { PAYMENT, RECEIPT } from 'constants/types';\r\nimport { formatFederalTaxNumber } from 'util/formatters';\r\nimport RemoteSelect from 'components/RemoteSelect';\r\nimport { useDispatch } from 'react-redux';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport lodash from 'lodash';\r\nimport {\r\n create,\r\n createByEvent,\r\n update\r\n} from 'stores/financialEntries/financialEntryActions';\r\nimport useCostCenter from 'core/hooks/useCostCenter';\r\nimport { EditOutlined } from '@ant-design/icons';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport usePermissions from 'core/hooks/usePermissions';\r\nimport SupplierEdit from '../suppliers/SupplierEdit';\r\nimport FinancialEntryInstallmentNumber from './FinancialEntryInstallmentNumber';\r\nimport FinancialEntryFormPaymentItem from './FinancialEntryFormPaymentItem';\r\nimport FinancialEntryToolbarEdit from './FinancialEntryToolbarEdit';\r\nimport CustomerEdit from '../customers/CustomerEdit';\r\nimport PatientEdit from '../patients/PatientEdit';\r\n\r\nconst minimumValueRule = {\r\n required: true,\r\n message: 'Valor total é obrigatório',\r\n type: 'number',\r\n min: 0.01\r\n};\r\n\r\nconst FinancialEntryEdit = (props) => {\r\n const { user, accountantId } = useAuth();\r\n const segmentFields = useSegmentField();\r\n const {\r\n data,\r\n onCreateOrUpdateSuccess,\r\n suggestAsDefaultCheckingAccount = null\r\n } = props;\r\n const { settings } = user;\r\n const [hasOneReceived, setHasOneReceived] = useState(false);\r\n const [numberOfInstallments, setNumberOfInstallments] = useState(0);\r\n const [fieldEditing, setFieldEditing] = useState(false);\r\n const [currentCategory, setCurrentCategory] = useState(null);\r\n const [recurringEnabled, setRecurringEnabled] = useState(false);\r\n const { isFinancialAdministrator } = usePermissions();\r\n const [tabKey, setTabKey] = useState(\r\n isFinancialAdministrator ? 'tab_customer' : 'tab_patient'\r\n );\r\n const { enabledCostCenter } = useCostCenter();\r\n const { form } = useCrudEditContext();\r\n\r\n const dispatch = useDispatch();\r\n const isEditing = !!data?.id;\r\n\r\n const handleBeforeSubmit = ({\r\n effectiveDate,\r\n type,\r\n status = 'awaitingPayment',\r\n patient,\r\n customer,\r\n supplier,\r\n costCenter,\r\n attachments = [],\r\n items = [],\r\n recurring,\r\n ...rest\r\n }) => {\r\n if (!isEditing && !recurringEnabled) {\r\n recurring = null;\r\n }\r\n\r\n if (tabKey === 'tab_patient') {\r\n customer = null;\r\n }\r\n\r\n if (tabKey === 'tab_customer') {\r\n patient = null;\r\n }\r\n\r\n return {\r\n patient,\r\n customer,\r\n supplier,\r\n type,\r\n status,\r\n effectiveDate: moment(effectiveDate).format('YYYY-MM-DD'),\r\n costCenter: normalizeFromSelect(costCenter),\r\n attachments: attachments.map((c) => ({ attachment: c })),\r\n recurring,\r\n items: items.map((c) => ({\r\n ...c,\r\n dueDate: moment(c.dueDate).format('YYYY-MM-DD'),\r\n checkingAccount: normalizeFromSelect(c.checkingAccount),\r\n payment: {\r\n ...c.payment,\r\n date: c.payment.date\r\n ? moment(c.payment.date).format('YYYY-MM-DD')\r\n : null,\r\n dateOfCompensation: c.payment.dateOfCompensation\r\n ? moment(c.payment.dateOfCompensation).format('YYYY-MM-DD')\r\n : null,\r\n creationTime: c.payment.creationTime\r\n ? moment(c.payment?.creationTime).format('YYYY-MM-DD HH:mm')\r\n : null\r\n }\r\n })),\r\n ...rest\r\n };\r\n };\r\n\r\n const handleSubmit = (values) => {\r\n if (values?.id) {\r\n dispatch(update(values, onCreateOrUpdateSuccess));\r\n return;\r\n }\r\n\r\n if (data.eventId) {\r\n dispatch(createByEvent(data.eventId, values, onCreateOrUpdateSuccess));\r\n return;\r\n }\r\n\r\n dispatch(create(values, onCreateOrUpdateSuccess));\r\n };\r\n\r\n const handleCheckLimit = () => {\r\n form.validateFields().then((values) => {\r\n const newValues = handleBeforeSubmit({ ...data, ...values });\r\n\r\n if (!enabledCostCenter) {\r\n handleSubmit(newValues);\r\n return;\r\n }\r\n\r\n api\r\n .post('financial-entries/exceeded-monthly-limit', newValues)\r\n .then(({ data }) => {\r\n if (data?.result) {\r\n Modal.confirm({\r\n width: '700px',\r\n okText: 'Continuar',\r\n cancelText: 'Voltar',\r\n onOk: () => {\r\n handleSubmit(newValues);\r\n },\r\n title:\r\n 'Limite mensal excedido para esse centro de custo. Deseja prosseguir?'\r\n });\r\n return;\r\n }\r\n\r\n handleSubmit(newValues);\r\n });\r\n });\r\n };\r\n\r\n const getTitle = () => {\r\n switch (data?.type) {\r\n case RECEIPT:\r\n return data?.id ? 'Editar receita' : 'Nova receita';\r\n case PAYMENT:\r\n return data?.id ? 'Editar despesa' : 'Nova despesa';\r\n default:\r\n return '';\r\n }\r\n };\r\n\r\n const readOnly =\r\n data?.invoice?.status === 'authorized' ||\r\n (data.platformType && data.platformType !== 'kuidare');\r\n\r\n const type = data?.type;\r\n\r\n const handleSortItems = (a, b) => {\r\n return a.installmentNumber < b.installmentNumber ? -1 : 0;\r\n };\r\n\r\n const hasChangedValues = (values) => {\r\n return ['totalInstallments', 'amount', 'effectiveDate', 'items'].some(\r\n (path) => lodash.get(values, path) !== undefined\r\n );\r\n };\r\n\r\n const distributeValueToInstallments = (value, number) => {\r\n const totalValue = parseFloat(value);\r\n const numInstallments = parseInt(number, 10);\r\n\r\n if (totalValue <= 0 || numInstallments <= 0) {\r\n return [];\r\n }\r\n\r\n const valuePerInstallment = totalValue / numInstallments;\r\n let remainingValue = totalValue;\r\n\r\n const installments = [];\r\n\r\n for (let i = 0; i < numInstallments - 1; i += 1) {\r\n const installment = parseFloat(valuePerInstallment.toFixed(2));\r\n installments.push(installment);\r\n remainingValue -= installment;\r\n }\r\n\r\n installments.push(parseFloat(remainingValue.toFixed(2)));\r\n\r\n return installments;\r\n };\r\n\r\n const handleLoadSettings = () => {\r\n const { items = [], totalInstallments = 1 } = form.getFieldsValue();\r\n\r\n if (totalInstallments > 1) {\r\n setRecurringEnabled(false);\r\n }\r\n\r\n setHasOneReceived(items.some((c) => c.isPaid || false));\r\n setNumberOfInstallments(totalInstallments);\r\n };\r\n\r\n const handleValuesChange = (changedValues, values) => {\r\n const { amount, items = [], effectiveDate, totalInstallments = 1 } = values;\r\n\r\n handleLoadSettings();\r\n\r\n if (!hasChangedValues(changedValues)) {\r\n return;\r\n }\r\n\r\n const allowsUpdateItem =\r\n (lodash.get(changedValues, 'amount') !== undefined ||\r\n lodash.get(changedValues, 'effectiveDate') !== undefined ||\r\n lodash.get(changedValues, 'totalInstallments') !== undefined) &&\r\n items.every((c) => !c.isPaid);\r\n\r\n let newItems = items.sort(handleSortItems);\r\n\r\n if (items.length > totalInstallments) {\r\n newItems = newItems.slice(0, totalInstallments);\r\n }\r\n\r\n const installments = distributeValueToInstallments(\r\n amount,\r\n totalInstallments\r\n );\r\n\r\n for (let number = 1; number <= totalInstallments; number += 1) {\r\n const installment = newItems.find((c) => c.installmentNumber === number);\r\n const installmentAmount = installments[number - 1];\r\n const nextDate = moment(effectiveDate)\r\n .clone()\r\n .add(number - 1, 'month');\r\n\r\n if (!installment) {\r\n newItems.push({\r\n installmentNumber: number,\r\n dueDate: nextDate,\r\n amount: installmentAmount,\r\n checkingAccount: normalizeToSelect(\r\n suggestAsDefaultCheckingAccount ?? settings.checkingAccount\r\n ),\r\n isPaid: false,\r\n payment: {\r\n interestAmount: 0,\r\n discount: 0,\r\n fineAmount: 0,\r\n netAmount: installmentAmount\r\n }\r\n });\r\n } else {\r\n const { payment } = installment;\r\n\r\n if (allowsUpdateItem) {\r\n installment.amount = installmentAmount;\r\n installment.dueDate = nextDate;\r\n installment.interestAmount = 0;\r\n installment.discount = 0;\r\n installment.fineAmount = 0;\r\n }\r\n\r\n installment.payment.netAmount =\r\n installment.amount +\r\n payment.interestAmount +\r\n payment.fineAmount -\r\n payment.discount;\r\n }\r\n }\r\n\r\n form.setFieldsValue({ items: newItems });\r\n };\r\n\r\n const handleBeforeBinding = ({\r\n type,\r\n status,\r\n amount = 0,\r\n totalInstallments = 1,\r\n effectiveDate,\r\n patient,\r\n supplier,\r\n customer,\r\n costCenter,\r\n attachments = [],\r\n items = [],\r\n category,\r\n ...rest\r\n }) => {\r\n if (patient != null) {\r\n setTabKey('tab_patient');\r\n }\r\n\r\n if (customer != null) {\r\n setTabKey('tab_customer');\r\n }\r\n\r\n const values = {\r\n ...rest,\r\n type,\r\n status,\r\n patient,\r\n customer,\r\n supplier,\r\n amount,\r\n totalInstallments,\r\n effectiveDate: effectiveDate ? moment(effectiveDate) : moment(),\r\n costCenter: normalizeToSelect(costCenter),\r\n attachments: attachments.map((c) => c.attachment),\r\n category,\r\n items: items.map((c) => ({\r\n ...c,\r\n dueDate: moment(c.dueDate),\r\n checkingAccount: normalizeToSelect(c.checkingAccount),\r\n payment: {\r\n ...c.payment,\r\n date: c.payment?.date ? moment(c.payment?.date) : null,\r\n creationTime: c.payment?.creationTime\r\n ? moment(c.payment?.creationTime)\r\n : null,\r\n dateOfCompensation: c.payment?.dateOfCompensation\r\n ? moment(c.payment?.dateOfCompensation)\r\n : null\r\n }\r\n }))\r\n };\r\n\r\n if (!rest.id) {\r\n handleValuesChange({ totalInstallments }, values);\r\n }\r\n\r\n if (category) {\r\n setCurrentCategory(category);\r\n }\r\n\r\n setHasOneReceived(items.some((c) => c.isPaid || false));\r\n\r\n return values;\r\n };\r\n\r\n const changeField = (fieldKey, newValues) => {\r\n const value = lodash.merge(\r\n form.getFieldValue(['items', fieldKey]),\r\n newValues\r\n );\r\n\r\n form.setFields([{ name: ['items', fieldKey], value }]);\r\n };\r\n\r\n const openEditingField = (editing, field) => {\r\n const { items = [] } = form.getFieldsValue();\r\n\r\n if (editing && items.some((c, index) => !c.isPaid && index < field.name)) {\r\n Modal.confirm({\r\n width: '700px',\r\n okText: 'Continuar',\r\n cancelText: 'Voltar',\r\n onCancel: () => {\r\n changeField(field.name, { isPaid: false });\r\n },\r\n onOk: () => {\r\n setFieldEditing(field);\r\n },\r\n title: 'Existe parcela anterior em aberta. Deseja prosseguir?'\r\n });\r\n return;\r\n }\r\n\r\n setFieldEditing(editing ? field : null);\r\n };\r\n\r\n const closeEditingField = () => {\r\n handleLoadSettings();\r\n openEditingField(false);\r\n };\r\n\r\n const allowsShowCategoryAlert = () => {\r\n if (!currentCategory || !accountantId) {\r\n return false;\r\n }\r\n\r\n return currentCategory.hasAccountingIssues;\r\n };\r\n\r\n const handleTabChange = (tab) => {\r\n const { patient, customer } = form.getFieldsValue();\r\n\r\n if (tab === 'tab_customer' && patient) {\r\n Modal.confirm({\r\n title: `Deseja remover o ${segmentFields.serviceRecipient.toLowerCase()}?`,\r\n onOk: () => {\r\n form.setFieldsValue({ patient: null });\r\n setTabKey(tab);\r\n }\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (tab === 'tab_patient' && customer) {\r\n Modal.confirm({\r\n title: `Deseja remover o ${segmentFields.client.toLowerCase()}?`,\r\n onOk: () => {\r\n form.setFieldsValue({ customer: null });\r\n setTabKey(tab);\r\n }\r\n });\r\n\r\n return;\r\n }\r\n\r\n setTabKey(tab);\r\n };\r\n\r\n return (\r\n (\r\n \r\n )}\r\n >\r\n
\r\n {fieldEditing && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {data.type === 'receipt' ? (\r\n <>\r\n \r\n {!isFinancialAdministrator && (\r\n \r\n \r\n (\r\n \r\n
\r\n
{c.name}
\r\n {c.federalTaxNumber ? (\r\n
\r\n {formatFederalTaxNumber(c.federalTaxNumber)}\r\n
\r\n ) : null}\r\n
\r\n \r\n )}\r\n />\r\n \r\n \r\n )}\r\n \r\n \r\n (\r\n \r\n
\r\n
{c.name}
\r\n {c.federalTaxNumber ? (\r\n
\r\n {formatFederalTaxNumber(c.federalTaxNumber)}\r\n
\r\n ) : null}\r\n
\r\n \r\n )}\r\n />\r\n
\r\n \r\n
\r\n \r\n ) : (\r\n \r\n (\r\n \r\n
\r\n
{c.name}
\r\n {c.federalTaxNumber ? (\r\n
\r\n {formatFederalTaxNumber(c.federalTaxNumber)}\r\n
\r\n ) : null}\r\n
\r\n \r\n )}\r\n />\r\n
\r\n )}\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n date.isAfter(moment(), 'day')}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n Parcelas\r\n \r\n {({ field, value }) => (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n openEditingField(checked, field)}\r\n disabled={value.amount === undefined}\r\n />\r\n \r\n \r\n {value.isPaid && (\r\n \r\n \r\n openEditingField(true, field)}\r\n />\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {\r\n return parentCategoryId === null;\r\n }}\r\n params={{ types: [type] }}\r\n getSubItems={({ subCategories }) => subCategories}\r\n getTitle={({ name }) => name}\r\n onSelect={(_, { item }) => setCurrentCategory(item)}\r\n />\r\n \r\n \r\n \r\n\r\n {allowsShowCategoryAlert() && (\r\n \r\n )}\r\n\r\n {enabledCostCenter && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {!isEditing && numberOfInstallments === 1 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n )}\r\n\r\n Anexos\r\n false}>\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FinancialEntryEdit;\r\n","/* eslint-disable prefer-template */\r\nconst roundDecimal = (type, value, exp) => {\r\n if (typeof exp === 'undefined' || +exp === 0) {\r\n return Math[type](value);\r\n }\r\n value = +value;\r\n exp = +exp;\r\n\r\n if (Number.isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) {\r\n return NaN;\r\n }\r\n\r\n value = value.toString().split('e');\r\n value = Math[type](+(value[0] + 'e' + (value[1] ? +value[1] - exp : -exp)));\r\n value = value.toString().split('e');\r\n return +(value[0] + 'e' + (value[1] ? +value[1] + exp : exp));\r\n};\r\n\r\nconst round = (value, exp = -2) => {\r\n return roundDecimal('round', value, exp);\r\n};\r\n\r\nconst ceil = (value, exp = -2) => {\r\n return roundDecimal('ceil', value, exp);\r\n};\r\n\r\nconst floor = (value, exp = -2) => {\r\n return roundDecimal('floor', value, exp);\r\n};\r\n\r\nexport { round, ceil, floor };\r\n","import React, { useState, useEffect, isValidElement } from 'react';\r\nimport {\r\n Collapse,\r\n DatePicker,\r\n Divider,\r\n Form,\r\n Input,\r\n InputNumber,\r\n Modal,\r\n Row,\r\n Select,\r\n Switch,\r\n Tabs\r\n} from 'antd';\r\nimport {\r\n DrawerEdit,\r\n FormItemWrap,\r\n api,\r\n ResourceEdit,\r\n useCrudEditContext\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n FormItemUserDetail,\r\n InputCurrency,\r\n InputPercent,\r\n RemoteSelectCrud,\r\n ResCol\r\n} from 'components';\r\nimport isNullOrEmpty from 'util/functions/isNullOrEmpty';\r\nimport useCompany from 'core/hooks/useCompany';\r\nimport { useDispatch } from 'react-redux';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport { cancelEditInvoice } from 'stores/financialEntries/financialEntryActions';\r\nimport moment from 'moment';\r\nimport { round } from 'util/functions/decimal';\r\nimport { normalizeFromSelect, normalizeToSelect } from 'util/converters';\r\nimport RemoteSelect from 'components/RemoteSelect';\r\nimport InvoiceHelper from 'helpers';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { formatFederalTaxNumber } from 'util/formatters';\r\nimport CustomerEdit from '../customers/CustomerEdit';\r\n\r\nconst FinancialEntryInvoiceEdit = (props) => {\r\n const { data } = props;\r\n const dispatch = useDispatch();\r\n const segmentFields = useSegmentField();\r\n const [hasPerson] = useState(!!(data.patient ?? data.customer));\r\n const [currentPatient, setCurrentPatient] = useState(data.patient);\r\n const { company, userCompany } = useCompany();\r\n const [tabKey, setTabKey] = useState('tab_patient');\r\n const { form } = useCrudEditContext();\r\n\r\n const handleBeforeSubmit = ({ invoice, patient, customer, ...rest }) => {\r\n return {\r\n ...data,\r\n ...rest,\r\n patient: normalizeFromSelect(patient),\r\n customer: normalizeFromSelect(customer),\r\n invoice: {\r\n ...(data.invoice ?? {}),\r\n ...invoice,\r\n company: normalizeFromSelect(invoice?.company),\r\n effectiveDate: moment(invoice?.effectiveDate).format('YYYY-MM-DD HH:mm')\r\n }\r\n };\r\n };\r\n\r\n const handleBeforeBindingIInvoice = (invoice) => {\r\n const {\r\n authorizationDate,\r\n cancellationDate,\r\n creationTime,\r\n lastModificationTime\r\n } = invoice ?? {};\r\n\r\n return {\r\n ...invoice,\r\n authorizationDate: authorizationDate ? moment(authorizationDate) : null,\r\n cancellationDate: cancellationDate ? moment(cancellationDate) : null,\r\n company: normalizeToSelect(invoice?.company),\r\n effectiveDate: invoice?.effectiveDate\r\n ? moment(invoice?.effectiveDate)\r\n : moment(),\r\n creationTime: creationTime ? moment(creationTime) : null,\r\n lastModificationTime: lastModificationTime\r\n ? moment(lastModificationTime)\r\n : null\r\n };\r\n };\r\n\r\n const handleBeforeBinding = ({ invoice, patient, customer, ...rest }) => {\r\n setCurrentPatient(patient);\r\n\r\n if (patient != null) {\r\n setTabKey('tab_patient');\r\n }\r\n\r\n if (customer != null) {\r\n setTabKey('tab_customer');\r\n }\r\n\r\n return {\r\n ...rest,\r\n patient: normalizeToSelect(patient),\r\n customer: normalizeToSelect(customer),\r\n invoice: handleBeforeBindingIInvoice(invoice)\r\n };\r\n };\r\n\r\n const readOnly = InvoiceHelper.isReadOnly(data?.invoice?.status);\r\n\r\n const handleCancel = () => {\r\n dispatch(cancelEditInvoice());\r\n };\r\n\r\n const calculeAmount = (base, rate) => {\r\n return round(base * (rate / 100));\r\n };\r\n\r\n const calculateDisplayTaxes = (total = {}) => {\r\n const display = {};\r\n\r\n display.issAmount = total.issWithheld ? total.issAmount : 0;\r\n display.pisAmount = total.pisWithheld ? total.pisAmount : 0;\r\n display.cofinsAmount = total.cofinsWithheld ? total.cofinsAmount : 0;\r\n display.csllAmount = total.csllWithheld ? total.csllAmount : 0;\r\n display.irAmount = total.irWithheld ? total.irAmount : 0;\r\n display.inssAmount = total.inssWithheld ? total.inssAmount : 0;\r\n\r\n return display;\r\n };\r\n\r\n const recalcuteAll = (allFields) => {\r\n let { invoice = {} } = allFields;\r\n const { amount } = data;\r\n const { total = {} } = invoice;\r\n\r\n const {\r\n deductionsAmount = 0,\r\n issRate = 0,\r\n pisRate = 0,\r\n cofinsRate = 0,\r\n irRate = 0,\r\n csllRate = 0,\r\n inssRate = 0\r\n } = total;\r\n\r\n invoice = {\r\n ...invoice,\r\n total: {\r\n invoiceAmount: amount,\r\n issBaseTax: amount\r\n }\r\n };\r\n\r\n total.invoiceAmount = amount;\r\n total.issBaseTax =\r\n issRate > 0 ? total.invoiceAmount - deductionsAmount : 0.0;\r\n total.issAmount = calculeAmount(total.issBaseTax, issRate);\r\n total.pisAmount = calculeAmount(total.invoiceAmount, pisRate);\r\n total.cofinsAmount = calculeAmount(total.invoiceAmount, cofinsRate);\r\n total.csllAmount = calculeAmount(total.invoiceAmount, csllRate);\r\n total.irAmount = calculeAmount(total.invoiceAmount, irRate);\r\n total.inssAmount = calculeAmount(total.invoiceAmount, inssRate);\r\n\r\n const displayTaxes = calculateDisplayTaxes(total);\r\n\r\n form.setFieldsValue({\r\n ...allFields,\r\n invoice: { ...invoice, total },\r\n display: displayTaxes\r\n });\r\n };\r\n\r\n const handleLoadedSettings = ({ serviceInvoice }) => {\r\n const {\r\n additionalInformation,\r\n cityServiceCode,\r\n cnaeCode,\r\n federalServiceCode,\r\n taxationType,\r\n ...total\r\n } = serviceInvoice;\r\n const { effectiveDate, amount } = data;\r\n\r\n const initialValues = {\r\n ...data,\r\n invoice: {\r\n discrimination: data.description,\r\n effectiveDate: effectiveDate ? moment(effectiveDate) : null,\r\n additionalInformation,\r\n cityServiceCode,\r\n cnaeCode,\r\n federalServiceCode,\r\n taxationType,\r\n total: {\r\n ...total,\r\n invoiceAmount: amount\r\n }\r\n }\r\n };\r\n\r\n recalcuteAll(initialValues);\r\n form.setFieldsValue(initialValues);\r\n };\r\n\r\n const handleGetSettings = (companyId) => {\r\n api.fetch('companies/:id/settings', { id: companyId }).then(({ data }) => {\r\n handleLoadedSettings(data?.result);\r\n });\r\n };\r\n\r\n const handleFieldsChange = ({ invoice }, allFields) => {\r\n if (invoice?.company !== undefined) {\r\n handleGetSettings(invoice?.company.key);\r\n }\r\n\r\n recalcuteAll(allFields);\r\n };\r\n\r\n const getTitle = () => {\r\n return readOnly ? 'Visualizar nota fiscal' : 'Editar nota fiscal';\r\n };\r\n\r\n const handleTabChange = (tab) => {\r\n const { patient, customer } = form.getFieldsValue();\r\n\r\n if (tab === 'tab_customer' && patient) {\r\n Modal.confirm({\r\n title: `Deseja remover o ${segmentFields.serviceRecipient.toLowerCase()}?`,\r\n onOk: () => {\r\n form.setFieldsValue({ patient: null });\r\n setTabKey(tab);\r\n }\r\n });\r\n\r\n return;\r\n }\r\n\r\n if (tab === 'tab_patient' && customer) {\r\n Modal.confirm({\r\n title: `Deseja remover o ${segmentFields.client.toLowerCase()}?`,\r\n onOk: () => {\r\n form.setFieldsValue({ customer: null });\r\n setTabKey(tab);\r\n }\r\n });\r\n\r\n return;\r\n }\r\n\r\n setTabKey(tab);\r\n };\r\n\r\n const handleSuccessUpdate = (response) => {\r\n handleCancel();\r\n if (props.onCreateOrUpdateSuccess) {\r\n props.onCreateOrUpdateSuccess(response);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const defaultCampany = data.invoice?.company ?? userCompany ?? company;\r\n\r\n if (!data.invoice?.id) {\r\n form.setFieldsValue({\r\n invoice: { company: normalizeToSelect(defaultCampany) }\r\n });\r\n handleGetSettings(defaultCampany.id);\r\n } else if (['rejected', 'created'].includes(data.invoice?.status)) {\r\n handleGetSettings(defaultCampany.id);\r\n }\r\n }, []);\r\n\r\n return (\r\n \r\n
\r\n <>\r\n
}>\r\n {routes.map((route) => (\r\n \r\n ))}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Routes;\r\n","import React from 'react';\r\nimport { Layout } from 'antd';\r\nimport Sidebar from 'components/Sidebar/Sidebar';\r\nimport { RouteRedirect } from '@unicus/react-ui-kit';\r\nimport 'components/IconLibrary';\r\nimport TopbarAdmin from 'components/Topbar/TopbarAdmin';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { Routes } from 'components/routes';\r\n\r\nconst { Content } = Layout;\r\n\r\nconst AdminContainer = (props) => {\r\n const { match, routes, roles, basePath } = props;\r\n const { isAuthenticated, isAdmin, tenantId } = useAuth();\r\n\r\n const onBeforeRouteRender = () => {\r\n if (isAuthenticated && !isAdmin() && tenantId) {\r\n return ;\r\n }\r\n\r\n return null;\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default AdminContainer;\r\n","/* eslint-disable prefer-const */\r\nimport React from 'react';\r\nimport { Layout, Row, Col, Tooltip } from 'antd';\r\nimport { Link } from 'react-router-dom';\r\nimport { useAuthContext } from '@unicus/react-ui-kit';\r\nimport logo from 'assets/images/logo.png';\r\nimport wlogo from 'assets/images/w-logo.png';\r\nimport CurrentUserProfile from 'components/CurrentUserProfile';\r\nimport HorizontalToolbar from 'components/HorizontalToolbar';\r\nimport { MyNotifications } from 'components';\r\nimport { connect, useDispatch } from 'react-redux';\r\nimport { useHistory } from 'react-router';\r\nimport {\r\n NAV_STYLE_DRAWER,\r\n NAV_STYLE_FIXED,\r\n NAV_STYLE_MINI_SIDEBAR,\r\n NAV_STYLE_NO_HEADER_MINI_SIDEBAR,\r\n TAB_SIZE\r\n} from 'constants/themeSettings';\r\nimport {\r\n onNavStyleChange,\r\n toggleCollapsedSideNav\r\n} from 'stores/settings/settingsActions';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { QuestionCircleOutlined } from '@ant-design/icons';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport {\r\n ROLE_ACCOUNTANT,\r\n ROLE_ADMIN,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PROFESSIONAL,\r\n ROLE_RECEPTIONIST,\r\n ROLE_STUDENT\r\n} from 'constants/types';\r\n\r\nconst { Header } = Layout;\r\n\r\nconst InsideHeader = ({\r\n routes,\r\n match,\r\n width,\r\n navCollapsed,\r\n navStyle,\r\n readOnly\r\n}) => {\r\n const { isAuthenticated, user } = useAuthContext();\r\n const { serviceProvider } = user;\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const { hasRole } = useAuth();\r\n\r\n const toggleClickHandle = () => {\r\n if (navStyle === NAV_STYLE_DRAWER) {\r\n dispatch(toggleCollapsedSideNav(!navCollapsed));\r\n } else if (navStyle === NAV_STYLE_FIXED) {\r\n dispatch(onNavStyleChange(NAV_STYLE_MINI_SIDEBAR));\r\n } else if (navStyle === NAV_STYLE_NO_HEADER_MINI_SIDEBAR) {\r\n dispatch(toggleCollapsedSideNav(!navCollapsed));\r\n } else {\r\n dispatch(onNavStyleChange(NAV_STYLE_FIXED));\r\n }\r\n };\r\n\r\n const handleClickHelp = () => {\r\n window.open('https://kuidare.tawk.help/', '_blank');\r\n };\r\n\r\n const handleClickSettings = () => {\r\n history.push('/app/settings');\r\n };\r\n\r\n return (\r\n
\r\n
\r\n
\r\n TAB_SIZE ? 'start' : 'space-between'}\r\n gutter={[1, 0]}\r\n className=\"gx-w-100 gx-flex-nowrap\"\r\n >\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \"\"\r\n \r\n \r\n \"\"\r\n \r\n
\r\n \r\n \r\n {width > TAB_SIZE ? (\r\n \r\n \r\n \r\n \r\n \r\n {isAuthenticated ? (\r\n
\r\n {hasRole(\r\n ROLE_ADMIN,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT,\r\n ROLE_FINANCIAL,\r\n ROLE_ACCOUNTANT,\r\n ROLE_RECEPTIONIST\r\n ) ? (\r\n \r\n \r\n \r\n ) : null}\r\n\r\n {serviceProvider ? (\r\n
\r\n \r\n
\r\n ) : null}\r\n \r\n \r\n \r\n\r\n \r\n
\r\n ) : null}\r\n \r\n \r\n ) : isAuthenticated ? (\r\n
\r\n \r\n\r\n {serviceProvider ? (\r\n
\r\n \r\n
\r\n ) : null}\r\n \r\n \r\n
\r\n ) : null}\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst mapStateToProps = ({ settings }) => {\r\n const { themeType, navStyle, navCollapsed, width, locale } = settings;\r\n return { themeType, navStyle, navCollapsed, width, locale };\r\n};\r\n\r\nexport default connect(mapStateToProps, {})(InsideHeader);\r\n","import React, { useState } from 'react';\r\nimport { api } from '@unicus/react-ui-kit';\r\nimport { Alert, Button, Col, Modal, Row, Upload, message } from 'antd';\r\nimport { UploadOutlined } from '@ant-design/icons';\r\nimport useAuth from 'core/hooks/useAuth';\r\n\r\nconst extensions = ['application/pdf'];\r\n\r\nconst UploadRegistrationStatementModal = () => {\r\n const { isRequiredRegistrationStatement, refresh, refreshToken } = useAuth();\r\n const [visible, setVisible] = useState(isRequiredRegistrationStatement);\r\n const [fileList, setFileList] = useState([]);\r\n const [uploading, setUploading] = useState(false);\r\n\r\n const handleUpload = () => {\r\n const formData = new FormData();\r\n\r\n fileList.forEach((file) => {\r\n formData.append('file', file);\r\n formData.append('type', 'attachment');\r\n });\r\n\r\n setUploading(true);\r\n\r\n api\r\n .post('student-accounts/registration-statement', formData)\r\n .then((res) => {\r\n if (res.status !== 200 && res?.message) {\r\n throw new Error(res?.message);\r\n }\r\n })\r\n .then(() => {\r\n setFileList([]);\r\n refresh({ refreshToken, type: 'professional' });\r\n message.success('Declaração de matrícula enviada.');\r\n setVisible(false);\r\n })\r\n .catch((error) => {\r\n message.error(error?.message ?? 'Ocorreu um erro ao enviar o arquivo.');\r\n })\r\n .finally(() => {\r\n setUploading(false);\r\n });\r\n };\r\n\r\n const props = {\r\n onRemove: (file) => {\r\n const index = fileList.indexOf(file);\r\n const newFileList = fileList.slice();\r\n newFileList.splice(index, 1);\r\n setFileList(newFileList);\r\n },\r\n beforeUpload: (file) => {\r\n if (!extensions.includes(file.type.toLowerCase())) {\r\n message.error('É permitido somente arquivos com a extensão .pdf');\r\n return false;\r\n }\r\n\r\n const isLt2M = file.size / 1024 / 1024 < 2;\r\n\r\n if (!isLt2M) {\r\n message.error('O tamanho do arquivo não pode ser superior a 2MB');\r\n return false;\r\n }\r\n\r\n setFileList([...fileList, file]);\r\n\r\n return false;\r\n },\r\n fileList\r\n };\r\n\r\n return (\r\n setVisible(false)}\r\n width={800}\r\n footer={\r\n \r\n {uploading ? 'Enviando' : 'Enviar'}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default UploadRegistrationStatementModal;\r\n","import React from 'react';\r\nimport { Layout } from 'antd';\r\nimport Sidebar from 'components/Sidebar/Sidebar';\r\nimport { RouteRedirect } from '@unicus/react-ui-kit';\r\nimport 'components/IconLibrary';\r\nimport InsideHeader from 'components/Topbar/InsideHeader';\r\nimport useSubscription from 'core/hooks/useSubscription';\r\nimport UploadRegistrationStatementModal from 'pages/shared/UploadRegistrationStatementModal';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { Routes } from 'components/routes';\r\n\r\nconst { Content } = Layout;\r\n\r\nconst AppContainer = (props) => {\r\n const { match, routes, roles, basePath } = props;\r\n const { isAuthenticated, isAdmin, isMultiTenant, user, tenantId } = useAuth();\r\n const { isActivated, hasLicense } = useSubscription();\r\n\r\n const onBeforeRouteRender = ({ route }) => {\r\n if (isAuthenticated && isAdmin() && !tenantId) {\r\n return ;\r\n }\r\n\r\n if (isAuthenticated && isMultiTenant && !tenantId) {\r\n return ;\r\n }\r\n\r\n if (!isAuthenticated) {\r\n return ;\r\n }\r\n\r\n if (\r\n !isActivated &&\r\n hasLicense &&\r\n route?.path !== '/expired-license' &&\r\n route?.path !== '/subscriptions'\r\n ) {\r\n return ;\r\n }\r\n\r\n if (\r\n !isActivated &&\r\n route?.path !== '/subscriptions' &&\r\n route?.path !== '/expired-license'\r\n ) {\r\n const allowedRoutes =\r\n !isAdmin() && user.hasTreatmentInvite\r\n ? ['/patients', '/:id/history']\r\n : [];\r\n\r\n if (!allowedRoutes.some((c) => route.path.startsWith(c))) {\r\n return ;\r\n }\r\n }\r\n\r\n return null;\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default AppContainer;\r\n","import React from 'react';\r\nimport { Menu } from 'antd';\r\nimport { buildMatchPath } from '@unicus/react-ui-kit';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { useHistory } from 'react-router-dom';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { ROLE_ADMIN } from 'constants/types';\r\n\r\nconst SettingsMenu = (props) => {\r\n const { match, routes, collapsed, hidden } = props;\r\n const { features: userFeatures = [], hasRole } = useAuth();\r\n const history = useHistory();\r\n\r\n const userHasFeature = ({ features = [] }) => {\r\n return (\r\n features.length === 0 ||\r\n features.findIndex((c) => userFeatures.includes(c)) >= 0\r\n );\r\n };\r\n\r\n const allowRenderRoute = (route) => {\r\n if(route?.hidden?.()) {\r\n return false;\r\n }\r\n\r\n if (userHasFeature(route)) {\r\n return !!route.menu;\r\n }\r\n\r\n return false;\r\n };\r\n\r\n const handleGo = (url) => {\r\n history.push(url);\r\n };\r\n\r\n const getIcon = (route) => {\r\n if (!route.menu) {\r\n return null;\r\n }\r\n\r\n return ;\r\n };\r\n\r\n const menu = (route, basePath, sub, index) => {\r\n if (Array.isArray(route.roles) && !hasRole(...route.roles, ROLE_ADMIN)) {\r\n return null;\r\n }\r\n\r\n const url = `${buildMatchPath(match, (basePath || '') + route.path)}`;\r\n\r\n if (route.routes) {\r\n return (\r\n \r\n {route?.menu?.icon ? (\r\n \r\n ) : null}\r\n {collapsed ? null : route.title}\r\n
\r\n }\r\n >\r\n {route.routes\r\n .filter((c) => !c.hide)\r\n .map((c) => menu(c, route.path, true, index))}\r\n \r\n );\r\n }\r\n\r\n return (\r\n handleGo(url)}\r\n icon={getIcon(route)}\r\n >\r\n {route.title}\r\n \r\n );\r\n };\r\n\r\n const index = window.location.href.indexOf(match.path);\r\n const key = window.location.href.substring(\r\n index + match.path.length,\r\n window.location.href.length\r\n );\r\n\r\n const defaultOpenKeys = [];\r\n\r\n return (\r\n \r\n {routes &&\r\n routes\r\n .filter((c) => !c.hide && allowRenderRoute(c))\r\n .map((route, index) => menu(route, undefined, false, index))}\r\n \r\n );\r\n};\r\n\r\nexport default SettingsMenu;\r\n","import React from 'react';\r\nimport { Button, Layout } from 'antd';\r\nimport 'components/IconLibrary';\r\nimport { Redirect } from 'react-router-dom';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { MenuFoldOutlined } from '@ant-design/icons';\r\nimport { ROLE_ADMIN } from 'constants/types';\r\nimport { Routes } from 'components/routes';\r\nimport SettingsMenu from './SettingsMenu';\r\n\r\nconst { Content, Sider } = Layout;\r\n\r\nconst Settings = (props) => {\r\n const { match, routes, roles, basePath } = props;\r\n const { hasRole } = useAuth();\r\n const [collapsed, setCollapsed] = React.useState(true);\r\n\r\n const toggleCollapsed = () => {\r\n setCollapsed(!collapsed);\r\n };\r\n\r\n const baseRoute = '/app/settings';\r\n\r\n const index = window.location.href.indexOf(baseRoute);\r\n\r\n const isBaseRoute = !!window.location.href.substring(\r\n index + baseRoute.length,\r\n window.location.href.length\r\n );\r\n\r\n const defaultRoute = routes.find(\r\n (c) => c.roles === undefined || hasRole(...c.roles, ROLE_ADMIN)\r\n );\r\n\r\n return (\r\n \r\n {!isBaseRoute && }\r\n \r\n \r\n \r\n }\r\n />\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Settings;\r\n","import React from 'react';\r\nimport { Layout } from 'antd';\r\nimport Sidebar from 'components/Sidebar/Sidebar';\r\nimport { RouteRedirect, Routes } from '@unicus/react-ui-kit';\r\nimport 'components/IconLibrary';\r\nimport InsideHeader from 'components/Topbar/InsideHeader';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport useSubscription from 'core/hooks/useSubscription';\r\n\r\nconst { Content } = Layout;\r\n\r\nconst PartnershipContainer = (props) => {\r\n const { match, routes, roles, basePath } = props;\r\n const { isAuthenticated, isAdmin, isMultiTenant, tenantId } = useAuth();\r\n const { isActivated } = useSubscription();\r\n\r\n const onBeforeRouteRender = ({ route }) => {\r\n if (isAuthenticated && isAdmin() && !tenantId) {\r\n return ;\r\n }\r\n\r\n if (isAuthenticated && isMultiTenant && !tenantId) {\r\n return ;\r\n }\r\n\r\n if (!isAuthenticated) {\r\n return ;\r\n }\r\n\r\n if (!isActivated && route?.path !== '/subscriptions') {\r\n return ;\r\n }\r\n\r\n return null;\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default PartnershipContainer;\r\n","/* eslint-disable import/no-cycle */\r\nimport React from 'react';\r\nimport asyncComponent from 'util/asyncComponent';\r\nimport AdminContainer from 'containers/admin/AdminContainer';\r\nimport AppContainer from 'containers/app/AppContainer';\r\nimport Settings from 'pages/app/settings/Settings';\r\nimport {\r\n ROLE_ACCOUNTANT,\r\n ROLE_ADMIN,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PARTNERSHIP,\r\n ROLE_PROFESSIONAL,\r\n ROLE_RECEPTIONIST,\r\n ROLE_STOCK,\r\n ROLE_STUDENT\r\n} from 'constants/types';\r\nimport PartnershipContainer from 'containers/partnership/PartnershipContainer';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\n\r\nconst useConfig = () => {\r\n const segmentFields = useSegmentField();\r\n\r\n const getServiceRoutes = () => {\r\n const icon = segmentFields.isHealthcareEnabled ? 'procedures' : 'briefcase';\r\n\r\n return {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: '/procedures',\r\n title: `${segmentFields.services}`,\r\n singularTitle: `${segmentFields.service}`,\r\n component: asyncComponent(() =>\r\n import('pages/app/procedures/ProcedureList')\r\n ),\r\n menu: { icon }\r\n };\r\n };\r\n\r\n const getRecordSectionsRoutes = () => {\r\n return {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_PROFESSIONAL,\r\n ROLE_STUDENT,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL\r\n ],\r\n path: '/record-sections',\r\n title: 'Seções',\r\n singularTitle: 'Seção',\r\n component: asyncComponent(() =>\r\n import('pages/app/medicalRecordSections/MedicalRecordSectionList')\r\n ),\r\n menu: { icon: 'clipboard-list' }\r\n };\r\n };\r\n\r\n const getPrescriptionRoutes = () => {\r\n return {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: '/prescription-models',\r\n title: 'Modelos de prescrição',\r\n singularTitle: 'Modelo de prescrição',\r\n component: asyncComponent(() =>\r\n import('pages/app/prescriptionModels/PrescriptionModelList')\r\n ),\r\n menu: { icon: 'briefcase-medical' }\r\n };\r\n };\r\n\r\n const getRecordRouteItems = () => {\r\n const items = [];\r\n items.push(getRecordSectionsRoutes());\r\n\r\n if (segmentFields.isHealthcareEnabled) {\r\n items.push(getPrescriptionRoutes());\r\n }\r\n\r\n return items;\r\n };\r\n\r\n const getRecordRoutes = () => {\r\n const childRoutes = getRecordRouteItems();\r\n\r\n if (childRoutes > 1) {\r\n return {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_PROFESSIONAL,\r\n ROLE_STUDENT,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL\r\n ],\r\n path: '/record',\r\n title: `${segmentFields.record}`,\r\n component: () => null,\r\n menu: { icon: 'notes-medical' },\r\n routes: getRecordRouteItems()\r\n };\r\n }\r\n\r\n return {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: `/record${childRoutes[0].path}`,\r\n title: childRoutes[0].title,\r\n singularTitle: childRoutes[0].singularTitle,\r\n component: childRoutes[0].component,\r\n menu: {\r\n icon: segmentFields.isHealthcareEnabled ? 'notes-medical' : 'book'\r\n }\r\n };\r\n };\r\n\r\n return {\r\n roles: [\r\n {\r\n name: ROLE_ADMIN,\r\n defaultPath: '/a/accounts/professional-accounts'\r\n },\r\n {\r\n name: '*',\r\n defaultPath: '/app'\r\n },\r\n {\r\n name: ROLE_PARTNERSHIP,\r\n defaultPath: '/p'\r\n },\r\n {\r\n name: ROLE_FINANCIAL,\r\n defaultPath: '/app/financial/financial-dashboard'\r\n },\r\n {\r\n name: ROLE_FINANCIAL_ADMINISTRATOR,\r\n defaultPath: '/app/financial/financial-dashboard'\r\n },\r\n {\r\n name: ROLE_ACCOUNTANT,\r\n defaultPath: '/app/settings/accountings'\r\n }\r\n ],\r\n routes: [\r\n {\r\n path: '/signin',\r\n component: asyncComponent(() => import('pages/sign/SignIn'))\r\n },\r\n {\r\n path: '/signup',\r\n component: asyncComponent(() => import('pages/sign/SignUp'))\r\n },\r\n {\r\n path: '/partnerships/signup',\r\n component: asyncComponent(() => import('pages/sign/SignUpPartnership'))\r\n },\r\n {\r\n path: '/signout',\r\n component: asyncComponent(() => import('pages/sign/SignOut'))\r\n },\r\n {\r\n path: '/sign-forgot-password',\r\n component: asyncComponent(() => import('pages/sign/SignForgotPassword'))\r\n },\r\n {\r\n path: '/sign-reset-password',\r\n component: asyncComponent(() => import('pages/sign/SignResetPassword'))\r\n },\r\n {\r\n path: '/accounts-chooser',\r\n title: 'Alterar',\r\n component: asyncComponent(() => import('pages/shared/TenantChooser')),\r\n menu: { icon: 'th-large' }\r\n },\r\n {\r\n path: '/profile/:token',\r\n component: asyncComponent(() =>\r\n import('../pages/app/accountSharings/AccountSharingProfile')\r\n )\r\n },\r\n {\r\n path: '/request-share',\r\n component: asyncComponent(() =>\r\n import('../pages/public/RequestShareQRCode')\r\n )\r\n },\r\n {\r\n path: '/collaborator-invitation',\r\n component: asyncComponent(() =>\r\n import('pages/shared/CollaboratorInvitation')\r\n )\r\n },\r\n {\r\n path: '/partnerships-invitation',\r\n component: asyncComponent(() =>\r\n import('pages/shared/PartnershipInvitation')\r\n )\r\n },\r\n {\r\n path: '/partnerships-subscription-invitation',\r\n component: asyncComponent(() =>\r\n import('pages/shared/PartnershipSubscriptionInvitation')\r\n )\r\n },\r\n {\r\n path: '/support',\r\n component: asyncComponent(() => import('pages/public/RequestSupport'))\r\n },\r\n\r\n {\r\n path: '/subscription-success',\r\n component: asyncComponent(() =>\r\n import('pages/app/subscriptions/SubscriptionSuccess')\r\n )\r\n },\r\n {\r\n path: '/upload',\r\n component: asyncComponent(() => import('pages/public/MobileUploadPage'))\r\n },\r\n {\r\n path: '/a',\r\n component: (props) => ,\r\n roles: [ROLE_ADMIN],\r\n routes: [\r\n {\r\n path: '/accounts',\r\n title: 'Contas',\r\n singularTitle: 'Conta',\r\n menu: { icon: 'user' },\r\n exact: true,\r\n routes: [\r\n {\r\n path: '/professional-accounts',\r\n accountType: 'professional',\r\n resource: 'professional-accounts',\r\n endpoint: 'professional-accounts/accounts-with-details',\r\n title: `${segmentFields.serviceProviders}`,\r\n singularTitle: `${segmentFields.serviceProvider}`,\r\n component: asyncComponent(() =>\r\n import('pages/admin/accounts/AccountList')\r\n ),\r\n menu: { icon: 'user' }\r\n },\r\n {\r\n path: '/student-accounts',\r\n accountType: 'student',\r\n resource: 'student-accounts',\r\n endpoint: 'student-accounts/accounts-with-details',\r\n title: 'Estudantes',\r\n singularTitle: 'Estudante',\r\n component: asyncComponent(() =>\r\n import('pages/admin/accounts/AccountList')\r\n ),\r\n menu: { icon: 'user' }\r\n },\r\n {\r\n path: '/user-accounts',\r\n accountType: 'user',\r\n resource: 'user-accounts',\r\n endpoint: 'user-accounts/accounts-with-details',\r\n title: 'Usuários',\r\n singularTitle: 'Usuário',\r\n component: asyncComponent(() =>\r\n import('pages/admin/accounts/AccountList')\r\n ),\r\n menu: { icon: 'user' }\r\n }\r\n ]\r\n },\r\n {\r\n path: '/packages',\r\n resource: 'packages',\r\n title: 'Pacotes',\r\n singularTitle: 'Pacote',\r\n component: asyncComponent(() =>\r\n import('pages/admin/packages/PackageList')\r\n ),\r\n menu: { icon: 'box' }\r\n },\r\n {\r\n path: '/subscription-plans',\r\n title: 'Planos',\r\n singularTitle: 'Plano',\r\n component: asyncComponent(() =>\r\n import('pages/admin/subscriptionPlans/SubscriptionPlanList')\r\n ),\r\n menu: { icon: 'hand-holding-usd' }\r\n },\r\n {\r\n path: '/segments',\r\n title: 'Segmentos',\r\n singularTitle: 'Segmento',\r\n component: asyncComponent(() =>\r\n import('pages/admin/segments/SegmentList')\r\n ),\r\n menu: { icon: 'box' }\r\n },\r\n {\r\n path: '/partnerships',\r\n resource: 'partnerships',\r\n title: 'Parceiros',\r\n singularTitle: 'Parceiro',\r\n component: asyncComponent(() =>\r\n import('pages/admin/partnerships/PartnershipList')\r\n ),\r\n menu: { icon: 'box' }\r\n }\r\n ]\r\n },\r\n {\r\n path: '/p',\r\n component: (props) => ,\r\n roles: [ROLE_PARTNERSHIP],\r\n routes: [\r\n {\r\n roles: [ROLE_PARTNERSHIP],\r\n path: '/licenses',\r\n title: 'Licenças',\r\n singularTitle: 'Licença',\r\n resource: 'partnerships/subscriptions',\r\n menu: { icon: 'id-badge' },\r\n exact: true,\r\n component: asyncComponent(() =>\r\n import('pages/partnerships/licenses/LicenseList')\r\n )\r\n },\r\n {\r\n roles: [ROLE_PARTNERSHIP],\r\n path: '/subscriptions',\r\n title: 'Assinatura',\r\n exact: true,\r\n component: asyncComponent(() =>\r\n import('pages/app/subscriptions/Subscription')\r\n )\r\n },\r\n {\r\n roles: [ROLE_PARTNERSHIP],\r\n path: '/current-subscriptions',\r\n title: 'Minha assinatura',\r\n exact: true,\r\n component: asyncComponent(() =>\r\n import('pages/app/subscriptions/SubscriptionDetail')\r\n )\r\n }\r\n ]\r\n },\r\n {\r\n path: '/app',\r\n component: (props) => ,\r\n roles: ['*'],\r\n routes: [\r\n {\r\n path: '/',\r\n title: 'Visão geral',\r\n exact: true,\r\n component: asyncComponent(() => import('pages/app/home/Home')),\r\n menu: { icon: 'tachometer-alt' },\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_RECEPTIONIST,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ]\r\n },\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_FINANCIAL_ADMINISTRATOR],\r\n path: '/subscriptions',\r\n title: 'Assinatura',\r\n exact: true,\r\n component: asyncComponent(() =>\r\n import('pages/app/subscriptions/Subscription')\r\n )\r\n },\r\n {\r\n path: '/expired-license',\r\n title: 'Licença expirada',\r\n exact: true,\r\n component: asyncComponent(() =>\r\n import('pages/shared/LicenseSuspendInfo')\r\n )\r\n },\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_FINANCIAL_ADMINISTRATOR],\r\n path: '/current-subscriptions',\r\n title: 'Minha assinatura',\r\n exact: true,\r\n component: asyncComponent(() =>\r\n import('pages/app/subscriptions/SubscriptionDetail')\r\n )\r\n },\r\n {\r\n path: '/schedule',\r\n title: 'Agenda',\r\n singularTitle: 'Agenda',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_RECEPTIONIST,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/events/EventSchedule')\r\n ),\r\n menu: { icon: 'tachometer-alt' }\r\n },\r\n {\r\n path: '/recipient-care',\r\n title: 'Atendimento',\r\n singularTitle: 'Atendimento',\r\n exact: true,\r\n menu: { icon: 'users' },\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_RECEPTIONIST,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n routes: [\r\n {\r\n path: '/analysis',\r\n title: 'Análise de atendimento',\r\n singularTitle: 'Análise de atendimento',\r\n component: asyncComponent(() =>\r\n import('pages/app/attendances/AttendanceAnalysis')\r\n ),\r\n menu: { icon: 'chart-line' }\r\n },\r\n {\r\n path: '/profiles',\r\n title: `${segmentFields.serviceRecipients}`,\r\n exact: true,\r\n singularTitle: `${segmentFields.serviceRecipient}`,\r\n component: asyncComponent(() =>\r\n import('pages/app/patients/PatientList')\r\n ),\r\n menu: { icon: 'users' },\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_RECEPTIONIST,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n routes: [\r\n {\r\n path: '/:id/history',\r\n title: `${segmentFields.record}`,\r\n exact: true,\r\n singularTitle: `${segmentFields.record}`,\r\n roles: [\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/patients/PatientDetail')\r\n )\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n\r\n {\r\n path: '/relationship',\r\n title: 'Relacionamento',\r\n exact: true,\r\n singularTitle: 'Relacionamento',\r\n menu: { icon: 'users' },\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n routes: [\r\n {\r\n path: '/campaigns',\r\n title: 'Campanhas',\r\n resource: 'campaigns',\r\n singularTitle: 'Campanha',\r\n component: asyncComponent(() =>\r\n import('pages/app/campaigns/CampaignList')\r\n ),\r\n menu: { icon: 'paper-plane' },\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PROFESSIONAL\r\n ]\r\n },\r\n {\r\n path: '/contacts',\r\n title: 'Contatos',\r\n resource: 'contacts',\r\n singularTitle: 'Contato',\r\n component: asyncComponent(() =>\r\n import('pages/app/contacts/ContactList')\r\n ),\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n menu: { icon: 'user' }\r\n }\r\n ]\r\n },\r\n {\r\n path: '/attendances/:id',\r\n exact: true,\r\n title: `${segmentFields.record}`,\r\n singularTitle: `${segmentFields.record}`,\r\n roles: [\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PROFESSIONAL,\r\n ROLE_STUDENT\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/attendances/AttendanceEdit')\r\n )\r\n },\r\n {\r\n path: '/attendances/:id/redirect',\r\n title: 'Redirecionamento',\r\n singularTitle: `${segmentFields.record}`,\r\n component: asyncComponent(() =>\r\n import('pages/shared/ReceitaDigitalRedirect')\r\n )\r\n },\r\n {\r\n path: '/patients/:id/history/redirect',\r\n title: 'Redirecionamento',\r\n singularTitle: `${segmentFields.record}`,\r\n component: asyncComponent(() =>\r\n import('pages/shared/ReceitaDigitalRedirect')\r\n )\r\n },\r\n\r\n {\r\n path: '/financial',\r\n title: 'Financeiro',\r\n singularTitle: 'Financeiro',\r\n exact: true,\r\n menu: { icon: 'users' },\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n routes: [\r\n {\r\n path: '/financial-dashboard',\r\n title: 'Painel financeiro',\r\n singularTitle: 'Painel financeiro',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import(\r\n 'pages/app/financialStatistic/FinancialStatisticDashboard'\r\n )\r\n ),\r\n menu: { icon: 'chart-area' }\r\n },\r\n\r\n {\r\n path: '/financial-entries',\r\n title: 'Movimentações financeira',\r\n singularTitle: 'Movimentações financeira',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/financialEntries/FinancialEntryList')\r\n ),\r\n menu: { icon: 'receipt' }\r\n },\r\n {\r\n path: '/accounts-receivables',\r\n title: 'Contas a Receber',\r\n singularTitle: 'Contas a Receber',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/reports/AccountsReceivableReport')\r\n ),\r\n menu: { icon: 'hand-holding' }\r\n },\r\n {\r\n path: '/accounts-payable',\r\n title: 'Contas a Pagar',\r\n singularTitle: 'Contas a Pagar',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/reports/AccountsPayableReport')\r\n ),\r\n menu: { icon: 'hand-holding-usd' }\r\n },\r\n {\r\n path: '/open-financial-exchanges',\r\n title: 'Conciliação bancária',\r\n singularTitle: 'Conciliação bancária',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import(\r\n 'pages/app/openFinancialExchanges/OpenFinancialExchangeTab'\r\n )\r\n ),\r\n menu: { icon: 'landmark' }\r\n },\r\n {\r\n path: '/bank-statement',\r\n title: 'Extrato Bancário',\r\n singularTitle: 'Extrato Bancário',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import(\r\n 'pages/app/financialEntries/FinancialEntryBankStatement'\r\n )\r\n ),\r\n menu: { icon: 'file-alt' }\r\n },\r\n {\r\n path: '/cash-book',\r\n title: 'Livro Caixa',\r\n singularTitle: 'Livro Caixa',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/financialEntries/FinancialEntryCashBook')\r\n ),\r\n menu: { icon: 'book-open' }\r\n },\r\n {\r\n path: '/cash-flow',\r\n title: 'Fluxo de Caixa',\r\n singularTitle: 'Fluxo de Caixa',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/financialEntries/FinancialEntryCashFlow')\r\n ),\r\n menu: { icon: 'chart-line' }\r\n },\r\n {\r\n path: '/balances',\r\n title: 'Análise por categoria',\r\n singularTitle: 'Análise por categoria',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import('pages/app/checkingAccounts/CheckingAccountBalance')\r\n ),\r\n menu: { icon: 'chart-pie' }\r\n },\r\n {\r\n path: '/financial-income-statement',\r\n title: 'DRE Gerencial',\r\n singularTitle: 'DRE Gerencial',\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n component: asyncComponent(() =>\r\n import(\r\n 'pages/app/checkingAccounts/CheckingAccountIncomeStatement'\r\n )\r\n ),\r\n menu: { icon: 'chart-bar' }\r\n }\r\n ]\r\n },\r\n {\r\n path: '/stock',\r\n title: 'Estoque',\r\n exact: true,\r\n singularTitle: 'Estoque',\r\n menu: { icon: 'cubes' },\r\n hidden: (settings) => !settings.enableStock,\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK],\r\n routes: [\r\n {\r\n path: '/product-movements',\r\n title: 'Entrada e saída de produtos',\r\n resource: 'product-movements',\r\n singularTitle: 'Entrada e saída de produto',\r\n component: asyncComponent(() =>\r\n import(\r\n 'pages/app/stocks/productMovements/ProductMovementList'\r\n )\r\n ),\r\n menu: { icon: 'cubes' },\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK]\r\n },\r\n {\r\n path: '/products',\r\n title: 'Produtos',\r\n resource: 'products',\r\n singularTitle: 'Produto',\r\n component: asyncComponent(() =>\r\n import('pages/app/stocks/products/ProductList')\r\n ),\r\n menu: { icon: 'box' },\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK]\r\n },\r\n {\r\n path: '/groups',\r\n title: 'Grupos',\r\n resource: 'groups',\r\n singularTitle: 'Grupo',\r\n component: asyncComponent(() =>\r\n import('pages/app/stocks/groups/GroupList')\r\n ),\r\n menu: { icon: 'cubes' },\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK]\r\n },\r\n {\r\n path: '/brands',\r\n title: 'Marcas',\r\n resource: 'brands',\r\n singularTitle: 'Marca',\r\n component: asyncComponent(() =>\r\n import('pages/app/stocks/brands/BrandList')\r\n ),\r\n menu: { icon: 'tags' },\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK]\r\n },\r\n {\r\n path: '/units',\r\n title: 'Unidades',\r\n resource: 'units',\r\n singularTitle: 'Unidade',\r\n component: asyncComponent(() =>\r\n import('pages/app/stocks/units/UnitList')\r\n ),\r\n menu: { icon: 'ruler-horizontal' },\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK]\r\n },\r\n {\r\n path: '/product-suites',\r\n title: 'Kit de produtos',\r\n resource: 'product-suites',\r\n singularTitle: 'Kit de produto',\r\n component: asyncComponent(() =>\r\n import('pages/app/stocks/products/ProductSuiteList')\r\n ),\r\n menu: { icon: 'boxes' },\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_STOCK]\r\n }\r\n ]\r\n },\r\n {\r\n path: '/settings',\r\n title: 'Configurações',\r\n component: (props) => ,\r\n hidden: () => true,\r\n isContainer: false,\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_PROFESSIONAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_STUDENT,\r\n ROLE_FINANCIAL,\r\n ROLE_ACCOUNTANT,\r\n ROLE_RECEPTIONIST\r\n ],\r\n routes: [\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: '/geral-settings',\r\n title: 'Configurações gerais',\r\n singularTitle: 'Confiração geral',\r\n component: asyncComponent(() =>\r\n import('pages/app/settings/GeralSettings')\r\n ),\r\n menu: { icon: 'cogs' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_ACCOUNTANT\r\n ],\r\n path: '/company',\r\n title: 'Dados da empresa',\r\n singularTitle: 'Dados da empresa',\r\n component: asyncComponent(() =>\r\n import('pages/shared/CurrentCompanyEdit')\r\n ),\r\n menu: { icon: 'building' }\r\n },\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: '/document-models',\r\n title: 'Modelos de documento',\r\n singularTitle: 'Modelo de documento',\r\n component: asyncComponent(() =>\r\n import('pages/app/documentModels/DocumentModelList')\r\n ),\r\n menu: { icon: 'file-alt' }\r\n },\r\n getRecordRoutes(),\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: '/pricers',\r\n title: segmentFields.priceTables,\r\n singularTitle: segmentFields.priceTable,\r\n hidden: () => segmentFields.isHealthcareEnabled,\r\n component: asyncComponent(() =>\r\n import('pages/app/pricingTables/PricingTableList')\r\n ),\r\n menu: { icon: 'funnel-dollar' }\r\n },\r\n getServiceRoutes(),\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR],\r\n path: '/procedure-packages',\r\n title: 'Pacotes',\r\n singularTitle: 'Pacote',\r\n features: ['procedure_package_management'],\r\n component: asyncComponent(() =>\r\n import('pages/app/procedures/ProcedurePackageList')\r\n ),\r\n menu: { icon: 'box' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR\r\n ],\r\n path: '/collaborators',\r\n title: 'Colaboradores',\r\n resource: 'collaborators',\r\n singularTitle: 'Colaborador',\r\n component: asyncComponent(() =>\r\n import('pages/app/collaborators/CollaboratorList')\r\n ),\r\n menu: { icon: 'users' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/finances',\r\n title: 'Financeiro',\r\n component: () => null,\r\n menu: { icon: 'cash-register' },\r\n routes: [\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/checking-accounts',\r\n title: 'Contas',\r\n singularTitle: 'Conta',\r\n component: asyncComponent(() =>\r\n import('pages/app/checkingAccounts/CheckingAccountList')\r\n ),\r\n menu: { icon: 'wallet' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/management-accounts',\r\n title: 'Contas DRE',\r\n singularTitle: 'Conta DRE',\r\n component: asyncComponent(() =>\r\n import(\r\n 'pages/app/managementAccounts/ManagementAccountList'\r\n )\r\n ),\r\n menu: { icon: 'wallet' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/categories',\r\n title: 'Categorias',\r\n singularTitle: 'Categoria',\r\n component: asyncComponent(() =>\r\n import('pages/app/categories/CategoryList')\r\n ),\r\n menu: { icon: 'tags' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/cost-centers',\r\n title: 'Centro de Custos',\r\n singularTitle: 'Centro de Custo',\r\n component: asyncComponent(() =>\r\n import('pages/app/costCenters/CostCenterList')\r\n ),\r\n menu: { icon: 'coins' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/customers',\r\n title: `${segmentFields.clients}`,\r\n singularTitle: `${segmentFields.client}`,\r\n component: asyncComponent(() =>\r\n import('pages/app/customers/CustomerList')\r\n ),\r\n menu: { icon: 'user-friends' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/suppliers',\r\n title: 'Fornecedores',\r\n singularTitle: 'Fornecedor',\r\n component: asyncComponent(() =>\r\n import('pages/app/suppliers/SupplierList')\r\n ),\r\n menu: { icon: 'truck-loading' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_FINANCIAL\r\n ],\r\n path: '/holidays',\r\n title: 'Feriados',\r\n singularTitle: 'Feriado',\r\n component: asyncComponent(() =>\r\n import('pages/app/holidays/HolidayList')\r\n ),\r\n menu: { icon: 'calendar' }\r\n }\r\n ]\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_ACCOUNTANT\r\n ],\r\n path: '/accountings',\r\n title: 'Contabilidade',\r\n singularTitle: 'Contablidades',\r\n component: asyncComponent(() =>\r\n import('pages/app/accountings/AccountantTab')\r\n ),\r\n menu: { icon: 'calculator' }\r\n },\r\n {\r\n roles: [\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_ACCOUNTANT\r\n ],\r\n path: '/settings-invoice',\r\n title: 'Nota fiscal de serviço',\r\n singularTitle: 'Nota fiscal de serviço',\r\n component: asyncComponent(() =>\r\n import('pages/shared/CompanySettingsEdit')\r\n ),\r\n menu: { icon: 'file-invoice-dollar' }\r\n },\r\n {\r\n roles: [ROLE_CLINIC_ADMINISTRATOR, ROLE_RECEPTIONIST],\r\n path: '/platforms',\r\n title: 'Apps',\r\n singularTitle: 'App',\r\n component: asyncComponent(() =>\r\n import('pages/app/platforms/PlatformList')\r\n ),\r\n menu: { icon: 'th-large' }\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n path: '/',\r\n exact: true,\r\n redirectTo: '/app/'\r\n },\r\n {\r\n path: '/p',\r\n exact: true,\r\n redirectTo: '/p/licenses'\r\n }\r\n ]\r\n };\r\n};\r\n\r\nexport default useConfig;\r\n","import useConfig from './config';\r\n\r\nexport default useConfig;\r\n","import {\r\n updateResourceState,\r\n normalizeResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n USER,\r\n USER_UPDATE_PASSWORD,\r\n USER_SAVE_PASSWORD,\r\n USER_SAVE_PASSWORD_FINISHED,\r\n USER_SAVE_PASSWORD_FAILED,\r\n USER_CURRENT_UPDATE_FINISHED,\r\n USER_CURRENT_UPDATE,\r\n USER_CURRENT_GET_FINISHED,\r\n USER_CURRENT_CANCEL,\r\n USER_REPORT_CANCEL,\r\n USER_REPORT_FAIL,\r\n USER_REPORT_SEND,\r\n USER_REPORT_SEND_FINISHED,\r\n USER_REPORT_INITIALIZE,\r\n USER_CONTRIBUTOR_DELETE_FINISHED,\r\n USER_GET_MY_PREFERENCES_FINISHED,\r\n USER_UPDATE_MY_PREFERENCES_FINISHED,\r\n USER_UPDATE_MY_PREFERENCES,\r\n USER_CANCEL_MY_PREFERENCES,\r\n USER_CREATE_COMPANY,\r\n USER_CLOSE_COMPANY_EDIT,\r\n USER_GET_COMPANY,\r\n USER_GET_COMPANY_FINISHED,\r\n USER_PUT_COMPANY,\r\n USER_POST_COMPANY,\r\n USER_POST_COMPANY_FINISHED,\r\n USER_PUT_COMPANY_FINISHED\r\n} from './userActions';\r\n\r\nconst userReducer = createResourceReducer(\r\n USER,\r\n [],\r\n {\r\n [USER_UPDATE_PASSWORD](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RECORD_FIELD, () => ({\r\n editingPassword: action.payload\r\n }));\r\n },\r\n\r\n [USER_SAVE_PASSWORD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [USER_SAVE_PASSWORD_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n [RECORD_FIELD]: {\r\n ...resource[RECORD_FIELD],\r\n editingPassword: null\r\n },\r\n loading: false\r\n }));\r\n },\r\n\r\n [USER_SAVE_PASSWORD_FAILED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false\r\n }));\r\n },\r\n\r\n [USER_CURRENT_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentUser: action.payload.data.result,\r\n editingCurrentUser: true,\r\n visible: true\r\n }));\r\n },\r\n\r\n [USER_CURRENT_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentUser: action.payload,\r\n loading: true\r\n }));\r\n },\r\n\r\n [USER_CURRENT_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentUser: null,\r\n editingCurrentUser: false,\r\n visible: false,\r\n loading: false\r\n }));\r\n },\r\n\r\n [USER_CURRENT_CANCEL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentUser: null,\r\n editingCurrentUser: false\r\n }));\r\n },\r\n\r\n [USER_REPORT_INITIALIZE](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n if (action.payload.type === 'suggestion') {\r\n action.payload.title = 'Sugestão';\r\n } else {\r\n action.payload.title = 'Reportar problema';\r\n }\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n report: { ...action.payload }\r\n }));\r\n },\r\n [USER_REPORT_CANCEL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n report: null\r\n }));\r\n },\r\n [USER_REPORT_FAIL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n report: { ...resource.report, loading: false }\r\n }));\r\n },\r\n [USER_REPORT_SEND](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n report: { ...resource.report, loading: true }\r\n }));\r\n },\r\n\r\n [USER_REPORT_SEND_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n report: null\r\n }));\r\n },\r\n\r\n [USER_CONTRIBUTOR_DELETE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [USER_GET_MY_PREFERENCES_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n myPreferences: action.payload.data.result\r\n }));\r\n },\r\n\r\n [USER_UPDATE_MY_PREFERENCES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n myPreferences: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [USER_UPDATE_MY_PREFERENCES_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n myPreferences: null,\r\n saving: false\r\n }));\r\n },\r\n\r\n [USER_CANCEL_MY_PREFERENCES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n myPreferences: null\r\n }));\r\n },\r\n\r\n [USER_CREATE_COMPANY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: {\r\n settings: {\r\n serviceInvoice: {\r\n useRps: true,\r\n useBatchNumber: false,\r\n useSeries: true,\r\n useFederalServiceCode: true\r\n }\r\n }\r\n },\r\n saving: false\r\n }));\r\n },\r\n\r\n [USER_CLOSE_COMPANY_EDIT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: null,\r\n saving: false\r\n }));\r\n },\r\n\r\n [USER_GET_COMPANY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: action.payload.data.result,\r\n saving: false\r\n }));\r\n },\r\n\r\n [USER_POST_COMPANY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [USER_POST_COMPANY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: null,\r\n saving: false\r\n }));\r\n },\r\n\r\n [USER_PUT_COMPANY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [USER_PUT_COMPANY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userCompany: null,\r\n saving: false\r\n }));\r\n }\r\n },\r\n (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false,\r\n saving: false\r\n }));\r\n }\r\n);\r\n\r\nexport default userReducer;\r\n","import {\r\n CHAT_LOADED,\r\n SWITCH_LANGUAGE,\r\n TOGGLE_COLLAPSED_NAV,\r\n WINDOW_WIDTH\r\n} from 'stores/settings/settingsActions';\r\n\r\nimport {\r\n LAYOUT_TYPE_FULL,\r\n NAV_STYLE_FIXED,\r\n THEME_COLOR_SELECTION_PRESET,\r\n THEME_TYPE_LITE,\r\n THEME_TYPE,\r\n THEME_COLOR,\r\n THEME_TYPE_SEMI_DARK,\r\n NAV_STYLE,\r\n LAYOUT_TYPE,\r\n APP_DEFAULT,\r\n APP_ADMIN,\r\n NAV_STYLE_DRAWER\r\n} from 'constants/themeSettings';\r\n\r\nconst initialState = {\r\n navCollapsed: false,\r\n navStyle: NAV_STYLE_DRAWER,\r\n layoutType: LAYOUT_TYPE_FULL,\r\n themeType: THEME_TYPE_LITE,\r\n colorSelection: THEME_COLOR_SELECTION_PRESET,\r\n currentApp: APP_DEFAULT,\r\n pathname: '',\r\n width: window.innerWidth,\r\n isDirectionRTL: false,\r\n locale: {\r\n languageId: 'english',\r\n locale: 'en',\r\n name: 'English',\r\n icon: 'us'\r\n }\r\n};\r\n\r\nconst settingsReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n case '@@router/LOCATION_CHANGE': {\r\n const themeType = THEME_TYPE_SEMI_DARK;\r\n let currentApp = APP_DEFAULT;\r\n let { navStyle } = initialState;\r\n\r\n if (\r\n action.payload.location.pathname &&\r\n (action.payload.location.pathname.endsWith('/a') ||\r\n action.payload.location.pathname.startsWith('/a/'))\r\n ) {\r\n currentApp = APP_ADMIN;\r\n navStyle = NAV_STYLE_FIXED;\r\n }\r\n\r\n localStorage.setItem('currentApp', currentApp);\r\n\r\n return {\r\n ...state,\r\n pathname: action.payload.location.pathname || '',\r\n themeType,\r\n currentApp,\r\n navStyle,\r\n navCollapsed: false\r\n };\r\n }\r\n case TOGGLE_COLLAPSED_NAV:\r\n return {\r\n ...state,\r\n navCollapsed: action.navCollapsed\r\n };\r\n case WINDOW_WIDTH:\r\n return {\r\n ...state,\r\n width: action.width\r\n };\r\n case THEME_TYPE:\r\n return {\r\n ...state,\r\n themeType: action.themeType\r\n };\r\n case THEME_COLOR:\r\n return {\r\n ...state,\r\n themeColor: action.themeColor\r\n };\r\n case CHAT_LOADED:\r\n return {\r\n ...state,\r\n chatLoaded: true\r\n };\r\n\r\n case NAV_STYLE:\r\n return {\r\n ...state,\r\n navStyle: action.navStyle\r\n };\r\n case LAYOUT_TYPE:\r\n return {\r\n ...state,\r\n layoutType: action.layoutType\r\n };\r\n\r\n case SWITCH_LANGUAGE:\r\n return {\r\n ...state,\r\n locale: action.payload\r\n };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default settingsReducer;\r\n","import { authInitialState } from 'core/auth/authInitialState';\r\nimport { createResourceReducer, concatReducers } from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n LOGIN_REQUEST,\r\n LOGIN_REQUEST_FINISHED,\r\n LOGOUT,\r\n AUTH_REFRESH_USER,\r\n AUTH_REFRESH_TOKEN_FINISHED,\r\n AUTH_SUBSCRIPTION_CREATE_FINISHED,\r\n AUTH_SET_CURRENT_COLLABORATOR,\r\n AUTH_REMOVE_CURRENT_COLLABORATOR\r\n} from './authActions';\r\n\r\nconst updateLocalStorage = (auth) => {\r\n localStorage.setItem('auth_data', btoa(JSON.stringify(auth)));\r\n};\r\n\r\nexport const authReducer = createResourceReducer(\r\n 'AUTH',\r\n { ...authInitialState },\r\n {\r\n [LOGIN_REQUEST](state, { payload }) {\r\n localStorage.removeItem('current_collaborator');\r\n\r\n return {\r\n ...state,\r\n authenticating: true\r\n };\r\n },\r\n\r\n [LOGIN_REQUEST_FINISHED](state, { payload }) {\r\n const now = new Date();\r\n now.setSeconds(now.getSeconds() + payload.data.expireInSeconds);\r\n\r\n return {\r\n ...state,\r\n ...payload.data,\r\n claims: payload.data.user.claims ?? [],\r\n expirationDate: now,\r\n authenticating: false,\r\n currentCollaborator: null\r\n };\r\n },\r\n\r\n [AUTH_REFRESH_TOKEN_FINISHED](state, { payload }) {\r\n const now = new Date();\r\n now.setSeconds(now.getSeconds() + payload.data.expireInSeconds);\r\n return {\r\n ...state,\r\n ...payload.data,\r\n expirationDate: now\r\n };\r\n },\r\n\r\n [LOGOUT](state) {\r\n localStorage.removeItem('current_collaborator');\r\n localStorage.removeItem('auth_refreshtoken');\r\n localStorage.removeItem('auth_accesstoken');\r\n localStorage.removeItem('auth_data');\r\n localStorage.removeItem('tenantId');\r\n\r\n return {\r\n user: null,\r\n claims: [],\r\n permissions: [],\r\n expirationDate: null,\r\n tenantId: null,\r\n tenantName: null,\r\n company: null,\r\n subscription: null,\r\n refreshToken: null,\r\n accessToken: null,\r\n currentCollaborator: null\r\n };\r\n },\r\n\r\n [AUTH_REFRESH_USER](state, { payload }) {\r\n const auth = {\r\n ...state,\r\n user: {\r\n ...state.user,\r\n ...payload\r\n }\r\n };\r\n\r\n localStorage.setItem('auth_data', btoa(JSON.stringify(auth)));\r\n return auth;\r\n },\r\n\r\n [AUTH_SET_CURRENT_COLLABORATOR](state, { payload }) {\r\n return {\r\n ...state,\r\n currentCollaborator: payload\r\n };\r\n },\r\n\r\n [AUTH_REMOVE_CURRENT_COLLABORATOR](state) {\r\n return {\r\n ...state,\r\n currentCollaborator: null\r\n };\r\n }\r\n },\r\n (state) => ({\r\n ...state,\r\n authenticating: false\r\n })\r\n);\r\n\r\nexport default concatReducers([authReducer], authInitialState);\r\n","import {\r\n updateResourceState,\r\n normalizeResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n ACCOUNT,\r\n ACCOUNT_SHARING_GET,\r\n ACCOUNT_SHARING_GET_FINISHED,\r\n ACCOUNT_ACTIVITY_FETCH,\r\n ACCOUNT_ACTIVITY_FETCH_FINISHED,\r\n ACCOUNT_SHARING_UNLOAD,\r\n ACCOUNT_SHARING_GET_ERROR,\r\n ACCOUNT_SETTINGS_GET,\r\n ACCOUNT_SETTINGS_GET_FINISHED,\r\n ACCOUNT_SETTINGS_UPDATE,\r\n ACCOUNT_SETTINGS_UPDATE_FINISHED,\r\n ACCOUNT_CANCEL,\r\n ACCOUNT_CANCEL_FINISHED\r\n} from './accountActions';\r\n\r\nconst accountReducer = createResourceReducer(\r\n ACCOUNT,\r\n [],\r\n {\r\n [ACCOUNT_SHARING_UNLOAD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n activities: {}\r\n }));\r\n },\r\n\r\n [ACCOUNT_SHARING_GET](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n activities: { [RECORD_FIELD]: {}, loading: true, errorMessage: null }\r\n }));\r\n },\r\n\r\n [ACCOUNT_SHARING_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n activities: {\r\n [RECORD_FIELD]: action.payload.data.result,\r\n loading: false\r\n }\r\n }));\r\n },\r\n\r\n [ACCOUNT_ACTIVITY_FETCH](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n fetching: true\r\n }));\r\n },\r\n\r\n [ACCOUNT_ACTIVITY_FETCH_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => {\r\n const { items = [] } = resource.activities;\r\n return {\r\n activities: {\r\n ...resource.activities,\r\n pagination: {\r\n ...resource.activities.pagination,\r\n total: action.payload.data.result.totalCount,\r\n current: Number(action.payload.config.params.page) || 1\r\n },\r\n totalCount: action.payload.data.result.totalCount,\r\n items: [...items, ...action.payload.data.result.items],\r\n queryParams: action.payload.config.params,\r\n editing: action.payload.config.params.act === 'editing',\r\n loaded: true,\r\n fetching: false\r\n }\r\n };\r\n });\r\n },\r\n\r\n [ACCOUNT_SHARING_GET_ERROR](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n activities: {\r\n ...resource.activities,\r\n loading: false,\r\n errorMessage: action.payload.message\r\n }\r\n }));\r\n },\r\n [ACCOUNT_SETTINGS_GET](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n settings: {\r\n loading: true\r\n }\r\n }));\r\n },\r\n\r\n [ACCOUNT_SETTINGS_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n settings: { [RECORD_FIELD]: action.payload.data.result, loading: false }\r\n }));\r\n },\r\n [ACCOUNT_SETTINGS_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n settings: { [RECORD_FIELD]: action.payload, saving: true }\r\n }));\r\n },\r\n\r\n [ACCOUNT_SETTINGS_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n settings: { saving: false }\r\n }));\r\n },\r\n\r\n [ACCOUNT_CANCEL_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n loaded: false\r\n }));\r\n }\r\n },\r\n (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, ({ settings }) => ({\r\n settings: { ...settings, saving: false }\r\n }));\r\n }\r\n);\r\n\r\nexport default accountReducer;\r\n","import {\r\n updateResourceState,\r\n normalizeResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n MEDICALRECORDSECTION,\r\n MEDICALRECORDSECTION_SORTING\r\n} from './medicalRecordSectionActions';\r\n\r\nconst medicalRecordSectionReducer = createResourceReducer(\r\n MEDICALRECORDSECTION,\r\n [],\r\n {\r\n [MEDICALRECORDSECTION_SORTING](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n items: action.payload\r\n }));\r\n }\r\n }\r\n);\r\n\r\nexport default medicalRecordSectionReducer;\r\n","import {\r\n createResourceReducer,\r\n updateResourceState,\r\n defaultResourceState,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n EVENT,\r\n EVENT_CHANGE_STATUS,\r\n EVENT_CHANGE_STATUS_FINISHED,\r\n EVENT_DELETE,\r\n EVENT_DELETE_FINISHED,\r\n EVENT_FETCH_APPOINTMENT_TODAY,\r\n EVENT_FETCH_APPOINTMENT_TODAY_FINISHED,\r\n EVENT_FETCH_FAST_SEARCH,\r\n EVENT_FETCH_FAST_SEARCH_FINISHED,\r\n EVENT_GET_VIEW,\r\n EVENT_GET_VIEW_CLOSE,\r\n EVENT_GET_VIEW_FINISHED,\r\n EVENT_REFRESH,\r\n EVENT_SCHEDULES,\r\n EVENT_SCHEDULES_FINISHED,\r\n EVENT_SCHEDULES_UNLOAD\r\n} from './eventActions';\r\n\r\nconst eventReducer = createResourceReducer(\r\n EVENT,\r\n [],\r\n {\r\n [EVENT_FETCH_FAST_SEARCH](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n queryParams: action.payload\r\n }));\r\n },\r\n\r\n [EVENT_FETCH_FAST_SEARCH_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n items: action.payload.data.result,\r\n loaded: true\r\n }));\r\n },\r\n\r\n [EVENT_REFRESH](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [EVENT_FETCH_APPOINTMENT_TODAY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [EVENT_FETCH_APPOINTMENT_TODAY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n appointmentTodayItems: action.payload.data.result.items,\r\n loading: false\r\n }));\r\n },\r\n\r\n [EVENT_GET_VIEW](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [EVENT_CHANGE_STATUS](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ view, items = [] }) => ({\r\n updatingStatus: true,\r\n items: items.map((c) => {\r\n if (c.id === view.id) {\r\n return { ...c, status: action.payload };\r\n }\r\n\r\n return c;\r\n })\r\n })\r\n );\r\n },\r\n\r\n [EVENT_CHANGE_STATUS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n view: {\r\n ...action.payload.data.result\r\n },\r\n updatingStatus: false\r\n }));\r\n },\r\n\r\n [EVENT_DELETE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n deletingId: action.payload\r\n }));\r\n },\r\n\r\n [EVENT_DELETE_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ items = [], deletingId }) => ({\r\n deletingId: null,\r\n items: items.filter((c) => c.id !== deletingId),\r\n view: null\r\n })\r\n );\r\n },\r\n\r\n [EVENT_GET_VIEW_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n view: action.payload.data.result,\r\n loading: false\r\n };\r\n });\r\n },\r\n\r\n [EVENT_GET_VIEW_CLOSE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n view: null\r\n }));\r\n },\r\n\r\n [EVENT_SCHEDULES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n schedules: {\r\n ...(resource?.schedules ?? defaultResourceState),\r\n loading: true\r\n }\r\n }));\r\n },\r\n\r\n [EVENT_SCHEDULES_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ schedules = {} }) => ({\r\n schedules: {\r\n ...schedules,\r\n pagination: {\r\n ...schedules?.pagination,\r\n total: action.payload.data.result.totalCount,\r\n current: Number(action.payload.config.params?.page) || 1\r\n },\r\n ...action.payload.data.result,\r\n queryParams: action.payload.config.params,\r\n loaded: true,\r\n saving: false,\r\n loading: false\r\n }\r\n })\r\n );\r\n },\r\n\r\n [EVENT_SCHEDULES_UNLOAD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n schedules: {}\r\n }));\r\n }\r\n },\r\n (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n loading: false,\r\n deletingId: null,\r\n updatingStatus: false\r\n };\r\n });\r\n }\r\n);\r\n\r\nexport default eventReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n ATTENDANCE,\r\n ATTENDANCE_CLOSE_DOCUMENT,\r\n ATTENDANCE_CREATE_DOCUMENT,\r\n ATTENDANCE_CREATE_DOCUMENT_FIELD,\r\n ATTENDANCE_CREATE_DOCUMENT_FIELD_FINISHED,\r\n ATTENDANCE_DELETE_DOCUMENT_FIELD,\r\n ATTENDANCE_START_OR_STOP_SERVICE,\r\n ATTENDANCE_START_OR_STOP_SERVICE_FINISHED,\r\n ATTENDANCE_UPDATE_ANSWER,\r\n ATTENDANCE_UPDATE_ANSWER_FINISHED,\r\n ATTENDANCE_UPDATE_DOCUMENT_FIELD,\r\n ATTENDANCE_UPDATE_DOCUMENT_FIELD_FINISHED,\r\n ATTENDANCE_SET_EDIT_VALUES,\r\n ATTENDANCE_CREATE_PRESCRIPTION_FIELD,\r\n ATTENDANCE_CREATE_PRESCRIPTION_FIELD_FINISHED,\r\n ATTENDANCE_CLOSE_PRESCRIPTION,\r\n ATTENDANCE_CREATE_PRESCRIPTION,\r\n ATTENDANCE_UPDATE_PRESCRIPTION_FIELD,\r\n ATTENDANCE_UPDATE_PRESCRIPTION_FIELD_FINISHED,\r\n ATTENDANCE_DELETE_PRESCRIPTION_FIELD,\r\n ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL,\r\n ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL_FINISHED,\r\n ATTENDANCE_GET_ANALYSIS,\r\n ATTENDANCE_GET_ANALYSIS_FINISHED\r\n} from './attendanceActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n startingOrstopping: false,\r\n creatingPrescription: false,\r\n creatingDocument: false,\r\n loading: false,\r\n saving: false,\r\n redirecting: false\r\n }));\r\n};\r\n\r\nconst attendanceReducer = createResourceReducer(\r\n ATTENDANCE,\r\n [],\r\n {\r\n [ATTENDANCE_START_OR_STOP_SERVICE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n startingOrstopping: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_START_OR_STOP_SERVICE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n startingOrstopping: false,\r\n [RECORD_FIELD]: {\r\n ...action.payload.data.result\r\n }\r\n };\r\n });\r\n },\r\n\r\n [ATTENDANCE_SET_EDIT_VALUES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: {\r\n ...action.payload\r\n }\r\n }));\r\n },\r\n\r\n [ATTENDANCE_UPDATE_ANSWER](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const { id, fields } = action.payload;\r\n\r\n const newSections = sections.map((c) => {\r\n if (c.id === id) {\r\n return { ...c, fields };\r\n }\r\n\r\n return c;\r\n });\r\n\r\n return {\r\n saving: true,\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: newSections\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_CREATE_DOCUMENT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n modalDocumentEdit: action.payload\r\n }));\r\n },\r\n\r\n [ATTENDANCE_CLOSE_DOCUMENT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n modalDocumentEdit: null\r\n }));\r\n },\r\n\r\n [ATTENDANCE_CREATE_DOCUMENT_FIELD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n creatingDocument: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_CREATE_DOCUMENT_FIELD_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const newSections = [\r\n ...sections.map((c) => {\r\n if (\r\n c.type === 'document' &&\r\n c.id === action.payload.data.result.sectionId\r\n ) {\r\n return {\r\n ...c,\r\n documents: [action.payload.data.result, ...c.documents]\r\n };\r\n }\r\n\r\n return c;\r\n })\r\n ];\r\n\r\n return {\r\n creatingDocument: false,\r\n modalDocumentEdit: null,\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: [...newSections]\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_UPDATE_DOCUMENT_FIELD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n creatingDocument: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_UPDATE_DOCUMENT_FIELD_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const newSections = [\r\n ...sections.map((c) => {\r\n if (\r\n c.type === 'document' &&\r\n c.id === action.payload.data.result.sectionId\r\n ) {\r\n return {\r\n ...c,\r\n documents: c.documents.map((d) => {\r\n if (d.id === action.payload.data.result.id) {\r\n return action.payload.data.result;\r\n }\r\n\r\n return d;\r\n })\r\n };\r\n }\r\n\r\n return c;\r\n })\r\n ];\r\n\r\n return {\r\n creatingDocument: false,\r\n modalDocumentEdit: null,\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: [...newSections]\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_DELETE_DOCUMENT_FIELD](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const newSections = [\r\n ...sections.map((c) => {\r\n if (c.type === 'document') {\r\n return {\r\n ...c,\r\n documents: c.documents.filter((d) => d.id !== action.payload)\r\n };\r\n }\r\n\r\n return c;\r\n })\r\n ];\r\n\r\n return {\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: [...newSections]\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_DELETE_PRESCRIPTION_FIELD](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const newSections = [\r\n ...sections.map((c) => {\r\n if (c.type === 'prescription') {\r\n return {\r\n ...c,\r\n prescriptions: c.prescriptions.filter(\r\n (d) => d.id !== action.payload\r\n )\r\n };\r\n }\r\n\r\n return c;\r\n })\r\n ];\r\n\r\n return {\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: [...newSections]\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_UPDATE_ANSWER_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false\r\n }));\r\n },\r\n\r\n [ATTENDANCE_CREATE_PRESCRIPTION_FIELD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n creatingPrescription: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_CREATE_PRESCRIPTION_FIELD_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const newSections = [\r\n ...sections.map((c) => {\r\n if (\r\n c.type === 'prescription' &&\r\n c.id === action.payload.data.result.sectionId\r\n ) {\r\n return {\r\n ...c,\r\n prescriptions: [\r\n action.payload.data.result,\r\n ...c.prescriptions\r\n ]\r\n };\r\n }\r\n\r\n return c;\r\n })\r\n ];\r\n\r\n return {\r\n creatingPrescription: false,\r\n modalPrescriptionEdit: null,\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: [...newSections]\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_CLOSE_PRESCRIPTION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n modalPrescriptionEdit: null\r\n }));\r\n },\r\n\r\n [ATTENDANCE_CREATE_PRESCRIPTION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n modalPrescriptionEdit: action.payload\r\n }));\r\n },\r\n\r\n [ATTENDANCE_UPDATE_PRESCRIPTION_FIELD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n creatingPrescription: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_UPDATE_PRESCRIPTION_FIELD_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ [RECORD_FIELD]: { sections = [], ...rest } }) => {\r\n const newSections = [\r\n ...sections.map((c) => {\r\n if (\r\n c.type === 'prescription' &&\r\n c.id === action.payload.data.result.sectionId\r\n ) {\r\n return {\r\n ...c,\r\n prescriptions: c.prescriptions.map((d) => {\r\n if (d.id === action.payload.data.result.id) {\r\n return action.payload.data.result;\r\n }\r\n\r\n return d;\r\n })\r\n };\r\n }\r\n\r\n return c;\r\n })\r\n ];\r\n\r\n return {\r\n creatingPrescription: false,\r\n modalPrescriptionEdit: null,\r\n [RECORD_FIELD]: {\r\n ...rest,\r\n sections: [...newSections]\r\n }\r\n };\r\n }\r\n );\r\n },\r\n\r\n [ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n redirecting: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n redirecting: false\r\n }));\r\n },\r\n\r\n [ATTENDANCE_GET_ANALYSIS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [ATTENDANCE_GET_ANALYSIS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n analysis: action.payload.data.result,\r\n loading: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default attendanceReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n normalizeResourceState,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n PATIENT,\r\n PATIENT_CREATE_ATTENDANCE,\r\n PATIENT_VIEW,\r\n PATIENT_VIEW_FINISHED,\r\n PATIENT_VIEW_UPDATE,\r\n PATIENT_EVENT_FETCH,\r\n PATIENT_EVENT_FETCH_FINISHED,\r\n PATIENT_EVENT_UNLOAD,\r\n PATIENT_EVENT_CREATE_ANNOTATION,\r\n PATIENT_EVENT_CREATE_ANNOTATION_FINISHED,\r\n PATIENT_EVENT_LINK_TREATMENT_FINISHED,\r\n PATIENT_EVENT_SHARE_FINISHED,\r\n PATIENT_SHOW_EVENTS,\r\n PATIENT_SHOW_ACTIVITIES,\r\n PATIENT_SHOW_SCHEDULES,\r\n PATIENT_CLOSE_SCHEDULES,\r\n PATIENT_EVENT_PRESCRIPTION_SHOW,\r\n PATIENT_EVENT_PRESCRIPTION_CLOSE,\r\n PATIENT_EVENT,\r\n PATIENT_EVENT_FINISHED,\r\n PATIENT_PRESCRIPTION_CREATE_INTEGRATED,\r\n PATIENT_PRESCRIPTION_CREATE_INTEGRATED_FINISHED,\r\n PATIENT_OPEN_ANNOTATION,\r\n PATIENT_CLOSE_ANNOTATION,\r\n PATIENT_EVENT_LIST_OPEN_FILTER,\r\n PATIENT_EVENT_LIST_CLOSE_FILTER,\r\n PATIENT_GET_TAGS_FINISHED,\r\n PATIENT_CREATE_TAG,\r\n PATIENT_REMOVE_TAG,\r\n PATIENT_CLOSE_FINANCIALENTRY,\r\n PATIENT_SHOW_FINANCIALENTRY,\r\n PATIENT_LIST_REFRESH\r\n} from './patientActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ createAnnotationData }) => ({\r\n loading: false,\r\n saving: false,\r\n redirecting: false,\r\n createAnnotationData: createAnnotationData\r\n ? { ...createAnnotationData, loading: false }\r\n : null\r\n })\r\n );\r\n};\r\n\r\nconst patientReducer = createResourceReducer(\r\n PATIENT,\r\n [],\r\n {\r\n [PATIENT_VIEW](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [PATIENT_LIST_REFRESH](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT_FETCH](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(\r\n newState,\r\n action,\r\n RESOURCE,\r\n ({ events = {} }) => ({\r\n events: {\r\n ...events,\r\n loading: true\r\n }\r\n })\r\n );\r\n },\r\n\r\n [PATIENT_EVENT_FETCH_FINISHED](state, action) {\r\n const page = Number(action.payload.config.params.page) || 1;\r\n\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n const { items = [], pagination = {} } = events;\r\n\r\n const newItems =\r\n page === 1\r\n ? action.payload.data.result.items\r\n : [...items, ...action.payload.data.result.items];\r\n\r\n return {\r\n events: {\r\n ...events,\r\n pagination: {\r\n ...pagination,\r\n total: action.payload.data.result.totalCount,\r\n current: page\r\n },\r\n queryParams: action.payload.config.params,\r\n items: [...newItems],\r\n editing: false,\r\n loaded: true,\r\n saving: false,\r\n loading: false\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_VIEW_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false,\r\n resourceView: action.payload.data.result\r\n }));\r\n },\r\n\r\n [PATIENT_VIEW_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n resourceView: action.payload\r\n }));\r\n },\r\n\r\n [PATIENT_CREATE_ATTENDANCE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n creatingService: action.payload\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT_UNLOAD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n events: {}\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT_LINK_TREATMENT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n const { items = [], pagination } = events;\r\n\r\n return {\r\n events: {\r\n ...events,\r\n items: items.map((c) => {\r\n if (c.id === action.payload.data.result.id) {\r\n return action.payload.data.result;\r\n }\r\n\r\n return c;\r\n }),\r\n pagination: {\r\n ...pagination,\r\n total: pagination.total + 1\r\n }\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_EVENT_SHARE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n const { items = [], pagination } = events;\r\n\r\n return {\r\n events: {\r\n ...events,\r\n items: items.map((c) => {\r\n if (c.id === action.payload.data.result.id) {\r\n return action.payload.data.result;\r\n }\r\n\r\n return c;\r\n }),\r\n pagination: {\r\n ...pagination,\r\n total: pagination.total + 1\r\n }\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_SHOW_EVENTS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n show: 'EVENTS'\r\n }));\r\n },\r\n\r\n [PATIENT_SHOW_ACTIVITIES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n show: 'ACTIVITIES'\r\n }));\r\n },\r\n\r\n [PATIENT_SHOW_SCHEDULES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showSchedulesPatientId: action.payload\r\n }));\r\n },\r\n\r\n [PATIENT_CLOSE_SCHEDULES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showSchedulesPatientId: null\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT_PRESCRIPTION_SHOW](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n eventPrescription: true\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT_PRESCRIPTION_CLOSE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n eventPrescription: false\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: true\r\n }));\r\n },\r\n\r\n [PATIENT_EVENT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n const { items = [], pagination } = events;\r\n\r\n return {\r\n eventPrescription: false,\r\n saving: false,\r\n events: {\r\n ...events,\r\n items: [action.payload.data.result, ...items],\r\n pagination: {\r\n ...pagination,\r\n total: pagination.total + 1\r\n }\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_PRESCRIPTION_CREATE_INTEGRATED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n redirecting: true\r\n }));\r\n },\r\n\r\n [PATIENT_PRESCRIPTION_CREATE_INTEGRATED_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n redirecting: false\r\n }));\r\n },\r\n\r\n [PATIENT_OPEN_ANNOTATION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n createAnnotationData: {\r\n patient: action.payload,\r\n loading: false\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_CLOSE_ANNOTATION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n createAnnotationData: null\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_EVENT_CREATE_ANNOTATION](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ createAnnotationData = {} }) => ({\r\n createAnnotationData: {\r\n ...createAnnotationData,\r\n loading: true\r\n }\r\n })\r\n );\r\n },\r\n\r\n [PATIENT_EVENT_CREATE_ANNOTATION_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n const { items = [], pagination } = events;\r\n\r\n return {\r\n createAnnotationData: null,\r\n events: {\r\n ...events,\r\n items: [action.payload.data.result, ...items],\r\n pagination: {\r\n ...pagination,\r\n total: pagination?.total + 1\r\n }\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_EVENT_LIST_OPEN_FILTER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n return {\r\n events: {\r\n ...events,\r\n openFilter: true\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_EVENT_LIST_CLOSE_FILTER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ events = {} }) => {\r\n return {\r\n events: {\r\n ...events,\r\n openFilter: false\r\n }\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_GET_TAGS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n tags: action.payload?.data?.result ?? []\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_CREATE_TAG](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ tags = [] }) => {\r\n return {\r\n tags: [...tags, { tag: action.payload }]\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_REMOVE_TAG](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ tags = [] }) => {\r\n return {\r\n tags: tags.filter((c) => c.id !== action.payload)\r\n };\r\n });\r\n },\r\n\r\n [PATIENT_SHOW_FINANCIALENTRY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n visibleFinancialEntryPatientId: action.payload\r\n }));\r\n },\r\n\r\n [PATIENT_CLOSE_FINANCIALENTRY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n visibleFinancialEntryPatientId: null\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default patientReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n TREATMENT,\r\n TREATMENT_ACCEPTED_TREATMENT_PARTNER,\r\n TREATMENT_ACCEPTED_TREATMENT_PARTNER_FINISHED,\r\n TREATMENT_CANCEL,\r\n TREATMENT_CANCEL_FINISHED,\r\n TREATMENT_CLOSE_CANCELLATION,\r\n TREATMENT_CONCLUDE,\r\n TREATMENT_CONCLUDE_FINISHED,\r\n TREATMENT_MY_TREATMENT_PARTNER,\r\n TREATMENT_MY_TREATMENT_PARTNER_FINISHED,\r\n TREATMENT_OPEN_CANCELLATION\r\n} from './treatmentActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n myTreatmentPartnerLoading: false,\r\n treatmentPartnerAcceptingId: null,\r\n loading: false,\r\n saving: false,\r\n canceling: false\r\n }));\r\n};\r\n\r\nconst treatmentReducer = createResourceReducer(\r\n TREATMENT,\r\n [],\r\n {\r\n [TREATMENT_CONCLUDE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: true,\r\n [RECORD_FIELD]: {\r\n ...action.payload\r\n }\r\n }));\r\n },\r\n\r\n [TREATMENT_CONCLUDE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n saving: false,\r\n editing: false,\r\n [RECORD_FIELD]: {\r\n ...action.payload.data.result\r\n }\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_MY_TREATMENT_PARTNER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n myTreatmentPartnerLoading: true\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_MY_TREATMENT_PARTNER_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n myTreatmentPartnerLoading: false,\r\n myTreatmentPartners: action.payload.data.result\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_ACCEPTED_TREATMENT_PARTNER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n treatmentPartnerAcceptingId: action.payload\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_ACCEPTED_TREATMENT_PARTNER_FINISHED](state, action) {\r\n return updateResourceState(\r\n state,\r\n action,\r\n RESOURCE,\r\n ({ myTreatmentPartners = [], treatmentPartnerAcceptingId }) => {\r\n return {\r\n treatmentPartnerAcceptingId: null,\r\n myTreatmentPartners: myTreatmentPartners.filter(\r\n (c) => c.id !== treatmentPartnerAcceptingId\r\n )\r\n };\r\n }\r\n );\r\n },\r\n\r\n [TREATMENT_CANCEL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n canceling: true\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_CANCEL_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n canceling: false\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_OPEN_CANCELLATION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n cancellation: true\r\n };\r\n });\r\n },\r\n\r\n [TREATMENT_CLOSE_CANCELLATION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n cancellation: false\r\n };\r\n });\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default treatmentReducer;\r\n","import {\r\n createResourceReducer,\r\n updateResourceState,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n STATISTICS_GET,\r\n STATISTICS_GET_ATTENDANCES_IN_PROGRESS_FINISHED,\r\n STATISTICS_GET_FINISHED,\r\n STATISTICS_GET_PRODUCTIVITY_FINISHED,\r\n STATISTICS_GET_STEPS,\r\n STATISTICS_GET_STEPS_FINISHED,\r\n STATISTICS_USER_GET_FINISHED\r\n} from './dashboardActions';\r\n\r\nconst dashboardReducer = createResourceReducer('statistics', [], {\r\n [STATISTICS_GET](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [STATISTICS_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n data: { ...action.payload.data },\r\n loading: false\r\n }));\r\n },\r\n\r\n [STATISTICS_USER_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n userProductivity: { ...action.payload.data }\r\n }));\r\n },\r\n\r\n [STATISTICS_GET_PRODUCTIVITY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n productivity: action.payload.data\r\n }));\r\n },\r\n\r\n [STATISTICS_GET_STEPS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true,\r\n onlyConcluded: action.payload?.onlyConcluded\r\n }));\r\n },\r\n\r\n [STATISTICS_GET_STEPS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n steps: action.payload.data,\r\n loading: false\r\n }));\r\n },\r\n\r\n [STATISTICS_GET_ATTENDANCES_IN_PROGRESS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n attendances: action.payload.data\r\n }));\r\n }\r\n});\r\n\r\nexport default dashboardReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n COMPANY,\r\n COMPANY_CANCEL,\r\n COMPANY_GET,\r\n COMPANY_GET_FINISHED,\r\n COMPANY_GET_SETTINGS,\r\n COMPANY_GET_SETTINGS_FINISHED,\r\n COMPANY_GET_SETUP_STEPS,\r\n COMPANY_GET_SETUP_STEPS_FINISHED,\r\n COMPANY_UPDATE,\r\n COMPANY_UPDATE_FINISHED,\r\n COMPANY_SETTINGS_UPDATE,\r\n COMPANY_SETTINGS_UPDATE_FINISHED,\r\n COMPANY_UPLOAD_CERTIFICATE,\r\n COMPANY_UPLOAD_CERTIFICATE_ERROR,\r\n COMPANY_UPLOAD_CERTIFICATE_FINISHED\r\n} from './companyActions';\r\n\r\nconst companyReducer = createResourceReducer(COMPANY, [], {\r\n [COMPANY_GET](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true,\r\n tab: action.payload.tab\r\n }));\r\n },\r\n\r\n [COMPANY_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: action.payload.data.result,\r\n loading: false,\r\n visible: true\r\n }));\r\n },\r\n\r\n [COMPANY_GET_SETTINGS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loadingEdition: true\r\n }));\r\n },\r\n\r\n [COMPANY_GET_SETTINGS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n editingSettings: action.payload.data.result,\r\n loadingEdition: false\r\n }));\r\n },\r\n\r\n [COMPANY_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [COMPANY_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: null,\r\n saving: false,\r\n visible: false,\r\n tab: null\r\n }));\r\n },\r\n\r\n [COMPANY_SETTINGS_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n editingSettings: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [COMPANY_SETTINGS_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n editingSettings: action.payload.data.result,\r\n loading: false,\r\n saving: false\r\n }));\r\n },\r\n\r\n [COMPANY_CANCEL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: null,\r\n loading: false,\r\n saving: false,\r\n visible: false\r\n }));\r\n },\r\n\r\n [COMPANY_UPLOAD_CERTIFICATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n uploading: true\r\n }));\r\n },\r\n\r\n [COMPANY_UPLOAD_CERTIFICATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n uploading: false\r\n }));\r\n },\r\n\r\n [COMPANY_UPLOAD_CERTIFICATE_ERROR](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n uploading: false\r\n }));\r\n },\r\n\r\n [COMPANY_GET_SETUP_STEPS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [COMPANY_GET_SETUP_STEPS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n setupSteps: action.payload.data.result,\r\n loading: false\r\n }));\r\n }\r\n});\r\n\r\nexport default companyReducer;\r\n","const createReducer = (\r\n actionTypePrefix,\r\n initialState = {},\r\n methods,\r\n errorHandler\r\n) => (state = initialState, action) => {\r\n if (\r\n !actionTypePrefix ||\r\n !action.type.toUpperCase().startsWith(`${actionTypePrefix.toUpperCase()}_`)\r\n ) {\r\n return state;\r\n }\r\n\r\n if (action.error) {\r\n if (errorHandler) {\r\n return errorHandler(state, action);\r\n }\r\n\r\n const errors =\r\n action.payload && action.payload.errors\r\n ? action.payload.errors || []\r\n : [];\r\n\r\n return {\r\n ...state,\r\n [action.resource]: {\r\n ...state[action.resource],\r\n errors,\r\n saving: false\r\n }\r\n };\r\n }\r\n\r\n if (\r\n !action.type.endsWith('_FINISHED') &&\r\n action.resource &&\r\n state[action.resource] &&\r\n state[action.resource].errors &&\r\n state[action.resource].errors.length > 0\r\n ) {\r\n state = {\r\n ...state,\r\n [action.resource]: { ...state[action.resource], errors: [] }\r\n };\r\n }\r\n\r\n const method = methods[action.type];\r\n\r\n return method ? method(state, action) : state;\r\n};\r\n\r\nexport default createReducer;\r\n","import createReducer from 'core/store/createReducer';\r\nimport {\r\n RESOURCE,\r\n RECORD_FIELD,\r\n updateResourceState\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n SUBSCRIPTION,\r\n SUBSCRIPTION_CURRENT_GET,\r\n SUBSCRIPTION_CURRENT_GET_FINISHED,\r\n SUBSCRIPTION_SET_LOADING,\r\n SUBSCRIPTION_SET_VALUES,\r\n SUBSCRIPTION_UPDATE,\r\n SUBSCRIPTION_UPDATE_FINISHED,\r\n SUBSCRIPTION_OPEN_PURCHASE_PACKAGE,\r\n SUBSCRIPTION_CLOSE_PURCHASE_PACKAGE,\r\n SUBSCRIPTION_PURCHASE_PACKAGE,\r\n SUBSCRIPTION_PURCHASE_PACKAGE_FINISHED,\r\n SUBSCRIPTION_BALANCE_DETAILS,\r\n SUBSCRIPTION_BALANCE_DETAILS_FINISHED,\r\n SUBSCRIPTION_OPEN_PACKAGE_LIST,\r\n SUBSCRIPTION_CLOSE_PACKAGE_LIST\r\n} from './subscriptionActions';\r\n\r\nconst handleError = (state, action) => {\r\n return {\r\n ...state,\r\n saving: false,\r\n loading: false,\r\n canceling: false,\r\n buyingPackage: false\r\n };\r\n};\r\n\r\nconst subscriptionReducer = createReducer(\r\n SUBSCRIPTION,\r\n [],\r\n {\r\n [SUBSCRIPTION_CURRENT_GET](state, action) {\r\n return {\r\n ...state,\r\n subscription: null,\r\n loading: true,\r\n plans: false\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_CURRENT_GET_FINISHED](state, action) {\r\n return {\r\n ...state,\r\n subscription: action.payload.data.result,\r\n loading: false,\r\n plans: false\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_SET_VALUES](state, action) {\r\n if (!state[RECORD_FIELD]) {\r\n state[RECORD_FIELD] = {};\r\n }\r\n\r\n return {\r\n ...state,\r\n [RECORD_FIELD]: {\r\n ...state[RECORD_FIELD],\r\n ...action.payload\r\n },\r\n loading: false\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_SET_LOADING](state, action) {\r\n return {\r\n ...state,\r\n loading: action.payload\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_OPEN_PURCHASE_PACKAGE](state, action) {\r\n return {\r\n ...state,\r\n purchasePackage: true\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_CLOSE_PURCHASE_PACKAGE](state, action) {\r\n return {\r\n ...state,\r\n purchasePackage: false\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_PURCHASE_PACKAGE](state, action) {\r\n return {\r\n ...state,\r\n buyingPackage: true\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_PURCHASE_PACKAGE_FINISHED](state, action) {\r\n return {\r\n ...state,\r\n buyingPackage: false,\r\n purchasePackage: false\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_BALANCE_DETAILS](state, action) {\r\n return {\r\n ...state,\r\n balanceDetails: {}\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_BALANCE_DETAILS_FINISHED](state, action) {\r\n return {\r\n ...state,\r\n balanceDetails: action.payload.data.result\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_OPEN_PACKAGE_LIST](state, action) {\r\n return {\r\n ...state,\r\n packageList: true\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_CLOSE_PACKAGE_LIST](state, action) {\r\n return {\r\n ...state,\r\n packageList: false\r\n };\r\n },\r\n\r\n [SUBSCRIPTION_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: true\r\n }));\r\n },\r\n\r\n [SUBSCRIPTION_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n subscription: action.payload.data.result,\r\n plans: false,\r\n saving: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default subscriptionReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n PRESCRIPTION,\r\n PRESCRIPTION_CLOSE,\r\n PRESCRIPTION_SHOW\r\n} from './prescriptionActions';\r\n\r\nconst prescriptionReducer = createResourceReducer(PRESCRIPTION, [], {\r\n [PRESCRIPTION_SHOW](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n visible: true,\r\n forceDefaultPrescription: action.payload\r\n }));\r\n },\r\n\r\n [PRESCRIPTION_CLOSE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n visible: false\r\n }));\r\n }\r\n});\r\n\r\nexport default prescriptionReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n FINANCIALENTRY,\r\n FINANCIALENTRY_CANCEL_INVOICE_FINISHED,\r\n FINANCIALENTRY_CHANGE_TO_EXPORT,\r\n FINANCIALENTRY_CHANGE_TO_EXPORT_FINISHED,\r\n FINANCIALENTRY_CLOSE_DETAIL,\r\n FINANCIALENTRY_CLOSE_INVOICE,\r\n FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE,\r\n FINANCIALENTRY_DELETE,\r\n FINANCIALENTRY_DELETE_FINISHED,\r\n FINANCIALENTRY_EXPORT,\r\n FINANCIALENTRY_EXPORT_CSV,\r\n FINANCIALENTRY_EXPORT_CSV_FINISHED,\r\n FINANCIALENTRY_EXPORT_FINISHED,\r\n FINANCIALENTRY_OPEN_DETAIL,\r\n FINANCIALENTRY_OPEN_DETAIL_FINISHED,\r\n FINANCIALENTRY_OPEN_INVOICE_FINISHED,\r\n FINANCIALENTRY_OPEN_RESEND_EMAIL_INVOICE,\r\n FINANCIALENTRY_POST,\r\n FINANCIALENTRY_POST_FINISHED,\r\n FINANCIALENTRY_REFRESH,\r\n FINANCIALENTRY_RESEND_EMAIL_INVOICE,\r\n FINANCIALENTRY_RESEND_EMAIL_INVOICE_FINISHED,\r\n FINANCIALENTRY_OPEN_TRANSFER,\r\n FINANCIALENTRY_CLOSE_TRANSFER,\r\n FINANCIALENTRY_CREATE_TRANSFER,\r\n FINANCIALENTRY_CREATE_TRANSFER_FINISHED,\r\n FINANCIALENTRY_DELETE_TRANSFER,\r\n FINANCIALENTRY_DELETE_TRANSFER_FINISHED,\r\n FINANCIALENTRY_CASH_FLOW,\r\n FINANCIALENTRY_CASH_FLOW_FINISHED,\r\n FINANCIALENTRY_CASH_BOOK,\r\n FINANCIALENTRY_CASH_BOOK_FINISHED,\r\n FINANCIALENTRY_CASH_BOOK_UNLOAD\r\n} from './financialEntryActions';\r\n\r\nconst financialEntryReducer = createResourceReducer(\r\n FINANCIALENTRY,\r\n [],\r\n {\r\n [FINANCIALENTRY_OPEN_INVOICE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: action.payload.data.result,\r\n editingInvoice: true,\r\n editing: true,\r\n visible: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CLOSE_INVOICE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: null,\r\n editingInvoice: false,\r\n editing: false,\r\n visible: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CANCEL_INVOICE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_REFRESH](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_OPEN_RESEND_EMAIL_INVOICE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n resendEmailData: action.payload\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n resendEmailData: null\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n resendEmailData: null\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_RESEND_EMAIL_INVOICE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_RESEND_EMAIL_INVOICE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n resendEmailData: null,\r\n saving: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_POST](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_POST_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: null,\r\n saving: false,\r\n editing: false,\r\n loaded: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_OPEN_DETAIL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({}));\r\n },\r\n\r\n [FINANCIALENTRY_OPEN_DETAIL_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n viewDetail: action.payload.data.result\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CLOSE_DETAIL](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n viewDetail: null\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_DELETE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n deleting: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_DELETE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: null,\r\n saving: false,\r\n editing: false,\r\n loaded: false,\r\n deleting: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_EXPORT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n exporting: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_EXPORT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n exporting: false,\r\n exportedItems: action.payload.data.result\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CHANGE_TO_EXPORT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n exporting: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CHANGE_TO_EXPORT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n exporting: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_EXPORT_CSV](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n exportingExcel: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_EXPORT_CSV_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n exportingExcel: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_OPEN_TRANSFER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n openTransfer: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CLOSE_TRANSFER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n openTransfer: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CLOSE_TRANSFER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n openTransfer: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CREATE_TRANSFER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CREATE_TRANSFER_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n openTransfer: false,\r\n loaded: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_DELETE_TRANSFER](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({}));\r\n },\r\n\r\n [FINANCIALENTRY_DELETE_TRANSFER_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CASH_FLOW](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n cashFlowLoading: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CASH_FLOW_FINISHED](state, action) {\r\n const { totalIncome, totalExpense = 0 } = action.payload.data.result;\r\n\r\n if (action.payload.data.result.items.length > 0) {\r\n action.payload.data.result.items.push({\r\n type: 'summary',\r\n income: totalIncome,\r\n expense: totalExpense\r\n });\r\n }\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n cashFlows: action.payload.data.result,\r\n cashFlowLoading: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CASH_BOOK](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n cashBookLoading: true\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CASH_BOOK_FINISHED](state, action) {\r\n const { totalIncome = 0, totalExpense = 0 } = action.payload.data.result;\r\n\r\n if (action.payload.data.result.items.length > 0) {\r\n action.payload.data.result.items.push({\r\n type: 'summary',\r\n income: totalIncome,\r\n expense: totalExpense\r\n });\r\n }\r\n\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n cashBooks: action.payload.data.result,\r\n cashBookLoading: false\r\n }));\r\n },\r\n\r\n [FINANCIALENTRY_CASH_BOOK_UNLOAD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n cashBooks: {}\r\n }));\r\n }\r\n },\r\n\r\n (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n loading: false,\r\n deleting: false,\r\n exportingExcel: false,\r\n cashFlowLoading: false,\r\n cashBookLoading: false\r\n }));\r\n }\r\n);\r\n\r\nexport default financialEntryReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n normalizeResourceState,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n CATEGORY,\r\n CATEGORY_FETCH,\r\n CATEGORY_FETCH_FINISHED\r\n} from './categoryActions';\r\n\r\nconst categoryReducer = createResourceReducer(CATEGORY, [], {\r\n [CATEGORY_FETCH](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [CATEGORY_FETCH_FINISHED](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n items: action.payload.data.result,\r\n queryParams: action.payload.config.params,\r\n editing: false,\r\n saving: false,\r\n loading: false,\r\n loaded: true\r\n }));\r\n }\r\n});\r\n\r\nexport default categoryReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n CHECKINGACCOUNT,\r\n CHECKINGACCOUNT_REFRESH_RESOURCE,\r\n CHECKINGACCOUNT_FETCH_BALANCES,\r\n CHECKINGACCOUNT_FETCH_BALANCES_FINISHED,\r\n CHECKINGACCOUNT_FETCH_INCOME_STATEMENT_FINISHED,\r\n CHECKINGACCOUNT_FETCH_INCOME_STATEMENT\r\n} from './checkingAccountActions';\r\n\r\nconst checkingAccountReducer = createResourceReducer(\r\n CHECKINGACCOUNT,\r\n [],\r\n {\r\n [CHECKINGACCOUNT_REFRESH_RESOURCE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [CHECKINGACCOUNT_FETCH_BALANCES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [CHECKINGACCOUNT_FETCH_BALANCES_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n balances: action.payload.data.result,\r\n loading: false\r\n }));\r\n },\r\n\r\n [CHECKINGACCOUNT_FETCH_INCOME_STATEMENT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [CHECKINGACCOUNT_FETCH_INCOME_STATEMENT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n incomeStatements: action.payload.data.result,\r\n loading: false,\r\n loaded: true\r\n }));\r\n }\r\n },\r\n (state, action) => ({ loading: false })\r\n);\r\n\r\nexport default checkingAccountReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n normalizeResourceState,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport { CAMPAIGN, CAMPAIGN_CLONE_FETCH_FINISHED } from './campaignActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => {\r\n return {\r\n cloningCampaign: false\r\n };\r\n });\r\n};\r\n\r\nconst campaignReducer = createResourceReducer(\r\n CAMPAIGN,\r\n [],\r\n {\r\n [CAMPAIGN_CLONE_FETCH_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default campaignReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n LEDGERACCOUNT,\r\n LEDGERACCOUNT_FILE_IMPORT,\r\n LEDGERACCOUNT_FILE_IMPORT_FINISHED\r\n} from './ledgerAccountActions';\r\n\r\nconst handleError = (state, action) => {\r\n const errors =\r\n action.payload && action.payload.errors ? action.payload.errors || [] : [];\r\n\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n loading: false,\r\n importingFile: false,\r\n errors\r\n }));\r\n};\r\n\r\nconst ledgerAccountReducer = createResourceReducer(\r\n LEDGERACCOUNT,\r\n [],\r\n {\r\n [LEDGERACCOUNT_FILE_IMPORT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n importingFile: true\r\n }));\r\n },\r\n\r\n [LEDGERACCOUNT_FILE_IMPORT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false,\r\n importingFile: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default ledgerAccountReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n STANDARDHISTORY,\r\n STANDARDHISTORY_FILE_IMPORT,\r\n STANDARDHISTORY_FILE_IMPORT_FINISHED\r\n} from './standardHistoryActions';\r\n\r\nconst handleError = (state, action) => {\r\n const errors =\r\n action.payload && action.payload.errors ? action.payload.errors || [] : [];\r\n\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n loading: false,\r\n importingFile: false,\r\n errors\r\n }));\r\n};\r\n\r\nconst standardHistoryReducer = createResourceReducer(\r\n STANDARDHISTORY,\r\n [],\r\n {\r\n [STANDARDHISTORY_FILE_IMPORT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n importingFile: true\r\n }));\r\n },\r\n\r\n [STANDARDHISTORY_FILE_IMPORT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false,\r\n importingFile: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default standardHistoryReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n normalizeResourceState\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n OPENFINANCIALEXCHANGE,\r\n OPENFINANCIALEXCHANGE_CHANGE_CONCILIATION,\r\n OPENFINANCIALEXCHANGE_CHANGE_CONCILIATION_FINISHED,\r\n OPENFINANCIALEXCHANGE_CONCILIATIONS,\r\n OPENFINANCIALEXCHANGE_CONCILIATIONS_FINISHED,\r\n OPENFINANCIALEXCHANGE_FILE_IMPORT,\r\n OPENFINANCIALEXCHANGE_FILE_IMPORT_FINISHED,\r\n OPENFINANCIALEXCHANGE_TRANSACTIONS,\r\n OPENFINANCIALEXCHANGE_TRANSACTIONS_FINISHED,\r\n OPENFINANCIALEXCHANGE_TRANSACTIONS_QUERYPARAMS,\r\n OPENFINANCIALEXCHANGE_UPDATE_TRANSACTION\r\n} from './openFinancialExchangeActions';\r\n\r\nconst handleError = (state, action) => {\r\n const errors =\r\n action.payload && action.payload.errors ? action.payload.errors || [] : [];\r\n\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n loading: false,\r\n importingFile: false,\r\n loadingConciliationId: null,\r\n errors\r\n }));\r\n};\r\n\r\nconst openFinancialExchangeReducer = createResourceReducer(\r\n OPENFINANCIALEXCHANGE,\r\n [],\r\n {\r\n [OPENFINANCIALEXCHANGE_FILE_IMPORT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n importingFile: true\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_FILE_IMPORT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false,\r\n importingFile: false\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_TRANSACTIONS_QUERYPARAMS](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n queryParams: action.payload,\r\n loaded: false\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_TRANSACTIONS](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n loading: true,\r\n queryParams: action.payload\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_TRANSACTIONS_FINISHED](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(\r\n newState,\r\n action,\r\n RESOURCE,\r\n ({ pagination }) => ({\r\n pagination: {\r\n ...pagination,\r\n total: action.payload.data.result.totalCount,\r\n current: Number(action.payload.config.params.page) || 1,\r\n pageSize: action.payload.data.result.pageSize,\r\n pageCount: action.payload.data.result.pageCount,\r\n showSizeChanger: false\r\n },\r\n ...action.payload.data.result,\r\n loaded: true,\r\n saving: false,\r\n loading: false\r\n })\r\n );\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_UPDATE_TRANSACTION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, ({ items = [] }) => ({\r\n items: items.map((c) =>\r\n c.id === action.payload.id ? action.payload : c\r\n )\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_CONCILIATIONS](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n loading: true,\r\n queryParams: action.payload\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_CONCILIATIONS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n items: action.payload.data.result,\r\n loaded: true,\r\n saving: false,\r\n loading: false\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_CHANGE_CONCILIATION](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loadingConciliationId: action.payload.transaction.id\r\n }));\r\n },\r\n\r\n [OPENFINANCIALEXCHANGE_CHANGE_CONCILIATION_FINISHED](state, action) {\r\n const conciliation = action.payload.data.result;\r\n\r\n return updateResourceState(state, action, RESOURCE, ({ items = [] }) => ({\r\n loadingConciliationId: null,\r\n items: items.map((c) =>\r\n c.transaction.id === conciliation.transaction.id ? conciliation : c\r\n )\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default openFinancialExchangeReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport { PAYMENT, RECEIPT } from 'constants/types';\r\nimport moment from 'moment';\r\nimport {\r\n FINANCIALSTATISTIC,\r\n FINANCIALSTATISTIC_GET_CASHFLOW,\r\n FINANCIALSTATISTIC_GET_CASHFLOW_FINISHED,\r\n FINANCIALSTATISTIC_GET_SUMMARY,\r\n FINANCIALSTATISTIC_GET_SUMMARY_FINISHED,\r\n FINANCIALSTATISTIC_GET_TOP_PAYMENT_CATEGORIES,\r\n FINANCIALSTATISTIC_GET_TOP_PAYMENT_CATEGORIES_FINISHED,\r\n FINANCIALSTATISTIC_GET_TOP_RECEIPT_CATEGORIES,\r\n FINANCIALSTATISTIC_GET_TOP_RECEIPT_CATEGORIES_FINISHED,\r\n FINANCIALSTATISTIC_GET_TOTAL_LAST_MONTH,\r\n FINANCIALSTATISTIC_GET_TOTAL_LAST_MONTH_FINISHED\r\n} from './financialStatisticActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n loading: false,\r\n [`${RECEIPT}LoadingTopCategories`]: false,\r\n [`${PAYMENT}LoadingTopCategories`]: false,\r\n loadingSummary: false,\r\n loadingCashFlow: false\r\n }));\r\n};\r\n\r\nconst financialStatisticReducer = createResourceReducer(\r\n FINANCIALSTATISTIC,\r\n [],\r\n {\r\n [FINANCIALSTATISTIC_GET_TOP_RECEIPT_CATEGORIES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [`${RECEIPT}LoadingTopCategories`]: true\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_TOP_RECEIPT_CATEGORIES_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [`${RECEIPT}LoadingTopCategories`]: false,\r\n [`${RECEIPT}TopCategories`]: action.payload?.data\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_TOP_PAYMENT_CATEGORIES](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [`${PAYMENT}LoadingTopCategories`]: true\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_TOP_PAYMENT_CATEGORIES_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [`${PAYMENT}LoadingTopCategories`]: false,\r\n [`${PAYMENT}TopCategories`]: action.payload?.data\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_TOTAL_LAST_MONTH](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({}));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_TOTAL_LAST_MONTH_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n totalLastMonths: action.payload?.data\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_SUMMARY](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loadingSummary: true\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_SUMMARY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loadingSummary: false,\r\n summary: action.payload.data\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_CASHFLOW](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loadingCashFlow: true\r\n }));\r\n },\r\n\r\n [FINANCIALSTATISTIC_GET_CASHFLOW_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loadingCashFlow: false,\r\n cashFlow: action.payload.data\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default financialStatisticReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n COLLABORATOR,\r\n COLLABORATOR_INVITATION_RESEND,\r\n COLLABORATOR_INVITATION_RESEND_FINISHED,\r\n COLLABORATOR_CHANGE_INACTIVATE,\r\n COLLABORATOR_CHANGE_INACTIVATE_FINISHED\r\n} from './collaboratorActions';\r\n\r\nconst collaboratorReducer = createResourceReducer(\r\n COLLABORATOR,\r\n [],\r\n {\r\n [COLLABORATOR_INVITATION_RESEND_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [COLLABORATOR_CHANGE_INACTIVATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n }\r\n },\r\n (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false\r\n }));\r\n }\r\n);\r\n\r\nexport default collaboratorReducer;\r\n","import {\r\n updateResourceState,\r\n normalizeResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD,\r\n defaultResourceState\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n HEALTHSERVICEPROVIDER,\r\n HEALTHSERVICEPROVIDER_AVAILABILITY_FETCH,\r\n HEALTHSERVICEPROVIDER_AVAILABILITY_FETCH_FINISHED,\r\n HEALTHSERVICEPROVIDER_GET_CURRENT_FINISHED,\r\n HEALTHSERVICEPROVIDER_CANCEL_CURRENT,\r\n HEALTHSERVICEPROVIDER_PUT_CURRENT,\r\n HEALTHSERVICEPROVIDER_PUT_CURRENT_FINISHED\r\n} from './healthServiceProviderActions';\r\n\r\nconst healthServiceProviderReducer = createResourceReducer(\r\n HEALTHSERVICEPROVIDER,\r\n [],\r\n {\r\n [HEALTHSERVICEPROVIDER_AVAILABILITY_FETCH](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n activities: { ...defaultResourceState, loading: true }\r\n }));\r\n },\r\n\r\n [HEALTHSERVICEPROVIDER_AVAILABILITY_FETCH_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => ({\r\n activities: {\r\n [RECORD_FIELD]: action.payload.data.result,\r\n loading: false\r\n },\r\n notFound: false\r\n }));\r\n },\r\n\r\n [HEALTHSERVICEPROVIDER_GET_CURRENT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentProfessional: action.payload.data.result,\r\n editingCurrentProfessional: true,\r\n visible: false\r\n }));\r\n },\r\n\r\n [HEALTHSERVICEPROVIDER_PUT_CURRENT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentProfessional: action.payload,\r\n loading: true\r\n }));\r\n },\r\n\r\n [HEALTHSERVICEPROVIDER_PUT_CURRENT_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentProfessional: null,\r\n editingCurrentProfessional: false,\r\n visible: false,\r\n loading: false\r\n }));\r\n },\r\n\r\n [HEALTHSERVICEPROVIDER_CANCEL_CURRENT](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentProfessional: null,\r\n editingCurrentProfessional: false\r\n }));\r\n }\r\n },\r\n (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false,\r\n saving: false\r\n }));\r\n }\r\n);\r\n\r\nexport default healthServiceProviderReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n PACKAGE,\r\n PACKAGE_FETCH,\r\n PACKAGE_FETCH_FINISHED\r\n} from './packageActions';\r\n\r\nconst packageReducer = createResourceReducer(PACKAGE, [], {\r\n [PACKAGE_FETCH](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true,\r\n items: []\r\n }));\r\n },\r\n\r\n [PACKAGE_FETCH_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false,\r\n items: action.payload.data.result\r\n }));\r\n }\r\n});\r\n\r\nexport default packageReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n PARTNERSHIP,\r\n PARTNERSHIP_INVITATION_RESEND,\r\n PARTNERSHIP_LICENSE_SUMMARY_FINISHED\r\n} from './partnershipActions';\r\n\r\nconst partnershipReducer = createResourceReducer(PARTNERSHIP, [], {\r\n [PARTNERSHIP_INVITATION_RESEND](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [PARTNERSHIP_LICENSE_SUMMARY_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n summary: action.payload.data.result\r\n }));\r\n }\r\n});\r\n\r\nexport default partnershipReducer;\r\n","/* eslint-disable dot-notation */\r\nimport {\r\n RESOURCE,\r\n RESOURCE_FETCH,\r\n RESOURCE_FETCH_FINISHED,\r\n RESOURCE_CANCEL_EDIT,\r\n RESOURCE_GET_TO_EDIT_FINISHED,\r\n RESOURCE_CREATE_INITIALIZE,\r\n RESOURCE_UPDATE,\r\n RESOURCE_CREATE,\r\n RESOURCE_CREATE_FINISHED,\r\n RESOURCE_SET_CURRENT,\r\n RESOURCE_UNLOAD,\r\n RESOURCE_SET_PARAMS_FINISHED,\r\n RESOURCE_GET_TO_EDIT,\r\n RESOURCE_UPDATE_FINISHED,\r\n RESOURCE_CURRENT_UNLOAD,\r\n RESOURCE_ACTION_EDIT,\r\n RESOURCE_ACTION_CREATE,\r\n normalizeResourceState,\r\n updateResourceState,\r\n createResourceReducer\r\n} from '@unicus/react-ui-kit';\r\nimport { isEmpty } from 'lodash';\r\n\r\nconst resourceReducer = createResourceReducer('RESOURCE', [], {\r\n [RESOURCE_GET_TO_EDIT](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n const { readOnly = false } = action.payload || {};\r\n\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n ...action.payload,\r\n loadingEdition: true,\r\n readOnly\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_GET_TO_EDIT_FINISHED](state, action) {\r\n return {\r\n ...state,\r\n [action.resource]: {\r\n ...state[action.resource],\r\n editing: !state[action.resource].readOnly,\r\n action: RESOURCE_ACTION_EDIT /* todo */,\r\n saving: false,\r\n loadingEdition: false,\r\n resourceToEdit: action.payload.data.result\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_UPDATE](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n editing: true,\r\n saving: true,\r\n resourceToEdit: action.payload\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n resourceToEdit: action.payload.data.result,\r\n saving: false,\r\n editing: false,\r\n action: null,\r\n loaded: false\r\n }));\r\n },\r\n\r\n [RESOURCE_CREATE](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n editing: true,\r\n saving: true,\r\n resourceToEdit: action.payload\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_CREATE_FINISHED](state, action) {\r\n return {\r\n ...state,\r\n [action.resource]: {\r\n ...state[action.resource],\r\n saving: false,\r\n editing: false,\r\n action: null\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_SET_PARAMS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource = {}) => ({\r\n queryParams: action.payload,\r\n loaded:\r\n !isEmpty(resource?.queryParams) &&\r\n JSON.stringify(resource?.queryParams) ===\r\n JSON.stringify(action.payload || {})\r\n }));\r\n },\r\n\r\n [RESOURCE_SET_CURRENT](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n [action.payload.currentAttr]: action.payload.data\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_CREATE_INITIALIZE](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n const { initialValues = {}, ...rest } = action.payload;\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n editing: true,\r\n saving: false,\r\n action: RESOURCE_ACTION_CREATE,\r\n resourceToEdit: initialValues,\r\n ...rest\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_FETCH](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return updateResourceState(newState, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [RESOURCE_FETCH_FINISHED](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n pagination: {\r\n ...newState[action.resource].pagination,\r\n total: action.payload.data.result.totalCount,\r\n current: Number(action.payload.config.params.page) || 1,\r\n pageSize: action.payload.data.result.pageSize,\r\n pageCount: action.payload.data.result.pageCount,\r\n showSizeChanger: false\r\n },\r\n ...action.payload.data.result,\r\n queryParams: action.payload.config.params,\r\n editing: action.payload.config.params.act === 'editing',\r\n loaded: true,\r\n saving: false,\r\n loading: false\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_CANCEL_EDIT](state, action) {\r\n const newState = normalizeResourceState(state, action.resource);\r\n return {\r\n ...newState,\r\n [action.resource]: {\r\n ...newState[action.resource],\r\n editing: false,\r\n action: null,\r\n saving: false,\r\n readOnly: false,\r\n componentKey: null,\r\n resourceToEdit: {}\r\n }\r\n };\r\n },\r\n\r\n [RESOURCE_UNLOAD](state, action) {\r\n state[action.resource].items = [];\r\n state[action.resource].resourceToEdit = {};\r\n state[action.resource].componentKey = null;\r\n state[action.resource].action = null;\r\n state[action.resource].editing = false;\r\n state[action.resource].loaded = false;\r\n state[action.resource].pagination = {};\r\n state[action.resource].queryParams = {};\r\n\r\n return {\r\n ...state\r\n };\r\n },\r\n\r\n [RESOURCE_CURRENT_UNLOAD](state, action) {\r\n const resourceState = state[action.resource];\r\n\r\n if (resourceState && resourceState['componentKey']) {\r\n delete resourceState['componentKey'];\r\n }\r\n\r\n if (resourceState && resourceState[action.payload.currentAttr]) {\r\n delete resourceState[action.payload.currentAttr];\r\n }\r\n\r\n return {\r\n ...state\r\n };\r\n }\r\n});\r\n\r\nexport default resourceReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n PRODUCTMOVEMENT,\r\n PRODUCTMOVEMENT_DELETE,\r\n PRODUCTMOVEMENT_DELETE_FINISHED\r\n} from './productMovementActions';\r\n\r\nconst productMovementReducer = createResourceReducer(PRODUCTMOVEMENT, [], {\r\n [PRODUCTMOVEMENT_DELETE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n deleting: true\r\n }));\r\n },\r\n\r\n [PRODUCTMOVEMENT_DELETE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: null,\r\n saving: false,\r\n editing: false,\r\n loaded: false,\r\n deleting: false\r\n }));\r\n }\r\n});\r\n\r\nexport default productMovementReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport {\r\n PATIENT_PACKAGE,\r\n PATIENT_PACKAGE_CLOSE_LIST,\r\n PATIENT_PACKAGE_INACTIVATE_FINISHED,\r\n PATIENT_PACKAGE_SHOW_LIST\r\n} from './patientPackageActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false,\r\n saving: false\r\n }));\r\n};\r\n\r\nconst patientPackageReducer = createResourceReducer(\r\n PATIENT_PACKAGE,\r\n [],\r\n {\r\n [PATIENT_PACKAGE_SHOW_LIST](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentPatient: action.payload,\r\n showPackageList: true\r\n }));\r\n },\r\n\r\n [PATIENT_PACKAGE_CLOSE_LIST](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n currentPatient: null,\r\n showPackageList: false\r\n }));\r\n },\r\n\r\n [PATIENT_PACKAGE_INACTIVATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default patientPackageReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE,\r\n RECORD_FIELD,\r\n RESOURCE_ACTION_EDIT\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n PLATFORM,\r\n PLATFORM_CLOSE_CONNECTIONS,\r\n PLATFORM_CLOSE_FILE_IMPORT_ORDERS,\r\n PLATFORM_CLOSE_SYNC_ORDERS,\r\n PLATFORM_FILE_IMPORT_ORDERS,\r\n PLATFORM_FILE_IMPORT_ORDERS_FINISHED,\r\n PLATFORM_GET,\r\n PLATFORM_GET_FINISHED,\r\n PLATFORM_RELOAD,\r\n PLATFORM_RELOAD_CONNECTIONS,\r\n PLATFORM_SHOW_CONNECTIONS,\r\n PLATFORM_SHOW_FILE_IMPORT_ORDERS,\r\n PLATFORM_SHOW_SYNC_ORDERS,\r\n PLATFORM_SYNC_ORDERS,\r\n PLATFORM_SYNC_ORDERS_FINISHED,\r\n PLATFORM_UPDATE,\r\n PLATFORM_UPDATE_FINISHED\r\n} from './platformActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n saving: false,\r\n loading: false,\r\n synchronizingOrders: false,\r\n importingOrdersFile: false\r\n }));\r\n};\r\n\r\nconst platformReducer = createResourceReducer(\r\n PLATFORM,\r\n [],\r\n {\r\n [PLATFORM_GET](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [PLATFORM_GET_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: action.payload.data.result,\r\n loading: false,\r\n visible: true,\r\n editing: true,\r\n action: RESOURCE_ACTION_EDIT\r\n }));\r\n },\r\n\r\n [PLATFORM_UPDATE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n [RECORD_FIELD]: action.payload,\r\n saving: true\r\n }));\r\n },\r\n\r\n [PLATFORM_UPDATE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, (resource) => {\r\n const { items = [], [RECORD_FIELD]: record } = resource;\r\n items.forEach((element) => {\r\n if (element.id === record.platform.id) {\r\n element.isActivated = record.isActivated;\r\n }\r\n });\r\n return {\r\n items,\r\n [RECORD_FIELD]: null,\r\n saving: false,\r\n visible: false,\r\n editing: false,\r\n action: null\r\n };\r\n });\r\n },\r\n\r\n [PLATFORM_SHOW_CONNECTIONS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showConnections: true,\r\n connectionsPlatform: action.payload\r\n }));\r\n },\r\n\r\n [PLATFORM_CLOSE_CONNECTIONS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showConnections: false,\r\n connectionsPlatform: null\r\n }));\r\n },\r\n\r\n [PLATFORM_RELOAD_CONNECTIONS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [PLATFORM_RELOAD](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false\r\n }));\r\n },\r\n\r\n [PLATFORM_SHOW_SYNC_ORDERS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showSyncOrders: true,\r\n syncOrdersParams: action.payload\r\n }));\r\n },\r\n\r\n [PLATFORM_CLOSE_SYNC_ORDERS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showSyncOrders: false,\r\n syncOrdersParams: null\r\n }));\r\n },\r\n\r\n [PLATFORM_SYNC_ORDERS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n synchronizingOrders: true\r\n }));\r\n },\r\n\r\n [PLATFORM_SYNC_ORDERS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false,\r\n showSyncOrders: false,\r\n syncOrdersParams: null,\r\n synchronizingOrders: false\r\n }));\r\n },\r\n\r\n [PLATFORM_SHOW_FILE_IMPORT_ORDERS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showFileImportOrders: true,\r\n fileImportOrdersParams: action.payload\r\n }));\r\n },\r\n\r\n [PLATFORM_CLOSE_FILE_IMPORT_ORDERS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n showFileImportOrders: false,\r\n fileImportOrdersParams: null\r\n }));\r\n },\r\n\r\n [PLATFORM_FILE_IMPORT_ORDERS](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n importingOrdersFile: true\r\n }));\r\n },\r\n\r\n [PLATFORM_FILE_IMPORT_ORDERS_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loaded: false,\r\n showFileImportOrders: false,\r\n importingOrdersFile: false,\r\n fileImportOrdersParams: null\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default platformReducer;\r\n","import {\r\n updateResourceState,\r\n createResourceReducer,\r\n RESOURCE\r\n} from '@unicus/react-ui-kit';\r\nimport {\r\n REPORT,\r\n REPORT_ACCOUNT_RECEIVABLE,\r\n REPORT_ACCOUNT_RECEIVABLE_FINISHED\r\n} from './reportActions';\r\n\r\nconst handleError = (state, action) => {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: false\r\n }));\r\n};\r\n\r\nconst reportReducer = createResourceReducer(\r\n REPORT,\r\n [],\r\n {\r\n [REPORT_ACCOUNT_RECEIVABLE](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n loading: true\r\n }));\r\n },\r\n\r\n [REPORT_ACCOUNT_RECEIVABLE_FINISHED](state, action) {\r\n return updateResourceState(state, action, RESOURCE, () => ({\r\n accountsReceivables: action.payload.data.result,\r\n loading: false\r\n }));\r\n }\r\n },\r\n handleError\r\n);\r\n\r\nexport default reportReducer;\r\n","import { combineReducers } from 'redux';\r\nimport { connectRouter } from 'connected-react-router';\r\nimport { settingsReducer, userReducer } from 'stores';\r\nimport { concatReducers } from '@unicus/react-ui-kit';\r\nimport authReducer from './auth/authReducer';\r\nimport accountReducer from './accounts/accountReducer';\r\nimport medicalRecordSectionReducer from './medicalRecordSections/medicalRecordSectionReducer';\r\nimport eventReducer from './events/eventReducer';\r\nimport attendanceReducer from './attendances/attendanceReducer';\r\nimport patientReducer from './patients/patientReducer';\r\nimport treatmentReducer from './treatments/treatmentReducer';\r\nimport dashboardReducer from './dashboards/dashboardReducer';\r\nimport companyReducer from './companies/companyReducer';\r\nimport subscriptionReducer from './subscriptions/subscriptionReducer';\r\nimport prescriptionReducer from './prescriptions/prescriptionReducer';\r\nimport financialEntryReducer from './financialEntries/financialEntryReducer';\r\nimport categoryReducer from './categories/categoryReducer';\r\nimport checkingAccountReducer from './checkingAccounts/checkingAccountReducer';\r\nimport campaignReducer from './campaigns/campaignReducer';\r\nimport ledgerAccountReducer from './ledgerAccounts/ledgerAccountReducer';\r\nimport standardHistoryReducer from './standardHistories/standardHistoryReducer';\r\nimport openFinancialExchangeReducer from './openFinancialExchanges/openFinancialExchangeReducer';\r\nimport financialStatisticReducer from './financialStatistic/financialStatisticReducer';\r\nimport collaboratorReducer from './collaborators/collaboratorReducer';\r\nimport healthServiceProviderReducer from './healthServiceProviders/healthServiceProviderReducer';\r\nimport packageReducer from './packages/packageReducer';\r\nimport partnershipReducer from './partnerships/partnershipReducer';\r\nimport { LOGIN_REQUEST } from './auth/authActions';\r\nimport resourceReducer from './resourceReducer';\r\nimport productMovementReducer from './productMovements/productMovementReducer';\r\nimport patientPackageReducer from './patients/patientPackageReducer';\r\nimport platformReducer from './platforms/platformReducer';\r\nimport reportReducer from './reports/reportReducer';\r\n\r\nconst resourceRedurcers = concatReducers(\r\n [\r\n resourceReducer,\r\n userReducer,\r\n accountReducer,\r\n eventReducer,\r\n medicalRecordSectionReducer,\r\n attendanceReducer,\r\n patientReducer,\r\n treatmentReducer,\r\n dashboardReducer,\r\n companyReducer,\r\n prescriptionReducer,\r\n financialEntryReducer,\r\n categoryReducer,\r\n checkingAccountReducer,\r\n campaignReducer,\r\n ledgerAccountReducer,\r\n standardHistoryReducer,\r\n openFinancialExchangeReducer,\r\n financialStatisticReducer,\r\n collaboratorReducer,\r\n healthServiceProviderReducer,\r\n packageReducer,\r\n partnershipReducer,\r\n productMovementReducer,\r\n patientPackageReducer,\r\n platformReducer,\r\n reportReducer\r\n ],\r\n []\r\n);\r\n\r\nconst appReducer = (history) => {\r\n const reducerMap = {\r\n router: connectRouter(history),\r\n resources: resourceRedurcers,\r\n auth: authReducer,\r\n subscriptions: subscriptionReducer,\r\n settings: settingsReducer\r\n };\r\n\r\n return combineReducers(reducerMap);\r\n};\r\n\r\nconst rootReducer = (history) => (state, action) => {\r\n try {\r\n if (action.type === LOGIN_REQUEST) {\r\n state.resources = {};\r\n return appReducer(history)(state, action);\r\n }\r\n\r\n return appReducer(history)(state, action);\r\n } catch (error) {\r\n return state;\r\n }\r\n};\r\n\r\nexport default rootReducer;\r\n","import { applyMiddleware, createStore, compose } from 'redux';\r\nimport thunk from 'redux-thunk';\r\nimport { routerMiddleware } from 'connected-react-router';\r\nimport rootReducer from './rootReducer';\r\n\r\nconst enableReduxLog = true;\r\n\r\nexport default (initialState, history) => {\r\n const middlewares = [thunk, routerMiddleware(history)].filter(Boolean);\r\n let composeEnhancers = compose;\r\n\r\n if (process.env.NODE_ENV === 'development' && enableReduxLog) {\r\n composeEnhancers =\r\n typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\r\n ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})\r\n : compose;\r\n }\r\n\r\n const store = compose(\r\n createStore(\r\n rootReducer(history),\r\n initialState,\r\n composeEnhancers(applyMiddleware(...middlewares))\r\n )\r\n );\r\n\r\n return store;\r\n};\r\n","import React, { useEffect } from 'react';\r\nimport ptBR from 'antd/es/locale/pt_BR';\r\nimport moment from 'moment';\r\nimport 'moment/locale/pt-br';\r\nimport { useSelector } from 'react-redux';\r\nimport { Empty, ConfigProvider } from 'antd';\r\nimport { AuthContextProvider } from '@unicus/react-ui-kit';\r\nimport getDataFromStorage from 'util/getDataFromStorage';\r\nimport { Routes } from 'components/routes';\r\nimport { GoogleOAuthProvider } from '@react-oauth/google';\r\nimport useConfig from './config';\r\n\r\nimport {\r\n LAYOUT_TYPE_BOXED,\r\n LAYOUT_TYPE_FRAMED,\r\n LAYOUT_TYPE_FULL,\r\n NAV_STYLE_ABOVE_HEADER,\r\n NAV_STYLE_BELOW_HEADER,\r\n NAV_STYLE_DARK_HORIZONTAL,\r\n NAV_STYLE_DEFAULT_HORIZONTAL,\r\n NAV_STYLE_INSIDE_HEADER_HORIZONTAL,\r\n THEME_TYPE_DARK\r\n} from './constants/themeSettings';\r\nimport 'assets/vendors/style';\r\nimport 'styles/wieldy.less';\r\n\r\nmoment.locale('pt-br');\r\nmoment.updateLocale('pt-br', {\r\n weekdaysMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb']\r\n});\r\n\r\nconst customizeRenderEmpty = () => (\r\n \r\n);\r\n\r\nconst MainFunction = () => {\r\n const refreshToken = useSelector(({ auth = {} }) => auth?.refreshToken);\r\n const config = useConfig();\r\n const { themeType, layoutType, navStyle } = useSelector(\r\n ({ settings = {} }) => settings\r\n );\r\n\r\n const handleBeforeRefreshToken = (authData) => {\r\n return {\r\n refreshToken: authData.refreshToken,\r\n type: 'professional'\r\n };\r\n };\r\n\r\n const setLayoutType = (layoutType) => {\r\n if (layoutType === LAYOUT_TYPE_FULL) {\r\n document.body.classList.remove('boxed-layout');\r\n document.body.classList.remove('framed-layout');\r\n document.body.classList.add('full-layout');\r\n } else if (layoutType === LAYOUT_TYPE_BOXED) {\r\n document.body.classList.remove('full-layout');\r\n document.body.classList.remove('framed-layout');\r\n document.body.classList.add('boxed-layout');\r\n } else if (layoutType === LAYOUT_TYPE_FRAMED) {\r\n document.body.classList.remove('boxed-layout');\r\n document.body.classList.remove('full-layout');\r\n document.body.classList.add('framed-layout');\r\n }\r\n };\r\n\r\n const setNavStyle = (navStyle) => {\r\n if (\r\n navStyle === NAV_STYLE_DEFAULT_HORIZONTAL ||\r\n navStyle === NAV_STYLE_DARK_HORIZONTAL ||\r\n navStyle === NAV_STYLE_INSIDE_HEADER_HORIZONTAL ||\r\n navStyle === NAV_STYLE_ABOVE_HEADER ||\r\n navStyle === NAV_STYLE_BELOW_HEADER\r\n ) {\r\n document.body.classList.add('full-scroll');\r\n document.body.classList.add('horizontal-layout');\r\n } else {\r\n document.body.classList.remove('full-scroll');\r\n document.body.classList.remove('horizontal-layout');\r\n }\r\n };\r\n\r\n const onFocus = () => {\r\n const { expirationDate } = getDataFromStorage('auth_data');\r\n\r\n if (expirationDate) {\r\n const expiration = moment(expirationDate);\r\n const base = moment();\r\n\r\n if (expiration.isBefore(base)) {\r\n window.location.reload();\r\n }\r\n }\r\n\r\n const currentRefreshToken = localStorage.getItem('auth_refreshtoken');\r\n\r\n if (currentRefreshToken && refreshToken !== currentRefreshToken) {\r\n window.location.reload();\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n window.addEventListener('focus', onFocus);\r\n\r\n return () => {\r\n window.removeEventListener('focus', onFocus);\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (themeType === THEME_TYPE_DARK) {\r\n document.body.classList.add('dark-theme');\r\n }\r\n\r\n setLayoutType(layoutType);\r\n setNavStyle(navStyle);\r\n }, [themeType, layoutType, navStyle]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default MainFunction;\r\n","/* eslint-disable no-template-curly-in-string */\r\n/* eslint-disable no-console */\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { createBrowserHistory } from 'history';\r\nimport { ConnectedRouter } from 'connected-react-router';\r\nimport { Provider, useSelector } from 'react-redux';\r\nimport { Switch, Route } from 'react-router-dom';\r\nimport { configManager } from '@unicus/react-ui-kit';\r\nimport { authInitialState } from 'core/auth/authInitialState';\r\nimport config from 'config';\r\nimport Iugu from 'util/iugu';\r\nimport rootStore from './stores/rootStore';\r\nimport Main from './Main';\r\n\r\nimport 'moment/locale/pt-br';\r\n\r\nconfigManager.setConfig({\r\n apiUrl: process.env.REACT_APP_API_URL,\r\n memedUrl: process.env.REACT_APP_MEMED_SERVER_URL,\r\n multiTenant: { enabled: false, host: 'a' },\r\n iuguAccountId: process.env.REACT_APP_IUGU_ID,\r\n isTestMode: process.env.REACT_APP_IUGU_DEVELOPMENT === 'true',\r\n layout: {\r\n form: {\r\n layout: 'vertical',\r\n labelCol: null,\r\n wrapperCol: null,\r\n validateMessages: {\r\n pattern: {\r\n mismatch: '${label} é inválido'\r\n }\r\n }\r\n },\r\n list: { table: { size: 'middle' } }\r\n },\r\n roles: config.roles,\r\n map: {\r\n token:\r\n 'pk.eyJ1IjoiZGV2dW5pY3VzIiwiYSI6ImNrbDZtam9qaDFrYmcycGxjanpuMTBzbXAifQ.OCfiXk8HWMf2IigIPeLJvQ'\r\n }\r\n});\r\n\r\nconst initialState = {\r\n resources: [],\r\n auth: authInitialState\r\n};\r\n\r\nconst settings = configManager.getConfig();\r\n\r\ntry {\r\n Iugu.setAccountID(settings.iuguAccountId);\r\n Iugu.setTestMode(settings.isTestMode);\r\n} catch (error) {\r\n console.log(error);\r\n}\r\n\r\nconst history = createBrowserHistory();\r\nconst store = rootStore(initialState, history);\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n document.getElementById('root')\r\n);\r\n","import { api, dispatcher } from '@unicus/react-ui-kit';\r\n\r\nexport const STATISTICS_GET = 'STATISTICS_GET';\r\nexport const STATISTICS_GET_FINISHED = 'STATISTICS_GET_FINISHED';\r\n\r\nexport const STATISTICS_USER_GET = 'STATISTICS_USER_GET';\r\nexport const STATISTICS_USER_GET_FINISHED = 'STATISTICS_USER_GET_FINISHED';\r\n\r\nexport const STATISTICS_GET_PRODUCTIVITY = 'STATISTICS_GET_PRODUCTIVITY';\r\nexport const STATISTICS_GET_PRODUCTIVITY_FINISHED =\r\n 'STATISTICS_GET_PRODUCTIVITY_FINISHED';\r\n\r\nexport const STATISTICS_GET_STEPS = 'STATISTICS_GET_STEPS';\r\nexport const STATISTICS_GET_STEPS_FINISHED = 'STATISTICS_GET_STEPS_FINISHED';\r\n\r\nexport const STATISTICS_GET_ATTENDANCES_IN_PROGRESS =\r\n 'STATISTICS_GET_ATTENDANCES_IN_PROGRESS';\r\nexport const STATISTICS_GET_ATTENDANCES_IN_PROGRESS_FINISHED =\r\n 'STATISTICS_GET_ATTENDANCES_IN_PROGRESS_FINISHED';\r\n\r\nexport const get = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'statistics',\r\n actionType: STATISTICS_GET,\r\n effect: async () => api.fetch(`statistics`, { ...params })\r\n });\r\n};\r\n\r\nexport const getMonthlyProductivity = (params = {}) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'statistics',\r\n actionType: STATISTICS_GET_PRODUCTIVITY,\r\n effect: async () =>\r\n api.fetch(`statistics/monthly-productivity`, { ...params })\r\n });\r\n};\r\n\r\nexport const getAttendanceInProgress = (params = {}) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'statistics',\r\n actionType: STATISTICS_GET_ATTENDANCES_IN_PROGRESS,\r\n effect: async () => api.fetch(`statistics/attendance-in-progress`, params)\r\n });\r\n};\r\n","/* eslint-disable no-template-curly-in-string */\r\nimport React, { PureComponent, useContext } from 'react';\r\nimport { Form } from 'antd';\r\n\r\nconst defaultValidateMessages = {\r\n required: '${label} é obrigatório'\r\n};\r\n\r\nconst Context = React.createContext({ form: null });\r\n\r\nclass FormManager extends PureComponent {\r\n static useForm;\r\n\r\n static FormItem;\r\n\r\n render() {\r\n let values = {};\r\n\r\n const {\r\n children,\r\n form,\r\n initialValues = {},\r\n onBeforeBinding,\r\n ...rest\r\n } = this.props;\r\n\r\n if (onBeforeBinding) {\r\n values = onBeforeBinding(initialValues);\r\n }\r\n\r\n return (\r\n \r\n \r\n {children}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nFormManager.useForm = () => {\r\n const { form } = useContext(Context);\r\n\r\n if (!form) {\r\n throw new Error('Missing FormManager in its parent.');\r\n }\r\n\r\n return form;\r\n};\r\n\r\nFormManager.FormItem = ({\r\n children,\r\n label,\r\n required,\r\n message,\r\n rules,\r\n ...rest\r\n}) => {\r\n let defaultRules;\r\n\r\n if (required) {\r\n defaultRules = [{ required }];\r\n }\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport default FormManager;\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const CHECKINGACCOUNT = 'CHECKINGACCOUNT';\r\nexport const CHECKINGACCOUNT_REFRESH_RESOURCE =\r\n 'CHECKINGACCOUNT_REFRESH_RESOURCE';\r\nexport const CHECKINGACCOUNT_FETCH_BALANCES = 'CHECKINGACCOUNT_FETCH_BALANCES';\r\nexport const CHECKINGACCOUNT_FETCH_BALANCES_FINISHED =\r\n 'CHECKINGACCOUNT_FETCH_BALANCES_FINISHED';\r\n\r\nexport const CHECKINGACCOUNT_FETCH_INCOME_STATEMENT =\r\n 'CHECKINGACCOUNT_FETCH_INCOME_STATEMENT';\r\nexport const CHECKINGACCOUNT_FETCH_INCOME_STATEMENT_FINISHED =\r\n 'CHECKINGACCOUNT_FETCH_INCOME_STATEMENT_FINISHED';\r\n\r\nexport const refreshResource = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n CHECKINGACCOUNT_REFRESH_RESOURCE,\r\n 'checking-accounts'\r\n )\r\n );\r\n};\r\n\r\nexport const fetch = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'checking-accounts',\r\n actionType: CHECKINGACCOUNT_FETCH_BALANCES,\r\n effect: async () => api.fetch('checking-accounts/balances', params)\r\n });\r\n};\r\n\r\nexport const fetchIncomeStatement = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'checking-accounts',\r\n actionType: CHECKINGACCOUNT_FETCH_INCOME_STATEMENT,\r\n effect: async () => api.fetch('checking-accounts/income-statement', params)\r\n });\r\n};\r\n","import React, { useEffect, useState } from 'react';\r\nimport { api } from '@unicus/react-ui-kit';\r\n\r\nconst useCostCenter = () => {\r\n const [enabled, setEnabled] = useState(false);\r\n const [uniqueCostCenter, setUniqueCostCenter] = useState(null);\r\n\r\n useEffect(() => {\r\n let isMounted = true;\r\n\r\n const fetchData = async () => {\r\n try {\r\n const [allowUseResponse, uniqueCostCenterResponse] = await Promise.all([\r\n api.fetch('cost-centers/allow-use'),\r\n uniqueCostCenter === null && api.fetch('cost-centers/unique')\r\n ]);\r\n\r\n if (isMounted) {\r\n setEnabled(allowUseResponse?.data?.result ?? false);\r\n if (uniqueCostCenterResponse) {\r\n setUniqueCostCenter(uniqueCostCenterResponse?.data?.result ?? null);\r\n }\r\n }\r\n } catch (error) {\r\n setEnabled(false);\r\n setUniqueCostCenter(null);\r\n }\r\n };\r\n\r\n fetchData();\r\n\r\n return () => {\r\n isMounted = false;\r\n };\r\n }, [uniqueCostCenter]);\r\n\r\n return { enabledCostCenter: enabled, uniqueCostCenter };\r\n};\r\n\r\nexport default useCostCenter;\r\n","import React, { useState } from 'react';\r\nimport { Avatar } from 'antd';\r\n\r\nconst UserProfileImage = ({ id, className, uri, name, color }) => {\r\n if (uri) {\r\n return (\r\n \r\n \"Avatar\"\r\n \r\n );\r\n }\r\n\r\n if (id) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n if (name) {\r\n const colorIndex = Math.floor(Math.random() * 4);\r\n\r\n const initials = name\r\n .split(' ')\r\n .filter((word) => word.length !== 2)\r\n .filter((_, index) => index <= 1)\r\n .map((n) => n[0])\r\n .join('')\r\n .toUpperCase();\r\n\r\n return (\r\n \r\n {initials}\r\n \r\n );\r\n }\r\n\r\n return null;\r\n};\r\n\r\nexport default UserProfileImage;\r\n","import moment from 'moment';\r\nimport { ACTIVATED, EXPIRED, INTRIAL } from 'constants/types';\r\nimport useAuth from './useAuth';\r\n\r\nconst getMessage = (endTrialPeriod) => {\r\n if (!endTrialPeriod) {\r\n return null;\r\n }\r\n\r\n if (moment(endTrialPeriod).isBefore(new Date(), 'day')) {\r\n return 'Seu período de avaliação terminou.';\r\n }\r\n\r\n if (moment(endTrialPeriod).isSame(new Date(), 'day')) {\r\n return 'Seu período de avaliação termina hoje.';\r\n }\r\n\r\n const period = moment\r\n .duration(moment(endTrialPeriod).diff(moment()))\r\n .humanize();\r\n\r\n return `Seu período de avaliação termina em ${period}.`;\r\n};\r\n\r\nconst useSubscription = () => {\r\n const { subscription, isAdmin } = useAuth();\r\n const { features = [], endTrialPeriod } = subscription ?? {};\r\n\r\n const isTrial = subscription?.status === INTRIAL;\r\n const isExpired = subscription?.status === EXPIRED;\r\n const isActivated =\r\n isAdmin() || isTrial || subscription?.status === ACTIVATED;\r\n const expiresTrialMessage = isTrial ? getMessage(endTrialPeriod) : null;\r\n\r\n const hasFeature = (identifier) => {\r\n return features.findIndex((c) => c.identifier === identifier) >= 0;\r\n };\r\n\r\n const getValueFeature = (identifier, allowThrow = true) => {\r\n const feature = features.find((c) => c.identifier === identifier);\r\n\r\n if (!feature && allowThrow) {\r\n throw new Error('Feature não existe no plano');\r\n }\r\n\r\n return feature?.value;\r\n };\r\n\r\n return {\r\n subscription,\r\n hasLicense: subscription?.hasLicense ?? false,\r\n features,\r\n hasFeature,\r\n isActivated,\r\n isTrial,\r\n isExpired,\r\n expiresTrialMessage,\r\n getValueFeature\r\n };\r\n};\r\n\r\nexport default useSubscription;\r\n","import React from 'react';\r\n\r\nconst SelectWrapperPrefix = ({ children, prefix, ...rest }) => {\r\n return (\r\n
\r\n
{prefix}
\r\n {React.cloneElement(children, rest)}\r\n
\r\n );\r\n};\r\n\r\nexport default SelectWrapperPrefix;\r\n","import { message } from 'antd';\r\n\r\nconst useClipboard = () => {\r\n const copy = (text, customMessage) => {\r\n navigator.clipboard.writeText(text);\r\n\r\n message.success(\r\n typeof customMessage === 'string'\r\n ? customMessage\r\n : 'Copiado para área de transferência'\r\n );\r\n };\r\n\r\n return { copy };\r\n};\r\n\r\nexport default useClipboard;\r\n","import { featureIdentifiers } from '../../constants';\r\n\r\nconst useSubscriptionPlanHelper = (plan) => {\r\n const { features = [] } = plan ?? {};\r\n\r\n const getFeatureValue = (identifier) => {\r\n return features.find((c) => c.identifier === identifier)?.value;\r\n };\r\n\r\n return { getFeatureValue, identifiers: featureIdentifiers };\r\n};\r\n\r\nexport default useSubscriptionPlanHelper;\r\n","import isNullOrEmpty from 'util/functions/isNullOrEmpty';\r\nimport useAuth from './useAuth';\r\n\r\nconst useSettingInvoice = () => {\r\n const { company, userCompany } = useAuth();\r\n\r\n const isEnableInvoice = () => {\r\n if (!isNullOrEmpty(userCompany, 'object')) {\r\n return userCompany.settings?.enableInvoice;\r\n }\r\n\r\n return company.settings?.enableInvoice;\r\n };\r\n\r\n const enableInvoice = isEnableInvoice();\r\n\r\n return { enableInvoice };\r\n};\r\n\r\nexport default useSettingInvoice;\r\n","export const APP_DEFAULT = 'APP_DEFAULT';\r\nexport const APP_ADMIN = 'APP_ADMIN';\r\n\r\nexport const THEME_TYPE = 'THEME_TYPE';\r\nexport const THEME_TYPE_LITE = 'THEME_TYPE_LITE';\r\nexport const THEME_TYPE_DARK = 'THEME_TYPE_DARK';\r\nexport const THEME_TYPE_SEMI_DARK = 'THEME_TYPE_SEMI_DARK';\r\n\r\nexport const THEME_COLOR = 'THEME_COLOR';\r\nexport const THEME_COLOR_SELECTION = 'THEME_COLOR_SELECTION';\r\nexport const THEME_COLOR_SELECTION_PRESET = 'THEME_COLOR_SELECTION_PRESET';\r\nexport const THEME_COLOR_SELECTION_CUSTOMIZE =\r\n 'THEME_COLOR_SELECTION_CUSTOMIZE';\r\n\r\nexport const HORIZONTAL_NAVIGATION = 'HORIZONTAL_NAVIGATION';\r\n\r\nexport const HORIZONTAL_MENU_POSITION = 'HORIZONTAL_MENU_POSITION';\r\nexport const ABOVE_THE_HEADER = 'ABOVE_THE_HEADER';\r\nexport const INSIDE_THE_HEADER = 'INSIDE_THE_HEADER';\r\nexport const BELOW_THE_HEADER = 'BELOW_THE_HEADER';\r\n\r\nexport const VERTICAL_NAVIGATION = 'VERTICAL_NAVIGATION';\r\nexport const NAV_STYLE_MINI = 'NAV_STYLE_MINI';\r\n\r\nexport const LAYOUT_TYPE = 'LAYOUT_TYPE';\r\n\r\nexport const LAYOUT_TYPE_FRAMED = 'LAYOUT_TYPE_FRAMED';\r\nexport const LAYOUT_TYPE_BOXED = 'LAYOUT_TYPE_BOXED';\r\nexport const LAYOUT_TYPE_FULL = 'LAYOUT_TYPE_FULL';\r\n\r\nexport const NAV_STYLE = 'NAV_STYLE';\r\n\r\nexport const NAV_STYLE_FIXED = 'NAV_STYLE_FIXED';\r\nexport const NAV_STYLE_MINI_SIDEBAR = 'NAV_STYLE_MINI_SIDEBAR';\r\nexport const NAV_STYLE_DRAWER = 'NAV_STYLE_DRAWER';\r\nexport const NAV_STYLE_NO_HEADER_MINI_SIDEBAR =\r\n 'NAV_STYLE_NO_HEADER_MINI_SIDEBAR';\r\nexport const NAV_STYLE_NO_HEADER_EXPANDED_SIDEBAR =\r\n 'NAV_STYLE_NO_HEADER_EXPANDED_SIDEBAR';\r\n\r\nexport const NAV_STYLE_DEFAULT_HORIZONTAL = 'NAV_STYLE_DEFAULT_HORIZONTAL';\r\nexport const NAV_STYLE_DARK_HORIZONTAL = 'NAV_STYLE_DARK_HORIZONTAL';\r\nexport const NAV_STYLE_INSIDE_HEADER_HORIZONTAL =\r\n 'NAV_STYLE_INSIDE_HEADER_HORIZONTAL';\r\nexport const NAV_STYLE_BELOW_HEADER = 'NAV_STYLE_BELOW_HEADER';\r\nexport const NAV_STYLE_ABOVE_HEADER = 'NAV_STYLE_ABOVE_HEADER';\r\n\r\nexport const LIGHT_PURPLE = '#8A2BE2';\r\nexport const LIGHT_PURPLE_SEC = '#00B378';\r\nexport const LIGHT_PURPLE_NAV_DARK_BG = '#32394F';\r\nexport const LIGHT_PURPLE_DARK_TEXT_COLOR = '#9799AC';\r\n\r\nexport const RED = '#FF2B7A';\r\nexport const RED_SEC = '#00D9C9';\r\nexport const RED_NAV_DARK_BG = '#3C3766';\r\nexport const RED_DARK_TEXT_COLOR = '#878BAB';\r\n\r\nexport const BLUE = '#3DA4E6';\r\nexport const BLUE_SEC = '#FCB53B';\r\nexport const BLUE_NAV_DARK_BG = '#444342';\r\nexport const BLUE_DARK_TEXT_COLOR = '#AAA59A';\r\n\r\nexport const DARK_BLUE = '#0469B9';\r\nexport const DARK_BLUE_SEC = '#17BDE5';\r\nexport const DARK_BLUE_NAV_DARK_BG = '#086880';\r\nexport const DARK_BLUE_DARK_TEXT_COLOR = '#9DDAE9';\r\n\r\nexport const ORANGE = '#F18805';\r\nexport const ORANGE_SEC = '#F1D065';\r\nexport const ORANGE_NAV_DARK_BG = '#272932';\r\nexport const ORANGE_DARK_TEXT_COLOR = '#ABA895';\r\n\r\nexport const LIGHT_BLUE = '#6A95FF';\r\nexport const LIGHT_BLUE_SEC = '#59DCFF';\r\nexport const LIGHT_BLUE_NAV_DARK_BG = '#1B2642';\r\nexport const LIGHT_BLUE_DARK_TEXT_COLOR = '#92A2C8';\r\n\r\nexport const DEEP_ORANGE = '#F87060';\r\nexport const DEEP_ORANGE_SEC = '#70A288';\r\nexport const DEEP_ORANGE_NAV_DARK_BG = '#08415C';\r\nexport const DEEP_ORANGE_DARK_TEXT_COLOR = '#97B8C7';\r\n\r\nexport const LIGHT_PURPLE_1 = '#A172E7';\r\nexport const LIGHT_PURPLE_1_SEC = '#E14594';\r\nexport const LIGHT_PURPLE_1_NAV_DARK_BG = '#182952';\r\nexport const LIGHT_PURPLE_1_DARK_TEXT_COLOR = '#8288B4';\r\n\r\nexport const LIGHT_PURPLE_2 = '#956FE7';\r\nexport const LIGHT_PURPLE_2_SEC = '#64D7D6';\r\nexport const LIGHT_PURPLE_2_NAV_DARK_BG = '#284C7C';\r\nexport const LIGHT_PURPLE_2_DARK_TEXT_COLOR = '#5782BB';\r\n\r\nexport const TAB_SIZE = 992;\r\n","import { useCallback } from 'react';\r\nimport { useAuthContext } from '@unicus/react-ui-kit';\r\nimport { ROLE_ADMIN } from 'constants/types';\r\n\r\nconst useAuth = (getKey = null) => {\r\n const auth = useAuthContext(getKey);\r\n\r\n const hasRole = useCallback(\r\n (...roles) => auth.user.roles.some((role) => roles.includes(role)),\r\n [auth.refreshToken]\r\n );\r\n\r\n const hasAccountType = useCallback(\r\n (...types) =>\r\n auth.user.tenants.some((account) => types.includes(account.type)),\r\n [auth.refreshToken]\r\n );\r\n\r\n const hasFeature = useCallback(\r\n (...features) =>\r\n auth.features.some((feature) => features.includes(feature)),\r\n [auth.refreshToken]\r\n );\r\n\r\n const isAdmin = useCallback(\r\n () => auth?.user?.roles?.some((role) => role === ROLE_ADMIN) ?? false,\r\n [auth.refreshToken]\r\n );\r\n\r\n return {\r\n ...auth,\r\n authenticating: auth?.authenticating ?? false,\r\n serviceProvider: auth?.user?.serviceProvider,\r\n company: auth?.company,\r\n hasRole,\r\n hasFeature,\r\n hasAccountType,\r\n isAdmin\r\n };\r\n};\r\n\r\nexport default useAuth;\r\n","import React from 'react';\r\nimport { Input, message } from 'antd';\r\nimport {\r\n DrawerForm,\r\n useFormField,\r\n Edit,\r\n useFormContext\r\n} from '@unicus/react-ui-kit';\r\n\r\nimport { useDispatch } from 'react-redux';\r\nimport {\r\n updatePassword,\r\n savePassword,\r\n savePasswordFailed\r\n} from 'stores/users/userActions';\r\n\r\nconst UpdatePassword = ({ visible = true, data = {}, loading }) => {\r\n const { editingPassword } = data;\r\n const dispatch = useDispatch();\r\n const { form } = useFormContext();\r\n const formField = useFormField(form);\r\n\r\n const onSuccess = () => {\r\n message.success('A senha foi alterada com sucesso.');\r\n };\r\n const onFail = () => {\r\n dispatch(savePasswordFailed());\r\n };\r\n\r\n const handleSave = () => {\r\n form.validateFields((err, values) => {\r\n if (err) {\r\n return;\r\n }\r\n\r\n if (values.newPassword !== values.passwordConfirmation) {\r\n message.warn('As senhas não coincidem.');\r\n return;\r\n }\r\n\r\n dispatch(savePassword(editingPassword.userId, values, onSuccess, onFail));\r\n });\r\n };\r\n\r\n const handleClose = () => {\r\n dispatch(updatePassword(null));\r\n };\r\n\r\n return (\r\n \r\n {formField('currentPassword', 'Senha atual', {\r\n isRequired: true,\r\n labelCol: {\r\n sm: { span: 7 }\r\n },\r\n wrapperCol: {\r\n sm: { span: 17 }\r\n },\r\n style: { width: '100%' }\r\n })()}\r\n\r\n {formField('newPassword', 'Nova senha', {\r\n isRequired: true,\r\n labelCol: {\r\n sm: { span: 7 }\r\n },\r\n wrapperCol: {\r\n sm: { span: 17 }\r\n },\r\n style: { width: '100%' }\r\n })()}\r\n\r\n {formField('passwordConfirmation', 'Confirmação da senha', {\r\n isRequired: true,\r\n labelCol: {\r\n sm: { span: 7 }\r\n },\r\n wrapperCol: {\r\n sm: { span: 17 }\r\n },\r\n style: { width: '100%' }\r\n })()}\r\n \r\n );\r\n};\r\n\r\nexport default Edit.create(UpdatePassword, { resource: 'users' });\r\n","import {\r\n dispatcher,\r\n api,\r\n RESOURCE_FETCH,\r\n RESOURCE_GET_TO_EDIT\r\n} from '@unicus/react-ui-kit';\r\n\r\nexport const FINANCIALENTRY = 'FINANCIALENTRY';\r\n\r\nexport const FINANCIALENTRY_POST = 'FINANCIALENTRY_POST';\r\nexport const FINANCIALENTRY_POST_FINISHED = 'FINANCIALENTRY_POST_FINISHED';\r\n\r\nexport const FINANCIALENTRY_GET = 'FINANCIALENTRY_GET';\r\nexport const FINANCIALENTRY_GET_FINISHED = 'FINANCIALENTRY_GET_FINISHED';\r\n\r\nexport const FINANCIALENTRY_CLOSE_CONFIRM_PAYMENT =\r\n 'FINANCIALENTRY_CLOSE_CONFIRM_PAYMENT';\r\n\r\nexport const FINANCIALENTRY_OPEN_INVOICE = 'FINANCIALENTRY_OPEN_INVOICE';\r\nexport const FINANCIALENTRY_OPEN_INVOICE_FINISHED =\r\n 'FINANCIALENTRY_OPEN_INVOICE_FINISHED';\r\nexport const FINANCIALENTRY_CLOSE_INVOICE = 'FINANCIALENTRY_CLOSE_INVOICE';\r\n\r\nexport const FINANCIALENTRY_CANCEL_INVOICE = 'FINANCIALENTRY_CANCEL_INVOICE';\r\nexport const FINANCIALENTRY_CANCEL_INVOICE_FINISHED =\r\n 'FINANCIALENTRY_CANCEL_INVOICE_FINISHED';\r\n\r\nexport const FINANCIALENTRY_REFRESH = 'FINANCIALENTRY_REFRESH';\r\n\r\nexport const FINANCIALENTRY_OPEN_RESEND_EMAIL_INVOICE =\r\n 'FINANCIALENTRY_OPEN_RESEND_EMAIL_INVOICE';\r\nexport const FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE =\r\n 'FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE';\r\n\r\nexport const FINANCIALENTRY_RESEND_EMAIL_INVOICE =\r\n 'FINANCIALENTRY_RESEND_EMAIL_INVOICE';\r\nexport const FINANCIALENTRY_RESEND_EMAIL_INVOICE_FINISHED =\r\n 'FINANCIALENTRY_RESEND_EMAIL_INVOICE_FINISHED';\r\n\r\nexport const FINANCIALENTRY_OPEN_DETAIL = 'FINANCIALENTRY_OPEN_DETAIL';\r\nexport const FINANCIALENTRY_OPEN_DETAIL_FINISHED =\r\n 'FINANCIALENTRY_OPEN_DETAIL_FINISHED';\r\n\r\nexport const FINANCIALENTRY_DELETE = 'FINANCIALENTRY_DELETE';\r\nexport const FINANCIALENTRY_DELETE_FINISHED = 'FINANCIALENTRY_DELETE_FINISHED';\r\n\r\nexport const FINANCIALENTRY_EXPORT = 'FINANCIALENTRY_EXPORT';\r\nexport const FINANCIALENTRY_EXPORT_FINISHED = 'FINANCIALENTRY_EXPORT_FINISHED';\r\n\r\nexport const FINANCIALENTRY_CHANGE_TO_EXPORT =\r\n 'FINANCIALENTRY_CHANGE_TO_EXPORT';\r\nexport const FINANCIALENTRY_CHANGE_TO_EXPORT_FINISHED =\r\n 'FINANCIALENTRY_CHANGE_TO_EXPORT_FINISHED';\r\n\r\nexport const FINANCIALENTRY_SYNC_INVOICE = 'FINANCIALENTRY_SYNC_INVOICE';\r\nexport const FINANCIALENTRY_SYNC_INVOICE_FINISHED =\r\n 'FINANCIALENTRY_SYNC_INVOICE_FINISHED';\r\n\r\nexport const FINANCIALENTRY_CLOSE_DETAIL = 'FINANCIALENTRY_CLOSE_DETAIL';\r\n\r\nexport const FINANCIALENTRY_EXPORT_CSV = 'FINANCIALENTRY_EXPORT_CSV';\r\nexport const FINANCIALENTRY_EXPORT_CSV_FINISHED =\r\n 'FINANCIALENTRY_EXPORT_CSV_FINISHED';\r\n\r\nexport const FINANCIALENTRY_OPEN_TRANSFER = 'FINANCIALENTRY_OPEN_TRANSFER';\r\nexport const FINANCIALENTRY_CLOSE_TRANSFER = 'FINANCIALENTRY_CLOSE_TRANSFER';\r\n\r\nexport const FINANCIALENTRY_CREATE_TRANSFER = 'FINANCIALENTRY_CREATE_TRANSFER';\r\nexport const FINANCIALENTRY_CREATE_TRANSFER_FINISHED =\r\n 'FINANCIALENTRY_CREATE_TRANSFER_FINISHED';\r\n\r\nexport const FINANCIALENTRY_DELETE_TRANSFER = 'FINANCIALENTRY_DELETE_TRANSFER';\r\nexport const FINANCIALENTRY_DELETE_TRANSFER_FINISHED =\r\n 'FINANCIALENTRY_DELETE_TRANSFER_FINISHED';\r\n\r\nexport const FINANCIALENTRY_CASH_FLOW = 'FINANCIALENTRY_CASH_FLOW';\r\nexport const FINANCIALENTRY_CASH_FLOW_FINISHED =\r\n 'FINANCIALENTRY_CASH_FLOW_FINISHED';\r\n\r\nexport const FINANCIALENTRY_CASH_BOOK = 'FINANCIALENTRY_CASH_BOOK';\r\nexport const FINANCIALENTRY_CASH_BOOK_FINISHED =\r\n 'FINANCIALENTRY_CASH_BOOK_FINISHED';\r\n\r\nexport const FINANCIALENTRY_CASH_BOOK_UNLOAD =\r\n 'FINANCIALENTRY_CASH_BOOK_UNLOAD';\r\n\r\nexport const create = (data, onSuccess, tenant) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n payload: data,\r\n actionType: FINANCIALENTRY_POST,\r\n effect: async () => api.post('financial-entries', data, tenant),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createByEvent = (id, data, onSuccess, tenant) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n payload: data,\r\n actionType: FINANCIALENTRY_POST,\r\n effect: async () =>\r\n api.post(`events/${id}/financial-entries`, data, tenant),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const update = (data, onSuccess, tenant) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n payload: data,\r\n actionType: FINANCIALENTRY_POST,\r\n effect: async () => api.put(`financial-entries/${data.id}`, data, tenant),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const fetch = (resource, params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: RESOURCE_FETCH,\r\n effect: async () =>\r\n api.fetch('financial-entries/financial-entry-item-with-summary', params)\r\n });\r\n};\r\n\r\nexport const get = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: RESOURCE_GET_TO_EDIT,\r\n effect: async () => api.get('financial-entries', id),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const closeConfirmPayment = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n FINANCIALENTRY_CLOSE_CONFIRM_PAYMENT,\r\n 'financial-entries'\r\n )\r\n );\r\n};\r\n\r\nexport const editInvoice = (financialEntryId) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_OPEN_INVOICE,\r\n effect: async () => api.get('financial-entries', financialEntryId)\r\n });\r\n};\r\n\r\nexport const cancelEditInvoice = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(FINANCIALENTRY_CLOSE_INVOICE, 'financial-entries')\r\n );\r\n};\r\n\r\nexport const cancelInvoice = (financialEntryId, internalCancel) => async (\r\n dispatch\r\n) => {\r\n const route = !internalCancel ? `invoice` : 'internal-invoice';\r\n\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_CANCEL_INVOICE,\r\n effect: async () =>\r\n api.del('financial-entries', `${financialEntryId}/${route}`)\r\n });\r\n};\r\n\r\nexport const refresh = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(FINANCIALENTRY_REFRESH, 'financial-entries')\r\n );\r\n};\r\n\r\nexport const openResendInvoice = (data) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n FINANCIALENTRY_OPEN_RESEND_EMAIL_INVOICE,\r\n 'financial-entries',\r\n data\r\n )\r\n );\r\n};\r\n\r\nexport const closeResendInvoice = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n FINANCIALENTRY_CLOSE_RESEND_EMAIL_INVOICE,\r\n 'financial-entries'\r\n )\r\n );\r\n};\r\n\r\nexport const postResendInvoice = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_RESEND_EMAIL_INVOICE,\r\n effect: async () => api.post('invoices/resend-email', data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const openViewDetail = (financialEntryId) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_OPEN_DETAIL,\r\n effect: async () =>\r\n api.get('financial-entries', `${financialEntryId}/detail`)\r\n });\r\n};\r\n\r\nexport const closeViewDetail = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(FINANCIALENTRY_CLOSE_DETAIL, 'financial-entries')\r\n );\r\n};\r\n\r\nexport const remove = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_DELETE,\r\n effect: async () => api.del('financial-entries', id)\r\n });\r\n};\r\n\r\nexport const exportFetch = (params, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_EXPORT,\r\n effect: async () =>\r\n api.fetch('financial-entries/accountants/export', params),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const changeExport = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_CHANGE_TO_EXPORT,\r\n effect: async () => api.post('financial-entries/change-export', data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const syncInvoice = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_SYNC_INVOICE,\r\n effect: async () => api.post(`invoices/${id}/integration-sync`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createFileExport = (querySearch, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_EXPORT_CSV,\r\n effect: async () =>\r\n api.post(`financial-entries/file-export?${querySearch}`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const openTransfer = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(FINANCIALENTRY_OPEN_TRANSFER, 'financial-entries')\r\n );\r\n};\r\n\r\nexport const closeTransfer = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(FINANCIALENTRY_CLOSE_TRANSFER, 'financial-entries')\r\n );\r\n};\r\n\r\nexport const createTransfer = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_CREATE_TRANSFER,\r\n effect: async () => api.post(`financial-entries/transfer`, data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const deleteTransfer = (transactionId, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_DELETE_TRANSFER,\r\n effect: async () =>\r\n api.del('financial-entries', `transfer?transactionId=${transactionId}`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const getCashFlow = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_CASH_FLOW,\r\n effect: async () => api.fetch('financial-entries/cash-flow', params)\r\n });\r\n};\r\n\r\nexport const getCashBook = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'financial-entries',\r\n actionType: FINANCIALENTRY_CASH_BOOK,\r\n effect: async () => api.fetch('financial-entries/cash-book', params)\r\n });\r\n};\r\n\r\nexport const chashBookUnload = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n FINANCIALENTRY_CASH_BOOK_UNLOAD,\r\n 'financial-entries'\r\n )\r\n );\r\n};\r\n","const image = [\r\n 'image/gif',\r\n 'image/png',\r\n 'image/jpeg',\r\n 'image/bmp',\r\n 'image/webp',\r\n 'image/ief'\r\n];\r\nconst text = ['text/plain', 'text/html', 'text/css', 'text/javascript'];\r\nconst video = [\r\n 'video/webm',\r\n 'video/ogg',\r\n 'video/x-flv',\r\n 'video/mp4',\r\n 'application/x-mpegURL',\r\n 'video/MP2T',\r\n 'video/3gpp',\r\n 'video/quicktime',\r\n 'video/x-msvieo',\r\n 'video/x-ms-wmv',\r\n 'video/mpeg'\r\n];\r\nconst audio = [\r\n 'audio/midi',\r\n 'audio/mpeg',\r\n 'audio/webm',\r\n 'audio/ogg',\r\n 'audio/wav',\r\n 'audio/mp4'\r\n];\r\n\r\nconst pdf = ['application/pdf'];\r\nconst excel = ['application/excel'];\r\n\r\nexport const isImage = (contentType) => {\r\n if (contentType.includes('image')) {\r\n return true;\r\n }\r\n\r\n return image.includes(contentType);\r\n};\r\n\r\nexport const isText = (contentType) => {\r\n return text.includes(contentType);\r\n};\r\n\r\nexport const isVideo = (contentType) => {\r\n return video.includes(contentType);\r\n};\r\n\r\nexport const isAudio = (contentType) => {\r\n return audio.includes(contentType);\r\n};\r\n\r\nexport const isPDF = (contentType) => {\r\n if (contentType.includes('pdf')) {\r\n return true;\r\n }\r\n\r\n return pdf.includes(contentType);\r\n};\r\n\r\nexport const isExcel = (contentType) => {\r\n if (contentType.includes('image')) {\r\n return true;\r\n }\r\n\r\n return excel.includes(contentType);\r\n};\r\n","/* eslint-disable no-plusplus */\r\n/* eslint-disable no-template-curly-in-string */\r\nimport { formartOnlyNumber } from 'util/formatters';\r\n\r\nconst federalTaxNumberValidator = (_, value) => {\r\n const federalTaxNumber = formartOnlyNumber(value);\r\n\r\n if (!federalTaxNumber) {\r\n return Promise.resolve();\r\n }\r\n\r\n if (federalTaxNumber.length === 11) {\r\n if (federalTaxNumber.split('').every((c) => c === federalTaxNumber[0])) {\r\n return Promise.reject(new Error('CPF é inválido'));\r\n }\r\n\r\n let sum = 0;\r\n let rest;\r\n\r\n for (let i = 1; i <= 9; i++)\r\n sum += parseInt(federalTaxNumber.substring(i - 1, i), 10) * (11 - i);\r\n rest = (sum * 10) % 11;\r\n\r\n if (rest === 10 || rest === 11) rest = 0;\r\n if (rest !== parseInt(federalTaxNumber.substring(9, 10), 10))\r\n return Promise.reject(new Error('CPF é inválido'));\r\n\r\n sum = 0;\r\n for (let i = 1; i <= 10; i++)\r\n sum += parseInt(federalTaxNumber.substring(i - 1, i), 10) * (12 - i);\r\n rest = (sum * 10) % 11;\r\n\r\n if (rest === 10 || rest === 11) rest = 0;\r\n if (rest !== parseInt(federalTaxNumber.substring(10, 11), 10))\r\n return Promise.reject(new Error('CPF é inválido'));\r\n\r\n return Promise.resolve();\r\n }\r\n\r\n if (federalTaxNumber.length === 14) {\r\n if (federalTaxNumber.split('').every((c) => c === federalTaxNumber[0])) {\r\n return Promise.reject(new Error('CNPJ é inválido'));\r\n }\r\n\r\n const validTypes =\r\n typeof value === 'string' ||\r\n Number.isInteger(value) ||\r\n Array.isArray(value);\r\n\r\n if (!validTypes) return Promise.reject(new Error('CNPJ é inválido'));\r\n\r\n const numbers = federalTaxNumber.split('').map(Number);\r\n\r\n const items = [...new Set(numbers)];\r\n if (items.length === 1) return Promise.reject(new Error('CNPJ é inválido'));\r\n\r\n const calc = (x) => {\r\n const slice = numbers.slice(0, x);\r\n let factor = x - 7;\r\n let sum = 0;\r\n\r\n for (let i = x; i >= 1; i--) {\r\n const n = slice[x - i];\r\n sum += n * factor--;\r\n if (factor < 2) factor = 9;\r\n }\r\n\r\n const result = 11 - (sum % 11);\r\n\r\n return result > 9 ? 0 : result;\r\n };\r\n\r\n const digits = numbers.slice(12);\r\n\r\n const digit0 = calc(12);\r\n if (digit0 !== digits[0]) {\r\n return Promise.reject(new Error('CNPJ é inválido'));\r\n }\r\n\r\n const digit1 = calc(13);\r\n return digit1 === digits[1]\r\n ? Promise.resolve()\r\n : Promise.reject(new Error('CNPJ é inválido'));\r\n }\r\n\r\n return Promise.reject(new Error('Preencha corretamente o campo'));\r\n};\r\n\r\nexport default federalTaxNumberValidator;\r\n","import { dispatcher, api, RESOURCE_FETCH } from '@unicus/react-ui-kit';\r\n\r\nexport const PATIENT_PACKAGE = 'PATIENT_PACKAGE';\r\nexport const PATIENT_PACKAGE_SHOW_LIST = 'PATIENT_PACKAGE_SHOW_LIST';\r\nexport const PATIENT_PACKAGE_CLOSE_LIST = 'PATIENT_PACKAGE_CLOSE_LIST';\r\n\r\nexport const PATIENT_PACKAGE_INACTIVATE = 'PATIENT_PACKAGE_INACTIVATE';\r\nexport const PATIENT_PACKAGE_INACTIVATE_FINISHED =\r\n 'PATIENT_PACKAGE_INACTIVATE_FINISHED';\r\n\r\nexport const showList = (currentPatient) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n PATIENT_PACKAGE_SHOW_LIST,\r\n 'patientPackages',\r\n currentPatient\r\n )\r\n );\r\n};\r\n\r\nexport const closeList = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_PACKAGE_CLOSE_LIST, 'patientPackages')\r\n );\r\n};\r\n\r\nexport const inactivateItem = (packageItemId, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patientPackages',\r\n actionType: PATIENT_PACKAGE_INACTIVATE,\r\n effect: async () =>\r\n api.put(`patients/package-items/${packageItemId}/inactivate`, {}),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const activateItem = (packageItemId, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patientPackages',\r\n actionType: PATIENT_PACKAGE_INACTIVATE,\r\n effect: async () =>\r\n api.put(`patients/package-items/${packageItemId}/activate`, {}),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const fetch = (_, params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patientPackages',\r\n actionType: RESOURCE_FETCH,\r\n effect: async () => api.fetch('patients/package-items', params)\r\n });\r\n};\r\n","import React from 'react';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { useDispatch } from 'react-redux';\r\nimport moment from 'moment';\r\nimport { Input, Form, Row, Select, message, DatePicker, Col, Divider } from 'antd';\r\nimport {\r\n DrawerEdit,\r\n ResourceEdit,\r\n refreshAuthenticatedUser,\r\n FormItemWrap\r\n} from '@unicus/react-ui-kit';\r\nimport { currentUserCancel, currentUserUpdate } from 'stores/users/userActions';\r\nimport {\r\n federalTaxNumberValidator,\r\n mobilePhoneValidator\r\n} from 'util/validators/index';\r\nimport { CheckboxInput, GoogleCalendarButton, ResCol, UploadProfileImageV2 } from 'components';\r\nimport usePermissions from 'core/hooks/usePermissions';\r\n\r\nconst CurrentUserEdit = (props) => {\r\n const { data, loading } = props;\r\n const dispatch = useDispatch();\r\n const { isPartnership, isProfessional } = usePermissions();\r\n\r\n const handleBeforeSubmit = ({ birthDate, address, ...rest }) => {\r\n return {\r\n ...rest,\r\n birthDate: birthDate ? moment(birthDate).format('YYYY/MM/DD') : null\r\n };\r\n };\r\n\r\n const handleBeforeBinding = ({ birthDate, address = {}, ...rest }) => {\r\n return {\r\n ...rest,\r\n birthDate: birthDate ? moment(birthDate) : null\r\n };\r\n };\r\n\r\n const onAfterUpdate = (response) => {\r\n if (response && response.data) {\r\n const { result } = response.data;\r\n dispatch(\r\n refreshAuthenticatedUser({\r\n name: result.name,\r\n displayName: result.displayName,\r\n profileImage: result.profileImage\r\n })\r\n );\r\n }\r\n\r\n message.success('Registro salvo com sucesso.');\r\n };\r\n\r\n const handleSubmit = (data) => {\r\n const values = handleBeforeSubmit(data);\r\n dispatch(currentUserUpdate(values, onAfterUpdate));\r\n };\r\n\r\n const handleCancel = () => {\r\n dispatch(currentUserCancel());\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n option.props.children\r\n .toLowerCase()\r\n .indexOf(input.toLowerCase()) >= 0\r\n }\r\n >\r\n \r\n Não informado\r\n \r\n \r\n Masculino\r\n \r\n \r\n Feminino\r\n \r\n \r\n \r\n \r\n \r\n \r\n moment(date).isAfter(moment())}\r\n />\r\n \r\n \r\n \r\n {isProfessional && (\r\n \r\n \r\n Conexões com aplicativos\r\n \r\n \r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default ResourceEdit.create(CurrentUserEdit, {\r\n resource: 'users',\r\n currentAttr: 'currentUser'\r\n});\r\n\r\n\r\n","import {\r\n ROLE_ACCOUNTANT,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PARTNERSHIP,\r\n ROLE_PROFESSIONAL,\r\n ROLE_RECEPTIONIST,\r\n ROLE_STOCK\r\n} from './types';\r\nimport display from './display';\r\n\r\nconst roles = [\r\n {\r\n id: '4f9abe71-941b-46ba-b0e0-f71e38e824ec',\r\n name: ROLE_PROFESSIONAL,\r\n description: display.ROLES[ROLE_PROFESSIONAL]\r\n },\r\n {\r\n id: '35c8fb74-f40f-4de6-a7a5-04849447c620',\r\n name: ROLE_CLINIC_ADMINISTRATOR,\r\n description: display.ROLES[ROLE_CLINIC_ADMINISTRATOR]\r\n },\r\n {\r\n id: '08359ad6-1960-45a0-b6da-3705896ee0ed',\r\n name: ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n description: display.ROLES[ROLE_OTHER_HEALTH_PROFESSIONAL]\r\n },\r\n {\r\n id: '5e930487-4304-47b9-b6c2-7d3be7095bdb',\r\n name: ROLE_RECEPTIONIST,\r\n description: display.ROLES[ROLE_RECEPTIONIST]\r\n },\r\n {\r\n id: 'f814275b-3480-42e8-8120-35f39aa8b456',\r\n name: ROLE_ACCOUNTANT,\r\n description: display.ROLES[ROLE_ACCOUNTANT]\r\n },\r\n {\r\n id: '821ade28-e27e-41b6-841b-ff1c1a86f0a7',\r\n name: ROLE_FINANCIAL,\r\n description: display.ROLES[ROLE_FINANCIAL]\r\n },\r\n {\r\n id: '9f21af74-dd09-42c8-bbb9-a901f01b7c31',\r\n name: ROLE_PARTNERSHIP,\r\n description: display.ROLES[ROLE_PARTNERSHIP]\r\n },\r\n\r\n {\r\n id: '8d364b69-f9d4-4f6a-af57-e5b4afdd1a09',\r\n name: ROLE_FINANCIAL_ADMINISTRATOR,\r\n description: display.ROLES[ROLE_FINANCIAL_ADMINISTRATOR]\r\n },\r\n {\r\n id: '8845cc66-b911-483e-b95f-cfc4775fa541',\r\n name: ROLE_STOCK,\r\n description: display.ROLES[ROLE_STOCK]\r\n }\r\n];\r\n\r\nexport default roles;\r\n","import InvoiceHelper from './InvoiceHelper';\r\n\r\nexport default InvoiceHelper;\r\n","export default class InvoiceHelper {\r\n static isReadOnly(status) {\r\n switch (status) {\r\n case 'enqueued':\r\n case 'received':\r\n case 'authorized':\r\n case 'canceled':\r\n case 'denied':\r\n case 'removed':\r\n return true;\r\n case 'rejected':\r\n default:\r\n return false;\r\n }\r\n }\r\n}\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAB5CAYAAADWDajyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMDUvMjGplXvIAAASZ0lEQVR4nO2dWVBbV5rH/0gC7SCEECBACEnesY13bGOwM06mO+3sk0k6mYmzdOI4tGseprrmYaqrZmqqH3oepmrKTRzHWTrJpDvpyWTtLOVOZVi8YBtjGxObGEkIEDtCQmjfmAcMQbpXrFdHV8P9veXIQVf3+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f9F2lGNDWytU4biRnQJsWczMm4pYyRZYEL+qroZfmzStmTkApwhcJ4Y99rbhM49k5qFqLR4q3EqtST4u5jVbML+vnFzMnoBQyY0Ab9rtixiWCLBwtq8LWnBJiVepEYj6knl/MnIBSTLurH2/SGNCKJQq8YqxBgSiHiAFtITEnMqCxu/EODRJ+JmR8IQQZ5Nq5yfjCpPVNCkUj+GKgA5WKEtxfVBGTge1SluGZst1429pCpMWe1WvHf9vacEx/ALI5GVixRIE6Qw3+6eanGPBNxHSETTsB/W3pDhzMX0u0r6NEkAVxEh81THt2zmGdvAAbs4tmx4U8AR4trkSlogRhAo2rAECRJaadaXYotfj7st2oNzXFdEBLOwHppSropalve8c0dyZHcMrcjH/d9DMos6Sz4yqhLKaJVKqYEXPjqAmtjp7ZLrncPRCLaBi9g49t1ymFPbagEsqwKbsQgowfZcNqAd2ZHEGUUOPKpWJyjyIMZo/NEw7inZ5LuOHsZ23XXHsgti00qwX02cANNI6aWHdF3nIN4kz3eYolggn6fU6cNDXiyji7Wi/7IkF80n8dlx09Ma94yCj/8tes7jJukKlQIlKAz6KXvdmDHtyZHE5aZ/hMHh9GWT7UWTLW/O5INAKrdxw2nwOROTMQ6wU0A+kG2okg/VITdvxqJPzVaZOFpeptNKmG7b/6/wDW1ViYw4h/5AAAAABJRU5ErkJggg==\"","import React from 'react';\r\nimport { normalizeToSelect } from 'util/converters';\r\nimport {\r\n ROLE_ACCOUNTANT,\r\n PROFILE_ACCOUNTANT,\r\n ROLE_USER,\r\n PROFILE_USER,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n PROFILE_ADMINISTRADOR,\r\n ROLE_PROFESSIONAL,\r\n PROFILE_DOCTOR,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n PROFILE_OTHER,\r\n ROLE_STUDENT,\r\n PROFILE_STUDENT,\r\n ROLE_RECEPTIONIST,\r\n PROFILE_RECEPTIONIST,\r\n ROLE_FINANCIAL,\r\n PROFILE_FINANCIAL,\r\n ROLE_PARTNERSHIP,\r\n PROFILE_PARTNERSHIP,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n PROFILE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_STOCK,\r\n ROLE_ADMIN\r\n} from 'constants/types';\r\nimport { Select } from 'antd';\r\nimport roles from '../constants/roles';\r\nimport SelectWrapperPrefix from './SelectWrapperPrefix';\r\n\r\nfunction getProfileByRole(role) {\r\n switch (role) {\r\n case ROLE_ACCOUNTANT:\r\n return PROFILE_ACCOUNTANT;\r\n case ROLE_USER:\r\n return PROFILE_USER;\r\n case ROLE_CLINIC_ADMINISTRATOR:\r\n return PROFILE_ADMINISTRADOR;\r\n case ROLE_PROFESSIONAL:\r\n return PROFILE_DOCTOR;\r\n case ROLE_OTHER_HEALTH_PROFESSIONAL:\r\n return PROFILE_OTHER;\r\n case ROLE_STUDENT:\r\n return PROFILE_STUDENT;\r\n case ROLE_RECEPTIONIST:\r\n return PROFILE_RECEPTIONIST;\r\n case ROLE_FINANCIAL:\r\n return PROFILE_FINANCIAL;\r\n case ROLE_PARTNERSHIP:\r\n return PROFILE_PARTNERSHIP;\r\n case ROLE_FINANCIAL_ADMINISTRATOR:\r\n return PROFILE_FINANCIAL_ADMINISTRATOR;\r\n default:\r\n return null;\r\n }\r\n}\r\n\r\nfunction getHiddenRoles(visibleRoles) {\r\n const allRoles = [\r\n ROLE_ADMIN,\r\n ROLE_PROFESSIONAL,\r\n ROLE_RECEPTIONIST,\r\n ROLE_USER,\r\n ROLE_STUDENT,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL,\r\n ROLE_ACCOUNTANT,\r\n ROLE_PARTNERSHIP,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_STOCK\r\n ];\r\n\r\n return allRoles.filter((role) => !visibleRoles.includes(role));\r\n}\r\n\r\nconst getOptions = (segment, useProfileId = true) => {\r\n if(!segment?.roles){\r\n return [];\r\n }\r\n\r\n return segment?.roles.map((item) => {\r\n const role = roles.find((r) => r.id === item.role.id);\r\n\r\n return {\r\n id: useProfileId ? getProfileByRole(role?.name) : role?.id,\r\n name: role?.name,\r\n description: item?.name\r\n };\r\n });\r\n}\r\n\r\nconst SegmentProfileSelect = ({ segment, prefix, ...rest }) => {\r\n if (!prefix) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst SegmentRoleSelect = ({\r\n onChange,\r\n segment,\r\n hidePermissions = [],\r\n ...rest\r\n}) => {\r\n const allRoles = getOptions(segment, false);\r\n\r\n if (!rest.value) {\r\n rest.value = [];\r\n }\r\n\r\n const handleTrigger = (value) => {\r\n onChange(roles\r\n .filter((c) => value.map((d) => d.value).includes(c.id))\r\n .map((c) => ({ role: c })));\r\n };\r\n\r\n const value = rest.value.map((c) => {\r\n return normalizeToSelect(\r\n allRoles.find((d) => d.name === c.role.name),\r\n { inputKey: 'id', inputLabel: 'description' }\r\n );\r\n });\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\n\r\nexport { getProfileByRole, SegmentProfileSelect, getHiddenRoles, SegmentRoleSelect };","import React from 'react';\r\nimport { Col, Form } from 'antd';\r\n\r\nconst ResCol = ({\r\n span = 24,\r\n xs = 24,\r\n sm = 24,\r\n md,\r\n lg,\r\n xl,\r\n xxl,\r\n children,\r\n className,\r\n ...rest\r\n}) => {\r\n if (!xs) {\r\n xs = 24;\r\n }\r\n\r\n if (!sm) {\r\n sm = 24;\r\n }\r\n\r\n if (!md) {\r\n md = span;\r\n }\r\n\r\n if (!lg) {\r\n lg = span;\r\n }\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport default ResCol;\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const USER = 'USER';\r\nexport const USER_UPDATE_PASSWORD = 'USER_UPDATE_PASSWORD';\r\nexport const USER_SAVE_PASSWORD = 'USER_SAVE_PASSWORD';\r\nexport const USER_SAVE_PASSWORD_FINISHED = 'USER_SAVE_PASSWORD_FINISHED';\r\nexport const USER_SAVE_PASSWORD_FAILED = 'USER_SAVE_PASSWORD_FAILED';\r\nexport const USER_CURRENT_GET = 'USER_CURRENT_GET';\r\nexport const USER_CURRENT_GET_FINISHED = 'USER_CURRENT_GET_FINISHED';\r\nexport const USER_CURRENT_CANCEL = 'USER_CURRENT_CANCEL';\r\nexport const USER_CURRENT_UPDATE = 'USER_CURRENT_UPDATE';\r\nexport const USER_CURRENT_UPDATE_FINISHED = 'USER_CURRENT_UPDATE_FINISHED';\r\n\r\nexport const USER_REPORT_INITIALIZE = 'USER_REPORT_INITIALIZE';\r\nexport const USER_REPORT_CANCEL = 'USER_REPORT_CANCEL';\r\nexport const USER_REPORT_SEND = 'USER_REPORT_SEND';\r\nexport const USER_FIND = 'USER_FIND';\r\nexport const USER_REPORT_FAIL = 'USER_REPORT_FAIL';\r\nexport const USER_REPORT_SEND_FINISHED = 'USER_REPORT_SEND_FINISHED';\r\nexport const USER_CONTRIBUTOR_DELETE = 'USER_CONTRIBUTOR_DELETE';\r\nexport const USER_CONTRIBUTOR_DELETE_FINISHED =\r\n 'USER_CONTRIBUTOR_DELETE_FINISHED';\r\n\r\nexport const USER_GET_MY_PREFERENCES = 'USER_GET_MY_PREFERENCES';\r\nexport const USER_GET_MY_PREFERENCES_FINISHED =\r\n 'USER_GET_MY_PREFERENCES_FINISHED';\r\n\r\nexport const USER_UPDATE_MY_PREFERENCES = 'USER_UPDATE_MY_PREFERENCES';\r\nexport const USER_UPDATE_MY_PREFERENCES_FINISHED =\r\n 'USER_UPDATE_MY_PREFERENCES_FINISHED';\r\nexport const USER_CANCEL_MY_PREFERENCES = 'USER_CANCEL_MY_PREFERENCES';\r\n\r\nexport const USER_CREATE_COMPANY = 'USER_CREATE_COMPANY';\r\nexport const USER_CLOSE_COMPANY_EDIT = 'USER_CLOSE_COMPANY_EDIT';\r\n\r\nexport const USER_GET_COMPANY = 'USER_GET_COMPANY';\r\nexport const USER_GET_COMPANY_FINISHED = 'USER_GET_COMPANY_FINISHED';\r\n\r\nexport const USER_POST_COMPANY = 'USER_POST_COMPANY';\r\nexport const USER_POST_COMPANY_FINISHED = 'USER_POST_COMPANY_FINISHED';\r\n\r\nexport const USER_PUT_COMPANY = 'USER_PUT_COMPANY';\r\nexport const USER_PUT_COMPANY_FINISHED = 'USER_PUT_COMPANY_FINISHED';\r\n\r\nexport const updatePassword = (payload) => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_UPDATE_PASSWORD, 'users', payload));\r\n};\r\n\r\nexport const savePassword = (userId, payload, onSuccess, onFail) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_SAVE_PASSWORD,\r\n effect: async () => api.put('users/password', { ...payload, id: userId }),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const savePasswordFailed = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_SAVE_PASSWORD_FAILED, 'users'));\r\n};\r\n\r\nexport const currentUserUpdate = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_CURRENT_UPDATE,\r\n payload: data,\r\n effect: async () => api.put(`users/current-user`, data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const currentUserGet = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_CURRENT_GET,\r\n effect: async () => api.get('users', 'current-user')\r\n });\r\n};\r\n\r\nexport const currentUserCancel = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_CURRENT_CANCEL, 'users'));\r\n};\r\n\r\nexport const initializeReport = (payload) => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_REPORT_INITIALIZE, 'users', payload));\r\n};\r\n\r\nexport const cancelReport = (payload) => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_REPORT_CANCEL, 'users', payload));\r\n};\r\n\r\nexport const onFailReport = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_REPORT_FAIL, 'users'));\r\n};\r\n\r\nexport const sendReport = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_REPORT_SEND,\r\n effect: async () => api.post('users/report', data),\r\n onSuccess,\r\n onFail: () => dispatch(onFailReport())\r\n });\r\n};\r\n\r\nexport const findByFederalTaxNumber = (\r\n federaltaxnumber,\r\n onSuccess,\r\n onFail\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_FIND,\r\n effect: async () =>\r\n api.get('users', `find/?federaltaxnumber=${federaltaxnumber}`),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const removeContributor = (id, onSuccess, onFail) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_CONTRIBUTOR_DELETE,\r\n effect: async () => api.del('users', `${id}/contributor`),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const getMyPreferences = (onSuccess, onFail) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_GET_MY_PREFERENCES,\r\n effect: async () => api.get('users', 'current-preferences'),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const updateMyPreferences = (data, onSuccess, onFail) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_UPDATE_MY_PREFERENCES,\r\n payload: data,\r\n effect: async () => api.put('users/current-preferences', data),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const cancelMyPreferences = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_CANCEL_MY_PREFERENCES, 'users'));\r\n};\r\n\r\nexport const createCompany = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_CREATE_COMPANY, 'users'));\r\n};\r\n\r\nexport const closeCompanyEdit = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(USER_CLOSE_COMPANY_EDIT, 'users'));\r\n};\r\n\r\nexport const getCompany = (companyId) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n actionType: USER_GET_COMPANY,\r\n effect: async () => api.get('companies', companyId)\r\n });\r\n};\r\n\r\nexport const postCompany = (userId, data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n payload: data,\r\n actionType: USER_POST_COMPANY,\r\n effect: async () => api.post('companies', { userOwnerId: userId, ...data }),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const putCompany = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'users',\r\n payload: data,\r\n actionType: USER_PUT_COMPANY,\r\n onSuccess,\r\n effect: async () => api.put(`companies/${data.id}`, data)\r\n });\r\n};\r\n","import React, { useState } from 'react';\r\nimport { Input, Form, Row, Radio } from 'antd';\r\nimport {\r\n DrawerEdit,\r\n FormItemWrap,\r\n useCrudEditContext\r\n} from '@unicus/react-ui-kit';\r\nimport { federalTaxNumberValidator } from 'util/validators';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { AddressV2, ResCol } from 'components';\r\n\r\nconst CustomerEdit = (props) => {\r\n const { form } = useCrudEditContext();\r\n const [isLegalPerson, setIsLegalPerson] = useState(\r\n props?.data?.isLegalPerson\r\n );\r\n\r\n const handleSubmit = ({ ...rest }) => {\r\n return {\r\n ...rest,\r\n isLegalPerson\r\n };\r\n };\r\n\r\n const handleBeforeBinding = ({ ...rest }) => {\r\n setIsLegalPerson(rest.isLegalPerson ?? false);\r\n\r\n return {\r\n ...rest\r\n };\r\n };\r\n\r\n const toggler = () => {\r\n form.setFieldsValue({ federalTaxNumber: '' });\r\n setIsLegalPerson(!isLegalPerson);\r\n };\r\n\r\n const postalCodeChangeHandle = (sender) => {\r\n const federalTaxNumber = sender.target.value.replace(/\\D/g, '');\r\n\r\n if (federalTaxNumber.length === 14) {\r\n setIsLegalPerson(true);\r\n }\r\n };\r\n\r\n return (\r\n \r\n
\r\n
\r\n \r\n Pessoa Física\r\n Pessoa Jurídica\r\n \r\n
\r\n\r\n {isLegalPerson ? (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n );\r\n};\r\nexport default CustomerEdit;\r\n","import { dispatcher } from '@unicus/react-ui-kit';\r\n\r\nexport const PRESCRIPTION = 'PRESCRIPTION';\r\nexport const PRESCRIPTION_SHOW = 'PRESCRIPTION_SHOW';\r\nexport const PRESCRIPTION_CLOSE = 'PRESCRIPTION_CLOSE';\r\n\r\nexport const show = (forceDefaultPrescription = false) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n PRESCRIPTION_SHOW,\r\n 'prescriptions',\r\n forceDefaultPrescription\r\n )\r\n );\r\n};\r\n\r\nexport const close = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PRESCRIPTION_CLOSE, 'prescriptions'));\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const COLLABORATOR = 'COLLABORATOR';\r\n\r\nexport const COLLABORATOR_INVITATION_RESEND = 'COLLABORATOR_INVITATION_RESEND';\r\nexport const COLLABORATOR_INVITATION_RESEND_FINISHED =\r\n 'COLLABORATOR_INVITATION_RESEND_FINISHED';\r\n\r\nexport const COLLABORATOR_CHANGE_INACTIVATE = 'COLLABORATOR_CHANGE_INACTIVATE';\r\nexport const COLLABORATOR_CHANGE_INACTIVATE_FINISHED =\r\n 'COLLABORATOR_CHANGE_INACTIVATE_FINISHED';\r\n\r\nexport const resendInvitation = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'collaborators/invitations',\r\n actionType: COLLABORATOR_INVITATION_RESEND,\r\n effect: async () => api.put(`collaborators/invitations/${id}/resend`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const inactivate = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'collaborators',\r\n actionType: COLLABORATOR_CHANGE_INACTIVATE,\r\n effect: async () => api.put(`collaborators/${id}/inactivate`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const activate = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'collaborators',\r\n actionType: COLLABORATOR_CHANGE_INACTIVATE,\r\n effect: async () => api.put(`collaborators/${id}/activate`),\r\n onSuccess\r\n });\r\n};\r\n","const states = [\r\n {\r\n initials: 'ac',\r\n name: 'Acre'\r\n },\r\n {\r\n initials: 'al',\r\n name: 'Alagoas'\r\n },\r\n {\r\n initials: 'am',\r\n name: 'Amazonas'\r\n },\r\n {\r\n initials: 'ap',\r\n name: 'Amapá'\r\n },\r\n {\r\n initials: 'ba',\r\n name: 'Bahia'\r\n },\r\n {\r\n initials: 'ce',\r\n name: 'Ceará'\r\n },\r\n {\r\n initials: 'df',\r\n name: 'Distrito Federal'\r\n },\r\n {\r\n initials: 'es',\r\n name: 'Espírito Santo'\r\n },\r\n {\r\n initials: 'go',\r\n name: 'Goiás'\r\n },\r\n {\r\n initials: 'ma',\r\n name: 'Maranhão'\r\n },\r\n {\r\n initials: 'mg',\r\n name: 'Minas Gerais'\r\n },\r\n {\r\n initials: 'ms',\r\n name: 'Mato Grosso do Sul'\r\n },\r\n {\r\n initials: 'mt',\r\n name: 'Mato Grosso'\r\n },\r\n {\r\n initials: 'pa',\r\n name: 'Pará'\r\n },\r\n {\r\n initials: 'pb',\r\n name: 'Paraíba'\r\n },\r\n {\r\n initials: 'pe',\r\n name: 'Pernambuco'\r\n },\r\n {\r\n initials: 'pi',\r\n name: 'Piauí'\r\n },\r\n {\r\n initials: 'pr',\r\n name: 'Paraná'\r\n },\r\n {\r\n initials: 'rj',\r\n name: 'Rio de Janeiro'\r\n },\r\n {\r\n initials: 'rn',\r\n name: 'Rio Grande do Norte'\r\n },\r\n {\r\n initials: 'ro',\r\n name: 'Rondônia'\r\n },\r\n {\r\n initials: 'rr',\r\n name: 'Roraima'\r\n },\r\n {\r\n initials: 'rs',\r\n name: 'Rio Grande do Sul'\r\n },\r\n {\r\n initials: 'sc',\r\n name: 'Santa Catarina'\r\n },\r\n {\r\n initials: 'se',\r\n name: 'Sergipe'\r\n },\r\n {\r\n initials: 'sp',\r\n name: 'São Paulo'\r\n },\r\n {\r\n initials: 'to',\r\n name: 'Tocantins'\r\n }\r\n];\r\n\r\nexport default states;\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const CATEGORY = 'CATEGORY';\r\nexport const CATEGORY_FETCH = 'CATEGORY_FETCH';\r\nexport const CATEGORY_FETCH_FINISHED = 'CATEGORY_FETCH_FINISHED';\r\n\r\nexport const fetchTree = (resource, params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource,\r\n actionType: CATEGORY_FETCH,\r\n effect: async () => api.fetch(`${resource}/tree`, { ...params })\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const PARTNERSHIP = 'PARTNERSHIP';\r\n\r\nexport const PARTNERSHIP_INVITATION_RESEND = 'PARTNERSHIP_INVITATION_RESEND';\r\nexport const PARTNERSHIP_INVITATION_RESEND_FINISHED =\r\n 'PARTNERSHIP_INVITATION_RESEND_FINISHED';\r\n\r\nexport const PARTNERSHIP_LICENSE_SUMMARY = 'PARTNERSHIP_LICENSE_SUMMARY';\r\nexport const PARTNERSHIP_LICENSE_SUMMARY_FINISHED =\r\n 'PARTNERSHIP_LICENSE_SUMMARY_FINISHED';\r\n\r\nexport const resendEmail = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'partnerships',\r\n actionType: PARTNERSHIP_INVITATION_RESEND,\r\n effect: async () => api.put(`partnerships/${id}/resend-email`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const getSummary = (onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'partnerships',\r\n actionType: PARTNERSHIP_LICENSE_SUMMARY,\r\n effect: async () => api.get('partnerships', 'summary'),\r\n onSuccess\r\n });\r\n};\r\n","import { dispatcher, api, RESOURCE_FETCH } from '@unicus/react-ui-kit';\r\n\r\nexport const PRODUCTMOVEMENT = 'PRODUCTMOVEMENT';\r\n\r\nexport const PRODUCTMOVEMENT_DELETE = 'PRODUCTMOVEMENT_DELETE';\r\nexport const PRODUCTMOVEMENT_DELETE_FINISHED =\r\n 'PRODUCTMOVEMENT_DELETE_FINISHED';\r\n\r\nexport const fetch = (resource, params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'product-movements',\r\n actionType: RESOURCE_FETCH,\r\n effect: async () => api.fetch('product-movements/items', params)\r\n });\r\n};\r\n\r\nexport const remove = (id) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'product-movements',\r\n actionType: PRODUCTMOVEMENT_DELETE,\r\n effect: async () => api.del('product-movements', id)\r\n });\r\n};\r\n","import { dispatcher, api } from '@unicus/react-ui-kit';\r\n\r\nexport const REPORT = 'REPORT';\r\nexport const REPORT_ACCOUNT_RECEIVABLE = 'REPORT_ACCOUNT_RECEIVABLE';\r\nexport const REPORT_ACCOUNT_RECEIVABLE_FINISHED =\r\n 'REPORT_ACCOUNT_RECEIVABLE_FINISHED';\r\n\r\nexport const getAccountsReceivables = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'reports',\r\n actionType: REPORT_ACCOUNT_RECEIVABLE,\r\n effect: async () => api.fetch('reports/accounts-receivables', params)\r\n });\r\n};\r\n\r\nexport const getAccountsPayable = (params) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'reports',\r\n actionType: REPORT_ACCOUNT_RECEIVABLE,\r\n effect: async () => api.fetch('reports/accounts-payable', params)\r\n });\r\n};\r\n","import { normalizeToSelect } from '@unicus/react-ui-kit';\r\n\r\nconst cityNormalizeToSelect = (city) => {\r\n return normalizeToSelect(city, {\r\n label: (c) => {\r\n return `${c.name} - ${c.state?.toUpperCase()}`;\r\n }\r\n });\r\n};\r\n\r\nexport default cityNormalizeToSelect;\r\n","const abbreviations = ['Dr.', 'Dra.'];\r\n\r\nconst reducerName = (name) => {\r\n if (!name) {\r\n return '';\r\n }\r\n\r\n const base = name\r\n .trim()\r\n .split(' ')\r\n .filter(\r\n (c) => !['de', 'da', 'do', 'das', 'dos', 'e'].includes(c.toLowerCase())\r\n );\r\n\r\n const namesWithoutAbbreviations = base.filter(\r\n (c) => !abbreviations.includes(c)\r\n );\r\n\r\n const abbreviation = base.find((c) => abbreviations.includes(c));\r\n\r\n const firstName = namesWithoutAbbreviations.slice(0, 1).join(' ');\r\n const lastName =\r\n namesWithoutAbbreviations.length > 1\r\n ? namesWithoutAbbreviations.slice(-1).join(' ')\r\n : null;\r\n\r\n return [abbreviation, firstName, lastName].filter((c) => !!c).join(' ');\r\n};\r\n\r\nexport default reducerName;\r\n","import React from 'react';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport { Button, Form, Switch, Tooltip } from 'antd';\r\nimport { FormItemWrap, configManager } from '@unicus/react-ui-kit';\r\nimport { useDispatch } from 'react-redux';\r\nimport {\r\n cancelMyPreferences,\r\n updateMyPreferences\r\n} from 'stores/users/userActions';\r\nimport { Drawer } from 'components';\r\nimport { ExclamationCircleOutlined } from '@ant-design/icons';\r\n\r\nconst CurrentUserMyPreferences = ({ data, saving }) => {\r\n const [form] = Form.useForm();\r\n const segmentFields = useSegmentField();\r\n const dispatch = useDispatch();\r\n\r\n const handleSubmit = () => {\r\n form.validateFields().then((values) => {\r\n dispatch(updateMyPreferences({ ...data, ...values }));\r\n });\r\n };\r\n\r\n const handleCancel = () => {\r\n dispatch(cancelMyPreferences());\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n }\r\n >\r\n \r\n {segmentFields.isHealthcareEnabled && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default CurrentUserMyPreferences;\r\n\r\n","import React from 'react';\r\nimport FinancialEntryList from 'pages/app/financialEntries/FinancialEntryList';\r\nimport { Modal } from 'antd';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { closeFinancialEntry } from 'stores/patients/patientActions';\r\nimport useAuth from 'core/hooks/useAuth';\r\n\r\nconst PatientFinancialEntryListInternal = ({ patientId }) => {\r\n const dispatch = useDispatch();\r\n const { hasRole } = useAuth();\r\n\r\n const handleClose = () => {\r\n dispatch(closeFinancialEntry());\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nconst PatientFinancialEntryList = () => {\r\n const { visibleFinancialEntryPatientId } = useSelector(\r\n (c) => c.resources['financial-entries'] ?? {}\r\n );\r\n\r\n if (!visibleFinancialEntryPatientId) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default PatientFinancialEntryList;\r\n","import React, { useEffect, useState } from 'react';\r\nimport { Divider, Form, Input, Row, Tabs, DatePicker, Switch } from 'antd';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport federalTaxNumberValidator from 'util/validators/federalTaxNumberValidator';\r\nimport { AddressV2, UploadArchiveManual } from 'components';\r\nimport ResCol from 'components/forms/ResCol';\r\nimport moment from 'moment';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {\r\n DrawerEdit,\r\n FormItemWrap,\r\n ResourceEdit,\r\n useCrudEditContext,\r\n api\r\n} from '@unicus/react-ui-kit';\r\nimport { postCertificate } from 'stores/companies/companyActions';\r\nimport {\r\n cityNormalizeFromSelect,\r\n cityNormalizeToSelect\r\n} from 'util/normalizers';\r\nimport {\r\n closeCompanyEdit,\r\n postCompany,\r\n putCompany\r\n} from 'stores/users/userActions';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport CompanySettingsForm from './CompanySettingsForm';\r\n\r\nconst { TabPane } = Tabs;\r\n\r\nconst CompanyEditInternal = (props) => {\r\n const dispatch = useDispatch();\r\n const { form } = useCrudEditContext();\r\n const { user, refreshToken, refresh } = useAuth();\r\n const { data = {}, loadingEdition } = props;\r\n const { certificate } = data;\r\n const [isUploadCertificate, setIsUploadCertificate] = useState(false);\r\n const [enabled, setEnable] = useState(false);\r\n const [image, setImage] = useState(data?.profileImage);\r\n const [isCompany, setIsCompany] = useState(data.isLegalPerson ?? false);\r\n\r\n const [state, setState] = useState({\r\n lastFederalTaxNumber: null,\r\n loadingAddress: false\r\n });\r\n\r\n const handleBeforeSubmit = ({ uploadCertificate, ...rest }) => {\r\n return {\r\n ...data,\r\n ...rest,\r\n uploadCertificate: isUploadCertificate ? uploadCertificate : null,\r\n profileImage: image\r\n };\r\n };\r\n\r\n useEffect(() => {\r\n if (!loadingEdition) {\r\n setImage(data?.profileImage);\r\n }\r\n }, [loadingEdition]);\r\n\r\n const handleBeforeBinding = ({ settings, certificate, ...rest }) => {\r\n setEnable(settings?.serviceInvoice?.enabled);\r\n\r\n return {\r\n ...rest,\r\n settings,\r\n certificate: certificate\r\n ? {\r\n ...certificate,\r\n expirationAt: moment(certificate?.expirationAt)\r\n }\r\n : null\r\n };\r\n };\r\n\r\n const setCompanyData = ({\r\n address,\r\n legalName,\r\n stateTaxNumber,\r\n cityTaxNumber,\r\n name\r\n }) => {\r\n form.setFieldsValue({\r\n name,\r\n cityTaxNumber,\r\n stateTaxNumber,\r\n legalName,\r\n address: {\r\n ...address,\r\n city: cityNormalizeToSelect(address.city)\r\n }\r\n });\r\n };\r\n\r\n const findCompany = (federalTaxNumber) => {\r\n federalTaxNumber = federalTaxNumber.replace(/\\D/g, '');\r\n setState({\r\n ...state,\r\n lastFederalTaxNumber: federalTaxNumber,\r\n loadingAddress: true\r\n });\r\n api.get('companies/find', federalTaxNumber).then(({ data }) => {\r\n setState({ ...state, loadingAddress: false });\r\n setCompanyData(data ? data.result : { address: {} });\r\n });\r\n };\r\n\r\n const postalCodeChangeHandle = (sender) => {\r\n const federalTaxNumber = sender.target.value.replace(/\\D/g, '');\r\n if (federalTaxNumber.length === 14) {\r\n findCompany(federalTaxNumber);\r\n }\r\n };\r\n\r\n const handleSuccess = () => {\r\n refresh({ refreshToken, type: 'professional' });\r\n };\r\n\r\n const handleSubmit = (submittedValues) => {\r\n const values = handleBeforeSubmit(submittedValues);\r\n\r\n if (!data?.id) {\r\n dispatch(postCompany(user.id, values, handleSuccess));\r\n } else {\r\n dispatch(putCompany(values, handleSuccess));\r\n }\r\n };\r\n\r\n const handleCancel = () => {\r\n dispatch(closeCompanyEdit());\r\n };\r\n\r\n const handleSuccessPostCertificate = ({ data }) => {\r\n const { fileName, contentType } = data.result;\r\n\r\n setIsUploadCertificate(true);\r\n\r\n form.setFields([\r\n {\r\n name: ['uploadCertificate', 'fileName'],\r\n errors: [],\r\n value: fileName\r\n },\r\n {\r\n name: ['uploadCertificate', 'contentType'],\r\n errors: [],\r\n value: contentType\r\n }\r\n ]);\r\n };\r\n\r\n const handleOnUploadRequest = (options) => {\r\n const formData = new FormData();\r\n formData.append('certificateFile', options.file);\r\n\r\n dispatch(postCertificate(formData, handleSuccessPostCertificate));\r\n };\r\n\r\n const handleChangeValues = ({ settings }) => {\r\n if (settings?.serviceInvoice?.enabled !== undefined) {\r\n setEnable(settings?.serviceInvoice?.enabled);\r\n\r\n if (settings?.serviceInvoice?.enabled === false) {\r\n form.setFieldsValue({ allowToCreateOtherCompanies: false });\r\n }\r\n }\r\n };\r\n\r\n const toggler = () => {\r\n if (isCompany) {\r\n setIsCompany(false);\r\n return;\r\n }\r\n\r\n setIsCompany(true);\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n {isCompany ? (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Endereço\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {certificate ? (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : null}\r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nconst CompanyEdit = (props) => {\r\n const { userCompany, saving } = useSelector((c) => c.resources.users ?? {});\r\n const { uploading } = useSelector((c) => c.resources.companies ?? {});\r\n\r\n if (!userCompany) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ResourceEdit.create(CompanyEdit, {\r\n resource: 'users',\r\n currentAttr: 'userCompany',\r\n unloadOnUnmount: false\r\n});\r\n","import React, { useState } from 'react';\r\nimport { MaskedInput } from 'antd-mask-input';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\nimport moment from 'moment';\r\nimport { Input, Form, Row, DatePicker, Col, Divider } from 'antd';\r\nimport {\r\n DrawerEdit,\r\n ResourceEdit,\r\n FormItemWrap,\r\n normalizeFromSelect,\r\n normalizeToSelect\r\n} from '@unicus/react-ui-kit';\r\nimport { currentUserUpdate } from 'stores/users/userActions';\r\nimport { mobilePhoneValidator } from 'util/validators/index';\r\nimport {\r\n ResCol,\r\n SelectGender,\r\n SelectProfessionalRegistrationTypes,\r\n SelectStates,\r\n UploadProfileImage\r\n} from 'components';\r\nimport {\r\n cancelCurrentProfessional,\r\n updateCurrentProfessional\r\n} from 'stores/healthServiceProviders/healthServiceProviderActions';\r\nimport RemoteSelect from 'components/RemoteSelect';\r\n\r\nconst CurrentProfessionalForm = (props) => {\r\n const { data, loading } = props;\r\n const dispatch = useDispatch();\r\n const segmentFields = useSegmentField();\r\n const [registrationType, setRegistrationType] = useState(null);\r\n\r\n const handleBeforeSubmit = ({\r\n birthDate,\r\n medicalSpecialties = [],\r\n address,\r\n ...rest\r\n }) => {\r\n return {\r\n ...rest,\r\n medicalSpecialties: medicalSpecialties.map((c) => ({\r\n medicalSpecialty: normalizeFromSelect(c)\r\n })),\r\n birthDate: birthDate ? moment(birthDate).format('YYYY/MM/DD') : null\r\n };\r\n };\r\n\r\n const handleBeforeBinding = ({\r\n birthDate,\r\n medicalSpecialties = [],\r\n address = {},\r\n ...rest\r\n }) => {\r\n return {\r\n ...rest,\r\n medicalSpecialties: medicalSpecialties.map((c) =>\r\n normalizeToSelect(c.medicalSpecialty)\r\n ),\r\n birthDate: birthDate ? moment(birthDate) : null\r\n };\r\n };\r\n\r\n const handleSubmit = (data) => {\r\n const values = handleBeforeSubmit(data);\r\n dispatch(updateCurrentProfessional(values));\r\n };\r\n\r\n const handleCancel = () => {\r\n dispatch(cancelCurrentProfessional());\r\n };\r\n\r\n const handleValuesChange = (_, { professionalRegistration }) => {\r\n setRegistrationType(professionalRegistration?.type ?? null);\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n moment(date).isAfter(moment())}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {segmentFields.isHealthcareEnabled && (\r\n <>\r\n Informações profissionais\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nconst ResourceComponent = ResourceEdit.create(CurrentProfessionalForm, {\r\n resource: 'health-service-providers',\r\n currentAttr: 'currentProfessional'\r\n});\r\n\r\nconst CurrentProfessionalEdit = (props) => {\r\n const { editingCurrentProfessional } = useSelector(\r\n (state) => state.resources['health-service-providers'] || {}\r\n );\r\n\r\n if (!editingCurrentProfessional) {\r\n return null;\r\n }\r\n\r\n return ;\r\n};\r\n\r\nexport default CurrentProfessionalEdit;\r\n\r\n\r\n\r\n","import React from 'react';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { Menu, Dropdown } from 'antd';\r\nimport { RECORD_FIELD } from '@unicus/react-ui-kit';\r\nimport UserProfileImage from 'components/UserProfileImage';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport {\r\n updatePassword,\r\n currentUserGet,\r\n getMyPreferences,\r\n createCompany,\r\n getCompany\r\n} from 'stores/users/userActions';\r\n\r\nimport UpdatePassword from 'pages/shared/UpdatePassword';\r\nimport CurrentUserEdit from 'pages/shared/CurrentUserEdit';\r\nimport CurrentUserMyPreferences from 'pages/shared/CurrentUserMyPreferences';\r\nimport useAuth from 'core/hooks/useAuth';\r\nimport { reducerName } from 'util/normalizers';\r\nimport usePermissions from 'core/hooks/usePermissions';\r\nimport { changeTenant } from 'stores/auth/authActions';\r\nimport PatientFinancialEntryList from 'pages/shared/PatientFinancialEntryList';\r\nimport CompanyEdit from 'pages/shared/CompanyEdit';\r\nimport { getCurrentProfessional } from 'stores/healthServiceProviders/healthServiceProviderActions';\r\nimport CurrentProfessionalEdit from 'pages/shared/CurrentProfessionalEdit';\r\nimport { useCustomHistory } from 'hooks';\r\nimport useSegmentField from 'core/hooks/useSegmentField';\r\n\r\nconst CurrentUserProfile = () => {\r\n const {\r\n user,\r\n company,\r\n isAdmin,\r\n userCompany,\r\n isMultiTenant,\r\n tenantId\r\n } = useAuth();\r\n const {\r\n isProfessional,\r\n isStudent,\r\n isUserAdmin,\r\n isPartnership\r\n } = usePermissions();\r\n const dispatch = useDispatch();\r\n const history = useCustomHistory();\r\n const segmentFields = useSegmentField();\r\n const {\r\n editingCurrentUser,\r\n [RECORD_FIELD]: resourceUsers,\r\n myPreferences,\r\n saving\r\n } = useSelector((state) => state.resources.users || {});\r\n\r\n const signout = () => {\r\n history.push('/signout', false);\r\n };\r\n\r\n const handleEditProfile = () => {\r\n dispatch(currentUserGet(user.id));\r\n };\r\n\r\n const handleEditProfessional = () => {\r\n dispatch(getCurrentProfessional());\r\n };\r\n\r\n const handleUpdatePassword = () => {\r\n dispatch(updatePassword({ userId: user.id }));\r\n };\r\n\r\n const handleMyPreferences = () => {\r\n dispatch(getMyPreferences());\r\n };\r\n\r\n const handleMySubscription = () => {\r\n history.push('current-subscriptions');\r\n };\r\n\r\n const handleBackToRootTenant = () => {\r\n dispatch(\r\n changeTenant(null, () => {\r\n history.push('/a/accounts/professional-accounts', false);\r\n })\r\n );\r\n };\r\n\r\n const handleEditingCompany = () => {\r\n if (!userCompany) {\r\n dispatch(createCompany());\r\n } else {\r\n dispatch(getCompany(userCompany.id));\r\n }\r\n };\r\n\r\n const allowCreateCompany = () => {\r\n return isProfessional && company?.settings?.allowToCreateOtherCompanies;\r\n };\r\n\r\n const changeTenantClickHandle = () => {\r\n dispatch(\r\n changeTenant(null, () => {\r\n history.push('/accounts-chooser', false);\r\n })\r\n );\r\n };\r\n\r\n const userMenuOptions = (\r\n \r\n Meus dados\r\n {isProfessional ? (\r\n \r\n Meus dados profissionais\r\n \r\n ) : null}\r\n {segmentFields.isHealthcareEnabled && (isProfessional || isAdmin()) && (\r\n Minhas preferências\r\n )}\r\n {allowCreateCompany() && (\r\n Meus dados (NFS-e)\r\n )}\r\n {(isUserAdmin || isPartnership || isAdmin()) && tenantId && (\r\n Minha assinatura\r\n )}\r\n {isMultiTenant && tenantId ? (\r\n Trocar de conta\r\n ) : null}\r\n Alterar senha\r\n {isAdmin() && (\r\n Administração\r\n )}\r\n Sair\r\n \r\n );\r\n\r\n const userName = user?.professionalName ?? user?.displayName ?? user?.name;\r\n const name = reducerName(userName);\r\n\r\n return (\r\n <>\r\n \r\n
\r\n \r\n\r\n
\r\n \r\n {name || Carregando...}\r\n \r\n \r\n {isStudent ? (\r\n
\r\n Estudante\r\n
\r\n ) : null}\r\n {isPartnership ? (\r\n
\r\n Parceiro\r\n
\r\n ) : null}\r\n
\r\n
\r\n
\r\n {editingCurrentUser ? : null}\r\n \r\n \r\n \r\n {resourceUsers && resourceUsers.editingPassword && (\r\n \r\n )}\r\n {myPreferences ? (\r\n \r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nexport default CurrentUserProfile;\r\n\r\n\r\n\r\n","import {\r\n dispatcher,\r\n api,\r\n RESOURCE_CREATE_INITIALIZE,\r\n RESOURCE_ACTION_CREATE,\r\n RESOURCE_ACTION_EDIT\r\n} from '@unicus/react-ui-kit';\r\nimport { formartOnlyNumber } from 'util/formatters';\r\n\r\nexport const PATIENT = 'PATIENT';\r\nexport const PATIENT_VIEW = 'PATIENT_VIEW';\r\nexport const PATIENT_VIEW_FINISHED = 'PATIENT_VIEW_FINISHED';\r\nexport const PATIENT_EVENT_FETCH = 'PATIENT_EVENT_FETCH';\r\nexport const PATIENT_EVENT_FETCH_FINISHED = 'PATIENT_EVENT_FETCH_FINISHED';\r\nexport const PATIENT_EVENT_UNLOAD = 'PATIENT_EVENT_UNLOAD';\r\nexport const PATIENT_VIEW_UPDATE = 'PATIENT_VIEW_UPDATE';\r\nexport const PATIENT_CREATE_ATTENDANCE = 'PATIENT_CREATE_ATTENDANCE';\r\nexport const PATIENT_EVENT_CREATE_ANNOTATION =\r\n 'PATIENT_EVENT_CREATE_ANNOTATION';\r\nexport const PATIENT_EVENT_CREATE_ANNOTATION_FINISHED =\r\n 'PATIENT_EVENT_CREATE_ANNOTATION_FINISHED';\r\nexport const PATIENT_EVENT_LINK_TREATMENT = 'PATIENT_EVENT_LINK_TREATMENT';\r\nexport const PATIENT_EVENT_LINK_TREATMENT_FINISHED =\r\n 'PATIENT_EVENT_LINK_TREATMENT_FINISHED';\r\nexport const PATIENT_EVENT_SHARE = 'PATIENT_EVENT_SHARE';\r\nexport const PATIENT_EVENT_SHARE_FINISHED = 'PATIENT_EVENT_SHARE_FINISHED';\r\nexport const PATIENT_SHOW_EVENTS = 'PATIENT_SHOW_EVENTS';\r\nexport const PATIENT_SHOW_ACTIVITIES = 'PATIENT_SHOW_ACTIVITIES';\r\nexport const PATIENT_FIND_BY_USER_ID = 'PATIENT_FIND_BY_USER_ID';\r\nexport const PATIENT_FIND_BY_USER_ID_FINISHED =\r\n 'PATIENT_FIND_BY_USER_ID_FINISHED';\r\n\r\nexport const PATIENT_SCHEDULES_FETCH = 'PATIENT_SCHEDULES_FETCH';\r\nexport const PATIENT_SCHEDULES_FETCH_FINISHED =\r\n 'PATIENT_SCHEDULES_FETCH_FINISHED';\r\nexport const PATIENT_SHOW_SCHEDULES = 'PATIENT_SHOW_SCHEDULES';\r\nexport const PATIENT_CLOSE_SCHEDULES = 'PATIENT_CLOSE_SCHEDULES';\r\n\r\nexport const PATIENT_EVENT_PRESCRIPTION_SHOW =\r\n 'PATIENT_EVENT_PRESCRIPTION_SHOW';\r\nexport const PATIENT_EVENT_PRESCRIPTION_CLOSE =\r\n 'PATIENT_EVENT_PRESCRIPTION_CLOSE';\r\n\r\nexport const PATIENT_EVENT = 'PATIENT_EVENT';\r\nexport const PATIENT_EVENT_FINISHED = 'PATIENT_EVENT_FINISHED';\r\n\r\nexport const PATIENT_PRESCRIPTION_CREATE_INTEGRATED =\r\n 'PATIENT_PRESCRIPTION_CREATE_INTEGRATED';\r\nexport const PATIENT_PRESCRIPTION_CREATE_INTEGRATED_FINISHED =\r\n 'PATIENT_PRESCRIPTION_CREATE_INTEGRATED_FINISHED';\r\n\r\nexport const PATIENT_PRESCRIPTION_INTEGRATION =\r\n 'PATIENT_PRESCRIPTION_INTEGRATION';\r\n\r\nexport const PATIENT_FIND = 'PATIENT_FIND';\r\n\r\nexport const PATIENT_OPEN_ANNOTATION = 'PATIENT_OPEN_ANNOTATION';\r\nexport const PATIENT_CLOSE_ANNOTATION = 'PATIENT_CLOSE_ANNOTATION';\r\n\r\nexport const PATIENT_EVENT_LIST_OPEN_FILTER = 'PATIENT_EVENT_LIST_OPEN_FILTER';\r\nexport const PATIENT_EVENT_LIST_CLOSE_FILTER =\r\n 'PATIENT_EVENT_LIST_CLOSE_FILTER';\r\n\r\nexport const PATIENT_GET_TAGS = 'PATIENT_GET_TAGS';\r\nexport const PATIENT_GET_TAGS_FINISHED = 'PATIENT_GET_TAGS_FINISHED';\r\n\r\nexport const PATIENT_CREATE_TAG = 'PATIENT_CREATE_TAG';\r\nexport const PATIENT_CREATE_TAG_FINISHED = 'PATIENT_CREATE_TAG_FINISHED';\r\n\r\nexport const PATIENT_REMOVE_TAG = 'PATIENT_REMOVE_TAG';\r\nexport const PATIENT_REMOVE_TAG_FINISHED = 'PATIENT_REMOVE_TAG_FINISHED';\r\n\r\nexport const PATIENT_SHOW_FINANCIALENTRY = 'PATIENT_SHOW_FINANCIALENTRY';\r\nexport const PATIENT_CLOSE_FINANCIALENTRY = 'PATIENT_CLOSE_FINANCIALENTRY';\r\n\r\nexport const PATIENT_LIST_REFRESH = 'PATIENT_LIST_REFRESH';\r\n\r\nexport const getDetail = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_VIEW,\r\n effect: async () => api.get('patients', `${id}/detail`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const fetchEvents = (params, onSuccess, tenant) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_EVENT_FETCH,\r\n effect: async () =>\r\n api.fetch('patients/events', { ...params, pageSize: 20 }, tenant),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const updateView = (data) => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_VIEW_UPDATE, 'patients', data));\r\n};\r\n\r\nexport const showCreateAttendance = (params) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_CREATE_ATTENDANCE, 'patients', params)\r\n );\r\n};\r\n\r\nexport const unloadEvents = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_EVENT_UNLOAD, 'patients'));\r\n};\r\n\r\nexport const createAnnotation = (patientId, data, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_EVENT_CREATE_ANNOTATION,\r\n effect: async () =>\r\n api.post(`patients/${patientId}/annotation-event`, data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const openAnnotation = (patient) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_OPEN_ANNOTATION, 'patients', patient)\r\n );\r\n};\r\n\r\nexport const closeAnnotation = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_CLOSE_ANNOTATION, 'patients'));\r\n};\r\n\r\nexport const linkEventToTreatment = (eventId, treatmentId, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_EVENT_LINK_TREATMENT,\r\n effect: async () =>\r\n api.put(\r\n `patients/link-event-treatment/?eventid=${eventId}&treatmentid=${treatmentId}`\r\n ),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const shareEvent = (eventId, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_EVENT_SHARE,\r\n effect: async () => api.put(`patients/share-event/?eventid=${eventId}`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const showEvents = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_SHOW_EVENTS, 'patients'));\r\n};\r\n\r\nexport const showActivities = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_SHOW_ACTIVITIES, 'patients'));\r\n};\r\n\r\nexport const initializeCreate = (data) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(RESOURCE_CREATE_INITIALIZE, 'patients', {\r\n initialValues: data,\r\n action: data?.id ? RESOURCE_ACTION_EDIT : RESOURCE_ACTION_CREATE\r\n })\r\n );\r\n};\r\n\r\nexport const find = (userId, onSuccess, onFail) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_FIND_BY_USER_ID,\r\n effect: async () => api.get('patients', `find/?userId=${userId}`),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const showSchedules = (patientId) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_SHOW_SCHEDULES, 'patients', patientId)\r\n );\r\n};\r\n\r\nexport const closeSchedules = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_CLOSE_SCHEDULES, 'patients'));\r\n};\r\n\r\nexport const showEventPrescription = (patientId) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n PATIENT_EVENT_PRESCRIPTION_SHOW,\r\n 'patients',\r\n patientId\r\n )\r\n );\r\n};\r\n\r\nexport const closeEventPrescription = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_EVENT_PRESCRIPTION_CLOSE, 'patients')\r\n );\r\n};\r\n\r\nexport const createEvent = (id, data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_EVENT,\r\n effect: async () => api.post(`patients/${id}/event`, data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createIntegratedPrescription = (data, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_PRESCRIPTION_CREATE_INTEGRATED,\r\n effect: async () => api.post('patients/integrated-prescription', data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const syncDigitalEventPrescription = (\r\n patientId,\r\n code,\r\n onSuccess\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_PRESCRIPTION_INTEGRATION,\r\n effect: async () =>\r\n api.post(\r\n `patients/sync-digital-prescription?patientId=${patientId}&code=${code}`\r\n ),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const findByFederalTaxNumber = (\r\n federalTaxNumber,\r\n onSuccess,\r\n onFail\r\n) => async (dispatch) => {\r\n const onlyNumber = formartOnlyNumber(federalTaxNumber);\r\n\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_FIND,\r\n effect: async () =>\r\n api.get(\r\n 'patients',\r\n `find-by-federal-tax-number/?federalTaxNumber=${onlyNumber}`\r\n ),\r\n onSuccess,\r\n onFail\r\n });\r\n};\r\n\r\nexport const eventsOpenFilter = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_EVENT_LIST_OPEN_FILTER, 'patients'));\r\n};\r\n\r\nexport const eventsCloseFilter = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_EVENT_LIST_CLOSE_FILTER, 'patients')\r\n );\r\n};\r\n\r\nexport const getTags = (patientId, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_GET_TAGS,\r\n effect: async () => api.get('patients', `${patientId}/tags`)\r\n });\r\n};\r\n\r\nexport const createTag = (patientId, data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_CREATE_TAG,\r\n payload: data,\r\n effect: async () => api.post(`patients/${patientId}/tags`, data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const removeTag = (patientTagId, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: PATIENT_REMOVE_TAG,\r\n payload: patientTagId,\r\n effect: async () =>\r\n api.del('patients', `tags?patientTagId=${patientTagId}`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const showFinancialEntry = (patientId) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n PATIENT_SHOW_FINANCIALENTRY,\r\n 'financial-entries',\r\n patientId\r\n )\r\n );\r\n};\r\n\r\nexport const closeFinancialEntry = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(PATIENT_CLOSE_FINANCIALENTRY, 'financial-entries')\r\n );\r\n};\r\n\r\nexport const refresh = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(PATIENT_LIST_REFRESH, 'patients'));\r\n};\r\n","const formartOnlyNumber = (number) => {\r\n if (!number) {\r\n return '';\r\n }\r\n\r\n const value = number.match(/\\d+/g);\r\n\r\n if (value) {\r\n return value.join('');\r\n }\r\n\r\n return '';\r\n};\r\n\r\nexport default formartOnlyNumber;\r\n","import formartOnlyNumber from './formartOnlyNumber';\r\n\r\nconst formatFederalTaxNumber = (federalTaxNumber) => {\r\n if (!federalTaxNumber) {\r\n return '';\r\n }\r\n\r\n const onlyNumber = formartOnlyNumber(federalTaxNumber);\r\n\r\n if (onlyNumber.length === 11) {\r\n return onlyNumber.replace(/(\\d{3})(\\d{3})(\\d{3})(\\d{2})/g, '$1.$2.$3-$4');\r\n }\r\n\r\n return onlyNumber.replace(\r\n /(\\d{2})(\\d{3})(\\d{3})(\\d{4})(\\d{2})/g,\r\n '$1.$2.$3/$4-$5'\r\n );\r\n};\r\n\r\nexport default formatFederalTaxNumber;\r\n","import moment from 'moment';\r\n\r\nconst formartDateTimeUTC = (date, format = 'DD/MM/YYYY HH:mm') => {\r\n if (!date) {\r\n return null;\r\n }\r\n\r\n if (format === 'fromNow') {\r\n let message = '';\r\n\r\n const today = moment();\r\n const years = today.diff(date, 'year');\r\n const months = today.add(-years, 'year').diff(date, 'month');\r\n const days = today.add(-months, 'month').diff(date, 'day');\r\n\r\n if (years > 0) {\r\n message += `${years} ${years > 1 ? 'anos, ' : 'ano, '}`;\r\n }\r\n\r\n if (months > 0) {\r\n message += `${months} ${months > 1 ? 'meses e ' : 'mês e '}`;\r\n }\r\n\r\n if (days > 0) {\r\n message += `${days} ${days > 1 ? 'dias' : 'dia'}`;\r\n }\r\n\r\n return message;\r\n }\r\n\r\n return moment(date).format(format);\r\n};\r\n\r\nexport default formartDateTimeUTC;\r\n","import moment from 'moment';\r\n\r\nconst formatDateToNumber = (date, type) => {\r\n const postDate = moment(date);\r\n const currentDate = moment(new Date());\r\n const duration = moment.duration(currentDate.diff(postDate));\r\n\r\n switch (type) {\r\n case 'second':\r\n return Math.trunc(duration.asSeconds() || 0);\r\n case 'minute':\r\n return Math.trunc(duration.asMinutes() || 0);\r\n case 'hour':\r\n return Math.trunc(duration.asHours() || 0);\r\n case 'day':\r\n return Math.trunc(duration.asDays() || 0);\r\n case 'month':\r\n return Math.trunc(duration.asMonths() || 0);\r\n case 'year':\r\n return Math.trunc(duration.asYears() || 0);\r\n default:\r\n return undefined;\r\n }\r\n};\r\n\r\nexport default formatDateToNumber;\r\n","const formatPhone = (phone) => {\r\n if (!phone) {\r\n return '';\r\n }\r\n\r\n let r = phone.replace(/\\D/g, '');\r\n r = r.replace(/^0/, '');\r\n if (r.length > 10) {\r\n r = r.replace(/^(\\d\\d)(\\d{5})(\\d{4}).*/, '($1) $2-$3');\r\n } else if (r.length > 5) {\r\n r = r.replace(/^(\\d\\d)(\\d{4})(\\d{0,4}).*/, '($1) $2-$3');\r\n } else if (r.length > 2) {\r\n r = r.replace(/^(\\d\\d)(\\d{0,5})/, '($1) $2');\r\n } else {\r\n r = r.replace(/^(\\d*)/, '($1');\r\n }\r\n return r;\r\n};\r\n\r\nexport default formatPhone;\r\n","const formatInitials = (name) => {\r\n const rgx = new RegExp(/(\\p{L}{1})\\p{L}+/, 'gu');\r\n let initials = [...name.matchAll(rgx)] || [];\r\n initials = (\r\n (initials.shift()?.[1] || '') + (initials.pop()?.[1] || '')\r\n ).toUpperCase();\r\n\r\n return initials;\r\n};\r\n\r\nexport default formatInitials;\r\n","import { SegmentField } from 'util/formatters/formatSegment';\r\nimport useAuth from 'core/hooks/useAuth';\r\n\r\nconst useSegmentField = () => {\r\n const { isHealthcareEnabled } = useAuth();\r\n const serviceRecipient = SegmentField.serviceRecipient.Singular();\r\n const serviceProvider = SegmentField.serviceProvider.Singular();\r\n const client = SegmentField.client.Singular();\r\n const service = SegmentField.service.Singular();\r\n const priceTable = SegmentField.priceTable.Singular();\r\n const record = SegmentField.record.Singular();\r\n const serviceRecipients = SegmentField.serviceRecipient.Plural();\r\n const serviceProviders = SegmentField.serviceProvider.Plural();\r\n const clients = SegmentField.client.Plural();\r\n const services = SegmentField.service.Plural();\r\n const priceTables = SegmentField.priceTable.Plural();\r\n const records = SegmentField.record.Plural();\r\n\r\n return {\r\n serviceRecipient,\r\n serviceProvider,\r\n client,\r\n service,\r\n priceTable,\r\n record,\r\n serviceRecipients,\r\n serviceProviders,\r\n clients,\r\n services,\r\n priceTables,\r\n records,\r\n isHealthcareEnabled\r\n };\r\n};\r\n\r\nexport default useSegmentField;\r\n","import {\r\n ABNEGATIVE,\r\n ABPOSITIVE,\r\n ACCEPTED,\r\n ACCOUNTANTS,\r\n ACTIVATED,\r\n ANEGATIVE,\r\n APOSITIVE,\r\n APPROXIMATETAXES_COMPLETE,\r\n APPROXIMATETAXES_SIMPLIFIED,\r\n BALANCEWALLETS,\r\n BANKCHECK,\r\n BANKDEPOSIT,\r\n BANKTRANSFER,\r\n BILLETBANK,\r\n BNEGATIVE,\r\n BPOSITIVE,\r\n CANCELED,\r\n CANCELLATION_REQUESTED,\r\n CASH,\r\n CREATED,\r\n CREDITCARD,\r\n DEBITCARD,\r\n DIRECTDEBIT,\r\n ELECTRONICTRANSFER,\r\n EXPIRED,\r\n IGNORED,\r\n INITIALBALANCE,\r\n INTRIAL,\r\n MUNICIPAL,\r\n NATIONAL,\r\n ONEGATIVE,\r\n OPOSITIVE,\r\n OTHER,\r\n PAYMENT,\r\n PAYPAL,\r\n PENDING,\r\n PIX,\r\n PROFILE_ACCOUNTANT,\r\n PROFILE_ADMINISTRADOR,\r\n PROFILE_DOCTOR,\r\n PROFILE_FINANCIAL,\r\n PROFILE_OTHER,\r\n PROFILE_PARTNERSHIP,\r\n PROFILE_RECEPTIONIST,\r\n PROFILE_STUDENT,\r\n PROFILE_USER,\r\n RECEIPT,\r\n RECONCILED,\r\n ROLE_ACCOUNTANT,\r\n ROLE_ADMIN,\r\n ROLE_CLINIC_ADMINISTRATOR,\r\n ROLE_FINANCIAL,\r\n ROLE_OTHER_HEALTH_PROFESSIONAL,\r\n ROLE_PARTNERSHIP,\r\n ROLE_PROFESSIONAL,\r\n ROLE_RECEPTIONIST,\r\n ROLE_STUDENT,\r\n STATE,\r\n SUSPENDED,\r\n INACTIVATED,\r\n ROLE_FINANCIAL_ADMINISTRATOR,\r\n PROFILE_FINANCIAL_ADMINISTRATOR,\r\n ROLE_STOCK,\r\n OUTGOING,\r\n INCOMING,\r\n CONCLUDED,\r\n INPROGRESS,\r\n AVAILABLE\r\n} from 'constants/types';\r\n\r\nconst display = {\r\n [CREATED]: 'Aguardando pagamento',\r\n [ACTIVATED]: 'Ativo',\r\n [INACTIVATED]: 'Inativo',\r\n [CANCELED]: 'Cancelado',\r\n [SUSPENDED]: 'Suspensa',\r\n [EXPIRED]: 'Vencida',\r\n [INTRIAL]: 'Em período de teste',\r\n [PENDING]: 'Pendente',\r\n [IGNORED]: 'Ignorado',\r\n [RECONCILED]: 'Conciliado',\r\n [ACCEPTED]: 'Aceito',\r\n [RECEIPT]: 'Receita',\r\n [PAYMENT]: 'Despesa',\r\n [INITIALBALANCE]: 'Saldo inicial',\r\n [BILLETBANK]: 'Boleto',\r\n [CREDITCARD]: 'Cartão de crédito',\r\n [DEBITCARD]: 'Cartão de débito',\r\n [PAYPAL]: 'PayPal',\r\n [CASH]: 'Dinheiro',\r\n [BANKDEPOSIT]: 'Depósito bancário',\r\n [BANKTRANSFER]: 'TED / DOC',\r\n [BALANCEWALLETS]: 'Saldo na Carteira',\r\n [ELECTRONICTRANSFER]: 'Transferência eletrônica',\r\n [BANKCHECK]: 'Cheque',\r\n [PIX]: 'Pix',\r\n [OTHER]: 'Outra',\r\n [DIRECTDEBIT]: 'Débito em conta',\r\n [AVAILABLE]: 'Em aberto',\r\n [INCOMING]: 'Entrada',\r\n [OUTGOING]: 'Saída',\r\n\r\n [APPROXIMATETAXES_COMPLETE]: 'Completo',\r\n [APPROXIMATETAXES_SIMPLIFIED]: 'Simplificado',\r\n [CANCELLATION_REQUESTED]: 'Cancelamento solicitado',\r\n [NATIONAL]: 'Nacional',\r\n [STATE]: 'Estadual',\r\n [MUNICIPAL]: 'Municipal',\r\n [ACCOUNTANTS]: 'Contadores',\r\n BLOOD: {\r\n [APOSITIVE]: 'A+',\r\n [ANEGATIVE]: 'A-',\r\n [BPOSITIVE]: 'B+',\r\n [BNEGATIVE]: 'B-',\r\n [ABPOSITIVE]: 'AB+',\r\n [ABNEGATIVE]: 'AB-',\r\n [OPOSITIVE]: 'O+',\r\n [ONEGATIVE]: 'O'\r\n },\r\n WEEKDAYS: {\r\n sunday: 'Dom',\r\n monday: 'Seg',\r\n tuesday: 'Ter',\r\n wednesday: 'Qua',\r\n thursday: 'Qui',\r\n friday: 'Sex',\r\n saturday: 'Sáb'\r\n },\r\n USERTENANT_INVITATION_STATUS: {\r\n [PENDING]: 'Pendente',\r\n [ACCEPTED]: 'Ativo'\r\n },\r\n ROLES: {\r\n [ROLE_ADMIN]: 'Administrador',\r\n [ROLE_CLINIC_ADMINISTRATOR]: 'Administrador',\r\n [ROLE_PROFESSIONAL]: 'Médico',\r\n [ROLE_RECEPTIONIST]: 'Recepcionista',\r\n [ROLE_OTHER_HEALTH_PROFESSIONAL]: 'Profissional da saúde',\r\n [ROLE_STUDENT]: 'Estudante',\r\n [ROLE_FINANCIAL]: 'Financeiro',\r\n [ROLE_ACCOUNTANT]: 'Contador',\r\n [ROLE_PARTNERSHIP]: 'Parceiro',\r\n [ROLE_FINANCIAL_ADMINISTRATOR]: 'Adminstrador BPO',\r\n [ROLE_STOCK]: 'Estoque'\r\n },\r\n PROFILES: {\r\n [PROFILE_DOCTOR]: 'Médico',\r\n [PROFILE_ADMINISTRADOR]: 'Administrador',\r\n [PROFILE_OTHER]: 'Profissional da saúde',\r\n [PROFILE_RECEPTIONIST]: 'Recepcionista',\r\n [PROFILE_ACCOUNTANT]: 'Contador',\r\n [PROFILE_FINANCIAL]: 'Financeiro',\r\n [PROFILE_STUDENT]: 'Estudante',\r\n [PROFILE_USER]: 'Usuário',\r\n [PROFILE_PARTNERSHIP]: 'Parceiro(a)',\r\n [PROFILE_FINANCIAL_ADMINISTRATOR]: 'Adminstrador BPO'\r\n },\r\n PAYMENTMETHOD: {\r\n [CASH]: 'Dinheiro',\r\n [CREDITCARD]: 'Cartão de crédito',\r\n [DEBITCARD]: 'Cartão de débito',\r\n [BILLETBANK]: 'Boleto',\r\n [BANKCHECK]: 'Cheque',\r\n [PIX]: 'Pix',\r\n [BANKTRANSFER]: 'Transferência bancária',\r\n [OTHER]: 'Outros',\r\n [DIRECTDEBIT]: 'Débito em conta',\r\n [BANKDEPOSIT]: 'Depósito bancário',\r\n [ELECTRONICTRANSFER]: 'Transferência eletrônica',\r\n [BALANCEWALLETS]: 'Saldo da Carteira'\r\n },\r\n PAYMENT_METHOD_ABBR: {\r\n [CASH]: 'Dinheiro',\r\n [CREDITCARD]: 'Cartão CR',\r\n [DEBITCARD]: 'Cartão DB',\r\n [BILLETBANK]: 'Boleto',\r\n [BANKCHECK]: 'Cheque',\r\n [PIX]: 'Pix',\r\n [BANKTRANSFER]: 'Transferência',\r\n [OTHER]: 'Outros',\r\n [DIRECTDEBIT]: 'DB Conta',\r\n [BANKDEPOSIT]: 'Depósito',\r\n [ELECTRONICTRANSFER]: 'Transf. Eletrônica',\r\n [BALANCEWALLETS]: 'Saldo Carteira'\r\n },\r\n PATIENTPROCEDURESUITE: {\r\n [ACTIVATED]: 'Em aberto',\r\n [CONCLUDED]: 'Finalizado',\r\n [INACTIVATED]: 'Cancelado'\r\n },\r\n [CONCLUDED]: 'Concluído',\r\n [INPROGRESS]: 'Em progresso'\r\n};\r\n\r\nexport default display;\r\n","const fieldsDefault = {\r\n outKey: 'id',\r\n outLabel: 'name'\r\n};\r\n\r\nconst getNormalizedData = (object, fields) => {\r\n const { outKey, outLabel } = fields;\r\n return {\r\n [outKey]: object.key,\r\n [outLabel]: object.label\r\n };\r\n};\r\n\r\nconst normalizeFromSelect = (objects, fields = fieldsDefault) => {\r\n if (!objects) {\r\n return null;\r\n }\r\n\r\n if (Array.isArray(objects)) {\r\n return objects.map((c) => getNormalizedData(c, fields));\r\n }\r\n\r\n return getNormalizedData(objects, fields);\r\n};\r\n\r\nexport default normalizeFromSelect;\r\n","const fieldsDefault = {\r\n inputKey: 'id',\r\n inputLabel: 'name'\r\n};\r\n\r\nconst isFunction = (functionToCheck) => {\r\n return (\r\n functionToCheck && {}.toString.call(functionToCheck) === '[object Function]'\r\n );\r\n};\r\n\r\nconst getNormalizedData = (object, fields) => {\r\n const { inputKey, inputLabel } = fields;\r\n return {\r\n key: isFunction(inputKey) ? inputLabel(object) : object[inputKey],\r\n label: isFunction(inputLabel) ? inputLabel(object) : object[inputLabel],\r\n item: object\r\n };\r\n};\r\n\r\nconst normalizeToSelect = (objects, fields = fieldsDefault) => {\r\n if (!objects) {\r\n return null;\r\n }\r\n\r\n if (Array.isArray(objects)) {\r\n return objects.map((c) => getNormalizedData(c, fields));\r\n }\r\n\r\n return getNormalizedData(objects, fields);\r\n};\r\n\r\nexport default normalizeToSelect;\r\n","import moment from 'moment';\r\n\r\nconst convertIsoWeekdayForEnum = (number) => {\r\n switch (number) {\r\n case 1:\r\n return 'monday';\r\n case 2:\r\n return 'tuesday';\r\n case 3:\r\n return 'wednesday';\r\n case 4:\r\n return 'thursday';\r\n case 5:\r\n return 'friday';\r\n case 6:\r\n return 'saturday';\r\n case 7:\r\n return 'sunday';\r\n default:\r\n throw new Error('Not is IsoWeekday');\r\n }\r\n};\r\n\r\nconst getDayOfWeek = (date) => {\r\n return convertIsoWeekdayForEnum(moment(date).isoWeekday());\r\n};\r\n\r\nexport default getDayOfWeek;\r\n","import React, { useEffect } from 'react';\r\nimport { Select, Spin, Tag } from 'antd';\r\nimport debounce from 'lodash/debounce';\r\nimport { api, omit } from '@unicus/react-ui-kit';\r\nimport { CloseOutlined } from '@ant-design/icons';\r\n\r\nconst { Option } = Select;\r\n\r\nconst initialState = {\r\n data: [],\r\n cache: [],\r\n value: [],\r\n textSearched: '',\r\n fetching: false,\r\n open: false,\r\n pagination: {\r\n hasNextPage: true,\r\n currentPage: 0\r\n },\r\n loaded: false\r\n};\r\n\r\nclass RemoteSelect extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.lastFetchId = 0;\r\n this.handleSearch = debounce(this.fetchData, 800);\r\n this.fethOnMount = props.fethOnMount;\r\n this.state = { ...initialState };\r\n this.remoteSelect = React.createRef();\r\n }\r\n\r\n componentDidMount() {\r\n if (this.fethOnMount) {\r\n this.fetchData();\r\n }\r\n }\r\n\r\n shouldComponentUpdate(nextProps) {\r\n const { params } = this.props;\r\n const { params: nextParams } = nextProps;\r\n\r\n if (\r\n params !== nextParams &&\r\n JSON.stringify(params) !== JSON.stringify(nextParams)\r\n ) {\r\n this.lastFetchId = 0;\r\n this.setState((prevState) => ({\r\n ...prevState,\r\n ...initialState\r\n }));\r\n }\r\n\r\n return true;\r\n }\r\n\r\n fetchData = (value) => {\r\n const { pagination, loaded } = this.state;\r\n const {\r\n resource,\r\n params = {},\r\n sorting,\r\n defaultSorting = true,\r\n autoFocus,\r\n tenant,\r\n onFetching,\r\n onFetched,\r\n normalizeFromSelectLabel,\r\n defaultActiveFirstOption\r\n } = this.props;\r\n if (!pagination.hasNextPage) {\r\n return;\r\n }\r\n\r\n onFetching?.(value);\r\n\r\n this.setState({ fetching: true });\r\n this.lastFetchId += 1;\r\n const fetchId = this.lastFetchId;\r\n const queryParams = {\r\n filterText: value,\r\n page: pagination.currentPage + 1,\r\n sorting: sorting || (defaultSorting ? 'Name' : null),\r\n ...params\r\n };\r\n api.fetch(resource, queryParams, null, tenant).then((response = {}) => {\r\n const { data = { result: {} } } = response;\r\n if (fetchId !== this.lastFetchId) {\r\n return;\r\n }\r\n onFetched?.(data.result);\r\n const { totalCount = 0, items = [] } = data.result;\r\n const newItems = items.map((unit) => ({\r\n key: `${unit.id}`,\r\n label: normalizeFromSelectLabel\r\n ? normalizeFromSelectLabel(unit)\r\n : unit.name ?? unit.title,\r\n item: unit\r\n }));\r\n\r\n if (\r\n !loaded &&\r\n defaultActiveFirstOption &&\r\n newItems.length === 1 &&\r\n !this.props.value\r\n ) {\r\n const { onChange } = this.props;\r\n\r\n if (onChange) {\r\n onChange(newItems[0]);\r\n }\r\n }\r\n\r\n this.setState((prevState) => {\r\n const data =\r\n queryParams.page === 1 ? newItems : [...prevState.data, ...newItems];\r\n\r\n const cache = [...prevState.cache, ...data].filter(\r\n (value, index, self) =>\r\n self.map((c) => c.item.id).indexOf(value.item.id) === index\r\n );\r\n\r\n return {\r\n ...prevState,\r\n data,\r\n cache,\r\n fetching: false,\r\n open: this.lastFetchId === 1 ? autoFocus : prevState.open,\r\n textSearched: value,\r\n pagination: {\r\n hasNextPage:\r\n queryParams.page === 1\r\n ? newItems.length < totalCount\r\n : prevState.data.length + newItems.length < totalCount,\r\n currentPage: queryParams.page\r\n },\r\n loaded: true\r\n };\r\n });\r\n });\r\n };\r\n\r\n filterObjectByKey = (value, key) => {\r\n return key === String(value.id);\r\n };\r\n\r\n getObject = (key) => {\r\n const { cache } = this.state;\r\n const result = cache.filter((c) => this.filterObjectByKey(c.item, key));\r\n if (result.length === 1) {\r\n return result[0];\r\n }\r\n return null;\r\n };\r\n\r\n handleSelect = (object = {}) => {\r\n const { key } = object;\r\n const { onSelect } = this.props;\r\n\r\n if (!onSelect || !key) {\r\n return;\r\n }\r\n\r\n const objectSelected = this.getObject(key);\r\n onSelect(objectSelected.item);\r\n };\r\n\r\n onDeselect = (object = {}) => {\r\n const { key } = object;\r\n const { onDeselect } = this.props;\r\n if (!onDeselect || !key) {\r\n return;\r\n }\r\n const objectSelected = this.getObject(key);\r\n onDeselect(objectSelected?.item);\r\n };\r\n\r\n triggerChange = (object) => {\r\n const { onDeselect, onChange } = this.props;\r\n\r\n if (object) {\r\n this.handleSelect(object);\r\n } else if (onDeselect && !object) {\r\n onDeselect();\r\n }\r\n\r\n if (onChange) {\r\n if (Array.isArray(object)) {\r\n onChange(object.map((c) => this.getObject(c?.key)));\r\n return;\r\n }\r\n\r\n onChange(this.getObject(object?.key));\r\n }\r\n };\r\n\r\n handleOnSearch = (value) => {\r\n const { onSearch } = this.props;\r\n this.setState({ text: value });\r\n\r\n onSearch?.(value);\r\n this.setState({ pagination: { hasNextPage: true, currentPage: 0 } });\r\n\r\n if (this.state.open) {\r\n this.handleSearch(value);\r\n }\r\n };\r\n\r\n handleClear = () => {\r\n this.handleOnSearch(null);\r\n };\r\n\r\n handleDropdownVisibleChange = (visible) => {\r\n const { onDropdownVisibleChange } = this.props;\r\n\r\n if (visible && this.lastFetchId === 0) {\r\n this.fetchData();\r\n return;\r\n }\r\n\r\n this.setState({ open: visible });\r\n onDropdownVisibleChange?.(visible);\r\n };\r\n\r\n handleScroll = (event) => {\r\n const { textSearched } = this.state;\r\n const { target } = event;\r\n if (\r\n Math.ceil(target.scrollTop + target.offsetHeight) >= target.scrollHeight\r\n ) {\r\n this.fetchData(textSearched);\r\n }\r\n };\r\n\r\n blur() {\r\n this.remoteSelect.current.blur();\r\n }\r\n\r\n focus() {\r\n this.remoteSelect.current.focus();\r\n }\r\n\r\n reset() {\r\n this.lastFetchId = 0;\r\n this.setState((prevState) => ({\r\n ...prevState,\r\n ...initialState,\r\n cache: prevState.cache\r\n }));\r\n }\r\n\r\n add(item) {\r\n this.setState((prevState) => ({\r\n ...prevState,\r\n data: [...prevState.data, { key: item.id, label: item.name, item }],\r\n cache: [...prevState.cache, { key: item.id, label: item.name, item }]\r\n }));\r\n }\r\n\r\n getByKey(key) {\r\n return this.state.cache.find((c) => c.key === key)?.item;\r\n }\r\n\r\n addCaches(items) {\r\n this.setState((prevState) => ({\r\n ...prevState,\r\n cache: [\r\n ...prevState.cache,\r\n ...items.map((c) => ({ key: c.id, label: c.name, item: c }))\r\n ]\r\n }));\r\n }\r\n\r\n isEmpty() {\r\n return !this.state.fetching && this.state.data.length === 0;\r\n }\r\n\r\n triggerTagRender = (props) => {\r\n const { label, value, onClose } = props;\r\n\r\n if (this.props.tagRender) {\r\n const objectSelected = this.getObject(value);\r\n return this.props.tagRender(props, objectSelected?.item);\r\n }\r\n\r\n const onPreventMouseDown = (event) => {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n };\r\n\r\n return (\r\n
\r\n \r\n {label}\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n handleMaxTagPlaceholder = (values) => {\r\n const { maxTagPlaceholder } = this.props;\r\n return maxTagPlaceholder(values);\r\n };\r\n\r\n render() {\r\n const { fetching, data, open } = this.state;\r\n const {\r\n optionRender,\r\n placeholder,\r\n style,\r\n notFoundContent,\r\n customDropdownRender,\r\n maxTagPlaceholder,\r\n showSearch = true,\r\n filterOption = false,\r\n allowClear = true\r\n } = this.props;\r\n\r\n return (\r\n <>\r\n \r\n customDropdownRender ? (\r\n customDropdownRender({ menu, fetching })\r\n ) : (\r\n <>\r\n {menu}\r\n {fetching && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n )\r\n }\r\n onSearch={this.handleOnSearch}\r\n onDeselect={(item) => this.onDeselect(item)}\r\n style={style || { width: '100%' }}\r\n >\r\n {data.map((d) =>\r\n optionRender ? (\r\n optionRender(d)\r\n ) : (\r\n \r\n )\r\n )}\r\n \r\n \r\n );\r\n }\r\n}\r\nRemoteSelect.defaultProps = { fethOnMount: true };\r\nexport default RemoteSelect;\r\n","import { dispatcher, api, RESOURCE_CREATE } from '@unicus/react-ui-kit';\r\n\r\nexport const ATTENDANCE = 'ATTENDANCE';\r\nexport const ATTENDANCE_START_OR_STOP_SERVICE =\r\n 'ATTENDANCE_START_OR_STOP_SERVICE';\r\nexport const ATTENDANCE_START_OR_STOP_SERVICE_FINISHED =\r\n 'ATTENDANCE_START_OR_STOP_SERVICE_FINISHED';\r\n\r\nexport const ATTENDANCE_CREATE_PATIENT = 'ATTENDANCE_CREATE_PATIENT';\r\nexport const ATTENDANCE_CREATE_PATIENT_FINISHED =\r\n 'ATTENDANCE_CREATE_PATIENT_FINISHED';\r\n\r\nexport const ATTENDANCE_SET_EDIT_VALUES = 'ATTENDANCE_SET_EDIT_VALUES';\r\n\r\nexport const ATTENDANCE_UPDATE_ANSWER = 'ATTENDANCE_UPDATE_ANSWER';\r\nexport const ATTENDANCE_UPDATE_ANSWER_FINISHED =\r\n 'ATTENDANCE_UPDATE_ANSWER_FINISHED';\r\n\r\nexport const ATTENDANCE_UPDATE_DOCUMENT_FIELD =\r\n 'ATTENDANCE_UPDATE_DOCUMENT_FIELD';\r\nexport const ATTENDANCE_UPDATE_DOCUMENT_FIELD_FINISHED =\r\n 'ATTENDANCE_UPDATE_DOCUMENT_FIELD_FINISHED';\r\n\r\nexport const ATTENDANCE_CREATE_DOCUMENT_FIELD =\r\n 'ATTENDANCE_CREATE_DOCUMENT_FIELD';\r\nexport const ATTENDANCE_CREATE_DOCUMENT_FIELD_FINISHED =\r\n 'ATTENDANCE_CREATE_DOCUMENT_FIELD_FINISHED';\r\n\r\nexport const ATTENDANCE_DELETE_DOCUMENT_FIELD =\r\n 'ATTENDANCE_DELETE_DOCUMENT_FIELD';\r\nexport const ATTENDANCE_DELETE_DOCUMENT_FIELD_FINISHED =\r\n 'ATTENDANCE_DELETE_DOCUMENT_FIELD_FINISHED';\r\n\r\nexport const ATTENDANCE_CREATE_DOCUMENT = 'ATTENDANCE_CREATE_DOCUMENT';\r\nexport const ATTENDANCE_CLOSE_DOCUMENT = 'ATTENDANCE_CLOSE_DOCUMENT';\r\n\r\nexport const ATTENDANCE_CREATE_PRESCRIPTION_FIELD =\r\n 'ATTENDANCE_CREATE_PRESCRIPTION_FIELD';\r\nexport const ATTENDANCE_CREATE_PRESCRIPTION_FIELD_FINISHED =\r\n 'ATTENDANCE_CREATE_PRESCRIPTION_FIELD_FINISHED';\r\n\r\nexport const ATTENDANCE_DELETE_PRESCRIPTION_FIELD =\r\n 'ATTENDANCE_DELETE_PRESCRIPTION_FIELD';\r\nexport const ATTENDANCE_DELETE_PRESCRIPTION_FIELD_FINISHED =\r\n 'ATTENDANCE_DELETE_PRESCRIPTION_FIELD_FINISHED';\r\n\r\nexport const ATTENDANCE_UPDATE_PRESCRIPTION_FIELD =\r\n 'ATTENDANCE_UPDATE_PRESCRIPTION_FIELD';\r\nexport const ATTENDANCE_UPDATE_PRESCRIPTION_FIELD_FINISHED =\r\n 'ATTENDANCE_UPDATE_PRESCRIPTION_FIELD_FINISHED';\r\n\r\nexport const ATTENDANCE_CREATE_PRESCRIPTION = 'ATTENDANCE_CREATE_PRESCRIPTION';\r\nexport const ATTENDANCE_CLOSE_PRESCRIPTION = 'ATTENDANCE_CLOSE_PRESCRIPTION';\r\n\r\nexport const ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL =\r\n 'ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL';\r\nexport const ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL_FINISHED =\r\n 'ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL_FINISHED';\r\n\r\nexport const ATTENDANCE_PRESCRIPTION_INTEGRATION =\r\n 'ATTENDANCE_PRESCRIPTION_INTEGRATION';\r\nexport const ATTENDANCE_PRESCRIPTION_INTEGRATION_FINISHED =\r\n 'ATTENDANCE_PRESCRIPTION_INTEGRATION_FINISHED';\r\n\r\nexport const ATTENDANCE_GET_ANALYSIS = 'ATTENDANCE_GET_ANALYSIS';\r\nexport const ATTENDANCE_GET_ANALYSIS_FINISHED =\r\n 'ATTENDANCE_GET_ANALYSIS_FINISHED';\r\n\r\nexport const post = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: RESOURCE_CREATE,\r\n effect: async () => api.post('attendances', data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const postStartAndStop = (data, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: RESOURCE_CREATE,\r\n effect: async () => api.post('attendances/start-and-stop', data),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const setEditValues = (attendance) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n ATTENDANCE_SET_EDIT_VALUES,\r\n 'attendances',\r\n attendance\r\n )\r\n );\r\n};\r\n\r\nexport const stopService = (params, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_START_OR_STOP_SERVICE,\r\n effect: async () => api.put(`attendances/stop-service`, params),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createPatient = (id, params, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'patients',\r\n actionType: RESOURCE_CREATE,\r\n effect: async () => api.post(`attendances/${id}/patient`, params),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const updateAnswers = (section, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_UPDATE_ANSWER,\r\n payload: section,\r\n effect: async () => api.put(`attendances/save-answer`, section.fields),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createDocumentField = (params, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_CREATE_DOCUMENT_FIELD,\r\n payload: params,\r\n effect: async () => api.post(`attendances/document-field`, params),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createPrescriptionField = (\r\n params,\r\n saveAsModel = false,\r\n onSuccess\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_CREATE_PRESCRIPTION_FIELD,\r\n payload: params,\r\n effect: async () =>\r\n api.post(\r\n `attendances/prescription-field/?saveAsModel=${saveAsModel}`,\r\n params\r\n ),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const updateDocumentField = (params, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_UPDATE_DOCUMENT_FIELD,\r\n payload: params,\r\n effect: async () => api.put(`attendances/document-field`, params),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const deleteDocumentField = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_DELETE_DOCUMENT_FIELD,\r\n payload: id,\r\n effect: async () => api.del('attendances', `${id}/document-field`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createDocumentEdit = (initialValues) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n ATTENDANCE_CREATE_DOCUMENT,\r\n 'attendances',\r\n initialValues\r\n )\r\n );\r\n};\r\n\r\nexport const closeDocumentEdit = () => (dispatch) => {\r\n dispatch(dispatcher.createAction(ATTENDANCE_CLOSE_DOCUMENT, 'attendances'));\r\n};\r\n\r\nexport const createPrescriptionEdit = (initialValues) => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(\r\n ATTENDANCE_CREATE_PRESCRIPTION,\r\n 'attendances',\r\n initialValues\r\n )\r\n );\r\n};\r\n\r\nexport const closePrescriptionEdit = () => (dispatch) => {\r\n dispatch(\r\n dispatcher.createAction(ATTENDANCE_CLOSE_PRESCRIPTION, 'attendances')\r\n );\r\n};\r\n\r\nexport const deletePrescriptionField = (id, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_DELETE_PRESCRIPTION_FIELD,\r\n payload: id,\r\n effect: async () => api.del('attendances', `${id}/prescription-field`),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const updatePrescriptionField = (params, onSuccess) => async (\r\n dispatch\r\n) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_UPDATE_PRESCRIPTION_FIELD,\r\n payload: params,\r\n effect: async () => api.put(`attendances/prescription-field`, params),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const syncDigitalPrescription = (\r\n attendanceId,\r\n code,\r\n onSuccess\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_PRESCRIPTION_INTEGRATION,\r\n effect: async () =>\r\n api.post(\r\n `attendances/sync-digital-prescription?attendanceId=${attendanceId}&code=${code}`\r\n ),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const createIntegratedPrescription = (\r\n attendanceId,\r\n callbackUrl,\r\n onSuccess\r\n) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_PRESCRIPTION_REDIRECT_RECEITA_DIGITAL,\r\n effect: async () =>\r\n api.get(\r\n 'attendances',\r\n `url-new-prescription?attendanceid=${attendanceId}&callbackUrl=${callbackUrl}`\r\n ),\r\n onSuccess\r\n });\r\n};\r\n\r\nexport const fetchAnalysis = (params, onSuccess) => async (dispatch) => {\r\n await dispatcher.dispatchResouceAction({\r\n dispatch,\r\n resource: 'attendances',\r\n actionType: ATTENDANCE_GET_ANALYSIS,\r\n effect: async () => api.fetch('attendances/analysis', params),\r\n onSuccess\r\n });\r\n};\r\n"],"sourceRoot":""}