{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/react/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/Price.ts","webpack:///./common/react/loadable/loadableSettings.tsx","webpack:///./ClientApp/objects/User.ts","webpack:///delegated ./node_modules/react-redux/es/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/Pet.ts","webpack:///./node_modules/tslib/tslib.es6.js","webpack:///external \"vendor_6db2768e310fdac9ffc1\"","webpack:///delegated ./node_modules/formik/dist/formik.esm.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/extends.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/store/SelectList/SelectsInterfaces.ts","webpack:///./node_modules/antd/lib/grid/index.js","webpack:///./ClientApp/utilities/RoutePathVars.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Services.ts","webpack:///delegated ./node_modules/yup/index.esm.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/@ant-design/icons/es/components/Context.js","webpack:///./node_modules/rc-util/es/Dom/shadow.js","webpack:///./node_modules/@ant-design/icons/es/utils.js","webpack:///./node_modules/@ant-design/icons/es/components/IconBase.js","webpack:///./node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js","webpack:///./node_modules/@ant-design/icons/es/components/AntdIcon.js","webpack:///delegated ./node_modules/react-router-dom/esm/react-router-dom.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/StatusOrderFunction.ts","webpack:///delegated ./node_modules/clsx/dist/clsx.mjs from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/Forms/FormikInput/FormikInput.tsx","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/defineProperty.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/button/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/utilities/alert.ts","webpack:///./ClientApp/store/ItemList.ts","webpack:///delegated ./node_modules/antd/lib/space/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Api.ts","webpack:///./ClientApp/components/Utils/Utils.ts","webpack:///delegated ./node_modules/redux/es/redux.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/select/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/hooks/useRequest.ts","webpack:///./node_modules/@react-dnd/invariant/dist/index.js","webpack:///delegated ./node_modules/classnames/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/Crematory.ts","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/interopRequireDefault.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Forms/FormikField.tsx","webpack:///./ClientApp/components/UI/Status/PetStatusButton.tsx","webpack:///delegated ./node_modules/@babel/runtime/helpers/interopRequireWildcard.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/list/index.js","webpack:///./common/react/components/Pages/PrivateRoute.tsx","webpack:///./common/typescript/objects/Nullable.ts","webpack:///./ClientApp/hooks/useCrematory.ts","webpack:///./ClientApp/store/SelectList/ListActions.ts","webpack:///./node_modules/dayjs/dayjs.min.js","webpack:///./ClientApp/store/SelectList/SelectList.ts","webpack:///./common/react/components/Api/index.ts","webpack:///./ClientApp/objects/Invoice.ts","webpack:///./node_modules/@sentry/utils/esm/is.js","webpack:///./common/react/components/UI/Loading/Loading.tsx","webpack:///delegated ./node_modules/@babel/runtime/helpers/extends.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/utilities/validators.ts","webpack:///./common/react/utils/color.ts","webpack:///./common/react/components/UI/Image/Image.tsx","webpack:///./common/react/utils/decorators.ts","webpack:///./ClientApp/objects/Inventory.ts","webpack:///./ClientApp/store/Item.ts","webpack:///./ClientApp/components/Layout/Stack.tsx","webpack:///delegated ./node_modules/@babel/runtime/helpers/defineProperty.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/alert/index.js","webpack:///./common/react/components/Forms/SimpleSearchInput/SimpleSearchInput.tsx","webpack:///./common/react/components/UI/LinkWithPrevLocation/LinkWithPrevLocation.tsx","webpack:///./common/react/components/Pages/ItemsPage.tsx","webpack:///./common/react/components/Modal/Modal.ts","webpack:///delegated ./node_modules/antd/lib/table/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/checkbox/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/NumberField/NumberField.tsx","webpack:///./ClientApp/objects/StoreEntry.ts","webpack:///delegated ./node_modules/antd/lib/config-provider/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Inputs/CoreSelect.tsx","webpack:///./common/typescript/objects/WithName.ts","webpack:///./ClientApp/images/no_image.jpg","webpack:///./ClientApp/components/UI/Status/StatusModal/StatusModalController.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer.tsx","webpack:///delegated ./node_modules/@babel/runtime/helpers/typeof.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/History.ts","webpack:///./node_modules/@sentry/utils/esm/misc.js","webpack:///./ClientApp/smart components/Tracker/TrackChange.tsx","webpack:///./common/react/utils/Helpers/TableBuilder.tsx","webpack:///./ClientApp/store/SelectList/SelectListRequests.ts","webpack:///./ClientApp/objects/Permission.ts","webpack:///./ClientApp/components/UI/Status/StatusModal/ModalButtons.tsx","webpack:///./node_modules/@sentry/utils/esm/object.js","webpack:///delegated ./node_modules/@babel/runtime/helpers/slicedToArray.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/typescript/objects/Lang.ts","webpack:///./common/react/store/Login.ts","webpack:///./ClientApp/objects/TriggerStatus.ts","webpack:///delegated ./node_modules/antd/lib/input/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/UI/AlertMessage/AlertMessage.tsx","webpack:///./ClientApp/hooks/Editors/useModal.ts","webpack:///./ClientApp/objects/SpecialService.ts","webpack:///./ClientApp/services/RoleManager.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/KitServiceTable.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/SpecialServiceList.tsx","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/components/Context.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/utils.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/components/IconBase.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js","webpack:///./ClientApp/services/AddressService.ts","webpack:///./ClientApp/objects/Clinic.ts","webpack:///./node_modules/antd/es/_util/type.js","webpack:///./ClientApp/components/UI/ValueDisplay/ValueDisplay.tsx","webpack:///./ClientApp/utilities/services.ts","webpack:///./ClientApp/InnerRoute.tsx","webpack:///./ClientApp/UserDependantRoute.tsx","webpack:///./ClientApp/components/UI/Modal/Modal.tsx","webpack:///delegated ./node_modules/antd/lib/popover/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/modal/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/typeof.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/DeliveryType.ts","webpack:///./ClientApp/objects/EmailLog.ts","webpack:///./ClientApp/components/UI/Cards/Card.tsx","webpack:///./ClientApp/components/UI/Inputs/PhoneInput.tsx","webpack:///delegated ./node_modules/antd/lib/input/TextArea.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/Forms/Button.tsx","webpack:///./ClientApp/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModalComponents/StoreEntriesItemList.tsx","webpack:///./ClientApp/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModalComponents/ItemField.tsx","webpack:///./ClientApp/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModal.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/Services.ts","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/react-i18next/dist/es/useTranslation.js","webpack:///delegated ./node_modules/antd/lib/input/Search.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/typescript/utils/entity.ts","webpack:///./node_modules/antd/lib/typography/index.js","webpack:///./ClientApp/hooks/useCrematoryFeatures.ts","webpack:///delegated ./node_modules/antd/lib/_util/warning.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/ControlLabel/ControlLabel.tsx","webpack:///./common/typescript/objects/WithRemoved.ts","webpack:///./common/typescript/Utils.ts","webpack:///delegated ./node_modules/antd/lib/menu/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/DefaultInfo.tsx","webpack:///./node_modules/react-i18next/dist/es/utils.js","webpack:///./ClientApp/objects/DemoRequest.ts","webpack:///delegated ./node_modules/@ctrl/tinycolor/dist/module/public_api.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/tag/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/_util/reactNode.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/UI/TabsWithUrl/TabsWithUrl.tsx","webpack:///delegated ./node_modules/antd/lib/pagination/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@hot-loader/react-dom/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/typescript/objects/List.ts","webpack:///./ClientApp/objects/Adjustment.ts","webpack:///./common/typescript/utils/enums.ts","webpack:///./common/typescript/utils/url.ts","webpack:///delegated ./node_modules/rc-util/es/raf.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/@sentry/utils/esm/string.js","webpack:///./ClientApp/components/UI/Views/DateFormat/DateView.tsx","webpack:///./ClientApp/components/UI/Inputs/LocalSelect.tsx","webpack:///./ClientApp/hooks/useCountry.ts","webpack:///delegated ./node_modules/antd/lib/divider/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Views/TimeView/TimeView.tsx","webpack:///delegated ./node_modules/rc-util/es/omit.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/CrematoryUserCounter.ts","webpack:///./common/typescript/objects/FileInterface.ts","webpack:///./ClientApp/hooks/Delivery/useDeliveryTypes.ts","webpack:///./ClientApp/objects/LabelPaper.ts","webpack:///./ClientApp/store/CrematoryFeatures.ts","webpack:///./node_modules/antd/es/config-provider/DisabledContext.js","webpack:///./node_modules/antd/es/space/Compact.js","webpack:///delegated ./node_modules/rc-util/es/warning.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/PetHistoryChangeComponents/PetDiffs.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/PetHistoryChangeComponents/PriceDiffs.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/PetHistoryChangeComponents/UrnDiffs.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/ChangeRenderHandler.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/EnumRenderHandler.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/KeyManager.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/NumberRenderHandler.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/CamelCaseRenderHandler.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/OldPetHistoryChange.tsx","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/es/Dom/dynamicCSS.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/utilities/units.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/index.ts","webpack:///./ClientApp/components/UI/List/List.tsx","webpack:///delegated ./node_modules/antd/lib/empty/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/createClass.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/Inventory/StoreEntries/StoreEntryEditor/StockPreview/TreeUtils.ts","webpack:///delegated ./node_modules/@babel/runtime/helpers/objectSpread2.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/lib/components/AntdIcon.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/objects/BatchAction.ts","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/es/_util/reactNode.js","webpack:///./common/react/components/ServiceContainer.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/SpecialServiceDialog.tsx","webpack:///./common/react/components/Forms/Datepicker/Datepicker.tsx","webpack:///delegated ./node_modules/rc-util/es/KeyCode.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/Api/Wrappers.ts","webpack:///./common/react/store/Item.ts","webpack:///./ClientApp/store/DeliveryTypes.ts","webpack:///./ClientApp/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/calculations.ts","webpack:///delegated ./node_modules/rc-util/es/ref.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/@sentry/utils/esm/node.js","webpack:///./common/typescript/utils/immutability.ts","webpack:///./common/react/store/ItemList.ts","webpack:///./node_modules/react-i18next/dist/es/unescape.js","webpack:///./node_modules/react-i18next/dist/es/context.js","webpack:///./ClientApp/hooks/PaginationManager/PaginationManager.ts","webpack:///./ClientApp/hooks/RemoteDataProvider/RemoteDataProvider.tsx","webpack:///./ClientApp/components/UI/Modal/DeleteConfirmation.tsx","webpack:///./ClientApp/components/UI/Views/DateView/DateView.tsx","webpack:///delegated ./node_modules/antd/lib/dropdown/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/tooltip/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Inputs/ClinicSelect.tsx","webpack:///./ClientApp/components/UI/Inputs/Address/RegionSelect.tsx","webpack:///./ClientApp/components/UI/Inputs/Address/PostalCodeAutocomplete.tsx","webpack:///./ClientApp/components/UI/Inputs/CrematorySelect.tsx","webpack:///./common/react/components/Utils/Utils.ts","webpack:///delegated ./node_modules/antd/lib/tabs/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/lib/Children/toArray.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js","webpack:///./node_modules/use-composed-ref/dist/use-composed-ref.esm.js","webpack:///./node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js","webpack:///./node_modules/use-latest/dist/use-latest.esm.js","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Controls/TextAreaComponent.tsx","webpack:///./node_modules/@ant-design/colors/es/generate.js","webpack:///./node_modules/@ant-design/colors/es/presets.js","webpack:///./node_modules/antd/es/form/context.js","webpack:///./ClientApp/components/Pages/ClinicPetEditor/ClinicPetsComponents/Preview.tsx","webpack:///delegated ./node_modules/webpack/buildin/global.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Status/StatusChangeComponent.tsx","webpack:///./ClientApp/utilities/naturalLanguage.ts","webpack:///./node_modules/antd/lib/typography/Base/index.js","webpack:///./ClientApp/services/OnScrollManager.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/OldPetEmailLog.tsx","webpack:///./ClientApp/hooks/Delivery/useDeliveryManager.ts","webpack:///./node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/PaperClipOutlined.js","webpack:///./common/react/components/Forms/Upload/FilePreview.tsx","webpack:///./node_modules/@loadable/component/dist/esm/loadable.esm.mjs","webpack:///./common/react/components/Api/Request.ts","webpack:///./common/react/components/Forms/Upload/UploadList.tsx","webpack:///./common/react/components/Forms/Files/Upload.ts","webpack:///./ClientApp/components/UI/Status/SpecialServicesList.tsx","webpack:///./ClientApp/objects/Quickbooks.ts","webpack:///./ClientApp/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/UrnProviders.tsx","webpack:///./common/react/components/Api/Fetch.ts","webpack:///./common/react/components/Api/RequestError.ts","webpack:///./node_modules/react-hot-loader/index.js","webpack:///./ClientApp/store/PetTriggers.ts","webpack:///delegated ./node_modules/react-router/esm/react-router.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Header/Title.tsx","webpack:///./common/react/components/Forms/Upload/UploadProgress.tsx","webpack:///./common/react/components/Forms/Upload/UploadFile.tsx","webpack:///./common/react/components/Forms/Upload/UploadFilePlaceholder.tsx","webpack:///./node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.js","webpack:///delegated ./node_modules/antd/lib/modal/Modal.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/ServiceIndexProvider.tsx","webpack:///./node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js","webpack:///delegated ./node_modules/antd/node_modules/rc-picker/es/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Select/SelectProps.tsx","webpack:///./node_modules/antd/lib/breadcrumb/index.js","webpack:///delegated ./node_modules/rc-util/es/hooks/useLayoutEffect.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/services/query/Query.ts","webpack:///./node_modules/@sentry/utils/esm/stacktrace.js","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/UrnSelectionPreview.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/UrnForm.tsx","webpack:///./node_modules/antd/es/_util/raf.js","webpack:///./node_modules/antd/es/_util/wave.js","webpack:///./common/react/utils/validationHelpers.ts","webpack:///./ClientApp/components/UI/Filters/FilterHook.tsx","webpack:///./ClientApp/components/UI/Select/Option.tsx","webpack:///./ClientApp/images/icons/index.ts","webpack:///delegated ./node_modules/@babel/runtime/helpers/classCallCheck.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/createClass.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-motion/es/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/message/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/store/CrematoryUserDashboard.ts","webpack:///delegated ./node_modules/antd/lib/grid/hooks/useBreakpoint.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/_util/responsiveObserve.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/spin/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/lib/ref.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/ExclamationCircleFilled.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/Crematories/CrematoryApi.tsx","webpack:///delegated ./node_modules/rc-util/lib/KeyCode.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/es/config-provider/SizeContext.js","webpack:///./node_modules/antd/es/button/button-group.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js","webpack:///./node_modules/antd/es/button/LoadingIcon.js","webpack:///./node_modules/antd/es/button/button.js","webpack:///./node_modules/antd/es/button/index.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/CalendarOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/icons/CalendarOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.js","webpack:///./node_modules/antd/es/locale-provider/context.js","webpack:///./node_modules/antd/node_modules/rc-picker/es/locale/en_US.js","webpack:///./node_modules/antd/es/time-picker/locale/en_US.js","webpack:///./node_modules/antd/es/date-picker/locale/en_US.js","webpack:///./node_modules/antd/es/locale/default.js","webpack:///./node_modules/antd/es/locale-provider/default.js","webpack:///./node_modules/rc-pagination/es/locale/en_US.js","webpack:///./node_modules/antd/es/calendar/locale/en_US.js","webpack:///./node_modules/antd/es/locale-provider/LocaleReceiver.js","webpack:///./node_modules/antd/es/_util/statusUtils.js","webpack:///./node_modules/antd/es/date-picker/util.js","webpack:///./node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js","webpack:///./node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js","webpack:///./node_modules/antd/es/date-picker/generatePicker/index.js","webpack:///./node_modules/antd/es/date-picker/PickerButton.js","webpack:///./node_modules/antd/es/date-picker/PickerTag.js","webpack:///./common/react/components/Forms/Pickers/DatePicker.ts","webpack:///./common/react/components/Forms/Pickers/TimePicker.tsx","webpack:///./common/react/components/Pages/ItemEditor.tsx","webpack:///./node_modules/antd/lib/typography/Text.js","webpack:///./node_modules/dayjs/plugin/customParseFormat.js","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/es/_util/colors.js","webpack:///./ClientApp/internationalization/en-us/schema.ts","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/ForceStatusForm.tsx","webpack:///./ClientApp/components/Pages/PetEditor/HistoryChangeList.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetStatusHistory.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/schemas.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/SpecialServiceSection.tsx","webpack:///./ClientApp/components/UI/Inputs/PickupServicePricesSelect.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/OwnerInfoSection.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/DeliverySection.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/PetInfoSection.tsx","webpack:///./node_modules/@ant-design/icons-svg/es/asn/BankOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/BankOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/PercentageOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/PercentageOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/DollarOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/DollarOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/SignatureOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/SignatureOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/ThunderboltOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/ThunderboltOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/ShoppingCartOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/ShoppingCartOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/CompassOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/CompassOutlined.js","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Displays/PriceTagDisplay.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/PetEditorHeader.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/TopSection.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Displays/WhySpecial.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/TagStack.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/ClinicSection.tsx","webpack:///./ClientApp/components/Utils/Prices/Helpers.ts","webpack:///./ClientApp/services/pricing/ExistingPriceStack.ts","webpack:///./ClientApp/services/pricing/filters/PriceFilter.ts","webpack:///./ClientApp/services/pricing/CalculatedPriceStack.ts","webpack:///./ClientApp/services/pricing/PricingManager.ts","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/DocumentsSection/DocumentsSection.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/PetTrackChange.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Editor.tsx","webpack:///delegated ./node_modules/domain-task/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/query-string/index.js","webpack:///./node_modules/@react-dnd/asap/dist/makeRequestCall.js","webpack:///./node_modules/@sentry/utils/esm/browser.js","webpack:///./node_modules/uuid/dist/esm-browser/rng.js","webpack:///./node_modules/uuid/dist/esm-browser/regex.js","webpack:///./node_modules/uuid/dist/esm-browser/stringify.js","webpack:///./node_modules/uuid/dist/esm-browser/validate.js","webpack:///./node_modules/uuid/dist/esm-browser/v4.js","webpack:///./ClientApp/components/UI/Container/Container.tsx","webpack:///./ClientApp/objects/Route.ts","webpack:///./ClientApp/components/UI/Inputs/LocalSelectOptions.ts","webpack:///./common/react/components/Messages/MessageComponent.tsx","webpack:///./ClientApp/components/UI/Select/Select.tsx","webpack:///./common/react/components/Pages/EditableItemsPage.tsx","webpack:///./ClientApp/components/Pages/ItemsPage.tsx","webpack:///delegated ./node_modules/antd/lib/notification/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/LinedText/LinedText.tsx","webpack:///./ClientApp/components/UI/Inputs/DeliveryTypes/DeliveryTypeSelect.tsx","webpack:///./ClientApp/components/UI/Buttons/ResourceButton.tsx","webpack:///delegated ./node_modules/react-helmet/es/Helmet.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/hooks/useDebounce.ts","webpack:///./ClientApp/images/logo.png","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/inherits.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/store/Login.ts","webpack:///delegated ./node_modules/antd/lib/radio/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/toConsumableArray.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Inputs/PetBreedSelect.tsx","webpack:///./node_modules/antd/lib/input-number/index.js","webpack:///./ClientApp/components/Utils/DataProvider.tsx","webpack:///./ClientApp/components/UI/Inputs/PetSpecieSelect.tsx","webpack:///./ClientApp/store/UserPreferences/UserPreferences.ts","webpack:///./ClientApp/components/Pages/ItemEditor.tsx","webpack:///delegated ./node_modules/rc-resize-observer/es/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/lib/omit.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/locale-provider/LocaleReceiver.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Inputs/DeliveryTypes/DeliveryEntitySelect.tsx","webpack:///delegated ./node_modules/rc-util/es/Children/toArray.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/result/index.js","webpack:///./common/react/store/Comments.ts","webpack:///./ClientApp/store/DashboardCounters.ts","webpack:///./ClientApp/store/LocalStoreState.ts","webpack:///delegated ./node_modules/antd/lib/_util/type.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/skeleton/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/services/debug.ts","webpack:///./ClientApp/utilities/functionUtils.ts","webpack:///./ClientApp/components/UI/Inputs/DiscountSelect.tsx","webpack:///./ClientApp/components/UI/Inputs/GenderSelect.tsx","webpack:///./ClientApp/components/UI/Header/PageHeaders/BackButton.tsx","webpack:///./ClientApp/objects/Location.ts","webpack:///delegated ./node_modules/antd/lib/progress/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/DownOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/Forms/Upload/ModalPreview.tsx","webpack:///./common/react/components/Forms/Files/FileWall.tsx","webpack:///./ClientApp/components/Forms/Thumbnail.tsx","webpack:///./ClientApp/components/Forms/PictureWall.tsx","webpack:///./node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.js","webpack:///./ClientApp/components/UI/Status/StatusComponent.tsx","webpack:///./ClientApp/hooks/useUserLocalPreferenses.ts","webpack:///./ClientApp/components/Pages/Clinics/ClinicTabs/Invoices/InvoiceEditor/InvoiceEditorComponents/FormFields.tsx","webpack:///./ClientApp/store/NotLogged.ts","webpack:///./ClientApp/routes.tsx","webpack:///./common/react/utils/configureSignarR.ts","webpack:///./node_modules/antd/lib/grid/RowContext.js","webpack:///./ClientApp/images/icons/user.svg","webpack:///./ClientApp/images/icons/edit.svg","webpack:///./ClientApp/images/icons/gender.svg","webpack:///./ClientApp/images/icons/color.svg","webpack:///./ClientApp/images/icons/weight.svg","webpack:///./ClientApp/images/icons/calendar.svg","webpack:///./ClientApp/images/icons/fish.svg","webpack:///./ClientApp/images/icons/qr-code.svg","webpack:///./ClientApp/images/icons/phone.svg","webpack:///./ClientApp/images/icons/letter.svg","webpack:///./ClientApp/images/icons/house.svg","webpack:///./ClientApp/images/icons/dog.svg","webpack:///./ClientApp/images/icons/cat.svg","webpack:///./ClientApp/images/icons/unicorn.svg","webpack:///./ClientApp/images/icons/qr-code-table.svg","webpack:///./ClientApp/images/icons/rush.svg","webpack:///./ClientApp/images/icons/hold.svg","webpack:///./ClientApp/images/icons/map-pin.svg","webpack:///./ClientApp/images/icons/allans-rush.svg","webpack:///./ClientApp/images/icons/allans-onhold.svg","webpack:///./common/react/images/avatar.jpg","webpack:///delegated ./node_modules/prop-types/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/react/jsx-runtime.js","webpack:///delegated ./node_modules/process/browser.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/components/Forms/ScrollToError.tsx","webpack:///./node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js","webpack:///./ClientApp/components/UI/SelectableList/SelectableRadioList.tsx","webpack:///./node_modules/antd/lib/avatar/avatar.js","webpack:///./node_modules/antd/lib/avatar/SizeContext.js","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/CheckCircleFilled.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/CloseCircleFilled.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/UI/Status/StatusModal/index.tsx","webpack:///delegated ./node_modules/rc-util/lib/hooks/useLayoutEffect.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/lib/hooks/useMergedState.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/typography/Typography.js","webpack:///delegated ./node_modules/react-text-mask/dist/reactTextMask.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/node_modules/@ant-design/icons/es/icons/CloseOutlined.js","webpack:///./ClientApp/components/UI/Inputs/LocationSelect.tsx","webpack:///./ClientApp/utilities/address.ts","webpack:///delegated ./node_modules/antd/lib/upload/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/DefaultUrnProvider.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/ProductsSection.tsx","webpack:///./ClientApp/components/Pages/PetEditor/ProductsModal.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/DocumentsSection/UploadDocuments.tsx","webpack:///delegated ./node_modules/webpack/buildin/harmony-module.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/PetEditor/BatchComponent.tsx","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditor/Components/Sections/ProcessSection.tsx","webpack:///./common/react/components/Forms/Autocomplete/Autocomplete.tsx","webpack:///./common/react/utils/guards.ts","webpack:///./ClientApp/components/Various/Pet/EngravingList.tsx","webpack:///./ClientApp/hooks/useMemoAsync.ts","webpack:///./ClientApp/hooks/StoreEntry/useStoreEntry.ts","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/UrnSelection.tsx","webpack:///delegated ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/redux-thunk/es/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/history/esm/history.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./common/react/images/no_image.jpg","webpack:///./node_modules/react-dnd/dist/core/DndContext.js","webpack:///delegated ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/Crematories/CrematoryClinics.tsx","webpack:///delegated ./node_modules/antd/lib/pagination/Pagination.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/avatar/index.js","webpack:///./ClientApp/components/UI/Status/StatusModal/ModalContent.tsx","webpack:///delegated ./node_modules/antd/lib/auto-complete/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/popconfirm/index.js","webpack:///./node_modules/rc-picker/lib/generate/dayjs.js","webpack:///./node_modules/dayjs/plugin/utc.js","webpack:///./node_modules/dayjs/plugin/localizedFormat.js","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/colors/dist/index.esm.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/lodash/camelCase.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-field-form/es/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/card/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/es/isMobile.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./ClientApp/components/Pages/PetEditor/OldPetEditorTabs/OldPetEditorTabs.tsx","webpack:///./node_modules/@sentry/utils/esm/memo.js","webpack:///./node_modules/i18next-resources-to-backend/dist/umd/i18nextResourcesToBackend.js","webpack:///./node_modules/react-dnd-html5-backend/dist/utils/js_utils.js","webpack:///./node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js","webpack:///./node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js","webpack:///./node_modules/react-dnd-html5-backend/dist/NativeTypes.js","webpack:///./node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js","webpack:///./node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js","webpack:///./node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js","webpack:///./node_modules/react-dnd-html5-backend/dist/BrowserDetector.js","webpack:///./node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js","webpack:///./node_modules/react-dnd-html5-backend/dist/OffsetUtils.js","webpack:///./node_modules/react-dnd-html5-backend/dist/OptionsReader.js","webpack:///./node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js","webpack:///./node_modules/react-dnd-html5-backend/dist/index.js","webpack:///./common/react/components/SignalR/SignalR.tsx","webpack:///./common/react/yupLocaleSettings.ts","webpack:///./ClientApp/components/ServiceContainer.ts","webpack:///./node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/MenuOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/BellOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/BellOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/UpOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/UpOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/DownOutlined.js","webpack:///./common/react/objects/BaseUser.ts","webpack:///./ClientApp/components/UI/Buttons/Logout.tsx","webpack:///./ClientApp/components/UI/Header/BugReportModal.tsx","webpack:///./ClientApp/components/UI/Header/MenuActionsDropdown.tsx","webpack:///./ClientApp/components/UI/Header/UserComponent.tsx","webpack:///./ClientApp/components/UI/Header/HeaderRoleDetails/InfoHeader.tsx","webpack:///./ClientApp/components/UI/Header/HeaderRoleDetails/ClinicInfoHeader.tsx","webpack:///./ClientApp/components/UI/Header/HeaderRoleDetails/DetailsList.ts","webpack:///./ClientApp/components/UI/Header/ClinicHeader.tsx","webpack:///./ClientApp/components/UI/SidePanel/MenuItems.ts","webpack:///./ClientApp/components/UI/SidePanel/VersionPanel.tsx","webpack:///./ClientApp/components/UI/Header/Header.tsx","webpack:///./ClientApp/components/UI/Menu.tsx","webpack:///./ClientApp/components/UI/SidePanel/SidePanel.tsx","webpack:///./ClientApp/components/UI/BodyLayout/BodyLayout.tsx","webpack:///./ClientApp/components/UI/Footer/Footer.tsx","webpack:///./ClientApp/components/Layout.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/WeightForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/SpecialServicesForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/BatchForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/HistoryChangeForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/TrackingForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/InternalIdForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContentComponents/ProductForm.tsx","webpack:///./ClientApp/components/UI/Status/StatusModal/SpecificContent.tsx","webpack:///./node_modules/antd/es/tag/CheckableTag.js","webpack:///./node_modules/antd/es/tag/index.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/PlusOutlined.js","webpack:///delegated ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/getPrototypeOf.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/@babel/runtime/helpers/inherits.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/button/button.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/locale/default.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/config-provider/defaultRenderEmpty.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/CloseOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/CheckOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/_util/transButton.js","webpack:///delegated ./node_modules/antd/lib/config-provider/DisabledContext.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/config-provider/SizeContext.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/form/context.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/_util/statusUtils.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/raf/polyfill.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/array/from.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/array/find.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/array/includes.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/set/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/map/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/weak-map/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/promise/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/url/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/core-js/features/url-search-params/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/react-hot-loader/dist/react-hot-loader.production.min.js","webpack:///./node_modules/antd/lib/grid/col.js","webpack:///./node_modules/antd/lib/grid/row.js","webpack:///delegated ./node_modules/antd/lib/_util/hooks/useFlexGapSupport.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/strict-uri-encode/index.js","webpack:///./node_modules/decode-uri-component/index.js","webpack:///./node_modules/split-on-first/index.js","webpack:///./node_modules/filter-obj/index.js","webpack:///delegated ./node_modules/bootstrap/dist/css/bootstrap.css from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack:///delegated ./node_modules/object-assign/index.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/list/Item.js","webpack:///./node_modules/antd/lib/avatar/group.js","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/CheckCircleOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/CloseCircleOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/ExclamationCircleOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/InfoCircleFilled.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/node_modules/@ant-design/icons/InfoCircleOutlined.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/_util/getDataOrAriaProps.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/alert/ErrorBoundary.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/CopyOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/lib/icons/CopyOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/lib/asn/CopyOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/EditOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/lib/icons/EditOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/lib/asn/EditOutlined.js","webpack:///./node_modules/copy-to-clipboard/index.js","webpack:///./node_modules/toggle-selection/index.js","webpack:///delegated ./node_modules/antd/lib/_util/styleChecker.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/typography/Editable.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/EnterOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/lib/icons/EnterOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/lib/asn/EnterOutlined.js","webpack:///./node_modules/antd/lib/typography/hooks/useMergedConfig.js","webpack:///./node_modules/antd/lib/typography/hooks/useUpdatedEffect.js","webpack:///./node_modules/antd/lib/typography/Base/Ellipsis.js","webpack:///./node_modules/antd/lib/typography/Base/EllipsisTooltip.js","webpack:///./node_modules/antd/lib/typography/Link.js","webpack:///./node_modules/antd/lib/typography/Paragraph.js","webpack:///./node_modules/antd/lib/typography/Title.js","webpack:///./node_modules/antd/lib/popconfirm/PurePanel.js","webpack:///delegated ./node_modules/antd/lib/_util/ActionButton.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/antd/lib/_util/getRenderPropValue.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///delegated ./node_modules/rc-util/lib/warning.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/dayjs/plugin/weekday.js","webpack:///./node_modules/dayjs/plugin/localeData.js","webpack:///./node_modules/dayjs/plugin/weekOfYear.js","webpack:///./node_modules/dayjs/plugin/weekYear.js","webpack:///./node_modules/dayjs/plugin/advancedFormat.js","webpack:///./node_modules/antd/lib/breadcrumb/Breadcrumb.js","webpack:///./node_modules/antd/lib/breadcrumb/BreadcrumbItem.js","webpack:///delegated ./node_modules/antd/lib/dropdown/dropdown.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/lib/breadcrumb/BreadcrumbSeparator.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/UpOutlined.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/lib/icons/UpOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/lib/asn/UpOutlined.js","webpack:///delegated ./node_modules/antd/lib/space/Compact.js from dll-reference vendor_6db2768e310fdac9ffc1","webpack:///./node_modules/antd/node_modules/@ant-design/icons/WarningFilled.js","webpack:///./node_modules/antd/node_modules/@ant-design/icons/lib/icons/WarningFilled.js","webpack:///./node_modules/@ant-design/icons-svg/lib/asn/WarningFilled.js","webpack:///./node_modules/antd/lib/result/noFound.js","webpack:///./node_modules/antd/lib/result/serverError.js","webpack:///./node_modules/antd/lib/result/unauthorized.js","webpack:///./ClientApp/internationalization lazy ^\\.\\/.*\\/schema\\.ts$ namespace object","webpack:///./node_modules/@sentry/core/esm/integrations/functiontostring.js","webpack:///./node_modules/@sentry/utils/esm/syncpromise.js","webpack:///./node_modules/@sentry/hub/esm/scope.js","webpack:///./node_modules/@sentry/utils/esm/logger.js","webpack:///./node_modules/@sentry/types/esm/session.js","webpack:///./node_modules/@sentry/hub/esm/session.js","webpack:///./node_modules/@sentry/hub/esm/hub.js","webpack:///./node_modules/@sentry/core/esm/integrations/inboundfilters.js","webpack:///./node_modules/@sentry/utils/esm/polyfill.js","webpack:///./node_modules/@sentry/utils/esm/error.js","webpack:///./node_modules/@sentry/utils/esm/dsn.js","webpack:///./node_modules/@sentry/core/esm/integration.js","webpack:///./node_modules/@sentry/core/esm/baseclient.js","webpack:///./node_modules/@sentry/types/esm/status.js","webpack:///./node_modules/@sentry/core/esm/transports/noop.js","webpack:///./node_modules/@sentry/types/esm/severity.js","webpack:///./node_modules/@sentry/core/esm/basebackend.js","webpack:///./node_modules/@sentry/utils/esm/supports.js","webpack:///./node_modules/@sentry/browser/esm/tracekit.js","webpack:///./node_modules/@sentry/browser/esm/parsers.js","webpack:///./node_modules/@sentry/browser/esm/eventbuilder.js","webpack:///./node_modules/@sentry/core/esm/request.js","webpack:///./node_modules/@sentry/core/esm/api.js","webpack:///./node_modules/@sentry/utils/esm/promisebuffer.js","webpack:///./node_modules/@sentry/browser/esm/transports/base.js","webpack:///./node_modules/@sentry/browser/esm/transports/fetch.js","webpack:///./node_modules/@sentry/browser/esm/transports/xhr.js","webpack:///./node_modules/@sentry/browser/esm/backend.js","webpack:///./node_modules/@sentry/minimal/esm/index.js","webpack:///./node_modules/@sentry/browser/esm/helpers.js","webpack:///./node_modules/@sentry/utils/esm/instrument.js","webpack:///./node_modules/@sentry/browser/esm/integrations/breadcrumbs.js","webpack:///./node_modules/@sentry/browser/esm/client.js","webpack:///./node_modules/@sentry/browser/esm/version.js","webpack:///./node_modules/@sentry/browser/esm/integrations/trycatch.js","webpack:///./node_modules/@sentry/browser/esm/integrations/globalhandlers.js","webpack:///./node_modules/@sentry/browser/esm/integrations/linkederrors.js","webpack:///./node_modules/@sentry/browser/esm/integrations/useragent.js","webpack:///./node_modules/@sentry/browser/esm/sdk.js","webpack:///./node_modules/@sentry/core/esm/sdk.js","webpack:///./common/react/configureStore.ts","webpack:///./common/react/services/BootManager.tsx","webpack:///./common/react/errors/MissingStoreError.ts","webpack:///./common/react/services/StoreProvider.ts","webpack:///./common/react/errors/ClientSideError.ts","webpack:///./common/react/errors/DOMError.ts","webpack:///./common/react/services/HistoryProvider.ts","webpack:///./common/react/store/index.ts","webpack:///./ClientApp/store/CrematoryPreferences.ts","webpack:///./ClientApp/store/index.ts","webpack:///./common/react/components/UI/ErrorBoundary/ErrorBoundary.tsx","webpack:///./ClientApp/components/UI/ErrorBoundary/SentryErrorBoundary.tsx","webpack:///./node_modules/i18next/dist/esm/i18next.js","webpack:///./ClientApp/smart components/InternationalizationController.tsx","webpack:///./ClientApp/internationalization/init.ts","webpack:///./ClientApp/boot-client.tsx","webpack:///./ClientApp/services/BootManager.tsx","webpack:///./node_modules/rc-input-number/es/utils/supportUtil.js","webpack:///./node_modules/rc-input-number/es/utils/numberUtil.js","webpack:///./node_modules/rc-input-number/es/utils/MiniDecimal.js","webpack:///./node_modules/rc-input-number/es/StepHandler.js","webpack:///./node_modules/rc-input-number/es/InputNumber.js","webpack:///./node_modules/rc-input-number/es/hooks/useCursor.js","webpack:///./node_modules/rc-input-number/es/hooks/useFrame.js","webpack:///./node_modules/rc-input-number/es/index.js","webpack:///./node_modules/antd/es/config-provider/context.js","webpack:///./node_modules/@ant-design/icons/es/icons/CloseOutlined.js","webpack:///./node_modules/dnd-core/dist/utils/js_utils.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/types.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/drop.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/endDrag.js","webpack:///./node_modules/dnd-core/dist/utils/matchesType.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/hover.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js","webpack:///./node_modules/dnd-core/dist/classes/DragDropManagerImpl.js","webpack:///./node_modules/dnd-core/dist/actions/dragDrop/index.js","webpack:///./node_modules/dnd-core/dist/utils/coords.js","webpack:///./node_modules/dnd-core/dist/utils/dirtiness.js","webpack:///./node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js","webpack:///./node_modules/@react-dnd/asap/dist/RawTask.js","webpack:///./node_modules/@react-dnd/asap/dist/asap.js","webpack:///./node_modules/@react-dnd/asap/dist/AsapQueue.js","webpack:///./node_modules/@react-dnd/asap/dist/TaskFactory.js","webpack:///./node_modules/dnd-core/dist/actions/registry.js","webpack:///./node_modules/dnd-core/dist/contracts.js","webpack:///./node_modules/dnd-core/dist/interfaces.js","webpack:///./node_modules/dnd-core/dist/utils/getNextUniqueId.js","webpack:///./node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js","webpack:///./node_modules/dnd-core/dist/utils/equality.js","webpack:///./node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js","webpack:///./node_modules/dnd-core/dist/reducers/dragOffset.js","webpack:///./node_modules/dnd-core/dist/reducers/dragOperation.js","webpack:///./node_modules/dnd-core/dist/reducers/refCount.js","webpack:///./node_modules/dnd-core/dist/reducers/stateId.js","webpack:///./node_modules/dnd-core/dist/reducers/index.js","webpack:///./node_modules/dnd-core/dist/createDragDropManager.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/EyeOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/DeleteOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/UserOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/UserOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/LeftOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/CommentOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/CommentOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/FolderOpenOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/FolderOpenOutlined.js","webpack:///./node_modules/react-dnd/dist/core/DndProvider.js","webpack:///./node_modules/react-i18next/dist/es/withTranslation.js","webpack:///./node_modules/@ant-design/icons/es/icons/RightOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/LoadingOutlined.js","webpack:///./node_modules/@sentry/utils/esm/time.js","webpack:///./node_modules/dom-helpers/esm/removeClass.js","webpack:///./node_modules/react-transition-group/esm/config.js","webpack:///./node_modules/react-transition-group/esm/TransitionGroupContext.js","webpack:///./node_modules/react-transition-group/esm/utils/reflow.js","webpack:///./node_modules/react-transition-group/esm/Transition.js","webpack:///./node_modules/react-transition-group/esm/CSSTransition.js","webpack:///./node_modules/dom-helpers/esm/addClass.js","webpack:///./node_modules/dom-helpers/esm/hasClass.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/LogoutOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/LogoutOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/EditOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/EditOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/EnvironmentOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/EnvironmentOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/MailOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/MailOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/StarFilled.js","webpack:///./node_modules/@ant-design/icons/es/icons/StarFilled.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/StarTwoTone.js","webpack:///./node_modules/@ant-design/icons/es/icons/StarTwoTone.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/RestOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/RestOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/TruckOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/TruckOutlined.js","webpack:///./node_modules/@ant-design/icons-svg/es/asn/FilePdfOutlined.js","webpack:///./node_modules/@ant-design/icons/es/icons/FilePdfOutlined.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","installedModules","installedCssChunks","88","__webpack_require__","exports","module","l","e","promises","Promise","resolve","reject","href","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","head","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","s","PriceKind","PriceType","DiscountType","getPriceTypeName","priceType","All","Wholesale","Retail","getPriceKindName","priceKind","BasePrice","SpecialServicePrice","PickupPrice","DeliveryPrice","UrnPrice","ProductPrice","Discount","Engraving","RushFee","getDefaultPrice","crematoryId","id","description","unit","Value","clinic","clinicId","crematory","serviceType","ServiceType","Communal","deliveryType","deliveryEntityId","inventoryItem","inventoryItemId","petSpecie","petSpecieId","specialService","specialServiceId","pickupServiceId","batchCount","batchPrice","isDefault","extra","from","to","order","maxSize","loadableDelay","catch","promiseErr","ms","val","params","fallback","React","Loading","getParams","componentName","_objectSpread","resolveComponent","UserRole","userRoleName","role","SystemService","IntegrationService","Admin","ClinicUser","ClinicManager","Crematory","CrematoryUser","getUserName","user","firstName","lastName","email","concat","getDefaultUser","avatar","originalAvatar","localeUserPreferences","status","transmuted","banned","crematories","inventoryNotifications","unviewedMessagesCount","unviewedNotificationsCount","clinicUserPreferences","activeCrematory","activeCrematoryId","permissions","specialServices","statuses","pureEnum","DeliveryType","DeliveryTypeName","PetSource","HasIssues","WeightSource","PetOnHold","getServiceTypeName","isSpecial","arguments","isAustralia","rush","Private","SemiPrivate","Storage","ProductsOnly","getDeliveryTypeName","HomeDropOff","VetDropOff","Clinic","Mail","Pickup","None","getDefaultClinicPet","clinicLocationId","clinicLocation","deliveryClinicId","engraving","reportedWeight","color","genderId","gender","petBreed","petBreedId","isMixed","petSource","Internal","ownerFirstName","ownerLastName","ownerPhone","ownerEmail","noAshes","services","specialInstructions","discountId","discount","onHold","isEditable","deliveryTypeId","deliveryAddress","deliveryAddress2","deliveryCity","deliveryStateId","deliveryZip","deliveryState","internalIdNum","files","getDefaultPet","ownerAddress","ownerAddress2","ownerCity","ownerState","ownerStateId","ownerZip","ownerPhone2","ownerNotes","clinicName","urns","products","actualWeight","ashesWeight","createdDate","Date","getTime","receivedDate","currentStatus","currentStatusId","deliveryClinic","invoice","invoiceId","initStatus","phone","userId","vet","spreadLat","spreadLong","notes","batchActionId","batchAction","batchMachineLocation","invoiceSummary","servicesTotal","productsTotal","deliveryTotal","subTotal","serviceTax","serviceTaxPercentage","productTax","productTaxPercentage","total","FormType","filterServices","filter","q","_q$price","price","specialServiceType","SpecialServiceType","Kit","Service","shouldUpdateEngraving","available","item","removed","updateEngraving","valid","_toConsumableArray","index","findIndex","map","idx","needUpdateEngraving","availablePrices","prefillEngraving","extendStatics","b","setPrototypeOf","__proto__","Array","__extends","__","this","constructor","__assign","assign","apply","__rest","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__values","iterator","next","done","TypeError","__read","ar","__spread","vendor_6db2768e310fdac9ffc1","isEmpty","search","areEqual","a","includes","isEqualClinic","_a$crematories","_b$crematories","isCustomer","isEqualCrematory","isEqual","isEqualPetBreeds","isEqualUrn","parentId","isEqualUrnCategory","isEqualInventoryParentsCategory","_a$category","_b$category","category","isEqualRegions","country","isEqualProduct","_a$category2","_b$category2","availableForClinic","availableForCrematory","isEqualSpecialServices","_a$specialServiceType","_b$specialServiceType","isEqualPickupServices","availableForPricing","isEqualInventoryItem","_a$category3","_b$category3","isEqualAdjustmentCode","isEqualMeasuringUnit","isEqualCountry","isEqualLanguage","isEqualUser","isEqualRoute","isEmptyValue","isArray","defaultOrder","sort","isPickDefault","items","defaultFilters","defaultClinicFilters","defaultPetBreedsFilters","defaultUrnsFilters","defaultUrnCategoriesFilters","defaultRegionsFilters","defaultProductsFilters","defaultInventoryItemsFilters","defaultDiscountsFilters","defaultLabelPapersFilters","template","_interopRequireDefault","_col","_row","_useBreakpoint","useBreakpoint","RoutePaths","admin","clinics","clinicList","invoiceList","routeList","clinicEditor","clinicPreferences","crematoryList","crematoryEditor","chemicalsTableBuilder","userList","userEditor","crematoryUsers","crematoryUserEditor","apiKeys","complaints","carriers","backgroundServices","discounts","dashboard","petSpecies","petBreeds","pickupServices","inventoryTemplate","invoiceEditor","routeEditor","prices","statusesList","measuringUnits","profile","registration","confirm","recover","login","pets","petList","petEditor","batchList","batchEditor","apiImportDetails","inventory","adjustmentList","inventoryItemList","purchaseOrderList","purchaseOrderEditor","storeEntries","storeEntryEditor","petListStatusDetails","petListSpecialServiceDetails","pickupReports","reportsList","averageTurnAround","averageTurnAroundDetails","incomeReport","urnReport","clinicInvoiceReport","requestItems","labelPaperEditor","complaintEditor","quickbooks","customerList","quickbooksItemList","quickbooksItemEditor","countriesEditor","getPath","root","replace","getPathWithParams","pathName","substring","lastIndexOf","toCreateMessage","values","_values$engraving","_values$carrierId","_values$trackingNumbe","_allServices$map","allServices","fileId","Math","max","carrierId","trackingNumber","priceId","nodeId","count","note","toUpdateMessage","userRole","_values$services","_values$engraving2","_values$carrierId2","_values$trackingNumbe2","service","_service$removed","objectId","text","deleted","updateServices","recalculatePrice","iKey","updateSpecialServiceKit","_i$price","parent","completed","_c$price","_parent$price","reduce","prev","cur","condition","isClinic","_value$attribute","valueId","attribute","clinicCanPick","getUrnSegments","record","_record$node","entry","node","tree","find","path","attributes","flatMap","_values$find","v","isPresent","getUrnFullName","segments","unshift","join","timeoutCode","setId","removeKey","diffs","array","diff","origin","update","changes","getShallowChanges","servicesDiff","getArrayChanges","engravingDiff","filesDiff","getRoot","ele","_ele$getRootNode","getRootNode","getShadowRoot","ShadowRoot","inShadow","camelCase","input","match","g","toUpperCase","isIconDefinition","theme","icon","normalizeAttrs","attrs","keys","acc","className","class","getSecondaryColor","primaryColor","normalizeTwoToneColors","twoToneColor","_excluded","twoToneColorPalette","secondaryColor","calculated","props","eleRef","_useContext","csp","prefixCls","mergedStyleStr","onClick","style","restProps","svgRef","colors","shadowRoot","current","prepend","attachTo","generate","rootProps","children","child","width","height","fill","ref","displayName","getTwoToneColors","setTwoToneColors","_ref","setTwoToneColor","_normalizeTwoToneColo","_normalizeTwoToneColo2","primary","Icon","spin","rotate","tabIndex","_React$useContext","Context","_React$useContext$pre","rootClassName","classString","iconTabIndex","svgStyle","msTransform","transform","getTwoToneColor","FunctionsGroup","StatusFunction","statusOrderFunctionDescriptions","_defineProperty","_statusOrderFunctionD","PickupReport","BatchAction","DropOffReport","MarkAtClinic","MarkAtCrematory","MarkDelivered","RequireManualChange","InvoiceDate","CoordinateBatch","TurnAroundDelivered","TurnAroundPickup","ConditionalManualChange","defaultRender","inputProps","field","Input","_extends","defaultErrorComponent","FormikInput","_ref2","fieldProps","_ref2$containerClassN","containerClassName","_ref2$render","render","title","inputId","_ref2$showValidateAft","showValidateAfterSubmit","_ref2$ErrorComponent","ErrorComponent","form","errorMessage","submitCount","ErrorMessage","msg","isError","errors","clsx","htmlFor","MessageType","alertMessage","notification","placement","bindItemsActionCreators","dispatch","bindActionCreators","baseGetActionCreators","getItemsReducer","storageName","getReducer","state","signal","baseRequest","dateFormat","phoneMask","split","phoneFormat","FILE_INFO_MESSAGE","ViewMode","formatPhone","_phone$replace2","toLowerCase","toWords","trim","formatDate","date","formatOptions","_formatOptions$view","_formatOptions$withTi","_formatOptions$withWe","_formatOptions$fallba","options","formatDateOptions","view","withTime","withWeekDay","time","hour12","hour","minute","year","month","day","weekday","toLocaleDateString","dayjs","isDayjs","toDate","isMobile","innerWidth","getDatesDiff","startOf","isTablet","isDesktop","getFiltersDate","subtract","valueOf","convertDate","getColor","Yup","integer","moreThan","required","colorTags","daysDiff","elm","days","getDateRange","res","list","isList","encodeSearchParams","parsedParams","toString","JSON","stringify","arrayFormat","decodeSearchParams","parse","parseNumbers","isJsonObject","filterObject","obj","getPageFilters","filters","filterKeys","getSideFilters","transformSorter","sorter","column","caption","direction","SortingDirection","Descending","Ascending","defaultConfig","requestOnMount","cancelOnUnmount","toResponseError","ResponseError","defaultAbortReason","useRequest","endpoint","config","_React$useState","_React$useState2","_slicedToArray","setItem","_React$useState3","_React$useState4","loading","setLoading","_React$useState5","_React$useState6","setError","_React$useState7","_React$useState8","setCode","controller","cancel","_controller$current","reason","abort","load","_controller$current2","abortController","AbortController","wrapDomain","idempotencyToken","aborted","content","reload","invariant","format","args","process","argIndex","framesToPop","StatusFlowPolicy","WeightUnits","CrematoryType","TaxPolicy","policy","DisallowSkipping","AllowSkipping","barColor","communal","specialPetColor","petColor","semiPrivate","private","storage","getDefaultCrematoryServiceTypePreferences","useServiceType","showInternalId","requireInternalId","retailRequiresUrn","wholesaleRequiresUrn","retailStatusFlowPolicy","wholesaleStatusFlowPolicy","defaultRetailDeliveryType","defaultWholesaleDeliveryType","defaultRetailDeliveryTypeEntityId","defaultWholesaleDeliveryTypeEntityId","getDefaultCrematory","externalToken","requestToken","contactFirstName","contactLastName","billingEmail","webUrl","streetAddress","streetAddress2","city","stateId","zip","tagIcon","originalTagIcon","inventoryNotificationTime","clinicInbox","receiveClinicMails","languageId","language","countryId","timeFormat","importClinicId","importClinic","retailServiceTax","retailProductTax","wholesaleServiceTax","wholesaleProductTax","taxId","wholesaleTaxPolicy","TaxExcluded","retailTaxPolicy","weightSource","ReportedWeight","alwaysRaiseModal","billingId","clinicCanUploadFiles","units","weight","Pounds","showPricesToClinic","productsOnly","crematoryType","Cremation","manageStock","invoiceTaxModel","InvoiceTaxModel","TaxPerItem","reduceName","Kilograms","getWeightUnitName","weightUnit","getUnitName","UseServiceType","defaultUsesCrematoryServiceType","useCommunal","usePrivate","useSemiPrivate","useStorage","useProductsOnly","useCrematoryServiceType","useCrematory","getServiceTypePreferenceKind","FormikField","_props$containerClass","containerClass","Field","fieldName","PromoteDirection","PromoteResponseCode","PetStatusButton","Button","PD_NEXT","disabled","_interopRequireWildcard","ListContext","ListConsumer","_toConsumableArray2","_extends2","_defineProperty2","_slicedToArray2","_typeof2","_classnames","_configProvider","_defaultRenderEmpty","_grid","_pagination","_spin","_responsiveObserve","_Item","createContext","Consumer","List","_a","_a$pagination","pagination","customizePrefixCls","_a$bordered","bordered","_a$split","itemLayout","loadMore","grid","_a$dataSource","dataSource","size","header","footer","_a$loading","rowKey","renderItem","locale","rest","paginationObj","useState","defaultCurrent","paginationCurrent","setPaginationCurrent","defaultPageSize","paginationSize","setPaginationSize","useContext","ConfigContext","getPrefixCls","renderEmpty","triggerPaginationEvent","eventName","page","pageSize","onPaginationChange","onPaginationShowSizeChange","loadingProp","spinning","isLoading","sizeCls","paginationProps","largestPage","ceil","paginationContent","onChange","onShowSizeChange","splitDataSource","splice","needResponsive","some","screens","currentBreakpoint","useMemo","responsiveArray","breakpoint","colStyle","columnCount","maxWidth","childrenContent","minHeight","Fragment","renderInnerItem","Row","gutter","Children","renderEmptyHandler","emptyText","renderEmptyFunc","paginationPosition","position","contextValue","Provider","Item","connect","Component","component","_ref$redirectPath","redirectPath","_objectWithoutProperties","Route","Redirect","useDispatch","useSelector","_state$login$user","currentCrematoryId","RoleManager","for","isAdmin","selects","factory","getActionCreators","selectListRequest","useEffect","TypeKeys","isListAction","action","str","REQUESTITEMS","RECEIVEITEMS","REQUESTMOREITEMS","RECEIVEMOREITEMS","RECEIVEERROR","UPDATEITEM","DELETEITEM","RESETSTORE","paramsOrPreselect","_paramsOrPreselect$co","_typeof","preselect","series","store","_ref$key","GeneralKey","fail","payload","other","getStore","_params$count","getSelectItemState","requestId","newFilters","otherParams","offset","loadMoreItems","delete","refresh","_params$count2","resetStore","u","f","h","$","y","M","weekdays","months","ordinal","String","z","utcOffset","abs","floor","clone","add","w","D","Q","S","_","O","$L","utc","$u","x","$x","$offset","$d","NaN","test","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","isSame","endOf","isAfter","isBefore","$g","set","unix","$locale","weekStart","$set","min","daysInMonth","Number","round","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","toJSON","toISOString","toUTCString","k","forEach","extend","$i","en","Ls","RootKey","getStateInitial","isSelectListState","initialList","clinicTypes","urnCategories","regions","pickupServicePrices","inventoryItems","adjustmentCodes","countries","languages","users","routes","labelPapers","inventoryParents","machines","serviceTypes","selectListReducer","result","listStoreReducer","newState","_action$key","_state$key","_state$key2","selectListStateReducer","task","coreRequest","wrapError","DueDate","InvoiceTerms","InvoiceStatus","getDateByTerms","terms","start","now","DueOnReceipt","Net15","Net30","Custom","getDefaultInvoice","dueDate","startDate","endDate","guid","number","transformArrayToList","Open","adjustments","dirty","quickbooksInvoice","basePriceTotal","productPriceTotal","urnPriceTotal","specialServicePriceTotal","deliveryPriceTotal","pickupFeesTotal","adjustmentPriceTotal","productTaxTotal","serviceTaxTotal","wat","isInstanceOf","isErrorEvent","isDOMError","isDOMException","isString","isPrimitive","isPlainObject","isEvent","Event","isElement","Element","isRegExp","isThenable","Boolean","isSyntheticEvent","base","_e","_ref$className","_ref$caption","toValidationFunction","schema","validate","abortEarly","inner","idValidator","validationMessage","typeError","stringValidator","emailValidator","query","phoneValidator","specialCode","nullable","original","matches","positiveNumberValidator","positive","enumValidator","stringToColor","string","hash","charCodeAt","getAcronym","ImageComponent","alt","setPath","fallbackName","setFallbackName","onError","noImage","backgroundColor","onErrorCapture","member","propertyKey","descriptor","bound","ItemCategory","group","UrnCategory","ProductCategory","isGroup","CategoryColor","Chemical","Urn","Product","getName","defaultItem","fullName","quantity","lowerLimit","measuringUnit","measuringUnitId","storeNode","storeEntryVariants","getDefaultItem","_parent$id","_parent$measuringUnit","onChangeCategoryFilter","ids","onFilterValue","formatName","getItemActionCreators","bindItemActionCreators","getItemReducer","StackDirection","getStyle","gap","flexDirection","flexWrap","reverse","Stack","defaultProps","Vertical","LayoutItem","span","fluid","entries","_CheckCircleFilled","_CheckCircleOutlined","_CloseCircleFilled","_CloseCircleOutlined","_CloseOutlined","_ExclamationCircleFilled","_ExclamationCircleOutlined","_InfoCircleFilled","_InfoCircleOutlined","_rcMotion","_getDataOrAriaProps","_reactNode","_ErrorBoundary","iconMapFilled","success","info","warning","iconMapOutlined","IconNode","iconType","replaceElement","CloseIcon","isClosable","closeText","closeIcon","handleClose","Alert","banner","_a$className","onMouseEnter","onMouseLeave","afterClose","showIcon","closable","_a$closeIcon","closed","setClosed","useRef","onClose","getType","isShowIcon","alertCls","dataOrAriaProps","visible","motionName","motionAppear","motionEnter","onLeaveStart","maxHeight","offsetHeight","onLeaveEnd","motionClassName","motionStyle","ErrorBoundary","SimpleSearchInput","_React$Component","_this","_classCallCheck","_callSuper","defaultValue","handleChange","clearField","onKeyPress","_inherits","nextProps","nextState","evt","setState","currentTarget","onSubmit","fakeTarget","submitOnClear","withoutForm","buttonRef","click","_this$props","placeholder","buttonType","_this$props$container","withRouter","location","staticContext","history","prevPath","pathname","Link","MobileCell","_ref$children","_ref$fullWidth","fullWidth","ExtendableItemsPage","renderActionButtons","dataIndex","renderMobileCell","whiteSpace","idColumn","handleTableChange","handleDelete","handleFilter","handleUrl","handleAdd","handleChangeAndRefresh","updateParams","updateItem","onItemsLoaded","onItemsError","onTableRow","_createClass","withoutUrlPagination","currentPage","withUrlHandling","searchObj","parseQuery","additionalParams","customUrlHandler","actions","reqPages","prevProps","parseInt","callback","_this2","preventDefault","removeItem","Modal","okText","okType","cancelText","onOk","editorPath","refreshPages","listTemplatePath","url","generatePath","listPath","_this3","isLast","_ref2$currentTarget","_evt$currentTarget","emptyValues","nPage","_this$props$items","Table","columns","childrenColumnName","tableClassName","onRow","editorCaption","_this4","LinkWithPrevLocation","editor","renderButtons","renderCaption","isFilterText","getFiltersRender","renderTable","ItemsPage","_ExtendableItemsPage2","NumberField","_props$value$toString","_props$value","stateValue","setStateValue","_props$value$toString2","_props$value2","currentValue","isNumberFormat","parseFloat","isNaN","onBlur","_props$onBlur","num","getMin","getSubTree","selection","stack","_loop","pop","toTree","Option","Select","OptGroup","defaultGetter","isWithName","selectOnLeaveHandler","_event","KeyboardEvent","keyCode","bubbles","dispatchEvent","useSelect","_props$allowClear","debounce","useDebounce","_props$onSearch","onSearch","reqProps","_props$storeKey","creatorProps","storeKey","noPreselect","shouldFetch","reqParams","usePreselect","shouldPickDefault","multiple","pickDefault","useDefault","_props$storeKey2","fetch","useLoadMore","active","_props$isEmptyValue2","focused","setFocus","_props$isEmptyValue","isActive","useActive","_props$storeKey3","_props$localOptions","_props$order","newOrder","_newOrder2","localOptions","_newOrder","label","_props$getDisabledOpt","getDisabledOption","useOptions","properties","showSearch","showArrow","allowClear","showAction","onSelect","_props$onSearch2","_props$onSelect","onDeselect","_props$onDeselect","onPopupScroll","getLoadableScrollHandler","onFocus","_props$onFocus","_props$onSearch3","onInputKeyDown","optionFilterProp","filterOption","selectClassName","activeClassName","CoreSelect","StatusModalController","context","StatusModalContext","modal","SectionContainer","useTranslation","titleLocalizationKey","Space","display","PromoteStatusAction","DiffAction","fallbackGlobalObject","getGlobalObject","global","self","uuid4","crypto","msCrypto","getRandomValues","arr","Uint16Array","pad","random","parseUrl","fragment","host","protocol","relative","getEventDescription","exception","event_id","consoleSandbox","originalConsole","wrappedLevels","level","__sentry_original__","addExceptionTypeValue","addExceptionMechanism","mechanism","_oO","getLocationHref","oO","parseRetryAfterHeader","headerDelay","headerDate","TrackChange","ignoreMount","track","TableBuilder","baseColumn","addColumn","isEdit","handleInputSubmit","handleInputCancel","handleInput","withEdit","withDelete","Permission","activePermission","permission","ModalButtons","isSubmitting","useFormikContext","justifyContent","margin","danger","htmlType","source","replacementFactory","wrapped","defineProperties","_Oo","urlEncode","encodeURIComponent","getWalkSource","event_1","CustomEvent","detail","jsonSize","encodeURI","utf8Length","normalizeToSize","depth","serialized","normalize","normalizeValue","_events","walk","memo","Infinity","normalized","serializeValue","memoize","innerKey","unmemoize","extractExceptionKeysForMessage","maxLength","includedKeys","dropUndefinedKeys","e_1","rv","_b","_c","e_1_1","return","Lang","getDefaultState","session","debug","lang","En","userAgent","password","getState","initObject","RECEIVELOGIN","REQUESTLOGIN","logoff","clearState","updatedSession","RECEIVELOGOFF","CLEARSTATE","REQUESTLOGOFF","updateUser","UPDATEUSER","setUserAndSession","setLang","SETLANG","SETSESSION","TriggerEvent","TriggerAction","AlertType","AlertMessage","Primary","Secondary","Success","Danger","Warning","Info","Light","Dark","toClassName","useModal","defaultOpen","open","close","_role","oneOf","shape","align","editorId","build","KitServiceTable","serviceKits","hideOnSinglePage","getPriceValue","_price$batchCount","_price$batchPrice","_price$value","perItem","getColumns","ServiceIndexProvider","clientId","_form$errors$services","_form$touched$service","meta","touched","cls","completedCount","_ref3","_record$price","hasNote","_ref4","_form$errors$services2","_form$touched$service2","_ref5","_ref6","setFieldValue","DeleteOutlined","pickSelection","getKits","_record$price2","getPetPrice","_i$specialService","_record$price3","petId","expendedProps","expandedRowRender","rowExpandable","_record$price4","SpecialServiceList","_values$services$filt","_values$services2","_values$services3","setSelection","PlusOutlined","SpecialServiceDialog","onChangeSelection","iconStyles","styleStr","addressService","provide","alpha3","getCaption","mailKey","regionKey","taxKey","withMail","withRegion","Customer","getDefaultClinic","clinicUsers","clinicCrematories","locations","canPutOnRush","canPutOnHold","canSetDeliveryType","defaultPrivateDeliveryType","defaultSemiPrivateDeliveryType","defaultCommunalDeliveryType","clinicType","clinicTypeId","ApplyFilter","tuple","_len","_key","ValueDisplay","Typography","Text","strong","getNewServicesArray","changedArray","changed","unchanged","changedItem","getCurrentServices","pet","_pet$services","_status$specialServic","_service$price","specialServicesIds","_service$price2","restorePrices","updated","InnerRoute","allowRoles","isAllowed","Page","Title","UserDependantRoute","_state$login$user$rol","dependantComponents","ModalWrapper","_props$okText","_props$cancelText","isOpened","_props$confirmLoading","confirmLoading","onCancel","_props$footer","isDialogOpened","setDialogOpened","closeDialog","destroyOnClose","okButtonProps","modalClassName","SystemDeliveryType","toName","toDeliveryType","entity","bridge","systemType","toSystemType","EmailType","MailStatus","ClickableType","CardSize","getInteraction","Telephone","Email","getClickable","aria-label","getCardFields","fields","clickableType","Popover","QuestionCircleOutlined","ListComponent","titleClass","bold","Pagination","_props$pagination","textAlign","CardContent","cardContentClassname","Card","_props$link","cardWrapperClassname","edit","twoColumns","withBtn","btnCaption","getHeader","viewContent","editContent","link","australiaCode","PhoneInput","_props$phoneCode","phoneCode","isSpecialCode","phoneCodeRef","tel","startsWith","MaskedInput","mask","_ref$disabled","CoreButton","sorterPrices","getPrice","_sorterPrices","toFixed","StoreEntriesItemList","_crematory$showPrices","onLoadMore","onSelectStore","storeEntry","scrollRef","OnScrollManager","groups","special","default","toEntryGroups","onScroll","hasMore","Spin","Divider","orientation","newStoreEntry","Meta","ItemField","cost","ControlLabel","isClinicGroup","_options$find","option","marginLeft","LocalSelect","candidates","deselectType","filterName","onModalOk","setValue","_storeEntry$cost","sanitizeTreeLinks","toSelect","isSelect","itemId","newProductPetPrice","_item$cost","v4","tax","pickupService","getNewPetPrice","getData","allowAdd","whitelist","getImage","getPriceWarning","StoreEntriesUrnModal","_listRequest$item3","_listRequest$item$cou","_listRequest$item4","_storeEntry$storeEntr","_storeEntry$count","modalControl","setQuery","setOffset","setStoreEntry","_React$useState10","setList","listRequest","storeEntryRequest","onLoadAttributes","storeEntryId","_res$tree$find","valuesId","attributeId","_i$valueId","storeId","_listRequest$item$lis","_listRequest$item","_listRequest$item$lis2","_listRequest$item2","uniq","Set","calculate","Search","padding","enterButton","_list$length","_price$value2","_selection$id","ownKeys","enumerableOnly","symbols","sym","getOwnPropertyDescriptor","getOwnPropertyDescriptors","usePrevious","ignore","i18nFromProps","i18n","i18nFromContext","defaultNSFromContext","defaultNS","reportNamespaces","notReadyT","retNotReady","ready","react","wait","i18nOptions","useSuspense","keyPrefix","namespaces","addUsedNamespaces","isInitialized","initializedStoreOnce","every","getT","getFixedT","nsMode","_useState","_useState2","setT","joinedNS","previousJoinedNS","isMounted","bindI18n","bindI18nStore","boundReset","on","off","isInitial","ret","shallowCompare","maskedShallowCopy","pickDifference","reference","_Link","_Paragraph","_Text","_Title","Paragraph","useCrematoryFeatures","crematoryFeaturesStore","crematoryFeatures","getCrematoryFeaturesActionCreators","getBackgroundUrl","image","func","timeoutID","isFinite","isInteger","log","equal","DefaultInfo","_crematory$units$weig","_crematory$units","Col","xs","sm","md","warn","_console","alreadyWarned","warnOnce","_len2","_key2","loadNamespaces","cb","initialized","oldI18nextHasLoadedNamespace","lng","fallbackLng","lastLng","loadNotPending","loadState","backendConnector","backend","isLanguageChangingTo","hasResourceBundle","resources","partialBundledLanguages","hasLoadedNamespace","isNewerI18next","ignoreJSONStructure","precheck","i18nInstance","getDisplayName","TypeOfCrematory","DemoRequestStatus","TabMode","getTab","keyRef","Location","tabsUrlKey","defaultKey","Query","_query$props$tabsUrlK","searchParams","currentTab","setTab","onChangeHandler","activeKey","replaceSearchUrl","newActiveTab","Tabs","TabsWithUrl","execution","AdjustmentAction","InvoiceAdjustmentType","AdjustmentValueType","enumeration","queryString","pairs","substr","pair","decodeURIComponent","truncate","snipLine","line","colno","newLine","ll","end","safeJoin","delimiter","output","isMatchingPattern","pattern","DateView","_user$localeUserPrefe","currentFormat","withFieldName","_props$multiple","currentOptions","useCountry","TimeView","CrematoryUserCounterEntity","FileType","assert","Map","useDeliveryTypes","_features$item2","_features$item3","features","enableCustomDeliveryType","deliveryTypes","selector","_features$item","_store$map","_store$error","mutate","force","Orientation","LengthUnit","defaultCrematoryFeaturesState","ActionKeys","REQUESTCREMATORYFEATURES","RECEIVECREMATORYFEATURES","REQUESTCREMATORYFEATURESERROR","UPDATECREMATORYFEATURES","getCrematoryFeaturesReducer","DisabledContext","SpaceCompactItemContext","useCompactItemContext","compactItemContext","compactItemClassnames","compactDirection","isFirstItem","isLastItem","separator","compactSize","NoCompactStyle","CompactItem","otherProps","directionConfig","_props$size","block","clx","childNodes","nodes","PetDiffList","wrapperClassName","diffAction","Added","Deleted","Updated","diffRecordId","renderChanges","before","after","fontWeight","PetPriceChanges","PetPriceDiffList","_props$list","updateTransactionId","_item$price","_item$price$order","_item$price2","getOrderSuffix","PetUrnDiffList","_item$object$category","_item$object$category2","getPetUrnDiffs","ChangeRender","handler","_handlers","handlers","EnumType","EnumRenderHandler","ValueChangeKey","KeyManager","Count","Id","InternalIdNum","NumberRenderHandler","isEnumGroup","isInternalIdNum","isIntegerGroup","CamelCaseRenderHandler","renderer","initialValue","updatedValue","withUser","withPetDiffs","withPetPrice","withPetPriceDiffs","withPetUrnDiffs","withPetUrn","styles","border","OldPetHistoryChange","_props$fallback","pending","loadItem","crematoryStoreName","getCrematoryEndpoint","unconfirmedChanges","useRemoteData","shouldRefetch","usePagination","perPage","_item$petDiff","petDiff","isUpdate","_props$onChange","_props$setError","_pet$currentStatus","_pet$currentStatus2","formatUserName","renderUserName","petPriceDiffs","petUrnDiffs","getDiffList","onPageChange","WeightUnit","PoundUnit","_WeightUnit2","KiloUnit","_WeightUnit3","toUnit","OldPetInventoryUsageTab","loadable","resolved","chunkName","isReady","__webpack_modules__","importAsync","requireAsync","requireSync","OldPetImportNotesTab","OldPetHistoryChangeTab","OldPetStatusLogTab","OldPetEmailLogTab","ListHeader","Header","backPath","BackButton","Subtitle","Actions","stamp","parentStamp","reversed","getFullName","flatten","sanitizeNodeLinks","toggle","queue","remove","restore","getParent","BatchActionType","getBatchTypeName","batchType","Both","Semiprivate","isValidElement","isFragment","cloneElement","element","replacement","CommonContext","messages","isAvailable","picked","sortServices","getExcluding","_item$specialService$","_item$specialService","_item$specialService$2","_item$specialService2","defaultNote","_record$specialServic","stopPropagation","_record$batchCount","_record$batchPrice","withBatch","batchDescription","additionalDescription","setServices","_useFormikContext","initialValues","availableServices","excludingSpecialServices","excluding","_props$clinicId","pendingOnly","_availableServices$it","Formik","_props$items","enableReinitialize","formikBag","Form","submitForm","marginBottom","rowSelection","selectedRowKeys","getCheckboxProps","_props$items2","_availableServices$it2","DatePicker","RangePicker","disabledAfterToday","currentDate","disabledBeforeToday","Datepicker","_ref$format","maxDateToday","minDateToday","disabledDate","_ref$antdProps","antdProps","dateRender","showTime","getPopupContainer","addTask","defaultItemState","itemPathOrId","customCheck","storeState","isNumber","_type","fetchTask","RECEIVEITEM","REQUESTITEM","checkProp","mergeItem","merge","REMOVEITEM","_action$item","fetchParams","createController","_record$controller","REQUESTDELIVERYTYPES","RECEIVEDELIVERYTYPES","RECEIVEDELIVERYTYPESERROR","mutation","MUTATEDELIVERYTYPES","mutateState","mutateRecord","toMap","mutated","isNodeEnv","dynamicRequire","mod","require","updateArrayItem","compare","defaultItemsState","showSizeChanger","ClipBy","loadPage","objectType","initStorage","INITSTORAGE","newParams","paramName","updateArrayInItem","compareParam","changedArrayItem","compareParamName","arrayItemParamName","foundItem","updateBatch","sortBy","clip","insertNew","UPDATEBATCH","addItem","ADDITEM","addItems","ADDITEMS","deleteItem","_action$params","incomingAction","uid","elem","itm","storedItem","Start","End","matchHtmlEntity","htmlEntities","unescapeHtmlEntity","defaultOptions","transEmptyNodeValue","transSupportBasicHtmlNodes","transWrapTextNodes","transKeepBasicHtmlNodesFor","unescape","I18nContext","getDefaults","ReportNamespaces","usedNamespaces","getI18n","initReactI18next","instance","setDefaults","setI18n","_config$perPage","_config$items","setPage","setTotal","setItems","_config$usePagination","oldPage","oldData","requestData","finally","deleteConfirmation","modalTitle","ExclamationCircleOutlined","_ref$view","_ref$withTime","_ref$withWeekDay","_ref$fallback","ClinicSelect","customers","_store$items","markCustomer","UserOutlined","RegionSelect","details","toOption","PostalCodeAutocomplete","Autocomplete","CrematorySelect","withLogo","getAvatar","dummyImage","dummyAvatar","fetchMore","_event$currentTarget$","scrollHeight","scrollTop","clientHeight","removeEmpty","RegExp","updateRef","libRef","userRef","prevUserRef","HIDDEN_TEXTAREA_STYLE","visibility","overflow","top","right","forceHiddenStyles$1","setProperty","hiddenTextarea","getHeight","sizingData","sizingStyle","boxSizing","borderSize","paddingSize","noop","SIZING_STYLE","isIE","documentElement","currentStyle","getSizingData$1","getComputedStyle","prop","borderRightWidth","borderLeftWidth","paddingRight","paddingLeft","paddingBottom","paddingTop","borderBottomWidth","borderTopWidth","useListener","listener","latestListener","ev","addEventListener","removeEventListener","cacheMeasurements","maxRows","minRows","_ref$onChange","_ref$onHeightChange","onHeightChange","isControlled","heightRef","measurementsCacheRef","resizeTextarea","nodeSizingData","_calculateNodeHeight","body","rowHeight","calculateNodeHeight","fonts","useFontsLoadedListener","TextAreaResizeComponent","TextArea","darkColorMap","opacity","toHsv","hsv","toHex","mix","rgb1","rgb2","amount","getHue","light","hue","getSaturation","saturation","getValue","opts","patterns","pColor","colorString","_i","_hsv","_colorString","red","volcano","orange","gold","yellow","lime","green","cyan","blue","geekblue","purple","magenta","grey","redDark","volcanoDark","orangeDark","goldDark","yellowDark","limeDark","greenDark","cyanDark","blueDark","geekblueDark","purpleDark","magentaDark","greyDark","FormItemInputContext","NoFormStyle","override","formItemInputContext","newFormItemInputContext","newContext","isFormItemInput","hasFeedback","feedbackIcon","Preview","_props$image","classList","CloseOutlined","StatusChangeComponent","promRequest","promote","promoteBack","PD_PREVIOUS","version","digit","_CheckOutlined","_CopyOutlined","_EditOutlined","_copyToClipboard","_rcResizeObserver","_toArray","_useLayoutEffect","_useMergedState3","_omit","_LocaleReceiver","_transButton","_styleChecker","_tooltip","_Editable","_useMergedConfig7","_useUpdatedEffect","_Typography","_Ellipsis","_EllipsisTooltip","getNode","dom","defaultNode","needDom","toList","Base","forwardRef","ellipsis","editable","copyable","textLocale","useLocaleReceiver","typographyRef","editIconRef","textProps","_useMergedConfig","_useMergedConfig2","enableEdit","editConfig","_useMergedState","editing","_useMergedState2","setEditing","_editConfig$triggerTy","triggerType","triggerEdit","onStart","focus","onEditClick","_useMergedConfig3","_useMergedConfig4","enableCopy","copyConfig","copied","setCopied","copyIdRef","copyOptions","cleanCopyId","onCopyClick","onCopy","isLineClampSupport","setIsLineClampSupport","isTextOverflowSupport","setIsTextOverflowSupport","expanded","setExpanded","_React$useState9","isJsEllipsis","setIsJsEllipsis","_React$useState11","_React$useState12","isNativeEllipsis","setIsNativeEllipsis","_React$useState13","_React$useState14","isNativeVisible","setIsNativeVisible","_useMergedConfig5","expandable","_useMergedConfig6","enableEllipsis","ellipsisConfig","mergedEnableEllipsis","_ellipsisConfig$rows","rows","needMeasureEllipsis","suffix","onEllipsis","isStyleSupport","cssEllipsis","isMergedEllipsis","cssTextOverflow","cssLineClamp","onExpandClick","onExpand","_React$useState15","_React$useState16","ellipsisWidth","setEllipsisWidth","_React$useState17","_React$useState18","ellipsisFontSize","setEllipsisFontSize","onJsEllipsis","jsEllipsis","textEle","currentEllipsis","offsetWidth","scrollWidth","IntersectionObserver","observer","offsetParent","observe","disconnect","tooltipProps","tooltip","topAriaLabel","onSave","onEnd","autoSize","enterIcon","renderEdit","editTitle","ariaLabel","renderCopy","tooltips","tooltipNodes","iconNodes","copyTitle","copy","systemStr","onResize","fontSize","resizeRef","enabledEllipsis","isEllipsis","WebkitLineClamp","composeRef","enabledMeasure","needEllipsis","renderNode","mark","underline","del","keyboard","italic","currentContent","wrap","needed","wrapperDecorations","renderExpanded","symbol","expandContent","expand","renderEllipsis","pause","onLoad","screenHeight","scrolled","throttle","setStatusColor","Fail","Unknown","OldPetEmailLog","dateTime","Tag","isDeliveryType","obsoleteManager","isHomeDropOff","isVetDropOff","isMail","isPickup","isNone","is","cast","ModernDeliveryManager","_store","getDeliveryType","isSystemType","delivery","useDeliveryManager","types","manager","AntdIcon","FilePreview","file","thumb","onPreview","EyeOutlined","onDelete","download","PaperClipOutlined","getRequiredChunkKey","namespace","LOADABLE_SHARED","initialChunks","identity","createLoadable","_ref$defaultResolveCo","defaultResolveComponent","_render","loadableConstructor","ctor","resolveConstructor","cache","_getCacheKey","cacheKey","Loadable","preload","LoadableWithChunkExtractor","cachedLoad","fileName","InnerLoadable","__chunkExtractor","ssr","loadSync","addChunk","getDerivedStateFromProps","_proto","componentDidMount","mounted","cachedPromise","getCache","setCache","loadAsync","componentDidUpdate","prevState","componentWillUnmount","safeSetState","getCacheKey","triggerOnLoad","resolveAsync","loadedModule","forwardedRef","_this$props2","propFallback","_this$state","suspense","EnhancedInnerLoadable","extractor","lazy","_createLoadable","_createLoadable$1","loadable$1","lazy$1","BROWSER","loadableReady","_temp","_ref$namespace","_ref$chunkLoadingGlob","chunkLoadingGlobal","requiredChunks","dataElement","getElementById","textContent","extElement","namedChunks","loadedChunks","originalPush","checkReadyState","loadable$2","lib","_state$login","headers","globals","Cookie","credentials","method","response","json","UploadList","_props$renderUpload","progress","setProgress","canAdd","renderProgress","renderUpload","upload","transformData","onProgress","xhr","XMLHttpRequest","formData","FormData","append","fileType","loaded","send","SpecialServicesList","newService","_item$entry","Checkbox","checked","QuickbooksItemType","getTypeName","Inventory","NonInventory","defaultContext","setName","UrnsProvider","_request$item3","_request$item4","raw","setRaw","updateTotal","_raw$total","_request$item$count","_request$item","_request$item$list","_request$item2","useUrns","toParams","useUrnsContext","domainTask","_Error","_wrapNativeSuper","defaultPetStatusTrigger","baseParams","gePetStatusTriggerActionCreators","statusOrders","RECEIVEPETSTATUSTRIGGER","REQUESTPETSTATUSTRIGGERERROR","REQUESTPETSTATUSTRIGGER","getPetStatusTriggerReducer","Helmet","UploadProgress","background","activeBarColor","UploadFile","_props$onProgress","onchange","_element$files","File","uploadFile","onUpload","UploadFilePlaceholder","SelectMode","SelectSize","_Breadcrumb","chain","predicate","collapse","getFunctionName","fn","getUrnDescription","UrnSelectionPreview","_item$node$fullName","_item$node","toConfirmMessage","isSelected","UrnForm","updatePet","_item$node$entry","getUrns","toConfirm","setSubmitting","submit","formik","_updatePet$error","UrnSelection","wrapperRaf","delayFrames","myId","restFrames","internalCallback","pid","styleForPseudo","Reflect","construct","isHidden","hidden","getValidateContainer","nodeRoot","Document","nodeType","Node","ELEMENT_NODE","isNotGrey","Wave","containerRef","animationStart","destroyed","waveColor","insertExtraNode","extraNode","attributeName","getAttributeName","borderColor","ownerDocument","nodeBody","onTransitionStart","onTransitionEnd","resetEffect","animationName","bindAnimationEvent","tagName","getPropertyValue","clickWaveTimeoutId","animationStartId","renderWave","innerHTML","contains","contextType","phoneRegexp","formattedPhoneRegexp","simpleStringValidator","simpleNumberValidator","dateValidator","notRequired","getSimpleStringValidator","useFilters","useHistory","useLocation","setFilters","queryParams","pushFiltersToUrl","_toPropertyKey","updatedQueryParams","updatedFilters","_filters$fieldName","Status","reqCounters","RECEIVECREMATORYUSERCOUNTERS","counters","REQUESTCREMATORYUSERCOUNTERSERROR","REQUESTCREMATORYUSERCOUNTERS","NEW_CREMATORY_ID","crematorySaveEndpoint","SizeContext","GroupSizeContext","others","classes","getCollapsedWidth","getRealWidth","existIcon","removeOnLeave","onAppearStart","onAppearActive","onEnterStart","onEnterActive","onLeaveActive","rxTwoCNChar","isTwoCNChar","isUnBorderedButtonType","spaceChildren","needInserted","isPrevChildPure","childList","isCurrentChildPure","lastIndex","lastChild","SPACE","insertSpace","_classNames","_props$loading","_props$type","_props$shape","customizeSize","customDisabled","_props$ghost","ghost","_props$block","_props$htmlType","mergedDisabled","groupSize","innerLoading","hasTwoCNChar","setHasTwoCNChar","autoInsertSpaceInButton","isNeedInserted","loadingOrDelay","delay","delayTimer","buttonText","handleClick","autoInsertSpace","_useCompactItemContex","sizeFullname","large","small","middle","linkButtonRestProps","iconNode","kids","buttonNode","Group","__ANT_BUTTON","today","backToToday","ok","clear","timeSelect","dateSelect","weekSelect","monthSelect","yearSelect","decadeSelect","yearFormat","dayFormat","dateTimeFormat","monthBeforeYear","previousMonth","nextMonth","previousYear","nextYear","previousDecade","nextDecade","previousCentury","nextCentury","rangePlaceholder","yearPlaceholder","quarterPlaceholder","monthPlaceholder","weekPlaceholder","rangeYearPlaceholder","rangeQuarterPlaceholder","rangeMonthPlaceholder","rangeWeekPlaceholder","timePickerLocale","typeTemplate","items_per_page","jump_to","jump_to_confirm","prev_page","next_page","prev_5","next_5","prev_3","next_3","page_size","TimePicker","Calendar","filterTitle","filterConfirm","filterReset","filterEmptyText","filterCheckall","filterSearchPlaceholder","selectAll","selectInvert","selectNone","selectionAll","sortTitle","triggerDesc","triggerAsc","cancelSort","justOkText","Popconfirm","Transfer","titles","searchPlaceholder","itemUnit","itemsUnit","selectCurrent","removeCurrent","removeAll","Upload","uploading","removeFile","uploadError","previewFile","downloadFile","Empty","PageHeader","back","optional","defaultValidateMessages","whitespace","invalid","regexp","hex","len","range","mismatch","Image","preview","_props$componentName","defaultLocale","antLocale","localeFromContext","Function","localeCode","exist","getStatusClassNames","getMergedStatus","contextStatus","customStatus","getPlaceholder","picker","customizePlaceholder","getRangePlaceholder","transPlacement2DropdownAlign","adjustX","adjustY","points","Components","button","rangeItem","getTimeProps","showHour","showMinute","showSecond","use12Hours","firstFormat","showTimeObj","generateConfig","_generateSinglePicker","getPicker","Picker","customizeGetPopupContainer","_props$bordered","popupClassName","dropdownClassName","innerRef","blur","additionalProps","showToday","additionalOverrideProps","mergedPicker","rootPrefixCls","mergedSize","formItemContext","suffixNode","contextLocale","suffixIcon","dropdownAlign","clearIcon","prevIcon","nextIcon","superPrevIcon","superNextIcon","transitionName","components","WeekPicker","MonthPicker","YearPicker","QuarterPicker","customGetPopupContainer","generateRangePicker","MergedDatePicker","localizedFormat","customParseFormat","generatePicker","dayjsGenerateConfig","ExtendableItemEditor","handlerBack","handleSubmit","handleCheckItem","saveItem","clearForSubmit","updateValues","returnAfterSubmit","getIdParam","itemActions","_step","isArrayOfObjects","valuesToReturn","_iterator","_createForOfIteratorHelper","returnToList","hideSuccess","saveItemPath","refreshItemsStore","setValues","formikActions","_this5","pagesActions","itemsStore","itemsPath","dispatchToProps","getItemsActionCreators","_Base","mergedEllipsis","LTS","LT","L","LL","LLL","LLLL","zone","A","afternoon","milliseconds","SS","SSS","ss","mm","H","HH","hh","DD","Do","ww","MM","MMM","MMMM","Y","YY","YYYY","Z","ZZ","formats","regex","parser","exec","hours","parseTwoDigitYear","minutes","seconds","week","PresetStatusColorTypes","PresetColorTypes","helpers","none","indefinitely","finished","finish","complete","unload","unknown","new","select","enums","both","cremation","aquamation","semiprivate","wholesale","retail","mail","pounds","kilograms","custom","paid","adjustment","product","menu","submenu","batches","labels","invoices","batch","lists","cards","species","breed","warnings","editors","specie","carrier","sections","owner","documents","export","subtotal","free","hst","gst","localizations","pricing","information","address","postal","province","preferences","captions","general","validation","table","manually","entities","reports","report","texts","modals","chemicals","buttons","save","leave","stay","violet","lightblue","lightgreen","pink","black","transparent","reset","enabled","route","machine","confirmed","expiration","shipping","pickup","print","control","previous","statusId","ForceStatusForm","onChangeStatus","setIsLoading","setData","statusOrder","_item$status$id","_item$status","_item$status$name","_item$status2","_item$status$descript","_item$status3","confirmChanges","forceStatusId","resetForm","SelectableRadioList","withSingleDefault","HistoryChangeList","isChecked","setIsChecked","isItems","setIsItems","marginTop","CurrentStatusComponent","_login$user","_login$user2","isConfirm","withControls","withNext","nextStatusId","withPrevious","previousStatusId","canChangeStatus","ChangeStatus","_pet$currentStatus$st","_login$user3","StatusComponent","_pet$currentStatus3","_response$currentStat","EditOutlined","cursor","ServiceComponent","onRefresh","_props$fieldName","allArray","onUrnRefresh","_updatePet$error2","newValues","borderTop","OldPetStatusHistory","needUrnsConfirmed","triggers","OnWillLeave","OnWillEnter","isStatusChanged","setIsStatusChanged","trigger","UrnPopup","setIsConfirm","isCheck","urnSchema","of","when","requireDeliveryAddress","provider","DefaultServicesProvider","noActiveCrematory","isActiveCrematory","prevCrematoryId","prevClinicId","prevServiceType","prevPriceType","changedOnlyClinicRef","defaultOnly","old","SpecialServiceSection","_useField2","useField","getActions","PickupServicePricesSelect","toPetPrice","oldPrice","_oldPrice$id","_oldPrice$clientId","_price$name","OwnerInfoSection","setCountry","clinicsStore","countryStore","_clinicsStore$find","_country$alpha","DiscountSelect","disabledOptions","calculatedPrice","_calculatedPrice$base","_calculatedPrice$base2","basePrice","sum","Percentage","setDisabledOptions","_field$value$find","pickUpService","_item$price3","getServices","setDeliveryAddress","_clinic$crematories$f","onDeliveryTypeChange","toNumber","entityId","TrackClinic","ResponseCode","toEntity","_list$find$id","setClinicDeliveryType","preference","useCustomDelivery","setter","setCrematoryDeliveryType","getPreferenceName","DeliverySection","_useSelector$items","_useSelector$items2","_props$country","_features$item5","deliveryService","_useFormikContext$val","useDeliveryValue","showConfirm","setShowConfirm","defaultProvider","_features$item4","_useFormikContext2","withCrematories","_clinic$item","_features$item$enable2","_clinic$item2","_features$item$enable","clinicConfig","crematoryConfig","useDefaultDeliveryTypeProvider","previousRef","isDeliveryNotClinicSet","DeliveryEntitySelect","DeliveryTypeSelect","_field$value","_features$item6","onDeliveryClinicSelect","_field$value2","_ref7","_ref8","Compact","EnvironmentOutlined","pointerEvents","onConfirm","resend","AlreadySent","coordinatesMailStatus","onSendEmail","MailOutlined","_ref9","PetInfoSection","availableEngravingPrices","setAvailableEngravingPrices","needUpdate","getUpdatedEngraving","PetSpecieSelect","BreedSelect","mixedField","GenderSelect","addonAfter","_values$actualWeight","_values$reportedWeigh","estimatedAshes","unitToFraction","fractionName","EngravingList","onChangePrice","localeKey","getDiscountLabel","isClinicDiscount","getProductValue","getServiceLabel","formatPercentage","Taxes","_props$serviceTax2","_props$productTax2","formValues","taxName","_props$serviceTax","_props$productTax","BankOutlined","colSpan","taxPolicy","serviceTaxName","productTaxName","ClinicDiscounts","_props$discounts","_props$discounts2","basePriceDiscount","applyTo","servicePriceDiscount","_i$price2","PercentageOutlined","formatMoney","PerItemContent","_price$discount","_price$price","formatTotal","TotalContent","engravings","priceExtra","clinicDiscounts","onRecalculate","DollarOutlined","SignatureOutlined","ThunderboltOutlined","urn","RestOutlined","ShoppingCartOutlined","CompassOutlined","TruckOutlined","PriceTagDisplay","InvoicePrint","excludeFree","setExcludeFree","Dropdown","PdfField","FilePdfOutlined","PetEditorHeader","_values$clinic$countr","_gender$name","_values$petSpecie$nam","_values$petSpecie","_petBreed$name","_useSelector","genderStore","isCrematory","tab","ResourceButton","TopSection","serviceTypeOptions","setServiceTypeOptions","_crematory$serviceTyp","_crematory$serviceTyp2","serviceTypePreference","ByCrematory","WhySpecial","_request$item$descrip","_request$item$time","descriptions","TagStack","setPetId","Horizontal","alignItems","ClinicSection","_crematory$option","_form$values$services","LocationSelect","_crematory$option2","getWeight","compareServices","_q$price2","hasValue","ExistingPriceStack","_services$find","_services$find2","_services$find3","_services$find4","_values$summary$produ","_values$summary","_values$summary$servi","_values$summary$produ2","_values$summary2","_values$summary$servi2","_values$summary3","_values$summary$produ3","_values$summary$servi3","_values$summary$subTo","_values$summary$total","_base","_engraving","_rush","_q$price3","_services","_q$price4","_urns","_q$price5","_products","_q$price6","_discount","_q$price7","_clinicDiscounts","ClinicDiscount","_delivery","_q$price8","_pickup","_q$price9","_productValue","summary","_serviceValue","_productTaxValue","_serviceTaxValue","_productTaxPercentage","_serviceTaxPercentage","_subtotal","_total","_this$_serviceValue","_this$_productValue","PriceFilter","where","filtered","any","categoryId","clinicQuery","bySpecies","_this6","_min$price","_min","distance","getBaseQuery","rangeFrom","rangeTo","_this7","getQuery","getProductQuery","_this8","getDiscountQuery","getRushQuery","CalculatedPriceStack","_services$filter$find","getBase","_engravings","getEngraving","getRush","getClinicDiscount","getDiscount","getDelivery","_item$price4","clearAll","applyDiscounts","applyTaxes","_isTaxPolicyExcluded","_a$order","_b$order","_a$order2","_b$order2","getProduct","_item$inventoryItem$n","_item$inventoryItem","storeEntryPick","appliesTo","ServicePrice","_this$base$value","_this$base","_this$base$extra","_this$base2","fraction","_item$price5","budget","_item$price6","applyDiscount","applyClinicDiscounts","applyAbsoluteDiscount","TaxIncluded","calculateIncludedTax","calculateExcludedTax","_item$price7","serviceFraction","productFraction","applyTax","clearList","_this$discount$value","_this$discount","productTotal","_this$base$value2","_this$base3","_this$base$extra2","_this$base4","_this$rush$value","_this$rush","_this$discount$value2","_this$discount2","_this$delivery$value","_this$delivery","serviceTotal","_this$discount$value3","_this$discount3","_this$delivery$value2","_this$delivery2","_this$pickup$value","_this$pickup","taxTotal","PricingManager","initial","_current$services","_current$services2","_current$products","keepPrice","_original$urns","_current$urns","_original$products","shouldKeepPrice","DocumentsSection","setFile","UploadDocuments","onChangeFile","maxSizeCaption","ModalPreview","setDefaultCarrier","onChangeValues","defaultCarrier","PetTrackChange","clinicDiscountRequest","onLoadPricesBySelect","useCallback","onLoadPrices","isPriceAlreadyLoaded","_initialValues$servic","originServices","_initialValues$servic2","loadPricesBySelect","handleWeightChange","_oldCrematory$weightS","_newCrematory$weightS","oldCrematory","getCrematory","newCrematory","oldSource","ActualWeight","newSource","reloadPrices","setServiceTypePreferences","onChangeServiceTypePreferences","onChangeLoadPrices","onChangeDisableHistory","onLoadClinicDiscounts","onChangeClinicDiscount","setClinicDiscount","_clinicDiscountReques","_clinicDiscountReques2","loadCrematoryDependencies","defaultListParams","withInvoice","withCurrentStatus","withServices","withUrns","withFiles","withPetSpecie","toValues","_values$urns","_values$products","_values$invoiceSummar","_crematories$find","_crematories$find2","getInitialValues","onGetCrematory","_item$services","_services$filter","_services$filter2","_item$deliveryAddress","_item$deliveryAddress2","_item$deliveryCity","_item$deliveryZip","_item$deliveryState","_item$deliveryStateId","_item$specialInstruct","_item$batchMachineLoc","_item$trackingNumber","_item$phone","_item$email","_item$clinicName","_item$name","_item$color","_item$vet","_item$internalIdNum","_item$onHold","_item$ownerFirstName","_item$ownerLastName","_item$ownerPhone","_item$ownerPhone2","_item$ownerEmail","_item$ownerAddress","_item$ownerAddress2","_item$ownerCity","_item$ownerState","_item$ownerStateId","_item$ownerZip","_item$ownerNotes","_item$carrierId","_item$notes","_item$discountId","_urn$node","_urn$node2","loadingUrns","submitRequest","isWholesale","initialServices","_values$urns2","_values$discountId","getNewValues","newServices","updatedServices","q1","q2","_values$services4","getCalculatedPriceServices","discountPrice","_i$price3","messageServices","getUpdateServices","Information","disableHistory","_props$item","needUpdateKit","KitService","withPetBreed","withSpecie","withClinic","onUpdatePet","_props$item$services","_props$item2","_oldItem$entry","oldItem","onUpdateUrnPet","OldPetEditorTabs","_getCountry","otherwise","_config$preferences","_config$preferences2","getValidationSchema","_crematories$find3","_clinics$find","_countries$find","getCountry","envelope","OldPetEditor","clinicLocations","clinicsList","_props$item3","useParams","deliveryManager","formRef","setPrices","globalLoading","setGlobalLoading","servicesPrice","setServicesPrice","setClinicDiscounts","serviceTypePreferences","setDisableHistory","refItem","idempotencyTokenRef","valuesRef","userCanCreatePet","CreatePet","userCanUpdatePet","UpdatePet","priceListRequest","onReload","onChangePrices","onChangeServicesPrices","withSpecialService","withInventoryItem","isClinicSet","loadedServices","clinicServices","foundInClinic","loadPrices","getCalculatedPrice","createRequest","updateRequest","outOfDate","_props$item4","_props$user$activeCre","_props$user","_props$crematories$it","_props$item$services2","_props$item5","Result","subTitle","alignContent","goBack","onChangeLoading","_formRef$current$subm","_formRef$current","locationPath","createPet","_values$preferences","_values$preferences2","_excluded2","Container","defaultActiveKey","ScrollToError","formId","ProcessSection","ProductsSection","onLoadPrice","lg","strictUriEncode","decodeComponent","splitOnFirst","validateArrayFormatSeparator","encode","strict","decode","removeHash","hashStart","extract","queryStart","parseValue","parseBooleans","arrayFormatSeparator","formatter","accumulator","isEncodedArray","newValue","parserForArrayFormat","param","keysSorter","shouldFilter","skipNull","skipEmptyString","encoderForArrayFormat","objectCopy","url_","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","parsedQueryFromUrl","getHash","pick","exclude","exclusionFilter","scope","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","makeRequestCallFromTimer","timeoutHandle","handleTimer","intervalHandle","setInterval","clearInterval","makeRequestCall","createTextNode","characterData","htmlTreeAsString","currentElem","out","sepLength","nextStr","_htmlElementAsString","el","attr","allowedAttrs","rnds8","Uint8Array","rng","uuid","byteToHex","buf","rnds","AttachedRouteClinic","userRoles","crematoryUserRoles","adminServiceTypeOptions","adminServiceTypes","withAll","serviceTypesWithAll","priceTypeWithAll","flagStatus","invoiceStatus","Paid","External","hasIssues","WithoutIssues","WithIssues","triggerAction","ActualWeightPopup","ProductPopup","TrackingPopup","InternalIdPopup","AshesWeightPopup","triggerEvent","customer","NonCustomer","onHoldAdmin","Attached","ByClinic","typeOfCrematory","Aquamation","Fire","demoRequestStatus","Requested","Scheduled","Cancelled","Completed","adjustmentAction","Subtraction","Addition","discountUnit","statusFunction","_statusFunction","Reports","SystemActions","discountLimit","priceKindOptions","priceKindClinicOptions","invoiceAdjustmentType","batchTypes","Absolute","Relative","weightUnits","inventoryCategory","labelPaperOrientation","Landscape","Portrait","labelPaperUnit","Millimeter","Centimeter","Inch","expirationDate","itemType","isLinkedToQuickbooksOptions","stockQuantity","dateFormatOptions","timeFormatOptions","appliesToOptions","defaultInvoiceTaxModel","TaxPerInvoice","MessageComponent","ErrorMessageComponent","container","SuccessMessageComponent","toAntdMode","Multiple","toAntdSize","Large","Small","showClear","hook","removeIcon","menuItemSelectedIcon","_BaseExtendableItemsP","onCompleted","_this2$deletePath","deletePath","BaseExtendableItemsPage","BaseItemsPage","itemsPageMapDispatchToProps","LinedText","_props$minimized","minimized","classProps","styleProps","_props$strong","borderLeftColor","borderBottomColor","translator","deliveryTypeValues","_props$prices","priceLabel","clickEventHandler","getDefaultParams","blob","URL","createObjectURL","duration","period","onTimeout","_debounce$current$val","_debounce$current","_debounce$current2","timer","bindLoginActionCreators","previousValue","_DownOutlined","_UpOutlined","_rcInputNumber","_react","_DisabledContext","_SizeContext","_context","_Compact","_statusUtils","InputNumber","inputRef","useImperativeHandle","addonBefore","prefix","readOnly","controls","upIcon","downIcon","controlsTemp","mergedStatus","mergeSize","inputNumberClass","upHandler","downHandler","affixWrapperCls","onMouseUp","addonClassName","addonBeforeNode","addonAfterNode","mergedWrapperClassName","mergedGroupClassName","DataProvider","filterParams","_props$perPage","_props$onCompleted","getFavs","aStarts","bStarts","favItems","setFavItems","favourites","addFavourites","deleteFavourites","favs","StarFilled","petSpeciesIds","StarTwoTone","defaultStore","petListPreferences","dropOffReportPreferences","clinicInvoiceReportPreferences","endpoints","getUserPreferencesActionCreators","userPreferences","REQUESTUSERPREFERENCES","SETUSERPREFERENCES","getUserPreferencesReducer","castAction","_class","_BaseExtendableItemEd","BaseExtendableItemEditor","baseDispatchToProps","filterByQuery","IconMap","ExceptionMap","_WarningFilled","_noFound","_serverError","_unauthorized","ExceptionStatus","SVGComponent","Extra","customizeClassName","_ref3$status","PRESENTED_IMAGE_403","PRESENTED_IMAGE_404","PRESENTED_IMAGE_500","loadTree","requestType","RECIEVECOMMENTTREE","updateComment","comment","UPDATECOMMENT","addComment","insertBefore","ADDCOMMENT","deleteComment","DELETECOMMENT","typeComments","itemComments","processNextComment","nextComment","childrenIds","parentComment","parentCommentChildren","oldChildrenList","newChildrenList","defaultDashboardCounter","RECEIVEDASHBOARDCOUNTERS","REQUESTDASHBOARDCOUNTERSERROR","REQUESTDASHBOARDCOUNTERS","getDashboardActionCreators","dashboardCounters","itemName","UPDATEDASHBOARDCOUNTERS","_storeState$offset","RECEIVEDASHBOARDCOUNTERSMORE","REQUESTDASHBOARDCOUNTERSMORE","getDashboardCountersReducer","LocalStateActions","defaultLocalStore","getLocalStoreStateActionCreators","setLocalState","SETLOCALSTATE","getLocalStoreReducer","_user$firstName","_user$lastName","_user$email","setOptions","priority","endsWith","GoBackLink","GoBackButton","LeftOutlined","locationName","formatAddress","_file$src","centered","FileWall","_FileWall","argument","_this$props$fileType","Avatar","noRelation","onUpdate","_this2$props$onError","_this2$props","asButton","infoMessage","buttonCaption","buttonClassName","withProgressBar","Progress","percent","showError","LoadingOutlined","_this$props3","accept","maxCount","uploadButton","getUploadComponent","listType","showUploadList","customRequest","Thumbnail","removeFileUpload","openPreview","confirmDelete","_props$lineHeight","lineHeight","withDeleteBtn","withConfirm","PictureWallInner","_applyDecoratedDescriptor","previewVisible","previewImage","_this$props$onUpdate","contents","_this$props4","_this$props4$fileType","_this$props4$withDele","_this$props4$withProg","_this$props4$withConf","onConfirmDelete","handlePreview","handleCancel","PictureWall","withTranslation","LabelText","ClockCircleOutlined","NextStatusButton","RightOutlined","PreviousStatusButton","useUserLocalPreferences","CreationDateField","ClinicField","isModeCreateInvoice","currentClinic","SelectTermsField","invoiceTerm","onTermsChange","DueDateField","SelectStatusField","_ref8$isDisable","isDisable","defaultState","pagepath","notLoggedReducer","RequestPage","ReceivePage","bindNotLoggedActionCreators","Users","UserEditor","AdminClinics","Crematories","ClinicEditor","ChemicalsTableEditor","PurchaseOrderEditor","NotFound","ClinicPetEditor","Login","Recover","Confirm","Register","Profile","Dashboard","CrematoryAdmin","Pets","CrematoryPetList","ClinicPetList","PetEditor","InvoiceEditor","RouteEditor","NLStatelessPage","CrematoryUsers","ClinicUsers","CrematoryUserDashboard","PetListStatusDetails","PetListSpecialServiceDetails","PickupReportsPage","CrematoryBatchEditor","ClinicDashboard","AverageTurnAroundReport","AverageTurnAroundDetails","IncomeReportList","UrnReport","ClinicInvoiceReport","LabelPaperEditor","CrematoryDependentQuickbooks","ManageApiKeysPage","CountriesEditor","QuickbooksItemEditor","StoreEntryEditor","ImportDetails","UserDependentManageUserPermission","ComplaintEditor","ClinicPreferences","petEditorComponents","adminComponents","dashboardComponents","PetList","usersList","PetComponents","ClinicComponents","CrematoryClinics","QuickbookComponents","Layout","Switch","exact","PrivateRoute","hub","getSignalR","signalR","HubConnectionBuilder","withUrl","RowContext","firstInput","querySelector","parentElement","scrollIntoView","withSelect","currentQuery","setCurrentQuery","withGroups","Radio","onKeyDown","PRESENTED_IMAGE_SIMPLE","InternalAvatar","scale","setScale","setMounted","isImgExist","setIsImgExist","avatarNodeRef","avatarChildrenRef","avatarNodeMergeRef","setScaleParam","childrenWidth","nodeWidth","_props$gap","childrenToRender","customSize","srcSet","draggable","crossOrigin","responsiveSizeStyle","screen","currentSize","hasImageElement","sizeStyle","transformString","childrenStyle","WebkitTransform","sizeChildrenStyle","SizeContextProvider","originSize","withStatus","withPetGender","withCrematory","layout","StatusModal","_props$title","setContent","ModalContent","_a$component","setContentRef","typographyDirection","contextDirection","mergedRef","componentClassName","RefIcon","getMine","forMyClinic","getStateName","logWarning","useDefaultUrnRequest","currentUrns","newUrns","deletedUrns","_entry$tree$find","updateUrns","DefaultUrnProvider","translate","setPreview","_fieldProps$form$erro","_fieldProps$form$touc","_fieldProps$form$erro2","_fieldProps$form$touc2","_inventoryItem$origin","FieldArray","move","_store$RootKey","categoryFilters","priceRequestParams","getAvailablePrices","_props$form$values$pr","ProductModal","getNewProduct","Head","_props$product$name","_props$product","Breadcrumb","onReset","breadcrumbs","ItemList","_props$inventoryList2","_props$inventoryList","_props$getActionsProd","inventoryList","getActionsProducts","getActionsUrns","_props$quantity$get","_props$inventoryList3","_props$product2","isPriceItem","specials","indexOfFirstSpecial","getDivider","FolderOpenOutlined","_quantity$get","_props$product$count","_props$product3","setQuantity","_item$price$inventory","setDisabled","_quantity$get2","_product$avatar","setStoreKey","setBreadcrumbs","setInventoryList","setAvailablePrices","setProduct","inventoryStore","productFilters","_Number","handleReset","setKey","_inventoryStore$store","_inventoryStore$store2","_inventoryStore$store3","handleSelectedItem","getNewFile","getValidDate","BatchComponent","_batchAction$machine$","_batchAction$machine","batchId","getLink","finishedDate","onOpenModal","onPreselect","_record$entry$name","_record$entry","_record$entry$name2","_record$entry2","Tooltip","_item$entry$id","_item$nodeId","urnsError","UrnSubsection","_values$clinicId","setPreselect","isNotRemoved","ProcessSectionInternal","_values$clinicId2","_this$props$onChange","isOptionSelected","_this$props$onSelect","isClear","updateAfterSelect","loadItems","onSearchHandler","selectMatchingOption","handleKeyDown","transformValue","shouldSelectMatch","_this$props4$min","loadOnFocus","thing","_this$props5","onExtraRender","loaderMarkup","AutoComplete","lock","rawPrices","deps","useMemoAsync","ignoreClinic","priceIndex","removeEngraving","priceValue","renderHelperText","present","addEngraving","UrnAttributeSelect","minWidth","_props$value$entry$id","_props$value$entry","_priceListRequest$ite","_priceListRequest$ite2","_props$value$node","_entry$tree$find2","_priceListRequest$ite3","_useStoreEntry","entryId","priceListParams","_props$value$price","_props$value$price2","_props$value$price3","_props$value$price4","currentPrice","pathValues","isSelectable","flex","_value$id","DndContext","dragDropManager","ClinicsSearchTab","CrematoryInvoicesTab","RoutesTab","ClinicTypesTab","getItems","ManageInvoices","_group","_avatar","LoadableCommentTree","newItem","_item$crematory","_item$crematory2","_item$petSpecie","_item$petBreed","petModal","InfoCircleOutlined","SpecificContent","shouldClose","CommentOutlined","withReply","withoutCancelButton","_KeyCode","_popover","_PurePanel","_props$placement","_props$trigger","_props$okType","_props$icon","overlayClassName","onOpenChange","onVisibleChange","defaultVisible","setOpen","settingOpen","prefixClsConfirm","overlayClassNames","_props$disabled","_overlay","Overlay","ESC","_onKeyDown","_dayjs","_warning","_weekday","_localeData","_weekOfYear","_weekYear","_advancedFormat","_customParseFormat","proto","oldFormat","formatStr","localeMap","bn_BD","by_BY","en_GB","en_US","fr_BE","fr_CA","hy_AM","kmr_IQ","nl_BE","pt_BR","zh_CN","zh_HK","zh_TW","parseLocale","parseNoMatchNotice","noteOnce","getNow","getFixedDate","getEndDate","getWeekDay","localeData","firstDayOfWeek","getYear","getHour","getMinute","getSecond","second","getMillisecond","millisecond","addYear","addMonth","addDate","setYear","setMonth","setDate","setHour","setMinute","setSecond","setMillisecond","date1","date2","isValidate","getWeekFirstDay","getWeekFirstDate","getWeek","getShortWeekDays","getShortMonths","_format","localeStr","formatText","weekStr","firstWeek","j","nextWeek","local","getUTCFullYear","getUTCMonth","getUTCDate","getUTCDay","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","$localOffset","isUTC","enableApiImport","Memo","_hasWeakSet","WeakSet","_inner","has","backendOptions","i18nextOptions","read","enteringNode","previousLength","entered","itemsA","itemsB","insertItem","union","isNodeInDocument","leavingNode","NativeDragSource","exposeProperties","configurable","dataTransfer","newProperties","propertyFn","matchesTypes","monitor","handle","getSourceId","initializeExposedProperties","FILE","TEXT","HTML","getDataFromDataTransfer","typesToTry","resultSoFar","typeToTry","nativeTypesConfig","html","urls","matchNativeItemType","dataTransferTypes","nativeItemType","typeConfig","isFirefox","navigator","isSafari","safari","MonotonicInterpolant","ys","c1s","c2s","c3s","mid","low","high","xHere","diffSq","indexes","dys","dxs","dx","dy","i1","i2","m2","mNext","dxNext","common","i3","c1","invDx","getNodeClientOffset","left","getBoundingClientRect","getEventClientOffset","clientX","clientY","getDragPreviewOffset","sourceNode","dragPreview","clientOffset","anchorPoint","offsetPoint","isImage","nodeName","dragPreviewNodeOffsetFromClient","offsetFromDragPreview","sourceWidth","sourceHeight","anchorX","anchorY","dragPreviewWidth","dragPreviewHeight","devicePixelRatio","getDragPreviewSize","offsetX","offsetY","isManualOffsetY","interpolate","calculateYOffset","OptionsReader","globalContext","optionsArgs","rootElement","writable","ref1","sourcePreviewNodes","sourcePreviewNodeOptions","sourceNodeOptions","sourceNodes","dragStartSourceIds","dropTargetIds","dragEnterTargetIds","dragOverTargetIds","__isReactDndBackendSetUp","addEventListeners","removeEventListeners","clearCurrentDragSourceNode","asyncEndDragFrameId","cancelAnimationFrame","sourceId","handleDragStart","handleSelectStart","targetId","handleDragEnter","handleDragOver","handleDrop","handleTopDragStart","handleTopDragStartCapture","handleTopDragEndCapture","handleTopDragEnter","handleTopDragEnterCapture","handleTopDragLeaveCapture","handleTopDragOver","handleTopDragOverCapture","handleTopDrop","handleTopDropCapture","dropEffect","altKeyPressed","isDraggingNativeItem","getCurrentSourceNodeOptions","captureDraggingState","getItemType","currentNativeSource","loadDataTransfer","createNativeDragSource","currentNativeHandle","registry","addSource","beginDrag","currentDragSourceNode","mouseMoveTimeoutTimer","endDragIfSourceWasRemovedFromDOM","defaultPrevented","lastClientOffset","hoverRafId","getSourceClientOffset","endDragNativeItem","endDrag","removeSource","isDragging","cancelHover","scheduleHover","requestAnimationFrame","hover","publishSource","nativeType","setDragImage","getCurrentSourcePreviewNodeOptions","dragPreviewOffset","setCurrentDragSourceNode","publishDragSource","beginDragNativeItem","hasAttribute","enterLeaveCounter","enter","altKey","canDropOnTarget","getCurrentDropEffect","drop","dragDrop","isContentEditable","getMonitor","getRegistry","HTML5Backend","SignalR","connection","chatMessage","loginActions","chatMessageAccess","viewed","LoginState","setLocale","mixed","defaultCallback","LogoutInner","logout","LogoutOutlined","Logout","subject","waysToReproduce","validationSchema","BugReportModal","getMenuItems","modalOpen","onChangeModal","BellOutlined","transmutation","transmute","ArrowLeftOutlined","MenuActionDropdown","isMenuOpen","setMenuOpen","UpOutlined","DownOutlined","UserComponent","setMenu","curUser","setCurUser","compact","colProps","SingleCrematory","CrematorySelectSkeleton","Skeleton","paragraph","InfoHeader","reqSelect","ClinicHeaderContacts","_getInteraction","_getInteraction2","letter","ClinicInfoHeader","detailsList","dashboardTitle","ClinicHeaderInner","menus","menuList","scrollTo","togglePanel","Details","MenuOutlined","selectedKeys","getSelectedKeys","itemPathKey","getMatchedKey","linkClassName","ClinicHeader","matchPath","matchedKey","VersionPanel","privateCrematoryMenuItems","HeaderInner","crematoryFeaturesAction","_this$props$user","itemPath","_this$props$user2","enableQuickbooks","Quickbooks","linkClassname","hideCrematoryMenuItem","PanelMenu","Menu","SubMenu","childItemPathKey","PanelPosition","rootId","SidePanel","onOverflowClicked","CSSTransition","in","panelOpened","classNames","unmountOnExit","mountOnEnter","Right","BodyLayout","Footer","outerPages","LayoutInner","isInnerPage","_this$props$login$use","_this$props$login$use2","tReady","_this$props$login$use3","DndProvider","innerContent","outerContent","weightValidation","MissingActualWeight","MissingAshesWeight","WeightForm","_item$actualWeight","_item$reportedWeight","_item$reportedWeight2","SpecialServicesForm","BatchForm","HistoryChangeForm","TrackingForm","_item$sendTrackingEma","sendTrackingEmail","InternalIdForm","internalId","ProductForm","_item$services$filter","ServicesWarning","BatchWarning","MissingUrnWarning","ConfirmProducts","HasUnconfirmedChanges","RequireTrackingNumber","MissingInternalId","PresetColorRegex","PresetStatusColorRegex","_a$closable","setVisible","isPresetColor","tagStyle","presetColor","tagClassName","handleCloseClick","isNeedWave","tagProps","tagNode","CheckableTag","inlineStyle","TransButton","noStyle","mergedStyle","ENTER","onKeyUp","AppContainer","warnAboutHMRDisabled","only","hot","shouldWrapWithAppContainer","areComponentsEqual","setConfig","cold","configureComponent","_extends3","_RowContext","sizes","_React$useContext2","supportFlexGap","pull","sizeClassObj","sizeProps","propSize","horizontalGutter","verticalGutter","parseFlex","_useFlexGapSupport","useMergePropByScreen","oriProp","setProp","curVal","clacMergeAlignOrJustify","justify","_props$gutter","xl","xxl","setScreens","curScreens","setCurScreens","mergeAlign","mergeJustify","gutterRef","token","subscribe","currentGutter","unsubscribe","results","gutters","rowStyle","marginRight","_gutters","rowGap","_gutters2","gutterH","gutterV","rowContext","singleMatcher","multiMatcher","decodeComponents","tokens","encodedURI","replaceMap","customDecodeURIComponent","separatorIndex","isArr","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","__self","__source","$$typeof","_owner","jsx","jsxs","_index","InternalItem","_useContext2","actionsContent","itemChildren","_props$className","maxStyle","_props$maxPopoverPlac","maxPopoverPlacement","_props$maxPopoverTrig","maxPopoverTrigger","childrenWithProps","numOfChildren","childrenShow","childrenHidden","_classCallCheck2","_createClass2","_possibleConstructorReturn2","_isNativeReflectConstruct2","_getPrototypeOf2","_inherits2","componentStack","errorDescription","_default","_objectSpread2","_getRequireWildcardCache","_AntdIcon","WeakMap","CopyOutlined","deselectCurrent","clipboardToIE11Formatting","reselectPrevious","createRange","getSelection","ariaHidden","webkitUserSelect","MozUserSelect","msUserSelect","userSelect","clipboardData","clearData","selectNodeContents","addRange","execCommand","copyKey","prompt","removeRange","removeAllRanges","rangeCount","activeElement","ranges","getRangeAt","_EnterOutlined","_TextArea","_ref$autoSize","_ref$enterIcon","inComposition","lastKeyCode","setCurrent","resizableTextArea","textArea","setSelectionRange","confirmChange","textClassName","textAreaClassName","ctrlKey","metaKey","shiftKey","onCompositionStart","onCompositionEnd","EnterOutlined","propConfig","templateConfig","support","conditions","mountRef","cuttable","sliceNodes","nodeList","currLen","currentNodeList","nextLen","restLen","_React$useState2$","startLen","midLen","endLen","setCutLength","walkingState","setWalkingState","singleRowHeight","setSingleRowHeight","singleRowRef","midRowRef","totalLen","getNodesLen","mergedChildren","_midHeight","nextStartLen","nextEndLen","nextMidLen","sliceNodeList","measureStyle","renderMeasure","zIndex","wordBreak","mergedProps","navigate","TITLE_ELE_LIST","tupleNum","_props$level","_button","_button2","_ActionButton","_getRenderPropValue","cancelButtonProps","_props$showCancel","showCancel","getRenderPropValue","buttonProps","convertLegacyProps","actionFn","quitOnNullishReturnValue","emitEvent","longDateFormat","yearStart","weeks","weekYear","isoWeekYear","isoWeek","offsetName","_menu","_BreadcrumbItem","_BreadcrumbSeparator","defaultItemRender","paths","breadcrumbName","paramsKeys","getBreadcrumbName","addChildPath","childPath","originalPaths","crumbs","_a$separator","_a$itemRender","itemRender","_a$params","overlay","itemProps","breadcrumbClassName","Separator","_dropdown","BreadcrumbItem","_props$separator","dropdownProps","breadcrumbItem","mergeDropDownProps","renderBreadcrumbNode","__ANT_BREADCRUMB_ITEM","BreadcrumbSeparator","__ANT_BREADCRUMB_SEPARATOR","WarningFilled","fillRule","stroke","strokeWidth","strokeLinecap","strokeLinejoin","webpackAsyncContext","req","originalFunctionToString","States","FunctionToString","setupOnce","SyncPromise","executor","_state","PENDING","_resolve","_setResult","RESOLVED","_reject","REJECTED","_value","_executeHandlers","_attachHandler","cachedHandlers","onfulfilled","onrejected","collection","counter","resolvedCollection","onfinally","isRejected","Scope","_notifyingListeners","_scopeListeners","_eventProcessors","_breadcrumbs","_user","_tags","_extra","_contexts","newScope","_level","_span","_session","_transactionName","_fingerprint","addScopeListener","addEventProcessor","setUser","_notifyScopeListeners","getUser","setTags","tags","setTag","setExtras","extras","setExtra","setFingerprint","fingerprint","setLevel","setTransactionName","setTransaction","setContext","setSpan","getSpan","getTransaction","_d","transaction","spanRecorder","spans","setSession","getSession","captureContext","updatedScope","contexts","addBreadcrumb","breadcrumb","maxBreadcrumbs","mergedBreadcrumb","timestamp","clearBreadcrumbs","applyToEvent","hint","trace","getTraceContext","transactionName","_applyFingerprint","_notifyEventProcessors","getGlobalEventProcessors","processors","processor","final","__SENTRY__","globalEventProcessors","addGlobalEventProcessor","PREFIX","Logger","_enabled","disable","enable","SessionStatus","logger","Session","sid","started","Ok","ip_address","ipAddress","did","username","release","environment","Exited","user_agent","Hub","client","_version","_stack","getStackTop","bindClient","isOlderThan","setupIntegrations","pushScope","getScope","getStack","getClient","popScope","withScope","captureException","eventId","_lastEventId","finalHint","syntheticException","originalException","_invokeClient","captureMessage","captureEvent","lastEventId","getOptions","beforeBreadcrumb","finalBreadcrumb","configureScope","run","oldHub","makeMain","getIntegration","integration","startSpan","_callExtensionMethod","startTransaction","customSamplingContext","traceHeaders","startSession","endSession","captureSession","getMainCarrier","sentry","extensions","getHubFromCarrier","setHubOnCarrier","getCurrentHub","hasHubOnCarrier","activeDomain","domain","registryHubTopStack","getHubFromActiveDomain","DEFAULT_IGNORE_ERRORS","InboundFilters","_options","clientOptions","_mergeOptions","_shouldDropEvent","_isSentryError","_isIgnoredError","_isDeniedUrl","_getEventFilterUrl","_isAllowedUrl","ignoreInternal","ignoreErrors","_getPossibleEventMessages","denyUrls","allowUrls","whitelistUrls","blacklistUrls","stacktrace","frames_1","frames","filename","frames_2","_super","SentryError","_newTarget","DSN_REGEX","Dsn","_fromString","_fromComponents","_validate","withPassword","pass","port","projectId","projectMatch","ERROR_MESSAGE","installedIntegrations","integrations","defaultIntegrations","userIntegrations","userIntegrationsNames_1","pickedIntegrationsNames_1","defaultIntegration","userIntegration","integrationsNames","getIntegrationsToSetup","setupIntegration","BaseClient","backendClass","_integrations","_processing","_backend","dsn","_dsn","_process","_getBackend","eventFromException","_captureEvent","promisedEvent","eventFromMessage","_sendSession","getDsn","flush","_isClientProcessing","getTransport","transportFlushed","_isEnabled","_updateSessionFromEvent","crashed","errored","exceptions","exceptions_1","exceptions_1_1","handled","Crashed","sendSession","ticked","interval","_prepareEvent","normalizeDepth","prepared","_applyClientOptions","_applyIntegrationsMetadata","finalScope","_normalizeEvent","dist","maxValueLength","sdkInfo","sdk","integrationsArray","_sendEvent","sendEvent","_processEvent","finalEvent","beforeSend","sampleRate","isTransaction","__sentry__","beforeSendResult","processedEvent","fromHttpCode","RateLimit","Invalid","Failed","Severity","NoopTransport","Skipped","BaseBackend","_transport","_setupTransport","_exception","_hint","_message","supportsFetch","Headers","Request","Response","isNativeFetch","supportsReferrerPolicy","referrerPolicy","fromString","Debug","Fatal","Critical","Log","gecko","winjs","geckoEval","chromeEval","reactMinifiedRegexp","computeStackTrace","ex","popSize","parts","opera10Regex","opera11Regex","lines","extractMessage","computeStackTraceFromStacktraceProp","popFrames","submatch","isNative","columnNumber","computeStackTraceFromStackProp","failed","exceptionFromStacktrace","prepareFramesForEvent","eventFromStacktrace","localStack","firstFrameFunction","lastFrameFunction","frame","function","in_app","lineno","eventFromUnknownInput","domException","name_1","eventFromString","rejection","__serialized__","eventFromPlainObject","synthetic","attachStacktrace","sessionToSentryRequest","api","sent_at","getEnvelopeEndpointWithUrlEncodedAuth","eventToSentryRequest","samplingMethod","__sentry_samplingMethod","__sentry_sampleRate","otherTags","useEnvelope","getStoreEndpointWithUrlEncodedAuth","sample_rates","rate","API","_dsnObject","getBaseApiEndpoint","getStoreEndpoint","_getIngestEndpoint","_encodedAuth","_getEnvelopeEndpoint","getStoreEndpointPath","getRequestHeaders","clientName","clientVersion","getReportDialogEndpoint","dialogOptions","encodedOptions","auth","sentry_key","sentry_version","PromiseBuffer","_limit","_buffer","drain","capturedSetTimeout","BaseTransport","_rateLimits","_api","_handleResponse","_handleRateLimit","_disabledUntil","_isRateLimited","e_2","rlHeader","raHeader","parameters","_f","e_2_1","FetchTransport","_sendRequest","sentryRequest","originalPayload","fetchParameters","XHRTransport","onreadystatechange","readyState","getResponseHeader","setRequestHeader","BrowserBackend","transportOptions","transport","callOnHub","ignoreOnError","shouldIgnoreOnError","ignoreNextOnError","__sentry_wrapped__","sentryWrapped","wrappedArguments","arg","handleEvent","injectReportDialog","async","lastHref","instrumented","instrument","originalConsoleLevel","triggerHandlers","instrumentConsole","domEventHandler","keypressEventHandler","innerOriginal","instrumentDOM","requestKeys","requestValues","xhrproto","originalOpen","__sentry_xhr__","__sentry_own_request__","onreadystatechangeHandler","status_code","requestPos","args_1","endTimestamp","startTimestamp","readyStateArgs","originalSend","instrumentXHR","doc","sandbox","contentWindow","supportsNativeFetch","originalFetch","handlerData","fetchData","getFetchMethod","getFetchUrl","instrumentFetch","chrome","isChromePackagedApp","app","runtime","hasHistoryApi","pushState","replaceState","oldOnPopState","onpopstate","historyReplacementFunction","originalHistoryFunction","instrumentHistory","_oldOnErrorHandler","_oldOnUnhandledRejectionHandler","onunhandledrejection","addInstrumentationHandler","fetchArgs","keypressTimeout","lastCapturedEvent","debounceTimer","Breadcrumbs","addSentryBreadcrumb","_consoleBreadcrumb","_domBreadcrumb","_xhrBreadcrumb","_fetchBreadcrumb","_historyBreadcrumb","parsedLoc","parsedFrom","parsedTo","BrowserClient","showReportDialog","platform","packages","DEFAULT_EVENT_TARGET","TryCatch","eventTarget","_wrapTimeFunction","_wrapRAF","_wrapXHR","_wrapEventTarget","originalCallback","originalRemoveEventListener","wrappedEventHandler","originalEventHandler","xmlHttpRequestProps","wrapOptions","GlobalHandlers","_onErrorHandlerInstalled","_onUnhandledRejectionHandlerInstalled","stackTraceLimit","_installGlobalOnErrorHandler","_installGlobalOnUnhandledRejectionHandler","currentHub","hasIntegration","isFailedOwnDelivery","_eventFromIncompleteOnError","_enhanceEventWithInitialFrame","_eventFromRejectionWithPrimitive","LinkedErrors","limit","_handler","linkedErrors","_walkErrorTree","UserAgent","referrer","Referer","window_1","SENTRY_RELEASE","autoSessionTracking","clientClass","initAndBind","loadResolved","fcpResolved","possiblyEndSession","resolveWindowLoaded","po","PerformanceObserver","entryList","getEntries","startTime","firstHiddenTime_1","visibilityState","timeStamp","once","buffered","startSessionTracking","buildRootReducer","allReducers","appReducer","combineReducers","BootManager","preBoot","inject","_storeProvider","_historyProvider","Router","_routes","initialState","initialReduxState","reducers","windowIfDefined","devToolsExtension","middlewares","compose","applyMiddleware","thunk","createStore","configureStore","_reducers","beforeInject","Application","ReactDOM","afterInject","MissingStoreError","StoreProvider","ClientSideError","DOMError","HistoryProvider","elements","baseUrl","_history","createBrowserHistory","basename","baseReducers","defaultCrematoryPreferencesState","coreReducers","clinicSelectInfos","clinicPricesForClinicCommunal","clinicPricesForClinicSemiPrivate","clinicPricesForClinicPrivate","clinicPricesForClinicSpecialCommunal","clinicPricesForClinicStorage","clinicPricesForClinicProductsOnly","clinicPricesForRetailCommunal","clinicPricesForRetailSemiPrivate","clinicPricesForRetailPrivate","clinicPricesForRetailSpecialCommunal","clinicPricesForRetailStorage","clinicPricesForRetailProductsOnly","comments","getCommentsReducer","crematoryInvoices","crematoryAllPrices","crematoryPricesForClinicCommunal","crematoryPricesForClinicSpecialCommunal","crematoryPricesForClinicSemiPrivate","crematoryPricesForClinicStorage","crematoryPricesForClinicPrivate","crematoryPricesForClinicProductsOnly","crematoryPricesForRetailCommunal","crematoryPricesForRetailSpecialCommunal","crematoryPricesForRetailPrivate","crematoryPricesForRetailSemiPrivate","crematoryPricesForRetailStorage","crematoryPricesForRetailProductsOnly","crematoryPreferences","REQUESTCREMATORYPREFERENCES","SETCREMATORYPREFERENCES","REMOVECREMATORYPREFERENCES","getDeliveryTypeReducer","crematoryUserDashboardServices","SpecialService","crematoryUserDashboardStatus","notLogged","petStatusDetails","petSpecialServiceDetails","localStore","hasError","unlisten","listen","errorInfo","aria-hidden","SentryErrorBoundaryInner","_superPropGet","Sentry","SentryErrorBoundary","consoleLogger","concreteLogger","forward","_len3","_key3","_len4","_key4","lvl","debugOnly","moduleName","baseLogger","EventEmitter","observers","events","numListeners","numTimesAdded","defer","rej","makeString","lastOfPathSeparatorRegExp","cleanKey","canNotTraverseDeeper","getLastOfPath","stackIndex","last","getPathWithDefaults","defaultData","deepExtend","overwrite","regexEscape","_entityMap","chars","looksLikeObjectPathRegExpCache","capacity","regExpMap","regExpQueue","regExpFromCache","regExpNew","deepFind","keySeparator","nextPath","getCleanedCode","ResourceStore","super","silent","addNamespaces","emit","addResource","deep","skipCopy","pack","removeNamespaces","getResource","compatibilityAPI","getDataByLanguage","postProcessor","checkedLoadedFor","Translator","interpolation","nsSeparator","wouldCheckForNsInKey","seemsNaturalLanguage","userDefinedKeySeparator","userDefinedNsSeparator","possibleChars","getRegExp","matched","ki","looksLikeObjectPath","interpolator","nestingRegexp","lastKey","overloadTranslationOptionHandler","returnDetails","extractFromKey","appendNamespaceToCIMode","usedKey","exactUsedKey","usedLng","usedNS","usedParams","getUsedParamsDetails","resUsedKey","resExactUsedKey","resType","joinArrays","handleAsObjectInI18nFormat","i18nFormat","handleAsObject","returnObjects","returnedObjectHandler","resTypeIsArray","newKeyToUse","deepKey","extendTranslation","usedDefault","needsPluralHandling","hasDefaultValue","defaultValueSuffix","pluralResolver","getSuffix","defaultValueSuffixOrdinalFallback","needsZeroSuffixLookup","shouldUseIntlApi","pluralSeparator","isValidLookup","resForMissing","missingKeyNoValueFallbackToKey","updateMissing","fk","lngs","fallbackLngs","languageUtils","getFallbackCodes","saveMissingTo","toResolveHierarchy","specificDefaultValue","defaultForMissing","missingKeyHandler","saveMissing","saveMissingPlurals","suffixes","getSuffixes","appendNamespaceToMissingKey","parseMissingKeyHandler","defaultVariables","skipInterpolation","skipOnVariables","nestBef","nb","na","nest","postProcess","postProcessorNames","applyPostProcessor","postProcessPassResolved","i18nResolved","found","extracted","fallbackNS","needsContextHandling","codes","utils","finalKeys","addLookupKeys","pluralSuffix","zeroSuffix","ordinalPrefix","contextKey","contextSeparator","possibleKey","returnNull","returnEmptyString","resourceStore","optionsKeys","useOptionsReplaceForData","capitalize","charAt","LanguageUtil","supportedLngs","formatLanguageCode","specialCases","lowerCaseLng","part","cleanCode","nonExplicitSupportedLngs","getLanguagePartFromCode","cleanedLng","isSupportedCode","lngOnly","supportedLng","fallbacks","getScriptPartFromCode","fallbackCode","fallbackCodes","addCode","fc","sets","nr","_rulesPluralsTypes","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","nonIntlVersions","intlVersions","suffixesOrder","zero","one","two","few","many","PluralResolver","compatibilityJSON","Intl","PluralRules","rules","numbers","plurals","createRules","pluralRulesCache","cleanedCode","rule","getRule","resolvedOptions","pluralCategories","pluralCategory1","pluralCategory2","pluralCategory","getSuffixRetroCompatible","noAbs","simplifyPluralSuffix","returnSuffix","deepFindWithDefaults","regexSafe","Interpolator","escapeValue","escape","escape$1","useRawValueToEscape","prefixEscaped","suffixEscaped","formatSeparator","unescapeSuffix","unescapePrefix","nestingPrefix","nestingPrefixEscaped","nestingSuffix","nestingSuffixEscaped","nestingOptionsSeparator","maxReplaces","alwaysFormat","resetRegExp","getOrResetRegExp","existingRegExp","regexpUnescape","replaces","handleFormat","interpolationkey","missingInterpolationHandler","safeValue","todo","matchedVar","temp","clonedOptions","handleHasOptions","inheritedOptions","sep","optionsString","matchedSingleQuotes","matchedDoubleQuotes","formatters","doReduce","createCachedFormatter","optForCache","formatParams","Formatter","opt","NumberFormat","currency","datetime","DateTimeFormat","relativetime","RelativeTimeFormat","ListFormat","iOpts","mem","optStr","trimmedKey","parseFormatStr","formatted","valOptions","Connector","waitingReads","maxParallelReads","readingCalls","maxRetries","retryTimeout","toLoad","toLoadLanguages","toLoadNamespaces","hasAllNamespaces","pendingCount","addResourceBundle","pushPath","removePending","loadedKeys","fcName","tried","resolver","queueLoad","loadOne","prepareLoading","fallbackValue","clb","initImmediate","tDescription","transformOptions","I18n","inst","external","getOwnPropertyNames","getPrototypeOf","isClone","isInitializing","defOpts","createClassOnDemand","ClassOrObject","lu","languageDetector","detection","deferred","changeLanguage","usedCallback","resolvedLanguage","setResolvedLanguage","addPostProcessor","li","lngInLngs","hasLanguageSomeTranslations","setLngProps","setLng","getBestMatchFromCodes","cacheUserLanguage","loadResources","detect","fixedT","resultKey","exists","preResult","preloaded","newLngs","forkResourceStore","mergedOptions","createInstance","dir","reloadResources","use","setDefaultNamespace","loadLanguages","InternationalizationController","_useTranslation","_BaseBootManager","sentryKey","i18next","resourcesToBackend","translation","EnUsSchema","BaseBootManager","boot","supportBigInt","BigInt","trimNumber","numStr","negative","trimStr","splitNumber","integerStr","decimalStr","negativeStr","fullStr","isE","getNumberPrecision","precision","decimalMatch","validateNumber","num2str","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","getDecupleSteps","step","stepStr","NumberDecimal","empty","isInvalidate","maxPrecision","negate","safe","BigIntDecimal","decimal","decimalLen","nan","mergedValue","trimRet","padStart","decimalLength","getMark","getIntegerStr","getDecimalStr","padEnd","maxDecimalLength","_trimNumber","alignDecimal","hydrateValueStr","getMiniDecimal","separatorStr","cutOnly","_trimNumber2","precisionDecimalStr","numberWithoutDecimal","advancedNum","advancedDecimal","repeat","StepHandler","upNode","downNode","upDisabled","downDisabled","onStep","stepTimeoutRef","onStepRef","onStepMouseDown","up","loopStep","onStopStep","handlerClassName","upClassName","downClassName","sharedHandlerProps","unselectable","onMouseDown","getDecimalValue","stringMode","decimalValue","_props$prefixCls","_props$step","_props$controls","decimalSeparator","onInput","onPressEnter","inputClassName","userTypingRef","compositionRef","shiftKeyRef","setDecimalValue","getPrecision","userTyping","mergedParser","parsedStr","inputValueRef","mergedFormatter","mergedPrecision","initValue","inputValue","setInternalInputValue","setInputValue","selectionRef","idRef","cleanUp","maxDecimal","minDecimal","lessEquals","_useCursor","selectionStart","selectionEnd","beforeTxt","afterTxt","_selectionRef$current","startPos","beforeLastChar","newIndex","_useCursor2","recordCursor","restoreCursor","getRangeValue","isInRange","triggerValueUpdate","newDecimal","updateValue","isRangeValidate","equals","onNextPromise","collectInputValue","inputStr","finalDecimal","nextInputStr","onInternalStep","_inputRef$current","stepDecimal","flushInputValue","parsedValue","formatValue","currentParsedValue","which","UP","DOWN","onBeforeInput","autoComplete","suffixCls","ConfigConsumer","isObject","BEGIN_DRAG","HOVER","DROP","END_DRAG","setClientOffset","sourceClientOffset","ResetCoordinatesAction","createBeginDrag","sourceIds","getSource","verifyInvariants","canDragSource","getDraggableSource","verifyGetSourceClientOffsetIsFunction","verifyItemIsObject","pinSource","getSourceType","isSourcePublic","createDrop","didDrop","targetIds","getTargetIds","getDroppableTargets","dropResult","getTarget","verifyDropResultType","getDropResult","determineDropResult","createEndDrag","verifyIsDragging","unpinSource","matchesType","targetType","draggedItemType","createHover","targetIdsArg","verifyTargetIdsIsArray","getTargetType","removeNonMatchingTargetIds","checkInvariants","hoverAllTargets","createPublishDragSource","createDragDropActions","boundActions","actionCreator","isSetUp","handleRefCountChange","shouldSetUp","refCount","setup","teardown","NONE","ALL","__IS_NONE__","__IS_ALL__","handlerIds","prevStateId","currentStateId","dirtyIds","areDirty","dirtyHandlerIds","previousState","dragOffset","canDrag","canDrop","shallow","dragOperation","initialClientOffset","initialSourceClientOffset","getDifferenceFromInitialOffset","RawTask","asapQueue","requestFlush","flushing","pendingErrors","currentIndex","scan","newLength","registerPendingError","requestErrorThrow","taskFactory","tasks","freeTasks","t1","REMOVE_TARGET","validateType","allowArray","HandlerRole","nextUniqueId","getNextHandlerId","SOURCE","TARGET","parseRoleFromHandlerId","handlerId","mapContainsValue","searchValue","isDone","validateSourceContract","addHandler","validateTargetContract","addTarget","dragSources","dropTargets","includePinned","isSourceId","pinnedSourceId","pinnedSource","isTargetId","enqueueTask","removeTarget","strictEquality","prevTargetIds","xor","areArraysEqual","prevInnermostTargetId","innermostTargetId","offsetA","offsetB","createDragDropManager","backendFactory","debugMode","reduxDevTools","__REDUX_DEVTOOLS_EXTENSION__","instanceId","makeStoreInstance","receiveBackend","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","INSTANCE_SYM","_param","isGlobalInstance","getGlobalContext","ctx","createSingletonDndContext","getDndContextValue","WrappedComponent","I18nextWithTranslation","_useTranslation2","passDownProps","withRef","dateTimestampSource","nowSeconds","platformPerformance","performance","getNodePerformance","timeOrigin","getBrowserPerformance","timestampSource","dateTimestampInSeconds","timing","navigationStart","replaceClassName","origClass","classToRemove","forceReflow","Transition","initialStatus","appear","isMounting","appearStatus","nextCallback","updateStatus","nextStatus","cancelNextCallback","getTimeouts","exit","mounting","nodeRef","findDOMNode","performEnter","performExit","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","onEntered","onEnter","onEntering","onExit","onExiting","onExited","setNextCallback","doesNotHaveTimeoutOrListener","addEndListener","maybeNextCallback","childProps","TransitionGroupContext","propTypes","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","baseVal","appliedClasses","_this$resolveArgument","resolveArguments","removeClasses","addClass","_this$resolveArgument2","_this$resolveArgument3","getClassNames","isStringClassNames","baseClassName","doneClassName","phase","hasClass","_addClass","_this$appliedClasses$"],"mappings":";aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GAKAK,EAAI,EAAGC,EAAW,GACpCD,EAAIF,EAASI,OAAQF,IACzBH,EAAUC,EAASE,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBV,IAAYU,EAAgBV,IACpFI,EAASO,KAAKD,EAAgB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QAAS,SAAChW,GACT,QAAIA,WAAS7nB,cAAe6nB,aAAO,EAAPA,EAAS7nB,cAAe,UACvBrD,KAAzBkrB,aAAO,EAAPA,EAAS7nB,eAA6B6nB,aAAO,EAAPA,EAAS7nB,aAAc,GAE1DqkC,QAAQ,KAEhB3iC,MAAO+O,IACPI,eAAgBI,KAEjBgvB,QAAS,CACRlX,SAAU,YACVta,QAASS,IACTnB,YACArM,MAAO+O,IACPI,eAAgBK,KAEjB1M,gBAAiB,CAChBukB,SAAU,qBACVta,QAASgB,IACT1B,YACArM,MAAO+O,IACPI,oBAEDuC,eAAgB,CACf2V,SAAU,oBACVta,QAASmB,IACT7B,YACArM,MAAO+O,IACPI,oBAEDqvB,oBAAqB,CACpBnX,SAAU,YACVta,QAAS,WAAF,OAAQ,GACfV,YACArM,MAAO+O,IACPI,oBAED/H,SAAU,CACTigB,SAAU,oBACVta,QAASW,IACTrB,YACArM,MAAO+O,IACPI,eAAgBM,KAEjBgvB,eAAgB,CACfpX,SAAU,oBACVta,QAASqB,IACT/B,YACArM,MAAO+O,IACPI,eAAgBO,KAEjBsvB,iBAAkB,CACjB3X,SAAU,oBACVta,QAASK,IACTf,YACArM,MAAO+O,IACPI,oBAEDuvB,gBAAiB,CAChBrX,SAAU,qBACVta,QAASwB,IACTlC,YACArM,MAAO+O,IACPI,oBAEDwvB,UAAW,CACVtX,SAAU,cACVta,QAAS0B,IACTpC,YACArM,MAAO+O,IACPI,oBAEDmC,UAAW,CACV+V,SAAU,YACVta,QAAS,WAAF,OAAQ,GACfV,YACArM,MAAO+O,IACPI,eAAgBQ,KAEjBqC,eAAgB,CACfqV,SAAU,oBACVta,QAASyB,IACTnC,YACArM,MAAO+O,IACPI,oBAEDyvB,UAAW,CACVvX,SAAU,eACVta,QAAS2B,IACTrC,YACArM,MAAO+O,IACPI,oBAED0vB,MAAO,CACNxX,SAAU,WACVta,QAAS4B,IACTtC,YACArM,MAAO+O,IACPI,oBAED2vB,OAAQ,CACPzX,SAAU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AAK,iKAAoK,CAAE,IAAO,OAAQ,MAAS,CAAE,EAAK,wVAA4V,KAAQ,OAAQ,MAAS,Y,QCM/xB,EAAe,SAAsBnyH,EAAOsB,GAC9C,OAAoB,gBAAoB8lE,EAAA,EAAU,kBAAS,GAAIpnE,EAAO,CACpEsB,IAAKA,EACLrC,KAAM,MAKNkzH,EAAuB,aAAiB,GAI7B,O,+CCjBA,EADK,CAAE,KAAQ,CAAE,IAAO,MAAO,MAAS,CAAE,YAAa,UAAW,QAAW,gBAAiB,UAAa,SAAW,SAAY,CAAC,CAAE,IAAO,OAAQ,MAAS,CAAE,EAAK,srBAA0rB,KAAQ,QAAS,MAAS,Y,QCMn4B,EAAgB,SAAuBnyH,EAAOsB,GAChD,OAAoB,gBAAoB8lE,EAAA,EAAU,kBAAS,GAAIpnE,EAAO,CACpEsB,IAAKA,EACLrC,KAAM,MAKNkzH,EAAuB,aAAiB,GAI7B,O,+CCjBA,EADO,CAAE,KAAQ,CAAE,IAAO,MAAO,MAAS,CAAE,QAAW,gBAAiB,UAAa,SAAW,SAAY,CAAC,CAAE,IAAO,OAAQ,MAAS,CAAE,EAAK,kjCAAsjC,KAAQ,WAAY,MAAS,Y,QCM5uC,EAAkB,SAAyBnyH,EAAOsB,GACpD,OAAoB,gBAAoB8lE,EAAA,EAAU,kBAAS,GAAIpnE,EAAO,CACpEsB,IAAKA,EACLrC,KAAM,MAKNkzH,EAAuB,aAAiB,GAI7B","file":"main-client.44bdd547d5ae8f44b2ae.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t};\n\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t88: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t88: 0\n \t};\n\n\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"chunks/\" + ({\"0\":\"common\",\"1\":\"ClinicEditorPage\",\"2\":\"CrematoryInvoicesTab~PetsPage\",\"3\":\"PetSpeciesPage\",\"4\":\"vendors~InvoiceEditor~LocationReportsPage\",\"5\":\"AdminClinics\",\"6\":\"CarriersPage\",\"7\":\"ChemicalsTableBuilderPage\",\"8\":\"ClinicDefaultUrnList\",\"9\":\"ClinicDiscounts\",\"10\":\"ClinicLocations\",\"11\":\"ClinicPetsPage\",\"12\":\"ClinicPrices\",\"13\":\"ClinicUsersPage\",\"14\":\"ClinicsPage\",\"15\":\"ConfirmPage\",\"16\":\"CrematoriesPage\",\"17\":\"CrematoryBatchEditor\",\"18\":\"CrematoryChemicalsTablesTab\",\"19\":\"CrematoryCustomersTab\",\"20\":\"CrematoryInfoTab\",\"21\":\"CrematoryInvoicesTab\",\"22\":\"CrematoryMachinesTab\",\"23\":\"CrematoryPreferencesTab\",\"24\":\"CrematoryStatusOrderEditorTab\",\"25\":\"CrematoryUserDashboard\",\"26\":\"CrematoryUsersPage\",\"27\":\"DashboardPage\",\"28\":\"DeliveryTypesPage\",\"29\":\"Gender\",\"30\":\"InventoryTable\",\"31\":\"InvoiceEditor\",\"32\":\"LocationReportsPage\",\"33\":\"LoginPage\",\"34\":\"MeasuringUnits\",\"35\":\"NLStatelessPage\",\"36\":\"NotFoundPage\",\"37\":\"PetEditor\",\"38\":\"PetListSpecialServiceDetails\",\"39\":\"PetListStatusDetails\",\"40\":\"PetsPage\",\"41\":\"ProfilePage\",\"42\":\"PurchaseOrderEditor\",\"43\":\"RecoverPage\",\"44\":\"RegisterPage\",\"45\":\"SpecialServicesPage\",\"46\":\"StatusesPage\",\"47\":\"UserEditorPage\",\"48\":\"UsersPage\",\"49\":\"app-CrematoryDependentFeatures-services\",\"50\":\"app-UserDependentPermissions-services\",\"51\":\"app-components-Pages-Admin-BackgroundServices-BackgroundServices\",\"52\":\"app-components-Pages-Admin-Complaints-ComplaintEditor-ComplaintEditor\",\"53\":\"app-components-Pages-Admin-Complaints-Complaints\",\"54\":\"app-components-Pages-Admin-Countries-Countries\",\"55\":\"app-components-Pages-Admin-Countries-CountriesEditor-CountriesEditor\",\"56\":\"app-components-Pages-Admin-DemoRequest-DemoRequest\",\"57\":\"app-components-Pages-Admin-LabelPaper-LabelPaperEditor-LabelPaperEditor\",\"58\":\"app-components-Pages-Admin-ServiceType-ServiceTypes\",\"59\":\"app-components-Pages-Clinics-ClinicManagerPreferences\",\"60\":\"app-components-Pages-Clinics-ClinicTabs-ClinicTypes-ClinicTypes\",\"61\":\"app-components-Pages-Clinics-ClinicTabs-Routes-Routes\",\"62\":\"app-components-Pages-Crematories-CrematoryEditorTabs-AdjustmentCode\",\"63\":\"app-components-Pages-Crematories-CrematoryEditorTabs-InventoryTemplate\",\"64\":\"app-components-Pages-Crematories-CrematoryEditorTabs-PickupServices\",\"65\":\"app-components-Pages-Crematories-CrematoryEditorTabs-ServiceTypePreferences-ServiceTypePreferences\",\"66\":\"app-components-Pages-Dashboard-ClinicDashboard\",\"67\":\"app-components-Pages-Inventory-Adjustments-Adjustments\",\"68\":\"app-components-Pages-Inventory-StoreEntries-StoreEntryEditor-StoreEntryEditor\",\"69\":\"app-components-Pages-PetEditor-OldPetEditorTabs-OldPetInventoryUsage\",\"70\":\"app-components-Pages-PetEditor-OldPetEditorTabs-OldPetStatusLog\",\"71\":\"app-components-Pages-PetEditor-OldPetEditorTabs-PetImportNotes-OldPetImportNotes\",\"72\":\"app-components-Pages-Pets-CoordinateBatches-CoordinateBatches\",\"73\":\"app-components-Pages-Pets-Imports-ImportDetails\",\"74\":\"app-components-Pages-Pets-Imports-Imports\",\"75\":\"app-components-Pages-Pets-Labels-PetLabels\",\"76\":\"app-components-Pages-Quickbooks-Quickbooks\",\"77\":\"app-components-Pages-Quickbooks-QuickbooksTabs-Customers-Customers\",\"78\":\"app-components-Pages-Quickbooks-QuickbooksTabs-Items-Items\",\"79\":\"app-components-Pages-Quickbooks-QuickbooksTabs-Items-QuickbooksItemEditor-QuickbooksItemEditor\",\"80\":\"app-components-Pages-Reports-AverageTurnAroundReport-AverageTurnAroundDetails\",\"81\":\"app-components-Pages-Reports-AverageTurnAroundReport-AverageTurnAroundReport\",\"82\":\"app-components-Pages-Reports-ClinicInvoiceReport\",\"83\":\"app-components-Pages-Reports-IncomeReportList\",\"84\":\"app-components-Pages-Reports-ReportsList\",\"85\":\"app-components-Pages-Reports-UrnReport-UrnReport\",\"86\":\"app-components-Pages-Users-ManageApiKeys-ApiKeys\",\"87\":\"common-react-components-Forms-Comment-CommentTree\",\"89\":\"signalR\",\"90\":\"vendors~InvoiceEditor\",\"91\":\"vendors~PetEditor\",\"92\":\"vendors~signalR\"}[chunkId]||chunkId) + \".chunk.\" + \"44bdd547d5ae8f44b2ae\" + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"0\":1,\"6\":1,\"11\":1,\"16\":1,\"23\":1,\"24\":1,\"27\":1,\"30\":1,\"31\":1,\"32\":1,\"41\":1,\"56\":1,\"63\":1,\"68\":1,\"72\":1,\"75\":1,\"79\":1,\"87\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"styles/\" + ({\"0\":\"common\",\"1\":\"ClinicEditorPage\",\"2\":\"CrematoryInvoicesTab~PetsPage\",\"3\":\"PetSpeciesPage\",\"4\":\"vendors~InvoiceEditor~LocationReportsPage\",\"5\":\"AdminClinics\",\"6\":\"CarriersPage\",\"7\":\"ChemicalsTableBuilderPage\",\"8\":\"ClinicDefaultUrnList\",\"9\":\"ClinicDiscounts\",\"10\":\"ClinicLocations\",\"11\":\"ClinicPetsPage\",\"12\":\"ClinicPrices\",\"13\":\"ClinicUsersPage\",\"14\":\"ClinicsPage\",\"15\":\"ConfirmPage\",\"16\":\"CrematoriesPage\",\"17\":\"CrematoryBatchEditor\",\"18\":\"CrematoryChemicalsTablesTab\",\"19\":\"CrematoryCustomersTab\",\"20\":\"CrematoryInfoTab\",\"21\":\"CrematoryInvoicesTab\",\"22\":\"CrematoryMachinesTab\",\"23\":\"CrematoryPreferencesTab\",\"24\":\"CrematoryStatusOrderEditorTab\",\"25\":\"CrematoryUserDashboard\",\"26\":\"CrematoryUsersPage\",\"27\":\"DashboardPage\",\"28\":\"DeliveryTypesPage\",\"29\":\"Gender\",\"30\":\"InventoryTable\",\"31\":\"InvoiceEditor\",\"32\":\"LocationReportsPage\",\"33\":\"LoginPage\",\"34\":\"MeasuringUnits\",\"35\":\"NLStatelessPage\",\"36\":\"NotFoundPage\",\"37\":\"PetEditor\",\"38\":\"PetListSpecialServiceDetails\",\"39\":\"PetListStatusDetails\",\"40\":\"PetsPage\",\"41\":\"ProfilePage\",\"42\":\"PurchaseOrderEditor\",\"43\":\"RecoverPage\",\"44\":\"RegisterPage\",\"45\":\"SpecialServicesPage\",\"46\":\"StatusesPage\",\"47\":\"UserEditorPage\",\"48\":\"UsersPage\",\"49\":\"app-CrematoryDependentFeatures-services\",\"50\":\"app-UserDependentPermissions-services\",\"51\":\"app-components-Pages-Admin-BackgroundServices-BackgroundServices\",\"52\":\"app-components-Pages-Admin-Complaints-ComplaintEditor-ComplaintEditor\",\"53\":\"app-components-Pages-Admin-Complaints-Complaints\",\"54\":\"app-components-Pages-Admin-Countries-Countries\",\"55\":\"app-components-Pages-Admin-Countries-CountriesEditor-CountriesEditor\",\"56\":\"app-components-Pages-Admin-DemoRequest-DemoRequest\",\"57\":\"app-components-Pages-Admin-LabelPaper-LabelPaperEditor-LabelPaperEditor\",\"58\":\"app-components-Pages-Admin-ServiceType-ServiceTypes\",\"59\":\"app-components-Pages-Clinics-ClinicManagerPreferences\",\"60\":\"app-components-Pages-Clinics-ClinicTabs-ClinicTypes-ClinicTypes\",\"61\":\"app-components-Pages-Clinics-ClinicTabs-Routes-Routes\",\"62\":\"app-components-Pages-Crematories-CrematoryEditorTabs-AdjustmentCode\",\"63\":\"app-components-Pages-Crematories-CrematoryEditorTabs-InventoryTemplate\",\"64\":\"app-components-Pages-Crematories-CrematoryEditorTabs-PickupServices\",\"65\":\"app-components-Pages-Crematories-CrematoryEditorTabs-ServiceTypePreferences-ServiceTypePreferences\",\"66\":\"app-components-Pages-Dashboard-ClinicDashboard\",\"67\":\"app-components-Pages-Inventory-Adjustments-Adjustments\",\"68\":\"app-components-Pages-Inventory-StoreEntries-StoreEntryEditor-StoreEntryEditor\",\"69\":\"app-components-Pages-PetEditor-OldPetEditorTabs-OldPetInventoryUsage\",\"70\":\"app-components-Pages-PetEditor-OldPetEditorTabs-OldPetStatusLog\",\"71\":\"app-components-Pages-PetEditor-OldPetEditorTabs-PetImportNotes-OldPetImportNotes\",\"72\":\"app-components-Pages-Pets-CoordinateBatches-CoordinateBatches\",\"73\":\"app-components-Pages-Pets-Imports-ImportDetails\",\"74\":\"app-components-Pages-Pets-Imports-Imports\",\"75\":\"app-components-Pages-Pets-Labels-PetLabels\",\"76\":\"app-components-Pages-Quickbooks-Quickbooks\",\"77\":\"app-components-Pages-Quickbooks-QuickbooksTabs-Customers-Customers\",\"78\":\"app-components-Pages-Quickbooks-QuickbooksTabs-Items-Items\",\"79\":\"app-components-Pages-Quickbooks-QuickbooksTabs-Items-QuickbooksItemEditor-QuickbooksItemEditor\",\"80\":\"app-components-Pages-Reports-AverageTurnAroundReport-AverageTurnAroundDetails\",\"81\":\"app-components-Pages-Reports-AverageTurnAroundReport-AverageTurnAroundReport\",\"82\":\"app-components-Pages-Reports-ClinicInvoiceReport\",\"83\":\"app-components-Pages-Reports-IncomeReportList\",\"84\":\"app-components-Pages-Reports-ReportsList\",\"85\":\"app-components-Pages-Reports-UrnReport-UrnReport\",\"86\":\"app-components-Pages-Users-ManageApiKeys-ApiKeys\",\"87\":\"common-react-components-Forms-Comment-CommentTree\",\"89\":\"signalR\",\"90\":\"vendors~InvoiceEditor\",\"91\":\"vendors~PetEditor\",\"92\":\"vendors~signalR\"}[chunkId]||chunkId) + \".\" + \"44bdd547d5ae8f44b2ae\" + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"__LOADABLE_LOADED_CHUNKS__\"] = window[\"__LOADABLE_LOADED_CHUNKS__\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 565);\n","module.exports = (__webpack_require__(7))(0);","import { TFunction } from 'react-i18next';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport {\n\tPetSpecie,\n\tServiceType,\n\tDeliveryType,\n} from '@app/objects/Pet';\nimport { Crematory } from '@app/objects/Crematory';\nimport { SpecialService } from '@app/objects/SpecialService';\nimport { Clinic } from '@app/objects/Clinic';\nimport { InventoryItem } from '@app/objects/Inventory';\n\nexport enum PriceKind {\n\tClinicDiscount = -1,\n\tBasePrice = 0,\n\tSpecialServicePrice = 1,\n\tDeliveryPrice = 2,\n\tUrnPrice = 3,\n\tDiscount = 4,\n\tProductPrice = 7,\n\tEngraving = 8,\n\tPickupPrice = 9,\n\tRushFee = 10,\n}\n\nexport enum PriceType {\n\tAll = -1,\n\tWholesale = 0,\n\tRetail = 1,\n}\n\nexport enum DiscountType {\n\tValue = 0,\n\tPercentage = 1,\n}\n\nexport interface Price extends WithId {\n\tname: string;\n\tdescription: string;\n\tunit: Nullable;\n\tapplyTo?: Nullable;\n\n\tpetSpecieId: Nullable;\n\tpetSpecie: Nullable;\n\n\tcrematoryId: number;\n\tcrematory: Nullable;\n\n\tclinicId: Nullable;\n\tclinic: Nullable;\n\n\tspecialServiceId: Nullable;\n\tspecialService: Nullable;\n\n\tpickupServiceId: Nullable;\n\n\tinventoryItem: Nullable;\n\tinventoryItemId: Nullable;\n\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tpriceKind: PriceKind;\n\tdeliveryType: Nullable;\n\tdeliveryEntityId: Nullable;\n\n\tfrom: number;\n\tto: number;\n\n\tvalue: number;\n\textra: number;\n\n\tbatchPrice: number;\n\tbatchCount: number;\n\tisDefault: boolean;\n\n\torder?: Nullable;\n\tmaxSize?: Nullable;\n}\n\n// Copy prices\nexport interface CopyOptions {\n\tserviceType: ServiceType;\n\tpriceType: PriceType;\n}\n\nexport interface CopyPriceActor\t{\nsource: SourcePriceMessage;\ndestination: DestinationPriceMessage;\n}\nexport interface SourcePriceMessage {\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tid: Array;\n\tname: string;\n\tselectAll: boolean;\n\tpriceKind: PriceKind;\n}\nexport interface DestinationPriceMessage {\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tclinicId?: Nullable\n}\n\nexport function getPriceTypeName(priceType: PriceType, t: TFunction): string {\n\tswitch (priceType) {\n\tcase PriceType.All:\n\t\treturn t('enums.price-type.all');\n\tcase PriceType.Wholesale:\n\t\treturn t('enums.price-type.wholesale');\n\tcase PriceType.Retail:\n\t\treturn t('enums.price-type.retail');\n\n\tdefault: return 'Unknown price type';\n\t}\n}\n\nexport function getPriceKindName(priceKind: PriceKind): string {\n\tswitch (priceKind) {\n\tcase PriceKind.BasePrice:\n\t\treturn 'Base Price';\n\n\tcase PriceKind.SpecialServicePrice:\n\t\treturn 'Special Service';\n\n\tcase PriceKind.PickupPrice:\n\t\treturn 'Pickup Service';\n\n\tcase PriceKind.DeliveryPrice:\n\t\treturn 'Delivery Price';\n\n\tcase PriceKind.UrnPrice:\n\t\treturn 'Urn';\n\n\tcase PriceKind.ProductPrice:\n\t\treturn 'Product';\n\n\tcase PriceKind.Discount:\n\t\treturn 'Discount';\n\n\tcase PriceKind.Engraving:\n\t\treturn 'Engraving';\n\tcase PriceKind.RushFee:\n\t\treturn 'Rush Fee';\n\n\tdefault:\n\t\treturn 'Unknown Price Kind';\n\t}\n}\n\nexport function getDefaultPrice(crematoryId: number): Price {\n\treturn {\n\t\tid: -1,\n\n\t\tname: '',\n\t\tdescription: '',\n\t\tunit: DiscountType.Value,\n\n\t\tclinic: null,\n\t\tclinicId: null,\n\t\tcrematory: null,\n\t\tcrematoryId,\n\n\t\tpriceKind: PriceKind.BasePrice,\n\t\tpriceType: PriceType.Wholesale,\n\t\tserviceType: ServiceType.Communal,\n\n\t\tdeliveryType: null,\n\t\tdeliveryEntityId: null,\n\t\tinventoryItem: null,\n\t\tinventoryItemId: null,\n\t\tpetSpecie: null,\n\t\tpetSpecieId: null,\n\t\tspecialService: null,\n\t\tspecialServiceId: null,\n\t\tpickupServiceId: null,\n\n\t\tbatchCount: 0,\n\t\tbatchPrice: 0,\n\t\tisDefault: false,\n\n\t\tvalue: 0,\n\t\textra: 0,\n\t\tfrom: 0,\n\t\tto: 0,\n\n\t\torder: 0,\n\t\tmaxSize: 0,\n\t};\n}\n","import * as React from 'react';\n\nexport { default as loadable } from '@loadable/component';\n\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\n\nfunction delay(ms) {\n\treturn new Promise(resolve => setTimeout(resolve, ms));\n}\n\nexport const loadableDelay = (promise) => {\n\tif (typeof window === 'undefined') return promise;\n\n\tlet promiseErr;\n\n\t// tslint:disable-next-line:no-parameter-reassignment\n\tpromise = promise.catch(err => promiseErr = err);\n\n\treturn Promise.all([promise, delay(200)]).then(val => promiseErr ? Promise.reject(promiseErr) : val[0]);\n};\n\nexport const params = {\n\tfallback: ,\n};\n\n// Update @loadable/component and @loadable/server to version 5.13.1\nexport const getParams = (componentName: string) => ({\n\t...params,\n\tresolveComponent: module => module[componentName],\n});\n","import { BaseUser } from '@common/react/objects/BaseUser';\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { pureEnum } from '@common/typescript/utils/enums';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Crematory, CrematoryListInfo } from '@app/objects/Crematory';\nimport { Clinic } from '@app/objects/Clinic';\nimport { LocaleUserPreferences } from '@app/objects/UserPreferences/LocaleUserPreferences';\nimport { DashboardViewType } from '@app/objects/Dashboard';\nimport { Permission } from '@app/objects/Permission';\nimport { CrematoryUserSpecialService, CrematoryUserStatus } from '@app/objects/CrematoryUser';\n\nexport enum UserRole {\n\tSystemService = -2,\n\tIntegrationService = -1,\n\tAdmin = 1,\n\tCrematory = 2,\n\tClinicUser = 3,\n\tCrematoryUser = 4,\n\tClinicManager = 5,\n}\n\nexport interface ClinicUserPreferences {\n\tdashboardType: Nullable,\n\tid: number,\n\tuser: null,\n\tuserId: number,\n\t_type: string,\n}\n\nexport interface UserCrematory extends WithDeleted {\n\tid: number;\n\n\tuserId: number;\n\tuser: Nullable;\n\n\tcrematoryId: number;\n\tcrematory: Nullable;\n}\n\nexport interface UserPermission extends WithId, WithDeleted {\n\tpermission: Permission;\n\tuserId: number;\n}\n\nexport interface User extends BaseUser\n{\n\t/* --- General Section --- */\n\trole: UserRole;\n\n\tavatar: string;\n\toriginalAvatar: string;\n\t/* --- End General Section --- */\n\n\t/* --- Preferences Section --- */\n\tlocaleUserPreferences: Nullable;\n\t/* --- End Preferences Section --- */\n\n\t/* --- Clinic Section --- */\n\tclinicId: Nullable;\n\tclinic: Nullable;\n\t/* --- End Clinic Section --- */\n\n\t/* --- Crematory Section --- */\n\tcrematories: Array;\n\tinventoryNotifications: boolean;\n\n\tclinicUserPreferences: ClinicUserPreferences | null;\n\n\tactiveCrematory: Nullable;\n\tactiveCrematoryId: number;\n\n\tstatuses: Array;\n\tspecialServices: Array;\n\t/* --- End Crematory Section --- */\n\n\t/* --- Permission Section --- */\n\tpermissions: Array;\n\t/* --- End Permission Section --- */\n}\n\nexport interface UserListInfo extends WithId\n{\n\tname: string;\n\temail: string;\n\tcrematories: Array;\n\tclinicId: number | null;\n\tclinicName: string;\n\trole: UserRole;\n}\n\npureEnum(UserRole);\nexport function userRoleName(role: UserRole): string {\n\tswitch (role) {\n\tcase UserRole.SystemService:\n\t\treturn 'System Service';\n\n\tcase UserRole.IntegrationService:\n\t\treturn 'Integration Service';\n\n\tcase UserRole.Admin:\n\t\treturn 'Admin';\n\n\tcase UserRole.ClinicUser:\n\t\treturn 'Clinic User';\n\n\tcase UserRole.ClinicManager:\n\t\treturn 'Clinic Manager';\n\n\tcase UserRole.Crematory:\n\t\treturn 'Crematory';\n\n\tcase UserRole.CrematoryUser:\n\t\treturn 'Crematory User';\n\n\tdefault: return 'Unknown User Type';\n\t}\n}\n\nexport function getUserName(user: User | undefined | null): string {\n\tif (!user || (!user.firstName && !user.lastName && !user.email)) return 'Wings User';\n\tif (!user.firstName && !user.lastName) return user.email;\n\n\treturn `${user.firstName} ${user.lastName}`;\n}\n\nexport function getDefaultUser(role: UserRole): User {\n\treturn {\n\t\tid: -1,\n\n\t\tavatar: '',\n\t\toriginalAvatar: '',\n\n\t\trole,\n\t\tfirstName: '',\n\t\tlastName: '',\n\t\temail: '',\n\n\t\tlocaleUserPreferences: null,\n\n\t\tstatus: 0,\n\t\ttransmuted: false,\n\t\tbanned: false,\n\n\t\tclinicId: null,\n\t\tclinic: null,\n\n\t\tcrematories: [],\n\t\tinventoryNotifications: false,\n\n\t\tunviewedMessagesCount: 0,\n\t\tunviewedNotificationsCount: 0,\n\n\t\tclinicUserPreferences: null,\n\n\t\tactiveCrematory: null,\n\t\tactiveCrematoryId: -1,\n\n\t\tpermissions: [],\n\n\t\tspecialServices: [],\n\t\tstatuses: [],\n\t};\n}\n","module.exports = (__webpack_require__(7))(950);","import { TFunction } from 'react-i18next';\n\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { pureEnum } from '@common/typescript/utils/enums';\nimport { WithRemoved } from '@common/typescript/objects/WithRemoved';\n\nimport { Clinic } from '@app/objects/Clinic';\nimport { User } from '@app/objects/User';\nimport { Crematory } from '@app/objects/Crematory';\nimport { Price, PriceType } from '@app/objects/Price';\nimport { Invoice } from '@app/objects/Invoice';\nimport { CurrentStatus } from '@app/objects/CurrentStatus';\nimport { Location, LocationInfo } from '@app/objects/Location';\nimport { BatchAction } from '@app/objects/BatchAction';\nimport { Carrier } from '@app/objects/Carriers';\nimport { SpecialServiceType } from '@app/objects/SpecialService';\nimport { InventoryItem } from '@app/objects/Inventory';\nimport { MailStatus } from '@app/objects/EmailLog';\nimport { PetFile } from '@app/objects/PetFile';\nimport { State } from '@app/objects/State';\nimport { StoreEntry, StoreEntryNode } from '@app/objects/StoreEntry';\nimport { PickupService } from '@app/objects/PickupService';\n\nexport enum DeliveryType\n{\n\tHomeDropOff = 0,\n\tVetDropOff = 1,\n\tClinic = 2,\n\tMail = 3,\n\tPickup = 4,\n\tNone = 5,\n}\n\nexport enum DeliveryTypeName {\n\tHomeDropOff = 'home-drop-off',\n\tVetDropOff = 'vet-drop-off',\n\tClinic = 'clinic',\n\tMail = 'mail',\n\tPickup = 'pick-up',\n\tNone = 'none',\n}\n\nexport enum InvoiceFilterStrategy {\n\tAny = 0,\n\tInvoiced = 1,\n\tNotInvoiced = 2,\n}\n\npureEnum(DeliveryType);\n\nexport enum ServiceType\n{\n\tAll = -1,\n\tCommunal = 0,\n\tPrivate = 1,\n\tSemiPrivate = 2,\n\tStorage = 3,\n\tProductsOnly = 4,\n}\n\npureEnum(ServiceType);\n\nexport enum PetSource\n{\n\tInternal = 0,\n\tExternal = 1,\n}\n\nexport enum HasIssues\n{\n\tWithoutIssues = 0,\n\tWithIssues = 1,\n}\n\nexport enum WeightSource\n{\n\tActualWeight = 0,\n\tReportedWeight = 1,\n}\n\nexport interface Gender extends WithId {\n\tname: string,\n\tdescription: string,\n}\n\nexport interface PetSpecie extends WithDeleted {\n\tname: string;\n}\n\nexport interface PetBreed extends WithDeleted {\n\tname: string;\n\n\tpetSpecieId: number;\n\tpetSpecie?: PetSpecie;\n}\n\nexport interface PetPrice extends WithId, WithRemoved {\n\tclientId: string;\n\n\tpetId: number;\n\tpet?: Nullable;\n\n\tpriceId: number;\n\tprice?: Nullable;\n\n\tcount: number;\n\tdone: boolean;\n\tcompletedCount: number;\n\n\tvalue: number;\n\textra: number;\n\tdiscount: number;\n\ttax: number;\n\n\tname: string;\n\n\teditor: Nullable;\n\teditorId: Nullable;\n\n\tpickupService: Nullable;\n\tpickupServiceId: Nullable;\n\n\tbatchCount: number;\n\tbatchPrice: number;\n\n\tentry?: Nullable;\n\tnode: Nullable;\n\tnodeId: Nullable;\n\ttoSelect?: boolean;\n\n\tnote: string;\n}\n\nexport interface PetNote extends WithId, WithRemoved {\n\tdescription: string;\n\tdate: string;\n\tuser: Nullable;\n}\n\nexport interface PetUrn extends WithId, WithRemoved {\n\tclientId: string;\n\tpetId: number;\n\tcategoryId: number;\n\tcategory?: Nullable;\n\tsizeId: Nullable;\n\tsize?: Nullable;\n\tcount: number;\n\tvalue?: number;\n}\n\nexport interface PetEngraving extends WithId, WithRemoved{\n\tname: string;\n\torder: number;\n}\n\nexport interface PetInvoiceSummary {\n\tservicesTotal: number;\n\tproductsTotal: number;\n\tdeliveryTotal: number;\n\tsubTotal: number;\n\n\tserviceTax: number;\n\tserviceTaxPercentage: number;\n\tproductTax: number;\n\tproductTaxPercentage: number;\n\n\ttotal: number;\n}\n\nexport enum PetOnHold {\n\tNone = 0,\n\tByClinic = 1,\n\tByCrematory = 2,\n}\n\nexport interface Pet extends WithId {\n\tspreadLong: Nullable;\n\tspreadLat: Nullable;\n\tcoordinatesMailStatus?: MailStatus;\n\n\tspecialInstructions: string;\n\tnotes: Array;\n\n\tbatchActionId: number | null;\n\tbatchAction: BatchAction | null;\n\tbatchMachineLocation: string;\n\n\tdeliveryType: DeliveryType;\n\tdeliveryTypeId: Nullable;\n\n\tdeliveryAddress: string;\n\tdeliveryAddress2: string;\n\tdeliveryCity: string;\n\tdeliveryZip: string;\n\n\tdeliveryStateId: Nullable;\n\tdeliveryState: Nullable;\n\n\tdeliveryClinicId: Nullable;\n\tdeliveryClinic: Nullable;\n\n\ttrackingNumber?: string;\n\tsendTrackingEmail?: Nullable;\n\tcarrier?: Nullable;\n\tcarrierId?: Nullable;\n\n\tdiscountId: Nullable;\n\tdiscount: Nullable;\n\n\tserviceType: ServiceType;\n\tisSpecial: boolean;\n\n\tonHold: PetOnHold;\n\trush: boolean;\n\n\tphone: string;\n\temail: string;\n\n\tclinicName: string;\n\n\tactualWeight: number;\n\treportedWeight: number;\n\tashesWeight: number;\n\n\tcreatedDate: number;\n\treceivedDate: number;\n\n\tname: string;\n\tengraving: Nullable>;\n\n\tgender: Gender | null;\n\tgenderId: number,\n\tcolor: string;\n\n\tpetSpecieId: number;\n\tpetSpecie: PetSpecie | null;\n\n\tpetBreedId: number;\n\tpetBreed: PetBreed | null;\n\tisMixed: boolean;\n\n\tpetSource: PetSource;\n\n\tclinicId: number | null;\n\tclinic?: Clinic | null;\n\n\tclinicLocationId: number | null;\n\tclinicLocation?: Location | null;\n\n\tuserId: number;\n\tuser?: User;\n\n\tcrematoryId: number;\n\tcrematory?: Crematory;\n\n\turns: Array;\n\tproducts: Array;\n\n\tvet: string;\n\tinternalIdNum: string;\n\n\townerFirstName: string;\n\townerLastName: string;\n\townerPhone: string;\n\townerPhone2: string;\n\townerEmail: string;\n\townerAddress: string;\n\townerAddress2: string;\n\townerCity: string;\n\townerZip: string;\n\n\townerState: Nullable;\n\townerStateId: Nullable;\n\n\townerNotes: string;\n\n\tcurrentStatus: Nullable;\n\tcurrentStatusId: number;\n\n\tservices?: Array;\n\tpriceType: PriceType;\n\n\tinvoice: Nullable;\n\tinvoiceId: Nullable;\n\n\tinitStatus: boolean;\n\tfiles: Array;\n\n\tinvoiceSummary: Nullable;\n\n\toutOfDate?: boolean;\n}\n\nexport interface PetListInfo extends WithId {\n\tname: string;\n\n\townerFirstName: string;\n\townerLastName: string;\n\n\tpetSpecieId: number;\n\tpetSpecie: PetSpecie;\n\n\tpetBreedId: number;\n\tpetBreed: PetBreed;\n\tisMixed: boolean;\n\n\tpetSource: PetSource;\n\n\tactualWeight: number;\n\treportedWeight: number;\n\n\tclinic?: Clinic | null;\n\tcrematory: Crematory | null;\n\n\tinvoice: Invoice;\n\tinvoiceId: number | null;\n\n\tcurrentStatus: CurrentStatus;\n\tcurrentStatusId: number;\n\n\tserviceType: ServiceType;\n\tisSpecial: boolean;\n\trush: boolean;\n\tonHold: PetOnHold;\n\n\tdeliveryType: DeliveryType;\n\tdeliveryTypeId: Nullable;\n\n\tgender: Gender | null;\n\tgenderId: number;\n\n\tcolor: string;\n\n\tcreatedDate: number;\n\tinternalIdNum: string;\n}\n\nexport interface InvoicePet extends WithId {\n\tname: string;\n\tremoved: boolean;\n\townerFirstName: string;\n\townerLastName: string;\n\tactualWeight: number;\n\treportedWeight: number;\n\tenteredDate: number;\n\tserviceType: number;\n\tinvoiceSummary: Nullable;\n}\n\nexport function getServiceTypeName(\n\tserviceType: ServiceType,\n\tt: TFunction,\n\tisSpecial: boolean = false,\n\tisAustralia: boolean = false,\n\trush?: boolean,\n): string {\n\tlet type: string = '';\n\n\tswitch (serviceType) {\n\tcase ServiceType.All:\n\t\treturn t('enums.service-type.all');\n\n\tcase ServiceType.Private:\n\t\ttype = t(`enums.service-type.${isAustralia ? 'aus-private' : 'private'}`);\n\t\tbreak;\n\n\tcase ServiceType.Communal:\n\t\ttype = t('enums.service-type.communal');\n\t\tbreak;\n\tcase ServiceType.SemiPrivate:\n\t\ttype = t(`enums.service-type.${isAustralia ? 'aus-semiprivate' : 'semiprivate'}`);\n\t\tbreak;\n\tcase ServiceType.Storage:\n\t\ttype = t('enums.service-type.storage');\n\t\tbreak;\n\tcase ServiceType.ProductsOnly:\n\t\ttype = t('enums.service-type.products-only');\n\t\tbreak;\n\n\tdefault:\n\t\treturn 'Unknown Service Type';\n\t}\n\n\tif (rush) {\n\t\ttype += ` ${t('filters.rush')}`;\n\t}\n\n\tif (isSpecial) {\n\t\ttype += ` ${t('filters.is-special')}`;\n\t}\n\n\treturn type;\n}\n\nexport function getDeliveryTypeName(deliveryType: DeliveryType): string {\n\tlet type: string = '';\n\n\tswitch (deliveryType) {\n\tcase DeliveryType.HomeDropOff:\n\t\treturn 'Home drop off';\n\n\tcase DeliveryType.VetDropOff:\n\t\ttype = 'Vet drop off';\n\t\tbreak;\n\n\tcase DeliveryType.Clinic:\n\t\ttype = 'Clinic';\n\t\tbreak;\n\n\tcase DeliveryType.Mail:\n\t\ttype = 'Mail';\n\t\tbreak;\n\n\tcase DeliveryType.Pickup:\n\t\ttype = 'Pick up';\n\t\tbreak;\n\n\tcase DeliveryType.None:\n\t\ttype = 'None';\n\t\tbreak;\n\n\tdefault:\n\t\treturn 'Unknown Service Type';\n\t}\n\n\treturn type;\n}\n\nexport interface ClinicPet extends WithId {\n\tname: string;\n\tengraving: Nullable>;\n\n\townerFirstName: string;\n\townerLastName: string;\n\townerEmail: string;\n\townerPhone: string;\n\n\tpetSpecieId: number;\n\tpetSpecie: string;\n\n\tpetBreedId: number;\n\tpetBreed: string;\n\n\tpetSource: PetSource;\n\n\tcrematoryId: number;\n\tcrematory: string;\n\n\tcolor: string;\n\treportedWeight: number;\n\n\tgenderId: number;\n\tgender: string;\n\n\tserviceType: ServiceType;\n\tisSpecial: boolean;\n\n\tclinicLocationId: Nullable;\n\tclinicLocation: Nullable;\n\n\tdeliveryClinicId: Nullable;\n\n\tdiscountId: Nullable;\n\tdiscount: Nullable;\n\n\tservices: Array;\n\tspecialInstructions: string;\n\n\tisMixed: boolean;\n\tnoAshes: boolean;\n\n\tonHold: PetOnHold;\n\trush: boolean;\n\tisEditable: boolean;\n\n\tdeliveryType: DeliveryType;\n\tdeliveryTypeId: Nullable;\n\tdeliveryAddress: string;\n\tdeliveryAddress2: string;\n\tdeliveryCity: string;\n\tdeliveryZip: string;\n\tdeliveryStateId: Nullable;\n\tdeliveryState: Nullable;\n\n\tinternalIdNum: string;\n\n\tfiles: Array;\n}\n\nexport function getDefaultClinicPet(): ClinicPet {\n\treturn {\n\t\tid: -1,\n\n\t\tclinicLocationId: null,\n\t\tclinicLocation: null,\n\t\tdeliveryClinicId: null,\n\n\t\tname: '',\n\t\tengraving: [],\n\t\treportedWeight: 0,\n\n\t\tcrematoryId: -1,\n\t\tcrematory: '',\n\n\t\tcolor: '',\n\n\t\tgenderId: -1,\n\t\tgender: '',\n\n\t\tpetBreed: '',\n\t\tpetBreedId: -1,\n\t\tisMixed: false,\n\n\t\tpetSpecie: '',\n\t\tpetSpecieId: -1,\n\n\t\tpetSource: PetSource.Internal,\n\n\t\townerFirstName: '',\n\t\townerLastName: '',\n\t\townerPhone: '',\n\t\townerEmail: '',\n\n\t\tserviceType: ServiceType.Private,\n\t\tisSpecial: false,\n\t\tnoAshes: false,\n\n\t\tservices: [],\n\t\tspecialInstructions: '',\n\n\t\tdiscountId: null,\n\t\tdiscount: '',\n\n\t\tonHold: PetOnHold.None,\n\t\trush: false,\n\t\tisEditable: true,\n\n\t\tdeliveryType: DeliveryType.None,\n\t\tdeliveryTypeId: null,\n\t\tdeliveryAddress: '',\n\t\tdeliveryAddress2: '',\n\t\tdeliveryCity: '',\n\t\tdeliveryStateId: null,\n\t\tdeliveryZip: '',\n\t\tdeliveryState: null,\n\n\t\tinternalIdNum: '',\n\n\t\tfiles: [],\n\t};\n}\n\nexport function getDefaultPet(): Pet {\n\treturn {\n\t\tid: -1,\n\n\t\townerFirstName: '',\n\t\townerLastName: '',\n\t\townerAddress: '',\n\t\townerAddress2: '',\n\t\townerCity: '',\n\t\townerState: null,\n\t\townerStateId: null,\n\t\townerZip: '',\n\t\townerEmail: '',\n\t\townerPhone: '',\n\t\townerPhone2: '',\n\t\townerNotes: '',\n\n\t\tclinicId: null,\n\t\tclinicLocationId: null,\n\t\tclinicName: '',\n\n\t\tcrematoryId: -1,\n\n\t\turns: [],\n\t\tproducts: [],\n\n\t\tactualWeight: 0,\n\t\treportedWeight: 0,\n\t\tashesWeight: 0,\n\n\t\tcolor: '',\n\t\tcreatedDate: new Date().getTime(),\n\t\treceivedDate: new Date().getTime(),\n\n\t\tcurrentStatus: null,\n\t\tcurrentStatusId: -1,\n\n\t\tdeliveryAddress: '',\n\t\tdeliveryAddress2: '',\n\t\tdeliveryCity: '',\n\t\tdeliveryState: null,\n\t\tdeliveryStateId: null,\n\t\tdeliveryZip: '',\n\t\tdeliveryClinic: null,\n\t\tdeliveryClinicId: null,\n\n\t\tdeliveryType: DeliveryType.None,\n\t\tdeliveryTypeId: null,\n\n\t\tgender: null,\n\t\tgenderId: -1,\n\n\t\tpetBreed: null,\n\t\tpetBreedId: -1,\n\t\tisMixed: false,\n\t\tpetSpecie: null,\n\t\tpetSpecieId: -1,\n\t\tpetSource: 0,\n\n\t\tinvoice: null,\n\t\tinvoiceId: null,\n\t\tdiscountId: null,\n\t\tdiscount: null,\n\n\t\tinitStatus: false,\n\n\t\tname: '',\n\t\tengraving: [],\n\t\temail: '',\n\t\tphone: '',\n\t\tuserId: -1,\n\t\tvet: '',\n\t\tinternalIdNum: '',\n\n\t\tpriceType: PriceType.Wholesale,\n\t\tserviceType: ServiceType.Private,\n\t\tisSpecial: false,\n\n\t\tonHold: PetOnHold.None,\n\t\trush: false,\n\n\t\tspreadLat: null,\n\t\tspreadLong: null,\n\n\t\tspecialInstructions: '',\n\t\tnotes: [],\n\n\t\tbatchActionId: null,\n\t\tbatchAction: null,\n\t\tbatchMachineLocation: '',\n\n\t\tfiles: [],\n\n\t\tinvoiceSummary: {\n\t\t\tservicesTotal: 0,\n\t\t\tproductsTotal: 0,\n\t\t\tdeliveryTotal: 0,\n\t\t\tsubTotal: 0,\n\n\t\t\tserviceTax: 0,\n\t\t\tserviceTaxPercentage: 0,\n\t\t\tproductTax: 0,\n\t\t\tproductTaxPercentage: 0,\n\n\t\t\ttotal: 0,\n\t\t},\n\t};\n}\n\nexport enum FormType {\n\thorizontal= 'horizontal'\n}\n\nexport function filterServices(services: Array): Array {\n\treturn services.filter((q: PetPrice) => {\n\t\tconst type = q.price?.specialService?.specialServiceType;\n\n\t\treturn type === SpecialServiceType.Kit || type === SpecialServiceType.Service;\n\t});\n}\n\n/**\n * Check if engraving should be updated with pet's name on last one being changed\n * @param name - pet's name\n * @param engraving - current engraving's value\n */\nexport function shouldUpdateEngraving(name: string, engraving: Nullable>): boolean {\n\tif (!engraving) return true;\n\n\tconst available = engraving.filter((item: PetEngraving) => !item.removed);\n\n\tif (!available.length) return true;\n\tif (available.length > 1) return false;\n\n\treturn available[0].name === name;\n}\n\n/**\n * Update engraving with pet's name\n * @param name - pet's name\n * @param engraving - current engraving list\n */\nexport function updateEngraving(name: string, engraving: Nullable>): Array {\n\tconst valid = engraving ?? [];\n\tconst available = valid.filter((item: PetEngraving) => !item.removed);\n\n\tif (available.length === 0) {\n\t\treturn [\n\t\t\t{\n\t\t\t\tid: -1,\n\t\t\t\torder: 0,\n\t\t\t\tname,\n\t\t\t\tremoved: false,\n\t\t\t},\n\t\t\t...valid,\n\t\t];\n\t}\n\n\tif (available.length > 1) return valid;\n\n\tconst index = valid.findIndex((item: PetEngraving) => !item.removed);\n\n\treturn valid.map((item: PetEngraving, idx: number) => {\n\t\tif (idx !== index) return item;\n\n\t\treturn {\n\t\t\t...item,\n\t\t\tname,\n\t\t};\n\t});\n}\n\n/**\n * Update engraving with pet's name\n * @param name - pet's name\n * @param engraving - current engraving list\n * @param availablePrices - available engraving's prices\n * @param serviceType - pet's service type\n * @param prefillEngraving - crematory's setting\n */\nexport function needUpdateEngraving(\n\tname: string,\n\tengraving: Nullable>,\n\tavailablePrices: Array,\n\tserviceType?: ServiceType,\n\tprefillEngraving?: boolean,\n) {\n\treturn serviceType !== ServiceType.Communal\n\t&& shouldUpdateEngraving(name, engraving)\n\t&& availablePrices.length\n\t&& prefillEngraving;\n}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","module.exports = vendor_6db2768e310fdac9ffc1;","module.exports = (__webpack_require__(7))(956);","module.exports = (__webpack_require__(7))(5);","import { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithName } from '@common/typescript/objects/WithName';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { WithSearch } from '@app/objects/WithSearch';\n\nimport { SelectList } from '@app/store/SelectList/SelectList';\nimport {\n\tFilterType,\n\tEntityType,\n} from '@app/store/SelectList/UtilityTypes';\nimport { GroupProps } from '@app/components/UI/Inputs/CoreSelect';\nimport { ServiceType } from '@app/objects/Pet';\nimport { PriceKind, PriceType } from '@app/objects/Price';\nimport { ItemCategory } from '@app/objects/Inventory';\nimport { SpecialServiceType } from '@app/objects/SpecialService';\n\n/**\n\tWithName is used to filter by name (used on list pages)\n\tWithSearch is used to filter by name and sort according to priority\n\t\t(words starting with WithSearch.search have greater priority)\n */\nexport type Searchable = Partial & WithSearch;\n\nexport type CrematorySelectFilter = Searchable;\nexport type StatusSelectFilter = Searchable;\nexport type AdjustmentCodeFilter = Searchable;\nexport type MeasuringUnitFilter = Searchable;\nexport type MachineSelectFilter = Searchable;\nexport type StoreEntrySelectFilter = Searchable;\n\nexport interface ClinicSelectFilter extends Searchable {\n\tisCustomer?: Nullable;\n\tcrematories?: Nullable>;\n}\n\nexport interface PetBreedSelectFilter extends Searchable {\n\tpetSpecie: Array;\n}\n\nexport interface UrnSelectFilter extends Searchable {\n\tparentId?: Array>;\n}\n\nexport interface SpecialServicesSelectFilter extends Searchable {\n\tspecialServiceType?: Array;\n\tpriceType?: PriceType;\n\tserviceType?: ServiceType;\n\tavailableForCrematory?: boolean;\n\tavailableForClinic?: number;\n}\nexport interface PickupServicesSelectFilter extends Searchable {\n\tpriceType?: PriceType;\n\tserviceType?: ServiceType;\n\tclinicId?: Nullable;\n\tavailableForPricing?: boolean;\n}\n\nexport interface UrnCategoriesSelectFilter extends Searchable {\n\tcrematoryId?: number;\n\tclinicId: Nullable;\n\tserviceType: ServiceType;\n\tpriceType: PriceType;\n}\n\nexport interface RegionSelectFilter extends Searchable {\n\tcountry: string;\n}\n\nexport interface ProductSelectFilter extends Searchable {\n\tcrematoryId?: number;\n\tavailableForCrematory?: boolean;\n\tavailableForClinic?: Nullable;\n\tserviceType?: ServiceType;\n\tpriceType?: PriceType;\n\tcategory?: Array,\n\tparentId?: Array>;\n}\n\nexport interface InventoryItemFilter extends Searchable {\n\tcrematoryId: number;\n\tcategory: Array;\n}\n\nexport interface InventoryParentsSelectFilter extends Searchable {\n\tcategory?: Array;\n}\n\nexport interface DiscountSelectFilter extends Searchable {\n\tpriceKind: Array;\n}\n\nexport interface CountrySelectFilter {\n\tname?: string;\n\tsearch: string;\n}\n\nexport interface LanguageSelectFilter {\n\tname?: string;\n\tsearch: string;\n}\n\nexport interface UserSelectFilter {\n\tname?: string;\n\tsearch: string;\n}\n\nexport interface RouteSelectFilter {\n\tname?: string;\n\tsearch: string;\n}\n\nexport interface LabelPaperSelectFilter {\n\tname?: string;\n\tsearch: string;\n\ttemplate: boolean;\n}\n\nexport type FilterComparator = (a: Nullable>, b: Nullable>) => boolean\n\nexport interface SelectRequestProps {\n\tendpoint: string;\n\n\tdefaultFilters: FilterType;\n\tisEqual: FilterComparator;\n\tisEmpty: (a: Nullable>) => boolean;\n\tisValid?: (a: Nullable>) => boolean;\n\n\tgroup?: (items: Array>) => Array>>;\n\torder?: (items: Array>) => Array>;\n}\n\nexport function isEmpty(filter: Nullable): boolean {\n\treturn !filter?.name && !filter?.search;\n}\n\nexport function areEqual(a: Array, b: Array): boolean {\n\tif (a.length !== b.length) return false;\n\n\tfor (let i = 0; i < a.length; i++) {\n\t\tif (!b.includes(a[i])) return false;\n\t}\n\n\treturn true;\n}\n\nexport function isEqualClinic(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search\n\t\t&& a?.name === b?.name\n\t\t&& areEqual(a?.crematories ?? [], b?.crematories ?? [])\n\t\t&& a?.isCustomer === b?.isCustomer;\n}\n\nexport function isEqualCrematory(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqual(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualPetBreeds(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search && a?.petSpecie === b?.petSpecie;\n}\n\nexport function isEqualUrn(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search && a?.parentId === b?.parentId;\n}\n\nexport function isEqualUrnCategory(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search\n\t\t&& a?.crematoryId === b?.crematoryId\n\t\t&& a?.clinicId === b?.clinicId\n\t\t&& a?.serviceType === b?.serviceType\n\t\t&& a?.priceType === b?.priceType;\n}\n\nexport function isEqualInventoryParentsCategory(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search && areEqual(a?.category ?? [], b?.category ?? []);\n}\n\nexport function isEqualRegions(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search && a?.country === b?.country;\n}\n\nexport function isEqualProduct(a: Nullable, b: Nullable): boolean {\n\treturn (\n\t\ta?.search === b?.search\n\t\t&& a?.availableForClinic === b?.availableForClinic\n\t\t&& a?.availableForCrematory === b?.availableForCrematory\n\t\t&& a?.crematoryId === b?.crematoryId\n\t\t&& a?.priceType === b?.priceType\n\t\t&& a?.serviceType === b?.serviceType\n\t\t&& areEqual(a?.category ?? [], b?.category ?? [])\n\t);\n}\n\nexport function isEqualSpecialServices(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search\n\t&& a?.priceType === b?.priceType\n\t&& a?.serviceType === b?.serviceType\n\t&& a?.availableForClinic === b?.availableForClinic\n\t&& a?.availableForCrematory === b?.availableForCrematory\n\t&& areEqual(a?.specialServiceType ?? [], b?.specialServiceType ?? []);\n}\n\nexport function isEqualPickupServices(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search\n\t&& a?.priceType === b?.priceType\n\t&& a?.serviceType === b?.serviceType\n\t&& a?.availableForPricing === b?.availableForPricing\n\t&& a?.clinicId === b?.clinicId;\n}\n\nexport function isEqualInventoryItem(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search \t&& a?.crematoryId === b?.crematoryId && areEqual(a?.category ?? [], b?.category ?? []);\n}\n\nexport function isEqualAdjustmentCode(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualDiscount(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualMeasuringUnit(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualCountry(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualLanguage(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualUser(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEqualRoute(a: Nullable, b: Nullable): boolean {\n\treturn a?.search === b?.search;\n}\n\nexport function isEmptyValue(value: Array | T | undefined | null): boolean {\n\tif (value === null || value === undefined) return true;\n\tif (Array.isArray(value)) return value.length === 0;\n\tif (typeof value === 'string') return value === '';\n\tif (typeof value === 'number') return value < 0;\n\n\treturn false;\n}\n\nexport function defaultOrder>(item: Array): Array {\n\treturn item.sort((a: Partial, b: Partial) => {\n\t\tif (a.name && b.name) {\n\t\t\treturn a.name > b.name ? 1 : -1;\n\t\t}\n\n\t\tif (!a.name && b.name) return -1;\n\t\tif (a.name && !b.name) return 1;\n\n\t\treturn 0;\n\t});\n}\n\nexport function isPickDefault(items: Array): number {\n\tconst result = items[0];\n\n\treturn result.id;\n}\n\n// default filters\n\nexport const defaultFilters = {\n\tsearch: '',\n};\n\nexport const defaultClinicFilters = {\n\tsearch: '',\n\tcrematories: [],\n};\n\nexport const defaultPetBreedsFilters = {\n\tsearch: '',\n\tpetSpecie: [],\n};\n\nexport const defaultUrnsFilters = {\n\tsearch: '',\n\tparentId: [null],\n};\n\nexport const defaultUrnCategoriesFilters = {\n\tsearch: '',\n\tcrematoryId: -1,\n\tclinicId: -1,\n\tserviceType: ServiceType.All,\n\tpriceType: PriceType.All,\n};\n\nexport const defaultRegionsFilters = {\n\tsearch: '',\n\tcountry: '',\n};\n\nexport const defaultProductsFilters = {\n\tsearch: '',\n\tcrematoryId: -1,\n\tavailableForCrematory: false,\n\tavailableForClinic: null,\n\tserviceType: ServiceType.All,\n\tpriceType: PriceType.All,\n\tcategory: [],\n\tparentId: [null],\n};\n\nexport const defaultInventoryItemsFilters = {\n\tsearch: '',\n\tcrematoryId: -1,\n\tcategory: [],\n};\n\nexport const defaultDiscountsFilters = {\n\tsearch: '',\n\tpriceKind: [PriceKind.Discount],\n};\n\nexport const defaultInventoryParentsFilters = {\n\tsearch: '',\n\tcrematoryId: -1,\n\tparentId: [],\n};\n\nexport const defaultLabelPapersFilters = {\n\tsearch: '',\n\ttemplate: false,\n};\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"Col\", {\n enumerable: true,\n get: function get() {\n return _col[\"default\"];\n }\n});\nObject.defineProperty(exports, \"Row\", {\n enumerable: true,\n get: function get() {\n return _row[\"default\"];\n }\n});\nexports[\"default\"] = void 0;\nvar _col = _interopRequireDefault(require(\"./col\"));\nvar _useBreakpoint = _interopRequireDefault(require(\"./hooks/useBreakpoint\"));\nvar _row = _interopRequireDefault(require(\"./row\"));\n// Do not export params\nfunction useBreakpoint() {\n return (0, _useBreakpoint[\"default\"])();\n}\nvar _default = exports[\"default\"] = {\n useBreakpoint: useBreakpoint\n};","export const RoutePaths = {\n\tadmin: '/admin/:tab?',\n\n\tclinics: '/clinics/:tab',\n\tclinicList: '/clinics/clinic-list/:page?',\n\tinvoiceList: 'clinics/invoice-list/:page?',\n\trouteList: '/clinics/routes/:page?',\n\tclinicEditor: '/clinics/clinic-editor/:id/:type/:tab',\n\tclinicPreferences: '/clinic-preferences/:type?',\n\n\tcrematoryList: '/crematory-list/:page?',\n\tcrematoryEditor: '/crematory-editor/:id/:type/:tab',\n\tcrematories: '/crematories',\n\tchemicalsTableBuilder: '/chemicals-table-builder/:id/:type?',\n\n\tuserList: '/user-list/:page?',\n\tuserEditor: '/user-editor/:id',\n\n\tcrematoryUsers: '/crematory-users-list/:page?',\n\tcrematoryUserEditor: '/crematory-user-editor/:id',\n\tapiKeys: '/crematory-user-editor/:id/api-keys',\n\n\tcomplaints: '/complaints/:page?',\n\tcarriers: '/carriers/:page?',\n\tbackgroundServices: '/background-services',\n\tdiscounts: '/discounts/:page?',\n\tdashboard: '/dashboard',\n\tpetSpecies: '/pet-species/:page?',\n\tpetBreeds: '/pet-breeds/:page?',\n\tgender: '/pet-gender/:page?',\n\tspecialServices: '/special-services/:page?',\n\tpickupServices: '/pickup-services/:page?',\n\tinventoryTemplate: '/inventory-template/:page?',\n\tinvoiceEditor: '/clinics/invoice-editor/:id/:petId?',\n\trouteEditor: '/clinics/route-editor/:id',\n\tprices: '/prices/:page?',\n\tstatusesList: '/statuses-list/:page?',\n\tmeasuringUnits: '/measuring-units/:page?',\n\tprofile: '/profile',\n\tregistration: '/registration',\n\tconfirm: '/confirm',\n\trecover: '/recover',\n\tlogin: '/login',\n\n\tpets: '/pets/:tab?/:page?',\n\tpetList: '/pets/pet-list/:page?',\n\tpetEditor: '/pets/pet-editor/:id/:type/:tab?',\n\tbatchList: '/pets/batch-list/:page?',\n\tbatchEditor: '/pets/batch-editor/:id',\n\tapiImportDetails: '/pets/api-import/:id',\n\n\tinventory: '/inventory/:tab?/:page?/:path(.*)?',\n\tadjustmentList: '/inventory/adjustment-list',\n\tinventoryItemList: '/inventory/stock-list',\n\tpurchaseOrderList: '/inventory/purchase-order-list',\n\tpurchaseOrderEditor: '/inventory/purchase-order/:id',\n\tstoreEntries: '/inventory/item-list',\n\tstoreEntryEditor: '/inventory/item-list/:id/:type',\n\n\tpetListStatusDetails: '/pet-list-status-details/:id/:page?',\n\tpetListSpecialServiceDetails: '/pet-list-special-service-details/:id/:page?',\n\n\tpickupReports: '/pickup-report-list',\n\treportsList: '/reports-list',\n\taverageTurnAround: '/reports-list/average-turn-around-report',\n\taverageTurnAroundDetails: '/reports-list/average-turn-around-report/details',\n\tincomeReport: '/reports-list/income-report',\n\turnReport: '/reports-list/urn-report',\n\tclinicInvoiceReport: '/reports-list/clinic-invoice-report',\n\n\trequestItems: '/request-items',\n\tlabelPaperEditor: '/admin/label-paper/editor/:id/:type',\n\tcomplaintEditor: '/admin/complaints/editor/:id',\n\n\tquickbooks: '/quickbooks/:tab?',\n\tcustomerList: '/quickbooks/customer-list/:page?',\n\tquickbooksItemList: '/quickbooks/item-list/:page?',\n\tquickbooksItemEditor: '/quickbooks/item-list/editor/:id',\n\n\tcountriesEditor: '/admin/countries/:id',\n};\n\nexport function getPath(root: keyof (typeof RoutePaths)): string {\n\treturn RoutePaths[root].replace(/:.+\\?/g, '');\n}\n\nexport const getPathWithParams = (pathName: string, item: string) => {\n\tconst newPath = pathName.substring(0, pathName.lastIndexOf('/') + 1);\n\n\treturn newPath + item;\n};\n\nexport const getPathTabs = (pathName: string, item: string) => {\n\tconst newPath = pathName.substring(0, pathName.lastIndexOf('/') + 1);\n\n\treturn `${newPath}?tab=${item}`;\n};\n","import { WithFile } from '@common/typescript/objects/WithFile';\nimport { isPresent } from '@common/typescript/objects/Nullable';\nimport { getArrayChanges, getShallowChanges } from '@common/typescript/utils/entity';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport {\n\tPet,\n\tPetEngraving,\n\tPetPrice,\n\tServiceType,\n} from '@app/objects/Pet';\nimport {\n\tCreatePetMessage,\n\tUpdatePetMessage,\n\tPetFormValues,\n\tReturnValues,\n\tUpdatePetPriceMessage,\n\tCreatePetPriceMessage,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { UserRole } from '@app/objects/User';\nimport { PriceKind } from '@app/objects/Price';\nimport { PetFile } from '@app/objects/PetFile';\nimport { SpecialServiceType } from '@app/objects/SpecialService';\nimport {\n\tStoreEntryAttribute,\n\tStoreEntryAttributeValue,\n\tStoreEntryNode,\n\tgetPath,\n} from '@app/objects/StoreEntry';\nimport { PetPriceMessage } from '@app/components/Pages/ClinicPetEditor/types';\n\nexport function toCreateMessage(values: ReturnValues): CreatePetMessage {\n\tconst allServices = [...values.services, ...values.products, ...values.urns];\n\tconst files = values.files.map((item: WithFile) => ({ fileId: item.fileId }));\n\n\treturn {\n\t\tactualWeight: Math.max(values.actualWeight || 0, 0),\n\t\treportedWeight: Math.max(values.reportedWeight || 0, 0),\n\t\tashesWeight: Math.max(values.ashesWeight || 0, 0),\n\n\t\tcrematoryId: values.crematoryId,\n\t\tclinicId: values.clinicId,\n\t\tclinicLocationId: values.clinicLocationId,\n\n\t\tname: values.name,\n\t\tengraving: values.engraving ?? [],\n\t\tcolor: values.color,\n\t\tonHold: values.onHold,\n\n\t\tdeliveryAddress: values.deliveryAddress,\n\t\tdeliveryAddress2: values.deliveryAddress2,\n\t\tdeliveryCity: values.deliveryCity,\n\t\tdeliveryClinicId: values.deliveryClinicId,\n\t\tdeliveryStateId: values.deliveryStateId,\n\t\tdeliveryZip: values.deliveryZip,\n\t\tdeliveryType: values.deliveryType,\n\t\tdeliveryTypeId: values.deliveryTypeId,\n\n\t\tcarrierId: values.carrierId ?? null,\n\t\ttrackingNumber: values.trackingNumber ?? '',\n\n\t\tgenderId: values.genderId,\n\t\tdiscountId: values.discountId,\n\n\t\tserviceType: values.serviceType,\n\t\tpriceType: values.priceType,\n\n\t\townerAddress: values.ownerAddress,\n\t\townerAddress2: values.ownerAddress2,\n\t\townerCity: values.ownerCity,\n\t\townerEmail: values.ownerEmail,\n\t\townerFirstName: values.ownerFirstName,\n\t\townerLastName: values.ownerLastName,\n\t\townerNotes: values.ownerNotes,\n\t\townerPhone: values.ownerPhone,\n\t\townerPhone2: values.ownerPhone2,\n\t\townerStateId: values.ownerStateId,\n\t\townerZip: values.ownerZip,\n\n\t\tpetSpecieId: values.petSpecieId,\n\t\tpetBreedId: values.petBreedId,\n\t\tisMixed: values.isMixed,\n\t\trush: values.rush,\n\n\t\treceivedDate: values.receivedDate,\n\t\tservices: allServices.map((item: PetPrice) => ({\n\t\t\tid: item.id,\n\t\t\tpriceId: item.priceId,\n\t\t\tnodeId: item.nodeId,\n\t\t\tname: item.name,\n\n\t\t\tcount: item.count,\n\t\t\tvalue: item.value,\n\t\t\textra: item.extra,\n\n\t\t\tnote: item.note,\n\t\t})) ?? [],\n\n\t\tspreadLat: values.serviceType === ServiceType.Communal ? values.spreadLat : null,\n\t\tspreadLong: values.serviceType === ServiceType.Communal ? values.spreadLong : null,\n\n\t\tspecialInstructions: values.specialInstructions,\n\t\tinternalIdNum: values.internalIdNum,\n\t\tvet: '',\n\t\tfiles,\n\t};\n}\n\nexport function toUpdateMessage(values: PetFormValues | ReturnValues, userRole?: UserRole): UpdatePetMessage {\n\tconst allServices = [...values.services ?? [], ...values.products, ...values.urns];\n\tconst services: Array = allServices\n\t\t.filter((q: PetPrice) =>\n\t\t\t!q.price\n\t\t\t|| q.price.specialServiceId !== null\n\t\t\t|| q.price.priceKind === PriceKind.ProductPrice\n\t\t\t|| q.price.priceKind === PriceKind.UrnPrice\n\t\t\t|| q.price.priceKind === PriceKind.PickupPrice)\n\t\t.map((service: PetPrice): UpdatePetPriceMessage => ({\n\t\t\tid: service.id,\n\t\t\tremoved: service.removed ?? false,\n\n\t\t\tpriceId: service.priceId,\n\t\t\tnodeId: service.nodeId,\n\t\t\tcount: service.count,\n\t\t\tvalue: service.value,\n\t\t\tnote: service.note,\n\t\t}));\n\n\tconst crematoryId = userRole && userRole === UserRole.Admin ? values.crematoryId : undefined;\n\tconst files = values.files.map((item: PetFile) => ({\n\t\tfileId: item.fileId,\n\t\tid: item.id,\n\t\tobjectId: item.objectId,\n\t\ttext: item.text,\n\t\tdeleted: item.deleted,\n\t}));\n\n\treturn {\n\t\tid: values.id,\n\n\t\tactualWeight: Math.max(values.actualWeight || 0, 0),\n\t\treportedWeight: Math.max(values.reportedWeight || 0, 0),\n\t\tashesWeight: Math.max(values.ashesWeight || 0, 0),\n\n\t\tclinicId: values.clinicId,\n\t\tclinicLocationId: values.clinicLocationId,\n\n\t\tcrematoryId,\n\n\t\tname: values.name,\n\t\tengraving: values.engraving ?? [],\n\t\tcolor: values.color,\n\t\tonHold: values.onHold,\n\n\t\tdeliveryAddress: values.deliveryAddress,\n\t\tdeliveryAddress2: values.deliveryAddress2,\n\t\tdeliveryCity: values.deliveryCity,\n\t\tdeliveryClinicId: values.deliveryClinicId,\n\t\tdeliveryStateId: values.deliveryStateId,\n\t\tdeliveryZip: values.deliveryZip,\n\t\tdeliveryType: values.deliveryType,\n\t\tdeliveryTypeId: values.deliveryTypeId,\n\n\t\tcarrierId: values.carrierId ?? null,\n\t\ttrackingNumber: values.trackingNumber ?? '',\n\n\t\tgenderId: values.genderId,\n\t\tdiscountId: values.discountId,\n\n\t\tserviceType: values.serviceType,\n\t\tpriceType: values.priceType,\n\n\t\townerAddress: values.ownerAddress,\n\t\townerAddress2: values.ownerAddress2,\n\t\townerCity: values.ownerCity,\n\t\townerEmail: values.ownerEmail,\n\t\townerFirstName: values.ownerFirstName,\n\t\townerLastName: values.ownerLastName,\n\t\townerNotes: values.ownerNotes,\n\t\townerPhone: values.ownerPhone,\n\t\townerPhone2: values.ownerPhone2,\n\t\townerStateId: values.ownerStateId,\n\t\townerZip: values.ownerZip,\n\n\t\tpetSpecieId: values.petSpecieId,\n\t\tpetBreedId: values.petBreedId,\n\t\tisMixed: values.isMixed,\n\t\trush: values.rush,\n\n\t\treceivedDate: values.receivedDate,\n\t\tisSpecial: values.isSpecial,\n\n\t\tspreadLat: values.serviceType === ServiceType.Communal ? values.spreadLat : null,\n\t\tspreadLong: values.serviceType === ServiceType.Communal ? values.spreadLong : null,\n\n\t\tspecialInstructions: values.specialInstructions,\n\t\tinternalIdNum: values.internalIdNum,\n\t\tvet: values.vet,\n\n\t\tupdateServices: services,\n\n\t\trecalculatePrice: values.recalculatePrice,\n\n\t\tfiles,\n\t};\n}\n\n// Calculate full internationalization dictionary key\nexport function iKey(key: string): string {\n\treturn `editors.pet-editor.${key}`;\n}\n\nexport function updateSpecialServiceKit(services: Array): Array {\n\treturn services.map((i: PetPrice) => {\n\t\tif (i.price?.specialService?.specialServiceType === SpecialServiceType.Kit) {\n\t\t\tconst parent = i;\n\n\t\t\tconst children = services.filter((c) => c.price?.specialService?.parentId === parent.price?.specialServiceId);\n\t\t\tconst completed = children.reduce((prev, cur) => prev && cur.done, true);\n\n\t\t\treturn { ...parent, done: completed };\n\t\t}\n\n\t\treturn i;\n\t});\n}\n\nconst condition = (isClinic: boolean, item: StoreEntryNode, value: StoreEntryAttributeValue) => (isClinic\n\t? value.id === item.valueId && !value.attribute?.clinicCanPick\n\t: value.id === item.valueId);\n\nexport function getUrnSegments(record: PetPrice, isClinic: boolean = false): Array {\n\tconst entry = record?.entry;\n\tconst id = record.nodeId;\n\tif (!entry) return [];\n\n\tconst node = record.node ?? entry.tree.find((item: StoreEntryNode) => item.id === id);\n\tif (!node) return [];\n\n\tconst path = getPath(entry, node);\n\tif (!path.length) return [];\n\n\tconst values = entry.attributes.flatMap((attribute: StoreEntryAttribute) => attribute.values);\n\n\treturn path.map((item: StoreEntryNode) => {\n\t\tif (item.valueId === null) return null;\n\n\t\treturn values.find((v: StoreEntryAttributeValue) => condition(isClinic, item, v))?.name;\n\t}).filter(isPresent);\n}\n\nconst unknown: string = 'Unknown Urn';\nexport function getUrnFullName(record: PetPrice): string {\n\tconst entry = record?.entry;\n\tif (!entry) return unknown;\n\n\tconst segments = getUrnSegments(record);\n\tsegments.unshift(entry.name);\n\n\treturn segments.join(' ');\n}\n\nexport const timeoutCode = 3;\n\nfunction setId(item: T): T & WithId {\n\treturn {\n\t\tid: -1,\n\t\t...item,\n\t};\n}\n\nfunction removeKey(diffs: Partial, array: Array, key: keyof Partial) {\n\tif (array.length) return;\n\n\tdelete diffs[key];\n}\n\ninterface DiffMessage {\n\tservices: Array;\n\tengraving: Array;\n\tfiles: Array>;\n}\n\nexport function diff(origin: T, update: T): boolean {\n\tconst changes = getShallowChanges(setId(origin), setId(update));\n\tconst servicesDiff = getArrayChanges(origin.services.map(setId), update.services.map(setId));\n\tconst engravingDiff = getArrayChanges(origin.engraving, update.engraving);\n\tconst filesDiff = getArrayChanges(origin.files.map(setId), update.files.map(setId));\n\n\tremoveKey(changes, servicesDiff, 'services');\n\tremoveKey(changes, engravingDiff, 'engraving');\n\tremoveKey(changes, filesDiff, 'files');\n\n\treturn Object.values(changes).length > 1;\n}\n","module.exports = (__webpack_require__(7))(955);","import { createContext } from 'react';\nvar IconContext = /*#__PURE__*/createContext({});\nexport default IconContext;","function getRoot(ele) {\n var _ele$getRootNode;\n return ele === null || ele === void 0 || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);\n}\n\n/**\n * Check if is in shadowRoot\n */\nexport function inShadow(ele) {\n return getRoot(ele) instanceof ShadowRoot;\n}\n\n/**\n * Return shadowRoot if possible\n */\nexport function getShadowRoot(ele) {\n return inShadow(ele) ? getRoot(ele) : null;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { generate as generateColor } from '@ant-design/colors';\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport { getShadowRoot } from \"rc-util/es/Dom/shadow\";\nimport warn from \"rc-util/es/warning\";\nimport React, { useContext, useEffect } from 'react';\nimport IconContext from \"./components/Context\";\nfunction camelCase(input) {\n return input.replace(/-(.)/g, function (match, g) {\n return g.toUpperCase();\n });\n}\nexport function warning(valid, message) {\n warn(valid, \"[@ant-design/icons] \".concat(message));\n}\nexport function isIconDefinition(target) {\n return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');\n}\nexport function normalizeAttrs() {\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return Object.keys(attrs).reduce(function (acc, key) {\n var val = attrs[key];\n switch (key) {\n case 'class':\n acc.className = val;\n delete acc.class;\n break;\n default:\n delete acc[key];\n acc[camelCase(key)] = val;\n }\n return acc;\n }, {});\n}\nexport function generate(node, key, rootProps) {\n if (!rootProps) {\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n }\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread(_objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n}\nexport function getSecondaryColor(primaryColor) {\n // choose the second color\n return generateColor(primaryColor)[0];\n}\nexport function normalizeTwoToneColors(twoToneColor) {\n if (!twoToneColor) {\n return [];\n }\n return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];\n}\n\n// These props make sure that the SVG behaviours like general text.\n// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\nexport var svgBaseProps = {\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true',\n focusable: 'false'\n};\nexport var iconStyles = \"\\n.anticon {\\n display: inline-flex;\\n align-items: center;\\n color: inherit;\\n font-style: normal;\\n line-height: 0;\\n text-align: center;\\n text-transform: none;\\n vertical-align: -0.125em;\\n text-rendering: optimizeLegibility;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.anticon > * {\\n line-height: 1;\\n}\\n\\n.anticon svg {\\n display: inline-block;\\n}\\n\\n.anticon::before {\\n display: none;\\n}\\n\\n.anticon .anticon-icon {\\n display: block;\\n}\\n\\n.anticon[tabindex] {\\n cursor: pointer;\\n}\\n\\n.anticon-spin::before,\\n.anticon-spin {\\n display: inline-block;\\n -webkit-animation: loadingCircle 1s infinite linear;\\n animation: loadingCircle 1s infinite linear;\\n}\\n\\n@-webkit-keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\";\nexport var useInsertStyles = function useInsertStyles(eleRef) {\n var _useContext = useContext(IconContext),\n csp = _useContext.csp,\n prefixCls = _useContext.prefixCls;\n var mergedStyleStr = iconStyles;\n if (prefixCls) {\n mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);\n }\n useEffect(function () {\n var ele = eleRef.current;\n var shadowRoot = getShadowRoot(ele);\n updateCSS(mergedStyleStr, '@ant-design-icons', {\n prepend: true,\n csp: csp,\n attachTo: shadowRoot\n });\n }, []);\n};","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nvar _excluded = [\"icon\", \"className\", \"onClick\", \"style\", \"primaryColor\", \"secondaryColor\"];\nimport * as React from 'react';\nimport { generate, getSecondaryColor, isIconDefinition, warning, useInsertStyles } from \"../utils\";\nvar twoToneColorPalette = {\n primaryColor: '#333',\n secondaryColor: '#E6E6E6',\n calculated: false\n};\nfunction setTwoToneColors(_ref) {\n var primaryColor = _ref.primaryColor,\n secondaryColor = _ref.secondaryColor;\n twoToneColorPalette.primaryColor = primaryColor;\n twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);\n twoToneColorPalette.calculated = !!secondaryColor;\n}\nfunction getTwoToneColors() {\n return _objectSpread({}, twoToneColorPalette);\n}\nvar IconBase = function IconBase(props) {\n var icon = props.icon,\n className = props.className,\n onClick = props.onClick,\n style = props.style,\n primaryColor = props.primaryColor,\n secondaryColor = props.secondaryColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var svgRef = React.useRef();\n var colors = twoToneColorPalette;\n if (primaryColor) {\n colors = {\n primaryColor: primaryColor,\n secondaryColor: secondaryColor || getSecondaryColor(primaryColor)\n };\n }\n useInsertStyles(svgRef);\n warning(isIconDefinition(icon), \"icon should be icon definiton, but got \".concat(icon));\n if (!isIconDefinition(icon)) {\n return null;\n }\n var target = icon;\n if (target && typeof target.icon === 'function') {\n target = _objectSpread(_objectSpread({}, target), {}, {\n icon: target.icon(colors.primaryColor, colors.secondaryColor)\n });\n }\n return generate(target.icon, \"svg-\".concat(target.name), _objectSpread(_objectSpread({\n className: className,\n onClick: onClick,\n style: style,\n 'data-icon': target.name,\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true'\n }, restProps), {}, {\n ref: svgRef\n }));\n};\nIconBase.displayName = 'IconReact';\nIconBase.getTwoToneColors = getTwoToneColors;\nIconBase.setTwoToneColors = setTwoToneColors;\nexport default IconBase;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport ReactIcon from \"./IconBase\";\nimport { normalizeTwoToneColors } from \"../utils\";\nexport function setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return ReactIcon.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\nexport function getTwoToneColor() {\n var colors = ReactIcon.getTwoToneColors();\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n return [colors.primaryColor, colors.secondaryColor];\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"icon\", \"spin\", \"rotate\", \"tabIndex\", \"onClick\", \"twoToneColor\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { blue } from '@ant-design/colors';\nimport Context from \"./Context\";\nimport ReactIcon from \"./IconBase\";\nimport { getTwoToneColor, setTwoToneColor } from \"./twoTonePrimaryColor\";\nimport { normalizeTwoToneColors } from \"../utils\";\n// Initial setting\n// should move it to antd main repo?\nsetTwoToneColor(blue.primary);\n\n// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720\n\nvar Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n icon = props.icon,\n spin = props.spin,\n rotate = props.rotate,\n tabIndex = props.tabIndex,\n onClick = props.onClick,\n twoToneColor = props.twoToneColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var _React$useContext = React.useContext(Context),\n _React$useContext$pre = _React$useContext.prefixCls,\n prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,\n rootClassName = _React$useContext.rootClassName;\n var classString = classNames(rootClassName, prefixCls, _defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(icon.name), !!icon.name), \"\".concat(prefixCls, \"-spin\"), !!spin || icon.name === 'loading'), className);\n var iconTabIndex = tabIndex;\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1;\n }\n var svgStyle = rotate ? {\n msTransform: \"rotate(\".concat(rotate, \"deg)\"),\n transform: \"rotate(\".concat(rotate, \"deg)\")\n } : undefined;\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n role: \"img\",\n \"aria-label\": icon.name\n }, restProps, {\n ref: ref,\n tabIndex: iconTabIndex,\n onClick: onClick,\n className: classString\n }), /*#__PURE__*/React.createElement(ReactIcon, {\n icon: icon,\n primaryColor: primaryColor,\n secondaryColor: secondaryColor,\n style: svgStyle\n }));\n});\nIcon.displayName = 'AntdIcon';\nIcon.getTwoToneColor = getTwoToneColor;\nIcon.setTwoToneColor = setTwoToneColor;\nexport default Icon;","module.exports = (__webpack_require__(7))(945);","import { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { StatusOrder } from '@app/objects/StatusOrder';\nimport { User } from '@app/objects/User';\n\nexport enum FunctionsGroup {\n\tReports = 'Reports',\n\tClinic = 'Clinic Dashboard',\n\tSystemActions = 'System Actions',\n}\n\nexport enum StatusFunction {\n\tPickupReport = 0,\n\tBatchAction = 1,\n\tDropOffReport = 2,\n\tMarkAtClinic = 3,\n\tMarkAtCrematory = 4,\n\tMarkDelivered = 5,\n\tRequireManualChange = 6,\n\tInvoiceDate = 7,\n\tCoordinateBatch = 9,\n\tTurnAroundDelivered = 10,\n\tTurnAroundPickup = 11,\n\tConditionalManualChange = 12,\n}\n\nexport interface StatusOrderFunction extends WithId {\n\tstatusOrder: Nullable;\n\tstatusOrderId: number;\n\tcreator: Nullable;\n\tcreatorId: number;\n\tfunction: StatusFunction;\n\tcreatedDate: number;\n}\n\n/* eslint max-len: [\"error\", { \"ignoreStrings\": true }] */\nexport const statusOrderFunctionDescriptions: Record = {\n\t[StatusFunction.PickupReport]: 'Mark pets in this status to be used for pickup report as pet to be picked up.',\n\t[StatusFunction.BatchAction]: 'Mark pets in this status to be used by Batch Action.',\n\t[StatusFunction.DropOffReport]: 'Mark pets in this status to be used for pickup report as pet to be dropped off.',\n\t[StatusFunction.MarkAtClinic]: 'Pets in this status and all subsequent statuses (until Mark At Crematory / Mark Delivered) will be counted as \\'At Clinic\\' on clinic\\'s dashboard.',\n\t[StatusFunction.MarkAtCrematory]: 'Pets in this status and all subsequent statuses (until Mark At Clinic / Mark Delivered) will be counted as \\'At Crematory\\' on clinic\\'s dashboard.',\n\t[StatusFunction.MarkDelivered]: 'Pets in this status and all subsequent statuses (until Mark At Clinic / Mark At Crematory) will be counted as \\'Delivered\\' on clinic\\'s dashboard.',\n\t[StatusFunction.RequireManualChange]: 'Force stop at this status during status change even if no user action is required. This makes difference only when using Status Flow Policy - Allow Skipping.',\n\t[StatusFunction.InvoiceDate]: 'Use date and time when pet entered current status for invoice calculation. By default invoices use date and time when pet was added to the system.',\n\t[StatusFunction.CoordinateBatch]: 'Pets in this or any subsequent status can be used for \\'Coordinate Batch\\'',\n\t[StatusFunction.TurnAroundDelivered]: 'Mark status to be used as final status for turnaround report (except Pickup delivery type)',\n\t[StatusFunction.TurnAroundPickup]: 'Mark status to be used as final status for turnaround report (Pickup delivery type)',\n\t[StatusFunction.ConditionalManualChange]: 'Require manual status change if pet has any special services requested',\n};\n","module.exports = (__webpack_require__(7))(1482);","import * as React from 'react';\n\nimport clsx from 'clsx';\nimport { FieldProps, ErrorMessage } from 'formik';\nimport Input, { InputProps } from 'antd/lib/input';\n\nexport type FormikInputRenderFunc = (fieldProps: FieldProps, inputProps?: InputProps) => React.ReactNode;\n\ninterface ErrorComponentProps {\n\terror: string | Record;\n}\n\nexport interface FormikInputProps {\n\tfieldProps: FieldProps;\n\n\ttitle?: React.ReactNode;\n\tinputId?: string;\n\tinputProps?: InputProps;\n\n\tcontainerClassName?: string;\n\trender?: FormikInputRenderFunc;\n\n\tshowValidateAfterSubmit?: boolean;\n\tErrorComponent?: React.FC;\n}\n\nconst defaultRender = ({ field }: FieldProps, inputProps?: InputProps) => (\n\t\n);\n\nexport const defaultErrorComponent: React.FC = (props: ErrorComponentProps) => (\n\t
\n\t\t{typeof props.error === 'string' ? props.error : Object.keys(props.error)\n\t\t\t.filter((key: string) => typeof props.error[key] === 'string')\n\t\t\t.map((key: string) => props.error[key])\n\t\t\t.join(', ')}\n\t
\n);\n\nexport const FormikInput: React.FC = ({\n\tfieldProps,\n\tcontainerClassName = 'form-group col-sm-6',\n\trender = defaultRender,\n\ttitle,\n\tinputId,\n\tshowValidateAfterSubmit = true,\n\tinputProps,\n\tErrorComponent = defaultErrorComponent,\n}) => {\n\tconst { form, field } = fieldProps;\n\n\tconst errorMessage = (showValidateAfterSubmit ? form.submitCount > 0 : true)\n\t\t? ) => } />\n\t\t: null;\n\tconst isError = errorMessage && Object.keys(form.errors).includes(field.name);\n\n\treturn (\n\t\t
\n\t\t\t{title && }\n\t\t\t{render(fieldProps, inputProps)}\n\t\t\t{errorMessage}\n\t\t
\n\t);\n};\n","module.exports = (__webpack_require__(7))(1);","module.exports = (__webpack_require__(7))(171);","import notification from 'antd/lib/notification';\nimport { ReactNode } from 'react';\n\nexport enum MessageType {\n\tsuccess = 'success',\n\terror = 'error',\n\twarning = 'warning',\n\tinfo = 'info'\n}\n\nexport function alertMessage(type: MessageType, message: ReactNode): void {\n\tnotification[type]({\n\t\tmessage,\n\t\tplacement: 'bottomRight',\n\t});\n}\n","import {\n\tbindActionCreators,\n\tDispatch,\n\tReducer,\n} from 'redux';\n\nimport {\n\tgetActionCreators as baseGetActionCreators, getReducer,\n\tIActionCreators,\n\tIMappedActionCreators, ItemsState, KnownPageAction,\n} from '@common/react/store/ItemList';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { User } from '@app/objects/User';\n\nimport { ApplicationState } from '@app/store/index';\n\nexport type ItemsActionCreators = IActionCreators;\nexport type MappedItemsActionCreators = IMappedActionCreators;\nexport type KnownItemsActions = KnownPageAction;\n\nexport function getItemsActionCreators(): ItemsActionCreators {\n\treturn baseGetActionCreators();\n}\n\nexport function bindItemsActionCreators(dispatch: Dispatch): MappedItemsActionCreators {\n\treturn bindActionCreators, MappedItemsActionCreators>(getItemsActionCreators(), dispatch);\n}\n\nexport function getItemsReducer(storageName: keyof ApplicationState): Reducer> {\n\treturn getReducer(storageName);\n}\n","module.exports = (__webpack_require__(7))(609);","import { request as baseRequest } from '@common/react/components/Api';\nimport { BaseParams } from '@common/react/objects/BaseParams';\n\nimport { ApplicationState } from '@app/store';\nimport { User } from '@app/objects/User';\n\nexport function request(type: string, data?: D, state?: ApplicationState, signal?: AbortSignal): Promise {\n\treturn baseRequest(type, data, state, signal);\n}\n","/* eslint-disable radix */\nimport dayjs from 'dayjs';\nimport { parse, stringify } from 'query-string';\nimport * as Yup from 'yup';\n\nimport { List } from '@common/typescript/objects/List';\nimport { Named } from '@common/react/utils/utils';\nimport { Sorter } from '@common/react/smart components/Table/TableRemoteSorter';\nimport { SortingDirection } from '@common/react/components/Pages/ItemsPage';\n\nimport { ExpirationColoring } from '@app/objects/Crematory';\nimport { filterKeys, Filters } from '@app/components/UI/Filters/FilterHook';\n/** An abstraction over different date types */\nexport type DateType = Date | dayjs.Dayjs | number | null | undefined;\n\nexport const dateFormat = 'MM/DD/YYYY';\nexport const timeFormat = 'hh:mm a';\n\nexport const phoneMask = (code: string) => [...code.split(''), ' ', '(', /\\d/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\nexport const phoneFormat = /^\\+\\d{1,3} \\(\\d{3}\\) \\d{3}-\\d{4}$/;\n\nexport const FILE_INFO_MESSAGE = 'Image size must not exceed 5 Mb';\n\nexport enum ViewMode {\n\tview = 'view',\n\tedit = 'edit',\n}\n\nexport enum DeviceType {\n\tmobile = 0,\n\tdesktop = 1,\n}\n\nexport interface ResultDatesRange {\n\tfrom: number | undefined,\n\tto: number | undefined,\n}\n\n/**\n * Function takes formatted phone (i.e. +1 (999) 642-2120 and converts it to raw number string (+19996422120)\n * @param {string | null | undefined} phone - formatted phone string (it's not being verified)\n * @returns {string} Formatted phone\n */\nexport const phoneReplace = (phone: string | null | undefined): string => (phone?.replace(/[()\\-\\s]/g, '') ?? '');\n\n/**\n * Function converts phone saved as number string to formatted phone string (i.e. +19996422120 to +1 (999) 642-2120)\n * @param {string | null | undefined} phone - raw number string phone\n * @returns {string} formatted phone string\n */\nexport const formatPhone = (phone: string | null | undefined): string => (phone?.replace(/^\\+1(\\d{3})(\\d{3})(\\d{4})$/, '+1 ($1) $2-$3') ?? '');\n\n/**\n * Function checks if specified string is formatted phone string\n * @param {string | null | undefined} phone - formatted phone string\n * @returns {boolean} True if string is formatted phone string, false otherwise\n */\nexport const isFormattedPhone = (phone: string | null | undefined): boolean =>\n\t(phone ? new RegExp(/^\\+1 \\(\\d{3}\\) \\d{3}-\\d{4}$/, undefined).test(phone) : false);\n\n/**\n * Converts string of type 'testString' to 'TestString' - making first char to be upper cased\n * @param {string} item - string for conversion\n * @return {string}\n */\nexport const toUpperCase = (item: string): string => item[0].toUpperCase() + item.slice(1);\nexport const toLowerCase = (item: string): string => item[0].toLowerCase() + item.slice(1);\n\nexport const toWords = (camelCase: string): string => camelCase.replace(/([a-z])([A-Z])/g, '$1 $2');\n/**\n * Returns concatenated name string. Use this function in order to have uniform names\n * @param {Named} item - any object that has firstName and lastName\n * @return {string}\n */\nexport const getUserName = (item: Named): string => (item ? `${item.firstName || ''} ${item.lastName || ''}`.trim() : '');\n\n/**\n * Options that control how date should be formatted\n */\ninterface FormatDateOptions {\n\tview: 'short' | 'long';\n\twithTime: boolean;\n\twithWeekDay: boolean;\n\tfallback: string;\n}\n\n/**\n * Convert DateType object to string to display\n * @param {DateType} date - date that needs to be displayed\n * @param {Partial} formatOptions - options that control formatting\n * @return {string}\n */\nexport const formatDate = (date: DateType, formatOptions?: Partial): string => {\n\tconst locale = 'en-US';\n\tlet options: Intl.DateTimeFormatOptions;\n\tconst formatDateOptions: FormatDateOptions = {\n\t\tview: formatOptions?.view ?? 'short',\n\t\twithTime: formatOptions?.withTime ?? false,\n\t\twithWeekDay: formatOptions?.withWeekDay ?? false,\n\t\tfallback: formatOptions?.fallback ?? '-',\n\t};\n\tconst time: Intl.DateTimeFormatOptions = {\n\t\thour12: true,\n\t\thour: formatDateOptions.withTime ? 'numeric' : undefined,\n\t\tminute: formatDateOptions.withTime ? 'numeric' : undefined,\n\t};\n\n\tif (formatDateOptions.view === 'long') {\n\t\toptions = {\n\t\t\tyear: 'numeric',\n\t\t\tmonth: 'long',\n\t\t\tday: 'numeric',\n\t\t\tweekday: formatDateOptions.withWeekDay ? 'long' : undefined,\n\t\t\t...time,\n\t\t};\n\t} else {\n\t\toptions = {\n\t\t\tyear: 'numeric',\n\t\t\tmonth: '2-digit',\n\t\t\tday: '2-digit',\n\t\t\t...time,\n\t\t};\n\t}\n\n\tif (typeof date === 'number') return new Date(date).toLocaleDateString(locale, options);\n\tif (date instanceof Date) return date.toLocaleDateString(locale, options);\n\tif (dayjs.isDayjs(date)) return dayjs().toDate().toLocaleDateString(locale, options);\n\n\treturn formatDateOptions.fallback;\n};\n\n/**\n * Helper function that identifies whether current device's viewport is mobile or not\n * @return {boolean}\n */\nexport const isMobile = (): boolean => typeof window !== 'undefined' && window.innerWidth < 768;\n\n/**\n * Calculated difference between current date (today) and 'value' in full days\n * @param {DateType} value - date to calculate difference for\n * @return {number}\n */\nexport const convertDate = (value: number): number => dayjs().subtract(value, 'days').startOf('day').valueOf();\nexport const getDatesDiff = (value: DateType): number => dayjs().diff(dayjs(value).startOf('day'), 'days');\nexport const isTablet = (): boolean => typeof window !== 'undefined' && window.innerWidth < 1024;\nexport const isDesktop = (): boolean => typeof window !== 'undefined' && window.innerWidth > 1200;\nexport const getFiltersDate = (value: number | undefined):number | undefined => (value !== undefined ? convertDate(value) : undefined);\n\nexport const withZeroNumberValidator = Yup.number().integer().moreThan(-1).required('Required field');\n\n/**\n * Return expiration color code based on passed time\n * @param {ExpirationColoring[]} colorTags - an array of preferences to choose from\n * @param {number} daysDiff - how much time has passed\n * @return {string | undefined}\n */\nexport const getColor = (colorTags: Array, daysDiff: number): string | undefined => {\n\tfor (let i = 0; i < colorTags.length; i++) {\n\t\tconst elm = colorTags[i];\n\t\tif (daysDiff >= elm.days) {\n\t\t\treturn elm.color;\n\t\t}\n\t}\n\n\treturn undefined;\n};\n\nexport const getDateRange = (colorTags: Array, color: string | undefined): ResultDatesRange => {\n\tconst res: ResultDatesRange = { from: undefined, to: undefined };\n\n\tfor (let i = 0; i < colorTags.length; i++) {\n\t\tconst elm = colorTags[i];\n\t\tif (elm.color === color) {\n\t\t\tres.from = elm.days;\n\n\t\t\tif (i > 0) {\n\t\t\t\tres.to = colorTags[i - 1].days;\n\t\t\t}\n\t\t}\n\n\t\tif (res.from === undefined && colorTags.length) {\n\t\t\tres.to = colorTags[colorTags.length - 1].days;\n\t\t}\n\t}\n\n\treturn res;\n};\n\n/**\n * Type Guard that checks if items are a List\n * @param {Array | List} items - items which type is tested\n * @return {items is List}\n */\nexport function isList(items: Array | List): items is List {\n\treturn (items as List).list !== undefined;\n}\n\n/**\n * Type Guard that checks if items are an array\n * @param {Array | List} items - items which type is tested\n * @return {items is Array}\n */\nexport function isArray(items: Array | List): items is Array {\n\treturn (items as Array).length !== undefined;\n}\n\n/**\n * The function is used to get an exact number of items in array or list.\n * This is a helper function that allows one to skip checks for exact items type (list or array)\n * @param {Array | List} items - a list or array of items\n * @return {number}\n */\nexport function count(items: Array | List): number {\n\tif (isList(items)) return items.count;\n\n\treturn items.length;\n}\n\n/**\n * Function converts current filter preset to url search params string\n * @param {Partial} params - filters object that needs to be encoded\n * @return {string}\n */\nexport const encodeSearchParams = (params: Partial): string => {\n\tconst parsedParams = Object.keys(params).reduce((acc, key) => {\n\t\tif (Object.prototype.toString.call(params[key]) === '[object Object]') {\n\t\t\tacc[key] = JSON.stringify(params[key]);\n\t\t} else {\n\t\t\tacc[key] = params[key];\n\t\t}\n\n\t\treturn acc;\n\t}, {});\n\n\treturn stringify(parsedParams, { arrayFormat: 'bracket' });\n};\n\n/**\n * Helper function that identifies whether current string is a json object\n * @param {string} value - string to test\n * @return {boolean}\n */\nexport function isJsonObject(value: string): boolean {\n\ttry {\n\t\treturn JSON.parse(value).toString() === '[object Object]';\n\t} catch (e) {\n\t\treturn false;\n\t}\n}\n\n/**\n * Function converts url search params into a Filters object\n * @param {string} params - a url encoded filters object\n * @return {Partial}\n */\nexport const decodeSearchParams = (params: string): Partial => {\n\tconst parsedParams: Partial = parse(params, { arrayFormat: 'bracket', parseNumbers: true });\n\n\treturn Object.keys(parsedParams).reduce((acc, key) => {\n\t\tif (isJsonObject(parsedParams[key])) {\n\t\t\tacc[key] = JSON.parse(parsedParams[key].toString());\n\t\t} else {\n\t\t\tacc[key] = parsedParams[key];\n\t\t}\n\n\t\treturn acc;\n\t}, {});\n};\n\n/**\n * Converts an object of extended type T to object of type T by removing all of its keys that do not fit filter function\n * @param {T} object - an object that needs to be filtered\n * @param {(key: string) => boolean} filter - a function that tests whether current key should be included into final object\n * @return {T}\n */\nexport const filterObject = <\n\tT extends Record,\n>(object: T, filter: (key: keyof T) => boolean): T => {\n\treturn Object.keys(object)\n\t\t.filter(filter)\n\t\t.reduce((obj: Partial, key: keyof T) => {\n\t\t\tobj[key] = object[key];\n\n\t\t\treturn obj;\n\t\t}, {}) as T;\n};\n\n/**\n * Leaves only those fields of 'filters' that are valid filter options\n * @param {Record} filters - an object containing both filters options and other fields\n * @return {Record}\n */\nexport const getPageFilters = (filters: Record): Partial => {\n\treturn filterObject(filters, (key: string) => (filterKeys as Array).includes(key));\n};\n\n/**\n * Leaves only those fields of 'filters' that are not valid filter options\n * @param {Record} filters - an object containing both filters options and other fields\n * @return {Record}\n */\nexport const getSideFilters = (filters: Record): Record => {\n\treturn filterObject(filters, (key: string) => !(filterKeys as Array).includes(key));\n};\n\n/**\n * Transforms Antd sorter props to ones we send to server\n * @param {SorterResult|undefined} sorter - an object containing props from ant table sorter\n * @return {Sorter}\n */\nexport const transformSorter = (sorter): Sorter => {\n\treturn {\n\t\tcolumn: sorter?.column ? [{\n\t\t\tcaption: sorter.field,\n\t\t\tdirection: sorter.order === 'descend'\n\t\t\t\t? SortingDirection.Descending\n\t\t\t\t: SortingDirection.Ascending,\n\t\t}] : [],\n\t};\n};\n","module.exports = (__webpack_require__(7))(953);","module.exports = (__webpack_require__(7))(587);","import * as React from 'react';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { request } from '@common/react/components/Api/Request';\nimport { wrapDomain } from '@common/react/components/Api/Wrappers';\nimport { ResponseError } from '@common/react/components/Api/RequestError';\n\nimport { User } from '@app/objects/User';\nimport { ApplicationState } from '@app/store';\n\nexport interface RequestConfig {\n\trequestOnMount: boolean;\n\tcancelOnUnmount?: boolean;\n\tidempotencyToken?: string;\n}\n\ntype LoadFunction = (data?: TData) => Promise;\n\nexport interface RequestData {\n\tloading: boolean;\n\terror: Nullable;\n\tcode: number;\n\titem: Nullable;\n\n\treload: LoadFunction;\n\tcancel: (reason?: string) => void;\n}\n\nconst defaultConfig: RequestConfig = {\n\trequestOnMount: true,\n\tcancelOnUnmount: true,\n};\n\nfunction toResponseError(msg: string | ResponseError): ResponseError {\n\tif (typeof msg === 'string') return new ResponseError({ message: msg, code: -1 });\n\n\treturn msg;\n}\n\nconst defaultAbortReason: string = 'Request terminated. Most likely these happened due to unmount event of component to prevent memory leaks';\n\nexport function useRequest(\n\tendpoint: string,\n\tdata: TData | undefined = undefined,\n\tconfig: RequestConfig = defaultConfig,\n): RequestData {\n\tconst [item, setItem] = React.useState(null);\n\tconst [loading, setLoading] = React.useState(false);\n\tconst [error, setError] = React.useState(null);\n\tconst [code, setCode] = React.useState(0);\n\tconst controller = React.useRef>(null);\n\n\tconst cancel = (reason: string = defaultAbortReason) => controller.current?.abort(reason);\n\tconst load: LoadFunction = (data?: TData) => {\n\t\tsetItem(null);\n\t\tsetError(null);\n\t\tsetLoading(true);\n\n\t\tcontroller.current?.abort('Another fetch of the same kind is requested');\n\t\tconst abortController = new AbortController();\n\t\tcontroller.current = abortController;\n\n\t\tconst task = wrapDomain(request(endpoint, data, undefined, abortController.signal, config.idempotencyToken));\n\n\t\treturn task\n\t\t\t.then((item: TItem) => {\n\t\t\t\tsetItem(item);\n\t\t\t\tsetLoading(false);\n\t\t\t\tsetCode(0);\n\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.catch((error: string | ResponseError) => {\n\t\t\t\tif (abortController.signal.aborted) return;\n\n\t\t\t\tconst content = toResponseError(error);\n\t\t\t\tsetError(content.message);\n\t\t\t\tsetLoading(false);\n\t\t\t\tsetCode(content.code);\n\n\t\t\t\tthrow content;\n\t\t\t});\n\t};\n\n\tReact.useEffect(() => {\n\t\tif (config.requestOnMount) {\n\t\t\tload(data);\n\t\t}\n\n\t\treturn () => {\n\t\t\tif (config.cancelOnUnmount) cancel();\n\t\t};\n\t}, []);\n\n\treturn {\n\t\tloading,\n\t\terror,\n\t\tcode,\n\t\titem,\n\n\t\treload: load,\n\t\tcancel,\n\t};\n}\n","/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */ export function invariant(condition, format, ...args) {\n if (isProduction()) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n if (!condition) {\n let error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n let argIndex = 0;\n error = new Error(format.replace(/%s/g, function() {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n error.framesToPop = 1 // we don't care about invariant's own frame\n ;\n throw error;\n }\n}\nfunction isProduction() {\n return typeof process !== 'undefined' && process.env['NODE_ENV'] === 'production';\n}\n\n//# sourceMappingURL=index.js.map","module.exports = (__webpack_require__(7))(4);","import { TFunction } from 'react-i18next';\n\nimport { List } from '@common/typescript/objects/List';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { User } from '@app/objects/User';\nimport { DeliveryType, ServiceType, WeightSource } from '@app/objects/Pet';\nimport { ChemicalsTable } from '@app/objects/ChemicalsTable';\nimport { Carrier } from '@app/objects/Carriers';\nimport { Language } from '@app/objects/Language';\nimport { Country } from '@app/objects/Country';\nimport { Clinic } from '@app/objects/Clinic';\nimport { toLowerCase } from '@app/components/Utils/Utils';\nimport { State } from '@app/objects/State';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { InvoiceTaxModel } from '@app/objects/Invoice';\n\nexport enum StatusFlowPolicy\n{\n\tDisallowSkipping = 0,\n\tAllowSkipping = 1,\n}\n\nexport enum WeightUnits {\n\tPounds = 0,\n\tKilograms = 1,\n}\n\nexport enum CrematoryType {\n\tCremation = 0,\n\tAquamation = 1,\n\tBoth = 2,\n}\n\nexport enum TaxPolicy {\n\tTaxExcluded = 0,\n\tTaxIncluded = 1,\n}\n\nexport interface Units {\n\tweight: WeightUnits;\n}\n\nexport function toString(policy: StatusFlowPolicy) {\n\tswitch (policy) {\n\tcase StatusFlowPolicy.DisallowSkipping:\n\t\treturn 'Disallow Skipping';\n\n\tcase StatusFlowPolicy.AllowSkipping:\n\t\treturn 'Allow Skipping';\n\n\tdefault:\n\t\treturn 'Unknown Policy';\n\t}\n}\n\nexport interface CrematoryServiceTypePreferences extends WithId {\n\tuseServiceType: boolean; // Включен ли у данного крематория указанный ServiceType\n\tshowInternalId: boolean;\n\trequireInternalId: boolean;\n\tretailRequiresUrn: boolean;\n\twholesaleRequiresUrn: boolean;\n\tretailStatusFlowPolicy: StatusFlowPolicy;\n\twholesaleStatusFlowPolicy: StatusFlowPolicy;\n\tpetColor: string;\n\tspecialPetColor: string;\n\tdefaultRetailDeliveryType: DeliveryType;\n\tdefaultWholesaleDeliveryType: DeliveryType;\n\tdefaultRetailDeliveryTypeEntityId: Nullable;\n\tdefaultWholesaleDeliveryTypeEntityId: Nullable;\n}\n\nexport interface Crematory extends WithDeleted {\n\tname: string;\n\texternalToken: string;\n\trequestToken: string;\n\n\tcontactFirstName: string;\n\tcontactLastName: string;\n\n\tstreetAddress: string;\n\tstreetAddress2: string;\n\tcity: string;\n\tstate: Nullable;\n\tstateId: number;\n\tzip: string;\n\n\temail: string;\n\tbillingEmail: string;\n\tphone: string;\n\twebUrl: string;\n\n\tusers?: List;\n\n\tavatar: string;\n\toriginalAvatar: string;\n\n\ttagIcon: string;\n\toriginalTagIcon: string;\n\n\tinventoryNotificationTime: number;\n\tdefaultCarrier?: Carrier;\n\n\tdefaultInventoryItemId?: number;\n\n\tclinicInbox: string;\n\treceiveClinicMails: boolean;\n\n\tlanguage: Nullable;\n\tlanguageId: number;\n\n\tcountry: Nullable;\n\tcountryId: number;\n\n\tdateFormat: string;\n\ttimeFormat: string;\n\n\timportClinicId: Nullable;\n\timportClinic: Nullable;\n\n\tretailServiceTax: number,\n\tretailProductTax: number,\n\twholesaleServiceTax: number,\n\twholesaleProductTax: number,\n\ttaxId: Nullable;\n\twholesaleTaxPolicy: TaxPolicy;\n\tretailTaxPolicy: TaxPolicy;\n\n\tweightSource: WeightSource;\n\talwaysRaiseModal: boolean;\n\n\tbillingId: Nullable;\n\n\tprefillEngraving: boolean;\n\tclinicCanUploadFiles: boolean;\n\n\tunits: Units;\n\tshowPricesToClinic: boolean;\n\n\tprivate: CrematoryServiceTypePreferences;\n\tsemiPrivate: CrematoryServiceTypePreferences;\n\tcommunal: CrematoryServiceTypePreferences;\n\tstorage: CrematoryServiceTypePreferences;\n\tproductsOnly: CrematoryServiceTypePreferences;\n\n\tcrematoryType: CrematoryType;\n\tmanageStock: boolean;\n\n\tinvoiceTaxModel: InvoiceTaxModel;\n}\n\nexport interface CrematoryMachine extends WithId {\n\tname: string;\n\tdescription: string;\n\n\tcrematory: Crematory | null;\n\tcrematoryId: number;\n\n\tchemicalsTable: ChemicalsTable | null;\n\tchemicalsTableId: number | null;\n}\n\nexport interface CrematorySelectInfo extends WithId {\n\tname: string;\n}\n\nexport interface CrematoryListInfo extends WithId {\n\tname: string;\n\n\tavatar: string;\n\toriginalAvatar: string;\n\n\temail: string;\n\tphone: string;\n\n\tcontactFirstName: string;\n\tcontactLastName: string;\n\n\tstreetAddress: string;\n\tstreetAddress2: string;\n\tcity: string;\n\tstate: string;\n\tzip: string;\n\n\tdefaultCarrier?: Carrier;\n\tdefaultCarrierId?: number;\n\n\tlanguage: string;\n\tdateFormat: string;\n\ttimeFormat: string;\n\n\tcountry: string;\n\n\tweightSource: WeightSource,\n\n\tretailServiceTax: number,\n\tretailProductTax: number,\n\twholesaleServiceTax: number,\n\twholesaleProductTax: number,\n\twholesaleTaxPolicy: TaxPolicy;\n\tretailTaxPolicy: TaxPolicy;\n\tinvoiceTaxModel: InvoiceTaxModel;\n\n\tprefillEngraving: boolean;\n\tshowPricesToClinic: boolean;\n\tclinicCanUploadFiles: boolean;\n\n\tunits: Units;\n\n\tprivate: CrematoryServiceTypePreferences;\n\tsemiPrivate: CrematoryServiceTypePreferences;\n\tcommunal: CrematoryServiceTypePreferences;\n\tstorage: CrematoryServiceTypePreferences;\n\tproductsOnly: CrematoryServiceTypePreferences;\n\n\tmanageStock: boolean;\n}\n\nexport interface CrematoryPreferences extends WithId {\n\tcommunalColor: string;\n\tspecialCommunalColor: string;\n\n\tsemiPrivateColor: string;\n\tspecialSemiPrivateColor: string;\n\n\tprivateColor: string;\n\tspecialPrivateColor: string;\n\n\tinventoryNotificationTime: number;\n\n\tclinicInbox: string;\n\treceiveClinicMails: boolean;\n\n\tlanguage: Nullable;\n\tlanguageId: number;\n\n\tcountry: Nullable;\n\tcountryId: number;\n\n\tdateFormat: string;\n\ttimeFormat: string;\n}\n\nexport interface ExpirationColoring extends WithId {\n\tcrematory?: Crematory | null;\n\tcrematoryId: number;\n\n\tdays: number;\n\tcolor: string;\n}\n\nexport interface CustomerServiceView extends WithId {\n\tname: string;\n\temail: string;\n\tphone: string;\n\twebUrl: string;\n\tavatar: string;\n}\n\ntype ColorPreferences = Pick;\n\nexport function barColor(serviceType: ServiceType, isSpecial: boolean = false, crematory?: Nullable): string {\n\tif (!crematory) return 'transparent';\n\n\tswitch (serviceType) {\n\tcase ServiceType.Communal:\n\t\treturn isSpecial ? crematory.communal.specialPetColor : crematory.communal.petColor;\n\n\tcase ServiceType.SemiPrivate:\n\t\treturn isSpecial ? crematory.semiPrivate.specialPetColor : crematory.semiPrivate.petColor;\n\n\tcase ServiceType.Private:\n\t\treturn isSpecial ? crematory.private.specialPetColor : crematory.private.petColor;\n\n\tcase ServiceType.Storage:\n\t\treturn isSpecial ? crematory.storage.specialPetColor : crematory.storage.petColor;\n\n\tdefault:\n\t\treturn '';\n\t}\n}\n\nexport const getDefaultCrematoryServiceTypePreferences = (): CrematoryServiceTypePreferences => ({\n\tid: -1,\n\tuseServiceType: false,\n\tshowInternalId: false,\n\trequireInternalId: false,\n\tretailRequiresUrn: false,\n\twholesaleRequiresUrn: false,\n\tretailStatusFlowPolicy: StatusFlowPolicy.DisallowSkipping,\n\twholesaleStatusFlowPolicy: StatusFlowPolicy.DisallowSkipping,\n\tpetColor: '',\n\tspecialPetColor: '',\n\tdefaultRetailDeliveryType: DeliveryType.None,\n\tdefaultWholesaleDeliveryType: DeliveryType.None,\n\tdefaultRetailDeliveryTypeEntityId: null,\n\tdefaultWholesaleDeliveryTypeEntityId: null,\n});\n\nexport function getDefaultCrematory(): Crematory {\n\treturn {\n\t\tid: -1,\n\n\t\texternalToken: '',\n\t\trequestToken: '',\n\n\t\tname: '',\n\t\tavatar: '',\n\t\toriginalAvatar: '',\n\n\t\tcontactFirstName: '',\n\t\tcontactLastName: '',\n\t\temail: '',\n\t\tbillingEmail: '',\n\t\tphone: '',\n\t\twebUrl: '',\n\n\t\tstreetAddress: '',\n\t\tstreetAddress2: '',\n\t\tcity: '',\n\t\tstate: null,\n\t\tstateId: -1,\n\t\tzip: '',\n\n\t\ttagIcon: '',\n\t\toriginalTagIcon: '',\n\n\t\tinventoryNotificationTime: 0,\n\n\t\tclinicInbox: '',\n\t\treceiveClinicMails: false,\n\n\t\tlanguageId: -1,\n\t\tlanguage: null,\n\n\t\tcountryId: -1,\n\t\tcountry: null,\n\n\t\tdateFormat: 'MM/dd/YYYY',\n\t\ttimeFormat: 'hh:mm a',\n\n\t\timportClinicId: null,\n\t\timportClinic: null,\n\n\t\tretailServiceTax: 0,\n\t\tretailProductTax: 0,\n\t\twholesaleServiceTax: 0,\n\t\twholesaleProductTax: 0,\n\t\ttaxId: null,\n\t\twholesaleTaxPolicy: TaxPolicy.TaxExcluded,\n\t\tretailTaxPolicy: TaxPolicy.TaxExcluded,\n\n\t\tweightSource: WeightSource.ReportedWeight,\n\t\talwaysRaiseModal: false,\n\n\t\tbillingId: null,\n\n\t\tprefillEngraving: false,\n\t\tclinicCanUploadFiles: false,\n\n\t\tunits: {\n\t\t\tweight: WeightUnits.Pounds,\n\t\t},\n\t\tshowPricesToClinic: true,\n\n\t\tprivate: getDefaultCrematoryServiceTypePreferences(),\n\t\tsemiPrivate: getDefaultCrematoryServiceTypePreferences(),\n\t\tcommunal: getDefaultCrematoryServiceTypePreferences(),\n\t\tstorage: getDefaultCrematoryServiceTypePreferences(),\n\t\tproductsOnly: getDefaultCrematoryServiceTypePreferences(),\n\n\t\tcrematoryType: CrematoryType.Cremation,\n\t\tmanageStock: true,\n\n\t\tinvoiceTaxModel: InvoiceTaxModel.TaxPerItem,\n\t};\n}\n\nexport function reduceName(unit?: WeightUnits) {\n\tif (unit === WeightUnits.Kilograms) return 'kg';\n\n\treturn 'lbs';\n}\n\nexport function getWeightUnitName(weight: number, weightUnit?: WeightUnits) {\n\tif (weightUnit === undefined) return weight;\n\n\treturn `${weight} ${reduceName(weightUnit)}`;\n}\n\nexport function getUnitName(weightUnit: WeightUnits, t: TFunction) {\n\tswitch (weightUnit) {\n\tcase WeightUnits.Pounds:\n\t\treturn t('enums.weight-units.pounds');\n\tcase WeightUnits.Kilograms:\n\t\treturn t('enums.weight-units.kilograms');\n\n\tdefault:\n\t\treturn '-';\n\t}\n}\n\nexport enum UseServiceType {\n\tuseCommunal = 'useCommunal',\n\tusePrivate = 'usePrivate',\n\tuseSemiPrivate = 'useSemiPrivate',\n\tuseStorage = 'useStorage',\n\tuseProductsOnly = 'useProductsOnly',\n}\n\nconst defaultUsesCrematoryServiceType = {\n\t[UseServiceType.useCommunal]: false,\n\t[UseServiceType.usePrivate]: false,\n\t[UseServiceType.useSemiPrivate]: false,\n\t[UseServiceType.useStorage]: false,\n\t[UseServiceType.useProductsOnly]: false,\n};\n\nexport function useCrematoryServiceType(): Record {\n\tconst crematory = useCrematory();\n\n\tif (!crematory) return defaultUsesCrematoryServiceType;\n\n\treturn {\n\t\t[UseServiceType.useCommunal]: crematory?.communal.useServiceType,\n\t\t[UseServiceType.usePrivate]: crematory?.private.useServiceType,\n\t\t[UseServiceType.useSemiPrivate]: crematory?.semiPrivate.useServiceType,\n\t\t[UseServiceType.useStorage]: crematory?.storage.useServiceType,\n\t\t[UseServiceType.useProductsOnly]: crematory?.productsOnly.useServiceType,\n\t};\n}\n\ntype CrematoryServiceTypePreferencesKind = 'all' | 'communal' | 'private' | 'semiPrivate' | 'storage' | 'productsOnly'\n\nexport function getServiceTypePreferenceKind(type?: ServiceType): CrematoryServiceTypePreferencesKind {\n\treturn toLowerCase(ServiceType[type ?? 0]) as CrematoryServiceTypePreferencesKind;\n}\n","module.exports = (__webpack_require__(7))(2);","module.exports = (__webpack_require__(7))(6);","import * as React from 'react';\n\nimport { Field, FieldProps } from 'formik';\nimport { InputProps } from 'antd/lib/input';\n\nimport { FormikInput, FormikInputRenderFunc } from '@common/react/components/Forms/FormikInput/FormikInput';\n\nexport interface FormikFieldProps {\n\tfieldName: string;\n\ttitle?: React.ReactNode;\n\trender?: FormikInputRenderFunc;\n\tcontainerClass?: string;\n\treplaceContainerClass?: boolean;\n\tinputProps?: InputProps;\n}\n\nexport const FormikField = (props: FormikFieldProps): JSX.Element => {\n\tconst containerClass = props.containerClass ?? '';\n\n\treturn (\n\t\t\n\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\n\t\t\t)}\n\t\t\n\t);\n};\n","import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport Button from '@common/react/components/Forms/Button';\n\nexport enum PromoteDirection {\n\tPD_NEXT,\n\tPD_PREVIOUS\n}\n\nexport enum PromoteResponseCode\n{\n\tSuccess = 0,\n\n\tBatchWarning = 1,\n\tServicesWarning = 2,\n\tFinalStatusWarning = 3,\n\tMissingActualWeight = 4,\n\tPermissionDeniedWarning = 5,\n\tMissingUrnWarning = 6,\n\tHasUnconfirmedChanges = 7,\n\tRequireTrackingNumber = 10,\n\tMissingInternalId = 11,\n\tMissingAshesWeight = 12,\n\tConfirmProducts = 13,\n}\n\ninterface ComponentProps {\n\tonClick: (direction: PromoteDirection)=> void;\n\tloading?: boolean;\n\tdisabled?: boolean;\n\tdirection: PromoteDirection;\n\n\tchildren?: React.ReactNode;\n}\n\nexport const PetStatusButton: React.FC = (props: ComponentProps) => {\n\treturn (\n\t\t props.onClick(props.direction)}\n\t\t\tclassName={clsx('btn', props.direction === PromoteDirection.PD_NEXT ? ' btn-right' : ' btn-left')}\n\t\t\ttitle={props.direction === PromoteDirection.PD_NEXT ? 'Next Status' : 'Previous Status'}\n\t\t\tloading={props.loading}\n\t\t\tdisabled={props.disabled}\n\t\t>\n\t\t\t{props.children}\n\t\t\n\t);\n};\n","module.exports = (__webpack_require__(7))(8);","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.ListContext = exports.ListConsumer = void 0;\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _configProvider = require(\"../config-provider\");\nvar _defaultRenderEmpty = _interopRequireDefault(require(\"../config-provider/defaultRenderEmpty\"));\nvar _grid = require(\"../grid\");\nvar _useBreakpoint = _interopRequireDefault(require(\"../grid/hooks/useBreakpoint\"));\nvar _pagination = _interopRequireDefault(require(\"../pagination\"));\nvar _spin = _interopRequireDefault(require(\"../spin\"));\nvar _responsiveObserve = require(\"../_util/responsiveObserve\");\nvar _Item = _interopRequireDefault(require(\"./Item\"));\nvar __rest = void 0 && (void 0).__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar ListContext = exports.ListContext = /*#__PURE__*/React.createContext({});\nvar ListConsumer = exports.ListConsumer = ListContext.Consumer;\nfunction List(_a) {\n var _a$pagination = _a.pagination,\n pagination = _a$pagination === void 0 ? false : _a$pagination,\n customizePrefixCls = _a.prefixCls,\n _a$bordered = _a.bordered,\n bordered = _a$bordered === void 0 ? false : _a$bordered,\n _a$split = _a.split,\n split = _a$split === void 0 ? true : _a$split,\n className = _a.className,\n children = _a.children,\n itemLayout = _a.itemLayout,\n loadMore = _a.loadMore,\n grid = _a.grid,\n _a$dataSource = _a.dataSource,\n dataSource = _a$dataSource === void 0 ? [] : _a$dataSource,\n size = _a.size,\n header = _a.header,\n footer = _a.footer,\n _a$loading = _a.loading,\n loading = _a$loading === void 0 ? false : _a$loading,\n rowKey = _a.rowKey,\n renderItem = _a.renderItem,\n locale = _a.locale,\n rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n var paginationObj = pagination && (0, _typeof2[\"default\"])(pagination) === 'object' ? pagination : {};\n var _React$useState = React.useState(paginationObj.defaultCurrent || 1),\n _React$useState2 = (0, _slicedToArray2[\"default\"])(_React$useState, 2),\n paginationCurrent = _React$useState2[0],\n setPaginationCurrent = _React$useState2[1];\n var _React$useState3 = React.useState(paginationObj.defaultPageSize || 10),\n _React$useState4 = (0, _slicedToArray2[\"default\"])(_React$useState3, 2),\n paginationSize = _React$useState4[0],\n setPaginationSize = _React$useState4[1];\n var _React$useContext = React.useContext(_configProvider.ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n renderEmpty = _React$useContext.renderEmpty,\n direction = _React$useContext.direction;\n var defaultPaginationProps = {\n current: 1,\n total: 0\n };\n var triggerPaginationEvent = function triggerPaginationEvent(eventName) {\n return function (page, pageSize) {\n setPaginationCurrent(page);\n setPaginationSize(pageSize);\n if (pagination && pagination[eventName]) {\n pagination[eventName](page, pageSize);\n }\n };\n };\n var onPaginationChange = triggerPaginationEvent('onChange');\n var onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n var renderInnerItem = function renderInnerItem(item, index) {\n if (!renderItem) return null;\n var key;\n if (typeof rowKey === 'function') {\n key = rowKey(item);\n } else if (rowKey) {\n key = item[rowKey];\n } else {\n key = item.key;\n }\n if (!key) {\n key = \"list-item-\".concat(index);\n }\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, renderItem(item, index));\n };\n var isSomethingAfterLastItem = function isSomethingAfterLastItem() {\n return !!(loadMore || pagination || footer);\n };\n var renderEmptyFunc = function renderEmptyFunc(prefixCls, renderEmptyHandler) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-empty-text\")\n }, locale && locale.emptyText || renderEmptyHandler('List'));\n };\n var prefixCls = getPrefixCls('list', customizePrefixCls);\n var loadingProp = loading;\n if (typeof loadingProp === 'boolean') {\n loadingProp = {\n spinning: loadingProp\n };\n }\n var isLoading = loadingProp && loadingProp.spinning;\n // large => lg\n // small => sm\n var sizeCls = '';\n switch (size) {\n case 'large':\n sizeCls = 'lg';\n break;\n case 'small':\n sizeCls = 'sm';\n break;\n default:\n break;\n }\n var classString = (0, _classnames[\"default\"])(prefixCls, (0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])({}, \"\".concat(prefixCls, \"-vertical\"), itemLayout === 'vertical'), \"\".concat(prefixCls, \"-\").concat(sizeCls), sizeCls), \"\".concat(prefixCls, \"-split\"), split), \"\".concat(prefixCls, \"-bordered\"), bordered), \"\".concat(prefixCls, \"-loading\"), isLoading), \"\".concat(prefixCls, \"-grid\"), !!grid), \"\".concat(prefixCls, \"-something-after-last-item\"), isSomethingAfterLastItem()), \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n var paginationProps = (0, _extends2[\"default\"])((0, _extends2[\"default\"])((0, _extends2[\"default\"])({}, defaultPaginationProps), {\n total: dataSource.length,\n current: paginationCurrent,\n pageSize: paginationSize\n }), pagination || {});\n var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n if (paginationProps.current > largestPage) {\n paginationProps.current = largestPage;\n }\n var paginationContent = pagination ? ( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-pagination\")\n }, /*#__PURE__*/React.createElement(_pagination[\"default\"], (0, _extends2[\"default\"])({}, paginationProps, {\n onChange: onPaginationChange,\n onShowSizeChange: onPaginationShowSizeChange\n })))) : null;\n var splitDataSource = (0, _toConsumableArray2[\"default\"])(dataSource);\n if (pagination) {\n if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n splitDataSource = (0, _toConsumableArray2[\"default\"])(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n }\n }\n var needResponsive = Object.keys(grid || {}).some(function (key) {\n return ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key);\n });\n var screens = (0, _useBreakpoint[\"default\"])(needResponsive);\n var currentBreakpoint = React.useMemo(function () {\n for (var i = 0; i < _responsiveObserve.responsiveArray.length; i += 1) {\n var breakpoint = _responsiveObserve.responsiveArray[i];\n if (screens[breakpoint]) {\n return breakpoint;\n }\n }\n return undefined;\n }, [screens]);\n var colStyle = React.useMemo(function () {\n if (!grid) {\n return undefined;\n }\n var columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n if (columnCount) {\n return {\n width: \"\".concat(100 / columnCount, \"%\"),\n maxWidth: \"\".concat(100 / columnCount, \"%\")\n };\n }\n }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n var childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n minHeight: 53\n }\n });\n if (splitDataSource.length > 0) {\n var items = splitDataSource.map(function (item, index) {\n return renderInnerItem(item, index);\n });\n childrenContent = grid ? ( /*#__PURE__*/React.createElement(_grid.Row, {\n gutter: grid.gutter\n }, React.Children.map(items, function (child) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: child === null || child === void 0 ? void 0 : child.key,\n style: colStyle\n }, child);\n }))) : ( /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-items\")\n }, items));\n } else if (!children && !isLoading) {\n childrenContent = renderEmptyFunc(prefixCls, renderEmpty || _defaultRenderEmpty[\"default\"]);\n }\n var paginationPosition = paginationProps.position || 'bottom';\n var contextValue = React.useMemo(function () {\n return {\n grid: grid,\n itemLayout: itemLayout\n };\n }, [JSON.stringify(grid), itemLayout]);\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(\"div\", (0, _extends2[\"default\"])({\n className: classString\n }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-header\")\n }, header), /*#__PURE__*/React.createElement(_spin[\"default\"], (0, _extends2[\"default\"])({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-footer\")\n }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent));\n}\nList.Item = _Item[\"default\"];\nvar _default = exports[\"default\"] = List;","import * as React from 'react';\nimport {Redirect} from 'react-router';\nimport { Route, RouteProps } from 'react-router-dom';\nimport {connect} from 'react-redux';\n\nimport {BaseApplicationState} from '@common/react/store';\nimport {BaseUser} from '@common/react/objects/BaseUser';\n\ninterface Props extends RouteProps {\n\tcomponent: any;\n\tredirectPath?: string;\n}\n\ninterface ReduxProps {\n\tuser: BaseUser | null;\n}\n\nconst PrivateRoute: React.SFC = ({ component: Component, user, redirectPath = '/', ...rest }) => (\n\t user ? : } \n\t/>\n);\n\nexport default connect>(\n\t(state: BaseApplicationState) => ({\n\t\tuser: state.login.user\n\t})\n)(PrivateRoute);\n","export type Nullable = T | null;\nexport type Optional = Nullable | undefined;\n\nexport function isPresent(item: Optional): item is T {\n\treturn item !== null && item !== undefined;\n}\n","import React from 'react';\nimport { bindActionCreators } from 'redux';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { ApplicationState } from '@app/store';\nimport { CrematoryListInfo } from '@app/objects/Crematory';\nimport { getActionCreators } from '@app/store/SelectList/ListActions';\nimport { selectListRequest } from '@app/store/SelectList/SelectListRequests';\nimport { RoleManager } from '@app/services/RoleManager';\n\nexport function useCrematory(id?: number): CrematoryListInfo | undefined {\n\tconst dispatch = useDispatch();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst activeCrematoryId = useSelector((state: ApplicationState) => state.login.user?.activeCrematoryId);\n\tconst currentCrematoryId = user?.role && RoleManager.for(user?.role).isAdmin() ? id : activeCrematoryId;\n\tconst crematories = useSelector((state: ApplicationState) => state.selects.crematories.items);\n\tconst factory = React.useMemo(() => bindActionCreators(getActionCreators('crematories', selectListRequest.crematories), dispatch), [dispatch]);\n\tReact.useEffect(() => {\n\t\tif (!crematories) factory.request(selectListRequest.crematories.defaultFilters);\n\t}, [crematories]);\n\n\treturn React.useMemo(() => crematories.find((item) => item.id === currentCrematoryId), [crematories, currentCrematoryId]);\n}\n","import { Action, ActionCreatorsMapObject, Dispatch } from 'redux';\n\nimport { List } from '@common/typescript/objects/List';\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { WithName } from '@common/typescript/objects/WithName';\n\nimport { request } from '@app/components/Api';\n\nimport { ApplicationState } from '@app/store';\nimport {\n\tSelectList,\n\tGeneralKey,\n\tgetSelectItemState,\n} from '@app/store/SelectList/SelectList';\nimport { FilterComparator } from '@app/store/SelectList/SelectsInterfaces';\nimport {\n\tEntityType,\n\tFilterType,\n\tStoreType,\n\tRecordType,\n} from '@app/store/SelectList/UtilityTypes';\n\ntype GetState = () => ApplicationState;\n\nexport enum TypeKeys {\n\tREQUESTITEMS = 'SELECTREQUESTITEMS',\n\tRECEIVEITEMS = 'SELECTRECEIVEITEMS',\n\tRECEIVEERROR = 'SELECTRECEIVEERROR',\n\tREQUESTMOREITEMS = 'SELECTREQUESTMOREITEMS',\n\tRECEIVEMOREITEMS = 'SELECTRECEIVEMOREITEMS',\n\tUPDATEITEM = 'SELECTUPDATEITEM',\n\tDELETEITEM = 'SELECTDELETEITEM',\n\tREQUESTREFRESHITEMS = 'SELECTREQUESTREFRESHITEMS',\n\tRECEIVEREFRESHITEMS = 'SELECTRECEIVEREFRESHITEMS',\n\tRESETSTORE = 'RESETSTORE',\n}\n\nexport interface IListAction {\n\ttype: Type;\n\tpayload: Payload;\n\tstore: keyof SelectList;\n\tkey?: string; // This should be subtype of SelectList[store]\n}\n\nexport type IListRequestAction = IListAction,\n\trequestId: number,\n\tparams: Partial,\n}>;\nexport type IListReceiveAction = IListAction;\n\ttotal: number;\n\trequestId: number;\n\t}\n>;\nexport type IListRequestMoreAction = IListAction;\nexport type IListReceiveMoreAction = IListAction;\n\ttotal: number;}\n>;\nexport type IListRequestErrorAction = IListAction;\nexport type IListUpdateAction = IListAction & WithId>;\nexport type IListDeleteAction = IListAction;\n\nexport type ListDispatchType = (action: IListAction) => IListAction;\n\nexport function isListAction(action: Action): action is IListAction {\n\tif (typeof action.type !== 'string') return false;\n\n\tconst str = action.type as string;\n\n\treturn (\n\t\tstr === TypeKeys.REQUESTITEMS\n\t\t|| str === TypeKeys.RECEIVEITEMS\n\t\t|| str === TypeKeys.REQUESTMOREITEMS\n\t\t|| str === TypeKeys.RECEIVEMOREITEMS\n\t\t|| str === TypeKeys.RECEIVEERROR\n\t\t|| str === TypeKeys.UPDATEITEM\n\t\t|| str === TypeKeys.DELETEITEM\n\t\t|| str === TypeKeys.RESETSTORE\n\t);\n}\n\ninterface Request {\n\t(filters: Nullable>, preselect?: TValue | Array, count?: number): void;\n\t>(filters: Nullable>, params?: Partial,): void;\n}\n\nexport interface IActionCreators extends ActionCreatorsMapObject {\n\trequest: Request;\n\tloadMoreItems: (\n\t\tcount?: number\n\t) => void;\n\tupdate: (item: Partial>) => void;\n\tdelete: (id: number) => void;\n\trefresh: Request;\n\tresetStore: () => void; // u need to pass the name of store that will not be reset,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// example: getActionCreators('crematories', ...) - store of 'crematories' will not reset\n\t\t\t\t\t\t\t\t\t\t\t\t\t// or pass '' - and reset all stores\n}\n\nexport interface SelectRequestParams {\n\tcount: number;\n\tpreselect: TValue | Array;\n}\n\nexport interface ActionCreatorProps {\n\tendpoint: string,\n\tkey?: string,\n\tisEqual?: FilterComparator\n}\n\nfunction isParamsObject(params: Partial | TValue | Array | undefined): params is Partial {\n\treturn typeof params === 'object' && !Array.isArray(params);\n}\n\nfunction getParams<\n\tTValue,\n\tT extends SelectRequestParams\n>(paramsOrPreselect?: TValue | Array | Partial, count?: number): Partial {\n\tif (isParamsObject(paramsOrPreselect)) {\n\t\treturn {\n\t\t\t...paramsOrPreselect,\n\t\t\tcount: paramsOrPreselect?.count ?? 10,\n\t\t};\n\t}\n\n\treturn {\n\t\tpreselect: paramsOrPreselect,\n\t\tcount: count ?? 10,\n\t} as Partial;\n}\n\nlet series: number = 0;\n\nexport function getActionCreators<\n\tTValue,\n\tTKey extends keyof SelectList\n>(\n\tstore: TKey,\n\t{\n\t\tendpoint,\n\t\tkey = GeneralKey,\n\t\tisEqual,\n\t}: ActionCreatorProps,\n): IActionCreators {\n\tconst fail = (dispatch: Dispatch, error: string) => (\n\t\tdispatch({\n\t\t\ttype: TypeKeys.RECEIVEERROR,\n\t\t\tstore,\n\t\t\tkey,\n\t\t\tpayload: { error },\n\t\t})\n\t);\n\n\treturn {\n\t\trequest: >(\n\t\t\tfilters: Nullable>,\n\t\t\tother?: TValue | Array | Partial,\n\t\t\tcount?: number,\n\t\t) =>\n\t\t\t(dispatch: Dispatch, getStore: GetState) => {\n\t\t\t\tconst state: RecordType = getSelectItemState(getStore().selects[store], key);\n\n\t\t\t\tif (state.filters === null && state.items.length) return;\n\t\t\t\tif (isEqual && isEqual(state.filters as Nullable>, filters)) return;\n\n\t\t\t\tconst params: Partial = getParams(other, count);\n\t\t\t\tconst requestId = series++;\n\t\t\t\tconst newFilters = { ...filters };\n\t\t\t\tif ((newFilters as WithName)?.name !== undefined) {\n\t\t\t\t\tdelete (newFilters as Partial)?.name;\n\t\t\t\t}\n\n\t\t\t\tconst { preselect, ...otherParams } = params;\n\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.REQUESTITEMS,\n\t\t\t\t\tstore,\n\t\t\t\t\tkey,\n\t\t\t\t\tpayload: {\n\t\t\t\t\t\tfilters: newFilters,\n\t\t\t\t\t\tpreselect: params?.preselect,\n\t\t\t\t\t\trequestId,\n\t\t\t\t\t\tparams: otherParams,\n\t\t\t\t\t},\n\t\t\t\t});\n\n\t\t\t\trequest>>(endpoint, {\n\t\t\t\t\t...otherParams,\n\t\t\t\t\tpreselect,\n\t\t\t\t\tfilters: newFilters,\n\n\t\t\t\t\tcount: params.count ?? 20,\n\t\t\t\t\toffset: 0,\n\t\t\t\t})\n\t\t\t\t\t.then((items: List>) => {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.RECEIVEITEMS,\n\t\t\t\t\t\t\tstore,\n\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\tpayload: { items: items.list, total: items.count, requestId },\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error: string) => fail(dispatch, error));\n\t\t\t},\n\t\tloadMoreItems: (count?: number) => {\n\t\t\treturn (dispatch: Dispatch, getStore: GetState) => {\n\t\t\t\tconst root: StoreType = getStore().selects[store];\n\t\t\t\tconst state = getSelectItemState(root, key);\n\n\t\t\t\tif (state.isLoading) return;\n\t\t\t\tif (state.pagination.total === state.items.length) return;\n\n\t\t\t\tdispatch({ type: TypeKeys.REQUESTMOREITEMS, store });\n\n\t\t\t\trequest>>(endpoint, {\n\t\t\t\t\t...state.params,\n\t\t\t\t\tcount,\n\t\t\t\t\toffset: state.items.length,\n\t\t\t\t\tfilters: state.filters,\n\t\t\t\t})\n\t\t\t\t\t.then((items: List>) => {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.RECEIVEMOREITEMS,\n\t\t\t\t\t\t\tstore,\n\t\t\t\t\t\t\tkey,\n\t\t\t\t\t\t\tpayload: { items: items.list, total: items.count },\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error: string) => fail(dispatch, error));\n\t\t\t};\n\t\t},\n\t\tupdate: (item: Partial>) => {\n\t\t\treturn (dispatch: Dispatch) => {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.UPDATEITEM,\n\t\t\t\t\tstore,\n\t\t\t\t\tkey,\n\t\t\t\t\tpayload: item,\n\t\t\t\t});\n\t\t\t};\n\t\t},\n\t\tdelete: (id: number) => {\n\t\t\treturn (dispatch: Dispatch) => {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.DELETEITEM,\n\t\t\t\t\tstore,\n\t\t\t\t\tkey,\n\t\t\t\t\tpayload: id,\n\t\t\t\t});\n\t\t\t};\n\t\t},\n\t\trefresh: >(\n\t\t\tfilters: Nullable>,\n\t\t\tother?: TValue | Array | Partial,\n\t\t\tcount?: number,\n\t\t) => (dispatch: Dispatch) => {\n\t\t\tconst params: Partial = getParams(other, count);\n\n\t\t\tconst newFilters = { ...filters };\n\t\t\tif ((newFilters as WithName)?.name) {\n\t\t\t\tdelete (newFilters as Partial)?.name;\n\t\t\t}\n\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.REQUESTITEMS,\n\t\t\t\tstore,\n\t\t\t\tkey,\n\t\t\t\tpayload: { filters: newFilters, preselect: params?.preselect },\n\t\t\t});\n\t\t\trequest>>(endpoint, {\n\t\t\t\t...params,\n\t\t\t\tfilters: newFilters,\n\n\t\t\t\tcount: params?.count ?? 20,\n\t\t\t\toffset: 0,\n\t\t\t})\n\t\t\t\t.then((items: List>) => {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: TypeKeys.RECEIVEITEMS,\n\t\t\t\t\t\tstore,\n\t\t\t\t\t\tkey,\n\t\t\t\t\t\tpayload: {\n\t\t\t\t\t\t\titems: items.list,\n\t\t\t\t\t\t\ttotal: items.count,\n\t\t\t\t\t\t},\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch((error: string) => fail(dispatch, error));\n\t\t},\n\t\tresetStore: () => {\n\t\t\treturn (dispatch: Dispatch) => {\n\t\t\t\tdispatch({ type: TypeKeys.RESETSTORE, store });\n\t\t\t};\n\t\t},\n\t};\n}\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) {\n\titems: Array;\n\tisLoading: boolean;\n\tpagination: {\n\t\ttotal: number;\n\t};\n\tfilters: Nullable;\n\terror: Nullable;\n\trequestId: number;\n\tparams: Nullable>\n}\n\nexport type SelectItemState = Record>, SelectItem>;\nexport const GeneralKey = 'GENERAL_KEY';\nexport const RootKey = 'ROOT_KEY';\n\ntype ReducedSelectItem = Omit, 'filters' | 'items'> & { items: Array };\ntype ReducedSelectState = Record, ReducedSelectItem>;\n\nexport interface SelectList {\n\tclinics: SelectItem,\n\tclinicTypes: SelectItem,\n\tcrematories: SelectItem,\n\tstatus: SelectItem,\n\tpetBreeds: SelectItem,\n\turns: SelectItemState,\n\turnCategories: SelectItem,\n\tregions: SelectItem,\n\tspecialServices: SelectItem,\n\tpickupServices: SelectItem\n\tpickupServicePrices: SelectItem,\n\tproducts: SelectItemState,\n\tinventoryItems: SelectItem,\n\tadjustmentCodes: SelectItem,\n\tcountries: SelectItem,\n\tdiscounts: SelectItem,\n\tmeasuringUnits: SelectItem,\n\tlanguages: SelectItem,\n\tusers: SelectItem,\n\troutes: SelectItem,\n\tlabelPapers: SelectItem,\n\tinventoryParents: SelectItem,\n\tmachines: SelectItem,\n\tstoreEntries: SelectItem,\n\tserviceTypes: SelectItem,\n}\n\nfunction getInitial(): SelectItem {\n\treturn {\n\t\tisLoading: false,\n\t\titems: [],\n\t\tpagination: {\n\t\t\ttotal: 0,\n\t\t},\n\t\tfilters: null,\n\t\terror: null,\n\t\trequestId: 0,\n\t\tparams: null,\n\t};\n}\n\nfunction getStateInitial(): SelectItemState {\n\treturn {\n\t\t[GeneralKey]: getInitial(),\n\t};\n}\n\nexport function isSelectListState(state: ReducedSelectItem | ReducedSelectState): state is ReducedSelectState {\n\treturn state.items === undefined;\n}\n\nexport function getSelectItemState<\n\tTStore extends keyof SelectList\n>(root: StoreType, key: string = GeneralKey): RecordType {\n\tconst state = isSelectListState(root) ? root[key] : root;\n\tif (state) return state as RecordType;\n\n\treturn getInitial() as RecordType;\n}\n\nexport const initialList: SelectList = {\n\tclinics: getInitial(),\n\tclinicTypes: getInitial(),\n\tcrematories: getInitial(),\n\tstatus: getInitial(),\n\tpetBreeds: getInitial(),\n\turns: getStateInitial(),\n\turnCategories: getInitial(),\n\tregions: getInitial(),\n\tspecialServices: getInitial(),\n\tpickupServices: getInitial(),\n\tpickupServicePrices: getInitial(),\n\tproducts: getStateInitial(),\n\tinventoryItems: getInitial(),\n\tadjustmentCodes: getInitial(),\n\tcountries: getInitial(),\n\tdiscounts: getInitial(),\n\tmeasuringUnits: getInitial(),\n\tlanguages: getInitial(),\n\tusers: getInitial(),\n\troutes: getInitial(),\n\tlabelPapers: getInitial(),\n\tinventoryParents: getInitial(),\n\tmachines: getInitial(),\n\tstoreEntries: getInitial(),\n\tserviceTypes: getInitial(),\n};\n\nexport function selectListReducer(state: SelectItem, action: IListAction): SelectItem {\n\tswitch (action.type) {\n\tcase TypeKeys.REQUESTITEMS: {\n\t\tconst { payload }: IListRequestAction = action as IListRequestAction;\n\n\t\treturn {\n\t\t\t...state,\n\t\t\tisLoading: true,\n\t\t\terror: null,\n\t\t\tfilters: payload.filters,\n\t\t\trequestId: payload.requestId,\n\t\t\tparams: payload.params,\n\t\t};\n\t}\n\tcase TypeKeys.RECEIVEITEMS: {\n\t\tconst { payload }: IListReceiveAction = action as IListReceiveAction;\n\n\t\tif (state.requestId > payload.requestId) return state;\n\n\t\treturn {\n\t\t\t...state,\n\t\t\tisLoading: false,\n\t\t\titems: payload.items,\n\t\t\tpagination: { total: payload.total },\n\t\t\trequestId: payload.requestId,\n\t\t};\n\t}\n\tcase TypeKeys.REQUESTMOREITEMS:\n\t\treturn {\n\t\t\t...state,\n\t\t\tisLoading: true,\n\t\t};\n\tcase TypeKeys.RECEIVEMOREITEMS: {\n\t\tconst { payload }: IListReceiveMoreAction = action as IListReceiveMoreAction;\n\n\t\treturn {\n\t\t\t...state,\n\t\t\titems: state.items.concat(payload.items),\n\t\t\tisLoading: false,\n\t\t\tpagination: {\n\t\t\t\ttotal: payload.total,\n\t\t\t},\n\t\t};\n\t}\n\tcase TypeKeys.RECEIVEERROR: {\n\t\tconst { payload }: IListRequestErrorAction = action as IListRequestErrorAction;\n\n\t\treturn {\n\t\t\t...state,\n\t\t\tisLoading: false,\n\t\t\terror: payload.error,\n\t\t};\n\t}\n\tcase TypeKeys.UPDATEITEM: {\n\t\tconst { payload }: IListUpdateAction = action as IListUpdateAction;\n\n\t\tlet total = state.pagination.total;\n\t\tlet result: Array = [];\n\n\t\tif (state.items.find((item) => item.id === payload.id)) {\n\t\t\tresult = state.items.map((item: T) => {\n\t\t\t\tif (item.id === payload.id) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...item,\n\t\t\t\t\t\t...payload,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn item;\n\t\t\t});\n\t\t} else {\n\t\t\tresult = [...state.items, payload as T];\n\t\t\ttotal = state.pagination.total + 1;\n\t\t}\n\n\t\treturn {\n\t\t\t...state,\n\t\t\titems: result,\n\t\t\tpagination: {\n\t\t\t\t...state.pagination,\n\t\t\t\ttotal,\n\t\t\t},\n\t\t};\n\t}\n\tcase TypeKeys.DELETEITEM: {\n\t\tconst { payload }: IListDeleteAction = action as IListDeleteAction;\n\n\t\tconst items = state.items.filter((item: T) => item.id !== payload);\n\n\t\treturn {\n\t\t\t...state,\n\t\t\titems,\n\t\t\tpagination: {\n\t\t\t\t...state.pagination,\n\t\t\t\ttotal: state.pagination.total - 1,\n\t\t\t},\n\t\t};\n\t}\n\n\tdefault:\n\t\treturn state;\n\t}\n}\n\nexport function selectListStateReducer<\n\tT extends WithId,\n\tTFilters = null\n>(state: SelectItemState, action: IListAction) {\n\tconst key = action.key ?? GeneralKey;\n\tconst oldState = state[key];\n\tconst newState = selectListReducer(state[key] ?? getInitial(), action);\n\n\tif (oldState === newState) return state;\n\n\treturn { ...state, [key]: selectListReducer(state[key] ?? getInitial(), action) };\n}\n\nexport const listStoreReducer = (store: SelectList | undefined, action: Action): SelectList => {\n\tif (store === undefined) return initialList;\n\n\tif (!isListAction(action)) return store;\n\n\tconst state = store[action.store];\n\tconst newState = isSelectListState(state)\n\t\t? selectListStateReducer(state, action)\n\t\t: selectListReducer(state as SelectItem, action);\n\n\tif (action.type === TypeKeys.RESETSTORE) return { ...initialList, [action.store]: newState };\n\n\tif (state === newState) return store;\n\n\treturn {\n\t\t...store,\n\t\t[action.store]: newState,\n\t};\n};\n","import { request as coreRequest } from '@common/react/components/Api/Request';\nimport { wrapError, wrapDomain } from '@common/react/components/Api/Wrappers';\n\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\nimport { BaseApplicationState } from '@common/react/store';\nimport { BaseParams } from '@common/typescript/objects/BaseParams';\n\nexport function request<\n\tT,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState\n\t>(type: string, data: BaseParams = {}, state?: TApplicationState, signal?: AbortSignal, idempotencyToken?: string): Promise {\n\tconst task = coreRequest(type, data, state, signal, idempotencyToken);\n\n\treturn wrapDomain(wrapError(task));\n}\n","import * as dayjs from 'dayjs';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { List, transformArrayToList } from '@common/typescript/objects/List';\n\nimport { User } from '@app/objects/User';\nimport { Crematory } from '@app/objects/Crematory';\nimport { Clinic } from '@app/objects/Clinic';\nimport { InvoicePet } from '@app/objects/Pet';\nimport { InvoiceAdjustment } from '@app/objects/Adjustment';\nimport { QuickbooksInvoice } from '@app/objects/Quickbooks';\n\nexport enum DueDate {\n\tNet15 = 0,\n\tNet30 = 1,\n}\n\nexport enum InvoiceTerms {\n\tDueOnReceipt,\n\tNet15,\n\tNet30,\n\tCustom\n}\n\nexport enum InvoiceStatus {\n\tOpen,\n\tPaid\n}\n\nexport enum InvoiceTaxModel {\n\tTaxPerInvoice = 0,\n\tTaxPerItem = 1\n}\n\nexport interface Invoice extends WithDeleted {\n\tstartDate: number | null;\n\tendDate: number | null;\n\n\tuserId: number;\n\tuser?: User;\n\n\tclinicId: number;\n\tclinic: Clinic | null;\n\n\tcrematoryId: number;\n\tcrematory: Crematory | null;\n\n\ttime: number;\n\n\tfrom: number;\n\tto: number;\n\n\tdueDate: number|null;\n\n\tguid: string;\n\tnumber: string;\n\n\tterms: Nullable;\n\n\tstatus: InvoiceStatus;\n\n\tpets: List;\n\n\tadjustments: Array;\n\n\tdirty: boolean;\n\n\tquickbooksInvoice: Nullable;\n\n\tinvoiceSummary: InvoiceSummary;\n}\n\nexport interface InvoiceSummary {\n\ttotal: number;\n\tbasePriceTotal: number;\n\tproductPriceTotal: number;\n\turnPriceTotal: number;\n\tspecialServicePriceTotal: number;\n\tdeliveryPriceTotal: number;\n\tpickupFeesTotal: number;\n\tadjustmentPriceTotal: number;\n\tproductTaxTotal: number;\n\tserviceTaxTotal: number;\n}\n\nexport function getDateByTerms(terms: InvoiceTerms, start: number): number | null {\n\tconst now = dayjs(start);\n\n\tlet date: number | null;\n\n\tswitch (terms) {\n\tcase InvoiceTerms.DueOnReceipt:\n\t\tdate = +now.endOf('day');\n\t\tbreak;\n\tcase InvoiceTerms.Net15:\n\t\tdate = +now.add(15, 'days');\n\t\tbreak;\n\tcase InvoiceTerms.Net30:\n\t\tdate = +now.add(30, 'days');\n\t\tbreak;\n\tcase InvoiceTerms.Custom:\n\t\tdate = null;\n\t\tbreak;\n\n\tdefault:\n\t\tdate = null;\n\t}\n\n\treturn date;\n}\n\nexport function getDefaultInvoiceSummary(): InvoiceSummary {\n\treturn {\n\t\ttotal: 0,\n\t\tbasePriceTotal: 0,\n\t\tproductPriceTotal: 0,\n\t\turnPriceTotal: 0,\n\t\tspecialServicePriceTotal: 0,\n\t\tdeliveryPriceTotal: 0,\n\t\tpickupFeesTotal: 0,\n\t\tadjustmentPriceTotal: 0,\n\t\tproductTaxTotal: 0,\n\t\tserviceTaxTotal: 0,\n\t};\n}\n\nexport function getDefaultInvoice(): Invoice {\n\treturn {\n\t\tid: -1,\n\n\t\tclinicId: -1,\n\t\tclinic: null,\n\n\t\tcrematoryId: -1,\n\t\tcrematory: null,\n\n\t\tdueDate: null,\n\t\tstartDate: null,\n\t\tendDate: null,\n\n\t\tfrom: 0,\n\t\tto: 0,\n\t\ttime: new Date().getTime(),\n\n\t\tguid: '',\n\t\tnumber: '',\n\n\t\tpets: transformArrayToList([]),\n\t\tstatus: InvoiceStatus.Open,\n\t\tterms: null,\n\n\t\tuserId: 0,\n\n\t\tadjustments: [],\n\n\t\tdirty: false,\n\t\tquickbooksInvoice: null,\n\n\t\tinvoiceSummary: getDefaultInvoiceSummary(),\n\t};\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat) {\n switch (Object.prototype.toString.call(wat)) {\n case '[object Error]':\n return true;\n case '[object Exception]':\n return true;\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat) {\n return Object.prototype.toString.call(wat) === '[object ErrorEvent]';\n}\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat) {\n return Object.prototype.toString.call(wat) === '[object DOMError]';\n}\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat) {\n return Object.prototype.toString.call(wat) === '[object DOMException]';\n}\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat) {\n return Object.prototype.toString.call(wat) === '[object String]';\n}\n/**\n * Checks whether given value's is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat) {\n return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n/**\n * Checks whether given value's type is an object literal\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat) {\n return Object.prototype.toString.call(wat) === '[object Object]';\n}\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat) {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isElement(wat) {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat) {\n return Object.prototype.toString.call(wat) === '[object RegExp]';\n}\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isSyntheticEvent(wat) {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nexport function isInstanceOf(wat, base) {\n try {\n return wat instanceof base;\n }\n catch (_e) {\n return false;\n }\n}\n//# sourceMappingURL=is.js.map","import * as React from 'react';\n\ninterface SpinnerProps {\n\tclassName?: string;\n\tcaption?: string;\n}\n\nexport const Loading: React.SFC = ({ className = 'page-loading', caption = 'Loading'}) => {\n\treturn
\n\t\t
\n\t\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t\t\t{caption}\n\t\t
\n\t
;\n};\n","module.exports = (__webpack_require__(7))(13);","import * as Yup from 'yup';\nimport { FormikConfig } from 'formik';\n\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\n\nimport { phoneFormat } from '@app/components/Utils/Utils';\n\nexport type ValidationResult = ReturnType['validate'], undefined>>;\n\nexport function toValidationFunction(schema: Yup.Schema, values: Values): ValidationResult {\n\treturn schema.validate(values, { abortEarly: false })\n\t\t.then(() => {})\n\t\t.catch((error) => {\n\t\t\tif (!error.inner) {\n\t\t\t\tif (error instanceof Error) return { err: error.message };\n\n\t\t\t\treturn { msg: 'General Error' };\n\t\t\t}\n\n\t\t\treturn error.inner.reduce((obj, description) => {\n\t\t\t\tobj[description.path] = description.errors;\n\n\t\t\t\treturn obj;\n\t\t\t}, {});\n\t\t});\n}\n\nexport function idValidator(field: string): Yup.NumberSchema {\n\tconst validationMessage = `${field} is required`;\n\n\treturn Yup.number()\n\t\t.moreThan(0, validationMessage)\n\t\t.required(validationMessage)\n\t\t.typeError(validationMessage);\n}\n\nexport function stringValidator(field: string): Yup.StringSchema {\n\tconst validationMessage = `${field} is required`;\n\n\treturn Yup.string()\n\t\t.required(validationMessage)\n\t\t.typeError(validationMessage);\n}\n\nexport function emailValidator(field: string, required: boolean = true): Yup.StringSchema {\n\tconst validationMessage = `${field} is required`;\n\n\tlet query = Yup.string()\n\t\t.email('Incorrect email format');\n\n\tif (required) {\n\t\tquery = query.required(validationMessage)\n\t\t\t.typeError(validationMessage);\n\t}\n\n\treturn query;\n}\n\nexport function phoneValidator(field: string, required: boolean = true, code: Nullable = null): Yup.StringSchema> {\n\tconst specialCode = code?.toLowerCase() === 'nzl' || code?.toLowerCase() === 'aus';\n\tlet query: Yup.StringSchema> = Yup\n\t\t.string()\n\t\t.nullable()\n\t\t.transform((current, original) => original || undefined);\n\n\tif (required) {\n\t\tconst validationMessage = `${field} is required`;\n\n\t\tif (!specialCode) {\n\t\t\tquery = query.matches(phoneFormat, 'Incorrect phone format');\n\t\t}\n\n\t\tquery = query\n\t\t\t.required(validationMessage)\n\t\t\t.typeError(validationMessage);\n\t}\n\n\treturn query;\n}\n\nexport function positiveNumberValidator(field: string): Yup.NumberSchema {\n\tconst validationMessage = `${field} is required`;\n\n\treturn Yup.number()\n\t\t.positive(`${field} should be positive`)\n\t\t.required(validationMessage)\n\t\t.typeError(validationMessage);\n}\n\nexport function enumValidator(field: string): Yup.NumberSchema {\n\tconst validationMessage = `${field} is required`;\n\n\treturn Yup.number()\n\t\t.moreThan(-1, validationMessage)\n\t\t.required(validationMessage)\n\t\t.typeError(validationMessage);\n}\n\nexport function withZeroNumberValidator(field: string): Yup.NumberSchema {\n\tconst validationMessage = `${field} is required`;\n\n\treturn Yup.number()\n\t\t.integer(`${field} should be an integer`)\n\t\t.moreThan(-1, `${field} should not be negative`)\n\t\t.required(validationMessage)\n\t\t.typeError(validationMessage);\n}\n","export function stringToColor(string: string) {\n\tlet hash = 0;\n\tlet i;\n\n\t/* eslint-disable no-bitwise */\n\tfor (i = 0; i < string.length; i += 1) {\n\t\thash = string.charCodeAt(i) + ((hash << 5) - hash);\n\t}\n\n\tlet color = '#';\n\n\tfor (i = 0; i < 3; i += 1) {\n\t\tconst value = (hash >> (i * 8)) & 0xff;\n\t\tcolor += `00${value.toString(16)}`.slice(-2);\n\t}\n\t/* eslint-enable no-bitwise */\n\n\treturn color;\n}\n","import * as React from 'react';\nimport clsx from 'clsx';\n\nimport { stringToColor } from '@common/react/utils/color';\nimport noImage from '@common/react/images/no_image.jpg';\n\nimport '@common/react/scss/components/image.scss';\n\ninterface OwnProps {\n\tsrc: string;\n\theight?: number | string;\n\twidth?: number | string;\n\talt?: string;\n\ttitle?: string;\n\tfallback?: string;\n\tclassName?: string;\n}\n\nfunction getAcronym(value: string) {\n\tconst result: Array = [];\n\n\tvalue.split(' ').forEach((item, index) => {\n\t\tif (index < 3 && item) result.push(item[0]);\n\t});\n\n\treturn result.join('');\n}\n\nexport const ImageComponent: React.FC = (props: OwnProps) => {\n\tconst {\n\t\tsrc, alt, title, fallback, className, height, width,\n\t} = props;\n\tconst [path, setPath] = React.useState(src);\n\tconst [fallbackName, setFallbackName] = React.useState(undefined);\n\n\tconst onError = React.useCallback(() => {\n\t\tconst name = alt ?? title;\n\n\t\tif (path !== fallback && fallback) {\n\t\t\tsetPath(fallback);\n\t\t} else if (name) {\n\t\t\tsetFallbackName(getAcronym(name));\n\t\t} else {\n\t\t\tsetPath(noImage);\n\t\t}\n\t}, [fallback, alt, title]);\n\n\tReact.useEffect(() => {\n\t\tif (src) {\n\t\t\tsetPath(src);\n\n\t\t\tif (fallbackName) setFallbackName(undefined);\n\t\t} else { onError(); }\n\t}, [src]);\n\n\tReact.useEffect(() => {\n\t\tconst name = alt ?? title;\n\n\t\tif (fallbackName && name) setFallbackName(getAcronym(name));\n\t}, [alt, title]);\n\n\tif (fallbackName) {\n\t\treturn (\n\t\t\t\n\t\t\t\t{fallbackName}\n\t\t\t
\n\t\t);\n\t}\n\n\treturn (\n\t\t\n\t);\n};\n","import * as React from 'react';\n\n// Place before method\n// Binds function to react component\nexport function member(target: React.Component, propertyKey: string, descriptor: PropertyDescriptor) {\n\treturn {\n\t\tget() {\n\t\t\tconst bound = descriptor.value.bind(this);\n\n\t\t\tObject.defineProperty(this, propertyKey, {\n\t\t\t\tvalue: bound,\n\t\t\t});\n\n\t\t\treturn bound;\n\t\t}\n\t};\n}\n","import { WithId } from '@common/typescript/objects/WithId';\nimport { pureEnum } from '@common/typescript/utils/enums';\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\n\nimport { Crematory } from '@app/objects/Crematory';\nimport { MeasuringUnit } from '@app/objects/MeasuringUnits';\nimport { toWords } from '@app/components/Utils/Utils';\nimport { StoreEntryNode, StoreEntryVariant } from '@app/objects/StoreEntry';\n\nexport enum ItemCategory {\n\tChemical = 0,\n\tUrn = 1,\n\tUrnCategory = 2,\n\tProduct = 3,\n\tProductCategory = 4,\n}\n\n/**\n * ItemGroup - a list of ItemCategory that could have children\n * @type {ItemCategory.UrnCategory[]}\n */\nconst group: Array = [\n\tItemCategory.UrnCategory,\n\tItemCategory.ProductCategory,\n];\n\nexport function isGroup(category?: Nullable): boolean {\n\tif (category === null || category === undefined) return false;\n\n\treturn group.includes(category);\n}\n\npureEnum(ItemCategory);\n\nconst CategoryColor: Record = {\n\t[ItemCategory.Chemical]: 'lime',\n\t[ItemCategory.Urn]: 'geekblue',\n\t[ItemCategory.UrnCategory]: 'purple',\n\t[ItemCategory.Product]: 'cyan',\n\t[ItemCategory.ProductCategory]: 'green',\n};\n\nexport function getName(category: ItemCategory): string {\n\treturn toWords(ItemCategory[category]);\n}\n\nexport function getColor(item: InventoryItem): string {\n\tconst category = item.category;\n\tif (category === null || category === undefined) return '';\n\n\treturn CategoryColor[category];\n}\n\nexport interface InventoryItem extends WithId {\n\t// Name of current item\n\tname: string;\n\t// Full name - including all ancestor names (full path)\n\tfullName: string;\n\tdescription: string;\n\n\tcrematory: Nullable;\n\n\tmeasuringUnit: Nullable;\n\tmeasuringUnitId: number;\n\n\tquantity: number | undefined;\n\tlowerLimit: number | undefined;\n\tcategory?: Nullable;\n\n\tavatar: string;\n\toriginalAvatar: string;\n\n\tisDefault: boolean;\n\tisSpecial: boolean;\n\n\tparent: Nullable;\n\tparentId: Nullable;\n\n\tstoreNode: Nullable;\n\tstoreEntryVariants: Array;\n}\n\nexport interface PurchaseOrderItem extends WithId {\n\torderId: number;\n\tpurchaseOrder: PurchaseOrder | null;\n\n\tinventoryItemId: number;\n\tinventoryItem: InventoryItem | null;\n\n\tquantity: number;\n\tprice: number;\n\ttotal: number;\n}\n\nexport interface PurchaseOrder extends WithId {\n\torderNumber: string;\n\n\tcrematoryId: number;\n\tdateCreated: Date;\n\tdescription: string;\n\ttotal: number;\n}\n\nexport const defaultItem: InventoryItem = {\n\tid: -1,\n\n\tavatar: '',\n\toriginalAvatar: '',\n\n\tcategory: ItemCategory.Product,\n\tcrematory: null,\n\n\tname: '',\n\tfullName: '',\n\tdescription: '',\n\n\tisDefault: false,\n\tisSpecial: false,\n\n\tquantity: 0,\n\tlowerLimit: 0,\n\tmeasuringUnit: null,\n\tmeasuringUnitId: -1,\n\n\tparent: null,\n\tparentId: null,\n\n\tstoreNode: null,\n\tstoreEntryVariants: [],\n};\n\nexport function getDefaultItem(parent: Optional): InventoryItem {\n\tconst item = { ...defaultItem };\n\n\titem.parentId = parent?.id ?? null;\n\titem.parent = parent ?? null;\n\n\titem.measuringUnitId = parent?.measuringUnitId ?? -1;\n\n\treturn item;\n}\n\nexport function onChangeCategoryFilter(value: Array) {\n\tconst ids: Array = value;\n\n\tif (ids.includes(ItemCategory.Product)) ids.push(ItemCategory.ProductCategory);\n\tif (ids.includes(ItemCategory.Urn)) ids.push(ItemCategory.UrnCategory);\n\n\treturn ids;\n}\n\nexport function onFilterValue(values?: Array) {\n\treturn values?.filter((i) => i !== ItemCategory.ProductCategory && i !== ItemCategory.UrnCategory);\n}\n\nexport function formatName(item: Optional): string {\n\tif (!item) return '-';\n\n\treturn item.category === ItemCategory.Urn ? item.fullName : item.name;\n}\n","import {\n\tAction,\n\tbindActionCreators,\n\tDispatch,\n\tReducer,\n} from 'redux';\n\nimport {\n\tgetActionCreators,\n\tgetReducer,\n\tIActionCreators,\n\tIMappedActionCreators,\n\tItemState, KnownPageAction,\n} from '@common/react/store/Item';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { User } from '@app/objects/User';\nimport { ApplicationState } from '@app/store/index';\n\nexport type ItemActionCreators = IActionCreators;\nexport type MappedItemActionCreators = IMappedActionCreators;\nexport type KnownItemActions = KnownPageAction;\n\nexport function getItemActionCreators(): ItemActionCreators {\n\treturn getActionCreators();\n}\n\nexport function bindItemActionCreators(dispatch: Dispatch): MappedItemActionCreators {\n\treturn bindActionCreators, MappedItemActionCreators>(getItemActionCreators(), dispatch);\n}\n\nexport function getItemReducer(storageName: keyof ApplicationState): Reducer, Action> {\n\treturn getReducer(storageName) as Reducer, Action>;\n}\n","import * as React from 'react';\n\nimport clsx from 'clsx';\n\nimport '@app/scss/ui/layout/layout.scss';\n\nexport enum StackDirection {\n\tVertical = 'column',\n\tHorizontal = 'row',\n}\n\nexport interface StackProps {\n\tchildren: Array | React.ReactNode;\n\n\tdirection?: StackDirection;\n\treverse?: boolean;\n\tgap?: number;\n\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n}\n\nenum LayoutBreakpoint {\n\tExtraSmall = 'xs',\n\tSmall = 'sm',\n\tMedium = 'md',\n\tLarge = 'lg',\n\tExtraLarge = 'xl',\n}\n\ntype LayoutColumn = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport type LayoutColumnSpan = LayoutColumn | Partial>;\n\ninterface LayoutItemProps {\n\tspan?: LayoutColumnSpan;\n\tfluid?: boolean;\n\n\tstyle?: React.CSSProperties;\n\tclassName?: string;\n}\n\nconst perUnit: number = 8;\n\nfunction getStyle(props: StackProps): React.CSSProperties {\n\tconst style: React.CSSProperties = {};\n\n\tstyle.display = 'flex';\n\tstyle.gap = `${props.gap! * perUnit}px`;\n\tstyle.flexDirection = props.direction;\n\tstyle.flexWrap = 'wrap';\n\n\tif (props.reverse) {\n\t\tstyle.flexDirection = `${props.direction!}-reverse`;\n\t}\n\n\treturn { ...style, ...props.style };\n}\n\ntype StackComponent = React.FC & {\n\tLayoutItem: React.FC>;\n};\n\nexport const Stack: StackComponent = (props: StackProps) => (\n\t\n\t\t{props.children}\n\t
\n);\n\nStack.defaultProps = {\n\tdirection: StackDirection.Vertical,\n\tgap: 1,\n\treverse: false,\n};\n\nconst prefix: string = 'layout-item';\nfunction getClass(span: LayoutColumnSpan, fluid: LayoutItemProps['fluid']): string {\n\tif (fluid) return `${prefix}-fluid`;\n\tif (typeof span === 'number') return `${prefix}-xs-${span}`;\n\n\treturn Object.entries(span).map(([breakpoint, span]) => `${prefix}-${breakpoint}-${span}`).join(' ');\n}\n\nStack.LayoutItem = (props: React.PropsWithChildren) => (\n\t\n\t\t{props.children}\n\t\n);\n\nStack.LayoutItem.defaultProps = {\n\tspan: 12,\n};\n","module.exports = (__webpack_require__(7))(18);","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _CheckCircleFilled = _interopRequireDefault(require(\"@ant-design/icons/CheckCircleFilled\"));\nvar _CheckCircleOutlined = _interopRequireDefault(require(\"@ant-design/icons/CheckCircleOutlined\"));\nvar _CloseCircleFilled = _interopRequireDefault(require(\"@ant-design/icons/CloseCircleFilled\"));\nvar _CloseCircleOutlined = _interopRequireDefault(require(\"@ant-design/icons/CloseCircleOutlined\"));\nvar _CloseOutlined = _interopRequireDefault(require(\"@ant-design/icons/CloseOutlined\"));\nvar _ExclamationCircleFilled = _interopRequireDefault(require(\"@ant-design/icons/ExclamationCircleFilled\"));\nvar _ExclamationCircleOutlined = _interopRequireDefault(require(\"@ant-design/icons/ExclamationCircleOutlined\"));\nvar _InfoCircleFilled = _interopRequireDefault(require(\"@ant-design/icons/InfoCircleFilled\"));\nvar _InfoCircleOutlined = _interopRequireDefault(require(\"@ant-design/icons/InfoCircleOutlined\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nvar _rcMotion = _interopRequireDefault(require(\"rc-motion\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _configProvider = require(\"../config-provider\");\nvar _getDataOrAriaProps = _interopRequireDefault(require(\"../_util/getDataOrAriaProps\"));\nvar _reactNode = require(\"../_util/reactNode\");\nvar _ErrorBoundary = _interopRequireDefault(require(\"./ErrorBoundary\"));\nvar __rest = void 0 && (void 0).__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar iconMapFilled = {\n success: _CheckCircleFilled[\"default\"],\n info: _InfoCircleFilled[\"default\"],\n error: _CloseCircleFilled[\"default\"],\n warning: _ExclamationCircleFilled[\"default\"]\n};\nvar iconMapOutlined = {\n success: _CheckCircleOutlined[\"default\"],\n info: _InfoCircleOutlined[\"default\"],\n error: _CloseCircleOutlined[\"default\"],\n warning: _ExclamationCircleOutlined[\"default\"]\n};\nvar IconNode = function IconNode(props) {\n var description = props.description,\n icon = props.icon,\n prefixCls = props.prefixCls,\n type = props.type;\n var iconType = (description ? iconMapOutlined : iconMapFilled)[type] || null;\n if (icon) {\n return (0, _reactNode.replaceElement)(icon, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-icon\")\n }, icon), function () {\n return {\n className: (0, _classnames[\"default\"])(\"\".concat(prefixCls, \"-icon\"), (0, _defineProperty2[\"default\"])({}, icon.props.className, icon.props.className))\n };\n });\n }\n return /*#__PURE__*/React.createElement(iconType, {\n className: \"\".concat(prefixCls, \"-icon\")\n });\n};\nvar CloseIcon = function CloseIcon(props) {\n var isClosable = props.isClosable,\n closeText = props.closeText,\n prefixCls = props.prefixCls,\n closeIcon = props.closeIcon,\n handleClose = props.handleClose;\n return isClosable ? ( /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: handleClose,\n className: \"\".concat(prefixCls, \"-close-icon\"),\n tabIndex: 0\n }, closeText ? /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-close-text\")\n }, closeText) : closeIcon)) : null;\n};\nvar Alert = function Alert(_a) {\n var description = _a.description,\n customizePrefixCls = _a.prefixCls,\n message = _a.message,\n banner = _a.banner,\n _a$className = _a.className,\n className = _a$className === void 0 ? '' : _a$className,\n style = _a.style,\n onMouseEnter = _a.onMouseEnter,\n onMouseLeave = _a.onMouseLeave,\n onClick = _a.onClick,\n afterClose = _a.afterClose,\n showIcon = _a.showIcon,\n closable = _a.closable,\n closeText = _a.closeText,\n _a$closeIcon = _a.closeIcon,\n closeIcon = _a$closeIcon === void 0 ? /*#__PURE__*/React.createElement(_CloseOutlined[\"default\"], null) : _a$closeIcon,\n action = _a.action,\n props = __rest(_a, [\"description\", \"prefixCls\", \"message\", \"banner\", \"className\", \"style\", \"onMouseEnter\", \"onMouseLeave\", \"onClick\", \"afterClose\", \"showIcon\", \"closable\", \"closeText\", \"closeIcon\", \"action\"]);\n var _React$useState = React.useState(false),\n _React$useState2 = (0, _slicedToArray2[\"default\"])(_React$useState, 2),\n closed = _React$useState2[0],\n setClosed = _React$useState2[1];\n var ref = React.useRef();\n var _React$useContext = React.useContext(_configProvider.ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n var prefixCls = getPrefixCls('alert', customizePrefixCls);\n var handleClose = function handleClose(e) {\n var _a;\n setClosed(true);\n (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);\n };\n var getType = function getType() {\n var type = props.type;\n if (type !== undefined) {\n return type;\n }\n // banner 模式默认为警告\n return banner ? 'warning' : 'info';\n };\n // closeable when closeText is assigned\n var isClosable = closeText ? true : closable;\n var type = getType();\n // banner 模式默认有 Icon\n var isShowIcon = banner && showIcon === undefined ? true : showIcon;\n var alertCls = (0, _classnames[\"default\"])(prefixCls, \"\".concat(prefixCls, \"-\").concat(type), (0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])({}, \"\".concat(prefixCls, \"-with-description\"), !!description), \"\".concat(prefixCls, \"-no-icon\"), !isShowIcon), \"\".concat(prefixCls, \"-banner\"), !!banner), \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n var dataOrAriaProps = (0, _getDataOrAriaProps[\"default\"])(props);\n return /*#__PURE__*/React.createElement(_rcMotion[\"default\"], {\n visible: !closed,\n motionName: \"\".concat(prefixCls, \"-motion\"),\n motionAppear: false,\n motionEnter: false,\n onLeaveStart: function onLeaveStart(node) {\n return {\n maxHeight: node.offsetHeight\n };\n },\n onLeaveEnd: afterClose\n }, function (_ref) {\n var motionClassName = _ref.className,\n motionStyle = _ref.style;\n return /*#__PURE__*/React.createElement(\"div\", (0, _extends2[\"default\"])({\n ref: ref,\n \"data-show\": !closed,\n className: (0, _classnames[\"default\"])(alertCls, motionClassName),\n style: (0, _extends2[\"default\"])((0, _extends2[\"default\"])({}, style), motionStyle),\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onClick: onClick,\n role: \"alert\"\n }, dataOrAriaProps), isShowIcon ? ( /*#__PURE__*/React.createElement(IconNode, {\n description: description,\n icon: props.icon,\n prefixCls: prefixCls,\n type: type\n })) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-content\")\n }, message ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-message\")\n }, message) : null, description ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-description\")\n }, description) : null), action ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-action\")\n }, action) : null, /*#__PURE__*/React.createElement(CloseIcon, {\n isClosable: !!isClosable,\n closeText: closeText,\n prefixCls: prefixCls,\n closeIcon: closeIcon,\n handleClose: handleClose\n }));\n });\n};\nAlert.ErrorBoundary = _ErrorBoundary[\"default\"];\nvar _default = exports[\"default\"] = Alert;","import * as React from 'react';\n\nimport {HandleChangeEventElement} from '@common/react/components/Pages/ItemsPage';\n\ninterface ComponentProps {\n\tonChange?: (evt: HandleChangeEventElement) => void;\n\tonSubmit?: (evt: HandleChangeEventElement) => void;\n\tname: string;\n\tclassName?: string;\n\tplaceholder?: string;\n\twithoutForm?: boolean;\n\tbuttonType?: 'submit' | 'button' | 'reset';\n\tsubmitOnClear?: boolean;\n\tcontainerClassName?: string;\n\tdefaultValue?: string;\n}\n\ninterface ComponentState {\n\tvalue: string;\n}\n\nexport default class SimpleSearchInput extends React.Component {\n\tprivate buttonRef = React.createRef();\n\t\n\tpublic static defaultProps: Partial = {\n\t\tclassName: 'form-control',\n\t\tplaceholder: 'Search',\n\t\twithoutForm: false,\n\t\tbuttonType: 'submit',\n\t\tsubmitOnClear: true\n\t};\n\n\tconstructor(props: ComponentProps) {\n\t\tsuper(props);\n\t\t\n\t\tthis.state = {\n\t\t\tvalue: this.props.defaultValue || ''\n\t\t};\n\t\t\n\t\tthis.handleChange = this.handleChange.bind(this);\n\t\tthis.clearField = this.clearField.bind(this);\n\t\tthis.onKeyPress = this.onKeyPress.bind(this);\n\t\tthis.onClick = this.onClick.bind(this);\n\t}\n\t\n\tshouldComponentUpdate(nextProps: ComponentProps, nextState: ComponentState) {\n\t\treturn nextState.value !== this.state.value;\n\t}\n\t\n\thandleChange(evt: React.FormEvent): void {\n\t\tthis.setState({\n\t\t\tvalue: evt.currentTarget.value\n\t\t});\n\n\t\tthis.props.onChange && this.props.onChange(evt);\n\t}\n\t\n\tonKeyPress(evt: React.KeyboardEvent): void {\n\t\tif (evt && evt.key === 'Enter') {\n\t\t\tthis.props.onSubmit && this.props.onSubmit({\n\t\t\t\tcurrentTarget: {\n\t\t\t\t\tname: this.props.name,\n\t\t\t\t\tvalue: this.state.value\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\t\n\tonClick(): void {\n\t\tthis.props.onSubmit && this.props.onSubmit({\n\t\t\tcurrentTarget: {\n\t\t\t\tname: this.props.name,\n\t\t\t\tvalue: this.state.value\n\t\t\t}\n\t\t});\n\t}\n\t\n\tclearField(): void {\n\t\tconst fakeTarget = {\n\t\t\tcurrentTarget: {\n\t\t\t\tname: this.props.name,\n\t\t\t\tvalue: ''\n\t\t\t}\n\t\t};\n\t\t\n\t\tthis.setState({\n\t\t\tvalue: ''\n\t\t});\n\n\t\tthis.props.onChange && this.props.onChange(fakeTarget);\n\t\t\n\t\tif (this.props.submitOnClear) {\n\t\t\tif (this.props.onSubmit && this.props.withoutForm) {\n\t\t\t\tthis.props.onSubmit(fakeTarget);\n\t\t\t} else if (this.buttonRef.current) {\n\t\t\t\tthis.buttonRef.current.click();\n\t\t\t}\n\t\t}\n\t}\n\t\n\trender() {\n\t\tconst {withoutForm, className, placeholder, name, buttonType, containerClassName = ''} = this.props;\n\t\tconst value = this.state.value;\n\t\t\n\t\treturn
\n\t\t\t\n\t\t\t{value !== '' && }\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
;\n\t}\n}","import * as React from 'react';\nimport {Link, LinkProps, withRouter} from 'react-router-dom';\n\nimport * as H from 'history';\nimport {RouteComponentProps} from 'react-router';\n\ntype Props = LinkProps & RouteComponentProps<{}>;\n\nconst LinkWithPrevLocation: React.FC = ({to, children, location, match, staticContext, history, ...rest}) => {\n\tlet descriptor : H.LocationDescriptor;\n\tconst state = { prevPath: `${location.pathname}${location.search}${location.hash}`};\n\t\n\tif (typeof to === 'string') {\n\t\tdescriptor = {\n\t\t\tpathname: to, \n\t\t\tstate\n\t\t};\n\t} else {\n\t\tdescriptor = {\n\t\t\t...to,\n\t\t\tstate\n\t\t};\n\t}\n\t\n\treturn {children};\n};\n\nexport default withRouter(LinkWithPrevLocation);","import * as React from 'react';\nimport { generatePath, RouteComponentProps } from 'react-router-dom';\n\nimport Table, { ColumnProps, TablePaginationConfig } from 'antd/lib/table';\nimport Button from 'antd/lib/button';\n\nimport { Extend } from '@common/typescript/utils/types';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BaseApplicationState } from '@common/react/store';\nimport { ItemsState, IMappedActionCreators } from '@common/react/store/ItemList';\nimport { BaseParams } from '@common/react/objects/BaseParams';\nimport SimpleSearchInput from '@common/react/components/Forms/SimpleSearchInput/SimpleSearchInput';\nimport { deleteConfirmation } from '@common/react/components/Modal/Modal';\nimport LinkWithPrevLocation from '@common/react/components/UI/LinkWithPrevLocation/LinkWithPrevLocation';\nimport { parseQuery } from '@common/typescript/utils/url';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nexport interface ItemsPageReduxProps {\n\titems: ItemsState;\n}\n\nexport interface ItemsPageReduxActions> {\n\tactions: IMappedActionCreators\n}\n\nexport type ItemsPageRouteProps = RouteComponentProps<{ page: string }>;\n\nexport type PageProps> =\n\tItemsPageReduxProps\n\t& ItemsPageReduxActions\n\t& ItemsPageRouteProps;\n\nexport enum SortingDirection {\n\tDefault = 0,\n\tAscending = 1,\n\tDescending = 2\n}\n\ntype StringBoolNumber = string | boolean | number;\n\nexport interface HandleChangeEventElement {\n\tcurrentTarget: {\n\t\tname: string;\n\t\tvalue: Nullable;\n\t};\n}\n\nexport interface MobileCellProps {\n\tcaption: string;\n\tchildren?: React.ReactNode;\n\tfullWidth?: boolean;\n}\n\nexport const MobileCell: React.FC = ({ caption, children = null, fullWidth = false }: MobileCellProps) => (\n\t<>\n\t\t
{caption}
\n\t\t
{children}
\n\t\n);\n\ntype rowKey = (record) => string;\n\ntype ComponentProps<\n\tTEntity extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState,\n\tTPropsExtension = never\n\t> = Extend, TPropsExtension>;\n\nexport abstract class ExtendableItemsPage<\n\tTEntity extends WithId,\n\tTPropsExtension = never,\n\tTState = Record,\n\tTUser extends BaseUser = BaseUser,\n\tTApplicationState extends BaseApplicationState = BaseApplicationState,\n> extends React.Component, TState> {\n\tabstract store: keyof TApplicationState;\n\tabstract type: string;\n\tabstract path: string;\n\tabstract listPath: string;\n\n\teditorPath: string = '';\n\teditorCaption: string = '';\n\tlistTemplatePath: string = '';\n\tcaption: string = '';\n\ttext: string = '';\n\tisFilterText: boolean = true;\n\ttextInput: any;\n\ttableClassName: string = '';\n\tadditionalParams: BaseParams = {};\n\trowKey: string | rowKey = 'id';\n\twithoutUrlPagination: boolean = false;\n\tcount: number = 10;\n\twithUrlHandling: boolean = false;\n\n\tbaseAction = {\n\t\ttitle: '',\n\t\trender: (text: never, record: TEntity) => (\n\t\t\t
\n\t\t\t\t{this.renderActionButtons(record)}\n\t\t\t
\n\t\t),\n\t};\n\n\tidColumn = {\n\t\ttitle: '#',\n\t\tdataIndex: 'id',\n\t\trender: (id: number): JSX.Element | null => (\n\t\t\tthis.renderMobileCell('#', id > 0 ? {id} : null)\n\t\t),\n\t};\n\n\tcolumns: ColumnProps[] = [\n\t\tthis.idColumn,\n\t];\n\n\tconstructor(props: ComponentProps) {\n\t\tsuper(props);\n\n\t\tthis.handleTableChange = this.handleTableChange.bind(this);\n\t\tthis.handleDelete = this.handleDelete.bind(this);\n\t\tthis.handleFilter = this.handleFilter.bind(this);\n\t\tthis.handleUrl = this.handleUrl.bind(this);\n\t\tthis.handleAdd = this.handleAdd.bind(this);\n\t\tthis.handleChange = this.handleChange.bind(this);\n\t\tthis.handleChangeAndRefresh = this.handleChangeAndRefresh.bind(this);\n\t\tthis.updateParams = this.updateParams.bind(this);\n\t\tthis.updateItem = this.updateItem.bind(this);\n\t\tthis.onItemsLoaded = this.onItemsLoaded.bind(this);\n\t\tthis.onItemsError = this.onItemsError.bind(this);\n\t\tthis.onTableRow = this.onTableRow.bind(this);\n\t}\n\n\tcomponentDidMount(): void {\n\t\tconst page = this.withoutUrlPagination ? 1 : (this.currentPage);\n\n\t\tif (this.withUrlHandling) {\n\t\t\tconst searchObj: BaseParams = parseQuery(this.props.location.search);\n\n\t\t\tObject.keys(searchObj).forEach((key: string) => {\n\t\t\t\tconst value: string = searchObj[key];\n\n\t\t\t\tif (value === 'true') {\n\t\t\t\t\tsearchObj[key] = true;\n\t\t\t\t} else if (value === 'false') {\n\t\t\t\t\tsearchObj[key] = false;\n\t\t\t\t} else if (value[0] === '[' && value[value.length - 1] === ']') {\n\t\t\t\t\tsearchObj[key] = value.slice(1, value.length - 1).split(',');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthis.additionalParams = {\n\t\t\t\t...this.additionalParams,\n\t\t\t\t...this.customUrlHandler(searchObj),\n\t\t\t};\n\t\t}\n\n\t\tconst params = {\n\t\t\tpage,\n\t\t\tcount: this.count,\n\t\t\t...this.additionalParams,\n\t\t};\n\t\tthis.props.actions.reqPages(this.store, this.path, this.type, params)\n\t\t\t.then(this.onItemsLoaded)\n\t\t\t.catch(this.onItemsError);\n\t}\n\n\tcomponentDidUpdate(prevProps): void {\n\t\tconst page = prevProps.match ? parseInt(prevProps.match.params.page, 10) || 1 : 1;\n\t\tconst current = this.currentPage;\n\n\t\tif (!this.props.items.isLoading && !this.withoutUrlPagination && page !== current) {\n\t\t\tconst params = {\n\t\t\t\tpage: current,\n\t\t\t\tcount: this.count,\n\t\t\t\t...this.additionalParams,\n\t\t\t};\n\n\t\t\tthis.props.actions.reqPages(this.store, this.path, this.type, params);\n\t\t}\n\t}\n\n\thandleDelete(event: React.MouseEvent, item: TEntity) {\n\t\tevent.preventDefault();\n\n\t\tdeleteConfirmation(() => {\n\t\t\tthis.removeItem(item);\n\t\t});\n\t}\n\n\thandleAdd() {\n\t\tthis.props.history.push(`/${this.editorPath}/-1`);\n\t}\n\n\thandleTableChange(pagination: TablePaginationConfig, filters, sorter) {\n\t\tconst page = this.currentPage;\n\n\t\tthis.additionalParams.filters = filters;\n\n\t\tif (page !== pagination.current) {\n\t\t\tif (this.withoutUrlPagination) {\n\t\t\t\tthis.props.actions.refreshPages(this.store, this.path, { page: pagination.current, count: this.count, ...this.additionalParams });\n\t\t\t} else {\n\t\t\t\tif (this.listTemplatePath) {\n\t\t\t\t\tconst params = { ...this.props.match.params, page: pagination.current };\n\t\t\t\t\tconst url = generatePath(this.listTemplatePath, params);\n\n\t\t\t\t\tthis.props.history.push(url);\n\t\t\t\t} else {\n\t\t\t\t\tthis.props.history.push(`/${this.listPath}/${pagination.current}${this.props.location.search}`);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (sorter.column) {\n\t\t\t\tthis.additionalParams.column = [{\n\t\t\t\t\tcaption: sorter.field,\n\t\t\t\t\tdirection: sorter.order === 'descend' ? SortingDirection.Descending : SortingDirection.Ascending,\n\t\t\t\t}];\n\t\t\t} else {\n\t\t\t\tthis.additionalParams.column = [];\n\t\t\t}\n\n\t\t\tthis.props.actions.refreshPages(this.store, this.path, { page: 1, count: this.count, ...this.additionalParams });\n\t\t}\n\t}\n\n\tonItemsLoaded() {\n\t}\n\n\tonItemsError(error: string) {\n\t}\n\n\tcustomUrlHandler(obj: BaseParams): BaseParams {\n\t\treturn obj;\n\t}\n\n\tget currentPage(): number {\n\t\treturn this.props.match ? parseInt(this.props.match.params.page, 10) || 1 : 1;\n\t}\n\n\tremoveItem(item: TEntity): Promise {\n\t\tconst page = this.props.items.params.page || 1;\n\t\tconst isLast = this.props.items.items.length === 1 && page > 1;\n\t\tconst value: TEntity = {\n\t\t\t...item,\n\t\t\tchildren: null,\n\t\t\tfiles: null,\n\t\t};\n\n\t\treturn this.props.actions.removeItem(\n\t\t\tthis.store,\n\t\t\tthis.path,\n\t\t\tthis.type,\n\t\t\tvalue,\n\t\t\tisLast ? { page: page - 1 } : null,\n\t\t).then(() => {\n\t\t\tif (isLast && !this.withoutUrlPagination) this.props.history.replace(`/${this.listPath}/${page - 1}`);\n\t\t}).then(() => item);\n\t}\n\n\tupdateItem(item: Partial) {\n\t\tthis.props.actions.updateItem(this.store, item);\n\t}\n\n\tupdateParams(params: BaseParams): void {\n\t\tthis.additionalParams = {\n\t\t\t...this.additionalParams,\n\t\t\t...params,\n\t\t};\n\t}\n\n\thandleUrl(evt: HandleChangeEventElement | Array) {\n\t\tconst searchObj = parseQuery(this.props.location.search);\n\n\n\t\tif (Array.isArray(evt)) {\n\t\t\tevt.forEach(({ currentTarget: { name, value } }: HandleChangeEventElement) => {\n\t\t\t\tsearchObj[name] = value instanceof Array ? `[${value}]` : `${value}`;\n\t\t\t});\n\t\t} else {\n\t\t\tconst { name, value } = evt.currentTarget;\n\t\t\tsearchObj[name] = value instanceof Array ? `[${value}]` : `${value}`;\n\t\t}\n\n\t\tconst emptyValues = ['', 'null', 'undefined', '-1', '[]'];\n\n\t\tconst search = Object.keys(searchObj)\n\t\t\t.filter((key: string) => emptyValues.indexOf(searchObj[key]) === -1)\n\t\t\t.map((key: string) => `${key}=${searchObj[key]}`)\n\t\t\t.join('&');\n\n\t\tthis.props.history.replace(`${this.props.location.pathname.replace(/\\/\\d+/, '/1')}?${search}`);\n\t}\n\n\thandleChange(evt: HandleChangeEventElement | Array) {\n\t\tif (Array.isArray(evt)) {\n\t\t\tconst params = {};\n\t\t\tevt.forEach((event: HandleChangeEventElement) => params[event.currentTarget.name] = event.currentTarget.value);\n\t\t\tthis.updateParams(params);\n\t\t} else {\n\t\t\tthis.updateParams({ [evt.currentTarget.name]: evt.currentTarget.value });\n\t\t}\n\n\t\tif (this.withUrlHandling) {\n\t\t\tthis.handleUrl(evt);\n\t\t}\n\t}\n\n\thandleChangeAndRefresh(evt: HandleChangeEventElement| Array) {\n\t\tthis.handleChange(evt);\n\t\tthis.handleFilter(null);\n\t}\n\n\thandleFilter(event: React.FormEvent | null, nPage?: number) {\n\t\tevent?.preventDefault();\n\n\t\tthis.props.actions.refreshPages(this.store, this.path, { page: nPage || 1, ...this.additionalParams });\n\t}\n\n\tprotected onTableRow(record: TEntity, index?: number): React.HTMLAttributes {\n\t\treturn {\n\t\t};\n\t}\n\n\tgetFiltersRender(): JSX.Element {\n\t\treturn (\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t);\n\t}\n\n\trenderMobileCell(caption: string, text: string | JSX.Element | null, fullWidth: boolean = false): JSX.Element {\n\t\treturn {text};\n\t}\n\n\trenderTable(): JSX.Element {\n\t\tconst { items, pagination, isLoading } = this.props.items;\n\t\treturn (\n\t\t\t\n\t\t);\n\t}\n\n\trenderButtons(): JSX.Element {\n\t\treturn ;\n\t}\n\n\trenderActionButtons(record: TEntity): JSX.Element {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t) => this.handleDelete(e, record)}\n\t\t\t\t>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n\n\trenderCaption() {\n\t\treturn \t

{this.caption}

;\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst editor: JSX.Element | null = this.editorCaption && this.editorPath\n\t\t\t?
{this.renderButtons()}
\n\t\t\t: null;\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t
\n\t\t\t\t\t{this.renderCaption()}\n\t\t\t\t\t{editor}\n\t\t\t\t
\n\t\t\t\t{this.isFilterText && this.getFiltersRender()}\n\t\t\t\t{this.renderTable()}\n\t\t\t\n\t\t);\n\t}\n}\n\nexport abstract class ItemsPage<\n\tT extends WithId,\n\tTState = Record,\n\tTUser extends BaseUser = BaseUser,\n\tTApplicationState extends BaseApplicationState = BaseApplicationState\n> extends ExtendableItemsPage {}\n","import Modal from 'antd/lib/modal';\n\nexport function deleteConfirmation(callback: () => void, title?: string) {\n\tModal.confirm({\n\t\ttitle: title || 'This item will be permanently deleted and cannot be recovered. Are you sure?',\n\t\tcontent: '',\n\t\tokText: 'Yes',\n\t\tokType: 'danger',\n\t\tcancelText: 'Cancel',\n\t\tonOk() {\n\t\t\tcallback();\n\t\t}\n\t});\n}","module.exports = (__webpack_require__(7))(1082);","module.exports = (__webpack_require__(7))(3);","module.exports = (__webpack_require__(7))(598);","import * as React from 'react';\nimport Input, { InputProps } from 'antd/lib/input';\n\nimport { Optional } from '@common/typescript/objects/Nullable';\n\ntype Props = Omit\ninterface NumberFieldProps extends Props {\n\tonChange: (value: number) => void;\n\tvalue: Optional;\n\tname: string;\n}\n\nfunction getMin(value: number | string = 0): number {\n\tif (typeof value === 'number') return value;\n\n\tconst num = Number.parseFloat(value);\n\tif (Number.isNaN(num)) return 0;\n\n\treturn num;\n}\n\nfunction isNumberFormat(value: string): boolean {\n\treturn /^[-+]?\\d*\\.?\\d*$/.test(value);\n}\n\nexport const NumberField: React.FC = (props: NumberFieldProps) => {\n\tconst [stateValue, setStateValue] = React.useState(props.value?.toString() ?? '-');\n\n\tReact.useEffect(() => setStateValue(props.value?.toString() ?? '-'), [props.value]);\n\n\treturn (\n\t\t) => {\n\t\t\t\tconst currentValue = event.currentTarget.value.replace(',', '.');\n\t\t\t\tif (!isNumberFormat(currentValue)) return;\n\n\t\t\t\tconst value = Number.parseFloat(currentValue);\n\n\t\t\t\tif (value < Number(props.min)) return;\n\t\t\t\tif (value > Number(props.max)) return;\n\n\t\t\t\tsetStateValue(currentValue);\n\t\t\t\tif (!Number.isNaN(value)) {\n\t\t\t\t\tprops.onChange(value);\n\t\t\t\t}\n\t\t\t}}\n\t\t\tonBlur={(event: React.FocusEvent) => {\n\t\t\t\tif (stateValue === '') {\n\t\t\t\t\tconst value = getMin(props.min);\n\n\t\t\t\t\tsetStateValue(value.toString());\n\t\t\t\t\tprops.onChange(value);\n\t\t\t\t}\n\t\t\t\tprops.onBlur?.(event);\n\t\t\t}}\n\t\t/>\n\t);\n};\n","import { WithId } from '@common/typescript/objects/WithId';\nimport { WithRemoved } from '@common/typescript/objects/WithRemoved';\nimport { isPresent, Nullable } from '@common/typescript/objects/Nullable';\n\nimport { InventoryItem } from '@app/objects/Inventory';\nimport { Price } from '@app/objects/Price';\nimport { PetPrice } from '@app/objects/Pet';\nimport { WithOrder } from '@app/objects/WithOrder';\n\nexport interface StoreEntryNode extends WithId, WithOrder {\n\tavatar: string;\n\toriginalAvatar: string;\n\n\tname: string;\n\tfullName: string;\n\n\tentry: Nullable;\n\tentryId: number;\n\n\tvalue: Nullable;\n\tvalueId: Nullable;\n\n\titem: InventoryItem;\n\titemId: number;\n\n\tparent: Nullable;\n\tparentId: Nullable;\n\tchildren: Array;\n\n\tremoved: boolean;\n\tdisabled: boolean;\n\n\tisDefault: boolean;\n}\n\nexport interface StoreEntry extends WithId {\n\tname: string;\n\tisSpecial: boolean;\n\n\tavatar: string;\n\toriginalAvatar: string;\n\n\tattributes: Array;\n\ttree: Array;\n}\n\nexport interface StoreEntryView extends WithId {\n\tname: string;\n\tisSpecial: boolean;\n\tisDefault: boolean;\n\n\tavatar: string;\n\toriginalAvatar: string;\n\n\tattributes: Array;\n}\n\nexport interface StoreEntryAttributeView extends WithId, WithOrder {\n\tid: number;\n\tname: string;\n\tclinicCanPick: boolean;\n}\nexport interface StoreEntryAttribute extends WithId, WithRemoved, WithOrder {\n\tname: string;\n\tclinicCanPick: boolean;\n\tentry?: StoreEntry;\n\tentryId?: number;\n\tvalues: Array;\n}\n\nexport interface StoreEntryAttributeValue extends WithId, WithRemoved, WithOrder {\n\tname: string;\n\tattribute: Nullable;\n\tattributeId: number;\n}\n\nexport interface StoreEntryVariant extends WithId, WithRemoved {\n\tattributeValue: Nullable;\n\tattributeValueId: number;\n\titem: Nullable;\n\titemId: number;\n}\n\nexport interface AvailableStoreEntry extends WithId {\n\tavatar: string;\n\toriginalAvatar: string;\n\n\tstoreEntry: StoreEntry;\n\tprices: Array;\n}\n\nexport interface StoreEntryPickValue extends WithId, WithRemoved {\n\tstoreEntryPickId: number;\n\tvalueId: number; // id of StoreEntryAttributeValue\n\tvalue: Nullable;\n}\n\nexport interface StoreEntryPick extends WithId {\n\tpetPriceId: number;\n\tpetPrice: Nullable;\n\tvalues: Array;\n}\n\nexport interface StoreEntryAttributeTemplate extends WithId {\n\tname: string;\n\tclinicCanPick: boolean;\n\tremoved: boolean;\n\tvalues?: Array;\n}\n\nexport interface StoreEntryAttributeValueTemplate extends WithId, WithOrder {\n\tname: string;\n\tattributeId: number;\n\tremoved: boolean;\n}\n\nexport function getRoot(entry: StoreEntry): Nullable {\n\tconst root = entry.tree.find((node: StoreEntryNode) => node.parentId === null);\n\n\treturn root ?? null;\n}\n\nexport function getSubTree(entry: Nullable, selection: Nullable): Nullable {\n\tif (!entry) return null;\n\tif (!selection) return null;\n\n\tconst root = entry.tree.find((node: StoreEntryNode) => node.id === selection.id);\n\tif (!root) return null;\n\n\tconst stack: Array = [root];\n\twhile (stack.length) {\n\t\tconst node = stack.pop()!;\n\n\t\tnode.children = entry.tree.filter((child: StoreEntryNode) => child.parentId === node.id);\n\t\tnode.children.forEach((child: StoreEntryNode) => {\n\t\t\tchild.parent = node;\n\t\t});\n\n\t\tstack.push(...node.children);\n\t}\n\n\treturn root;\n}\n\nexport function toTree(entry: StoreEntry): Nullable {\n\tconst list: Array = entry.tree;\n\tif (!list.length) return null;\n\n\tconst root = getRoot(entry);\n\tif (!root) return null;\n\n\treturn getSubTree(entry, root);\n}\n\nexport function getPath(entry: Nullable, selection: StoreEntryNode): Array {\n\tif (!entry) return [];\n\n\tconst path: Array = [];\n\tconst tree: Array = entry.tree;\n\n\tlet node: Nullable = selection;\n\twhile (node) {\n\t\tpath.push(node);\n\n\t\tif (node.parentId === null) {\n\t\t\tnode = null;\n\t\t} else if (node.parent !== null) {\n\t\t\tnode = node.parent;\n\t\t} else {\n\t\t\tnode = tree.find((item: StoreEntryNode) => item.id === node!.parentId);\n\t\t}\n\t}\n\n\treturn path.reverse();\n}\n\nexport function getSegments(entry: Nullable, selection: StoreEntryNode): Array {\n\tif (!entry) return [];\n\n\treturn getPath(entry, selection)\n\t\t.map((node: StoreEntryNode) => node.value?.name)\n\t\t.filter(isPresent);\n}\n\nexport function getFullName(entry: Nullable, selection: StoreEntryNode): string {\n\treturn getPath(entry, selection)\n\t\t.map((node: StoreEntryNode) => {\n\t\t\tif (node.valueId) return node.value?.name;\n\n\t\t\treturn entry?.name;\n\t\t})\n\t\t.filter(isPresent)\n\t\t.join(' ');\n}\n\nexport function intersect(left: Array, right: Array): Array {\n\treturn left.filter((node: StoreEntryNode) => right.some((item: StoreEntryNode) => node.id === item.id));\n}\n","module.exports = (__webpack_require__(7))(19);","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { bindActionCreators } from 'redux';\n\nimport Select, { SelectProps } from 'antd/lib/select';\nimport clsx from 'clsx';\n\nimport {\n\tisWithName,\n} from '@common/typescript/objects/WithName';\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { getLoadableScrollHandler } from '@common/react/components/Utils/Utils';\nimport { GetKeysByType } from '@common/typescript/utils/types';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { ApplicationState } from '@app/store';\nimport {\n\tgetActionCreators,\n\tIActionCreators,\n\tSelectRequestParams,\n\tActionCreatorProps,\n} from '@app/store/SelectList/ListActions';\nimport {\n\tSelectList,\n\tGeneralKey,\n\tgetSelectItemState,\n} from '@app/store/SelectList/SelectList';\nimport { useDebounce } from '@app/hooks/useDebounce';\nimport {\n\tSelectRequestProps,\n\tisEmptyValue,\n} from '@app/store/SelectList/SelectsInterfaces';\nimport {\n\tEntityType,\n\tFilterType,\n\tStoreType,\n\tItemsType,\n\tRecordType,\n} from '@app/store/SelectList/UtilityTypes';\nimport { selectListRequest } from '@app/store/SelectList/SelectListRequests';\n\n/* Type Definitions */\n\ntype NameGetter = GetKeysByType | ((entity: T) => React.ReactNode);\ntype DefaultPicker = (entity: ItemsType) => TValue;\n\nexport interface GroupProps {\n\ttitle: string;\n\toptions: Array;\n}\n\ninterface BaseProps> {\n\tstore: TStore;\n\tstoreKey?: string;\n\tfilters: Nullable>;\n\treqParams?: Partial;\n\n\t// eslint-disable-next-line react/no-unused-prop-types\n\tclassName?: string;\n\tselectClassName?: string;\n\tactiveClassName?: string;\n\tstyle?: React.CSSProperties;\n\n\t// eslint-disable-next-line react/no-unused-prop-types\n\tlabel?: React.ReactElement | string;\n\tplaceholder?: string;\n\tpickDefault?: DefaultPicker;\n\tshouldPickDefault: (store, multiple, isEmptyValue, reqProps, value) => boolean;\n\tdisabled?: boolean;\n\n\tonSelect?: (value: TValue) => void;\n\tonDeselect?: (value: TValue) => void;\n\n\tonFocus?: () => void;\n\tonBlur?: () => void;\n\tonSearch?: (query: string) => void;\n\tfilterOption?: (inputValue, option) => boolean;\n\n\tgetName?: NameGetter>;\n\tgetDisabledOption?: (item: EntityType) => boolean;\n\tgroup?: (items: Array>) => Array>>;\n\torder?: ((items: Array>) => Array>) | boolean;\n\tshouldFetch?: boolean;\n\n\tallowClear?: boolean;\n\tnoPreselect?: boolean;\n\n\tlocalOptions?: Array>;\n}\n\ninterface SingleValueProps<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams\n> extends BaseProps {\n\tvalue?: TValue;\n\tonChange: (value: TValue | undefined) => void;\n\n\t// eslint-disable-next-line react/no-unused-prop-types\n\tmultiple?: false;\n\tisEmptyValue?: (value: TValue | undefined) => boolean;\n}\n\ninterface MultipleValueProps<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams\n> extends BaseProps {\n\tvalue?: Array;\n\tonChange: (value: Array | undefined) => void;\n\n\t// eslint-disable-next-line react/no-unused-prop-types\n\tmultiple: true;\n\tisEmptyValue?: (value: Array | undefined) => boolean;\n}\n\nexport type CoreSelectProps<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams\n> = SingleValueProps | MultipleValueProps;\n\ninterface LoadMoreProps {\n\tfetch: () => void;\n\tshouldFetch: boolean;\n}\n\ninterface ActiveProps {\n\tisActive: boolean;\n\tisEmpty: boolean;\n\tsetFocus: (focus: boolean) => void;\n}\n\nconst { Option, OptGroup } = Select;\n\n/* Utility functions */\n\nfunction getLabel(label?: React.ReactElement | string): React.ReactNode {\n\tif (!label) return null;\n\tif (typeof label === 'string') return {label};\n\n\treturn label;\n}\n\nfunction defaultGetter(item: T): string {\n\tif (isWithName(item) && item.name) return item.name;\n\n\treturn '-';\n}\n\nfunction getName(\n\titem: EntityType,\n\tgetter: NameGetter> = defaultGetter,\n): React.ReactNode {\n\tif (typeof getter === 'function') return getter(item);\n\tconst record: Record, string>, string> = item as Record, string>, string>;\n\n\treturn record[getter];\n}\n\nfunction defaultOrder(items: Array>): Array> {\n\treturn items;\n}\n\n/* Helper hooks */\n// Preselect logic (value preload value that's been selected)\nfunction usePreselect<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams,\n\t>(props: CoreSelectProps): void {\n\tconst reqProps: SelectRequestProps = selectListRequest[props.store];\n\tconst store: StoreType = useSelector>((state: ApplicationState) =>\n\t\tstate.selects[props.store]);\n\n\tconst dispatch = useDispatch();\n\tconst factory: IActionCreators = React.useMemo(\n\t\t() => {\n\t\t\tconst creatorProps: ActionCreatorProps = {\n\t\t\t\tendpoint: reqProps.endpoint,\n\t\t\t\tkey: props.storeKey ?? GeneralKey,\n\t\t\t\tisEqual: reqProps.isEqual,\n\t\t\t};\n\n\t\t\treturn bindActionCreators(getActionCreators(props.store, creatorProps), dispatch);\n\t\t},\n\t\t[dispatch, props.storeKey],\n\t);\n\n\tReact.useEffect(() => {\n\t\tlet value = props.value;\n\t\tif (!reqProps.isEmpty(store.filters as Nullable>) || props.noPreselect) {\n\t\t\tvalue = undefined;\n\t\t}\n\n\t\tif (reqProps.isValid && !reqProps.isValid(props.filters)) return;\n\t\tif (props.shouldFetch === false) return;\n\n\t\tconst preselect: Array = Array.isArray(value) ? value : [];\n\t\tif (!Array.isArray(value) && value !== undefined && value !== null) {\n\t\t\tpreselect.push(value);\n\t\t}\n\n\t\tfactory.request(props.filters, { ...props.reqParams, preselect });\n\t}, [factory, props.filters, props.reqParams, props.shouldFetch]);\n}\n\n// Pick default value logic\nfunction useDefault<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams,\n>(props: CoreSelectProps): void {\n\tconst reqProps: SelectRequestProps = selectListRequest[props.store];\n\tconst root: StoreType = useSelector>((state: ApplicationState) =>\n\t\tstate.selects[props.store]);\n\tconst store: RecordType = getSelectItemState(root, props.storeKey);\n\n\tReact.useEffect(() => {\n\t\tif (props.shouldPickDefault(store, props.multiple, props.isEmptyValue, reqProps, props.value) && props.pickDefault) {\n\t\t\tconst value = props.pickDefault(store.items as ItemsType);\n\n\t\t\tif (value !== undefined) {\n\t\t\t\tif (props.multiple) {\n\t\t\t\t\tprops.onChange([value]);\n\t\t\t\t} else {\n\t\t\t\t\tprops.onChange(value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, [store.items, store.filters, props.pickDefault, reqProps.isEmpty]);\n}\n\nfunction useLoadMore<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams,\n>(props: CoreSelectProps, count: number = 20): LoadMoreProps {\n\tconst reqProps: SelectRequestProps = selectListRequest[props.store];\n\tconst key = props.storeKey ?? GeneralKey;\n\tconst root: StoreType = useSelector>((state: ApplicationState) =>\n\t\tstate.selects[props.store]);\n\tconst store = getSelectItemState(root, key);\n\n\tconst dispatch = useDispatch();\n\tconst factory = React.useMemo(\n\t\t() => {\n\t\t\tconst creatorProps: ActionCreatorProps = {\n\t\t\t\tendpoint: reqProps.endpoint,\n\t\t\t\tkey,\n\t\t\t\tisEqual: reqProps.isEqual,\n\t\t\t};\n\n\t\t\treturn bindActionCreators(getActionCreators(props.store, creatorProps), dispatch);\n\t\t},\n\t\t[dispatch],\n\t);\n\n\treturn {\n\t\tfetch: () => factory.loadMoreItems(count),\n\t\tshouldFetch: store.items.length < store.pagination.total,\n\t};\n}\n\nfunction useActive<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams\n>(props: CoreSelectProps): ActiveProps {\n\tconst [focused, setFocus] = React.useState(() => false);\n\n\tif (props.multiple) {\n\t\tconst emptyCheck = props.isEmptyValue ?? isEmptyValue;\n\t\tconst isEmpty = emptyCheck(props.value);\n\t\tconst isActive = focused || !isEmpty;\n\n\t\treturn {\n\t\t\tisEmpty,\n\t\t\tisActive,\n\t\t\tsetFocus,\n\t\t};\n\t}\n\n\tconst emptyCheck = props.isEmptyValue ?? isEmptyValue;\n\tconst isEmpty = emptyCheck(props.value);\n\tconst isActive = focused || !isEmpty;\n\n\treturn {\n\t\tisEmpty,\n\t\tisActive,\n\t\tsetFocus,\n\t};\n}\n\nfunction useOptions<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams\n>(props: CoreSelectProps): React.ReactNode {\n\tconst { order = false } = props;\n\tconst reqProps: SelectRequestProps = selectListRequest[props.store];\n\n\tconst key = props.storeKey ?? GeneralKey;\n\tconst root: StoreType = useSelector>((state: ApplicationState) =>\n\t\tstate.selects[props.store]);\n\tconst store = getSelectItemState(root, key);\n\n\tlet newOrder = order ? reqProps.order : defaultOrder;\n\tif (typeof order === 'function') newOrder = order;\n\n\tconst localOptions = props.localOptions ?? [];\n\tconst options: Array> = [...store.items, ...localOptions] as Array>;\n\tlet nodes: Array | undefined;\n\n\tif (props.group) {\n\t\tnodes = props.group(options).map((item: GroupProps>) => (\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\tnewOrder?.(item.options)\n\t\t\t\t\t\t.map((item: EntityType) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{getName(item, props.getName)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t))\n\t\t\t\t}\n\t\t\t\n\t\t));\n\t} else {\n\t\tnodes = newOrder?.(options)\n\t\t\t.map((item: EntityType) => (\n\t\t\t\t\n\t\t\t\t\t{getName(item, props.getName)}\n\t\t\t\t\n\t\t\t));\n\t}\n\n\treturn nodes;\n}\n\n/* This is a workaround to select active element */\n/* When tab is pressed */\n/* In a nutshell - 'tab' pressed event is replaced with 'enter' pressed event */\nexport function selectOnLeaveHandler(event: React.KeyboardEvent): void {\n\tif (event.key.toLowerCase() === 'tab') {\n\t\tconst _event = new KeyboardEvent('keydown', {\n\t\t\tkey: 'Enter',\n\t\t\tcode: 'Enter',\n\t\t\tkeyCode: 13,\n\t\t\tbubbles: true,\n\t\t});\n\n\t\tevent.target.dispatchEvent(_event);\n\t}\n}\n\nfunction useSelect<\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams\n>(props: CoreSelectProps): SelectProps | SelectProps> {\n\tconst root: StoreType = useSelector>((state: ApplicationState) =>\n\t\tstate.selects[props.store]);\n\tconst store = getSelectItemState(root);\n\n\tconst debounce = useDebounce((value: Nullable) => {\n\t\tconst str = value ?? '';\n\t\tprops.onSearch?.(str);\n\t}, 750);\n\n\tusePreselect(props);\n\tuseDefault(props);\n\n\tconst loadMore = useLoadMore(props);\n\tconst active = useActive(props);\n\tconst options = useOptions(props);\n\n\tconst properties = {\n\t\tshowSearch: true,\n\t\tshowArrow: true,\n\t\tallowClear: props.allowClear ?? true,\n\t\tshowAction: ['focus', 'click'],\n\n\t\tvalue: active.isEmpty ? undefined : props.value,\n\t\tonChange: props.onChange,\n\n\t\tonSearch: (query: string) => debounce(query),\n\t\tonSelect: (value) => {\n\t\t\tprops.onSearch?.('');\n\t\t\tif (value === undefined) return;\n\n\t\t\tprops.onSelect?.(value);\n\t\t},\n\t\tonDeselect: (value) => {\n\t\t\tif (value === undefined) return;\n\n\t\t\tprops.onDeselect?.(value);\n\t\t},\n\t\tonPopupScroll: getLoadableScrollHandler(loadMore.fetch, loadMore.shouldFetch),\n\t\tonFocus: () => {\n\t\t\tactive.setFocus(true);\n\t\t\tprops.onFocus?.();\n\t\t},\n\t\tonBlur: () => {\n\t\t\tactive.setFocus(false);\n\n\t\t\tprops.onSearch?.('');\n\t\t\tprops.onBlur?.();\n\t\t},\n\t\tonInputKeyDown: selectOnLeaveHandler,\n\n\t\toptionFilterProp: 'children',\n\t\tfilterOption: props.filterOption,\n\t\tmode: props.multiple ? 'multiple' : undefined,\n\n\t\tclassName: clsx(props.selectClassName, active.isActive && props.activeClassName),\n\t\tplaceholder: props.placeholder,\n\t\tloading: store.isLoading,\n\t\tdisabled: props.disabled,\n\t\tchildren: options,\n\t};\n\n\tif (props.multiple) return properties as SelectProps>;\n\n\treturn properties as SelectProps;\n}\n\n/* Facade component */\n/**\n * CoreSelect is a redux-driven base select.\n * Any select that uses data from server should use this component as its basis.\n * @param {CoreSelectProps} props\n * @returns {React.ReactElement}\n * @constructor\n */\nexport const CoreSelect = <\n\tTValue,\n\tTStore extends keyof SelectList,\n\tTParams extends SelectRequestParams = SelectRequestParams\n>(props: CoreSelectProps): React.ReactElement => {\n\tconst properties = useSelect(props);\n\n\treturn (\n\t\t
\n\t\t\t{getLabel(props.label)}\n\t\t\t{props.placeholder}\n\t\t\t{\n\t\t\t\tprops.multiple\n\t\t\t\t\t? > {...(properties as SelectProps>)} />\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\t: {...(properties as SelectProps)} />\n\t\t\t}\n\t\t
\n\t);\n};\n","export interface WithName {\n\tname: string;\n}\n\nexport function isWithName(item: unknown): item is WithName {\n\tif (typeof item !== 'object') return false;\n\tif (!item) return false;\n\n\treturn typeof (item as WithName).name === 'string';\n}\n","module.exports = \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAgICAgJCAkKCgkNDgwODRMREBARExwUFhQWFBwrGx8bGx8bKyYuJSM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SZtkoPLRjH0hiYYmU7Nh1Dif8AE+Vm5lMrKvvqyITX/vehSlKUpajWpRrJtWMymxYem1ZXDsEdVP8ADnG23UFDraVp4lCuJqxqVcrMs4WVck40xNUVPydZdZJRy04xtG1raVs21qQvjSajErZHONVJmEB5HHkVEpS9HzeJD2xXyF4j5OyebxMSae0c+1pttTrqGkCtS1BIhllMuy2yj8qEhI/iAMTdDUfN1lTWwXy0YjE3Y5ONVqYUHk/RULQttRQ4hSVclQqNuqJSlp+UxNvFSOQvGIlLJJR2pMygtK5WVMNrQ6nZtLStHKSaxtyQAVKNSUismJyZM3Nvvq9NWL3b1qxqUuk0uZUMTQqT1lfxR+Xl5lOwfaQ4P8hE1Yw2qtUo8UnkLyfWJqQnJP8AXYUkcoY0/XaMvvy69mw6ttXGkxKWTPJqTNshwcpGJUSlIyM5+i+kq5CsStrZBN3CQLST+J87D+u/boqV8DkWW/TI2a/er+LbxGUcRiaoGj5mtSUFlfKRk+kTVAUhL1qbAeRxpy/SCCFFJBBGUHEdpKU3SEtUkuXVHJX/AOxKWQyD9SXq2V/5Y0/WEkKSFJIUk5Ck1gwIpub8JpBYSa0NeLT97VDSvhVINpUK0I8Yv+v8ampKUm01PsIUeVkUP9xN2MkVqlH/AOjkTErMyi9jMMrbPtyH/e0lpualVbJh5aPZvH/UNWTu3F1LrAupQQhxPH7RbsclblIl5QqW+a/6pyfxxSUqSUKSFJOUKFYiasdkXq1MksK+qfpE3QtIStZLV0Ry28e1lZdU1MMsJyrVV/rfhKEoSlCRUhACUj2J/j83RkhOVl5gbPlpxKiasZmEVqlXQ6OQrEqHWXmFFDza21cShVasZla1PzauzR9/5E6208koebQtPEoVxNWNSzlapVwsr5KsaYkpUSkqywPQGM8Z3z/1V/8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAsP/aAAgBAgEBPwAcT//EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AHE//2Q==\"","import * as React from 'react';\n\nimport { IStatusModalContext, StatusModalContext } from '@app/components/UI/Status/StatusModal/index';\n\ntype OwnProps = IStatusModalContext['modal'];\n\nexport const StatusModalController: React.FC = (props: OwnProps) => {\n\tconst context = React.useContext(StatusModalContext);\n\n\tReact.useEffect(() => {\n\t\tconst value = {\n\t\t\t...context,\n\t\t\tmodal: {\n\t\t\t\t...context,\n\t\t\t\t...props,\n\t\t\t},\n\t\t};\n\n\t\tcontext.update(value);\n\t}, [props.width]);\n\n\treturn null;\n};\n","import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport Space from 'antd/lib/space';\n\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\n\ninterface SectionContainerProps {\n\ttitleLocalizationKey: string;\n\tchildren: React.ReactElement | Array;\n}\n\nexport const SectionContainer: React.FC = (props: SectionContainerProps) => {\n\tconst { t } = useTranslation();\n\tconst key = iKey(props.titleLocalizationKey);\n\tconst title = t(key);\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t

{title}

\n\t\t\t
\n\t\t\t\n\t\t\t\t{props.children}\n\t\t\t\n\t\t
\n\t);\n};\n","module.exports = (__webpack_require__(7))(10);","import { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { Pet, PetPrice, PetUrn } from '@app/objects/Pet';\nimport { StatusRecord } from '@app/objects/StatusRecord';\nimport { User } from '@app/objects/User';\n\nexport enum PromoteStatusAction {\n\tManual = 0,\n\tBatch = 1,\n\tForce = 2,\n}\n\nexport enum Status {\n\tReadyToPickUp,\n\tPlannedPickUpDate,\n\tPickUpInTransit,\n\tAtCrematory,\n\tInProcess,\n\tReadyForCremation,\n\tBeingCremated,\n\tDryingCooling,\n\tAshesPulvarized,\n\tUrnEngraved,\n\tPacked,\n\tReadyToDelivery,\n\tDelivered,\n\tInvoiced,\n\tCompleted\n}\n\nexport enum AllStatuses {\n\tReadyToPickUp,\n\tPlannedPickUpDate,\n\tPickUpInTransit,\n\tAtCrematory,\n\tInProcess,\n\tReadyForCremation,\n\tBeingCremated,\n\tDryingCooling,\n\tAshesPulvarized,\n\tUrnEngraved,\n\tPacked,\n\tReadyToDelivery,\n\tDelivered,\n\tInvoiced,\n\tCompleted,\n\tTotalAtCrematory,\n\tOutOfDelivery,\n\tToBeSpread\n}\n\nexport type History = StatusRecord\n\n// Change History\n\nexport enum DiffAction {\n\tAdded = 0,\n\tUpdated = 1,\n\tDeleted = 2,\n}\n\nexport interface DiffChange {\n\tdiffRecord: WithDiff;\n\tdiffRecordId: number;\n\tkey: string;\n\tbefore: string;\n\tafter: string;\n}\n\ninterface WithDiff extends WithId {\n\tobject: T;\n\tobjectId: number;\n\tdiff: string;\n\tchangeTime: number;\n\tuser: User;\n\tuserId: number;\n\tupdateTransaction: UpdateTransaction;\n\tupdateTransactionId: number;\n\tdiffAction: DiffAction;\n\tremoved: boolean;\n\tchanges: Array>;\n}\n\nexport type PetDiffs = WithDiff\nexport type PetPriceDiffs = WithDiff\nexport type PetUrnDiffs = WithDiff\n\nexport interface UpdateTransaction extends WithId {\n\ttime: number;\n\tuser: Nullable;\n\tuserId: number;\n\n\tpet: Nullable;\n\tpetId: number;\n\n\tpetDiff: PetDiffs;\n\tpetPriceDiffs: Array;\n\tpetUrnDiffs: Array;\n}\n","import { isNodeEnv } from './node';\nimport { snipLine } from './string';\nvar fallbackGlobalObject = {};\n/**\n * Safely get global scope object\n *\n * @returns Global scope object\n */\nexport function getGlobalObject() {\n return (isNodeEnv()\n ? global\n : typeof window !== 'undefined'\n ? window\n : typeof self !== 'undefined'\n ? self\n : fallbackGlobalObject);\n}\n/**\n * UUID4 generator\n *\n * @returns string Generated UUID4.\n */\nexport function uuid4() {\n var global = getGlobalObject();\n var crypto = global.crypto || global.msCrypto;\n if (!(crypto === void 0) && crypto.getRandomValues) {\n // Use window.crypto API if available\n var arr = new Uint16Array(8);\n crypto.getRandomValues(arr);\n // set 4 in byte 7\n // eslint-disable-next-line no-bitwise\n arr[3] = (arr[3] & 0xfff) | 0x4000;\n // set 2 most significant bits of byte 9 to '10'\n // eslint-disable-next-line no-bitwise\n arr[4] = (arr[4] & 0x3fff) | 0x8000;\n var pad = function (num) {\n var v = num.toString(16);\n while (v.length < 4) {\n v = \"0\" + v;\n }\n return v;\n };\n return (pad(arr[0]) + pad(arr[1]) + pad(arr[2]) + pad(arr[3]) + pad(arr[4]) + pad(arr[5]) + pad(arr[6]) + pad(arr[7]));\n }\n // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n // eslint-disable-next-line no-bitwise\n var r = (Math.random() * 16) | 0;\n // eslint-disable-next-line no-bitwise\n var v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(url) {\n if (!url) {\n return {};\n }\n var match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n if (!match) {\n return {};\n }\n // coerce to undefined values to empty string so we don't get 'undefined'\n var query = match[6] || '';\n var fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n relative: match[5] + query + fragment,\n };\n}\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event) {\n if (event.message) {\n return event.message;\n }\n if (event.exception && event.exception.values && event.exception.values[0]) {\n var exception = event.exception.values[0];\n if (exception.type && exception.value) {\n return exception.type + \": \" + exception.value;\n }\n return exception.type || exception.value || event.event_id || '';\n }\n return event.event_id || '';\n}\n/** JSDoc */\nexport function consoleSandbox(callback) {\n var global = getGlobalObject();\n var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert'];\n if (!('console' in global)) {\n return callback();\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var originalConsole = global.console;\n var wrappedLevels = {};\n // Restore all wrapped console methods\n levels.forEach(function (level) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (level in global.console && originalConsole[level].__sentry_original__) {\n wrappedLevels[level] = originalConsole[level];\n originalConsole[level] = originalConsole[level].__sentry_original__;\n }\n });\n // Perform callback manipulations\n var result = callback();\n // Revert restoration to wrapped state\n Object.keys(wrappedLevels).forEach(function (level) {\n originalConsole[level] = wrappedLevels[level];\n });\n return result;\n}\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event, value, type) {\n event.exception = event.exception || {};\n event.exception.values = event.exception.values || [];\n event.exception.values[0] = event.exception.values[0] || {};\n event.exception.values[0].value = event.exception.values[0].value || value || '';\n event.exception.values[0].type = event.exception.values[0].type || type || 'Error';\n}\n/**\n * Adds exception mechanism to a given event.\n * @param event The event to modify.\n * @param mechanism Mechanism of the mechanism.\n * @hidden\n */\nexport function addExceptionMechanism(event, mechanism) {\n if (mechanism === void 0) { mechanism = {}; }\n // TODO: Use real type with `keyof Mechanism` thingy and maybe make it better?\n try {\n // @ts-ignore Type 'Mechanism | {}' is not assignable to type 'Mechanism | undefined'\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception.values[0].mechanism = event.exception.values[0].mechanism || {};\n Object.keys(mechanism).forEach(function (key) {\n // @ts-ignore Mechanism has no index signature\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception.values[0].mechanism[key] = mechanism[key];\n });\n }\n catch (_oO) {\n // no-empty\n }\n}\n/**\n * A safe form of location.href\n */\nexport function getLocationHref() {\n try {\n return document.location.href;\n }\n catch (oO) {\n return '';\n }\n}\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nvar SEMVER_REGEXP = /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input) {\n var match = input.match(SEMVER_REGEXP) || [];\n var major = parseInt(match[1], 10);\n var minor = parseInt(match[2], 10);\n var patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\nvar defaultRetryAfter = 60 * 1000; // 60 seconds\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param now current unix timestamp\n * @param header string representation of 'Retry-After' header\n */\nexport function parseRetryAfterHeader(now, header) {\n if (!header) {\n return defaultRetryAfter;\n }\n var headerDelay = parseInt(\"\" + header, 10);\n if (!isNaN(headerDelay)) {\n return headerDelay * 1000;\n }\n var headerDate = Date.parse(\"\" + header);\n if (!isNaN(headerDate)) {\n return headerDate - now;\n }\n return defaultRetryAfter;\n}\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines, frame, linesOfContext) {\n if (linesOfContext === void 0) { linesOfContext = 5; }\n var lineno = frame.lineno || 0;\n var maxLines = lines.length;\n var sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map(function (line) { return snipLine(line, 0); });\n frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map(function (line) { return snipLine(line, 0); });\n}\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath) {\n // eslint-disable-next-line no-useless-escape\n return urlPath.split(/[\\?#]/, 1)[0];\n}\n//# sourceMappingURL=misc.js.map","import * as React from 'react';\n\ninterface TrackChangeProps {\n\ttrack: T;\n\tonChange: (value: T) => void;\n\tignoreMount?: boolean;\n}\n\nexport const TrackChange = <\n\tT,\n>(props: TrackChangeProps): React.ReactElement => {\n\tconst count = React.useRef(-1);\n\n\tReact.useEffect(() => {\n\t\tcount.current++;\n\t\tif (props.ignoreMount && count.current === 0) return;\n\n\t\tprops.onChange(props.track);\n\t}, [props.track]);\n\n\treturn <>;\n};\n\n(TrackChange as React.FC>).defaultProps = {\n\tignoreMount: true,\n};\n","import * as React from 'react';\n\nimport { ColumnProps } from 'antd/lib/table';\n\nimport { MobileCell } from '@common/react/components/Pages/ItemsPage';\nimport { WithId } from '@common/typescript/objects/WithId';\n\ninterface ActionHandlers {\n\tisEdit: (id: number) => boolean;\n\thandleInputSubmit: (record: TEntity) => void;\n\thandleInputCancel: (record: TEntity) => void;\n\thandleDelete: (event: React.MouseEvent, record: TEntity) => void;\n\thandleInput: (record: TEntity) => void;\n}\n\ninterface ActionOptions {\n\twithEdit: boolean;\n\twithDelete: boolean;\n}\n\nexport default class TableBuilder {\n\tprivate constructor() {}\n\tprivate template: Array> = Array>();\n\n\tpublic static shape() {\n\t\treturn new TableBuilder();\n\t}\n\n\tpublic build(): Array> {\n\t\tconst result = this.template;\n\t\tthis.template = Array>();\n\n\t\treturn result;\n\t}\n\n\tpublic addColumn(column: ColumnProps, condition: boolean = true): TableBuilder {\n\t\tif (condition) {\n\t\t\tthis.template.push(column);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tpublic addIdColumn(options?: ColumnProps, condition: boolean = true): TableBuilder {\n\t\tconst baseColumn = {\n\t\t\ttitle: '#',\n\t\t\tdataIndex: 'id',\n\t\t\trender: (text: string, record: TEntity): JSX.Element | null => (\n\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\trecord.id > 0\n\t\t\t\t\t\t\t? {record.id}\n\t\t\t\t\t\t\t: null\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t),\n\t\t};\n\n\t\tthis.addColumn(options ? {\n\t\t\t...baseColumn,\n\t\t\t...options,\n\t\t} : baseColumn, condition);\n\n\t\treturn this;\n\t}\n\n\tpublic addActionsColumn(\n\t\t{\n\t\t\tisEdit,\n\t\t\thandleInputSubmit,\n\t\t\thandleInputCancel,\n\t\t\thandleDelete,\n\t\t\thandleInput,\n\t\t}: ActionHandlers,\n\t\t{\n\t\t\twithEdit,\n\t\t\twithDelete,\n\t\t}: ActionOptions,\n\t): TableBuilder {\n\t\tthis.addColumn({\n\t\t\ttitle: '',\n\t\t\trender: (text: string, record: TEntity) => (\n\t\t\t\t
\n\t\t\t\t\t{\n\t\t\t\t\t\twithEdit && isEdit(record.id)\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t handleInputSubmit(record)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t handleInputCancel(record)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\twithDelete && record.id !== -1\n\t\t\t\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t\t\t\t) => handleDelete(e, record)}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\twithEdit\n\t\t\t\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t\t\t\t handleInput(record)}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\twithDelete\n\t\t\t\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t\t\t\t) => handleDelete(e, record)}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t),\n\t\t});\n\n\t\treturn this;\n\t}\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { SelectList } from '@app/store/SelectList/SelectList';\nimport {\n\tSelectRequestProps,\n\tisEqualClinic,\n\tisEmpty,\n\tisEqualCrematory,\n\tisEqualPetBreeds,\n\tisEqual,\n\tisEqualUrn,\n\tUrnSelectFilter,\n\tisEqualUrnCategory,\n\tUrnCategoriesSelectFilter,\n\tdefaultOrder,\n\tisEqualRegions,\n\tisEqualSpecialServices,\n\tisEqualProduct,\n\tisEqualInventoryItem,\n\tisEqualAdjustmentCode,\n\tisEqualMeasuringUnit,\n\tisEqualCountry,\n\tisEqualLanguage,\n\tisEqualUser,\n\tdefaultFilters,\n\tdefaultClinicFilters,\n\tdefaultPetBreedsFilters,\n\tdefaultUrnsFilters,\n\tdefaultUrnCategoriesFilters,\n\tdefaultRegionsFilters,\n\tdefaultProductsFilters,\n\tdefaultInventoryItemsFilters,\n\tdefaultDiscountsFilters,\n\tisEqualRoute,\n\tisEqualInventoryParentsCategory,\n\tdefaultLabelPapersFilters,\n\tisEqualPickupServices,\n} from '@app/store/SelectList/SelectsInterfaces';\n\ntype SelectListRequest = {\n\t[Key in keyof SelectList]: SelectRequestProps;\n};\n\nexport const selectListRequest: SelectListRequest = {\n\tclinics: {\n\t\tendpoint: 'clinicSelectList',\n\t\tisEqual: isEqualClinic,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultClinicFilters,\n\t},\n\tclinicTypes: {\n\t\tendpoint: 'clinicTypeList',\n\t\tisEqual,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tcrematories: {\n\t\tendpoint: 'crematoryList',\n\t\tisEqual: isEqualCrematory,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tpetBreeds: {\n\t\tendpoint: 'petBreedList',\n\t\tisEqual: isEqualPetBreeds,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultPetBreedsFilters,\n\t},\n\tstatus: {\n\t\tendpoint: 'statusList',\n\t\tisEqual,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\turns: {\n\t\tendpoint: 'inventoryItemList',\n\t\tisEqual: isEqualUrn,\n\t\tisEmpty,\n\t\tisValid: (filters: Nullable): boolean => Boolean(filters?.parentId && filters?.parentId.length),\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultUrnsFilters,\n\t},\n\turnCategories: {\n\t\tendpoint: 'urnCategoryList',\n\t\tisEqual: isEqualUrnCategory,\n\t\tisEmpty,\n\t\tisValid: (filters: Nullable): boolean => {\n\t\t\tif (filters?.crematoryId && filters?.crematoryId <= 0) return false;\n\t\t\tif (filters?.crematoryId === undefined || filters?.crematoryId > 0) return true;\n\n\t\t\treturn Boolean(0);\n\t\t},\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultUrnCategoriesFilters,\n\t},\n\tregions: {\n\t\tendpoint: 'stateList',\n\t\tisEqual: isEqualRegions,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultRegionsFilters,\n\t},\n\tspecialServices: {\n\t\tendpoint: 'specialServiceList',\n\t\tisEqual: isEqualSpecialServices,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tpickupServices: {\n\t\tendpoint: 'pickupServiceList',\n\t\tisEqual: isEqualPickupServices,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tpickupServicePrices: {\n\t\tendpoint: 'priceList',\n\t\tisEqual: () => false,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tproducts: {\n\t\tendpoint: 'inventoryItemList',\n\t\tisEqual: isEqualProduct,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultProductsFilters,\n\t},\n\tinventoryItems: {\n\t\tendpoint: 'inventoryItemList',\n\t\tisEqual: isEqualInventoryItem,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultInventoryItemsFilters,\n\t},\n\tinventoryParents: {\n\t\tendpoint: 'inventoryItemList',\n\t\tisEqual: isEqualInventoryParentsCategory,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tadjustmentCodes: {\n\t\tendpoint: 'adjustmentCodeList',\n\t\tisEqual: isEqualAdjustmentCode,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tcountries: {\n\t\tendpoint: 'countryList',\n\t\tisEqual: isEqualCountry,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tdiscounts: {\n\t\tendpoint: 'priceList',\n\t\tisEqual: () => false,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultDiscountsFilters,\n\t},\n\tmeasuringUnits: {\n\t\tendpoint: 'measuringUnitList',\n\t\tisEqual: isEqualMeasuringUnit,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tlanguages: {\n\t\tendpoint: 'languageList',\n\t\tisEqual: isEqualLanguage,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tusers: {\n\t\tendpoint: 'userList',\n\t\tisEqual: isEqualUser,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\troutes: {\n\t\tendpoint: 'routeList',\n\t\tisEqual: isEqualRoute,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tlabelPapers: {\n\t\tendpoint: 'labelPaperList',\n\t\tisEqual,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters: defaultLabelPapersFilters,\n\t},\n\tmachines: {\n\t\tendpoint: 'machineList',\n\t\tisEqual,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tstoreEntries: {\n\t\tendpoint: 'storeEntryList',\n\t\tisEqual,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n\tserviceTypes: {\n\t\tendpoint: 'serviceTypeList',\n\t\tisEqual,\n\t\tisEmpty,\n\t\torder: defaultOrder,\n\t\tdefaultFilters,\n\t},\n};\n","import { User } from '@app/objects/User';\n\nexport enum Permission {\n\tCreatePet = 1,\n\tUpdatePet = 2,\n\tDeletePet = 3,\n\n\tChangeStatus = 4,\n\tCompleteService = 5,\n\n\tManageInvoices = 6,\n\tQuickbooks = 7,\n\tManageUsers = 8,\n}\n\nexport function activePermission(user: User | null, permission: Permission): boolean {\n\treturn Boolean(user?.permissions.find((i) => i.permission === permission));\n}\n","import React from 'react';\n\nimport { useFormikContext } from 'formik';\nimport Button from 'antd/lib/button';\nimport Space from 'antd/lib/space';\n\ninterface ModalButtonsProps extends React.ButtonHTMLAttributes {\n\tonClose: () => void;\n\tokText?: string;\n}\n\nexport const ModalButtons: React.FC = ({ onClose, okText, ...props }: ModalButtonsProps) => {\n\tconst { isSubmitting } = useFormikContext();\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\tCancel\n\t\t\t\n\t\t\t\n\t\t\t\t{okText ?? 'Save'}\n\t\t\t\n\t\t\n\t);\n};\n","import { __values } from \"tslib\";\nimport { htmlTreeAsString } from './browser';\nimport { isElement, isError, isEvent, isInstanceOf, isPlainObject, isPrimitive, isSyntheticEvent } from './is';\nimport { Memo } from './memo';\nimport { getFunctionName } from './stacktrace';\nimport { truncate } from './string';\n/**\n * Wrap a given object method with a higher-order function\n *\n * @param source An object that contains a method to be wrapped.\n * @param name A name of method to be wrapped.\n * @param replacementFactory A function that should be used to wrap a given method, returning the wrapped method which\n * will be substituted in for `source[name]`.\n * @returns void\n */\nexport function fill(source, name, replacementFactory) {\n if (!(name in source)) {\n return;\n }\n var original = source[name];\n var wrapped = replacementFactory(original);\n // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n if (typeof wrapped === 'function') {\n try {\n wrapped.prototype = wrapped.prototype || {};\n Object.defineProperties(wrapped, {\n __sentry_original__: {\n enumerable: false,\n value: original,\n },\n });\n }\n catch (_Oo) {\n // This can throw if multiple fill happens on a global object like XMLHttpRequest\n // Fixes https://github.com/getsentry/sentry-javascript/issues/2043\n }\n }\n source[name] = wrapped;\n}\n/**\n * Encodes given object into url-friendly format\n *\n * @param object An object that contains serializable values\n * @returns string Encoded\n */\nexport function urlEncode(object) {\n return Object.keys(object)\n .map(function (key) { return encodeURIComponent(key) + \"=\" + encodeURIComponent(object[key]); })\n .join('&');\n}\n/**\n * Transforms any object into an object literal with all its attributes\n * attached to it.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n */\nfunction getWalkSource(value) {\n if (isError(value)) {\n var error = value;\n var err = {\n message: error.message,\n name: error.name,\n stack: error.stack,\n };\n for (var i in error) {\n if (Object.prototype.hasOwnProperty.call(error, i)) {\n err[i] = error[i];\n }\n }\n return err;\n }\n if (isEvent(value)) {\n var event_1 = value;\n var source = {};\n source.type = event_1.type;\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n source.target = isElement(event_1.target)\n ? htmlTreeAsString(event_1.target)\n : Object.prototype.toString.call(event_1.target);\n }\n catch (_oO) {\n source.target = '';\n }\n try {\n source.currentTarget = isElement(event_1.currentTarget)\n ? htmlTreeAsString(event_1.currentTarget)\n : Object.prototype.toString.call(event_1.currentTarget);\n }\n catch (_oO) {\n source.currentTarget = '';\n }\n if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {\n source.detail = event_1.detail;\n }\n for (var i in event_1) {\n if (Object.prototype.hasOwnProperty.call(event_1, i)) {\n source[i] = event_1;\n }\n }\n return source;\n }\n return value;\n}\n/** Calculates bytes size of input string */\nfunction utf8Length(value) {\n // eslint-disable-next-line no-bitwise\n return ~-encodeURI(value).split(/%..|./).length;\n}\n/** Calculates bytes size of input object */\nfunction jsonSize(value) {\n return utf8Length(JSON.stringify(value));\n}\n/** JSDoc */\nexport function normalizeToSize(object, \n// Default Node.js REPL depth\ndepth, \n// 100kB, as 200kB is max payload size, so half sounds reasonable\nmaxSize) {\n if (depth === void 0) { depth = 3; }\n if (maxSize === void 0) { maxSize = 100 * 1024; }\n var serialized = normalize(object, depth);\n if (jsonSize(serialized) > maxSize) {\n return normalizeToSize(object, depth - 1, maxSize);\n }\n return serialized;\n}\n/**\n * Transform any non-primitive, BigInt, or Symbol-type value into a string. Acts as a no-op on strings, numbers,\n * booleans, null, and undefined.\n *\n * @param value The value to stringify\n * @returns For non-primitive, BigInt, and Symbol-type values, a string denoting the value's type, type and value, or\n * type and `description` property, respectively. For non-BigInt, non-Symbol primitives, returns the original value,\n * unchanged.\n */\nfunction serializeValue(value) {\n var type = Object.prototype.toString.call(value);\n // Node.js REPL notation\n if (typeof value === 'string') {\n return value;\n }\n if (type === '[object Object]') {\n return '[Object]';\n }\n if (type === '[object Array]') {\n return '[Array]';\n }\n var normalized = normalizeValue(value);\n return isPrimitive(normalized) ? normalized : type;\n}\n/**\n * normalizeValue()\n *\n * Takes unserializable input and make it serializable friendly\n *\n * - translates undefined/NaN values to \"[undefined]\"/\"[NaN]\" respectively,\n * - serializes Error objects\n * - filter global objects\n */\nfunction normalizeValue(value, key) {\n if (key === 'domain' && value && typeof value === 'object' && value._events) {\n return '[Domain]';\n }\n if (key === 'domainEmitter') {\n return '[DomainEmitter]';\n }\n if (typeof global !== 'undefined' && value === global) {\n return '[Global]';\n }\n if (typeof window !== 'undefined' && value === window) {\n return '[Window]';\n }\n if (typeof document !== 'undefined' && value === document) {\n return '[Document]';\n }\n // React's SyntheticEvent thingy\n if (isSyntheticEvent(value)) {\n return '[SyntheticEvent]';\n }\n if (typeof value === 'number' && value !== value) {\n return '[NaN]';\n }\n if (value === void 0) {\n return '[undefined]';\n }\n if (typeof value === 'function') {\n return \"[Function: \" + getFunctionName(value) + \"]\";\n }\n // symbols and bigints are considered primitives by TS, but aren't natively JSON-serilaizable\n if (typeof value === 'symbol') {\n return \"[\" + String(value) + \"]\";\n }\n if (typeof value === 'bigint') {\n return \"[BigInt: \" + String(value) + \"]\";\n }\n return value;\n}\n/**\n * Walks an object to perform a normalization on it\n *\n * @param key of object that's walked in current iteration\n * @param value object to be walked\n * @param depth Optional number indicating how deep should walking be performed\n * @param memo Optional Memo class handling decycling\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function walk(key, value, depth, memo) {\n if (depth === void 0) { depth = +Infinity; }\n if (memo === void 0) { memo = new Memo(); }\n // If we reach the maximum depth, serialize whatever has left\n if (depth === 0) {\n return serializeValue(value);\n }\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // If value implements `toJSON` method, call it and return early\n if (value !== null && value !== undefined && typeof value.toJSON === 'function') {\n return value.toJSON();\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further\n var normalized = normalizeValue(value, key);\n if (isPrimitive(normalized)) {\n return normalized;\n }\n // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself\n var source = getWalkSource(value);\n // Create an accumulator that will act as a parent for all future itterations of that branch\n var acc = Array.isArray(value) ? [] : {};\n // If we already walked that branch, bail out, as it's circular reference\n if (memo.memoize(value)) {\n return '[Circular ~]';\n }\n // Walk all keys of the source\n for (var innerKey in source) {\n // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n if (!Object.prototype.hasOwnProperty.call(source, innerKey)) {\n continue;\n }\n // Recursively walk through all the child nodes\n acc[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo);\n }\n // Once walked through all the branches, remove the parent from memo storage\n memo.unmemoize(value);\n // Return accumulated values\n return acc;\n}\n/**\n * normalize()\n *\n * - Creates a copy to prevent original input mutation\n * - Skip non-enumerablers\n * - Calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializeable values (undefined/NaN/Functions) to serializable format\n * - Translates known global objects/Classes to a string representations\n * - Takes care of Error objects serialization\n * - Optionally limit depth of final output\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function normalize(input, depth) {\n try {\n return JSON.parse(JSON.stringify(input, function (key, value) { return walk(key, value, depth); }));\n }\n catch (_oO) {\n return '**non-serializable**';\n }\n}\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function extractExceptionKeysForMessage(exception, maxLength) {\n if (maxLength === void 0) { maxLength = 40; }\n var keys = Object.keys(getWalkSource(exception));\n keys.sort();\n if (!keys.length) {\n return '[object has no keys]';\n }\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n var serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n return '';\n}\n/**\n * Given any object, return the new object with removed keys that value was `undefined`.\n * Works recursively on objects and arrays.\n */\nexport function dropUndefinedKeys(val) {\n var e_1, _a;\n if (isPlainObject(val)) {\n var obj = val;\n var rv = {};\n try {\n for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var key = _c.value;\n if (typeof obj[key] !== 'undefined') {\n rv[key] = dropUndefinedKeys(obj[key]);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return rv;\n }\n if (Array.isArray(val)) {\n return val.map(dropUndefinedKeys);\n }\n return val;\n}\n//# sourceMappingURL=object.js.map","module.exports = (__webpack_require__(7))(26);","export enum Lang {\n\tNone,\n\tEn,\n\tRu,\n\tDe,\n\tEs,\n\tFr, \n\tIt\n}","import { ActionCreatorsMapObject, Reducer } from 'redux';\n\nimport { request } from '@common/react/components/Api';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BaseApplicationState, BaseAppThunkAction } from '@common/react/store/index';\nimport { Lang } from '@common/typescript/objects/Lang';\n\nexport interface LoginState {\n\tisLoading: boolean;\n\tsession: string;\n\tuser: TUser | null;\n\tmessage: string;\n\ttransmuted: boolean;\n\tdebug: boolean;\n\tlang: Lang;\n\tuserAgent: string;\n}\n\nfunction getDefaultState(): LoginState {\n\treturn {\n\t\tisLoading: false,\n\t\tsession: '',\n\t\tuser: null,\n\t\tmessage: '',\n\t\ttransmuted: false,\n\t\tdebug: false,\n\t\tlang: Lang.En,\n\t\tuserAgent: '',\n\t};\n}\n\nexport enum TypeKeys {\n\tREQUESTLOGIN = 'REQUEST_LOGIN',\n\tRECEIVELOGIN = 'RECEIVE_LOGIN',\n\tREQUESTLOGOFF = 'REQUEST_LOGOFF',\n\tRECEIVELOGOFF = 'RECEIVE_LOGOFF',\n\tSETSESSION = 'SET_SESSION',\n\tUPDATEUSER = 'UPDATE_USER',\n\tCLEARSTATE = 'CLEAR_STATE',\n\tSETLANG = 'SET_LANG',\n}\n\ninterface RequestLoginAction {\n\ttype: TypeKeys.REQUESTLOGIN;\n}\n\ninterface ReceiveLoginAction {\n\ttype: TypeKeys.RECEIVELOGIN;\n\tuser: TUser | null;\n\tsession: string;\n\tmessage: string;\n\ttransmuted: boolean;\n\tdebug: boolean;\n\tlang: Lang;\n\tuserAgent: string;\n}\n\ninterface RequestLogoffAction {\n\ttype: TypeKeys.REQUESTLOGOFF;\n}\n\ninterface ReceiveLogoffAction {\n\ttype: TypeKeys.RECEIVELOGOFF;\n\tsession: string;\n}\n\ninterface SetSessionAction {\n\ttype: TypeKeys.SETSESSION;\n\tsession: string;\n}\n\ninterface SetLangAction {\n\ttype: TypeKeys.SETLANG;\n\tlang: Lang;\n}\n\ninterface UpdateUserAction {\n\ttype: TypeKeys.UPDATEUSER;\n\tdata: Partial;\n}\n\ninterface ClearStateAction {\n\ttype: TypeKeys.CLEARSTATE;\n}\n\nexport type KnownUserAction =\n\tRequestLoginAction |\n\tReceiveLoginAction |\n\tRequestLogoffAction |\n\tReceiveLogoffAction |\n\tSetSessionAction |\n\tUpdateUserAction |\n\tClearStateAction |\n\tSetLangAction;\n\nexport interface LoginActionCreators<\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState\n> extends ActionCreatorsMapObject<\n\tBaseAppThunkAction, TUser, TApplicationState>\n> {\n\tlogin: (login: string, password: string) => BaseAppThunkAction, TUser, TApplicationState>;\n\tlogoff: (clearState?: boolean, callback?: () => void) => BaseAppThunkAction, TUser, TApplicationState>;\n\tupdateUser: (data: Partial) => BaseAppThunkAction, TUser, TApplicationState>;\n\tsetUserAndSession: (user: TUser, session: string) => BaseAppThunkAction, TUser, TApplicationState>;\n\tsetLang: (lang: Lang) => BaseAppThunkAction, TUser, TApplicationState>;\n}\n\nexport function getActionCreators<\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState\n>(): LoginActionCreators {\n\treturn {\n\t\tlogin: (login: string, password: string): BaseAppThunkAction, TUser, TApplicationState> => (dispatch, getState) => {\n\t\t\tif (!getState().login.isLoading) {\n\t\t\t\trequest('auth', {\n\t\t\t\t\tlogin,\n\t\t\t\t\tpassword,\n\t\t\t\t\tpath: '/login',\n\t\t\t\t}).then((data) => {\n\t\t\t\t\tif (data.initObject) {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.RECEIVELOGIN,\n\t\t\t\t\t\t\tuser: data.initObject.user,\n\t\t\t\t\t\t\tsession: data.initObject.guid,\n\t\t\t\t\t\t\tmessage: '',\n\t\t\t\t\t\t\ttransmuted: data.initObject.transmuted,\n\t\t\t\t\t\t\tdebug: data.initObject.debug,\n\t\t\t\t\t\t\tlang: data.initObject.lang,\n\t\t\t\t\t\t\tuserAgent: data.initObject.userAgent,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}).catch((data) => {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: TypeKeys.RECEIVELOGIN,\n\t\t\t\t\t\tuser: null,\n\t\t\t\t\t\tsession: getState().login.session,\n\t\t\t\t\t\tmessage: data,\n\t\t\t\t\t\ttransmuted: false,\n\t\t\t\t\t\tdebug: false,\n\t\t\t\t\t\tlang: Lang.En,\n\t\t\t\t\t\tuserAgent: '',\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\tdispatch({ type: TypeKeys.REQUESTLOGIN });\n\t\t\t}\n\t\t},\n\t\tlogoff: (\n\t\t\tclearState?: boolean,\n\t\t\tcallback?: () => void,\n\t\t): BaseAppThunkAction, TUser, TApplicationState> => (dispatch, getState) => {\n\t\t\tif (!getState().login.isLoading) {\n\t\t\t\trequest('logoff', {}).then((data) => {\n\t\t\t\t\tif (data.updatedSession) {\n\t\t\t\t\t\tdispatch({ type: TypeKeys.RECEIVELOGOFF, session: data.updatedSession.guid });\n\t\t\t\t\t}\n\n\t\t\t\t\tif (callback) callback();\n\n\t\t\t\t\tif (clearState) {\n\t\t\t\t\t\tdispatch({ type: TypeKeys.CLEARSTATE });\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tdispatch({ type: TypeKeys.REQUESTLOGOFF });\n\t\t\t}\n\t\t},\n\t\tupdateUser: (data: Partial): BaseAppThunkAction, TUser, TApplicationState> => (dispatch) => {\n\t\t\tdispatch({ type: TypeKeys.UPDATEUSER, data });\n\t\t},\n\t\tsetUserAndSession: (user: TUser, session: string): BaseAppThunkAction, TUser, TApplicationState> =>\n\t\t\t(dispatch, getState) => {\n\t\t\t\tconst state = getState().login;\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.RECEIVELOGIN,\n\t\t\t\t\tuser,\n\t\t\t\t\tsession,\n\t\t\t\t\tmessage: '',\n\t\t\t\t\ttransmuted: false,\n\t\t\t\t\tdebug: state.debug || false,\n\t\t\t\t\tlang: state.lang,\n\t\t\t\t\tuserAgent: state.userAgent,\n\t\t\t\t});\n\t\t\t},\n\t\tsetLang: (lang: Lang): BaseAppThunkAction, TUser, TApplicationState> => (dispatch) => {\n\t\t\trequest('language', { lang }).then(() => {\n\t\t\t\tdispatch({ type: TypeKeys.SETLANG, lang });\n\t\t\t});\n\t\t},\n\t};\n}\n\nexport function getReducer(): Reducer, KnownUserAction> {\n\treturn (state: LoginState = getDefaultState(), action: KnownUserAction) => {\n\t\tswitch (action.type) {\n\t\tcase TypeKeys.REQUESTLOGIN:\n\t\tcase TypeKeys.REQUESTLOGOFF:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisLoading: true,\n\t\t\t};\n\n\t\tcase TypeKeys.RECEIVELOGIN:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisLoading: false,\n\t\t\t\tuser: action.user,\n\t\t\t\tsession: action.session,\n\t\t\t\tmessage: action.message,\n\t\t\t\ttransmuted: action.transmuted,\n\t\t\t\tdebug: action.debug,\n\t\t\t\tlang: action.lang,\n\t\t\t\tuserAgent: action.userAgent,\n\t\t\t};\n\n\t\tcase TypeKeys.RECEIVELOGOFF:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisLoading: false,\n\t\t\t\tuser: null,\n\t\t\t\tsession: action.session,\n\t\t\t\ttransmuted: false,\n\t\t\t};\n\n\t\tcase TypeKeys.SETSESSION:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tsession: action.session,\n\t\t\t};\n\n\t\tcase TypeKeys.SETLANG:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tlang: action.lang,\n\t\t\t};\n\n\t\tcase TypeKeys.CLEARSTATE:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tuser: null,\n\t\t\t\tisLoading: false,\n\t\t\t\tmessage: '',\n\t\t\t\tsession: '',\n\t\t\t\ttransmuted: false,\n\t\t\t};\n\n\t\tcase TypeKeys.UPDATEUSER:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tuser: {\n\t\t\t\t\t...(state.user),\n\t\t\t\t\t...action.data,\n\t\t\t\t} as TUser,\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn state;\n\t\t}\n\t};\n}\n","import { WithDeleted } from '@common/typescript/objects/WithDeleted';\n\nexport enum TriggerEvent\n{\n\tOnWillEnter = 0, // Trigger will be fired before entering current status\n\tOnWillLeave = 1, // Trigger will be fired before leaving current status\n}\n\nexport enum TriggerAction\n{\n\tActualWeightPopup = 0, // Show popup with request of actual weight,\n\tUrnPopup = 1, // Show popup with request of urn (urn category, really),\n\tTrackingPopup = 2, // Show popup with request of tracking id,\n\tInternalIdPopup = 3, // Show popup with request of internal id,\n\tAshesWeightPopup = 4, // Show popup with request of ashes weight,\n\tProductPopup = 5,\n}\n\nexport interface TriggerStatus extends WithDeleted {\n\tstatusOrderId: number;\n\tevent: TriggerEvent;\n\taction: TriggerAction;\n}\n","module.exports = (__webpack_require__(7))(1256);","import * as React from 'react';\n\nimport clsx from 'clsx';\n\nexport enum AlertType {\n\tPrimary = 0,\n\tSecondary = 1,\n\tSuccess = 2,\n\tDanger = 3,\n\tWarning = 4,\n\tInfo = 5,\n\tLight = 6,\n\tDark = 7,\n}\n\ninterface AlertMessageProps {\n\tmessage?: string | null;\n\n\ttype?: AlertType;\n\tstyle?: React.CSSProperties;\n\tclassName?: string;\n}\n\nfunction toClassName(type: AlertType): string {\n\tswitch (type) {\n\tcase AlertType.Primary: return 'alert-primary';\n\tcase AlertType.Secondary: return 'alert-secondary';\n\tcase AlertType.Success: return 'alert-success';\n\tcase AlertType.Danger: return 'alert-danger';\n\tcase AlertType.Warning: return 'alert-warning';\n\tcase AlertType.Info: return 'alert-info';\n\tcase AlertType.Light: return 'alert-light';\n\tcase AlertType.Dark: return 'alert-dark';\n\n\tdefault: return '';\n\t}\n}\n\nexport const AlertMessage: React.FC = (props: AlertMessageProps) => {\n\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\tconst className = clsx('alert', toClassName(props.type!), props.className);\n\n\treturn props.message ?
{props.message}
: null;\n};\n\nAlertMessage.defaultProps = {\n\tmessage: null,\n\ttype: AlertType.Danger,\n};\n","import * as React from 'react';\n\nexport interface ModalControls {\n\tstate: boolean; // True - open, false - closed\n\tsetState: (value: boolean) => void;\n\n\topen: () => void;\n\tclose: () => void;\n}\n\n/**\n * Standard Modal control params - state and change state functions\n * @param {boolean} defaultOpen\n * @returns {ModalControls}\n */\nexport function useModal(defaultOpen: boolean): ModalControls {\n\tconst [state, setState] = React.useState(() => defaultOpen);\n\n\treturn React.useMemo(() => ({\n\t\tstate,\n\t\tsetState,\n\n\t\topen: () => setState(true),\n\t\tclose: () => setState(false),\n\t}), [state]);\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { toWords } from '@app/components/Utils/Utils';\n\nexport interface SpecialService extends WithDeleted {\n\tname: string;\n\tdescription: string;\n\tcrematoryId: Nullable;\n\tparent: Nullable;\n\tparentId: Nullable;\n\tspecialServiceType: Nullable;\n\n\thasNote: boolean;\n\tdefaultNote: string;\n}\n\nexport interface SpecialServiceSelectInfo extends WithId {\n\tname: string;\n}\n\nexport enum SpecialServiceType {\n\tService = 0,\n\tKit = 1,\n\tKitService = 2,\n}\n\nconst group: Array = [\n\tSpecialServiceType.Kit,\n];\n\nexport function isGroup(serviceType?: Nullable): boolean {\n\tif (serviceType === null || serviceType === undefined) return false;\n\n\treturn group.includes(serviceType);\n}\n\nexport function getName(serviceType: SpecialServiceType): string {\n\treturn toWords(SpecialServiceType[serviceType]);\n}\n","import { UserRole } from '@app/objects/User';\n\nexport class RoleManager {\n\tprivate readonly _role: UserRole;\n\n\tstatic for(role: UserRole): RoleManager {\n\t\treturn new RoleManager(role);\n\t}\n\n\tpublic constructor(role: UserRole) {\n\t\tthis._role = role;\n\t}\n\n\tpublic isClinicGroup(): boolean {\n\t\treturn this._role === UserRole.ClinicUser || this._role === UserRole.ClinicManager;\n\t}\n\n\tpublic isCrematoryGroup(): boolean {\n\t\treturn this._role === UserRole.Crematory || this._role === UserRole.CrematoryUser;\n\t}\n\n\tpublic isAdmin(): boolean {\n\t\treturn this._role === UserRole.Admin;\n\t}\n\n\tpublic isCrematory(): boolean {\n\t\treturn this._role === UserRole.Crematory;\n\t}\n\n\tpublic isCrematoryUser(): boolean {\n\t\treturn this._role === UserRole.CrematoryUser;\n\t}\n\n\tpublic isClinicManager(): boolean {\n\t\treturn this._role === UserRole.ClinicManager;\n\t}\n\n\tpublic isClinicUser(): boolean {\n\t\treturn this._role === UserRole.ClinicUser;\n\t}\n\n\tpublic isSystemService(): boolean {\n\t\treturn this._role === UserRole.SystemService;\n\t}\n\n\tpublic isIntegrationService(): boolean {\n\t\treturn this._role === UserRole.IntegrationService;\n\t}\n\n\tpublic is(oneOf: Array) {\n\t\treturn oneOf.some((item: UserRole) => this._role === item);\n\t}\n}\n","import React from 'react';\n\nimport Table, { ColumnProps } from 'antd/lib/table';\n\nimport { MobileCell } from '@common/react/components/Pages/ItemsPage';\nimport TableBuilder from '@common/react/utils/Helpers/TableBuilder';\n\nimport { PetPrice } from '@app/objects/Pet';\nimport { getUserName } from '@app/objects/User';\n\ninterface KitServiceTableProps {\n\tserviceKits: Array;\n}\n\nconst columns: Array> = TableBuilder.shape()\n\t.addColumn({\n\t\ttitle: 'Name',\n\t\tdataIndex: 'name',\n\t\trender: (text: string) => {text || '-'},\n\t})\n\t.addColumn({\n\t\ttitle: Status,\n\t\tdataIndex: 'done',\n\t\trender: (value: boolean) => (value ? 'Completed' : 'Not completed'),\n\t})\n\t.addColumn({\n\t\talign: 'left',\n\t\ttitle: Changed by,\n\t\trender: (_, record: PetPrice) => {\n\t\t\tif (record.editorId === null) return '-';\n\t\t\tif (record.editor === null) return 'Unknown user';\n\n\t\t\treturn getUserName(record.editor);\n\t\t},\n\t})\n\t.build();\n\nexport const KitServiceTable: React.FC = ({ serviceKits }: KitServiceTableProps) => {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n};\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport Table, { ColumnProps } from 'antd/lib/table';\n\nimport {\n\tField, FieldProps, useFormikContext,\n} from 'formik';\nimport { DeleteOutlined, PlusOutlined } from '@ant-design/icons';\nimport Button from 'antd/lib/button';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport TableBuilder from '@common/react/utils/Helpers/TableBuilder';\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\n\nimport { Price } from '@app/objects/Price';\nimport { UserRole } from '@app/objects/User';\nimport { ApplicationState } from '@app/store';\nimport { useModal } from '@app/hooks/Editors/useModal';\nimport { getUserName } from '@app/components/Utils/Utils';\nimport { PetPrice, filterServices } from '@app/objects/Pet';\nimport { SpecialServiceType } from '@app/objects/SpecialService';\nimport { NumberField } from '@app/components/UI/NumberField/NumberField';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { ServiceIndexProvider } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/ServiceIndexProvider';\nimport { SpecialServiceDialog, getPetPrice } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/SpecialServiceDialog';\nimport { KitServiceTable } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/KitServiceTable';\n\nimport '@app/scss/ui/components/tables.scss';\nimport '@app/scss/ui/modals.scss';\nimport '@app/scss/ui/filters.scss';\n\nexport interface SpecialServiceActions {\n\tadd: (items: Array) => void;\n\tupdate: (id: string, value: Partial) => void;\n\tdelete: (id: string) => void;\n}\n\ninterface SpecialServiceListProps {\n\tprices: Array;\n\tactions: SpecialServiceActions;\n\tloading: boolean;\n}\n\ninterface ProductPriceValues {\n\tvalue: number;\n\textra: number;\n}\n\nexport function getPriceValue(price: Price, count: number = 1): ProductPriceValues {\n\tconst batchCount: number = price.batchCount ?? 0;\n\tconst batchPrice: number = price.batchPrice ?? 0;\n\tconst perItem: number = price.value ?? 0;\n\n\tconst value = batchPrice + Math.max(count - batchCount, 0) * perItem;\n\tconst extra = count <= batchCount ? 0 : (count - batchCount) * perItem;\n\n\treturn {\n\t\tvalue,\n\t\textra,\n\t};\n}\n\ninterface ServiceItemError {\n\tcount: string;\n\tvalue: string;\n}\n\n// Pet services list columns\nfunction getColumns(\n\tactions: SpecialServiceActions,\n\tselection: Array,\n\tonChange: (value: Array) => void,\n): Array> {\n\treturn TableBuilder.shape()\n\t\t.addColumn({\n\t\t\ttitle: Count,\n\t\t\twidth: '150px',\n\t\t\tdataIndex: 'count',\n\t\t\trender: (_, record: PetPrice) => (\n\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\t(index: Nullable) => {\n\t\t\t\t\t\t\tif (index === null) return
-
;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t({ field, form, meta }) => {\n\t\t\t\t\t\t\t\t\t\t\tconst error = form.errors.services?.[index] as ServiceItemError | undefined;\n\t\t\t\t\t\t\t\t\t\t\tconst touched = form.touched.services?.[index]?.value;\n\t\t\t\t\t\t\t\t\t\t\tconst cls = Boolean(form.submitCount) && error && touched && error.value\n\t\t\t\t\t\t\t\t\t\t\t\t? 'table-cell-error'\n\t\t\t\t\t\t\t\t\t\t\t\t: '';\n\n\t\t\t\t\t\t\t\t\t\t\tconst onChange = (count: number) => {\n\t\t\t\t\t\t\t\t\t\t\t\tif (!record.price) return;\n\n\t\t\t\t\t\t\t\t\t\t\t\tconst currentValue = getPriceValue(record.price, count);\n\n\t\t\t\t\t\t\t\t\t\t\t\tactions.update(record.clientId, {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcount,\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: currentValue.value,\n\t\t\t\t\t\t\t\t\t\t\t\t\textra: currentValue.extra,\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t),\n\t\t})\n\t\t.addColumn({\n\t\t\ttitle: Name,\n\t\t\tdataIndex: 'name',\n\t\t})\n\t\t.addColumn({\n\t\t\ttitle: Notes,\n\t\t\tdataIndex: 'note',\n\t\t\trender: (_, record: PetPrice) => (\n\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\t(index: Nullable) => {\n\t\t\t\t\t\t\tif (index === null) return
-
;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t({ field, form, meta }) => (\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t),\n\t\t})\n\t\t.addColumn({\n\t\t\ttitle: Cost,\n\t\t\twidth: '150px',\n\t\t\tdataIndex: 'value',\n\t\t\trender: (_, record: PetPrice) => (\n\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\t(index: Nullable) => {\n\t\t\t\t\t\t\tif (index === null) return
-
;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{({ field, form, meta }: FieldProps) => {\n\t\t\t\t\t\t\t\t\t\tconst error = form.errors.services?.[index] as ServiceItemError | undefined;\n\t\t\t\t\t\t\t\t\t\tconst touched = form.touched.services?.[index]?.value;\n\t\t\t\t\t\t\t\t\t\tconst cls = Boolean(form.submitCount) && error && touched && error.value\n\t\t\t\t\t\t\t\t\t\t\t? 'table-cell-error'\n\t\t\t\t\t\t\t\t\t\t\t: '';\n\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t actions.update(record.clientId, { value })}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={record.done || record.completedCount > 0}\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t
\n\t\t\t),\n\t\t})\n\t\t.addColumn({\n\t\t\ttitle: Status,\n\t\t\tdataIndex: 'done',\n\t\t\trender: (value: boolean) => (value ? 'Completed' : 'Not completed'),\n\t\t})\n\t\t.addColumn({\n\t\t\talign: 'left',\n\t\t\ttitle: Changed by,\n\t\t\trender: (_, record: PetPrice) => {\n\t\t\t\tif (record.editorId === null) return '-';\n\t\t\t\tif (record.editor === null) return 'Unknown user';\n\n\t\t\t\treturn getUserName(record.editor);\n\t\t\t},\n\t\t})\n\t\t.addColumn({\n\t\t\talign: 'right',\n\t\t\ttitle: '',\n\t\t\trender: (_, record: PetPrice) => {\n\t\t\t\tif (record.done || record.completedCount > 0) return null;\n\n\t\t\t\treturn (\n\t\t\t\t\t\n\t\t\t\t\t\t{({ field, form }) => (\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tconst values = field.value.map((q: PetPrice) => {\n\t\t\t\t\t\t\t\t\t\tif (q.clientId === record.clientId && !(q.done || q.completedCount > 0)) {\n\t\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t\t...q,\n\t\t\t\t\t\t\t\t\t\t\t\tremoved: true,\n\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\treturn q;\n\t\t\t\t\t\t\t\t\t}).filter((q: PetPrice) => !(q.removed && q.id < 0));\n\n\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name, values);\n\t\t\t\t\t\t\t\t\tonChange(selection.filter((s) => s !== record.priceId));\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\ticon={}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t);\n\t\t\t},\n\t\t})\n\t\t.build();\n}\n\nfunction pickSelection(items?: Array): Array {\n\tif (!items?.length) return [];\n\n\treturn items.filter((item: PetPrice) => !item.removed).map((item: PetPrice) => item.priceId);\n}\n\nfunction getKits(record: PetPrice, items: Array, prices: Array): Array {\n\tif (record.id > 0) return items.filter((i) => i.price?.specialService?.parentId === record.price?.specialServiceId);\n\n\treturn getPetPrice(prices.filter((i) => i.specialService?.parentId === record.price?.specialServiceId), record.petId);\n}\n\nexport const expendedProps = (items: Array, prices: Array) => ({\n\texpandedRowRender: (record: PetPrice) => ,\n\trowExpandable: (record: PetPrice) => record.price?.specialService?.specialServiceType === SpecialServiceType.Kit,\n});\n\n// eslint-disable-next-line sonarjs/cognitive-complexity\nexport const SpecialServiceList: React.FC = (props: SpecialServiceListProps) => {\n\tconst { values } = useFormikContext();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst modal = useModal(false);\n\n\tconst items = React.useMemo(() => filterServices(values.services ?? []), [values.services]);\n\tconst [selection, setSelection] = React.useState>(pickSelection(items));\n\n\tReact.useEffect(() => {\n\t\tsetSelection(pickSelection(items));\n\t}, [items]);\n\n\tif (user?.role !== UserRole.Crematory && values.crematoryId < 1) return Crematory should be selected;\n\n\treturn (\n\t\t<>\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tAdd Service\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t !q.removed && !!q.price?.specialServiceId)}\n\t\t\t\tsize=\"small\"\n\t\t\t\trowKey=\"clientId\"\n\t\t\t\tpagination={false}\n\t\t\t\tloading={props.loading}\n\t\t\t\t{...expendedProps(values.services?.filter((q: PetPrice) => !q.removed) ?? [], props.prices)}\n\t\t\t/>\n\n\t\t\t\n\t\t\n\t);\n};\n","import { createContext } from 'react';\nvar IconContext = /*#__PURE__*/createContext({});\nexport default IconContext;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { generate as generateColor } from '@ant-design/colors';\nimport React, { useContext, useEffect } from 'react';\nimport warn from \"rc-util/es/warning\";\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport IconContext from './components/Context';\nimport camelCase from 'lodash/camelCase';\nexport function warning(valid, message) {\n warn(valid, \"[@ant-design/icons] \".concat(message));\n}\nexport function isIconDefinition(target) {\n return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');\n}\nexport function normalizeAttrs() {\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return Object.keys(attrs).reduce(function (acc, key) {\n var val = attrs[key];\n switch (key) {\n case 'class':\n acc.className = val;\n delete acc.class;\n break;\n default:\n delete acc[key];\n acc[camelCase(key)] = val;\n }\n return acc;\n }, {});\n}\nexport function generate(node, key, rootProps) {\n if (!rootProps) {\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n }\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread(_objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n}\nexport function getSecondaryColor(primaryColor) {\n // choose the second color\n return generateColor(primaryColor)[0];\n}\nexport function normalizeTwoToneColors(twoToneColor) {\n if (!twoToneColor) {\n return [];\n }\n return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];\n}\n// These props make sure that the SVG behaviours like general text.\n// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\nexport var svgBaseProps = {\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true',\n focusable: 'false'\n};\nexport var iconStyles = \"\\n.anticon {\\n display: inline-flex;\\n alignItems: center;\\n color: inherit;\\n font-style: normal;\\n line-height: 0;\\n text-align: center;\\n text-transform: none;\\n vertical-align: -0.125em;\\n text-rendering: optimizeLegibility;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.anticon > * {\\n line-height: 1;\\n}\\n\\n.anticon svg {\\n display: inline-block;\\n}\\n\\n.anticon::before {\\n display: none;\\n}\\n\\n.anticon .anticon-icon {\\n display: block;\\n}\\n\\n.anticon[tabindex] {\\n cursor: pointer;\\n}\\n\\n.anticon-spin::before,\\n.anticon-spin {\\n display: inline-block;\\n -webkit-animation: loadingCircle 1s infinite linear;\\n animation: loadingCircle 1s infinite linear;\\n}\\n\\n@-webkit-keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\";\nexport var useInsertStyles = function useInsertStyles() {\n var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;\n var _useContext = useContext(IconContext),\n csp = _useContext.csp;\n useEffect(function () {\n updateCSS(styleStr, '@ant-design-icons', {\n prepend: true,\n csp: csp\n });\n }, []);\n};","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nvar _excluded = [\"icon\", \"className\", \"onClick\", \"style\", \"primaryColor\", \"secondaryColor\"];\nimport { generate, getSecondaryColor, isIconDefinition, warning, useInsertStyles } from '../utils';\nvar twoToneColorPalette = {\n primaryColor: '#333',\n secondaryColor: '#E6E6E6',\n calculated: false\n};\nfunction setTwoToneColors(_ref) {\n var primaryColor = _ref.primaryColor,\n secondaryColor = _ref.secondaryColor;\n twoToneColorPalette.primaryColor = primaryColor;\n twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);\n twoToneColorPalette.calculated = !!secondaryColor;\n}\nfunction getTwoToneColors() {\n return _objectSpread({}, twoToneColorPalette);\n}\nvar IconBase = function IconBase(props) {\n var icon = props.icon,\n className = props.className,\n onClick = props.onClick,\n style = props.style,\n primaryColor = props.primaryColor,\n secondaryColor = props.secondaryColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var colors = twoToneColorPalette;\n if (primaryColor) {\n colors = {\n primaryColor: primaryColor,\n secondaryColor: secondaryColor || getSecondaryColor(primaryColor)\n };\n }\n useInsertStyles();\n warning(isIconDefinition(icon), \"icon should be icon definiton, but got \".concat(icon));\n if (!isIconDefinition(icon)) {\n return null;\n }\n var target = icon;\n if (target && typeof target.icon === 'function') {\n target = _objectSpread(_objectSpread({}, target), {}, {\n icon: target.icon(colors.primaryColor, colors.secondaryColor)\n });\n }\n return generate(target.icon, \"svg-\".concat(target.name), _objectSpread({\n className: className,\n onClick: onClick,\n style: style,\n 'data-icon': target.name,\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true'\n }, restProps));\n};\nIconBase.displayName = 'IconReact';\nIconBase.getTwoToneColors = getTwoToneColors;\nIconBase.setTwoToneColors = setTwoToneColors;\nexport default IconBase;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport ReactIcon from './IconBase';\nimport { normalizeTwoToneColors } from '../utils';\nexport function setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return ReactIcon.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\nexport function getTwoToneColor() {\n var colors = ReactIcon.getTwoToneColors();\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n return [colors.primaryColor, colors.secondaryColor];\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"icon\", \"spin\", \"rotate\", \"tabIndex\", \"onClick\", \"twoToneColor\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport Context from './Context';\nimport ReactIcon from './IconBase';\nimport { getTwoToneColor, setTwoToneColor } from './twoTonePrimaryColor';\nimport { normalizeTwoToneColors } from '../utils';\n// Initial setting\n// should move it to antd main repo?\nsetTwoToneColor('#1890ff');\nvar Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n icon = props.icon,\n spin = props.spin,\n rotate = props.rotate,\n tabIndex = props.tabIndex,\n onClick = props.onClick,\n twoToneColor = props.twoToneColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var _React$useContext = React.useContext(Context),\n _React$useContext$pre = _React$useContext.prefixCls,\n prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,\n rootClassName = _React$useContext.rootClassName;\n var classString = classNames(rootClassName, prefixCls, _defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(icon.name), !!icon.name), \"\".concat(prefixCls, \"-spin\"), !!spin || icon.name === 'loading'), className);\n var iconTabIndex = tabIndex;\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1;\n }\n var svgStyle = rotate ? {\n msTransform: \"rotate(\".concat(rotate, \"deg)\"),\n transform: \"rotate(\".concat(rotate, \"deg)\")\n } : undefined;\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return /*#__PURE__*/React.createElement(\"span\", _objectSpread(_objectSpread({\n role: \"img\",\n \"aria-label\": icon.name\n }, restProps), {}, {\n ref: ref,\n tabIndex: iconTabIndex,\n onClick: onClick,\n className: classString\n }), /*#__PURE__*/React.createElement(ReactIcon, {\n icon: icon,\n primaryColor: primaryColor,\n secondaryColor: secondaryColor,\n style: svgStyle\n }));\n});\nIcon.displayName = 'AntdIcon';\nIcon.getTwoToneColor = getTwoToneColor;\nIcon.setTwoToneColor = setTwoToneColor;\nexport default Icon;","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Country } from '@app/objects/Country';\n\ntype MailKey = 'zip' | 'postal' | 'mail-default';\ntype RegionKey = 'state' | 'province' | 'region-default';\nexport type TaxKey = 'tax' | 'hst' | 'tax-default' | 'gst';\n\nexport interface AddressDetails {\n\tcountry: string;\n\n\tmailKey: MailKey;\n\tregionKey: RegionKey;\n\ttaxKey: TaxKey;\n\n\twithMail: boolean;\n\twithRegion: boolean;\n}\n\ninterface DetailsProvider {\n\t(country: Nullable | undefined): AddressDetails;\n\t(country: Nullable | undefined): AddressDetails;\n}\n\nexport interface AddressService {\n\treadonly provide: DetailsProvider;\n}\n\nfunction getCaption(country: Nullable | Nullable | undefined): string {\n\tif (!country) return 'unknown';\n\n\treturn typeof country === 'string' ? country : country.alpha3;\n}\n\nfunction provideAddress(country: Nullable | Nullable | undefined): AddressDetails {\n\tconst caption = getCaption(country);\n\n\tif (caption === 'CAN') {\n\t\treturn {\n\t\t\tcountry: caption,\n\n\t\t\tmailKey: 'postal',\n\t\t\tregionKey: 'province',\n\t\t\ttaxKey: 'hst',\n\n\t\t\twithMail: true,\n\t\t\twithRegion: true,\n\t\t};\n\t}\n\n\tif (caption === 'USA') {\n\t\treturn {\n\t\t\tcountry: caption,\n\n\t\t\tmailKey: 'zip',\n\t\t\tregionKey: 'state',\n\t\t\ttaxKey: 'tax',\n\n\t\t\twithMail: true,\n\t\t\twithRegion: true,\n\t\t};\n\t}\n\n\tif (caption === 'AUS') {\n\t\treturn {\n\t\t\tcountry: caption,\n\n\t\t\tmailKey: 'zip',\n\t\t\tregionKey: 'state',\n\t\t\ttaxKey: 'gst',\n\n\t\t\twithMail: true,\n\t\t\twithRegion: true,\n\t\t};\n\t}\n\n\tif (caption === 'NZL') {\n\t\treturn {\n\t\t\tcountry: caption,\n\n\t\t\tmailKey: 'zip',\n\t\t\tregionKey: 'state',\n\t\t\ttaxKey: 'gst',\n\n\t\t\twithMail: true,\n\t\t\twithRegion: true,\n\t\t};\n\t}\n\n\tif (caption === 'GBR') {\n\t\treturn {\n\t\t\tcountry: caption,\n\n\t\t\tmailKey: 'zip',\n\t\t\tregionKey: 'state',\n\t\t\ttaxKey: 'tax',\n\n\t\t\twithMail: true,\n\t\t\twithRegion: false,\n\t\t};\n\t}\n\n\treturn {\n\t\tcountry: caption,\n\n\t\tmailKey: 'mail-default',\n\t\tregionKey: 'region-default',\n\t\ttaxKey: 'tax-default',\n\n\t\twithMail: false,\n\t\twithRegion: false,\n\t};\n}\n\nexport const addressService: AddressService = {\n\tprovide: provideAddress,\n};\n","import { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Location } from '@app/objects/Location';\nimport { Crematory } from '@app/objects/Crematory';\n\nimport { WithAddress } from '@app/objects/WithAddress';\nimport { ClinicCrematory } from '@app/objects/ClinicCrematory';\nimport { User } from '@app/objects/User';\nimport { Language } from '@app/objects/Language';\nimport { Country } from '@app/objects/Country';\nimport { DeliveryType, ServiceType } from '@app/objects/Pet';\nimport { State } from '@app/objects/State';\n\nexport enum Customer {\n\tAll = -1,\n\tNonCustomer = 0,\n\tCustomer = 1,\n}\n\nexport enum DayOfWeek {\n\tSunday = 0,\n\tMonday = 1,\n\tTuesday = 2,\n\tWednesday = 3,\n\tThursday = 4,\n\tFriday = 5,\n\tSaturday = 6\n}\n\nexport interface Clinic extends WithDeleted, WithAddress {\n\tname: string;\n\n\tcontactFirstName: string;\n\tcontactLastName: string;\n\n\temail: string;\n\tphone: string;\n\n\tnote: string;\n\n\tlocations: Array;\n\tcrematories?: Array;\n\tclinicUsers: Array;\n\tclinicCrematories: Array;\n\n\tlanguageId: number;\n\tlanguage: Nullable;\n\n\tcountryId: number;\n\tcountry: Nullable;\n\n\tdateFormat: string;\n\ttimeFormat: string;\n\n\tcanPutOnRush: boolean;\n\tcanPutOnHold: boolean;\n\tcanSetDeliveryType: boolean;\n\tdefaultPrivateDeliveryType: DeliveryType;\n\tdefaultSemiPrivateDeliveryType: DeliveryType;\n\tdefaultCommunalDeliveryType: DeliveryType;\n\n\tclinicType: Nullable;\n\tclinicTypeId: Nullable;\n}\n\nexport interface ClinicListInfo extends WithId {\n\tname: string;\n\tcontactFirstName: string;\n\tcontactLastName: string;\n\tstreetAddress: string;\n\tstreetAddress2: string;\n\tcity: string;\n\tzip: string;\n\tcrematories: Array;\n\tcountryId?: number;\n\n\tstate: Nullable;\n\tstateId: Nullable;\n}\n\nexport interface ClinicRouteView extends WithId, WithAddress {\n\tname: string;\n\tcountryId: Nullable;\n\tlocationCount: number;\n}\n\nexport interface ClinicSelectInfo extends WithId {\n\tname: string;\n\tcountryId: number;\n\tisCustomer: boolean;\n\n\tdefaultPrivateDeliveryType: DeliveryType;\n\tdefaultSemiPrivateDeliveryType: DeliveryType;\n\tdefaultCommunalDeliveryType: DeliveryType;\n\tdefaultStorageDeliveryType: DeliveryType;\n}\n\nexport function getDefaultClinic(): Clinic {\n\treturn {\n\t\tid: -1,\n\n\t\tname: '',\n\n\t\tstreetAddress: '',\n\t\tstreetAddress2: '',\n\t\tcity: '',\n\t\tzip: '',\n\n\t\tstate: null,\n\t\tstateId: null,\n\n\t\tcontactFirstName: '',\n\t\tcontactLastName: '',\n\t\temail: '',\n\t\tphone: '',\n\n\t\tclinicUsers: [],\n\t\tclinicCrematories: [],\n\t\tcrematories: [],\n\t\tlocations: [],\n\n\t\tnote: '',\n\n\t\tlanguageId: -1,\n\t\tlanguage: null,\n\n\t\tcountryId: -1,\n\t\tcountry: null,\n\n\t\tdateFormat: 'MM/dd/YYYY',\n\t\ttimeFormat: 'hh:mm a',\n\n\t\tcanPutOnRush: false,\n\t\tcanPutOnHold: false,\n\t\tcanSetDeliveryType: false,\n\t\tdefaultPrivateDeliveryType: DeliveryType.None,\n\t\tdefaultSemiPrivateDeliveryType: DeliveryType.None,\n\t\tdefaultCommunalDeliveryType: DeliveryType.None,\n\n\t\tclinicType: null,\n\t\tclinicTypeId: null,\n\t};\n}\n\nexport interface ClinicDiscount extends WithId {\n\tname: string;\n\tdescription: string;\n\tvalue: number;\n\tserviceType: ServiceType;\n\tappliesTo: ApplyFilter;\n\tclinicId: number;\n\tcrematoryId: number;\n}\n\nexport enum ApplyFilter {\n\tBasePrice = 0,\n\tServicePrice = 1,\n}\n\nexport interface ClinicType extends WithId {\n\tname: string;\n\tdescription: string;\n\tsourceId: Nullable;\n\tcrematoryId: Nullable;\n}\n","// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\nexport var tuple = function tuple() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return args;\n};\nexport var tupleNum = function tupleNum() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return args;\n};","import React from 'react';\n\nimport Typography from 'antd/lib/typography';\n\ninterface ValueDisplayProps {\n\ttitle: string;\n\tvalue?: string;\n\tclassName?: string;\n}\n\nexport const ValueDisplay: React.FC = ({ title, value, className }: ValueDisplayProps) => (\n\t<>\n\t\t{title}\n\t\t
{value}
\n\t\n);\n\nValueDisplay.defaultProps = {\n\tvalue: '-',\n};\n","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Pet, PetPrice } from '@app/objects/Pet';\n\nexport interface FormValues {\n\tservices: Array;\n}\n\nexport interface ExtraProps {\n\tid: number;\n\tcompletedCount: number;\n}\n\nexport interface ExtraArray {\n\tchanged: Array;\n\tunchanged: Array;\n}\n\nexport const getNewServicesArray = (services: Array, values: FormValues): ExtraArray => {\n\tconst changedArray = values.services.map((item: PetPrice) => ({ id: item.id, completedCount: item.completedCount, nodeId: item.nodeId }));\n\tconst changed: Array = [];\n\tconst unchanged: Array = [];\n\n\tservices.forEach((item: PetPrice) => {\n\t\tconst changedItem = changedArray.find((q) => q.id === item.id);\n\t\tif (changedItem.completedCount !== item.completedCount) {\n\t\t\tchanged.push(changedItem);\n\t\t} else {\n\t\t\tunchanged.push(item);\n\t\t}\n\t});\n\n\treturn { changed, unchanged };\n};\n\nexport function getCurrentServices(pet: Pet): Array {\n\tconst status = pet.currentStatus;\n\tconst services = pet.services?.filter((service: PetPrice) => service.price?.specialServiceId) || [];\n\tconst currentIds = status?.specialServicesIds ?? [];\n\n\treturn currentIds.map((id: number) => services.find((service: PetPrice) => service.price?.specialServiceId === id))\n\t\t.filter((service: Nullable) => Boolean(service));\n}\n\nexport function restorePrices(original: Array, updated: Array): Array {\n\tupdated.forEach((q: PetPrice) => {\n\t\tconst value = q;\n\t\tconst item = original.find((i: PetPrice) => i.id === q.id);\n\t\tvalue.price = item.price;\n\t});\n\n\treturn updated;\n}\n","import * as React from 'react';\nimport {\n\tRoute, RouteProps, RouteComponentProps, Redirect,\n} from 'react-router-dom';\nimport { connect } from 'react-redux';\n\nimport { User, UserRole } from '@app/objects/User';\nimport { Title } from '@app/components/UI/Header/Title';\nimport { ApplicationState } from '@app/store';\n\nexport interface InnerRouteProps extends RouteProps {\n\ttitle?: string;\n\tredirectPath?: string;\n\tallowRoles?: Array;\n}\n\ninterface ReduxProps {\n\tuser: User | null;\n}\n\ntype InjectedInnerRouteProps = InnerRouteProps & ReduxProps;\n\nconst InjectedInnerRoute: React.FC = ({\n\tcomponent: Component, user, redirectPath = '/', allowRoles, title, ...rest\n}) => {\n\tconst isAllowed = user && (allowRoles === undefined || allowRoles.indexOf(user.role) > -1);\n\n\tconst Page = React.useCallback(\n\t\t(props: RouteComponentProps) =>\n\t\t\t(Component ? : null),\n\t\t[Component],\n\t);\n\n\tconst RoutedPage = (props: RouteComponentProps) => (isAllowed ? (\n\t\t<>\n\t\t\t\n\t\t\t<Page {...props} />\n\t\t</>\n\t) : <Redirect to={redirectPath} />);\n\n\treturn (\n\t\t<Route\n\t\t\t{...rest}\n\t\t\trender={RoutedPage}\n\t\t/>\n\t);\n};\n\nexport const InnerRoute = connect<ReduxProps, never, InnerRouteProps, ApplicationState>(\n\t(state: ApplicationState) => ({\n\t\tuser: state.login.user,\n\t}),\n)(InjectedInnerRoute);\n","import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { Redirect } from 'react-router-dom';\n\nimport { UserRole } from '@app/objects/User';\nimport { InnerRouteProps, InnerRoute } from '@app/InnerRoute';\nimport { ApplicationState } from '@app/store';\n\ninterface UserDependantProps extends InnerRouteProps {\n\tredirectPath?: string;\n\ttitle?: string;\n\tdependantComponents: {\n\t\t[UserRole.CrematoryUser]?: React.ComponentType;\n\t\t[UserRole.Admin]?: React.ComponentType;\n\t\t[UserRole.ClinicUser]?: React.ComponentType;\n\t\t[UserRole.ClinicManager]?: React.ComponentType;\n\t\t[UserRole.Crematory]?: React.ComponentType;\n\t};\n}\n\ninterface ReduxProps {\n\trole: UserRole | null;\n}\n\ntype InjectedUserDependantRouteProps = UserDependantProps & ReduxProps;\n\nconst InjectedUserDependantRoute: React.FC<InjectedUserDependantRouteProps> = ({\n\trole, redirectPath = '/', title, dependantComponents, ...rest\n}) => {\n\tif (role === null) return <Redirect to={redirectPath} />;\n\n\treturn (\n\t\t<InnerRoute\n\t\t\t{...rest}\n\t\t\tcomponent={dependantComponents[role]}\n\t\t\ttitle={title}\n\t\t\tredirectPath={redirectPath}\n\t\t/>\n\t);\n};\n\nexport const UserDependantRoute = connect<ReduxProps, never, UserDependantProps, ApplicationState>(\n\t(state: ApplicationState) => ({\n\t\trole: state.login.user?.role ?? null,\n\t}),\n)(InjectedUserDependantRoute);\n","import * as React from 'react';\n\nimport Modal from 'antd/lib/modal';\n\ninterface OwnProps {\n\ttitle: string;\n\tisOpened: boolean;\n\tonOk: () => void;\n\tonCancel?: () => void;\n\n\tokText?: string;\n\tcancelText?: string;\n\tconfirmLoading?: boolean;\n\n\twidth?: string | number;\n\n\tokButtonProps?: Record<string, unknown>;\n\tmodalClassName?: string;\n\tstyle?: React.CSSProperties;\n\tfooter?: React.ReactNode;\n}\n\nexport const ModalInner: React.FC<OwnProps> = (props) => {\n\tconst {\n\t\ttitle, okText = 'Add', cancelText = 'Cancel',\n\t\tisOpened, onOk, confirmLoading = false, onCancel,\n\t\tfooter = undefined,\n\t} = props;\n\n\tconst [isDialogOpened, setDialogOpened] = React.useState<boolean>(false);\n\n\tconst openDialog = () => setDialogOpened(true);\n\tconst closeDialog = () => {\n\t\tif (onCancel) {\n\t\t\tonCancel();\n\t\t}\n\t\tsetDialogOpened(false);\n\t};\n\n\tReact.useEffect(() => {\n\t\tif (isOpened) {\n\t\t\topenDialog();\n\t\t} else {\n\t\t\tcloseDialog();\n\t\t}\n\t}, [isOpened]);\n\n\treturn (\n\t\t<Modal\n\t\t\ttitle={title}\n\t\t\topen={isDialogOpened}\n\t\t\tonCancel={closeDialog}\n\t\t\tdestroyOnClose\n\t\t\tonOk={onOk}\n\t\t\tokText={okText}\n\t\t\tcancelText={cancelText}\n\t\t\tconfirmLoading={confirmLoading}\n\t\t\twidth={props.width}\n\t\t\tokButtonProps={props.okButtonProps}\n\t\t\tclassName={props.modalClassName}\n\t\t\tstyle={props.style}\n\t\t\tfooter={footer}\n\t\t>\n\t\t\t{props.children}\n\t\t</Modal>\n\t);\n};\n\nexport const ModalWrapper = ModalInner;\n","module.exports = (__webpack_require__(7))(1285);","module.exports = (__webpack_require__(7))(1074);","module.exports = (__webpack_require__(7))(11);","module.exports = (__webpack_require__(7))(12);","import { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\n\nimport { DeliveryType } from '@app/objects/Pet';\n\nexport enum SystemDeliveryType\n{\n\tClinic = 0,\n\tMail = 1,\n\tHomeDropOff = 2,\n}\n\nexport function toName(type: Nullable<SystemDeliveryType>): string {\n\tswitch (type) {\n\tcase SystemDeliveryType.Clinic: return 'Clinic';\n\tcase SystemDeliveryType.Mail: return 'Mail';\n\tcase SystemDeliveryType.HomeDropOff: return 'Home drop off';\n\n\tdefault: return 'None';\n\t}\n}\n\nexport interface DeliveryTypeEntity extends WithId {\n\tname: string;\n\tdescription: string;\n\tsystemType: Nullable<SystemDeliveryType>;\n\tbridge?: Nullable<DeliveryBridge>;\n}\n\n/**\n * Bridge exists only for DeliveryTypeEntities converted from DeliveryType enums\n */\ninterface DeliveryBridge extends WithId {\n\tdeliveryType: DeliveryType;\n\tentityId: number;\n}\n\n/**\n * Convert DeliveryTypeEntity to DeliveryType (if conversion is possible)\n * @param {Nullable<DeliveryTypeEntity>} entity entity to be converted\n * @returns {DeliveryType} resulting DeliveryType enum\n */\nexport function toDeliveryType(entity: Optional<DeliveryTypeEntity>): DeliveryType {\n\tif (!entity) return DeliveryType.None;\n\tif (entity.bridge) return entity.bridge.deliveryType;\n\n\tswitch (entity.systemType) {\n\tcase SystemDeliveryType.Clinic: return DeliveryType.Clinic;\n\tcase SystemDeliveryType.Mail: return DeliveryType.Mail;\n\tcase SystemDeliveryType.HomeDropOff: return DeliveryType.HomeDropOff;\n\n\tdefault: return DeliveryType.None;\n\t}\n}\n\nexport function toSystemType(type: DeliveryType): Nullable<SystemDeliveryType> {\n\tswitch (type) {\n\tcase DeliveryType.Clinic: return SystemDeliveryType.Clinic;\n\tcase DeliveryType.Mail: return SystemDeliveryType.Mail;\n\tcase DeliveryType.HomeDropOff: return SystemDeliveryType.HomeDropOff;\n\n\tdefault: return null;\n\t}\n}\n","import { WithId } from '@common/typescript/objects/WithId';\n\nexport enum EmailType {\n\tClinic = 1,\n\tCoordinate = 2\n}\n\nexport enum MailStatus {\n\tUnknown = 0,\n\tSuccess = 1,\n\tFail = 2,\n}\n\nexport interface PetEmailLogView extends WithId {\n\tdateTime: number,\n\tstatus: MailStatus,\n\ttype: EmailType,\n}\n","import * as React from 'react';\nimport { Link } from 'react-router-dom';\nimport clsx from 'clsx';\nimport Popover from 'antd/lib/popover';\nimport Pagination from 'antd/lib/pagination';\nimport Button from 'antd/lib/button';\nimport { PlusOutlined, QuestionCircleOutlined } from '@ant-design/icons';\nimport Space from 'antd/lib/space';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { Pagination as IPagination } from '@common/react/smart components/Table/TableDataProvider';\n\nimport { ViewMode } from '@app/components/Utils/Utils';\nimport '@app/scss/pages/view-card.scss';\n\nexport enum ClickableType {\n\tTelephone = 0,\n\tEmail = 1,\n\tLink = 2,\n}\n\nexport enum CardSize {\n\tTiny = 'xs',\n\tSmall = 'sm',\n\tMedium = 'md',\n\tLarge = 'lg',\n}\n\nexport interface Field {\n\ttitle: string;\n\tdata: React.ReactNode;\n\tcaption?: string;\n\tclickableType?: ClickableType;\n}\n\nexport interface ICardField {\n\ttitle: string;\n\tchildren: React.ReactNode;\n}\n\ninterface BaseCardProps {\n\tname: React.ReactNode;\n\n\tsize: CardSize;\n\tfullWidth?: boolean;\n\ttwoColumns?: boolean;\n\tcardWrapperClassname?: string;\n\n\twithBtn?: boolean;\n\tbtnCaption?: string;\n\tonClick?: () => void;\n\textra?: React.ReactNode;\n\n\tlink?: string;\n\tclassName?: string;\n\tdisabled?: boolean;\n}\n\ninterface EditCardProps extends BaseCardProps {\n\tmode: ViewMode.edit;\n\teditContent: React.ReactNode | Array<React.ReactNode>;\n}\n\ninterface ViewCardProps extends BaseCardProps {\n\tmode?: ViewMode.view;\n\tviewContent: React.ReactNode | Array<React.ReactNode>;\n}\n\ntype CardProps = ViewCardProps | EditCardProps;\n\ninterface CardContentProps {\n\theader: React.ReactNode;\n\tcontent: React.ReactNode;\n\tcardContentClassname: string;\n}\n\ninterface ListProps<T> {\n\tlist: Array<T>;\n\tplaceholder: string;\n\n\tpagination?: IPagination;\n\n\tbold?: boolean;\n}\n\nexport interface ItemsList {\n\tid: number;\n\ttitle: string;\n\tcaption?: string;\n\tdata: React.ReactNode;\n\tcontent?: React.ReactNode;\n\ticon?: React.ReactNode;\n}\n\ninterface InteractionData {\n\tlabel: string;\n\thref: string;\n}\n\nexport function getInteraction(type: Nullable<ClickableType> | undefined, data: React.ReactNode): Nullable<InteractionData> {\n\tif (typeof data !== 'string') return null;\n\tif (!data) return null;\n\n\tswitch (type) {\n\tcase ClickableType.Telephone:\n\t\treturn {\n\t\t\tlabel: 'call',\n\t\t\thref: `tel: ${data}`,\n\t\t};\n\n\tcase ClickableType.Email:\n\t\treturn {\n\t\t\tlabel: 'send email',\n\t\t\thref: `mailto:${data}`,\n\t\t};\n\n\tcase ClickableType.Link:\n\t\treturn {\n\t\t\tlabel: `link to ${data}`,\n\t\t\thref: data,\n\t\t};\n\n\tdefault:\n\t\treturn null;\n\t}\n}\n\nexport function getClickable(type: Nullable<ClickableType> | undefined, data: string, display?: string, target: string = '_blank'): React.ReactNode {\n\tconst info = getInteraction(type, data);\n\tconst title = display || data || '—';\n\tif (info === null) return title;\n\n\treturn (\n\t\t<a\n\t\t\taria-label={info.label}\n\t\t\thref={info.href}\n\t\t\ttarget={target}\n\t\t\trel=\"noopener noreferrer\"\n\t\t>\n\t\t\t{title}\n\t\t</a>\n\t);\n}\n\nexport function getCaption(caption?: string) {\n\tif (!caption) return null;\n\n\treturn (\n\t\t<Popover content={caption}>\n\t\t\t<QuestionCircleOutlined />\n\t\t</Popover>\n\t);\n}\n\nexport const getCardFields = (fields: Array<Field | undefined>): JSX.Element => {\n\treturn (\n\t\t<>\n\t\t\t{\n\t\t\t\tfields.map((field) => {\n\t\t\t\t\tif (field) {\n\t\t\t\t\t\tconst data = getInteraction(field.clickableType, field.data);\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div className=\"card__info-block\" key={field.title}>\n\t\t\t\t\t\t\t\t<Space className=\"card__title\" size={4}>{field.title} {getCaption(field.caption)}</Space>\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdata ? (\n\t\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\t\taria-label={data.label}\n\t\t\t\t\t\t\t\t\t\t\thref={data.href}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{field.data || '—'}\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t: (\n\t\t\t\t\t\t\t\t\t\t\t<span className=\"card__data\" title={field.caption}>\n\t\t\t\t\t\t\t\t\t\t\t\t{field.data || '—'}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn undefined;\n\t\t\t\t})\n\t\t\t}\n\t\t</>\n\t);\n};\n\nexport const CardField = ({ title, children }: ICardField) => (\n\t<div className=\"card__info-block\" key={title}>\n\t\t<span className=\"card__title\">{title}</span>\n\t\t<span className=\"card__data\">{children || '—'}</span>\n\t</div>\n);\n\nexport const ListComponent: React.FC<ListProps<ItemsList>> = (props: ListProps<ItemsList>) => {\n\tconst list = props.list;\n\n\tif (list.length === 0) return <div className=\"card__list-container\"><p>{props.placeholder}</p></div>;\n\n\treturn (\n\t\t<div className=\"card__list-container\">\n\t\t\t{\n\t\t\t\tlist.map((item: ItemsList) => {\n\t\t\t\t\tconst titleClass = clsx('card__title', props.bold && 'card__title--bold');\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<div className=\"card__info-block\" key={item.id}>\n\t\t\t\t\t\t\t<div className=\"card__table-wrap\">\n\t\t\t\t\t\t\t\t<span className={titleClass}>\n\t\t\t\t\t\t\t\t\t{item.title} {item.icon}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span className=\"card__data\">{item.data}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{item.content}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t);\n\t\t\t\t})\n\t\t\t}\n\t\t\t{props.pagination && (\n\t\t\t\t<Pagination\n\t\t\t\t\ttotal={props.pagination.total}\n\t\t\t\t\thideOnSinglePage\n\t\t\t\t\tpageSize={props.pagination.pageSize}\n\t\t\t\t\tonChange={(value: number) => props.pagination?.onChange(value)}\n\t\t\t\t\tcurrent={props.pagination.current}\n\t\t\t\t\tstyle={{ textAlign: 'center' }}\n\t\t\t\t\tsize=\"small\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nfunction getHeader(props: CardProps): React.ReactNode {\n\tif (props.withBtn) {\n\t\treturn (\n\t\t\t<div className=\"card__heading-with-btn\">\n\t\t\t\t<span className=\"card__heading\">{props.name}</span>\n\t\t\t\t<Button\n\t\t\t\t\ttype=\"link\"\n\t\t\t\t\tclassName=\"card__button-add\"\n\t\t\t\t\ttitle={props.btnCaption}\n\t\t\t\t\tonClick={props.onClick}\n\t\t\t\t\tdisabled={props.disabled}\n\t\t\t\t\ticon={!props.btnCaption ? <PlusOutlined /> : null}\n\t\t\t\t>\n\t\t\t\t\t{props.btnCaption || 'Add'}\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (props.name) {\n\t\treturn (\n\t\t\t<div className=\"card__heading-with-btn\">\n\t\t\t\t<span className=\"card__heading\">\n\t\t\t\t\t{props.name}\n\t\t\t\t</span>\n\t\t\t\t{props.extra}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn null;\n}\n\nconst CardContent: React.FC<CardContentProps> = ({ header, cardContentClassname, content }: CardContentProps) => (\n\t<>\n\t\t{header}\n\t\t<div className={cardContentClassname}>{content}</div>\n\t</>\n);\n\nexport const Card: React.FC<CardProps> = (props: CardProps) => {\n\tconst cardWrapperClassname = clsx('card', props.size && `card--${props.size}`, props.cardWrapperClassname);\n\tconst cardContentClassname = clsx('card__content', {\n\t\t'card__content--full-width': props.fullWidth,\n\t\t'card__content--edit': props.mode === ViewMode.edit,\n\t\t'card__content--two-columns': props.twoColumns,\n\t}, props.className);\n\n\tconst header: React.ReactNode = getHeader(props);\n\tlet content: React.ReactNode = null;\n\tif (props.mode === ViewMode.view) {\n\t\tcontent = props.viewContent;\n\t} else if (props.mode === ViewMode.edit) {\n\t\tcontent = props.editContent;\n\t}\n\n\treturn (\n\t\t<div className={cardWrapperClassname}>\n\t\t\t{props.link ? (\n\t\t\t\t<Link to={props.link ?? ''}>\n\t\t\t\t\t<CardContent header={header} cardContentClassname={cardContentClassname} content={content} />\n\t\t\t\t</Link>\n\t\t\t) : (\n\t\t\t\t<CardContent header={header} cardContentClassname={cardContentClassname} content={content} />\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nCard.defaultProps = {\n\tmode: ViewMode.view,\n\n\tfullWidth: false,\n\ttwoColumns: false,\n\twithBtn: false,\n\tdisabled: false,\n\textra: null,\n};\n","import * as React from 'react';\n\nimport MaskedInput from 'react-text-mask';\nimport Input from 'antd/lib/input';\n\nimport { phoneMask } from '@app/components/Utils/Utils';\n\ninterface PhoneInputProps {\n\tphoneCode?: string;\n\tname: string;\n\tvalue: string;\n\tonChange: (value: string) => void;\n\tonFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;\n\tonBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;\n}\n\nconst defaultCode = '+1';\nexport const newZealandCode = '+64';\nexport const australiaCode = '+61';\n\nexport const PhoneInput: React.FC<PhoneInputProps> = (props: PhoneInputProps) => {\n\tconst code = props.phoneCode ?? defaultCode;\n\n\tconst isSpecialCode = code === newZealandCode || code === australiaCode;\n\tconst phoneCodeRef = React.useRef<string>(defaultCode);\n\n\tReact.useEffect(() => {\n\t\tlet phone = props.value.replace(phoneCodeRef.current, code);\n\n\t\tif (isSpecialCode && code !== phoneCodeRef.current) {\n\t\t\tconst tel = phone.replace(/(\\(\\)-\\s)/g, '');\n\n\t\t\tif (tel.length) phone = `${tel.slice(0, code.length)} ${tel.slice(code.length)}`;\n\t\t}\n\n\t\tprops.onChange(phone);\n\t\tphoneCodeRef.current = code;\n\t}, [code]);\n\n\tif (isSpecialCode) {\n\t\treturn (\n\t\t\t<Input\n\t\t\t\t{...props}\n\t\t\t\tplaceholder={code}\n\t\t\t\tonFocus={() => (!props.value.trim() && props.onChange(`${code} `))}\n\t\t\t\tonBlur={() => (props.value.trim() === code && props.onChange(''))}\n\t\t\t\tonChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n\t\t\t\t\tconst value = e.currentTarget.value;\n\n\t\t\t\t\tif (!value.startsWith(code)) return;\n\n\t\t\t\t\tprops.onChange(e.currentTarget.value);\n\t\t\t\t}}\n\t\t\t\ttype=\"tel\"\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<MaskedInput\n\t\t\t{...props}\n\t\t\tmask={phoneMask(code)}\n\t\t\tclassName=\"form-control\"\n\t\t\tplaceholder={`${code} (___) ___-____`}\n\t\t\tonChange={(e) => props.onChange(e.currentTarget.value)}\n\t\t\tid={props.name}\n\t\t\ttype=\"tel\"\n\t\t/>\n\t);\n};\n","module.exports = (__webpack_require__(7))(1265);","import * as React from 'react';\n\nimport CoreButton from 'antd/lib/button';\nimport { ButtonProps as CoreButtonProps } from 'antd/lib/button/button';\nexport interface ButtonProps extends CoreButtonProps {\n\tclassName?: string;\n\tonClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n\ttitle?: string;\n}\n\nconst Button: React.FC<ButtonProps> = \n\t({\n\t\ttype,\n\t\tclassName, \n\t\tloading, \n\t\tonClick, \n\t\tchildren, \n\t\ttitle, \n\t\tdisabled = false, \n\t\t// other = undefined\n\t\t...props\n\t}) => {\n\t\treturn <CoreButton \n\t\t\t{...props} \n\t\t\ttype={type} \n\t\t\tdisabled={Boolean(loading || disabled)} \n\t\t\tclassName={className} \n\t\t\tonClick={onClick}\n\t\t\ttitle={title}\n\t\t>\n\t\t\t{children}\n\t\t</CoreButton>;\n\t};\n\ninterface PreventDefaultButtonProps extends ButtonProps {\n\tonClick:() => void;\n}\n\nexport const PreventDefaultButton: React.FC<PreventDefaultButtonProps> = ({onClick, children, ...rest}) => \n\t<Button {...rest} onClick={(e) => { e.preventDefault(); e.stopPropagation(); onClick(); }}>\n\t\t{children}\n\t</Button>;\n\nexport default Button;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport clsx from 'clsx';\n\nimport Spin from 'antd/lib/spin';\nimport List from 'antd/lib/list';\nimport Divider from 'antd/lib/divider';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { OnScrollManager } from '@app/services/OnScrollManager';\nimport { AvailableStoreEntry } from '@app/objects/StoreEntry';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { ApplicationState } from '@app/store';\nimport { UserRole } from '@app/objects/User';\nimport { ModalFormValues, newStoreEntry } from '@app/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModal';\nimport { Price } from '@app/objects/Price';\n\ninterface StoreEntriesItemListProps {\n\tlist?: Nullable<Array<AvailableStoreEntry>>;\n\tstoreEntry: Nullable<ModalFormValues>;\n\tloading: boolean;\n\ttotal: number;\n\n\tonLoadMore: () => void;\n\tonSelectStore: (value: ModalFormValues) => void;\n}\n\nexport function sorterPrices(prices: Array<Price>) {\n\tconst values = prices.map((price) => price.batchPrice + Math.max(1 - price.batchCount, 0) * price.value);\n\tconst sorter = values.sort((a, b) => a - b);\n\n\treturn {\n\t\tfrom: sorter[0],\n\t\tto: sorter[sorter.length - 1],\n\t};\n}\n\nfunction getPrice(prices: Array<Price>): string {\n\tconst { from, to } = sorterPrices(prices);\n\n\tif (from === to) return `$${from?.toFixed(2)}`;\n\n\treturn `$${from?.toFixed(2)} - $${to?.toFixed(2)}`;\n}\n\ninterface EntryGroups {\n\tspecial: Array<AvailableStoreEntry>;\n\tdefault: Array<AvailableStoreEntry>;\n}\n\nfunction toEntryGroups(list: Array<AvailableStoreEntry> = []): EntryGroups {\n\treturn {\n\t\tspecial: list.filter((item: AvailableStoreEntry) => item.storeEntry.isSpecial),\n\t\tdefault: list.filter((item: AvailableStoreEntry) => !item.storeEntry.isSpecial),\n\t};\n}\n\nexport const StoreEntriesItemList: React.FC<StoreEntriesItemListProps> = (props: StoreEntriesItemListProps) => {\n\tconst {\n\t\tlist,\n\t\tonLoadMore,\n\t\tloading,\n\t\tonSelectStore,\n\t\ttotal,\n\t\tstoreEntry,\n\t} = props;\n\n\tconst scrollRef = React.useRef<OnScrollManager>(new OnScrollManager());\n\tconst crematory = useCrematory();\n\tconst role = useSelector((state: ApplicationState) => state.login.user?.role);\n\tconst showPricesToClinic = role !== UserRole.ClinicUser && role !== UserRole.ClinicManager ? true : (crematory?.showPricesToClinic ?? false);\n\tconst groups: EntryGroups = toEntryGroups(list ?? []);\n\n\treturn (\n\t\t<div\n\t\t\tclassName=\"pet-editor__product__list\"\n\t\t\tonScroll={(e: React.UIEvent<HTMLDivElement, UIEvent>) => {\n\t\t\t\tconst hasMore = Boolean(list && total > list.length);\n\n\t\t\t\tscrollRef.current.onScroll(e.target as HTMLElement, loading, hasMore, onLoadMore);\n\t\t\t}}\n\t\t>\n\t\t\t{loading && !groups.default.length && !groups.special.length && <Spin style={{ display: 'block' }} />}\n\t\t\t{groups.default.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<Divider orientation=\"left\">Default Urns</Divider>\n\t\t\t\t\t<List\n\t\t\t\t\t\tloading={loading}\n\t\t\t\t\t\tdataSource={groups.default}\n\t\t\t\t\t\trenderItem={(item: AvailableStoreEntry) => (\n\t\t\t\t\t\t\t<List.Item\n\t\t\t\t\t\t\t\tonClick={() => onSelectStore(newStoreEntry(item))}\n\t\t\t\t\t\t\t\tclassName={clsx(item.id === storeEntry?.id && 'list-item__active')}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<List.Item.Meta title={item.storeEntry.name} />\n\t\t\t\t\t\t\t\t{showPricesToClinic && <div className=\"icon-margin\">{getPrice(item.prices)}</div>}\n\t\t\t\t\t\t\t</List.Item>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t\t{\n\t\t\t\tgroups.special.length\n\t\t\t\t\t? (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<Divider orientation=\"left\">Special Urns</Divider>\n\t\t\t\t\t\t\t<List\n\t\t\t\t\t\t\t\tloading={loading}\n\t\t\t\t\t\t\t\tdataSource={groups.special}\n\t\t\t\t\t\t\t\trenderItem={(item: AvailableStoreEntry) => (\n\t\t\t\t\t\t\t\t\t<List.Item\n\t\t\t\t\t\t\t\t\t\tonClick={() => onSelectStore(newStoreEntry(item))}\n\t\t\t\t\t\t\t\t\t\tclassName={clsx(item.id === storeEntry?.id && 'list-item__active')}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<List.Item.Meta title={item.storeEntry.name} />\n\t\t\t\t\t\t\t\t\t\t{showPricesToClinic && <div className=\"icon-margin\">{getPrice(item.prices)}</div>}\n\t\t\t\t\t\t\t\t\t</List.Item>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</>\n\t\t\t\t\t) : null\n\t\t\t}\n\t\t</div>\n\t);\n};\n","import React from 'react';\n\nimport { Field, FieldProps } from 'formik';\n\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\n\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { ModalFormValues } from '@app/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModal';\nimport { NumberField } from '@app/components/UI/NumberField/NumberField';\n\ninterface ItemFieldProps {\n\tstoreEntry?: Nullable<ModalFormValues>;\n\tfieldName: string;\n\ttitle: string;\n\n\tvalue: Optional<number>;\n\tonChange: (value: number) => void;\n\n\tdisabled?: boolean;\n}\n\nexport const ItemField: React.FC<ItemFieldProps> = (props: ItemFieldProps) => (\n\t<Field name={props.fieldName}>\n\t\t{(fieldProps: FieldProps<PetFormValues>) => (\n\t\t\t<FormikInput\n\t\t\t\ttitle={props.title}\n\t\t\t\tfieldProps={fieldProps}\n\t\t\t\tcontainerClassName=\"col-sm-6\"\n\t\t\t\trender={({ field }: FieldProps<number, PetFormValues>) => (\n\t\t\t\t\t<NumberField\n\t\t\t\t\t\t{...field}\n\t\t\t\t\t\tvalue={props.value}\n\t\t\t\t\t\tonChange={(value: number) => props.onChange(value)}\n\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\tdisabled={props.disabled}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t/>\n\t\t)}\n\t</Field>\n);\n","import React from 'react';\nimport { useSelector } from 'react-redux';\nimport { v4 } from 'uuid';\nimport Table from 'antd/lib/table';\nimport Search from 'antd/lib/input/Search';\nimport { useFormikContext } from 'formik';\n\nimport { List } from '@common/typescript/objects/List';\nimport { isPresent, Nullable, Optional } from '@common/typescript/objects/Nullable';\nimport TableBuilder from '@common/react/utils/Helpers/TableBuilder';\nimport { ImageComponent } from '@common/react/components/UI/Image/Image';\nimport { Column } from '@common/react/smart components/Table/TableRemoteSorter';\nimport { AlertMessage, AlertType } from '@common/react/components/UI/AlertMessage/AlertMessage';\n\nimport { UserRole } from '@app/objects/User';\nimport { ApplicationState } from '@app/store';\nimport { PetPrice, ServiceType } from '@app/objects/Pet';\nimport { Price, PriceType } from '@app/objects/Price';\nimport { useRequest } from '@app/hooks/useRequest';\nimport { ModalWrapper } from '@app/components/UI/Modal/Modal';\nimport { ModalControls } from '@app/hooks/Editors/useModal';\nimport {\n\tAvailableStoreEntry,\n\tgetPath,\n\tgetRoot,\n\tStoreEntry,\n\tStoreEntryAttribute,\n\tStoreEntryAttributeValue,\n\tStoreEntryNode,\n\ttoTree,\n} from '@app/objects/StoreEntry';\nimport { LocalSelect } from '@app/components/UI/Inputs/LocalSelect';\nimport {\n\tsorterPrices,\n\tStoreEntriesItemList,\n} from '@app/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModalComponents/StoreEntriesItemList';\nimport {\n\tItemField,\n} from '@app/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModalComponents/ItemField';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { PreselectStore } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/ProcessSection';\nimport {\n\tsanitizeTreeLinks,\n} from '@app/components/Pages/Inventory/StoreEntries/StoreEntryEditor/StockPreview/TreeUtils';\nimport { calculate } from '@app/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/calculations';\nimport { ControlLabel } from '@app/components/UI/ControlLabel/ControlLabel';\nimport { RoleManager } from '@app/services/RoleManager';\nimport { allowAdd as isSelect } from '@app/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/Services';\n\nimport noImage from '@images/no_image.jpg';\n\nimport '@app/scss/pages/pet-editor.scss';\n\ninterface StoreEntriesModalProps {\n\tmodalControl: ModalControls;\n\tpreselect?: PreselectStore;\n\tonChange: (items: Array<PetPrice>) => void;\n\tcrematoryId?: number;\n\tclinicId?: number;\n\tserviceType: ServiceType;\n\tpriceType?: PriceType;\n\tshowPricesToClinic?: boolean;\n}\n\nexport interface ModalFormValues extends AvailableStoreEntry {\n\tcount: number;\n\tcost: Nullable<number>;\n\tvalues: Array<StoreEntryAttributeValue>;\n\tclientId?: string;\n}\n\ninterface RequestParams {\n\tcrematoryId?: number;\n\tclinicId?: number;\n\tpriceType?: PriceType;\n\tserviceType: ServiceType;\n\tfilters: {\n\t\tname: string,\n\t};\n}\n\nexport const newStoreEntry = (item: AvailableStoreEntry): ModalFormValues => ({\n\t...item,\n\tcount: 1,\n\tvalues: [],\n\tcost: sorterPrices(item.prices).to,\n});\n\nexport const getColumns = (\n\tentry: Nullable<StoreEntry>,\n\tselection: Nullable<StoreEntryNode>,\n\tsetSelection: (value: StoreEntryNode) => void,\n\trole?: UserRole,\n) => TableBuilder.shape<StoreEntryAttribute>()\n\t.addColumn({\n\t\ttitle: 'Attribute',\n\t\tdataIndex: 'name',\n\t\trender: (name: string, record: StoreEntryAttribute) => (\n\t\t\t<ControlLabel text={name} required={!RoleManager.for(role ?? UserRole.Crematory).isClinicGroup() && record.clinicCanPick} />\n\t\t),\n\t})\n\t.addColumn({\n\t\ttitle: 'Values',\n\t\tdataIndex: 'values',\n\t\twidth: '50%',\n\t\trender: (values: Array<StoreEntryAttributeValue>) => {\n\t\t\tif (!entry) return null;\n\n\t\t\tconst options = values.sort((a, b) => b.order - a.order).map((i) => ({ text: i.name, value: i.id }));\n\n\t\t\tlet value;\n\t\t\tif (selection) {\n\t\t\t\tconst path = getPath(entry, selection).map((node: StoreEntryNode) => node.valueId);\n\t\t\t\tvalue = options.find((option) => path.includes(option.value))?.value;\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<form style={{ marginLeft: '-15px' }}>\n\t\t\t\t\t<LocalSelect\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\tonChange={(id: number) => {\n\t\t\t\t\t\t\tif (!entry) return;\n\n\t\t\t\t\t\t\tconst node = selection ?? getRoot(entry);\n\t\t\t\t\t\t\tif (!node) return;\n\n\t\t\t\t\t\t\tconst candidates = entry.tree.filter((item: StoreEntryNode) => item.valueId === id);\n\t\t\t\t\t\t\tif (!candidates.length) return;\n\n\t\t\t\t\t\t\t/* Added a new value */\n\t\t\t\t\t\t\tconst result = candidates.find((item: StoreEntryNode) => item.parentId === node.id);\n\t\t\t\t\t\t\tif (result) {\n\t\t\t\t\t\t\t\tsetSelection(result);\n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Changed existing value */\n\t\t\t\t\t\t\tconst path = getPath(entry, node);\n\t\t\t\t\t\t\tconst options = candidates.filter((c: StoreEntryNode) => path.some((n: StoreEntryNode) => n.id === c.parentId));\n\t\t\t\t\t\t\tif (options.length !== 1) return;\n\n\t\t\t\t\t\t\tsetSelection(options[0]);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\toptions={options}\n\t\t\t\t\t\tdeselectType=\"\"\n\t\t\t\t\t\tfilterName=\"\"\n\t\t\t\t\t\tfieldName=\"\"\n\t\t\t\t\t\tallowClear={false}\n\t\t\t\t\t\tclassName=\"col-sm-12 is-relative\"\n\t\t\t\t\t/>\n\t\t\t\t</form>\n\t\t\t);\n\t\t},\n\t})\n\t.build();\n\nexport const getNewPetPrice = (item: ModalFormValues, petId: number, price: Price): PetPrice => {\n\treturn {\n\t\tid: -1,\n\t\tclientId: v4(),\n\t\tremoved: false,\n\n\t\tpetId,\n\t\tpet: null,\n\n\t\tpriceId: 0,\n\t\tprice,\n\n\t\tcount: item.count,\n\t\tdone: false,\n\t\tcompletedCount: 0,\n\n\t\tvalue: item.cost ?? 0,\n\t\textra: 0,\n\t\ttax: 0,\n\t\tdiscount: 0,\n\n\t\tname: item.storeEntry.name,\n\n\t\teditor: null,\n\t\teditorId: null,\n\n\t\tpickupService: null,\n\t\tpickupServiceId: null,\n\n\t\tbatchCount: 0,\n\t\tbatchPrice: 0,\n\n\t\tnode: null,\n\t\tnodeId: null,\n\n\t\tnote: '',\n\t};\n};\n\nconst onModalOk = (\n\tpetId: number,\n\tvalues: Array<PetPrice>,\n\tsetValue: (value: Array<PetPrice>) => void,\n\tonClose: () => void,\n\tstoreEntry: Nullable<ModalFormValues>,\n\tselection: Nullable<StoreEntryNode>,\n) => {\n\tif (!storeEntry) return;\n\tif (!selection) return;\n\n\tconst updatedStore = values.find((i) => i.clientId === storeEntry.clientId);\n\n\tif (updatedStore) {\n\t\tconst updatedValues: Array<PetPrice> = values.map((i: PetPrice) => {\n\t\t\tif (i.clientId === storeEntry.clientId) {\n\t\t\t\treturn {\n\t\t\t\t\t...i,\n\n\t\t\t\t\tnode: null,\n\t\t\t\t\tentry: sanitizeTreeLinks(storeEntry.storeEntry),\n\t\t\t\t\tnodeId: selection.id,\n\t\t\t\t\tcount: storeEntry.count,\n\t\t\t\t\tvalue: storeEntry.cost ?? 0,\n\t\t\t\t\ttoSelect: isSelect(sanitizeTreeLinks(storeEntry.storeEntry), selection, selection.id),\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn i;\n\t\t});\n\n\t\tsetValue(updatedValues);\n\t} else {\n\t\tconst price = storeEntry.prices.find((i: Price) => i.inventoryItemId === selection.itemId);\n\t\tconst newProductPetPrice = getNewPetPrice(storeEntry, petId, price);\n\n\t\tnewProductPetPrice.entry = sanitizeTreeLinks(storeEntry.storeEntry);\n\t\tnewProductPetPrice.nodeId = selection.id;\n\t\tnewProductPetPrice.toSelect = isSelect(sanitizeTreeLinks(storeEntry.storeEntry), selection, selection.id);\n\n\t\tsetValue([newProductPetPrice, ...values]);\n\t}\n\n\tonClose();\n};\n\nfunction isClinic(role: Optional<UserRole>): role is UserRole.ClinicManager | UserRole.ClinicUser {\n\treturn role === UserRole.ClinicManager || role === UserRole.ClinicUser;\n}\n\nexport function getData(entry: Nullable<StoreEntry>, selection: Nullable<StoreEntryNode>, role: Optional<UserRole>): Array<StoreEntryAttribute> {\n\tif (!entry) return [];\n\n\tlet query = entry.attributes;\n\tconst tree = toTree(entry);\n\n\tif (isClinic(role)) {\n\t\tquery = query.filter((item: StoreEntryAttribute) => item.clinicCanPick);\n\t}\n\n\tif (tree && selection) {\n\t\tconst values: Array<number> = [];\n\t\tconst path = getPath(entry, selection);\n\t\tif (!path.length) return query;\n\n\t\tfor (let i = 0; i < path.length; i++) {\n\t\t\tconst children = path[i].children\n\t\t\t\t.filter((node: StoreEntryNode) => !node.disabled)\n\t\t\t\t.map((node: StoreEntryNode) => node.valueId)\n\t\t\t\t.filter(isPresent);\n\t\t\tvalues.push(...children);\n\t\t}\n\n\t\tquery = query\n\t\t\t.map((attribute: StoreEntryAttribute): StoreEntryAttribute => ({\n\t\t\t\t...attribute,\n\t\t\t\tvalues: attribute.values.filter((value: StoreEntryAttributeValue) => values.includes(value.id)),\n\t\t\t}))\n\t\t\t.filter((value: StoreEntryAttribute) => value.values.length);\n\t} else {\n\t\tif (!entry.attributes.length) return query;\n\t\tif (!tree) return query;\n\n\t\tconst values = tree.children\n\t\t\t.filter((node: StoreEntryNode) => !node.disabled)\n\t\t\t.map((node: StoreEntryNode) => node.valueId)\n\t\t\t.filter(isPresent);\n\n\t\tquery = query\n\t\t\t.map((attribute: StoreEntryAttribute): StoreEntryAttribute => ({\n\t\t\t\t...attribute,\n\t\t\t\tvalues: attribute.values.filter((value: StoreEntryAttributeValue) => values.includes(value.id)),\n\t\t\t}))\n\t\t\t.filter((value: StoreEntryAttribute) => value.values.length);\n\t}\n\n\treturn query;\n}\n\nexport function allowAdd(entry: Optional<StoreEntry>, selection: Optional<number>): boolean {\n\tif (!entry) return false;\n\tif (!selection) return false;\n\n\tconst whitelist = entry.attributes\n\t\t.filter((attribute: StoreEntryAttribute) => attribute.clinicCanPick)\n\t\t.flatMap((attribute: StoreEntryAttribute) => attribute.values)\n\t\t.map((value: StoreEntryAttributeValue) => value.id);\n\n\tconst query = entry.tree\n\t\t.filter((node: StoreEntryNode) => node.parentId === selection)\n\t\t.filter((node: StoreEntryNode) => !node.disabled)\n\t\t.map((node: StoreEntryNode) => node.valueId)\n\t\t.filter((id: Nullable<number>) => id === null || whitelist.includes(id));\n\n\treturn !query.length;\n}\n\nexport function getImage(entry: Optional<StoreEntry>, selection: Optional<StoreEntryNode>): string {\n\tif (!entry) return noImage;\n\tif (!selection) return noImage;\n\n\tconst path = getPath(entry, selection).reverse();\n\tfor (let i = 0; i < path.length; i++) {\n\t\tif (path[i].avatar) return path[i].avatar;\n\t}\n\n\treturn noImage;\n}\n\nfunction getPriceWarning(entry: Nullable<ModalFormValues>, selection: Nullable<StoreEntryNode>): Nullable<string> {\n\tif (!selection) return null;\n\tif (!entry) return null;\n\tif (isPresent(entry.cost)) return null;\n\n\treturn 'Price for selected set of parameters doesn\\'t exist';\n}\n\nexport const StoreEntriesUrnModal: React.FC<StoreEntriesModalProps> = (props: StoreEntriesModalProps) => {\n\tconst { modalControl, preselect } = props;\n\tconst role = useSelector((state: ApplicationState) => state.login.user?.role);\n\tconst { values } = useFormikContext<PetFormValues>();\n\n\tconst [query, setQuery] = React.useState<string>('');\n\tconst [offset, setOffset] = React.useState<number>(0);\n\n\tconst [storeEntry, setStoreEntry] = React.useState<Nullable<ModalFormValues>>(null);\n\tconst [selection, setSelection] = React.useState<Nullable<StoreEntryNode>>(null);\n\tconst [list, setList] = React.useState<Array<AvailableStoreEntry>>([]);\n\tconst shouldPickDefault = React.useRef<boolean>(true);\n\n\tconst reqParams = React.useMemo(() => ({\n\t\tcrematoryId: props.crematoryId,\n\t\tclinicId: props.clinicId,\n\t\tpriceType: props.priceType,\n\t\tserviceType: props.serviceType,\n\t\tfilters: {\n\t\t\tname: query,\n\t\t},\n\t\toffset,\n\t}), [props.crematoryId, props.clinicId, props.serviceType, props.priceType, offset, query]);\n\n\tconst listRequest = useRequest<List<AvailableStoreEntry>, RequestParams>('availableStoreEntryList', undefined, { requestOnMount: false });\n\tconst storeEntryRequest = useRequest<StoreEntry, { storeEntryId: number }>('getStoreEntry', undefined, { requestOnMount: false });\n\n\tconst onLoadAttributes = (item: ModalFormValues) => {\n\t\tif (storeEntry?.id === item.id) return;\n\n\t\tstoreEntryRequest.reload({ storeEntryId: item.id })\n\t\t\t.then((res: StoreEntry | void) => {\n\t\t\t\tif (!res) return;\n\n\t\t\t\tconst values: Array<StoreEntryAttributeValue> = (res.attributes\n\t\t\t\t\t.map((i) => {\n\t\t\t\t\t\tconst value = i.values.find((q) => preselect?.valuesId.includes(q.id));\n\t\t\t\t\t\tif (value) return { ...value, attributeId: i.id, attribute: i };\n\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t})\n\t\t\t\t\t.filter((w) => w) as Array<StoreEntryAttributeValue>)\n\t\t\t\t\t.sort((a, b) => a.order - b.order);\n\n\t\t\t\tconst root = res.tree.find((i: StoreEntryNode) => preselect?.valuesId.includes(i.id) || preselect?.valuesId.includes(i.valueId ?? -1)) ?? getRoot(res);\n\n\t\t\t\tsetSelection(root);\n\t\t\t\tsetStoreEntry({\n\t\t\t\t\tid: res.id,\n\n\t\t\t\t\tavatar: item.avatar,\n\t\t\t\t\toriginalAvatar: item.originalAvatar,\n\n\t\t\t\t\tstoreEntry: res,\n\t\t\t\t\tprices: item.prices,\n\n\t\t\t\t\tcost: item.cost,\n\t\t\t\t\tclientId: preselect?.clientId,\n\t\t\t\t\tvalues: preselect ? values : [],\n\t\t\t\t\tcount: preselect ? preselect.count : 1,\n\t\t\t\t});\n\t\t\t});\n\t};\n\n\tReact.useEffect(() => {\n\t\tif (!modalControl.state) return;\n\n\t\tlistRequest.reload(reqParams)\n\t\t\t.then((res: List<AvailableStoreEntry> | void) => {\n\t\t\t\tif (!res) return;\n\n\t\t\t\tif (shouldPickDefault.current && (res.list.length === 1 || preselect)) {\n\t\t\t\t\tconst store = preselect ? res.list.find((i) => i.id === preselect.storeId) : res.list[0];\n\n\t\t\t\t\tonLoadAttributes(newStoreEntry(store));\n\t\t\t\t}\n\t\t\t});\n\t}, [props.modalControl.state, reqParams, preselect, shouldPickDefault]);\n\n\tReact.useEffect(() => {\n\t\tif (!modalControl.state) return;\n\n\t\tif (query !== '') {\n\t\t\tsetList(listRequest.item?.list ?? []);\n\t\t} else {\n\t\t\tconst items = [...list, ...listRequest.item?.list ?? []];\n\t\t\tconst uniq = new Set(items.map((i) => JSON.stringify(i)));\n\n\t\t\tsetList(Array.from(uniq).flatMap((e) => JSON.parse(e)));\n\t\t}\n\t}, [listRequest.item?.list]);\n\n\tReact.useEffect(() => {\n\t\tsetList([]);\n\t\tsetStoreEntry(null);\n\t\tsetSelection(null);\n\t\tsetQuery('');\n\t\tshouldPickDefault.current = true;\n\t\tsetOffset(0);\n\t}, [modalControl.state]);\n\n\tReact.useEffect(() => {\n\t\tsetStoreEntry((value: Nullable<ModalFormValues>) => {\n\t\t\tif (value === null) return null;\n\n\t\t\tconst price = calculate({\n\t\t\t\tentry: value.storeEntry,\n\t\t\t\tprices: value.prices,\n\t\t\t\tselection,\n\t\t\t\tcount: value.count,\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\t...value,\n\t\t\t\tcost: price?.value ?? null,\n\t\t\t};\n\t\t});\n\t}, [selection]);\n\n\treturn (\n\t\t<ModalWrapper\n\t\t\ttitle=\"Add Store Entry\"\n\t\t\tisOpened={modalControl.state}\n\t\t\tonOk={() => onModalOk(values.id, values.urns, props.onChange, modalControl.close, storeEntry, selection)}\n\t\t\tonCancel={modalControl.close}\n\t\t\twidth=\"70%\"\n\t\t\tmodalClassName=\"pet-editor__store-entry__modal\"\n\t\t\tokText={preselect ? 'Save' : 'Add'}\n\t\t\tokButtonProps={{\n\t\t\t\tdisabled: !allowAdd(storeEntry?.storeEntry, selection?.id) || !isPresent(storeEntry?.cost),\n\t\t\t}}\n\t\t>\n\t\t\t<div className=\"pet-editor__store-entry__modal-container\">\n\t\t\t\t<div className=\"pet-editor__store-entry__search\">\n\t\t\t\t\t<Search\n\t\t\t\t\t\tallowClear\n\t\t\t\t\t\tonChange={(event) => {\n\t\t\t\t\t\t\tif (event.target.value === '' && event.type === 'click' && setQuery) {\n\t\t\t\t\t\t\t\tsetQuery('');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tplaceholder=\"Enter a name\"\n\t\t\t\t\t\tonSearch={(e: string) => {\n\t\t\t\t\t\t\tsetQuery(e);\n\t\t\t\t\t\t\tsetOffset(0);\n\t\t\t\t\t\t\tshouldPickDefault.current = false;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstyle={{ padding: '0 0 30px' }}\n\t\t\t\t\t\tenterButton\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<StoreEntriesItemList\n\t\t\t\t\tonLoadMore={() => setOffset(list.length ?? 0)}\n\t\t\t\t\tonSelectStore={onLoadAttributes}\n\t\t\t\t\tstoreEntry={storeEntry}\n\t\t\t\t\tloading={listRequest.loading}\n\t\t\t\t\ttotal={listRequest.item?.count ?? 0}\n\t\t\t\t\tlist={list}\n\t\t\t\t/>\n\t\t\t\t<ImageComponent\n\t\t\t\t\tsrc={getImage(storeEntry?.storeEntry, selection)}\n\t\t\t\t\tfallback={noImage}\n\t\t\t\t\tclassName=\"pet-editor__store-entry__image-wrapper\"\n\t\t\t\t\twidth=\"256px\"\n\t\t\t\t\theight=\"256px\"\n\t\t\t\t/>\n\t\t\t\t<div className=\"pet-editor__store-entry__values-fields\">\n\t\t\t\t\t<Table\n\t\t\t\t\t\tcolumns={getColumns(storeEntry?.storeEntry ?? null, selection, setSelection, role)}\n\t\t\t\t\t\tdataSource={getData(storeEntryRequest.item, selection, role)}\n\t\t\t\t\t\tpagination={{ hideOnSinglePage: true }}\n\t\t\t\t\t\tloading={storeEntryRequest.loading}\n\t\t\t\t\t\trowKey=\"id\"\n\t\t\t\t\t\tclassName=\"small-padding-table\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"pet-editor__store-entry__fields\">\n\t\t\t\t\t<AlertMessage\n\t\t\t\t\t\ttype={AlertType.Warning}\n\t\t\t\t\t\tmessage={getPriceWarning(storeEntry, selection)}\n\t\t\t\t\t\tstyle={{ whiteSpace: 'pre-line' }}\n\t\t\t\t\t/>\n\t\t\t\t\t<ItemField\n\t\t\t\t\t\ttitle=\"Count\"\n\t\t\t\t\t\tfieldName=\"count\"\n\t\t\t\t\t\tstoreEntry={storeEntry}\n\t\t\t\t\t\tvalue={storeEntry?.count ?? 1}\n\t\t\t\t\t\tonChange={(value: number) => {\n\t\t\t\t\t\t\tif (!storeEntry) return;\n\n\t\t\t\t\t\t\tconst price = calculate({\n\t\t\t\t\t\t\t\tentry: storeEntry.storeEntry,\n\t\t\t\t\t\t\t\tselection,\n\t\t\t\t\t\t\t\tprices: storeEntry.prices,\n\t\t\t\t\t\t\t\tcount: value,\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tsetStoreEntry({\n\t\t\t\t\t\t\t\t...storeEntry,\n\t\t\t\t\t\t\t\tcount: value,\n\t\t\t\t\t\t\t\tcost: price?.value ?? null,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t{isPresent(props.showPricesToClinic) && !props.showPricesToClinic\n\t\t\t\t\t\t? null\n\t\t\t\t\t\t: (\n\t\t\t\t\t\t\t<ItemField\n\t\t\t\t\t\t\t\ttitle=\"Cost\"\n\t\t\t\t\t\t\t\tfieldName=\"cost\"\n\t\t\t\t\t\t\t\tstoreEntry={storeEntry}\n\t\t\t\t\t\t\t\tvalue={storeEntry?.cost}\n\t\t\t\t\t\t\t\tonChange={(value: number) => {\n\t\t\t\t\t\t\t\t\tif (!storeEntry) return;\n\n\t\t\t\t\t\t\t\t\tsetStoreEntry({\n\t\t\t\t\t\t\t\t\t\t...storeEntry,\n\t\t\t\t\t\t\t\t\t\tcost: value,\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tdisabled={isClinic(role) || !isPresent(storeEntry?.cost)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ModalWrapper>\n\t);\n};\n","import { Nullable, Optional } from '@common/typescript/objects/Nullable';\n\nimport { StoreEntry, StoreEntryNode } from '@app/objects/StoreEntry';\n\nexport function allowAdd(entry: Optional<StoreEntry>, selection: Optional<StoreEntryNode>, nodeId: Nullable<number>): boolean {\n\tif (!entry) return false;\n\tconst id = selection?.id ?? nodeId;\n\n\tconst query = entry.tree\n\t\t.filter((node: StoreEntryNode) => node.parentId === id)\n\t\t.filter((node: StoreEntryNode) => !node.disabled)\n\t\t.map((node: StoreEntryNode) => node.valueId);\n\n\treturn !query.length;\n}\n","module.exports = (__webpack_require__(7))(74);","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { useState, useEffect, useContext, useRef } from 'react';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context';\nimport { warnOnce, loadNamespaces, hasLoadedNamespace } from './utils';\n\nvar usePrevious = function usePrevious(value, ignore) {\n var ref = useRef();\n useEffect(function () {\n ref.current = ignore ? ref.current : value;\n }, [value, ignore]);\n return ref.current;\n};\n\nexport function useTranslation(ns) {\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nFromProps = props.i18n;\n\n var _ref = useContext(I18nContext) || {},\n i18nFromContext = _ref.i18n,\n defaultNSFromContext = _ref.defaultNS;\n\n var i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using initReactI18next');\n\n var notReadyT = function notReadyT(k) {\n return Array.isArray(k) ? k[k.length - 1] : k;\n };\n\n var retNotReady = [notReadyT, {}, false];\n retNotReady.t = notReadyT;\n retNotReady.i18n = {};\n retNotReady.ready = false;\n return retNotReady;\n }\n\n if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n\n var i18nOptions = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), i18n.options.react), props);\n\n var useSuspense = i18nOptions.useSuspense,\n keyPrefix = i18nOptions.keyPrefix;\n var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);\n var ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(function (n) {\n return hasLoadedNamespace(n, i18n, i18nOptions);\n });\n\n function getT() {\n return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n }\n\n var _useState = useState(getT),\n _useState2 = _slicedToArray(_useState, 2),\n t = _useState2[0],\n setT = _useState2[1];\n\n var joinedNS = namespaces.join();\n var previousJoinedNS = usePrevious(joinedNS);\n var isMounted = useRef(true);\n useEffect(function () {\n var bindI18n = i18nOptions.bindI18n,\n bindI18nStore = i18nOptions.bindI18nStore;\n isMounted.current = true;\n\n if (!ready && !useSuspense) {\n loadNamespaces(i18n, namespaces, function () {\n if (isMounted.current) setT(getT);\n });\n }\n\n if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {\n setT(getT);\n }\n\n function boundReset() {\n if (isMounted.current) setT(getT);\n }\n\n if (bindI18n && i18n) i18n.on(bindI18n, boundReset);\n if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);\n return function () {\n isMounted.current = false;\n if (bindI18n && i18n) bindI18n.split(' ').forEach(function (e) {\n return i18n.off(e, boundReset);\n });\n if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(function (e) {\n return i18n.store.off(e, boundReset);\n });\n };\n }, [i18n, joinedNS]);\n var isInitial = useRef(true);\n useEffect(function () {\n if (isMounted.current && !isInitial.current) {\n setT(getT);\n }\n\n isInitial.current = false;\n }, [i18n, keyPrefix]);\n var ret = [t, i18n, ready];\n ret.t = t;\n ret.i18n = i18n;\n ret.ready = ready;\n if (ready) return ret;\n if (!ready && !useSuspense) return ret;\n throw new Promise(function (resolve) {\n loadNamespaces(i18n, namespaces, function () {\n resolve();\n });\n });\n}","module.exports = (__webpack_require__(7))(1264);","// entity.ts\n/**\n * ## Entity.ts ##\n * This file contains some utility functions for entity objects\n * @packageDocumentation\n */\n\nimport { WithId } from '@common/typescript/objects/WithId';\n\n/**\n * This type is used to describe certain object fields\n */\ntype FieldsType<TEntity extends WithId> = Array<keyof TEntity> | undefined;\n\n/**\n * This function tests item if it has not been saved on server\n * @typeParam TEntity Any WithId entity\n * @param item The item being verified\n * @returns True if item has not been saved yet\n */\nexport function checkUnsaved<TEntity extends WithId>(item: TEntity): boolean { return item.id < 0; }\n\n/**\n * This function tests item if it has been saved on server\n * @typeParam TEntity Any WithId entity\n * @param item The item being verified\n * @returns True if item has been saved\n */\nexport function checkSaved<TEntity extends WithId>(item: TEntity): boolean { return item.id > 0; }\n\n/**\n * Makes shallow comparison of original and updated objects and returns their difference.\n * Example:\n *\n * ```typescript\n * interface IExample {\n * intact: string;\n * field: string;\n * }\n * const a: IExample = {intact: 'Intact field', field: 'Original field'};\n * const b: IExample = {intact: 'Intact field', field: 'Updated field'};\n *\n * const result: Partial<IExample> = getShallowChanged(a, b);\n *\n * ```\n *\n * Result:\n * ```typescript\n *\n * {field: 'Updated field'}\n *\n * ```\n *\n * Pay attention: comparison is shallow meaning inlaid objects/arrays are compared by reference, not by value.\n *\n * @typeParam TEntity Any WithId entities which instances are being compared\n *\n * @param original This is original item (before updated)\n * @param updated This is updated item (some of its values have been changed)\n *\n * @returns Object containing only changed fields (those that differ in original and updated, values are taken from updated)\n */\nexport function getShallowChanges<TEntity extends WithId>(original: TEntity, updated: TEntity): Partial<TEntity> & WithId {\n\tconst keys = Object.keys(original);\n\tconst result: Partial<TEntity> & WithId = { id: original.id } as Partial<TEntity> & WithId;\n\n\tkeys.forEach((key: string) => {\n\t\tif (updated[key] !== original[key]) {\n\t\t\tresult[key] = updated[key];\n\t\t}\n\t});\n\n\treturn result;\n}\n\n/**\n * Shallow comparison of two objects\n * returns true if they are equal and false if they are not\n *\n * Examples\n * ```typescript\n * const a = {id: 4, value: 'value'};\n * const b = {id: 4, value: 'value'};\n * const c = {id: 5, value: 'value'};\n *\n * const res1 = shallowCompare(a, b); // returns true\n * const res2 = shallowCompare(a, c); // returns false\n *\n * const obj1 = {id: 1, value: {message: 'value'}};\n * const obj2 = {id: 1, value: {message: 'value'}};\n *\n * const res3 = shallowCompare(obj1, obj2); // returns false as values have different REFERENCES\n * ```\n *\n * @param {TEntity} a - first entity\n * @param {TEntity} b - second entity\n * @return {boolean} - result of comparison\n */\nexport function shallowCompare<TEntity extends object>(a: TEntity, b: TEntity): boolean {\n\treturn Object.keys(a).reduce<boolean>((acc, key) => acc && (a[key] === b[key]), true);\n}\n\n/**\n * Returns a list of items from `updated` that are not found in `original`\n * This should represent all added items, updated items and removed items, if they are marked as 'deleted'\n * @param {Array<TEntity>} original - this is an original array (before update)\n * @param {Array<TEntity>} updated - this is an updated array\n * @returns {Array<TEntity>} - the difference between `original` and `updated` arrays\n */\nexport function getArrayChanges<TEntity extends WithId>(original: Array<TEntity>, updated: Array<TEntity>): Array<TEntity> {\n\treturn updated.filter((item: TEntity) => !original.some((source: TEntity) => shallowCompare<TEntity>(item, source)));\n}\n\n/**\n * Clears inlaid objects of entity (sets them to null). If fields is specified - clears only specified fields (only if they are of object type).\n * The object is cleared in place, which means that original object is being changed. It is also returned as result of a function (for chaining).\n *\n * Example:\n * ```typescript\n *\n * const a = {id: 'a', obj: {id: 'a-inner'}, count: 1};\n * const resultA = clearEntities(a);\n *\n * const b = {id: 'b', obj: {id: 'b-inner'}, count: 2};\n * const resultB = clearEntities(b, ['id', 'obj']);\n *\n * ```\n *\n * Result:\n * ```typescript\n *\n * resultA = a = {id: 'a', obj: null, count: 1};\n * resultB = b = {id: 'b': obj: null, count: 2};\n *\n * ```\n * @typeParam TEntity Any WithId entity\n *\n * @param entity Entity that needs to have (some) fields cleared (reset to null)\n * @param fields (optional) Array of TEntity fields that need to be set to null.\n * Only works for fields that reference objects. Clears all object fields of TEntity if no 'fields' is specified\n *\n * @returns Cleared entity. It does change original entity as well.\n */\nexport function clearEntities<TEntity extends WithId>(entity: TEntity, fields: FieldsType<TEntity> = undefined): TEntity {\n\tconst result = entity; // Same as assigning to entity, but without eslint warnings\n\tconst keys = fields === undefined ? Object.keys(entity) : fields;\n\tkeys.forEach((key) => {\n\t\tif (typeof entity[key] === 'object') {\n\t\t\tresult[key] = null;\n\t\t}\n\t});\n\n\treturn result;\n}\n\n/**\n * Creates a new Record from source picking only specified fields\n * @param {TEntity} source - original object to copy data from\n * @param {Array<keyof TEntity>} fields - an array of keys/fields of original object that thould be copied\n * @returns {Partial<TEntity>}\n */\nexport function maskedShallowCopy<TEntity extends object>(source: TEntity, fields: Array<keyof TEntity>): Partial<TEntity> {\n\tconst keys = Object.keys(source).filter((key: string) => fields.includes(key as keyof TEntity));\n\tconst result: Partial<TEntity> = {};\n\n\tkeys.forEach((key: string) => { result[key] = source[key]; });\n\n\treturn result;\n}\n\n/**\n * Gets all items of `updated` that are different from same item in `original` or not present in `original`\n *\n * Example:\n * ```typescript\n *\n * const original = [{ id: 0, value: 5 }, { id: 1, value: 4 }];\n * const updated = [{ id: 0, value: 5 }, { id: 1, value: 3 }, { id: 2, value: 4 }];\n\n * const result = pickDifference(original, updated);)\n *\n * ```\n *\n * Result:\n * ```typescript\n *\tresult = [{ id: 1, value: 3 }, { id: 2, value: 4 }];\n * ```\n *\n * @param {Array<TEntity>} original - original array of items\n * @param {Array<TEntity>} updated - updated array of items\n * @returns {Array<TEntity>} items from `updated` that are different from `original`\n */\nexport function pickDifference<TEntity extends WithId>(original: Array<TEntity>, updated: Array<TEntity>): Array<TEntity> {\n\tconst result: Array<TEntity> = [];\n\n\tupdated.forEach((q: TEntity) => {\n\t\tif (q.id <= 0) {\n\t\t\tresult.push(q);\n\t\t} else {\n\t\t\tconst reference = original.find((item: TEntity) => item.id === q.id);\n\n\t\t\tif (reference === undefined || !shallowCompare(reference, q)) {\n\t\t\t\tresult.push(q);\n\t\t\t}\n\t\t}\n\t});\n\n\treturn result;\n}\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _Link = _interopRequireDefault(require(\"./Link\"));\nvar _Paragraph = _interopRequireDefault(require(\"./Paragraph\"));\nvar _Text = _interopRequireDefault(require(\"./Text\"));\nvar _Title = _interopRequireDefault(require(\"./Title\"));\nvar _Typography = _interopRequireDefault(require(\"./Typography\"));\nvar Typography = _Typography[\"default\"];\nTypography.Text = _Text[\"default\"];\nTypography.Link = _Link[\"default\"];\nTypography.Title = _Title[\"default\"];\nTypography.Paragraph = _Paragraph[\"default\"];\nvar _default = exports[\"default\"] = Typography;","import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { ApplicationState } from '@app/store';\nimport { getCrematoryFeaturesActionCreators } from '@app/store/CrematoryFeatures';\n\nexport function useCrematoryFeatures() {\n\tconst dispatch = useDispatch();\n\tconst crematoryFeaturesStore = useSelector((state: ApplicationState) => state.crematoryFeatures);\n\n\tReact.useEffect(() => {\n\t\tif (crematoryFeaturesStore.item) return;\n\t\tif (crematoryFeaturesStore.isLoading) return;\n\n\t\tconst factory = getCrematoryFeaturesActionCreators();\n\t\tdispatch(factory.request());\n\t}, [crematoryFeaturesStore.item, dispatch]);\n\n\treturn crematoryFeaturesStore;\n}\n","module.exports = (__webpack_require__(7))(42);","import React from 'react';\n\ninterface ControlLabelProps {\n\ttext: string;\n\trequired?: boolean;\n}\n\nexport const ControlLabel: React.FC<ControlLabelProps> = ({ text, required }: ControlLabelProps) => (\n\t<>\n\t\t{text}{' '}{required ? '*' : ''}\n\t</>\n);\n","export interface WithRemoved {\n\tremoved?: boolean;\n}\n\nexport function isPresent<T extends WithRemoved>(item: T): boolean {\n\treturn !item.removed;\n}\n","export const dateFormat = function (\n\tdate: number | null | undefined,\n\tparams: Intl.DateTimeFormatOptions = { year: 'numeric', month:'2-digit', day: '2-digit' },\n\tlocale: string = 'en-US'\n): string {\n\tif (date === null || date === undefined) {\n\t\treturn '';\n\t}\n\n\tconst d: Date = new Date(date);\n\n\treturn d.toLocaleDateString(locale, params);\n};\n\nexport const dateTimeFormat = function (\n\tdate: number | null | undefined,\n\tparams: Intl.DateTimeFormatOptions = { hour:'2-digit', minute: '2-digit' },\n\tlocale: string = 'en-US'\n): string {\n\tif (date === null || date === undefined) {\n\t\treturn '';\n\t}\n\n\tconst d: Date = new Date(date);\n\n\treturn d.toLocaleTimeString(locale, params);\n};\n\nexport const getBackgroundUrl = function (image: string) {\n\treturn `url(${image})`;\n};\n\nfunction transliterate(str: string): string {\n\tlet newString = str.toLowerCase();\n\n\tconst from = 'ãàáäâẽèéëêìíïîõòóöôùúüûñç'.split('');\n\tconst to = 'aaaaaeeeeeiiiiooooouuuunc'.split('');\n\n\tfrom.forEach((char, index) => {\n\t\tnewString = newString.replace(new RegExp(char, 'g'), to[index]);\n\t});\n\n\tconst tr = 'A B V G D E ZH Z I Y K L M N O P R S T U F H C CH SH SCH Y E YU YA a b v g d e zh z i y k l m n o p r s t u f h c ch sh sch y e yu ya e e'.split(' ');\n\tlet result = '';\n\tfor (let i = 0; i < newString.length; ++i) {\n\t\tconst cc = newString.charCodeAt(i);\n\t\tresult += (cc === 1025 ? 'E' : (cc >= 1040 ? tr[cc - 1040] : newString[i]));\n\t}\n\treturn result;\n}\n\nexport const stringToUrl: (str: string) => string = (str) => {\n\treturn transliterate(str)\n\t\t.replace(/[^0-9A-Za-z\\s-]+/g, '')\n\t\t.replace(/\\s/g, '-')\n\t\t.replace('\\'', '')\n\t\t.toLowerCase();\n};\n\nexport function debounce<F extends Function>(func: F, wait: number):F {\n\tlet timeoutID: number;\n\tlet time = wait;\n\n\tNumber.isFinite = Number.isFinite || function (value) {\n\t\treturn typeof value === 'number' && isFinite(value);\n\t};\n\n\tNumber.isInteger = Number.isInteger || function (value) {\n\t\treturn typeof value === 'number'\n\t\t\t&& Number.isFinite(value)\n\t\t\t&& !(value % 1);\n\t};\n\n\tif (!Number.isInteger(time)) {\n\t\tconsole.log('Called debounce without a valid number');\n\t\ttime = 300;\n\t}\n\n\t// conversion through any necessary as it wont satisfy criteria otherwise\n\treturn <F><any>function (this:any, ...args: any[]) {\n\t\tclearTimeout(timeoutID);\n\t\tconst self = this;\n\n\t\ttimeoutID = window.setTimeout(() => {\n\t\t\tfunc.apply(self, args);\n\t\t}, time);\n\t};\n}\n\nexport function equal(a, b) {\n\treturn JSON.stringify(a) === JSON.stringify(b);\n}\n\nexport const replaceExceptNumber = (str: string) => str.replace(/\\D/g, '');\n","module.exports = (__webpack_require__(7))(604);","import React from 'react';\nimport { Col, Row } from 'antd/lib/grid';\n\nimport { Pet } from '@app/objects/Pet';\nimport { ValueDisplay } from '@app/components/UI/ValueDisplay/ValueDisplay';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { WeightUnits } from '@app/objects/Crematory';\nimport { units } from '@app/utilities/units';\n\ninterface DefaultInfoProps {\n\titem: Pet;\n}\n\nexport const DefaultInfo: React.FC<DefaultInfoProps> = ({ item }: DefaultInfoProps) => {\n\tconst crematory = useCrematory(item.crematoryId);\n\tconst unit = crematory?.units?.weight ?? WeightUnits.Pounds;\n\tconst title = units[unit];\n\n\treturn (\n\t\t<Row gutter={[30, 16]}>\n\t\t\t<Col xs={24} sm={24} md={12}>\n\t\t\t\t<ValueDisplay\n\t\t\t\t\ttitle=\"Reported Weight\"\n\t\t\t\t\tvalue={`${item.reportedWeight.toFixed(1)}${title}`}\n\t\t\t\t/>\n\t\t\t</Col>\n\t\t\t<Col xs={24} sm={24} md={12}>\n\t\t\t\t<ValueDisplay\n\t\t\t\t\ttitle=\"Actual Weight\"\n\t\t\t\t\tvalue={`${item.actualWeight.toFixed(1)}${title}`}\n\t\t\t\t/>\n\t\t\t</Col>\n\t\t</Row>\n\t);\n};\n","export function warn() {\n if (console && console.warn) {\n var _console;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (typeof args[0] === 'string') args[0] = \"react-i18next:: \".concat(args[0]);\n\n (_console = console).warn.apply(_console, args);\n }\n}\nvar alreadyWarned = {};\nexport function warnOnce() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;\n if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();\n warn.apply(void 0, args);\n}\nexport function loadNamespaces(i18n, ns, cb) {\n i18n.loadNamespaces(ns, function () {\n if (i18n.isInitialized) {\n cb();\n } else {\n var initialized = function initialized() {\n setTimeout(function () {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n\n i18n.on('initialized', initialized);\n }\n });\n}\n\nfunction oldI18nextHasLoadedNamespace(ns, i18n) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var lng = i18n.languages[0];\n var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;\n var lastLng = i18n.languages[i18n.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n\n var loadNotPending = function loadNotPending(l, n) {\n var loadState = i18n.services.backendConnector.state[\"\".concat(l, \"|\").concat(n)];\n return loadState === -1 || loadState === 2;\n };\n\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;\n if (i18n.hasResourceBundle(lng, ns)) return true;\n if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n}\n\nexport function hasLoadedNamespace(ns, i18n) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce('i18n.languages were undefined or empty', i18n.languages);\n return true;\n }\n\n var isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;\n\n if (!isNewerI18next) {\n return oldI18nextHasLoadedNamespace(ns, i18n, options);\n }\n\n return i18n.hasLoadedNamespace(ns, {\n precheck: function precheck(i18nInstance, loadNotPending) {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n}\nexport function getDisplayName(Component) {\n return Component.displayName || Component.name || (typeof Component === 'string' && Component.length > 0 ? Component : 'Unknown');\n}","import { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { User } from '@app/objects/User';\n\nexport enum TypeOfCrematory {\n\tBoth = 0,\n\tAquamation = 1,\n\tFire = 2,\n}\n\nexport enum DemoRequestStatus {\n\tRequested = 0,\n\tScheduled = 1,\n\tCancelled = 2,\n\tCompleted = 3,\n}\n\nexport interface DemoRequestNote extends WithId {\n\ttext: string;\n\ttime: number;\n\tuser: Nullable<User>;\n\tuserId: number;\n}\n\nexport interface IDemoRequest extends WithId {\n\tname: string;\n\temail: string;\n\tphone: string;\n\tcrematory: string;\n\tpetsCount: number;\n\tclinicsCount: number;\n\tcontactTime: string;\n\tnotes: string;\n\ttime: number;\n\ttypeOfCrematory: number;\n\tstatus: DemoRequestStatus;\n\tdemoRequestNotes: Array<DemoRequestNote>;\n\tcountry: Nullable<string>;\n\tstate: Nullable<string>;\n\tcity: string;\n}\n","module.exports = (__webpack_require__(7))(539);","module.exports = (__webpack_require__(7))(1062);","module.exports = (__webpack_require__(7))(85);","import * as React from 'react';\nimport { RouteComponentProps } from 'react-router';\nimport {\n\twithRouter,\n\tgeneratePath,\n} from 'react-router-dom';\n\nimport Tabs, { TabsProps } from 'antd/lib/tabs';\n\nimport { parseQuery } from '@common/typescript/utils/url';\nimport { replaceSearchUrl } from '@common/react/components/Utils/Utils';\n\nexport enum TabMode {\n\tQuery = 0, // Store current tab as a query-param (?tab=key)\n\tLocation = 1, // Store current tab as location-param (/path/tab)\n}\n\ninterface BaseProps {\n\tmode?: TabMode;\n\tdefaultKey: string;\n\ttabsUrlKey: string;\n\n\tsearchParams?: Record<string, string>;\n}\n\ntype ComponentProps = TabsProps & BaseProps;\ntype Props = React.PropsWithChildren<unknown> & ComponentProps & RouteComponentProps<never>;\n\nconst propsAreEqual = (prevProps: React.PropsWithChildren<Props>, nextProps: React.PropsWithChildren<Props>) => {\n\tconst activeTab = parseQuery(prevProps.location.search)[prevProps.tabsUrlKey] || prevProps.defaultKey;\n\tconst newActiveTab = parseQuery(nextProps.location.search)[nextProps.tabsUrlKey] || nextProps.defaultKey;\n\n\treturn activeTab === newActiveTab;\n};\n\nfunction getTab(props: Props, keyRef: string): string {\n\tswitch (props.mode) {\n\tcase TabMode.Location:\n\t\treturn props.match.params[props.tabsUrlKey] || props.defaultKey;\n\n\tcase TabMode.Query:\n\tdefault: {\n\t\tconst query = parseQuery(props.location.search);\n\n\t\treturn query[props.tabsUrlKey] ?? keyRef;\n\t}\n\t}\n}\n\nconst Component: React.FC<Props> = (props: Props) => {\n\tconst {\n\t\thistory,\n\t\tlocation,\n\t\tmatch,\n\t\ttabsUrlKey,\n\t\tdefaultKey,\n\t\tonChange,\n\t\tmode,\n\t\tsearchParams,\n\t\titems,\n\t\t...rest\n\t} = props;\n\n\tconst keyRef = React.useRef<string>(defaultKey);\n\tconst [currentTab, setTab] = React.useState<string>(() => getTab(props, keyRef.current));\n\tconst onChangeHandler = (activeKey: string) => {\n\t\tconst search = searchParams && searchParams[activeKey] ? `${history.location.search}&${searchParams[activeKey]}` : '';\n\n\t\tif (mode === TabMode.Location) {\n\t\t\tconst params: Record<string, string> = currentTab === activeKey\n\t\t\t\t? { ...match.params as object, [tabsUrlKey]: activeKey }\n\t\t\t\t: { [tabsUrlKey]: activeKey }; // delete all parameters except /:tab if the user has changed the tab/page\n\t\t\tconst path = generatePath(match.path, params);\n\t\t\tconst config: Partial<Location> = {\n\t\t\t\thash: location.hash,\n\t\t\t\tpathname: path,\n\t\t\t};\n\n\t\t\tif (searchParams && searchParams[activeKey] && currentTab !== activeKey) config.search = search;\n\n\t\t\tif (currentTab === activeKey) config.search = history.location.search;\n\n\t\t\thistory.replace(config);\n\t\t} else {\n\t\t\tkeyRef.current = activeKey;\n\t\t\thistory.push({\n\t\t\t\t...history.location,\n\t\t\t\tpathname: history.location.pathname,\n\t\t\t\tsearch: currentTab === activeKey ? history.location.search : replaceSearchUrl(search, props.tabsUrlKey, activeKey),\n\t\t\t});\n\t\t}\n\t};\n\n\tReact.useEffect(() => {\n\t\tonChangeHandler(currentTab);\n\t}, []);\n\n\tReact.useEffect(() => {\n\t\tconst newActiveTab = getTab(props, keyRef.current);\n\n\t\tif (newActiveTab && newActiveTab !== currentTab) {\n\t\t\tsetTab(newActiveTab);\n\t\t\tonChange?.(newActiveTab);\n\t\t}\n\t}, [location]);\n\n\treturn (\n\t\t<Tabs {...rest} activeKey={currentTab} onChange={onChangeHandler} items={items} />\n\t);\n};\n\nconst TabsWithUrl: React.FC<Props> = React.memo(Component);\n\nexport default withRouter(TabsWithUrl);\n","module.exports = (__webpack_require__(7))(584);","module.exports = (__webpack_require__(7))(38);","export interface List<T> {\n\tcount: number;\n\texecution: number;\n\toffset: number;\n\tlist: Array<T>;\n}\n\nexport type Rows<T> = List<T>;\n\nexport const transformArrayToList = (items: any[]): List<any> => ({count: items.length, list: items, offset: 0, execution: 0});","import { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { InventoryItem } from '@app/objects/Inventory';\nimport { User } from '@app/objects/User';\n\nexport interface InventoryAdjustment extends WithId {\n\tinventoryItem: Nullable<InventoryItem>;\n\tinventoryItemId: number;\n\tadjustmentCode: Nullable<IAdjustmentCode>;\n\tadjustmentCodeId: number;\n\ttime: number;\n\tuser: Nullable<User>;\n\tuserId: number;\n\tvalue: number;\n\tnote: string;\n}\n\nexport enum AdjustmentAction {\n\tAddition = 0,\n\tSubtraction = 1,\n}\n\nexport interface IAdjustmentCode extends WithId {\n\tname: string;\n\tdescription: string;\n\tcrematoryId: number;\n\taction: AdjustmentAction;\n}\n\nexport enum InvoiceAdjustmentType {\n\tProduct = 0,\n\tService = 1,\n}\n\nexport interface InvoiceAdjustment extends WithId {\n\tclientId: string;\n\tname: string;\n\tdescription: string;\n\tvalue: number;\n\ttime: Nullable<number>;\n\tuser: Nullable<User>;\n\tuserId: Nullable<number>;\n\tadjustmentType: InvoiceAdjustmentType;\n\tdeleted: boolean;\n}\n\nexport interface DefaultAdjustment extends WithId {\n\tclinicId: number,\n\tadjustmentType: InvoiceAdjustmentType,\n\tname: string,\n\tdescription: string,\n\tvalue: number,\n\tvalueType: AdjustmentValueType,\n}\n\nexport enum AdjustmentValueType {\n\tAbsolute = 0,\n\tRelative = 1,\n}\n","// enums.ts\n/**\n * ## Enums.ts ##\n * This file contains some utility functions for utilities\n * @packageDocumentation\n */\n\n/**\n * pureEnum - makes TS enum 'pure' one: TS enums have both string and numeric values; 'Pure' enum only has string keys and numeric values.\n * TypeScript doesn't support enum decorators\n * So they are defined and used as pure functions\n * @typeParam T - enum type\n * @param enumeration - enum instance\n * @returns T\n */\nexport function pureEnum<T extends Record<string, unknown>>(enumeration: T): T {\n\tObject.keys(enumeration)\n\t\t.filter((key: string) => !Number.isNaN(Number(key)))\n\t\t.forEach((key) => {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(enumeration, key);\n\n\t\t\tif (descriptor) {\n\t\t\t\tdescriptor.enumerable = false;\n\t\t\t\tObject.defineProperty(enumeration, key, descriptor);\n\t\t\t}\n\t\t});\n\n\treturn enumeration;\n}\n","export const parseQuery = (queryString: string): {[key: string]: string} => {\n\tconst query = {};\n\tconst pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&');\n\t\n\tfor (let i = 0; i < pairs.length; i++) {\n\t\tconst pair = pairs[i].split('=');\n\t\tquery[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');\n\t}\n\treturn query;\n};","module.exports = (__webpack_require__(7))(24);","import { isRegExp, isString } from './is';\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str, max) {\n if (max === void 0) { max = 0; }\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : str.substr(0, max) + \"...\";\n}\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line, colno) {\n var newLine = line;\n var ll = newLine.length;\n if (ll <= 150) {\n return newLine;\n }\n if (colno > ll) {\n // eslint-disable-next-line no-param-reassign\n colno = ll;\n }\n var start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n var end = Math.min(start + 140, ll);\n if (end > ll - 5) {\n end = ll;\n }\n if (end === ll) {\n start = Math.max(end - 140, 0);\n }\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = \"'{snip} \" + newLine;\n }\n if (end < ll) {\n newLine += ' {snip}';\n }\n return newLine;\n}\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJoin(input, delimiter) {\n if (!Array.isArray(input)) {\n return '';\n }\n var output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (var i = 0; i < input.length; i++) {\n var value = input[i];\n try {\n output.push(String(value));\n }\n catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n return output.join(delimiter);\n}\n/**\n * Checks if the value matches a regex or includes the string\n * @param value The string value to be checked against\n * @param pattern Either a regex or a string that must be contained in value\n */\nexport function isMatchingPattern(value, pattern) {\n if (!isString(value)) {\n return false;\n }\n if (isRegExp(pattern)) {\n return pattern.test(value);\n }\n if (typeof pattern === 'string') {\n return value.indexOf(pattern) !== -1;\n }\n return false;\n}\n//# sourceMappingURL=string.js.map","import React from 'react';\nimport dayjs from 'dayjs';\nimport { useSelector } from 'react-redux';\n\nimport { ApplicationState } from '@app/store';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { RoleManager } from '@app/services/RoleManager';\n\ninterface DateViewProps {\n\tdate: number;\n\tformat?: string;\n}\n\nexport const DateView: React.FC<DateViewProps> = ({ date, format }: DateViewProps) => {\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst crematory = useCrematory();\n\tconst currentFormat = user && RoleManager.for(user.role).isAdmin() ? user.localeUserPreferences?.dateFormat : crematory?.dateFormat;\n\n\treturn <span>{dayjs(date).format(format ?? currentFormat)}</span>;\n};\n","import * as React from 'react';\n\nimport Select, { SelectProps } from 'antd/lib/select';\n\nimport { Value } from '@app/components/UI/Filters/FilterHook';\n\nexport interface GroupOption {\n\ttitle: string;\n\toptions: Array<Option>;\n}\n\nexport interface Option {\n\ttext: string;\n\tvalue: number | string;\n}\n\ninterface BaseProps {\n\twithFieldName?: boolean;\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\tsize?: SelectProps['size'];\n\tonDeselect?: (fieldName: string, type: string, id?: number) => void;\n\toptions: Array<Option>;\n\tfieldName: string;\n\tdeselectType: string;\n\tplaceholder?: string;\n\tfilterName: string;\n\tselectClassName?: (value: string | number | Array<number> | undefined, length: number) => string;\n\tallowClear?: boolean;\n\tgroup?: (items: Array<Option>) => Array<GroupOption>;\n\tdisabled?: boolean;\n}\n\ninterface MultipleProps extends BaseProps {\n\tvalue?: Array<number>;\n\tonChange: (values: Array<number>) => void;\n\tmultiple: boolean;\n}\n\ninterface SingleProps extends BaseProps {\n\tvalue?: Value;\n\tonChange: (value: number) => void;\n\tmultiple?: boolean;\n}\n\ntype OwnProps = MultipleProps | SingleProps\nconst { Option, OptGroup } = Select;\n\nfunction useOptions(options: Array<Option>, group?: (items: Array<Option>) => Array<GroupOption>) {\n\tif (group) {\n\t\treturn group(options).map((item: GroupOption) => (\n\t\t\t<OptGroup label={item.title} key={item.title}>\n\t\t\t\t{item.options.map((item: Option) => (\n\t\t\t\t\t<Option\n\t\t\t\t\t\tkey={item.value}\n\t\t\t\t\t\tvalue={Number(item.value)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{item.text}\n\t\t\t\t\t</Option>\n\t\t\t\t))}\n\t\t\t</OptGroup>\n\t\t));\n\t}\n\n\treturn options.map((item) => <Option key={item.value} value={Number(item.value)}>{item.text}</Option>);\n}\n\nexport const LocalSelect = (props: OwnProps): React.ReactElement => {\n\tconst {\n\t\tvalue,\n\t\tonChange,\n\t\twithFieldName,\n\t\tclassName,\n\t\tstyle,\n\t\tsize,\n\t\tmultiple = false,\n\t\tonDeselect,\n\t\toptions,\n\t\tfieldName,\n\t\tdeselectType,\n\t\tplaceholder,\n\t\tfilterName,\n\t\tselectClassName,\n\t\tallowClear = true,\n\t\tgroup,\n\t\tdisabled,\n\t} = props;\n\n\tconst [query, setQuery] = React.useState<string>('');\n\tconst currentOptions = useOptions(options, group);\n\n\tconst properties = {\n\t\tstyle,\n\t\tclassName: selectClassName ? selectClassName(value, query.length) : '',\n\t\tsize,\n\t\tshowArrow: true,\n\t\tshowSearch: true,\n\t\tallowClear,\n\t\tdisabled,\n\t\tshowAction: ['focus', 'click'],\n\t\tmode: multiple ? 'multiple' : 'default',\n\t\tplaceholder: placeholder ?? fieldName,\n\t\toptionFilterProp: 'children',\n\t\tonChange,\n\t\tvalue,\n\t\tchildren: currentOptions,\n\t\tonSearch: (query: string) => setQuery(query),\n\t\tonDeselect: (value: number) => onDeselect && onDeselect(filterName, deselectType, value),\n\t\tonSelect: () => setQuery(''),\n\t\tonBlur: () => setQuery(''),\n\t};\n\n\treturn (\n\t\t<div className={className}>\n\t\t\t{withFieldName && <span className=\"field-name\">{fieldName}</span>}\n\t\t\t<span className=\"ant-select-selection__placeholder\">{placeholder}</span>\n\t\t\t{\n\t\t\t\tprops.multiple\n\t\t\t\t\t? (<Select<Array<number>> {...(properties as SelectProps<Array<number>>)} />)\n\t\t\t\t\t: (<Select<number> {...(properties as SelectProps<number>)} />)\n\t\t\t}\n\t\t</div>\n\t);\n};\n","import React from 'react';\nimport { bindActionCreators } from 'redux';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { ApplicationState } from '@app/store';\nimport { getActionCreators } from '@app/store/SelectList/ListActions';\nimport { selectListRequest } from '@app/store/SelectList/SelectListRequests';\nimport { Country } from '@app/objects/Country';\n\nexport const useCountry = (code?: string, id?: number): Nullable<Country> => {\n\tconst dispatch = useDispatch();\n\tconst factory = bindActionCreators(getActionCreators('countries', selectListRequest.countries), dispatch);\n\tconst countries = useSelector((state: ApplicationState) => state.selects.countries.items);\n\n\tReact.useEffect(() => {\n\t\tif (!countries.length) factory.request(selectListRequest.countries.defaultFilters);\n\t}, [countries]);\n\n\treturn React.useMemo(() => countries.find((item) => item.id === id || item.alpha3 === code), [countries, id, code]);\n};\n","module.exports = (__webpack_require__(7))(1287);","import React from 'react';\nimport dayjs from 'dayjs';\nimport { useSelector } from 'react-redux';\n\nimport { ApplicationState } from '@app/store';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { RoleManager } from '@app/services/RoleManager';\n\ninterface TimeViewProps {\n\ttime: number;\n\tformat?: string;\n}\n\nexport const TimeView: React.FC<TimeViewProps> = ({ time, format }: TimeViewProps) => {\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst crematory = useCrematory();\n\tconst currentFormat = user && RoleManager.for(user.role).isAdmin() ? user.localeUserPreferences?.timeFormat : crematory?.timeFormat;\n\n\treturn <span>{dayjs(time).format(format ?? currentFormat)}</span>;\n};\n","module.exports = (__webpack_require__(7))(123);","import { WithId } from '@common/typescript/objects/WithId';\n\nexport enum CrematoryUserCounterEntity {\n\tStatus = 0,\n\tSpecialService = 1,\n}\n\nexport interface CrematoryUserCounter extends WithId {\n\ttitle: string;\n\tcount: number;\n\tentityId: number;\n}\n","import { BaseUser } from '@common/typescript/objects/BaseUser';\n\nexport interface FileInterface<TUser extends BaseUser = BaseUser> {\n\tdeleted: boolean;\n\textension: string;\n\tfileType: FileType;\n\tid: number;\n\tname: string;\n\tobjectId: number;\n\tsize: number;\n\tsrc: string;\n\tthumb: string;\n\ttime: number;\n\tuser?: TUser;\n\tuserId: number;\n\t_type: string;\n}\n\nexport enum FileType {\n\tAny = 0,\n\tFile = 1,\n\tAvatar = 2\n}\n","import * as React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\n\nimport { DeliveryTypeEntity } from '@app/objects/DeliveryType';\nimport { useCrematoryFeatures } from '@app/hooks/useCrematoryFeatures';\nimport { ApplicationState } from '@app/store';\nimport { CrematoryFeatures } from '@app/objects/CrematoryFeatures';\nimport { DeliveryTypeRecord, getActionCreators } from '@app/store/DeliveryTypes';\n\ninterface DeliveryTypes {\n\tmap: Map<number, DeliveryTypeEntity>;\n\tlist: Array<DeliveryTypeEntity>;\n\terror: Nullable<string>;\n\tloading: boolean;\n\n\tupdate: (item: Partial<DeliveryTypeEntity> & WithId) => void;\n\tdelete: (id: number) => void;\n\tcreate: (item: DeliveryTypeEntity) => void;\n\treload: (force?: boolean) => void;\n}\n\nfunction selector(state: ApplicationState, features: Optional<CrematoryFeatures>): DeliveryTypeRecord | undefined {\n\tif (!features?.enableCustomDeliveryType) return undefined;\n\n\treturn state.deliveryTypes[features.crematoryId];\n}\n\nfunction assert(name: string) {\n\treturn () => { throw new Error(`Function ${name} not implemented`); };\n}\n\nconst defaultItem: DeliveryTypes = {\n\tmap: new Map<number, DeliveryTypeEntity>(),\n\tlist: [],\n\terror: null,\n\tloading: false,\n\n\tupdate: assert('DeliveryTypes.update'),\n\tdelete: assert('DeliveryTypes.delete'),\n\tcreate: assert('DeliveryTypes.create'),\n\treload: assert('DeliveryTypes.reload'),\n};\n\nexport function useDeliveryTypes(): DeliveryTypes {\n\tconst features = useCrematoryFeatures();\n\tconst dispatch = useDispatch();\n\tconst store = useSelector((state: ApplicationState) => selector(state, features.item));\n\n\tReact.useEffect(() => {\n\t\tif (features.isLoading) return;\n\t\tif (!features.item?.crematoryId) return;\n\n\t\tconst actions = getActionCreators(features.item.crematoryId);\n\t\tdispatch(actions.request());\n\t}, [features.isLoading, features.item?.crematoryId, dispatch]);\n\n\treturn React.useMemo(() => {\n\t\tif (!features.item) return defaultItem;\n\n\t\tconst crematoryId = features.item.crematoryId;\n\t\tconst factory = getActionCreators(crematoryId);\n\n\t\treturn {\n\t\t\tmap: store?.map ?? new Map<number, DeliveryTypeEntity>(),\n\t\t\tlist: store?.map ? Array.from(store.map.values()) : [],\n\t\t\terror: store?.error ?? null,\n\t\t\tloading: Boolean(store && store.state !== 'idle'),\n\n\t\t\tupdate: (item: Partial<DeliveryTypeEntity> & WithId) => dispatch(factory.mutate({ item, crematoryId })),\n\t\t\tdelete: (id: number) => dispatch(factory.mutate({ item: { id, deleted: true }, crematoryId })),\n\t\t\tcreate: (item: DeliveryTypeEntity) => dispatch(factory.mutate({ item, crematoryId })),\n\t\t\treload: (force?: boolean) => dispatch(factory.request(force)),\n\t\t};\n\t}, [features.item?.crematoryId, store?.map, store?.error, store?.state, dispatch]);\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nexport interface LabelPaperMargins {\n\tleft: number;\n\tright: number;\n\ttop: number;\n\tbottom: number;\n}\n\nexport interface LabelPaperTypography {\n\ttitleFontSize: number;\n\theaderFontSize: number;\n\tbaseFontSize: number;\n}\n\nexport interface LabelPaper extends WithId {\n\tname: string;\n\tdescription: string;\n\n\tprintQr: boolean;\n\n\tcrematoryId: Nullable<number>;\n\n\tmargins: LabelPaperMargins;\n\tlabelMargins: LabelPaperMargins;\n\tlabelPaddings: LabelPaperMargins;\n\ttypography: LabelPaperTypography;\n\n\twidth: number;\n\theight: number;\n\torientation: Orientation;\n\tunit: LengthUnit;\n\n\trows: number;\n\tcolumns: number;\n\n\tspacing: Spacing;\n}\n\nexport enum Orientation {\n\tLandscape = 0,\n\tPortrait = 1,\n}\n\nexport enum LengthUnit {\n\tMillimeter = 0,\n\tCentimeter = 1,\n\tInch = 2,\n}\n\nexport interface Spacing {\n\tcolumn: number;\n\trow: number;\n}\n","import { Dispatch, Reducer } from 'redux';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { request } from '@app/components/Api';\nimport { AppThunkAction, ApplicationState } from '@app/store/index';\nimport { CrematoryFeatures } from '@app/objects/CrematoryFeatures';\n\nexport interface CrematoryFeaturesState<T = CrematoryFeatures> {\n\tisLoading: boolean;\n\titem: Nullable<T>;\n\terror: Nullable<string>;\n}\n\nconst defaultCrematoryFeaturesState: CrematoryFeaturesState = {\n\tisLoading: false,\n\titem: null,\n\terror: null,\n};\n\nexport enum ActionKeys {\n\tREQUESTCREMATORYFEATURES = 'REQUESTCREMATORYPREFERENCES',\n\tRECEIVECREMATORYFEATURES = 'RECEIVECREMATORYFEATURES',\n\tREQUESTCREMATORYFEATURESERROR = 'REQUESTCREMATORYFEATURESERROR',\n\tUPDATECREMATORYFEATURES = 'UPDATECREMATORYFEATURES',\n}\n\ninterface RequestCrematoryFeaturesAction {\n\ttype: ActionKeys.REQUESTCREMATORYFEATURES;\n}\n\ninterface ReceiveCrematoryFeaturesAction {\n\ttype: ActionKeys.RECEIVECREMATORYFEATURES;\n\titem: Nullable<CrematoryFeatures>;\n}\n\ninterface RequestCrematoryFeaturesErrorAction {\n\ttype: ActionKeys.REQUESTCREMATORYFEATURESERROR;\n\terror: Nullable<string>;\n}\n\ninterface UpdateCrematoryFeaturesAction {\n\ttype: ActionKeys.UPDATECREMATORYFEATURES;\n\titem: Nullable<CrematoryFeatures>;\n}\n\ntype KnownCrematoryFeaturesActions = RequestCrematoryFeaturesAction\n\t| ReceiveCrematoryFeaturesAction\n\t| UpdateCrematoryFeaturesAction\n\t| RequestCrematoryFeaturesErrorAction;\n\nexport interface CrematoryFeaturesActionCreators {\n\trequest: (id?: number) => AppThunkAction<KnownCrematoryFeaturesActions>;\n\tupdate: (item: Partial<CrematoryFeatures>) => (dispatch: Dispatch, getStore: GetState) => void;\n}\n\ntype GetState = () => ApplicationState;\nexport function getCrematoryFeaturesActionCreators() {\n\treturn {\n\t\trequest: (id?: number): AppThunkAction<KnownCrematoryFeaturesActions> => (dispatch, getStore: GetState) => {\n\t\t\tconst state = getStore().crematoryFeatures.item;\n\t\t\tif (id && state?.crematoryId === id) return;\n\n\t\t\tdispatch({\n\t\t\t\ttype: ActionKeys.REQUESTCREMATORYFEATURES,\n\t\t\t});\n\n\t\t\trequest<CrematoryFeatures>('getCrematoryFeatures', { crematoryId: id })\n\t\t\t\t.then((data: CrematoryFeatures) => {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionKeys.RECEIVECREMATORYFEATURES,\n\t\t\t\t\t\titem: data,\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch((error: string) => {\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: ActionKeys.REQUESTCREMATORYFEATURESERROR,\n\t\t\t\t\t\terror,\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t},\n\t\tupdate: (item: Partial<CrematoryFeatures>) => (dispatch, getStore: GetState) => {\n\t\t\tconst state = getStore().crematoryFeatures.item;\n\n\t\t\tif (!state) return;\n\n\t\t\tdispatch({\n\t\t\t\ttype: ActionKeys.UPDATECREMATORYFEATURES,\n\t\t\t\titem: { ...state, ...item },\n\t\t\t});\n\t\t},\n\t};\n}\n\nfunction getState(state: CrematoryFeaturesState, item: Nullable<CrematoryFeatures>) {\n\treturn {\n\t\t...state,\n\t\tisLoading: false,\n\t\titem,\n\t};\n}\nexport function getCrematoryFeaturesReducer(): Reducer<CrematoryFeaturesState, KnownCrematoryFeaturesActions> {\n\treturn (state: CrematoryFeaturesState = defaultCrematoryFeaturesState, action: KnownCrematoryFeaturesActions) => {\n\t\tswitch (action.type) {\n\t\tcase ActionKeys.REQUESTCREMATORYFEATURES:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisLoading: true,\n\t\t\t\titem: null,\n\t\t\t\terror: null,\n\t\t\t};\n\n\t\tcase ActionKeys.RECEIVECREMATORYFEATURES:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisLoading: false,\n\t\t\t\titem: action.item,\n\t\t\t};\n\n\t\tcase ActionKeys.UPDATECREMATORYFEATURES:\n\t\t\treturn getState(state, action.item);\n\n\t\tcase ActionKeys.REQUESTCREMATORYFEATURESERROR:\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisLoading: false,\n\t\t\t\terror: action.error,\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn state;\n\t\t}\n\t};\n}\n","import * as React from 'react';\nvar DisabledContext = /*#__PURE__*/React.createContext(false);\nexport var DisabledContextProvider = function DisabledContextProvider(_ref) {\n var children = _ref.children,\n disabled = _ref.disabled;\n var originDisabled = React.useContext(DisabledContext);\n return /*#__PURE__*/React.createElement(DisabledContext.Provider, {\n value: disabled !== null && disabled !== void 0 ? disabled : originDisabled\n }, children);\n};\nexport default DisabledContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nexport var SpaceCompactItemContext = /*#__PURE__*/React.createContext(null);\nexport var useCompactItemContext = function useCompactItemContext(prefixCls, direction) {\n var compactItemContext = React.useContext(SpaceCompactItemContext);\n var compactItemClassnames = React.useMemo(function () {\n if (!compactItemContext) return '';\n var compactDirection = compactItemContext.compactDirection,\n isFirstItem = compactItemContext.isFirstItem,\n isLastItem = compactItemContext.isLastItem;\n var separator = compactDirection === 'vertical' ? '-vertical-' : '-';\n return classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-compact\").concat(separator, \"item\"), true), \"\".concat(prefixCls, \"-compact\").concat(separator, \"first-item\"), isFirstItem), \"\".concat(prefixCls, \"-compact\").concat(separator, \"last-item\"), isLastItem), \"\".concat(prefixCls, \"-compact\").concat(separator, \"item-rtl\"), direction === 'rtl'));\n }, [prefixCls, direction, compactItemContext]);\n return {\n compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,\n compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,\n compactItemClassnames: compactItemClassnames\n };\n};\nexport var NoCompactStyle = function NoCompactStyle(_ref) {\n var children = _ref.children;\n return /*#__PURE__*/React.createElement(SpaceCompactItemContext.Provider, {\n value: null\n }, children);\n};\nvar CompactItem = function CompactItem(_a) {\n var children = _a.children,\n otherProps = __rest(_a, [\"children\"]);\n return /*#__PURE__*/React.createElement(SpaceCompactItemContext.Provider, {\n value: otherProps\n }, children);\n};\nvar Compact = function Compact(props) {\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n directionConfig = _React$useContext.direction;\n var _props$size = props.size,\n size = _props$size === void 0 ? 'middle' : _props$size,\n direction = props.direction,\n block = props.block,\n customizePrefixCls = props.prefixCls,\n className = props.className,\n children = props.children,\n restProps = __rest(props, [\"size\", \"direction\", \"block\", \"prefixCls\", \"className\", \"children\"]);\n var prefixCls = getPrefixCls('space-compact', customizePrefixCls);\n var clx = classNames(prefixCls, _defineProperty(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), directionConfig === 'rtl'), \"\".concat(prefixCls, \"-block\"), block), \"\".concat(prefixCls, \"-vertical\"), direction === 'vertical'), className);\n var compactItemContext = React.useContext(SpaceCompactItemContext);\n var childNodes = toArray(children);\n var nodes = React.useMemo(function () {\n return childNodes.map(function (child, i) {\n var key = child && child.key || \"\".concat(prefixCls, \"-item-\").concat(i);\n return /*#__PURE__*/React.createElement(CompactItem, {\n key: key,\n compactSize: size,\n compactDirection: direction,\n isFirstItem: i === 0 && (!compactItemContext || (compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.isFirstItem)),\n isLastItem: i === childNodes.length - 1 && (!compactItemContext || (compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.isLastItem))\n }, child);\n });\n }, [size, childNodes, compactItemContext]);\n // =========================== Render ===========================\n if (childNodes.length === 0) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clx\n }, restProps), nodes);\n};\nexport default Compact;","module.exports = (__webpack_require__(7))(15);","import * as React from 'react';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Pet } from '@app/objects/Pet';\nimport { DiffAction, DiffChange, PetDiffs } from '@app/objects/History';\nimport { renderChanges } from '@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetHistoryChange';\n\ninterface PetDiffListProps {\n\titem: Nullable<PetDiffs>;\n}\n\nexport const PetDiffList: React.FC<PetDiffListProps> = (props: PetDiffListProps) => {\n\tif (!props.item) return null;\n\n\tlet item: React.ReactNode = null;\n\tconst wrapperClassName = 'status-history__item-user history-item__user';\n\tswitch (props.item.diffAction) {\n\tcase DiffAction.Added:\n\t\titem = (\n\t\t\t<li\n\t\t\t\tkey={`${props.item.id}-added`}\n\t\t\t\tclassName={wrapperClassName}\n\t\t\t>\n\t\t\t\t<div>\n\t\t\t\t\tPet\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t);\n\t\tbreak;\n\n\tcase DiffAction.Deleted:\n\t\titem = (\n\t\t\t<li\n\t\t\t\tkey={`${props.item.id}-removed`}\n\t\t\t\tclassName={wrapperClassName}\n\t\t\t>\n\t\t\t\t<div>\n\t\t\t\t\tPet\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t);\n\t\tbreak;\n\n\tcase DiffAction.Updated:\n\t\titem = (\n\t\t\t<>\n\t\t\t\t{\n\t\t\t\t\tprops.item.changes.map((item: DiffChange<Pet>) => (\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tkey={item.diffRecordId}\n\t\t\t\t\t\t\tclassName={wrapperClassName}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t{renderChanges(item.key, item.before, item.after)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t))\n\t\t\t\t}\n\t\t\t</>\n\t\t);\n\t\tbreak;\n\n\tdefault:\n\t\titem = (\n\t\t\t<li\n\t\t\t\tkey={`${props.item.id}-unknown`}\n\t\t\t\tclassName={wrapperClassName}\n\t\t\t>\n\t\t\t\t<div>\n\t\t\t\t\tPet\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className=\"clearfix list-block\" style={{ fontWeight: 600 }}>\n\t\t\t<div className=\"pull-left\">\n\t\t\t\t<ul className=\"simple-list\">\n\t\t\t\t\t{item}\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div className=\"status-history__item-user history-item__user pull-right\">\n\t\t\t\t{DiffAction[props.item.diffAction]}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n","import * as React from 'react';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { DiffAction, DiffChange, PetPriceDiffs } from '@app/objects/History';\nimport { PetPrice } from '@app/objects/Pet';\nimport { PriceKind } from '@app/objects/Price';\nimport { renderChanges } from '@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetHistoryChange';\nimport { getOrderSuffix } from '@app/utilities/naturalLanguage';\n\ninterface PetPriceDiffListProps {\n\tlist: Nullable<Array<PetPriceDiffs>>;\n}\n\nexport function getName(item: PetPrice): string {\n\tconst type = item.price?.priceKind;\n\tlet name = item.name;\n\n\tif (type === PriceKind.Engraving) {\n\t\tconst order = (item.price?.order ?? 0) + 1;\n\n\t\tname = `Engraving ${order}${getOrderSuffix(order)} line`;\n\t}\n\n\treturn name;\n}\n\ninterface PetPriceChangesProps {\n\titem: PetPriceDiffs;\n}\n\nconst PetPriceChanges: React.FC<PetPriceChangesProps> = (props: PetPriceChangesProps) => {\n\tswitch (props.item.diffAction) {\n\tcase DiffAction.Updated:\n\t\treturn (\n\t\t\t<ul className=\"simple-list\">\n\t\t\t\t{\n\t\t\t\t\tprops.item.changes.map((i: DiffChange<PetPrice>) => (\n\t\t\t\t\t\t<li key={i.diffRecordId}>\n\t\t\t\t\t\t\t{renderChanges(i.key, i.before, i.after)}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t))\n\t\t\t\t}\n\t\t\t</ul>\n\t\t);\n\n\tcase DiffAction.Added:\n\tcase DiffAction.Deleted:\n\tdefault:\n\t\treturn null;\n\t}\n};\n\nexport const PetPriceDiffList: React.FC<PetPriceDiffListProps> = (props: PetPriceDiffListProps) => {\n\tif (!props.list?.length) return null;\n\n\treturn (\n\t\t<ul className=\"simple-list list-block\">\n\t\t\t{\n\t\t\t\tprops.list.map((item: PetPriceDiffs) =>\n\t\t\t\t\t(\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tkey={item.updateTransactionId}\n\t\t\t\t\t\t\tclassName=\"clearfix list-block\"\n\t\t\t\t\t\t\tstyle={{ fontWeight: 600 }}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div className=\"status-history__item-user history-item__user pull-left\">\n\t\t\t\t\t\t\t\t<div>{getName(item?.object)}</div>\n\t\t\t\t\t\t\t\t<PetPriceChanges item={item} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div className=\"status-history__item-user history-item__user pull-right\">\n\t\t\t\t\t\t\t\t{DiffAction[item.diffAction]}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t))\n\t\t\t}\n\t\t</ul>\n\t);\n};\n","import * as React from 'react';\n\nimport { PetUrn } from '@app/objects/Pet';\nimport { DiffAction, DiffChange, PetUrnDiffs } from '@app/objects/History';\nimport { renderChanges } from '@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetHistoryChange';\n\ninterface PetUrnDiffListProps {\n\tlist: Array<PetUrnDiffs>;\n}\n\nfunction getPetUrnDiffs(item: PetUrnDiffs): React.ReactNode {\n\tswitch (item.diffAction) {\n\tcase DiffAction.Updated:\n\t\treturn (\n\t\t\t<ul className=\"simple-list\">\n\t\t\t\t{item.changes.map((i: DiffChange<PetUrn>) => (\n\t\t\t\t\t<li key={i.diffRecordId}>\n\t\t\t\t\t\t{renderChanges(i.key, i.before, i.after)}\n\t\t\t\t\t</li>\n\t\t\t\t))}\n\t\t\t</ul>\n\t\t);\n\n\tcase DiffAction.Added:\n\tcase DiffAction.Deleted:\n\tdefault:\n\t\treturn null;\n\t}\n}\n\nexport const PetUrnDiffList: React.FC<PetUrnDiffListProps> = (props: PetUrnDiffListProps) => {\n\treturn (\n\t\t<ul className=\"simple-list list-block\">\n\t\t\t{props.list.map((item: PetUrnDiffs) => (\n\t\t\t\t<li\n\t\t\t\t\tkey={item.updateTransactionId}\n\t\t\t\t\tclassName=\"clearfix list-block\"\n\t\t\t\t\tstyle={{ fontWeight: 600 }}\n\t\t\t\t>\n\t\t\t\t\t<div className=\"status-history__item-user history-item__user pull-left\">\n\t\t\t\t\t\t<div>{item.object.category?.name ?? 'Unknown urn'}</div>\n\t\t\t\t\t\t{getPetUrnDiffs(item)}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"status-history__item-user history-item__user pull-right\">\n\t\t\t\t\t\t{DiffAction[item.diffAction]}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t))}\n\t\t</ul>\n\t);\n};\n","export interface ValueChange {\n\tkey: string;\n\toriginal: string;\n\tupdated: string;\n}\n\nexport interface ChangeRenderHandler {\n\tapply: (value: ValueChange) => boolean;\n\trender: (value: ValueChange) => ValueChange;\n}\n\nexport class ChangeRender {\n\tprivate _handlers: Array<ChangeRenderHandler> = [];\n\n\tpublic add(handler: ChangeRenderHandler) {\n\t\tthis._handlers.push(handler);\n\t}\n\n\tpublic render(key: string, original: string, updated: string): ValueChange {\n\t\tconst value = { key, original, updated };\n\t\tconst handlers = this._handlers.filter((item: ChangeRenderHandler) => item.apply(value));\n\t\tif (!handlers.length) return { key, original, updated };\n\n\t\treturn handlers.reduce((item: ValueChange, handler: ChangeRenderHandler) => handler.render(item), value);\n\t}\n}\n","import { ChangeRenderHandler, ValueChange } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/ChangeRenderHandler';\nimport { toWords } from '@app/components/Utils/Utils';\nimport { DeliveryType, ServiceType } from '@app/objects/Pet';\nimport { PriceType } from '@app/objects/Price';\n\nexport enum EnumType {\n\tDeliveryType = 'DeliveryType',\n\tServiceType = 'ServiceType',\n\tPriceType = 'PriceType',\n}\n\ninterface FormatValues {\n\tfrom: string;\n\tto: string;\n}\n\nfunction format(value: ValueChange): FormatValues {\n\tconst from = Number.parseFloat(value.original);\n\tconst to = Number.parseFloat(value.updated);\n\n\tswitch (value.key) {\n\tcase EnumType.DeliveryType:\n\t\treturn {\n\t\t\tfrom: DeliveryType[from],\n\t\t\tto: DeliveryType[to],\n\t\t};\n\tcase EnumType.PriceType:\n\t\treturn {\n\t\t\tfrom: PriceType[from],\n\t\t\tto: PriceType[to],\n\t\t};\n\tcase EnumType.ServiceType:\n\t\treturn {\n\t\t\tfrom: ServiceType[from],\n\t\t\tto: ServiceType[to],\n\t\t};\n\n\tdefault:\n\t\treturn {\n\t\t\tfrom: value.original,\n\t\t\tto: value.updated,\n\t\t};\n\t}\n}\n\nexport class EnumRenderHandler implements ChangeRenderHandler {\n\tpublic apply(value: ValueChange): boolean {\n\t\treturn value.key === EnumType[value.key];\n\t}\n\n\trender(value: ValueChange): ValueChange {\n\t\tconst obj = format(value);\n\n\t\treturn {\n\t\t\tkey: value.key,\n\t\t\toriginal: obj.from ? toWords(obj.from) : '',\n\t\t\tupdated: obj.to ? toWords(obj.to) : '',\n\t\t};\n\t}\n}\n","import { EnumType } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/EnumRenderHandler';\n\nexport enum ValueChangeKey {\n\tCount = 'Count',\n\tId = 'Id',\n\tInternalIdNum = 'InternalIdNum'\n}\n\nexport class KeyManager {\n\tprivate readonly _key: string;\n\n\tstatic for(key: string): KeyManager {\n\t\treturn new KeyManager(key);\n\t}\n\n\tpublic constructor(key: string) {\n\t\tthis._key = key;\n\t}\n\n\tpublic isCount(): boolean {\n\t\treturn this._key === ValueChangeKey.Count;\n\t}\n\n\tpublic isId(): boolean {\n\t\treturn this._key === ValueChangeKey.Id;\n\t}\n\n\tpublic isEnumGroup(): boolean {\n\t\treturn (Object.values(EnumType) as Array<string>).includes(this._key);\n\t}\n\n\tpublic isIntegerGroup(): boolean {\n\t\treturn this._key === ValueChangeKey.Count || this._key.includes(ValueChangeKey.Id);\n\t}\n\n\tpublic isInternalIdNum(): boolean {\n\t\treturn this._key === ValueChangeKey.InternalIdNum;\n\t}\n\n\tpublic is(oneOf: Array<ValueChangeKey>) {\n\t\treturn oneOf.some((item: ValueChangeKey) => this._key === item);\n\t}\n}\n","import { ChangeRenderHandler, ValueChange } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/ChangeRenderHandler';\nimport { KeyManager } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/KeyManager';\n\ninterface FormatValues {\n\tfrom: number;\n\tto: number;\n}\n\nfunction format(from: string, to: string): FormatValues {\n\treturn {\n\t\tfrom: Number.parseFloat(from),\n\t\tto: Number.parseFloat(to),\n\t};\n}\n\nexport class NumberRenderHandler implements ChangeRenderHandler {\n\tpublic apply(value: ValueChange): boolean {\n\t\tconst obj = format(value.original, value.updated);\n\n\t\treturn !Number.isNaN(obj.from)\n\t\t&& !Number.isNaN(obj.to)\n\t\t&& !KeyManager.for(value.key).isEnumGroup()\n\t\t&& !KeyManager.for(value.key).isInternalIdNum();\n\t}\n\n\trender(value: ValueChange): ValueChange {\n\t\tconst obj = format(value.original, value.updated);\n\n\t\tif (KeyManager.for(value.key).isIntegerGroup()) {\n\t\t\treturn {\n\t\t\t\tkey: value.key,\n\t\t\t\toriginal: obj.from.toFixed(0),\n\t\t\t\tupdated: obj.to.toFixed(0),\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tkey: value.key,\n\t\t\toriginal: obj.from.toFixed(2),\n\t\t\tupdated: obj.to.toFixed(2),\n\t\t};\n\t}\n}\n","import { ChangeRenderHandler, ValueChange } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/ChangeRenderHandler';\nimport { toWords } from '@app/components/Utils/Utils';\n\nexport class CamelCaseRenderHandler implements ChangeRenderHandler {\n\tapply(value: ValueChange): boolean {\n\t\treturn true;\n\t}\n\n\trender(value: ValueChange): ValueChange {\n\t\treturn {\n\t\t\tkey: toWords(value.key),\n\t\t\toriginal: value.original,\n\t\t\tupdated: value.updated,\n\t\t};\n\t}\n}\n","import * as React from 'react';\nimport {\n\tuseDispatch,\n} from 'react-redux';\n\nimport Pagination from 'antd/lib/pagination';\n\nimport { AlertMessage } from '@common/react/components/UI/AlertMessage/AlertMessage';\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { usePagination } from '@app/hooks/PaginationManager/PaginationManager';\nimport { useRemoteData } from '@app/hooks/RemoteDataProvider/RemoteDataProvider';\n\nimport { Pet } from '@app/objects/Pet';\nimport { DiffAction, UpdateTransaction } from '@app/objects/History';\n\nimport { formatUserName } from '@app/utilities/functionUtils';\nimport '@app/scss/ui/lists.scss';\n\nimport { bindItemActionCreators } from '@app/store/Item';\nimport { crematoryStoreName, getCrematoryEndpoint } from '@app/components/Pages/Crematories/CrematoryApi';\nimport { Crematory, getDefaultCrematory } from '@app/objects/Crematory';\nimport { PetDiffList } from '@app/components/Pages/PetEditor/OldPetEditorTabs/PetHistoryChangeComponents/PetDiffs';\nimport { PetPriceDiffList } from '@app/components/Pages/PetEditor/OldPetEditorTabs/PetHistoryChangeComponents/PriceDiffs';\nimport { PetUrnDiffList } from '@app/components/Pages/PetEditor/OldPetEditorTabs/PetHistoryChangeComponents/UrnDiffs';\nimport { DateView } from '@app/components/UI/Views/DateFormat/DateView';\nimport { TimeView } from '@app/components/UI/Views/TimeView/TimeView';\nimport { ChangeRender } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/ChangeRenderHandler';\nimport { NumberRenderHandler } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/NumberRenderHandler';\nimport {\n\tCamelCaseRenderHandler,\n} from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/CamelCaseRenderHandler';\nimport { EnumRenderHandler } from '@app/components/Pages/PetEditor/OldPetEditorTabs/ChangeRender/EnumRenderHandler';\n\nconst abortedError = 'signal is aborted without reason';\n\ninterface OwnProps {\n\tpet: Pet;\n\tpending?: boolean;\n\tonChange?: (isItem: boolean) => void;\n\tsetError?: (value: string | null) => void;\n\n\tfallback?: Nullable<React.ReactElement>\n\tfilter?: Array<DiffAction | undefined>;\n}\n\nfunction isUpdate(item: UpdateTransaction, filter: Array<DiffAction | undefined>): boolean {\n\tconst action = item.petDiff?.diffAction;\n\n\treturn filter.includes(action);\n}\n\nconst renderer: ChangeRender = new ChangeRender();\nrenderer.add(new EnumRenderHandler());\nrenderer.add(new NumberRenderHandler());\nrenderer.add(new CamelCaseRenderHandler());\n\nconst renderUserName = (item: UpdateTransaction) => formatUserName(item.user);\nexport const renderChanges = (key: string, initialValue: string, updatedValue: string) => {\n\tconst value = renderer.render(key, initialValue, updatedValue);\n\n\treturn `${value.key}: ${value.original} => ${value.updated}`;\n};\n\nconst getDiffList = (item: UpdateTransaction) => (\n\t<>\n\t\t<PetDiffList item={item.petDiff} />\n\t\t<PetPriceDiffList\n\t\t\tlist={item.petPriceDiffs}\n\t\t/>\n\t\t<PetUrnDiffList list={item.petUrnDiffs} />\n\t</>\n);\n\ninterface UpdateTransactionListFilters {\n\tfrom?: Nullable<number>;\n\tto?: Nullable<number>;\n\tpetId: number;\n\tunconfirmedChanges?: boolean;\n}\n\ninterface UpdateTransactionListMessage {\n\twithUser?: boolean;\n\twithPetDiffs?: boolean;\n\twithPet?: boolean;\n\twithPetPriceDiffs?: boolean;\n\twithPetPrice?: boolean;\n\twithPetUrnDiffs?: boolean;\n\twithPetUrn?: boolean;\n\tfilters?: Nullable<UpdateTransactionListFilters>;\n}\n\nconst additionalParams: Omit<UpdateTransactionListMessage, 'filters'> = {\n\twithUser: true,\n\twithPetDiffs: true,\n\twithPetPrice: true,\n\twithPetPriceDiffs: true,\n\twithPetUrnDiffs: true,\n\twithPetUrn: true,\n};\n\nconst styles = { border: '2px solid #FFD700' };\nconst defaultItem: Crematory = getDefaultCrematory();\n\nexport const OldPetHistoryChange: React.FC<OwnProps> = (props: OwnProps) => {\n\tconst { pet, pending } = props;\n\tconst dispatch = useDispatch();\n\tconst factory = React.useMemo(() => bindItemActionCreators(dispatch), [dispatch]);\n\n\tReact.useEffect(() => {\n\t\tfactory.loadItem(crematoryStoreName, getCrematoryEndpoint, pet.crematoryId, defaultItem, {\n\t\t\tid: pet.crematoryId,\n\t\t});\n\t}, [pet.crematoryId]);\n\n\tconst params: UpdateTransactionListMessage = React.useMemo(() => ({\n\t\t...additionalParams,\n\t\tfilters: {\n\t\t\tpetId: pet.id,\n\t\t\tunconfirmedChanges: pending,\n\t\t},\n\t}), [pet.id, pending]);\n\n\tconst request = useRemoteData<UpdateTransaction, UpdateTransactionListMessage>({\n\t\tendpoint: 'updateTransactionList',\n\t\tshouldRefetch: false,\n\t\tusePagination: () => usePagination({ perPage: 5 }),\n\t}, params);\n\n\tReact.useEffect(() => {\n\t\trequest.fetch(params);\n\t}, [params]);\n\n\tconst items: Array<UpdateTransaction> = React.useMemo(() => {\n\t\tif (props.filter) return request.items.filter((item: UpdateTransaction) => isUpdate(item, props.filter!));\n\n\t\treturn request.items;\n\t}, [request.items, props.filter]);\n\n\tReact.useEffect(() => {\n\t\tprops.onChange?.(items.length > 0);\n\t}, [items]);\n\n\tReact.useEffect(() => {\n\t\tprops.setError?.(request.error);\n\t}, [request.error]);\n\n\tif (request.loading) return <Loading />;\n\tif (!request.loading && request.error && request.error !== abortedError) return <AlertMessage message={request.error} />;\n\tif (!request.items || items.length === 0) return props.fallback ?? null;\n\n\treturn (\n\t\t<>\n\t\t\t<ul className=\"status-history history-list\">\n\t\t\t\t{items.map((item: UpdateTransaction) => (\n\t\t\t\t\t<li\n\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\tclassName=\"status-history__item history-item\"\n\t\t\t\t\t\tstyle={pet.currentStatus?.time && item.time > pet.currentStatus?.time ? styles : undefined}\n\t\t\t\t\t>\n\t\t\t\t\t\t<div className=\"status-history__item-user history-item__user\">\n\t\t\t\t\t\t\t{renderUserName(item)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"status-history__item-date history-item__date\">\n\t\t\t\t\t\t\t<DateView date={item.time} /> <TimeView time={item.time} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{getDiffList(item)}\n\t\t\t\t\t</li>\n\t\t\t\t))}\n\t\t\t</ul>\n\t\t\t<Pagination\n\t\t\t\ttotal={request.pagination.total}\n\t\t\t\thideOnSinglePage\n\t\t\t\tpageSize={request.pagination.perPage}\n\t\t\t\tonChange={(value: number) => request.onPageChange(value - 1)}\n\t\t\t\tcurrent={request.pagination.page + 1}\n\t\t\t\tstyle={{ textAlign: 'center' }}\n\t\t\t\tsize=\"small\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nOldPetHistoryChange.defaultProps = {\n\tfallback: <div className=\"text-center\"><i>History is empty</i></div>,\n};\n","module.exports = (__webpack_require__(7))(102);","module.exports = (__webpack_require__(7))(191);","import { WeightUnits } from '@app/objects/Crematory';\n\nexport const units: Record<WeightUnits, string> = {\n\t[WeightUnits.Kilograms]: 'kg',\n\t[WeightUnits.Pounds]: 'lb',\n};\n\nabstract class WeightUnit {\n\t/* Name of main unit (for example - lb) */\n\tpublic abstract name: string;\n\n\t/* Name of fraction unit (for example - oz) */\n\tpublic abstract fractionName: string;\n\n\t/* Convert from main unit to fraction unit */\n\tpublic abstract unitToFraction(value: number): number;\n}\n\n/**\n * PoundUnit - perform operations with pounds\n */\nclass PoundUnit extends WeightUnit {\n\tpublic name: string = 'lb';\n\tpublic fractionName: string = 'oz';\n\n\tpublic unitToFraction(value: number): number {\n\t\treturn value * 16;\n\t}\n}\n\n/**\n * KiloUnit - perform operations with kilograms\n */\nclass KiloUnit extends WeightUnit {\n\tpublic name: string = 'kg';\n\tpublic fractionName: string = 'g';\n\n\tpublic unitToFraction(value: number): number {\n\t\treturn value * 1000;\n\t}\n}\n\nexport function toUnit(unit: WeightUnits): WeightUnit {\n\tswitch (unit) {\n\tcase WeightUnits.Kilograms: return new KiloUnit();\n\tcase WeightUnits.Pounds: return new PoundUnit();\n\n\tdefault:\n\t\tthrow new Error(`Unknown unit: ${unit}`);\n\t}\n}\n","import { getParams, loadable, loadableDelay } from '@common/react/loadable/loadableSettings';\n\nexport const OldPetInventoryUsageTab = loadable(\n\t() =>\n\t\tloadableDelay(import(\n\t\t\t'@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetInventoryUsage'\n\t\t)),\n\tgetParams('OldPetInventoryUsage'),\n);\n\nexport const OldPetImportNotesTab = loadable(\n\t() =>\n\t\tloadableDelay(import(\n\t\t\t'@app/components/Pages/PetEditor/OldPetEditorTabs/PetImportNotes/OldPetImportNotes'\n\t\t)),\n\tgetParams('OldPetImportNotes'),\n);\n\nexport const OldPetHistoryChangeTab = loadable(\n\t() =>\n\t\tloadableDelay(import(\n\t\t\t'@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetHistoryChange'\n\t\t)),\n\tgetParams('OldPetHistoryChange'),\n);\n\nexport const OldPetStatusLogTab = loadable(\n\t() =>\n\t\tloadableDelay(import(\n\t\t\t'@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetStatusLog'\n\t\t)),\n\tgetParams('OldPetStatusLog'),\n);\n\nexport const OldPetEmailLogTab = loadable(\n\t() =>\n\t\tloadableDelay(import(\n\t\t\t'@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetEmailLog'\n\t\t)),\n\tgetParams('OldPetEmailLog'),\n);\n","import React from 'react';\nimport clsx from 'clsx';\n\nimport { BackButton } from '@app/components/UI/Header/PageHeaders/BackButton';\n\ninterface Props {\n\tchildren: React.ReactNode;\n}\n\ninterface ListComponent extends React.FC<Props> {\n\tHeader: ListHeaderComponent;\n}\n\ntype ListHeaderType = React.FC<Props>;\ntype ListHeaderProps = Props & { className?: string };\ntype ListHeaderTitleProps = Props & { backPath?: string }\ntype ListHeaderTitleType = React.FC<ListHeaderTitleProps>;\ninterface ListHeaderComponent extends React.FC<ListHeaderProps> {\n\tTitle: ListHeaderTitleType;\n\tSubtitle: ListHeaderType;\n\tActions: ListHeaderType;\n}\n\nexport const List: ListComponent = ({ children }: Props) => {\n\treturn <>{children}</>;\n};\n\nconst ListHeader: ListHeaderComponent = ({ children, className }: ListHeaderProps) => {\n\treturn <div className={clsx('x-list__header', className)}>{children}</div>;\n};\n\nconst ListHeaderTitle: ListHeaderTitleType = ({ children, backPath }: ListHeaderTitleProps) => {\n\treturn (\n\t\t<div>\n\t\t\t{backPath && <BackButton backPath={backPath} />}\n\t\t\t<h1 className=\"x-list__header__title\">{children}</h1>\n\t\t</div>\n\t);\n};\n\nconst ListHeaderSubtitle: ListHeaderType = ({ children }: Props) => {\n\treturn <h2 className=\"x-list__header__subtitle\">{children}</h2>;\n};\n\nconst ListHeaderActions: ListHeaderType = ({ children }: Props) => {\n\treturn <div className=\"x-list__header__actions\">{children}</div>;\n};\n\nList.Header = ListHeader;\nListHeader.Title = ListHeaderTitle;\nListHeader.Subtitle = ListHeaderSubtitle;\nListHeader.Actions = ListHeaderActions;\n","module.exports = (__webpack_require__(7))(582);","module.exports = (__webpack_require__(7))(29);","module.exports = (__webpack_require__(7))(30);","import { FormValuesNode } from '@app/components/Pages/Inventory/StoreEntries/StoreEntryEditor/StoreEntryEditor';\nimport { StoreEntry, StoreEntryNode } from '@app/objects/StoreEntry';\n\nexport function getPath(node: FormValuesNode, tree: Array<FormValuesNode>): Array<FormValuesNode> {\n\tconst list: Array<FormValuesNode> = [];\n\n\tlet current = node;\n\twhile (current) {\n\t\tlist.push(current);\n\t\tcurrent = tree.find((item: FormValuesNode) => item.stamp === current.parentStamp);\n\t}\n\n\treturn list;\n}\n\nexport function getName(path: Array<FormValuesNode>): string {\n\tconst segments = path.map((item: FormValuesNode) => item.name);\n\tif (segments.length <= 1) return segments.reverse().join(' ');\n\n\tconst entity = segments.pop()!;\n\tconst reversed = segments.reverse();\n\treversed.push(entity);\n\n\treturn reversed.join(' ');\n}\n\nexport function getFullName(path: Array<FormValuesNode>): string {\n\treturn path\n\t\t.map((item: FormValuesNode) => item.name)\n\t\t.reverse()\n\t\t.join(' / ');\n}\n\nexport function flatten(root: FormValuesNode): Array<FormValuesNode> {\n\tconst result: Array<FormValuesNode> = [];\n\tconst stack: Array<FormValuesNode> = [root];\n\n\twhile (stack.length) {\n\t\tconst item = stack.pop();\n\t\tif (!item) return result;\n\n\t\tresult.push(item);\n\t\titem.children.forEach((child: FormValuesNode) => stack.push(child));\n\t}\n\n\treturn result;\n}\n\nexport function remove(list: Array<FormValuesNode>, root: FormValuesNode): Array<FormValuesNode> {\n\tconst queue: Array<FormValuesNode> = [root];\n\tconst ids: Array<string> = [];\n\n\twhile (queue.length) {\n\t\tconst node = queue.pop()!;\n\t\tids.push(node.stamp);\n\t\tqueue.unshift(...node.children);\n\t}\n\n\treturn list.map((item: FormValuesNode) => {\n\t\tif (!ids.includes(item.stamp)) return item;\n\n\t\treturn { ...item, disabled: true };\n\t});\n}\n\nexport function restore(list: Array<FormValuesNode>, root: FormValuesNode): Array<FormValuesNode> {\n\tconst queue: Array<FormValuesNode> = [root];\n\tconst ids: Array<string> = [];\n\n\twhile (queue.length) {\n\t\tconst node = queue.pop()!;\n\t\tids.push(node.stamp);\n\t\tqueue.unshift(...node.children);\n\t}\n\n\treturn list.map((item: FormValuesNode) => {\n\t\tif (!ids.includes(item.stamp)) return item;\n\n\t\treturn { ...item, disabled: false };\n\t});\n}\n\nexport function sanitizeNodeLinks(node: StoreEntryNode): StoreEntryNode {\n\treturn {\n\t\t...node,\n\t\tparent: null,\n\t\tchildren: [],\n\t};\n}\n\nexport function toggle(list: Array<FormValuesNode>, root: FormValuesNode, removed: boolean): Array<FormValuesNode> {\n\treturn removed ? remove(list, root) : restore(list, root);\n}\n\nexport function sanitizeTreeLinks(entry: StoreEntry): StoreEntry {\n\tconst result = {\n\t\t...entry,\n\t\ttree: entry.tree.map(sanitizeNodeLinks),\n\t};\n\n\tfor (let i = 0; i < result.tree.length; i++) {\n\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t// @ts-ignore\n\t\tresult.tree[i].entry = null;\n\t\tresult.tree[i].value = null;\n\t}\n\n\treturn result;\n}\n\nexport function getParent(list: Array<FormValuesNode>, item: FormValuesNode) {\n\treturn list.find((i) => i?.stamp === item?.parentStamp);\n}\n","module.exports = (__webpack_require__(7))(21);","module.exports = (__webpack_require__(7))(27);","import { TFunction } from 'react-i18next';\n\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { WithFile } from '@common/typescript/objects/WithFile';\n\nimport { CrematoryMachine } from '@app/objects/Crematory';\nimport { InventoryItem } from '@app/objects/Inventory';\nimport { User } from '@app/objects/User';\nimport { BatchInventoryUsage } from '@app/objects/InventoryUsage/BatchInventoryUsage';\n\nexport enum BatchActionType {\n\tBoth = 0,\n\tCommunal = 1,\n\tPrivate = 2,\n\tSemiprivate = 3,\n}\n\nexport interface BatchPet extends WithId {\n\tname: string;\n\tactualWeight: number;\n\treportedWeight: number;\n\tposition: string;\n}\n\nexport interface BatchChemical extends WithId {\n\tchemical: InventoryItem | null;\n\tchemicalId: number;\n\n\tsuggestedValue: number;\n\trealValue: number;\n}\n\nexport interface BatchPetUpdateMessage extends WithId { // pet id\n\tbatchMachineLocation: string;\n}\nexport interface BatchAction extends WithId {\n\tcreator: User | null;\n\tcreatorId: number;\n\tcreatedDate: number;\n\tcreationNotes: string;\n\n\tfinisher: User | null;\n\tfinisherId: number | null;\n\tfinishedDate: number;\n\tfinishNotes: string;\n\n\tmachine: CrematoryMachine | null;\n\tmachineId: number;\n\n\ttotalWeight: number;\n\tinventoryUsage: Array<BatchInventoryUsage>;\n\n\tname?: string;\n\tactualWeight?: number;\n\treportedWeight?: number;\n\tposition?: number | string;\n\n\tfiles: Array<WithFile<BatchAction>>;\n\tbatchActionType: BatchActionType;\n}\n\nexport function getBatchTypeName(batchType: BatchActionType, t: TFunction): string {\n\tlet type: string = '';\n\n\tswitch (batchType) {\n\tcase BatchActionType.Both:\n\t\treturn t('enums.batch-type.both');\n\n\tcase BatchActionType.Private:\n\t\ttype = t('enums.batch-type.private');\n\t\tbreak;\n\n\tcase BatchActionType.Communal:\n\t\ttype = t('enums.batch-type.communal');\n\t\tbreak;\n\tcase BatchActionType.Semiprivate:\n\t\ttype = t('enums.batch-type.semiprivate');\n\t\tbreak;\n\n\tdefault:\n\t\treturn 'Unknown Batch Type';\n\t}\n\n\treturn type;\n}\n","module.exports = (__webpack_require__(7))(14);","import * as React from 'react';\nvar isValidElement = React.isValidElement;\nexport { isValidElement };\nexport function isFragment(child) {\n return child && isValidElement(child) && child.type === React.Fragment;\n}\nexport function replaceElement(element, replacement, props) {\n if (!isValidElement(element)) {\n return replacement;\n }\n return /*#__PURE__*/React.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);\n}\nexport function cloneElement(element, props) {\n return replaceElement(element, element, props);\n}","import { createContext } from 'react';\n\ninterface NotificationMessage {\n\terror: (msg: string) => void;\n\tsuccess: (msg: string) => void;\n\tinfo: (msg: string) => void;\n}\n\nexport interface Services {\n\trequest: <T>(endpoint: string, data?: any) => Promise<T>;\n\tmessages: NotificationMessage;\n}\n\nfunction fail(msg: string) {\n\tthrow msg;\n}\n\nconst CommonContext = createContext<Services>({\n\tmessages: {\n\t\terror: (msg: string) => fail(`No error function; Params: ${msg}`),\n\t\tinfo: (msg: string) => fail(`No info function; Params: ${msg}`),\n\t\tsuccess: (msg: string) => fail(`No success function; Params: ${msg}`),\n\t},\n\trequest: (endpoint: string, data?: any) => {\n\t\tfail(`No request function; Params: ${endpoint}; ${data}`);\n\n\t\treturn Promise.reject('Mock request function');\n\t},\n});\n\nexport default CommonContext;\n","import React from 'react';\n\nimport { v4 } from 'uuid';\nimport {\n\tField, FieldProps, Form, Formik,\n\tuseFormikContext,\n} from 'formik';\nimport Table, { ColumnProps } from 'antd/lib/table';\nimport Search from 'antd/lib/input/Search';\nimport Input from 'antd/lib/input';\n\nimport { Nullable, isPresent } from '@common/typescript/objects/Nullable';\nimport TableBuilder from '@common/react/utils/Helpers/TableBuilder';\nimport { MobileCell } from '@common/react/components/Pages/ItemsPage';\nimport { AlertMessage } from '@common/react/components/UI/AlertMessage/AlertMessage';\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\n\nimport { ModalWrapper } from '@app/components/UI/Modal/Modal';\nimport { Price, PriceType } from '@app/objects/Price';\nimport { PetPrice, ServiceType } from '@app/objects/Pet';\nimport { useRequest } from '@app/hooks/useRequest';\nimport { ModalControls } from '@app/hooks/Editors/useModal';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\n\ninterface SpecialServiceDialogProps {\n\tmodal: ModalControls;\n\n\tselection: Array<number>;\n\tonChangeSelection: (value: Array<number>) => void;\n\n\titems?: Array<PetPrice>;\n\tserviceType: ServiceType;\n\tpriceType: PriceType;\n\tcrematoryId: number;\n\tclinicId?: Nullable<number>;\n\tpetId: number;\n}\n\ninterface Base {\n\tpendingOnly: boolean;\n}\n\ninterface ExistingPetProps extends Base {\n\tpetId: number;\n\texcluding: Array<number>;\n\tfilters: {\n\t\tname: string;\n\t};\n}\n\ninterface CreatePetProps extends Base {\n\tpet: {\n\t\tcrematoryId: number;\n\t\tpriceType: PriceType;\n\t\tserviceType: ServiceType;\n\t\tclinicId: Nullable<number>;\n\t};\n\tfilters: {\n\t\tname: string;\n\t};\n}\n\ntype ServiceProps = ExistingPetProps | CreatePetProps;\n\nfunction isAvailable(item: Price, picked: Array<PetPrice>, available: Array<Price>, petId: number): boolean {\n\tif (picked.filter((item: PetPrice) => !item.removed).find((q: PetPrice) => q.priceId === item.id)) return false;\n\n\treturn petId < 1 || !!available.find((q: Price) => q.specialServiceId === item.specialServiceId);\n}\n\nfunction sortServices(a: Price, b: Price): number {\n\tif (!a.specialService || !b.specialService) return 0;\n\tif (a.specialService.name > b.specialService.name) return 1;\n\n\treturn -1;\n}\n\nfunction getExcluding(list?: Array<PetPrice>): Array<number> {\n\tif (!list) return [];\n\n\tconst ids = list\n\t\t.filter((item: PetPrice) => !item.removed)\n\t\t.map((item: PetPrice) => item.price?.specialServiceId)\n\t\t.filter(isPresent);\n\n\treturn Array.from(new Set(ids));\n}\n\nexport function getPetPrice(services: Array<Price>, petId: number): Array<PetPrice> {\n\treturn services.map((item: Price) => ({\n\t\tid: -1,\n\t\tclientId: v4(),\n\t\tdeleted: false,\n\n\t\tpriceId: item.id,\n\t\tprice: item,\n\n\t\tpet: null,\n\t\tpetId,\n\n\t\tcount: 1,\n\t\tcompletedCount: 0,\n\t\tdone: false,\n\n\t\tvalue: item.batchCount > 0 ? item.batchPrice : item.value,\n\t\textra: item.batchCount > 0 ? 0 : item.value,\n\t\ttax: 0,\n\t\tdiscount: 0,\n\n\t\tbatchCount: item.batchCount,\n\t\tbatchPrice: item.batchPrice,\n\n\t\tnode: null,\n\t\tnodeId: null,\n\n\t\tname: item.specialService?.name ?? 'Special Service',\n\t\teditor: null,\n\t\teditorId: null,\n\n\t\tpickupService: null,\n\t\tpickupServiceId: null,\n\n\t\tnote: item.specialService?.defaultNote ?? '',\n\t}));\n}\n\nexport const getPrice = (value: number): string => {\n\tif (value === 0) return 'for Free';\n\n\treturn `at $${value.toFixed(2)}`;\n};\n\n// Add Special Service dialog columns\nconst columns: Array<ColumnProps<Price>> = TableBuilder.shape<Price>()\n\t.addColumn({\n\t\ttitle: <b>Name</b>,\n\t\tdataIndex: ['specialService', 'name'],\n\t})\n\t.addColumn({\n\t\ttitle: <b>Description</b>,\n\t\tdataIndex: ['specialService', 'description'],\n\t})\n\t.addColumn({\n\t\ttitle: <b>Note</b>,\n\t\tdataIndex: ['specialService', 'defaultNote'],\n\t\trender: (_, record: Price, index) => {\n\t\t\tif (!record.specialService?.hasNote) return null;\n\n\t\t\treturn (\n\t\t\t\t<Field name={`${index}.specialService.defaultNote`}>\n\t\t\t\t\t{({ field, form, meta }: FieldProps<string, Price>) => (\n\t\t\t\t\t\t<FormikInput\n\t\t\t\t\t\t\tfieldProps={{ field, form, meta }}\n\t\t\t\t\t\t\tcontainerClassName=\"\"\n\t\t\t\t\t\t\trender={({ field, form }) => (\n\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\tvalue={field.value}\n\t\t\t\t\t\t\t\t\tid={field.name}\n\t\t\t\t\t\t\t\t\tonClick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t\tonChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name, e.currentTarget.value);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</Field>\n\t\t\t);\n\t\t},\n\t})\n\t.addColumn({\n\t\ttitle: '',\n\t\tdataIndex: 'value',\n\t\talign: 'right',\n\t\trender: (value: number, record: Price) => {\n\t\t\tconst batchCount: Nullable<number> = record.batchCount ?? null;\n\t\t\tconst batchPrice: Nullable<number> = record.batchPrice ?? null;\n\t\t\tconst withBatch = batchCount !== null && batchPrice !== null;\n\n\t\t\tconst batchDescription = withBatch ? `${batchCount} ${getPrice(batchPrice)}` : null;\n\t\t\tconst additionalDescription = `Each additional - $${value.toFixed(2)}`;\n\n\t\t\treturn (\n\t\t\t\t<MobileCell caption=\"\" fullWidth>\n\t\t\t\t\t{withBatch && batchCount! > 0 ? <div>{batchDescription}</div> : null}\n\t\t\t\t\t<div>{additionalDescription}</div>\n\t\t\t\t</MobileCell>\n\t\t\t);\n\t\t},\n\t})\n\t.build();\n\nexport const SpecialServiceDialog: React.FC<SpecialServiceDialogProps> = (props: SpecialServiceDialogProps) => {\n\tconst [query, setQuery] = React.useState<string>('');\n\tconst [services, setServices] = React.useState<Array<Price>>(() => []);\n\tconst { initialValues, setFieldValue, values } = useFormikContext<PetFormValues>();\n\n\tconst availableServices = useRequest<Array<Price>, ServiceProps>('availableSpecialServiceList', undefined, { requestOnMount: false });\n\n\tconst excludingSpecialServices = React.useMemo(() => ({\n\t\texcluding: getExcluding(props.items),\n\t}), [props.items]);\n\n\tconst params: Pick<CreatePetProps, 'pet'> | Pick<ExistingPetProps, 'petId'> = React.useMemo(() => {\n\t\tconst values = {\n\t\t\tpet: {\n\t\t\t\tcrematoryId: props.crematoryId,\n\t\t\t\tserviceType: props.serviceType,\n\t\t\t\tpriceType: props.priceType,\n\t\t\t\tclinicId: props.clinicId ?? null,\n\t\t\t},\n\t\t};\n\n\t\tconst isEqual = initialValues.clinicId !== props.clinicId\n\t\t\t|| initialValues.crematoryId !== props.crematoryId\n\t\t\t|| initialValues.priceType !== props.priceType\n\t\t\t|| initialValues.serviceType !== props.serviceType;\n\n\t\tif (props.petId > 0 && !isEqual) return { petId: props.petId };\n\n\t\treturn values;\n\t}, [\n\t\tprops.serviceType,\n\t\tprops.priceType,\n\t\tprops.crematoryId,\n\t\tprops.clinicId,\n\t\tprops.petId,\n\t\tinitialValues.priceType,\n\t\tinitialValues.serviceType,\n\t\tinitialValues.crematoryId,\n\t\tinitialValues.clinicId,\n\t]);\n\n\tReact.useEffect(() => {\n\t\tif (!props.modal.state) return;\n\n\t\tavailableServices.reload({\n\t\t\tfilters: { name: query },\n\t\t\t...params,\n\t\t\t...excludingSpecialServices,\n\t\t\tpendingOnly: true,\n\t\t});\n\t}, [props.serviceType, props.priceType, props.crematoryId, props.clinicId, props.petId, query, props.modal.state]);\n\n\tReact.useEffect(() => {\n\t\tif (props.modal.state) {\n\t\t\tconst available: Array<Price> = availableServices.item ?? [];\n\n\t\t\tsetServices([...available].sort(sortServices));\n\t\t}\n\t}, [props.items, availableServices.item, props.modal.state]);\n\n\treturn (\n\t\t<Formik\n\t\t\tinitialValues={services}\n\t\t\tonSubmit={(val: Array<Price>) => {\n\t\t\t\tconst selectedServices = val.filter((i) => props.selection.includes(i.id));\n\t\t\t\tconst diff = selectedServices.filter((v: Price) => !props.items?.find((i: PetPrice) => v.id === i.priceId));\n\t\t\t\tconst result: Array<PetPrice> = (values.services ?? [])?.map((service: PetPrice) => {\n\t\t\t\t\tif (props.selection.includes(service.priceId) && service.removed) return { ...service, removed: false };\n\n\t\t\t\t\treturn service;\n\t\t\t\t});\n\n\t\t\t\tsetFieldValue('services', [...result, ...getPetPrice(diff, props.petId)]);\n\t\t\t\tprops.modal.close();\n\t\t\t\tsetQuery('');\n\t\t\t\tprops.onChangeSelection([]);\n\t\t\t}}\n\t\t\tenableReinitialize\n\t\t>\n\t\t\t{(formikBag) => (\n\t\t\t\t<Form id=\"services-modal-from\">\n\t\t\t\t\t<ModalWrapper\n\t\t\t\t\t\ttitle=\"Add Special Service\"\n\t\t\t\t\t\tmodalClassName=\"services-modal\"\n\t\t\t\t\t\tisOpened={props.modal.state}\n\t\t\t\t\t\tonOk={formikBag.submitForm}\n\t\t\t\t\t\tonCancel={() => {\n\t\t\t\t\t\t\tprops.modal.close();\n\t\t\t\t\t\t\tsetQuery('');\n\t\t\t\t\t\t\tprops.onChangeSelection([]);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\twidth=\"60%\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Search\n\t\t\t\t\t\t\tallowClear\n\t\t\t\t\t\t\tplaceholder=\"Search by Name\"\n\t\t\t\t\t\t\tonSearch={(value: string) => setQuery(value)}\n\t\t\t\t\t\t\tstyle={{ marginBottom: '10px' }}\n\t\t\t\t\t\t\tenterButton\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Table\n\t\t\t\t\t\t\tcolumns={columns}\n\t\t\t\t\t\t\tdataSource={formikBag.values}\n\t\t\t\t\t\t\tpagination={{\n\t\t\t\t\t\t\t\ttotal: services.length,\n\t\t\t\t\t\t\t\tpageSize: 20,\n\t\t\t\t\t\t\t\thideOnSinglePage: true,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\trowSelection={{\n\t\t\t\t\t\t\t\tselectedRowKeys: props.selection,\n\t\t\t\t\t\t\t\tonChange: (selection: Array<React.Key>) => {\n\t\t\t\t\t\t\t\t\tprops.onChangeSelection(selection as Array<number>);\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tgetCheckboxProps: (item: Price) => ({\n\t\t\t\t\t\t\t\t\tdisabled: !isAvailable(item, (props.items ?? []), (availableServices.item ?? []), props.petId),\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tonRow={(record) => ({\n\t\t\t\t\t\t\t\tonClick: (event) => {\n\t\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\t\tconst isSelect = props.selection.includes(record.id);\n\t\t\t\t\t\t\t\t\tif (!isSelect) {\n\t\t\t\t\t\t\t\t\t\tprops.onChangeSelection([...props.selection, record.id]);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tprops.onChangeSelection(props.selection.filter((s) => s !== record.id));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\tloading={availableServices.loading}\n\t\t\t\t\t\t\tchildrenColumnName=\"child\"\n\t\t\t\t\t\t\trowKey=\"id\"\n\t\t\t\t\t\t\tclassName=\"table-mobile pets-table\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<AlertMessage message={availableServices.error} />\n\t\t\t\t\t</ModalWrapper>\n\t\t\t\t</Form>\n\t\t\t)}\n\t\t</Formik>\n\t);\n};\n","import * as React from 'react';\n\nimport * as dayjs from 'dayjs';\nimport { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';\n\nimport { DatePicker } from '@common/react/components/Forms/Pickers/index';\n\nconst { RangePicker } = DatePicker;\n\nconst disabledAfterToday = (currentDate: dayjs.Dayjs | null) => (currentDate ? currentDate.isAfter(dayjs(), 'day') : false);\n\nconst disabledBeforeToday = (currentDate: dayjs.Dayjs | null) => (currentDate ? currentDate.isBefore(dayjs(), 'day') : false);\n\nexport const disabledFrom = (from: number | null, withoutToday?: boolean) => (currentDate?: dayjs.Dayjs) => (\n\tcurrentDate ? (!withoutToday && currentDate.isBefore(dayjs(), 'day') || (from !== null ? currentDate.isBefore(dayjs(from), 'day') : false)) : false\n);\n\nexport const disabledTo = (to: number | null, withoutToday?: boolean) => (currentDate?: dayjs.Dayjs) => (\n\tcurrentDate ? (!withoutToday && currentDate.isAfter(dayjs(), 'day') || (to !== null ? currentDate.isAfter(dayjs(to), 'day') : false)) : false\n);\n\ninterface ComponentProps {\n\tformat?: string;\n\tdisabledDate?: (currentDate: dayjs.Dayjs | null) => boolean;\n\tmaxDateToday?: boolean;\n\tminDateToday?: boolean;\n\tlocale?: any;\n\tdateRender?: (current: dayjs.Dayjs, today: dayjs.Dayjs) => React.ReactNode;\n}\n\ntype AntdProps<T> = T & { showTime?: boolean }\nexport interface DatepickerProps extends ComponentProps {\n\tvalue: number | null;\n\tonChange: (date: number | null) => void;\n\tantdProps?: AntdProps<DatePickerProps>;\n}\n\ninterface RangepickerProps extends ComponentProps {\n\tvalue: [number, number] | null;\n\tonChange: (date: [number, number] | null) => void;\n\tantdProps?: AntdProps<RangePickerProps>;\n}\n\nconst Datepicker: React.FC<DatepickerProps> =\n\t({ value, onChange, format = 'MM/DD/YYYY', maxDateToday, minDateToday, disabledDate, locale, antdProps = {}, dateRender}) => {\n\t\t// tslint:disable-next-line:no-parameter-reassignment\n\t\tif (maxDateToday) disabledDate = disabledAfterToday;\n\n\t\t// tslint:disable-next-line:no-parameter-reassignment\n\t\tif (minDateToday) disabledDate = disabledBeforeToday;\n\n\t\tconst defaultValue = value !== null && value !== undefined ? dayjs(value) : undefined;\n\n\t\tconst innerOnChange = (date: dayjs.Dayjs | null) => {\n\t\t\tonChange(date === null ? null : +date);\n\t\t};\n\n\t\treturn (\n\t\t\t<div className=\"datepicker-component\">\n\t\t\t\t<DatePicker\n\t\t\t\t\t{...antdProps}\n\t\t\t\t\tformat={antdProps && antdProps?.showTime ? 'MM/DD/YYYY HH:mm' : format}\n\t\t\t\t\tonChange={innerOnChange}\n\t\t\t\t\tdisabledDate={disabledDate}\n\t\t\t\t\tlocale={locale}\n\t\t\t\t\tvalue={defaultValue}\n\t\t\t\t\tgetPopupContainer={antdProps.getPopupContainer}\n\t\t\t\t\tdateRender={dateRender}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t};\n\nexport const Rangepicker: React.FC<RangepickerProps> =\n\t({\n\t\tvalue, onChange, format = 'MM/DD/YYYY', maxDateToday, minDateToday, disabledDate, locale, antdProps = {},\n\t}) => {\n\t\tconst innerOnChange = (date: any) => {\n\t\t\tonChange(date.length === 2 ? [+date[0], +date[1]] : null);\n\t\t};\n\n\t\t// tslint:disable-next-line:no-parameter-reassignment\n\t\tif (maxDateToday) disabledDate = disabledAfterToday;\n\n\t\t// tslint:disable-next-line:no-parameter-reassignment\n\t\tif (minDateToday) disabledDate = disabledBeforeToday;\n\n\t\tlet defaultValue;\n\n\t\tif (value !== null && value[0] !== null && value[0] !== undefined && value[1] !== null && value[1] !== undefined ) {\n\t\t\tdefaultValue = [dayjs(value[0] as number), dayjs(value[1] as number)];\n\t\t} else {\n\t\t\tdefaultValue = [undefined, undefined];\n\t\t}\n\n\t\treturn (\n\t\t\t<div className=\"datepicker-component\">\n\t\t\t\t<RangePicker\n\t\t\t\t\t{...antdProps}\n\t\t\t\t\tformat={antdProps && antdProps.showTime ? 'MM/DD/YYYY HH:mm' : format}\n\t\t\t\t\tonChange={innerOnChange}\n\t\t\t\t\tdisabledDate={disabledDate}\n\t\t\t\t\tlocale={locale}\n\t\t\t\t\tdefaultValue={defaultValue}\n\t\t\t\t\tgetPopupContainer={antdProps.getPopupContainer}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t};\n\nexport default Datepicker;\n","module.exports = (__webpack_require__(7))(7);","import { ResponseError } from '@common/react/components/Api/RequestError';\nimport { addTask } from '@common/react/components/Api/Fetch';\n\n/**\n * wrapError is used to extract error message from ResponseError\n * This really shouldn't be used this way, but for sake of compatability it is preserved\n * @param {Promise<T>} task - request task\n * @returns {Promise<T>} - request task with error being string (message) instead of RequestError object\n */\nexport function wrapError<T>(task: Promise<T>): Promise<T> {\n\treturn task.catch((error: ResponseError) => {\n\t\tif (error.message === 'Access denied' && window) {\n\t\t\twindow.location.href = '/';\n\t\t}\n\n\t\tconsole.log(error.message);\n\n\t\tthrow error.message as string;\n\t});\n}\n\n/**\n * wrapDomain adds request task to domainTasks array\n * This way request should be awaited before SSR renders page and sends it to client.\n * @param {Promise<T>} task - request task\n * @returns {Promise<T>} - task that's been added to domain task array\n */\nexport function wrapDomain<T>(task: Promise<T>): Promise<T> {\n\taddTask(task);\n\n\treturn task;\n}\n","import { ActionCreatorsMapObject, Reducer } from 'redux';\n\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { request } from '@common/react/components/Api';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BaseParams } from '@common/react/objects/BaseParams';\n\nimport { BaseApplicationState, BaseAppThunkAction } from '@common/react/store';\n\nexport interface ItemState<T extends WithId> {\n\tisLoading: boolean;\n\tid: number | null;\n\titemPathOrId: string | number | null;\n\titem: T | null;\n}\n\nconst defaultItemState = {\n\tisLoading: false,\n\tid: null,\n\titemPathOrId: null,\n\titem: null,\n};\n\nexport enum TypeKeys {\n\tREQUESTITEM = 'REQUESTITEM',\n\tRECEIVEITEM = 'RECEIVEITEM',\n\tREMOVEITEM = 'REMOVEITEM',\n}\n\ninterface RequestItemAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.REQUESTITEM;\n\tstorageName: (keyof TApplicationState) | null;\n\titemPathOrId: string | number;\n}\n\ninterface ReceiveItemAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.RECEIVEITEM;\n\tstorageName: (keyof TApplicationState) | null;\n\titem: T | null;\n}\n\ninterface RemoveItemAction<TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.REMOVEITEM;\n\tstorageName: (keyof TApplicationState) | null;\n}\n\nexport type KnownPageAction<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n> = RequestItemAction<T, TUser, TApplicationState>\n\t| ReceiveItemAction<T, TUser, TApplicationState>\n\t| RemoveItemAction<TUser, TApplicationState>;\n\ntype MergeFunction<T extends WithId> = (oldItem: T, newItem: Partial<T>) => T;\n\nexport interface IActionCreators<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n> extends ActionCreatorsMapObject<BaseAppThunkAction<KnownPageAction<T, TUser, TApplicationState>, TUser, TApplicationState, Promise<T> | void>> {\n\tloadItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tendpoint: string,\n\t\titemPathOrId: string | number,\n\t\tdefaultItem: TEntity,\n\t\tadditionalParams?: BaseParams,\n\t\tcustomCheck?: (storeState: ItemState<TEntity & {_type: string}>) => boolean\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState, Promise<TEntity>>;\n\tupdateItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tdata: Partial<TEntity>,\n\t\tcheckProp?: keyof TEntity,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tmergeItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tdata: Partial<TEntity>,\n\t\tmerge: MergeFunction<TEntity>,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tremoveItem: <TEntity extends WithId = T>(type: keyof TApplicationState) =>\n\t\tBaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n}\n\nexport interface IMappedActionCreators<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n> extends ActionCreatorsMapObject<Promise<T> | void> {\n\tloadItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tendpoint: string,\n\t\titemPathOrId: string | number,\n\t\tdefaultItem: TEntity,\n\t\tadditionalParams?: BaseParams,\n\t\tcustomCheck?: (storeState: ItemState<TEntity & {_type: string}>) => boolean\n\t) => Promise<TEntity>;\n\tupdateItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tdata: Partial<TEntity>,\n\t\tcheckProp?: keyof TEntity,\n\t) => void;\n\tmergeItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tdata: Partial<TEntity>,\n\t\tmerge: MergeFunction<TEntity>,\n\t) => void;\n\tremoveItem: <TEntity extends WithId = T>(type: keyof TApplicationState) => void;\n}\n\n// TODO: I think we'd better use StoreName as Generic param for getActionCreators and getReducer; This way we won't need to pass it everytime\n// Also should think of ways to check that state[store] is ItemState<T>;\n\nexport function getActionCreators<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n>(): IActionCreators<T, TUser, TApplicationState> {\n\ttype ReturnType<\n\t\tTEntity extends WithId = T,\n\t\tTResult = void,\n\t> = BaseAppThunkAction<\n\t\tKnownPageAction<TEntity, TUser, TApplicationState>,\n\t\tTUser,\n\t\tTApplicationState,\n\t\tTResult\n\t>;\n\n\t// It is easier to read this way rather than when everything is {loadItem: (params): ReturnType => (dispatch, getState) => {functionBody()}}\n\t// eslint-disable-next-line sonarjs/cognitive-complexity\n\tfunction loadItem<TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tendpoint: string,\n\t\titemPathOrId: string | number,\n\t\tdefaultItem: TEntity,\n\t\tadditionalParams: BaseParams = {},\n\t\tcustomCheck?: (storeState: ItemState<TEntity & {_type: string}>) => boolean,\n\t): ReturnType<TEntity, Promise<TEntity>> {\n\t\treturn (dispatch, getState): Promise<TEntity> => {\n\t\t\t// TODO: Not that good. Should think of better solution.\n\t\t\t// Problem here is we check that store is a field in TApplicationState, but we don't validate that it's of type ItemState<T>\n\t\t\tconst storeState = getState()[store] as unknown as ItemState<TEntity & {_type: string}>;\n\t\t\tconst isNumber = Number.isFinite(itemPathOrId);\n\n\t\t\tconst conditional = customCheck\n\t\t\t\t? customCheck(storeState)\n\t\t\t\t: (isNumber && storeState.id !== +itemPathOrId)\n\t\t\t\t|| (!isNumber && storeState.itemPathOrId !== itemPathOrId)\n\t\t\t\t// This shit is not obvious at all. Why should we call Store same way as Type?\n\t\t\t\t// eslint-disable-next-line no-underscore-dangle\n\t\t\t\t|| (storeState.item && storeState.item._type && storeState.item._type.toLowerCase() !== (store as string).toLowerCase());\n\n\t\t\tif (conditional) {\n\t\t\t\tif (+itemPathOrId > 0 || (!isNumber && itemPathOrId !== '')) {\n\t\t\t\t\tconst params = isNumber\n\t\t\t\t\t\t? { id: +itemPathOrId, ...additionalParams }\n\t\t\t\t\t\t: { path: itemPathOrId, ...additionalParams };\n\n\t\t\t\t\t// TODO: should use dependency injection and request injected by ClientApp instead of unknown -> (T | null) conversion\n\t\t\t\t\tconst fetchTask = request(\n\t\t\t\t\t\tendpoint,\n\t\t\t\t\t\tparams,\n\t\t\t\t\t\tgetState(),\n\t\t\t\t\t).then((data: unknown) => {\n\t\t\t\t\t\tconst item = data as (TEntity | null);\n\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.RECEIVEITEM,\n\t\t\t\t\t\t\tstorageName: store,\n\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn item ?? defaultItem;\n\t\t\t\t\t});\n\n\t\t\t\t\tdispatch({ type: TypeKeys.REQUESTITEM, storageName: store, itemPathOrId });\n\n\t\t\t\t\treturn fetchTask;\n\t\t\t\t}\n\n\t\t\t\tdispatch({ type: TypeKeys.RECEIVEITEM, storageName: store, item: defaultItem || {} });\n\n\t\t\t\treturn Promise.resolve(defaultItem);\n\t\t\t}\n\n\t\t\treturn Promise.resolve(storeState.item as TEntity);\n\t\t};\n\t}\n\n\tfunction updateItem<\n\t\tTEntity extends WithId = T\n\t>(store: keyof TApplicationState, data: Partial<TEntity>, checkProp?: keyof TEntity): ReturnType<TEntity> {\n\t\treturn (dispatch, getState) => {\n\t\t\t// Same think as above\n\t\t\tconst storeState = getState()[store] as unknown as ItemState<TEntity>;\n\t\t\tconst item = storeState.item;\n\n\t\t\t// Can't update item that is null\n\t\t\tif (item === null) return;\n\t\t\t// Do not update if action is intended for other item\n\t\t\tconst id = (data as WithId).id;\n\t\t\tif (id && id !== item.id) return;\n\n\t\t\tif (!checkProp || (checkProp && item && data[checkProp] === item[checkProp])) {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.RECEIVEITEM,\n\t\t\t\t\tstorageName: store,\n\t\t\t\t\titem: { ...item, ...data },\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t}\n\n\tfunction mergeItem<TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tdata: Partial<TEntity>,\n\t\tmerge: MergeFunction<TEntity>,\n\t) {\n\t\treturn (dispatch, getState) => {\n\t\t\tconst state = getState()[store] as unknown as ItemState<TEntity>;\n\t\t\tconst item = state.item;\n\n\t\t\t// Can't merge Partial<T> with null\n\t\t\tif (item === null) return;\n\n\t\t\tconst id = (data as WithId).id;\n\t\t\tif (id && id !== item.id) return;\n\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.RECEIVEITEM,\n\t\t\t\tstorageName: store,\n\t\t\t\titem: merge(item, data),\n\t\t\t});\n\t\t};\n\t}\n\n\tfunction removeItem<TEntity extends WithId = T>(store: keyof TApplicationState): ReturnType<TEntity> {\n\t\treturn (dispatch) => {\n\t\t\tdispatch({ type: TypeKeys.REMOVEITEM, storageName: store });\n\t\t};\n\t}\n\n\treturn {\n\t\tloadItem,\n\t\tupdateItem,\n\t\tmergeItem,\n\t\tremoveItem,\n\t};\n}\n\ntype T = Pick<{a: string, b: string}, 'a'>\n\nexport function getReducer<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n>(storageName: keyof TApplicationState): Reducer<ItemState<T>, KnownPageAction<T, TUser, TApplicationState>> {\n\treturn (state: ItemState<T> = defaultItemState, action: KnownPageAction<T, TUser, TApplicationState>) => {\n\t\tif (!action.storageName || action.storageName === storageName) {\n\t\t\tswitch (action.type) {\n\t\t\tcase TypeKeys.REQUESTITEM:\n\t\t\t\treturn {\n\t\t\t\t\tisLoading: true,\n\t\t\t\t\titem: state.item,\n\t\t\t\t\tid: Number(action.itemPathOrId),\n\t\t\t\t\titemPathOrId: action.itemPathOrId,\n\t\t\t\t};\n\n\t\t\tcase TypeKeys.RECEIVEITEM:\n\t\t\t\treturn {\n\t\t\t\t\tisLoading: false,\n\t\t\t\t\titem: action.item,\n\t\t\t\t\tid: typeof action.item?.id !== 'undefined' ? action.item.id : state.id,\n\t\t\t\t\titemPathOrId: null,\n\t\t\t\t};\n\n\t\t\tcase TypeKeys.REMOVEITEM:\n\t\t\t\treturn {\n\t\t\t\t\tisLoading: false, item: null, id: null, itemPathOrId: null,\n\t\t\t\t};\n\n\t\t\tdefault:\n\t\t\t\treturn state;\n\t\t\t}\n\t\t}\n\n\t\treturn state;\n\t};\n}\n","import { Reducer } from 'redux';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { List } from '@common/typescript/objects/List';\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { DeliveryTypeEntity } from '@app/objects/DeliveryType';\nimport { AppThunkAction, ApplicationState } from '@app/store/index';\nimport { request } from '@app/components/Api';\n\n/**\n * Per-crematory map of delivery types\n*/\nexport interface DeliveryTypeRecord {\n\tmap: Map<number, DeliveryTypeEntity>;\n\tstate: 'querying' | 'mutating' | 'idle';\n\terror: Nullable<string>;\n\ttotal: number;\n\tcontroller?: AbortController;\n}\n\nfunction getDefaultRecord(): DeliveryTypeRecord {\n\treturn {\n\t\tmap: new Map<number, DeliveryTypeEntity>(),\n\t\tstate: 'idle',\n\t\terror: null,\n\t\ttotal: 0,\n\t\tcontroller: undefined,\n\t};\n}\n\n/**\n * Root DeliveryType store containing record for multiple crematories\n */\nexport type DeliveryTypeState = Partial<Record<number, DeliveryTypeRecord>>;\n\nexport enum ActionKeys {\n\tREQUESTDELIVERYTYPES = 'REQUESTDELIVERYTYPES',\n\tRECEIVEDELIVERYTYPES = 'RECEIVEDELIVERYTYPES',\n\tRECEIVEDELIVERYTYPESERROR = 'RECEIVEDELIVERYTYPESERROR',\n\tMUTATEDELIVERYTYPES = 'MUTATEDELIVERYTYPES',\n}\n\ninterface PayloadBase {\n\tcrematoryId: number;\n}\n\ninterface RequestPayload extends PayloadBase {\n\tcontroller: AbortController;\n}\n\ninterface RequestAction {\n\ttype: ActionKeys.REQUESTDELIVERYTYPES;\n\tpayload: RequestPayload;\n}\n\ninterface ReceiveErrorPayload extends PayloadBase {\n\terror: Nullable<string>;\n}\n\ninterface ReceiveErrorAction {\n\ttype: ActionKeys.RECEIVEDELIVERYTYPESERROR;\n\tpayload: ReceiveErrorPayload;\n}\n\ninterface ReceiveListPayload extends PayloadBase {\n\tlist: List<DeliveryTypeEntity>;\n}\n\ninterface ReceiveListAction {\n\ttype: ActionKeys.RECEIVEDELIVERYTYPES;\n\tpayload: ReceiveListPayload;\n}\n\ninterface MutatePayload extends PayloadBase {\n\tcontroller: AbortController;\n}\n\ninterface MutateItemAction {\n\ttype: ActionKeys.MUTATEDELIVERYTYPES;\n\tpayload: MutatePayload;\n}\n\ntype KnownActions = RequestAction\n\t| ReceiveErrorAction\n\t| ReceiveListAction\n\t| MutateItemAction;\n\ntype ActionResult = AppThunkAction<KnownActions>\ntype GetState = () => ApplicationState;\ntype Dispatch = (action: KnownActions) => void;\n\ntype InsertData = Omit<DeliveryTypeEntity, 'id'> & { id: -1, deleted: never };\ntype UpdateData = Partial<DeliveryTypeEntity> & WithId;\ntype DeleteData = WithId & { deleted: true };\ninterface MutateData extends PayloadBase {\n\titem: InsertData | UpdateData | DeleteData;\n}\n\nexport interface ActionCreators {\n\trequest: (force?: boolean) => ActionResult;\n\tmutate: (mutation: MutateData) => ActionResult;\n}\n\nconst fetchParams = {\n\tcount: 100,\n\toffset: 0,\n};\n\nexport function getActionCreators(crematoryId: number): ActionCreators {\n\tconst createController = (getState: GetState): AbortController => {\n\t\tconst state = getState();\n\t\tconst record = state.deliveryTypes[crematoryId];\n\n\t\trecord?.controller?.abort();\n\t\tconst controller = new AbortController();\n\n\t\t// This is a tricky thing. We should not mutate record directly\n\t\t// We do not need this field to rerender site.\n\t\t// But we do need any feature requests to cancel this one as soon as possible\n\t\tif (record) {\n\t\t\trecord.controller = controller;\n\t\t}\n\n\t\treturn controller;\n\t};\n\n\t/**\n\t * Make a request to get delivery types for a particular crematory\n\t * @param {boolean} force force request. By default if data is already fetched - it would not be refetched\n\t * @param {Dispatch} dispatch Redux dispatch function\n\t * @param {GetState} getState Function returning current redux state\n\t * @returns {Promise<void>}\n\t */\n\tconst query = (force: boolean, dispatch: Dispatch, getState: GetState) => {\n\t\tconst state = getState();\n\t\tconst record = state.deliveryTypes[crematoryId];\n\n\t\tif (!force && record) return Promise.resolve();\n\n\t\tconst controller = createController(getState);\n\n\t\tdispatch({\n\t\t\ttype: ActionKeys.REQUESTDELIVERYTYPES,\n\t\t\tpayload: {\n\t\t\t\tcrematoryId,\n\t\t\t\tcontroller,\n\t\t\t},\n\t\t});\n\n\t\treturn request<List<DeliveryTypeEntity>>('deliveryTypeList', fetchParams, state, controller.signal)\n\t\t\t.then((list: List<DeliveryTypeEntity>) => {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionKeys.RECEIVEDELIVERYTYPES,\n\t\t\t\t\tpayload: {\n\t\t\t\t\t\tcrematoryId,\n\t\t\t\t\t\tlist,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t})\n\t\t\t.catch((error: Error) => {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionKeys.RECEIVEDELIVERYTYPESERROR,\n\t\t\t\t\tpayload: {\n\t\t\t\t\t\tcrematoryId,\n\t\t\t\t\t\terror: error?.message,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t});\n\t};\n\n\treturn {\n\t\trequest: (force: boolean = false): ActionResult => (dispatch: Dispatch, getState: GetState) => query(force, dispatch, getState),\n\n\t\tmutate(mutation: MutateData): ActionResult {\n\t\t\treturn (dispatch: Dispatch, getState: GetState) => {\n\t\t\t\tconst controller = createController(getState);\n\t\t\t\tconst state = getState();\n\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: ActionKeys.MUTATEDELIVERYTYPES,\n\t\t\t\t\tpayload: {\n\t\t\t\t\t\tcrematoryId,\n\t\t\t\t\t\tcontroller,\n\t\t\t\t\t},\n\t\t\t\t});\n\n\t\t\t\tlet task: Promise<void>;\n\n\t\t\t\tif (mutation.item.id < 0) {\n\t\t\t\t\t// Add new mutation\n\t\t\t\t\ttask = request('createDeliveryType', mutation.item, state, controller.signal);\n\t\t\t\t} else if ((mutation.item as DeleteData).deleted) {\n\t\t\t\t\ttask = request('deleteDeliveryType', mutation.item, state, controller.signal);\n\t\t\t\t} else {\n\t\t\t\t\ttask = request('updateDeliveryType', mutation.item, state, controller.signal);\n\t\t\t\t}\n\n\t\t\t\treturn task\n\t\t\t\t\t.then(() => query(true, dispatch, getState))\n\t\t\t\t\t.catch((error: Error) => {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: ActionKeys.RECEIVEDELIVERYTYPESERROR,\n\t\t\t\t\t\t\tpayload: {\n\t\t\t\t\t\t\t\tcrematoryId,\n\t\t\t\t\t\t\t\terror: error?.message,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t};\n\t\t},\n\t};\n}\n\nfunction mutateState(state: DeliveryTypeState, crematoryId: number, record: DeliveryTypeRecord): DeliveryTypeState {\n\treturn {\n\t\t...state,\n\t\t[crematoryId]: record,\n\t};\n}\n\nfunction mutateRecord(source: DeliveryTypeRecord | undefined, mutation: Partial<DeliveryTypeRecord>): DeliveryTypeRecord {\n\tconst record = source ?? getDefaultRecord();\n\n\treturn {\n\t\t...record,\n\t\t...mutation,\n\t};\n}\n\nfunction toMap(list: List<DeliveryTypeEntity>): Map<number, DeliveryTypeEntity> {\n\treturn list.list.reduce(\n\t\t(acc: Map<number, DeliveryTypeEntity>, cur: DeliveryTypeEntity) => acc.set(cur.id, cur),\n\t\tnew Map<number, DeliveryTypeEntity>(),\n\t);\n}\n\nexport function getReducer(): Reducer<DeliveryTypeState, KnownActions> {\n\treturn (state: DeliveryTypeState = {}, action: KnownActions) => {\n\t\tswitch (action.type) {\n\t\tcase ActionKeys.REQUESTDELIVERYTYPES: {\n\t\t\tconst record = state[action.payload.crematoryId];\n\t\t\tconst mutation: Partial<DeliveryTypeRecord> = {\n\t\t\t\tstate: 'querying',\n\t\t\t\tcontroller: action.payload.controller,\n\t\t\t};\n\t\t\tconst mutated = mutateRecord(record, mutation);\n\n\t\t\treturn mutateState(state, action.payload.crematoryId, mutated);\n\t\t}\n\n\t\tcase ActionKeys.RECEIVEDELIVERYTYPESERROR: {\n\t\t\tconst record = state[action.payload.crematoryId];\n\t\t\tconst mutation: Partial<DeliveryTypeRecord> = {\n\t\t\t\tstate: 'idle',\n\t\t\t\terror: action.payload.error,\n\t\t\t};\n\t\t\tconst mutated = mutateRecord(record, mutation);\n\n\t\t\treturn mutateState(state, action.payload.crematoryId, mutated);\n\t\t}\n\n\t\tcase ActionKeys.RECEIVEDELIVERYTYPES: {\n\t\t\tconst record = state[action.payload.crematoryId];\n\t\t\tconst mutation: Partial<DeliveryTypeRecord> = {\n\t\t\t\tstate: 'idle',\n\t\t\t\ttotal: action.payload.list.count,\n\t\t\t\tmap: toMap(action.payload.list),\n\t\t\t\terror: null,\n\t\t\t};\n\t\t\tconst mutated = mutateRecord(record, mutation);\n\n\t\t\treturn mutateState(state, action.payload.crematoryId, mutated);\n\t\t}\n\t\tcase ActionKeys.MUTATEDELIVERYTYPES: {\n\t\t\tconst record = state[action.payload.crematoryId];\n\t\t\tconst mutation: Partial<DeliveryTypeRecord> = {\n\t\t\t\tstate: 'mutating',\n\t\t\t\tcontroller: action.payload.controller,\n\t\t\t};\n\t\t\tconst mutated = mutateRecord(record, mutation);\n\n\t\t\treturn mutateState(state, action.payload.crematoryId, mutated);\n\t\t}\n\n\t\tdefault: return state;\n\t\t}\n\t};\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Price } from '@app/objects/Price';\nimport {\n\tgetSubTree,\n\tStoreEntry,\n\tStoreEntryNode,\n} from '@app/objects/StoreEntry';\n\ninterface BriefPrice extends Pick<Price, 'value' | 'extra'> {\n\tprice: Price;\n}\n\ninterface PriceData {\n\tentry: Nullable<StoreEntry>;\n\tselection: Nullable<StoreEntryNode>;\n\tprices: Array<Price>;\n\tcount: number;\n}\n\n/**\n * Calculate current price based on user's selection\n * @param data\n */\nexport function calculate(data: PriceData): Nullable<BriefPrice> {\n\tconst tree = getSubTree(data.entry, data.selection);\n\tif (tree === null) return null;\n\n\tconst reference = data.prices.some((price: Price) => price.clinicId !== null)\n\t\t? data.prices.filter((price: Price) => price.clinicId !== null)\n\t\t: data.prices;\n\n\tconst list: Array<BriefPrice> = [];\n\tconst stack: Array<StoreEntryNode> = [tree];\n\twhile (stack.length) {\n\t\tconst node = stack.pop()!;\n\t\tconst price = reference.find((price: Price) => price.inventoryItemId === node.itemId);\n\n\t\tif (price) {\n\t\t\tconst extra = Math.max(0, data.count - price.batchCount) * price.value;\n\t\t\tlist.push({\n\t\t\t\tvalue: price.batchPrice + extra,\n\t\t\t\textra,\n\t\t\t\tprice,\n\t\t\t});\n\t\t}\n\n\t\tstack.push(...node.children);\n\t}\n\n\tif (!list.length) return null;\n\n\treturn list.reduce((max: BriefPrice, cur: BriefPrice) => {\n\t\tif (max.value < cur.value) return cur;\n\n\t\treturn max;\n\t});\n}\n","module.exports = (__webpack_require__(7))(37);","import { isString } from './is';\nimport { normalize } from './object';\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv() {\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n}\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport function dynamicRequire(mod, request) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n/** Default request keys that'll be used to extract data from the request */\nvar DEFAULT_REQUEST_KEYS = ['cookies', 'data', 'headers', 'method', 'query_string', 'url'];\n/**\n * Normalizes data from the request object, accounting for framework differences.\n *\n * @param req The request object from which to extract data\n * @param keys An optional array of keys to include in the normalized data. Defaults to DEFAULT_REQUEST_KEYS if not\n * provided.\n * @returns An object containing normalized request data\n */\nexport function extractNodeRequestData(req, keys) {\n if (keys === void 0) { keys = DEFAULT_REQUEST_KEYS; }\n // make sure we can safely use dynamicRequire below\n if (!isNodeEnv()) {\n throw new Error(\"Can't get node request data outside of a node environment\");\n }\n var requestData = {};\n // headers:\n // node, express: req.headers\n // koa: req.header\n var headers = (req.headers || req.header || {});\n // method:\n // node, express, koa: req.method\n var method = req.method;\n // host:\n // express: req.hostname in > 4 and req.host in < 4\n // koa: req.host\n // node: req.headers.host\n var host = req.hostname || req.host || headers.host || '<no host>';\n // protocol:\n // node: <n/a>\n // express, koa: req.protocol\n var protocol = req.protocol === 'https' || req.secure || (req.socket || {}).encrypted\n ? 'https'\n : 'http';\n // url (including path and query string):\n // node, express: req.originalUrl\n // koa: req.url\n var originalUrl = (req.originalUrl || req.url || '');\n // absolute url\n var absoluteUrl = protocol + \"://\" + host + originalUrl;\n keys.forEach(function (key) {\n switch (key) {\n case 'headers':\n requestData.headers = headers;\n break;\n case 'method':\n requestData.method = method;\n break;\n case 'url':\n requestData.url = absoluteUrl;\n break;\n case 'cookies':\n // cookies:\n // node, express, koa: req.headers.cookie\n // vercel, sails.js, express (w/ cookie middleware): req.cookies\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.cookies = req.cookies || dynamicRequire(module, 'cookie').parse(headers.cookie || '');\n break;\n case 'query_string':\n // query string:\n // node: req.url (raw)\n // express, koa: req.query\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n requestData.query_string = dynamicRequire(module, 'url').parse(originalUrl || '', false).query;\n break;\n case 'data':\n if (method === 'GET' || method === 'HEAD') {\n break;\n }\n // body data:\n // node, express, koa: req.body\n if (req.body !== undefined) {\n requestData.data = isString(req.body) ? req.body : JSON.stringify(normalize(req.body));\n }\n break;\n default:\n if ({}.hasOwnProperty.call(req, key)) {\n requestData[key] = req[key];\n }\n }\n });\n return requestData;\n}\n//# sourceMappingURL=node.js.map","export const removeFromArrayByIndex = (arr: any[], index: number): any[] => [...arr.slice(0, index), ...arr.slice(index + 1)];\n\nexport const removeFromArrayByParam = <T>(arr: T[], paramName: keyof T, value: any): T[] => \n\tarr.filter(ot => ot[paramName] !== value);\n\nexport const insertToArray = <T>(arr: T[], newItem: T): T[] => [newItem, ...arr];\n\nexport const insertToArrayByIndex = <T>(arr: T[], newItem: T, index: number): T[] => [...arr.slice(0, index), newItem, ...arr.slice(index)];\n\nexport const pushToArray = <T>(arr: T[], newItem: T): T[] => [...arr, newItem];\n\ntype updateCompare<T> = ((item: T, values: Partial<T>) => boolean) | keyof T;\n\nexport const updateArrayItem = <T>(arr: T[], compare: updateCompare<T>, values: Partial<T>): T[] => {\n\tconst isEqual = typeof compare === 'function' ? compare : (item, values) => item[compare] === values[compare];\n\t\n\treturn arr.map(item => isEqual(item, values) ? {...item, ...values} : item);\n};\n","import { Action, ActionCreatorsMapObject, Reducer } from 'redux';\n\nimport { request } from '@common/react/components/Api';\nimport { BaseApplicationState, BaseAppThunkAction } from '@common/react/store/index';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { equal } from '@common/typescript/Utils';\nimport { BaseParams } from '@common/typescript/objects/BaseParams';\nimport { List } from '@common/typescript/objects/List';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport { updateArrayItem } from '@common/typescript/utils/immutability';\nimport { TablePaginationPosition } from '@common/react/smart components/Table/TableDataProvider';\n\nexport interface ItemsState<T extends WithId> {\n\tisLoading: boolean;\n\titems: Array<T>;\n\tpagination: {\n\t\ttotal: number;\n\t\tcurrent: number;\n\t\toffset: number;\n\t\tpageSize?: number;\n\t\tshowSizeChanger: boolean;\n\t\tposition: Array<TablePaginationPosition>;\n\t};\n\ttype: string;\n\tparams: BaseParams;\n}\n\nconst defaultItemsState = {\n\tisLoading: false,\n\titems: [],\n\tpagination: {\n\t\ttotal: 0,\n\t\tcurrent: 0,\n\t\toffset: 0,\n\t\tpageSize: 0,\n\t\tshowSizeChanger: false,\n\t\tposition: ['bottomCenter'] as Array<TablePaginationPosition>,\n\t},\n\ttype: '',\n\tparams: {},\n};\n\nexport enum TypeKeys {\n\tREQUESTITEMS = 'REQUESTITEMS',\n\tRECEIVEITEMS = 'RECEIVEITEMS',\n\tREQUESTMOREITEMS = 'REQUESTMOREITEMS',\n\tRECEIVEMOREITEMS = 'RECEIVEMOREITEMS',\n\tUPDATEITEM = 'UPDATEITEM',\n\tUPDATEBATCH = 'UPDATEBATCH',\n\tADDITEM = 'ADDITEM',\n\tADDITEMS = 'ADDITEMS',\n\tDELETEITEM = 'DELETEITEM',\n\tINITSTORAGE = 'INITSTORAGE'\n}\n\nexport interface InitStorageAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.INITSTORAGE;\n\tstorageName: keyof TApplicationState | null;\n\titems: T[] | null | undefined;\n\ttotal?: number | null;\n\tparams: any;\n\tobjectType: string;\n}\n\ninterface RequestItemsAction<TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.REQUESTITEMS;\n\tstorageName: keyof TApplicationState | null;\n\tparams: any;\n\tobjectType: string;\n}\n\ninterface ReceiveItemsAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.RECEIVEITEMS;\n\tstorageName: keyof TApplicationState | null;\n\titems: T[];\n\ttotal: number;\n\toffset: number;\n\tobjectType: string;\n}\n\ninterface UpdateItemAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.UPDATEITEM;\n\tstorageName: keyof TApplicationState | null;\n\tparamName: keyof T;\n\titem: Partial<T>;\n}\n\nexport enum ClipBy {\n\tStart,\n\tEnd,\n\tNone\n}\n\ninterface UpdateBatchAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.UPDATEBATCH;\n\tstorageName: keyof TApplicationState | null;\n\tparamName: string;\n\titems: T[];\n\tsortBy: string | false;\n\tclip: ClipBy;\n\tinsertNew: boolean;\n}\n\ninterface RequestMoreItemsAction<TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.REQUESTMOREITEMS;\n\tstorageName: keyof TApplicationState | null;\n\tparams: any;\n}\n\ninterface ReceiveMoreItemsAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.RECEIVEMOREITEMS;\n\tstorageName: keyof TApplicationState | null;\n\titems: T[];\n\toffset: number;\n\ttotal: number;\n}\n\ninterface AddItemAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.ADDITEM;\n\tstorageName: keyof TApplicationState | null;\n\titem: T;\n\tend?: boolean;\n}\n\ninterface AddItemsAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.ADDITEMS;\n\tstorageName: keyof TApplicationState | null;\n\titems: Array<T>;\n\tend?: boolean;\n}\n\ninterface DeleteItemAction<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>> {\n\ttype: TypeKeys.DELETEITEM;\n\tstorageName: keyof TApplicationState | null;\n\tid: number;\n}\n\nexport type KnownPageAction<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n> = InitStorageAction<T, TUser, TApplicationState>\n\t| RequestItemsAction<TUser, TApplicationState>\n\t| ReceiveItemsAction<T, TUser, TApplicationState>\n\t| UpdateItemAction<T, TUser, TApplicationState>\n\t| RequestMoreItemsAction<TUser, TApplicationState>\n\t| ReceiveMoreItemsAction<T, TUser, TApplicationState>\n\t| AddItemAction<T, TUser, TApplicationState>\n\t| AddItemsAction<T, TUser, TApplicationState>\n\t| DeleteItemAction<T, TUser, TApplicationState>\n\t| UpdateBatchAction<T, TUser, TApplicationState>;\n\nfunction loadPage<T extends WithId, TUser extends BaseUser, TApplicationState extends BaseApplicationState<TUser>>(\n\tdispatch: any,\n\tgetState: any,\n\tstore: keyof TApplicationState,\n\ttype: string,\n\tpath: string,\n\tparams: any,\n): Promise<Array<T>> {\n\tconst fetchTask = request<List<T>, TUser, TApplicationState>(path, params, getState())\n\t\t.then((data: List<T>) => {\n\t\tdispatch({\n\t\t\ttype: TypeKeys.RECEIVEITEMS,\n\t\t\tstorageName: store,\n\t\t\titems: data.list,\n\t\t\ttotal: data.count,\n\t\t\tobjectType: type,\n\t\t\tparams,\n\t\t\toffset: data.offset,\n\t\t});\n\n\t\treturn data.list;\n\t}).catch(() => {\n\t\tdispatch({\n\t\t\ttype: TypeKeys.RECEIVEITEMS,\n\t\t\tstorageName: store,\n\t\t\titems: [],\n\t\t\ttotal: 0,\n\t\t\tobjectType: type,\n\t\t\tparams,\n\t\t\toffset: 0,\n\t\t});\n\n\t\treturn [];\n\t});\n\n\tdispatch({\n\t\ttype: TypeKeys.REQUESTITEMS, storageName: store, params, objectType: type,\n\t});\n\n\treturn fetchTask;\n}\n\nexport interface IActionCreators<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n> extends ActionCreatorsMapObject<BaseAppThunkAction<KnownPageAction<T, TUser, TApplicationState>, TUser, TApplicationState>> {\n\tinitStorage: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\ttype: string,\n\t\titems?: TEntity[],\n\t\tparams?: any\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\treqPages: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t\ttype: string,\n\t\tparams: BaseParams\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tremoveItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t\ttype: string,\n\t\titem: TEntity,\n\t\tnewParams: BaseParams | null,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\trefreshPages: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t\tparams?: BaseParams\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tupdateItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titem: Partial<TEntity>,\n\t\tparamName?: keyof TEntity,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tupdateArrayInItem: <TEntity extends WithId & T[keyof T]>(\n\t\tstore: keyof TApplicationState,\n\t\tcompareParam: T[keyof T],\n\t\tfield: keyof T,\n\t\tchangedArrayItem: Partial<TEntity>,\n\t\tcompareParamName: keyof T,\n\t\tarrayItemParamName: keyof TEntity,\n\t) => BaseAppThunkAction<KnownPageAction<T, TUser, TApplicationState>, TUser, TApplicationState>;\n\tupdateBatch: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titems: TEntity[],\n\t\tparamName?: string,\n\t\tsortBy?: string | false,\n\t\tclip?: ClipBy,\n\t\tinsertNew?: boolean,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tloadMoreItems: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\taddItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titem: TEntity,\n\t\tend?: boolean\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\taddItems: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titems: Array<TEntity>,\n\t\tend: boolean,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\tdeleteItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tid: number,\n\t) => BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n}\n\nexport interface IMappedActionCreators<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n> extends ActionCreatorsMapObject<Promise<Array<T>> | Promise<T> | Promise<void> | void> {\n\tinitStorage: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\ttype: string,\n\t\titems?: TEntity[],\n\t\tparams?: any\n\t) => void;\n\treqPages: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t\ttype: string,\n\t\tparams: BaseParams\n\t) => Promise<Array<TEntity>>;\n\tremoveItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t\ttype: string,\n\t\titem: TEntity,\n\t\tnewParams?: BaseParams | null,\n\t) => Promise<Array<TEntity>>;\n\trefreshPages: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t\tparams?: BaseParams\n\t) => Promise<void>;\n\tupdateItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titem: Partial<TEntity>,\n\t\tparamName?: keyof TEntity,\n\t) => void;\n\tupdateArrayInItem: <TEntity extends WithId & T[keyof T]>(\n\t\tstore: keyof TApplicationState,\n\t\tcompareParam: T[keyof T],\n\t\tfield: keyof T,\n\t\tchangedArrayItem: Partial<TEntity>,\n\t\tcompareParamName: keyof T,\n\t\tarrayItemParamName: keyof TEntity,\n\t) => void;\n\tupdateBatch: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titems: TEntity[],\n\t\tparamName?: string,\n\t\tsortBy?: string | false,\n\t\tclip?: ClipBy,\n\t\tinsertNew?: boolean,\n\t) => void;\n\tloadMoreItems: (\n\t\tstore: keyof TApplicationState,\n\t\tpath: string,\n\t) => void;\n\taddItem: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titem: TEntity,\n\t\tend?: boolean,\n\t) => void;\n\taddItems: <TEntity extends WithId = T>(\n\t\tstore: keyof TApplicationState,\n\t\titems: Array<TEntity>,\n\t\tend?: boolean,\n\t) => void;\n\tdeleteItem: (\n\t\tstore: keyof TApplicationState,\n\t\tid: number,\n\t) => void;\n}\n\nexport function getActionCreators<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n>(): IActionCreators<T, TUser, TApplicationState> {\n\ttype ResultType<TEntity extends WithId = T> = BaseAppThunkAction<KnownPageAction<TEntity, TUser, TApplicationState>, TUser, TApplicationState>;\n\n\treturn {\n\t\tinitStorage: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\ttype: string,\n\t\t\titems?: TEntity[],\n\t\t\tparams?: any,\n\t\t): ResultType<TEntity> => (dispatch) => {\n\t\t\tdispatch({\n\t\t\t\titems,\n\t\t\t\tparams,\n\t\t\t\ttype: TypeKeys.INITSTORAGE,\n\t\t\t\tstorageName: store,\n\t\t\t\tobjectType: type,\n\t\t\t});\n\t\t},\n\t\treqPages: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\tpath: string,\n\t\t\ttype: string,\n\t\t\tparams: BaseParams,\n\t\t): ResultType<TEntity> => (dispatch, getState) => {\n\t\t\tconst storeState = (getState() as TApplicationState)[store] as unknown as ItemsState<TEntity>;\n\n\t\t\tif (!equal(storeState.params, params) || storeState.type !== type) {\n\t\t\t\treturn loadPage<TEntity, TUser, TApplicationState>(dispatch, getState, store, type, path, params);\n\t\t\t}\n\n\t\t\treturn Promise.resolve(storeState.items);\n\t\t},\n\t\tremoveItem: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\tpath: string,\n\t\t\ttype: string,\n\t\t\titem: TEntity,\n\t\t\tnewParams: BaseParams | null = null,\n\t\t): ResultType<TEntity> => (dispatch, getState) => {\n\t\t\t(item as WithDeleted).deleted = true;\n\n\t\t\tconst state = (getState() as TApplicationState)[store] as unknown as ItemsState<TEntity>;\n\t\t\tconst params = state.params;\n\n\t\t\treturn request<TEntity, TUser, TApplicationState>(type, item, getState())\n\t\t\t\t.then(() => loadPage<TEntity, TUser, TApplicationState>(dispatch, getState, store, type, path, newParams ? { ...params, ...newParams } : params));\n\t\t},\n\t\trefreshPages: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\tpath: string,\n\t\t\tparams?: BaseParams,\n\t\t): ResultType<TEntity> => (dispatch, getState) => {\n\t\t\tconst storeState = (getState() as any)[store];\n\n\t\t\treturn loadPage<TEntity, TUser, TApplicationState>(dispatch, getState, store, storeState.type, path, params || storeState.params);\n\t\t},\n\t\tupdateItem: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\titem: Partial<TEntity>,\n\t\t\tparamName: keyof TEntity = 'id',\n\t\t): ResultType<TEntity> => (dispatch) => {\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.UPDATEITEM, storageName: store, item, paramName,\n\t\t\t});\n\t\t},\n\t\tupdateArrayInItem: <TEntity extends WithId & T[keyof T]>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\tcompareParam: T[keyof T],\n\t\t\tfield: keyof T,\n\t\t\tchangedArrayItem: Partial<TEntity>,\n\t\t\tcompareParamName: keyof T = 'id',\n\t\t\tarrayItemParamName: keyof TEntity = 'id',\n\t\t): ResultType => (dispatch, getState) => {\n\t\t\t// Same thing as in Item.ts\n\t\t\tconst storeState: ItemsState<T> = (getState() as TApplicationState)[store] as unknown as ItemsState<T>;\n\t\t\tconst foundItem = storeState.items.find((item: T) => item[compareParamName] === compareParam);\n\n\t\t\tif (foundItem) {\n\t\t\t\tconst arr = foundItem[field];\n\n\t\t\t\tif (Array.isArray(arr)) {\n\t\t\t\t\tconst updated = updateArrayItem<TEntity>(arr as Array<TEntity>, arrayItemParamName, changedArrayItem);\n\n\t\t\t\t\tdispatch({\n\t\t\t\t\t\ttype: TypeKeys.UPDATEITEM,\n\t\t\t\t\t\tstorageName: store,\n\t\t\t\t\t\titem: {\n\t\t\t\t\t\t\t[compareParamName]: compareParam,\n\t\t\t\t\t\t\t[field]: updated,\n\t\t\t\t\t\t} as Partial<T>,\n\t\t\t\t\t\tparamName: compareParamName,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * UpdateBatch - action to update an array of entities\n\t\t * @param store\t\t{string}\t\t\t- store to update at\n\t\t * @param items\t\t{items}\t\t\t\t- items to be updated\n\t\t * @param paramName\t{string}\t\t\t- field to compare items by\n\t\t * @param sortBy\t{string | false}\t- whether to sort or not and what field to sort by\n\t\t * @param clip\t\t{ClipBy}\t\t\t- whether to clip resulting items array to its original size and where to align to\n\t\t * @param insertNew\t{boolean}\t\t\t- whether to insert new items or only to update existing ones\n\t\t */\n\t\tupdateBatch: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\titems: TEntity[],\n\t\t\tparamName: string = 'id',\n\t\t\tsortBy: string | false = false,\n\t\t\tclip: ClipBy = ClipBy.None,\n\t\t\tinsertNew: boolean = false,\n\t\t): ResultType<TEntity> => (dispatch) => {\n\t\t\tdispatch({\n\t\t\t\titems,\n\t\t\t\tparamName,\n\t\t\t\tsortBy,\n\t\t\t\tclip,\n\t\t\t\tinsertNew,\n\t\t\t\ttype: TypeKeys.UPDATEBATCH,\n\t\t\t\tstorageName: store,\n\t\t\t});\n\t\t},\n\t\tloadMoreItems: <TEntity extends WithId = T>(\n\t\t\tstore: keyof TApplicationState,\n\t\t\tpath: string,\n\t\t): ResultType<TEntity> => (dispatch, getState) => {\n\t\t\tconst storeState = (getState() as any)[store];\n\n\t\t\tconst params = {\n\t\t\t\t...storeState.params,\n\t\t\t\toffset: (storeState.params.offset || 0) + storeState.params.count,\n\t\t\t};\n\n\t\t\trequest<List<TEntity>, TUser, TApplicationState>(path, params, getState()).then((data) => {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.RECEIVEMOREITEMS, storageName: store, items: data.list, offset: data.offset, total: data.count,\n\t\t\t\t});\n\t\t\t}).catch(() => dispatch({\n\t\t\t\ttype: TypeKeys.RECEIVEMOREITEMS, storageName: store, items: [], offset: 0, total: 0,\n\t\t\t}));\n\n\t\t\tdispatch({ type: TypeKeys.REQUESTMOREITEMS, storageName: store, params });\n\t\t},\n\t\taddItem: <TEntity extends WithId = T>(store: keyof TApplicationState, item: TEntity, end: boolean = false): ResultType<TEntity> => (dispatch) => {\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.ADDITEM, storageName: store, item, end,\n\t\t\t});\n\t\t},\n\t\taddItems: <TEntity extends WithId = T>(store: keyof TApplicationState, items: Array<TEntity>, end: boolean = false): ResultType<TEntity> =>\n\t\t\t(dispatch) => {\n\t\t\t\tdispatch({\n\t\t\t\t\ttype: TypeKeys.ADDITEMS, storageName: store, items, end,\n\t\t\t\t});\n\t\t\t},\n\t\tdeleteItem: <TEntity extends WithId = T>(store: keyof TApplicationState, id: number): ResultType<TEntity> => (dispatch) => {\n\t\t\tdispatch({ type: TypeKeys.DELETEITEM, storageName: store, id });\n\t\t},\n\t};\n}\n\nexport function getReducer<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n>(storageName: string): Reducer<ItemsState<T>> {\n\treturn (state: ItemsState<T> = defaultItemsState, incomingAction: Action) => {\n\t\tconst action = incomingAction as KnownPageAction<T, TUser, TApplicationState>;\n\n\t\tif (!action.storageName || action.storageName === storageName) {\n\t\t\tswitch (action.type) {\n\t\t\t\tcase TypeKeys.INITSTORAGE:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: false,\n\t\t\t\t\t\titems: action.items || [],\n\t\t\t\t\t\tparams: action.params || {},\n\t\t\t\t\t\tpagination: {\n\t\t\t\t\t\t\ttotal: action.total || (action.items && action.items.length) || 0,\n\t\t\t\t\t\t\tcurrent: 0,\n\t\t\t\t\t\t\toffset: 0,\n\t\t\t\t\t\t\tpageSize: action.params?.count || 10,\n\t\t\t\t\t\t\tshowSizeChanger: false,\n\t\t\t\t\t\t\tposition: ['bottomCenter'] as Array<TablePaginationPosition>,\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttype: action.objectType,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.REQUESTITEMS:\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state, isLoading: true, params: action.params, type: action.objectType,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.RECEIVEITEMS:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: false,\n\t\t\t\t\t\titems: action.items,\n\t\t\t\t\t\tparams: state.params,\n\t\t\t\t\t\tpagination: {\n\t\t\t\t\t\t\ttotal: action.total,\n\t\t\t\t\t\t\tcurrent: state.params.page,\n\t\t\t\t\t\t\toffset: action.offset,\n\t\t\t\t\t\t\tpageSize: state.params.count || 10,\n\t\t\t\t\t\t\tshowSizeChanger: false,\n\t\t\t\t\t\t\tposition: ['bottomCenter'] as Array<TablePaginationPosition>,\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttype: action.objectType,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.UPDATEITEM:\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\titems: state.items.map((item: T) => (item[action.paramName] === action.item[action.paramName] ? { ...item, ...action.item } : item)),\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.UPDATEBATCH:\n\t\t\t\t\tconst size = state.items.length;\n\t\t\t\t\tlet items = state.items\n\t\t\t\t\t.map((item) => {\n\t\t\t\t\t\tconst uid = action.items.findIndex((elem: T) =>\n\t\t\t\t\t\t\telem[action.paramName] === item[action.paramName]);\n\n\t\t\t\t\t\tif (uid === -1) return item;\n\n\t\t\t\t\t\treturn { ...(item as any), ...(action.items[uid] as any) };\n\t\t\t\t\t});\n\n\t\t\t\t\tif (action.insertNew) {\n\t\t\t\t\t\titems = items.concat(action.items.filter((itm: T) =>\n\t\t\t\t\t\t!items.some((storedItem: T) => storedItem[action.paramName] === itm[action.paramName])));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (action.sortBy !== false) {\n\t\t\t\t\t\titems = items.sort((a, b) =>\n\t\t\t\t\t\ta[action.sortBy as string] - b[action.sortBy as string]);\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (action.clip) {\n\t\t\t\t\t\tcase ClipBy.Start:\n\t\t\t\t\t\t\titems = items.slice(0, size);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ClipBy.End:\n\t\t\t\t\t\t\tconst shift = items.length - size;\n\t\t\t\t\t\t\titems = items.slice(shift, shift + size);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase ClipBy.None:\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\titems,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.REQUESTMOREITEMS:\n\t\t\t\t\treturn { ...state, isLoading: true, params: action.params };\n\t\t\t\tcase TypeKeys.RECEIVEMOREITEMS:\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\titems: state.items.concat(action.items),\n\t\t\t\t\t\tisLoading: false,\n\t\t\t\t\t\tpagination: {\n\t\t\t\t\t\t\ttotal: action.total,\n\t\t\t\t\t\t\tcurrent: state.params.page,\n\t\t\t\t\t\t\toffset: action.offset,\n\t\t\t\t\t\t\tpageSize: state.params.count || 10,\n\t\t\t\t\t\t\tshowSizeChanger: false,\n\t\t\t\t\t\t\tposition: ['bottomCenter'],\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.ADDITEM:\n\t\t\t\t\treturn state.items\n\t\t\t\t\t? {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\titems: action.end ? state.items.concat(action.item) : [action.item].concat(state.items),\n\t\t\t\t\t}\n\t\t\t\t\t: state;\n\t\t\t\tcase TypeKeys.ADDITEMS:\n\t\t\t\t\treturn state.items\n\t\t\t\t\t? {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\titems: action.end ? state.items.concat(action.items) : [...action.items].concat(state.items),\n\t\t\t\t\t}\n\t\t\t\t\t: state;\n\t\t\t\tcase TypeKeys.DELETEITEM:\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...state,\n\t\t\t\t\t\tpagination: {\n\t\t\t\t\t\t\t...state.pagination,\n\t\t\t\t\t\t\ttotal: state.pagination.total > 0 ? state.pagination.total - 1 : 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\titems: state.items.filter((item: T) => item.id !== action.id),\n\t\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\treturn state;\n\t};\n}\n","var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nvar htmlEntities = {\n '&': '&',\n '&': '&',\n '<': '<',\n '<': '<',\n '>': '>',\n '>': '>',\n ''': \"'\",\n ''': \"'\",\n '"': '\"',\n '"': '\"',\n ' ': ' ',\n ' ': ' ',\n '©': '©',\n '©': '©',\n '®': '®',\n '®': '®',\n '…': '…',\n '…': '…',\n '/': '/',\n '/': '/'\n};\n\nvar unescapeHtmlEntity = function unescapeHtmlEntity(m) {\n return htmlEntities[m];\n};\n\nexport var unescape = function unescape(text) {\n return text.replace(matchHtmlEntity, unescapeHtmlEntity);\n};","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport { createContext } from 'react';\nimport { unescape } from './unescape';\nvar defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape: unescape\n};\nvar i18nInstance;\nexport var I18nContext = createContext();\nexport function setDefaults() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n defaultOptions = _objectSpread(_objectSpread({}, defaultOptions), options);\n}\nexport function getDefaults() {\n return defaultOptions;\n}\nexport var ReportNamespaces = function () {\n function ReportNamespaces() {\n _classCallCheck(this, ReportNamespaces);\n\n this.usedNamespaces = {};\n }\n\n _createClass(ReportNamespaces, [{\n key: \"addUsedNamespaces\",\n value: function addUsedNamespaces(namespaces) {\n var _this = this;\n\n namespaces.forEach(function (ns) {\n if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;\n });\n }\n }, {\n key: \"getUsedNamespaces\",\n value: function getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n }]);\n\n return ReportNamespaces;\n}();\nexport function setI18n(instance) {\n i18nInstance = instance;\n}\nexport function getI18n() {\n return i18nInstance;\n}\nexport var initReactI18next = {\n type: '3rdParty',\n init: function init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};\nexport function composeInitialProps(ForComponent) {\n return function (ctx) {\n return new Promise(function (resolve) {\n var i18nInitialProps = getInitialProps();\n\n if (ForComponent.getInitialProps) {\n ForComponent.getInitialProps(ctx).then(function (componentsInitialProps) {\n resolve(_objectSpread(_objectSpread({}, componentsInitialProps), i18nInitialProps));\n });\n } else {\n resolve(i18nInitialProps);\n }\n });\n };\n}\nexport function getInitialProps() {\n var i18n = getI18n();\n var namespaces = i18n.reportNamespaces ? i18n.reportNamespaces.getUsedNamespaces() : [];\n var ret = {};\n var initialI18nStore = {};\n i18n.languages.forEach(function (l) {\n initialI18nStore[l] = {};\n namespaces.forEach(function (ns) {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n}","import * as React from 'react';\n\nimport { WithId } from '@common/typescript/objects/WithId';\n\nimport { count } from '@app/components/Utils/Utils';\nimport {\n\tItems,\n\tPaginationConfig,\n\tUsePagination,\n} from '@app/hooks/PaginationManager/PaginationProps';\n\nexport const usePagination: UsePagination = (config?: PaginationConfig) => {\n\tconst perPage = config?.perPage ?? 10;\n\tconst items = config?.items ?? [];\n\n\tconst [page, setPage] = React.useState(() => 0);\n\tconst [total, setTotal] = React.useState(() => count(items));\n\n\treturn {\n\t\tpagination: {\n\t\t\tpage,\n\t\t\tperPage,\n\t\t\ttotal,\n\t\t\thideOnSinglePage: true,\n\t\t\tshowSizeChanger: false,\n\t\t\tposition: ['bottomCenter'],\n\t\t},\n\t\tonPageChange: setPage,\n\t\tupdate: (items: Items<WithId>) => {\n\t\t\tsetTotal(count(items));\n\t\t},\n\t};\n};\n","import * as React from 'react';\n\nimport { List } from '@common/typescript/objects/List';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { PaginationDataEnvelope, PaginationProps } from '@app/hooks/PaginationManager/PaginationProps';\nimport { request } from '@app/components/Api';\n\nexport interface RemoteDataConfig<T> {\n\tendpoint: string;\n\tshouldRefetch?: boolean | ((oldData?: T, newData?: T) => boolean);\n\n\tusePagination: () => PaginationDataEnvelope;\n}\n\nexport interface RemoteDataEnvelope<T extends WithId, TData = Record<string, unknown>> {\n\tfetch: (data?: TData | undefined) => void;\n\titems: Array<T>;\n\tloading: boolean;\n\terror: string | null;\n\tpagination: PaginationProps;\n\tonPageChange: (page: number) => void;\n}\n\nexport function useRemoteData<\n\tTResult extends WithId,\n\tTData = Record<string, unknown>,\n>(config: RemoteDataConfig<TData>, data?: TData): RemoteDataEnvelope<TResult, TData> {\n\tconst [loading, setLoading] = React.useState<boolean>(false);\n\tconst [items, setItems] = React.useState<Array<TResult>>(() => []);\n\tconst [error, setError] = React.useState<string | null>(() => null);\n\tconst { pagination, onPageChange, update } = config.usePagination();\n\tconst controller = React.useRef<Nullable<AbortController>>(null);\n\n\tconst oldPage = React.useRef<number>(pagination.page);\n\tconst oldData = React.useRef<TData | undefined>(undefined);\n\n\tconst cancel = () => {\n\t\tcontroller.current?.abort();\n\t};\n\n\tReact.useEffect(() => cancel, []);\n\n\tconst fetch = (requestData: TData | undefined = data) => {\n\t\tsetLoading(true);\n\t\tsetError(null);\n\n\t\tcancel();\n\t\tconst abortController = new AbortController();\n\t\tcontroller.current = abortController;\n\n\t\trequest<List<TResult>>(config.endpoint, {\n\t\t\t...requestData,\n\t\t\tcount: pagination.perPage,\n\t\t\toffset: pagination.page * pagination.perPage,\n\t\t}, undefined, abortController.signal)\n\t\t\t.then((items: List<TResult>) => {\n\t\t\t\tsetItems(items.list);\n\t\t\t\tupdate(items);\n\t\t\t})\n\t\t\t.catch((error: string) => {\n\t\t\t\tif (abortController.signal.aborted) return;\n\n\t\t\t\tsetError(error);\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tif (abortController.signal.aborted) return;\n\n\t\t\t\tsetLoading(false);\n\t\t\t});\n\t};\n\n\tReact.useEffect(() => {\n\t\tif (config.shouldRefetch === true || (typeof config.shouldRefetch === 'function' && config.shouldRefetch(oldData.current, data))) {\n\t\t\tfetch();\n\t\t} else if (pagination.page !== oldPage.current) {\n\t\t\toldPage.current = pagination.page;\n\t\t\tfetch();\n\t\t}\n\n\t\toldData.current = data;\n\t}, [data, pagination.page]);\n\n\treturn {\n\t\tfetch,\n\t\titems,\n\t\tloading: Boolean(loading),\n\t\terror,\n\t\tpagination,\n\t\tonPageChange: (value: number) => {\n\t\t\tonPageChange(value);\n\t\t},\n\t};\n}\n","import * as React from 'react';\n\nimport Modal from 'antd/lib/modal';\nimport { ExclamationCircleOutlined } from '@ant-design/icons';\nimport { TFunction } from 'react-i18next';\n\ninterface DeleteConfirmation {\n\tmodalTitle?: string;\n\ttitle: string;\n\tcallback: () => Promise<unknown> | undefined;\n\tt?: TFunction;\n}\n\nexport const deleteConfirmation = ({\n\ttitle, modalTitle, callback, t,\n}: DeleteConfirmation): void => {\n\tlet label = `${modalTitle} ${title}`;\n\n\tif (!modalTitle) label = !t ? `Delete ${title}?` : `${t('table.actions.delete')} ${title}?`;\n\n\tModal.confirm({\n\t\ttitle: label,\n\t\tokText: !t ? 'Delete' : t('table.actions.delete'),\n\t\tokType: 'danger',\n\t\ticon: <ExclamationCircleOutlined />,\n\t\tcancelText: !t ? 'Cancel' : t('buttons.cancel'),\n\t\tonOk() {\n\t\t\treturn callback();\n\t\t},\n\t});\n};\n","import * as React from 'react';\n\nimport { DateType, formatDate } from '@app/components/Utils/Utils';\n\ninterface DateProps {\n\tdate: DateType,\n\tview?: 'short' | 'long',\n\twithTime?: boolean,\n\twithWeekDay?: boolean,\n\tfallback?: string,\n\tcontainerClassName?: string;\n}\n\nexport const DateView: React.FC<DateProps> = \t({\n\tdate, view = 'short', withTime = false, withWeekDay = false, fallback = '-', containerClassName,\n}: DateProps): JSX.Element => (\n\t<span className={containerClassName}>\n\t\t{\n\t\t\tformatDate(date, {\n\t\t\t\tview,\n\t\t\t\twithTime,\n\t\t\t\twithWeekDay,\n\t\t\t\tfallback,\n\t\t\t})\n\t\t}\n\t</span>\n);\n","module.exports = (__webpack_require__(7))(602);","module.exports = (__webpack_require__(7))(286);","import * as React from 'react';\n\nimport { UserOutlined } from '@ant-design/icons';\n\nimport {\n\tClinicSelectFilter,\n} from '@app/store/SelectList/SelectsInterfaces';\nimport { CoreSelect } from '@app/components/UI/Inputs/CoreSelect';\nimport { ClinicSelectInfo } from '@app/objects/Clinic';\nimport { EntityType } from '@app/store/SelectList/UtilityTypes';\n\ntype Entity = EntityType<'clinics'>;\n\ninterface BaseSelectProps {\n\tcrematoryId?: number;\n\tcustomers?: boolean;\n\tpickDefault?: (entity: Array<ClinicSelectInfo>) => number;\n\tisDefault?: boolean;\n\tmarkCustomer?: boolean;\n\n\tmultiple?: boolean;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tselectClassName?: string;\n\tactiveClassName?: string;\n\tlocalOptions?: Array<Entity>;\n\n\tonSelect?: (id: number) => void;\n\tonDeselect?: (value: number) => void;\n\tallowClear?: boolean;\n\n\tlabel?: string;\n\tplaceholder?: string;\n}\n\ninterface SingleSelectProps extends BaseSelectProps {\n\tvalue?: number;\n\tonChange: (value?: number) => void;\n\n\tmultiple?: false;\n}\n\ninterface MultipleSelectProps extends BaseSelectProps {\n\tvalue?: Array<number>;\n\tonChange: (value?: Array<number>) => void;\n\n\tmultiple: true;\n}\n\ntype ClinicSelectProps = SingleSelectProps | MultipleSelectProps;\n\nfunction isEmptyValue(value?: number | Array<number>) {\n\tif (value === undefined) return true;\n\tif (Array.isArray(value)) return value.length === 0;\n\n\treturn value === -1;\n}\n\nfunction shouldPickDefault(store, multiple, isEmptyValue, reqProps, value, isDefault = true): boolean {\n\tif (!isDefault) return false;\n\n\treturn !store.isLoading\n\t\t&& store.items?.length && store.pagination.total === 1\n\t\t// eslint-disable-next-line sonarjs/no-all-duplicated-branches\n\t\t&& (multiple ? isEmptyValue?.(value) : isEmptyValue?.(value))\n\t\t&& reqProps.isEmpty(store.filters);\n}\n\nfunction getName(item: ClinicSelectInfo, markCustomer: boolean = true) {\n\tif (markCustomer) {\n\t\treturn (\n\t\t\t<div className=\"select__item-mark\">\n\t\t\t\t{item.isCustomer && <UserOutlined title=\"Customer\" className=\"icon\" />}\n\t\t\t\t<span className=\"title\">{item.name}</span>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn item.name;\n}\n\nexport const ClinicSelect: React.FC<ClinicSelectProps> = (props: ClinicSelectProps) => {\n\tconst [query, setQuery] = React.useState<string>(() => '');\n\n\tconst filters: ClinicSelectFilter = React.useMemo(() => ({\n\t\tname: query,\n\t\tsearch: query,\n\t\tcrematories: props.crematoryId ? [props.crematoryId] : [],\n\t\tisCustomer: props.customers,\n\t}), [query, props.customers, props.crematoryId]);\n\n\tconst properties = {\n\t\t...props,\n\t\tonSearch: setQuery,\n\t\tfilters,\n\t\tshouldPickDefault: (store, multiple, isEmptyValue, reqProps, value) =>\n\t\t\tshouldPickDefault(store, multiple, isEmptyValue, reqProps, value, props.isDefault),\n\t\tgetName: (item: ClinicSelectInfo) => getName(item, props.markCustomer),\n\t\tfilterOption: () => true,\n\t\tisEmptyValue,\n\t};\n\n\treturn <CoreSelect store=\"clinics\" {...properties} />;\n};\n","import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSelector } from 'react-redux';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { State } from '@app/objects/State';\n\nimport { addressService } from '@app/services/AddressService';\n\nimport {\n\tCoreSelect,\n\tCoreSelectProps,\n} from '@app/components/UI/Inputs/CoreSelect';\n\nimport { RegionSelectFilter } from '@app/store/SelectList/SelectsInterfaces';\nimport { SelectRequestParams } from '@app/store/SelectList/ListActions';\n\nimport { ApplicationState } from '@app/store';\nimport { SelectItem } from '@app/store/SelectList/SelectList';\n\ntype Value = number;\n\ninterface BaseProps {\n\tcountry: string;\n\tdisabled?: boolean;\n\tclassName?: string;\n\tselectClassName?: string;\n\n\tpickDefault?: (entity) => Value;\n\n\tlabel?: string;\n\tplaceholder?: string;\n\n\tstyle?: React.CSSProperties;\n}\n\ninterface SingleProps extends BaseProps {\n\tvalue?: Value | undefined;\n\tonChange: (value: Value | undefined) => void;\n\tmultiple?: false;\n}\n\ninterface MultipleProps extends BaseProps {\n\tvalue?: Array<Value>;\n\tonChange: (value: Array<Value> | undefined) => void;\n\tmultiple: true;\n}\n\ntype OwnProps = SingleProps | MultipleProps;\n\ninterface RegionRequestParams extends SelectRequestParams<Value> {\n\trequestOnMount: boolean;\n}\n\nconst reqParams: Partial<RegionRequestParams> = {\n\tcount: 200,\n\trequestOnMount: true,\n};\n\nfunction getName(item: State) {\n\treturn `${item.name} (${item.code})`;\n}\n\nfunction isEmptyValue(value?: Value | Array<Value>) {\n\tif (value === undefined) return true;\n\tif (Array.isArray(value)) return value.length === 0;\n\n\treturn false;\n}\n\nfunction shouldPickDefault(store, multiple, isEmptyValue, reqProps, value): boolean {\n\treturn !store.isLoading\n\t\t&& store.items?.length && store.pagination.total === 1\n\t\t&& (isEmptyValue?.(value))\n\t\t&& reqProps.isEmpty(store.filters);\n}\n\nexport const RegionSelect: React.FC<OwnProps> = (props: OwnProps) => {\n\tconst [query, setQuery] = React.useState<string>('');\n\tconst { t } = useTranslation('translation', { keyPrefix: 'selects.region-select.placeholder' });\n\n\tconst store = useSelector<ApplicationState, SelectItem<State, RegionSelectFilter>>((state: ApplicationState) => state.selects.regions);\n\n\tReact.useEffect(() => {\n\t\tif (store && props.value !== undefined) {\n\t\t\tconst state = store.items.find((item) => item.id === props.value);\n\n\t\t\tif (state) {\n\t\t\t\tif (props.multiple) {\n\t\t\t\t\tprops.onChange([state.id]);\n\t\t\t\t} else {\n\t\t\t\t\tprops.onChange(state.id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, [props.value, store]);\n\n\tconst details = addressService.provide(props.country);\n\n\tconst filters: Nullable<RegionSelectFilter> = React.useMemo(() => ({\n\t\tname: query,\n\t\tsearch: query,\n\t\tcountry: props.country,\n\t}), [query, props.country]);\n\n\tconst properties: CoreSelectProps<Value, 'regions', RegionRequestParams> = {\n\t\t...props,\n\t\tonSearch: setQuery,\n\t\tfilters,\n\t\tplaceholder: t(details.regionKey),\n\t\treqParams,\n\t\tgetName,\n\t\tisEmptyValue,\n\t\tshouldPickDefault,\n\t\tstore: 'regions',\n\t};\n\n\treturn <CoreSelect<Value, 'regions', RegionRequestParams> {...properties} />;\n};\n","import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Autocomplete, OptionType } from '@common/react/components/Forms/Autocomplete/Autocomplete';\n\nimport { addressService } from '@app/services/AddressService';\nimport { PostalCode } from '@app/objects/PostalCode';\n\ninterface ComponentProps {\n\tvalue: string;\n\tonSelect: (value: string, item?: PostalCode) => void;\n\tonChange?: (value: string) => void;\n\tdisabled?: boolean;\n\tcountry: string;\n}\n\nfunction toOption(item: PostalCode): OptionType {\n\treturn {\n\t\tid: item.id,\n\t\tvalue: item.id.toString(10),\n\t\tlabel: item.zip,\n\t};\n}\n\nexport const PostalCodeAutocomplete: React.FC<ComponentProps> = (props: ComponentProps) => {\n\tconst { t } = useTranslation('translation', { keyPrefix: 'selects.postal-code-autocomplete.placeholder' });\n\tconst details = addressService.provide(props.country);\n\n\treturn (\n\t\t<Autocomplete<PostalCode>\n\t\t\ttype=\"zipCodeList\"\n\t\t\tparams={{ count: 1000, country: props.country }}\n\n\t\t\tvalue={props.value}\n\t\t\tonSelect={props.onSelect}\n\t\t\tonChange={props.onChange}\n\t\t\ttoOption={toOption}\n\n\t\t\tdisabled={!details.withMail || props.disabled}\n\t\t\tplaceholder={t(details.mailKey)}\n\t\t/>\n\t);\n};\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { ImageComponent } from '@common/react/components/UI/Image/Image';\n\nimport {\n\tCrematorySelectFilter,\n} from '@app/store/SelectList/SelectsInterfaces';\n\nimport { CoreSelect } from '@app/components/UI/Inputs/CoreSelect';\nimport { CrematoryListInfo } from '@app/objects/Crematory';\nimport { ApplicationState } from '@app/store';\n\ninterface BaseProps {\n\tdisabled?: boolean;\n\tclassName?: string;\n\tselectClassName?: string;\n\tactiveClassName?: string;\n\n\tpickDefault?: (entity) => number;\n\tonSelect?: (id: number) => void;\n\tonDeselect?: (id: number) => void;\n\n\tlabel?: string;\n\tplaceholder?: string;\n\tnoPreselect?: boolean;\n\tallowClear?: boolean;\n\twithLogo?: boolean;\n}\n\ninterface SingleProps extends BaseProps {\n\tvalue?: number;\n\tonChange: (value: number | undefined) => void;\n\tmultiple?: false;\n}\n\ninterface MultipleProps extends BaseProps {\n\tvalue?: Array<number>;\n\tonChange: (value: Array<number> | undefined) => void;\n\tmultiple: true;\n}\n\ntype OwnProps = SingleProps | MultipleProps;\n\nfunction isEmptyValue(value?: number | Array<number>) {\n\tif (value === undefined) return true;\n\tif (Array.isArray(value)) return value.length === 0;\n\n\treturn value === -1;\n}\n\nfunction shouldPickDefault(store, multiple, isEmptyValue, reqProps, value): boolean {\n\treturn !store.isLoading\n\t\t&& store.items?.length && store.pagination.total === 1\n\t\t// eslint-disable-next-line sonarjs/no-all-duplicated-branches\n\t\t&& (multiple ? isEmptyValue?.(value) : isEmptyValue?.(value))\n\t\t&& reqProps.isEmpty(store.filters);\n}\n\nfunction getName(item: CrematoryListInfo, withLogo?: boolean) {\n\tif (withLogo) {\n\t\treturn (\n\t\t\t<div className=\"crematory-logo\">\n\t\t\t\t<ImageComponent src={item.avatar} alt={item.name} className=\"crematory-logo__img\" />\n\t\t\t\t<span className=\"icon-margin\">{item.name}</span>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn item.name;\n}\n\nexport const CrematorySelect = (props: OwnProps): JSX.Element => {\n\tconst [query, setQuery] = React.useState<string>('');\n\tconst activeCrematoryId = useSelector((state: ApplicationState) => state.login.user?.activeCrematoryId);\n\n\tconst filters: Nullable<CrematorySelectFilter> = React.useMemo(() => ({\n\t\tname: query,\n\t\tsearch: query,\n\t}), [query]);\n\n\tReact.useEffect(() => {\n\t\tif (activeCrematoryId) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n\t\t\t// @ts-ignore:next-line\n\t\t\tprops.onChange(activeCrematoryId);\n\t\t}\n\t}, [activeCrematoryId]);\n\n\tconst properties = {\n\t\t...props,\n\t\tonSearch: setQuery,\n\t\tfilters,\n\t\tgetName: (item: CrematoryListInfo) => getName(item, props.withLogo),\n\t\tfilterOption: () => true,\n\t\tisEmptyValue,\n\t\tshouldPickDefault,\n\t};\n\n\treturn <CoreSelect store=\"crematories\" {...properties} />;\n};\n","import { UIEvent } from 'react';\n\nimport dummyAvatar from '@common/react/images/avatar.jpg';\n\ninterface WithAvatar {\n\tavatar: string;\n}\n\nexport function dateToLocaleCustom(t?: number, format: string = 'MM/dd/yyyy'):string {\n\tif (!t) return '';\n\n\tconst date = new Date(t);\n\tconst year = date.getFullYear();\n\tconst month = (`0${date.getMonth() + 1}`).slice(-2);\n\tconst day = (`0${date.getDate()}`).slice(-2);\n\n\treturn format.replace('MM', month)\n\t\t.replace('dd', day)\n\t\t.replace('yyyy', year.toFixed());\n}\n\nexport function dateTimeToLocaleCustom(t?: number):string {\n\tif (!t) return '';\n\n\treturn `${dateToLocaleCustom(t)} ${new Date(t).toLocaleString('en-US', { hour: '2-digit', minute: '2-digit' })}`;\n}\n\nexport function dateToStringCustom(t?: number):string {\n\tif (!t) return '';\n\n\treturn dateToLocaleCustom(t + (new Date(t)).getTimezoneOffset() * 60 * 1000);\n}\n\nexport function dateTimeToStringCustom(t?: number):string {\n\tif (!t) return '';\n\n\treturn dateTimeToLocaleCustom(t + (new Date(t)).getTimezoneOffset() * 60 * 1000);\n}\n\nexport const getAvatar: (user: WithAvatar | null, dummyImage?: string) => string = (user, dummyImage) => {\n\treturn `${ (user && user.avatar) ? user.avatar : dummyImage || dummyAvatar}`;\n};\n\nexport function enumNameToTitle(name: string):string {\n\treturn name.replace(/([A-Z]+)/g, ' $1').replace(/([A-Z][a-z])/g, ' $1');\n}\n\n// [Obsolete] This was required for antd <= 3.11.x - see antd faq for getPopupContainer Selects\nexport const getPopupContainer = (triggerNode: HTMLElement) => triggerNode.parentNode as HTMLElement;\n\n/**\n * A factory for scroll to bottom event handler\n * This factory is supposed to generate handlers that fetch more items when user scrolls to bottom of the list\n * @param {() => void} fetchMore - a function to fetch more items to list\n * @param {boolean} shouldFetch - whether to enable load more or not\n *\n * @returns {(event: React.UIEvent<HTMLElement>) => void} Event handler that fetches more items when user scrolls to bottom\n */\nexport const getLoadableScrollHandler = (fetchMore: () => void, shouldFetch: boolean) => {\n\tconst refetchHeight = 0.85;\n\n\treturn (event: UIEvent<HTMLElement>) => {\n\t\tconst {\n\t\t\tscrollHeight,\n\t\t\tscrollTop,\n\t\t\tclientHeight,\n\t\t} = event.currentTarget.children[0];\n\n\t\tif (shouldFetch && ((scrollTop + clientHeight) / scrollHeight >= refetchHeight)) fetchMore();\n\t};\n};\n\nexport const replaceSearchUrl = (search: string, key: string, value: string, removeEmpty = true): string => {\n\tconst remove = removeEmpty && ['', 'null', 'undefined', '-1', '[]'].indexOf(value) !== -1;\n\n\tif (search.indexOf(`${key}=`) !== -1) {\n\t\treturn search.replace(new RegExp(`(&)*(${key}=)[^\\\\&]*(&)*`), (a, b, c, d) => {\n\t\t\treturn remove ? (b && d ? '&' : '') : `${(b ? b : '')}${key}=${value}${(d ? d : '')}`;\n\t\t});\n\t}\n\n\treturn `${search ? `${search}` : ''}${remove ? '' : `${(search.indexOf('?') === -1 ? '?' : (search.slice(-1) === '?' ? '' : '&'))}${key}=${value}`}`;\n};\n","module.exports = (__webpack_require__(7))(617);","module.exports = (__webpack_require__(7))(172);","import { useLayoutEffect } from 'react';\n\nvar index = useLayoutEffect ;\n\nexport default index;\n","import { useRef, useCallback } from 'react';\n\nvar updateRef = function updateRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n return;\n }\n ref.current = value;\n};\n\nvar useComposedRef = function useComposedRef(libRef, userRef) {\n var prevUserRef = useRef();\n return useCallback(function (instance) {\n libRef.current = instance;\n\n if (prevUserRef.current) {\n updateRef(prevUserRef.current, null);\n }\n\n prevUserRef.current = userRef;\n\n if (!userRef) {\n return;\n }\n\n updateRef(userRef, instance);\n }, [userRef]);\n};\n\nexport default useComposedRef;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport * as React from 'react';\nimport useLatest from 'use-latest';\nimport useComposedRef from 'use-composed-ref';\n\nvar HIDDEN_TEXTAREA_STYLE = {\n 'min-height': '0',\n 'max-height': 'none',\n height: '0',\n visibility: 'hidden',\n overflow: 'hidden',\n position: 'absolute',\n 'z-index': '-1000',\n top: '0',\n right: '0'\n};\nvar forceHiddenStyles = function forceHiddenStyles(node) {\n Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function (key) {\n node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], 'important');\n });\n};\nvar forceHiddenStyles$1 = forceHiddenStyles;\n\n// TODO: use labelled tuples once they are avaiable:\n// export type CalculatedNodeHeights = [height: number, rowHeight: number];\n// https://github.com/microsoft/TypeScript/issues/28259\n\nvar hiddenTextarea = null;\nvar getHeight = function getHeight(node, sizingData) {\n var height = node.scrollHeight;\n if (sizingData.sizingStyle.boxSizing === 'border-box') {\n // border-box: add border, since height = content + padding + border\n return height + sizingData.borderSize;\n }\n\n // remove padding, since height = content\n return height - sizingData.paddingSize;\n};\nfunction calculateNodeHeight(sizingData, value, minRows, maxRows) {\n if (minRows === void 0) {\n minRows = 1;\n }\n if (maxRows === void 0) {\n maxRows = Infinity;\n }\n if (!hiddenTextarea) {\n hiddenTextarea = document.createElement('textarea');\n hiddenTextarea.setAttribute('tabindex', '-1');\n hiddenTextarea.setAttribute('aria-hidden', 'true');\n forceHiddenStyles$1(hiddenTextarea);\n }\n if (hiddenTextarea.parentNode === null) {\n document.body.appendChild(hiddenTextarea);\n }\n var paddingSize = sizingData.paddingSize,\n borderSize = sizingData.borderSize,\n sizingStyle = sizingData.sizingStyle;\n var boxSizing = sizingStyle.boxSizing;\n Object.keys(sizingStyle).forEach(function (_key) {\n var key = _key;\n hiddenTextarea.style[key] = sizingStyle[key];\n });\n forceHiddenStyles$1(hiddenTextarea);\n hiddenTextarea.value = value;\n var height = getHeight(hiddenTextarea, sizingData);\n // Double set and calc due to Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1795904\n hiddenTextarea.value = value;\n height = getHeight(hiddenTextarea, sizingData);\n\n // measure height of a textarea with a single row\n hiddenTextarea.value = 'x';\n var rowHeight = hiddenTextarea.scrollHeight - paddingSize;\n var minHeight = rowHeight * minRows;\n if (boxSizing === 'border-box') {\n minHeight = minHeight + paddingSize + borderSize;\n }\n height = Math.max(minHeight, height);\n var maxHeight = rowHeight * maxRows;\n if (boxSizing === 'border-box') {\n maxHeight = maxHeight + paddingSize + borderSize;\n }\n height = Math.min(maxHeight, height);\n return [height, rowHeight];\n}\n\nvar noop = function noop() {};\nvar pick = function pick(props, obj) {\n return props.reduce(function (acc, prop) {\n acc[prop] = obj[prop];\n return acc;\n }, {});\n};\n\nvar SIZING_STYLE = ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth', 'boxSizing', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'letterSpacing', 'lineHeight', 'paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop',\n// non-standard\n'tabSize', 'textIndent',\n// non-standard\n'textRendering', 'textTransform', 'width', 'wordBreak'];\nvar isIE = !!document.documentElement.currentStyle ;\nvar getSizingData = function getSizingData(node) {\n var style = window.getComputedStyle(node);\n if (style === null) {\n return null;\n }\n var sizingStyle = pick(SIZING_STYLE, style);\n var boxSizing = sizingStyle.boxSizing;\n\n // probably node is detached from DOM, can't read computed dimensions\n if (boxSizing === '') {\n return null;\n }\n\n // IE (Edge has already correct behaviour) returns content width as computed width\n // so we need to add manually padding and border widths\n if (isIE && boxSizing === 'border-box') {\n sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + 'px';\n }\n var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);\n var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);\n return {\n sizingStyle: sizingStyle,\n paddingSize: paddingSize,\n borderSize: borderSize\n };\n};\nvar getSizingData$1 = getSizingData;\n\nfunction useListener(target, type, listener) {\n var latestListener = useLatest(listener);\n React.useLayoutEffect(function () {\n var handler = function handler(ev) {\n return latestListener.current(ev);\n };\n\n // might happen if document.fonts is not defined, for instance\n if (!target) {\n return;\n }\n target.addEventListener(type, handler);\n return function () {\n return target.removeEventListener(type, handler);\n };\n }, []);\n}\nvar useWindowResizeListener = function useWindowResizeListener(listener) {\n useListener(window, 'resize', listener);\n};\nvar useFontsLoadedListener = function useFontsLoadedListener(listener) {\n useListener(document.fonts, 'loadingdone', listener);\n};\n\nvar _excluded = [\"cacheMeasurements\", \"maxRows\", \"minRows\", \"onChange\", \"onHeightChange\"];\nvar TextareaAutosize = function TextareaAutosize(_ref, userRef) {\n var cacheMeasurements = _ref.cacheMeasurements,\n maxRows = _ref.maxRows,\n minRows = _ref.minRows,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? noop : _ref$onChange,\n _ref$onHeightChange = _ref.onHeightChange,\n onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var isControlled = props.value !== undefined;\n var libRef = React.useRef(null);\n var ref = useComposedRef(libRef, userRef);\n var heightRef = React.useRef(0);\n var measurementsCacheRef = React.useRef();\n var resizeTextarea = function resizeTextarea() {\n var node = libRef.current;\n var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node);\n if (!nodeSizingData) {\n return;\n }\n measurementsCacheRef.current = nodeSizingData;\n var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || 'x', minRows, maxRows),\n height = _calculateNodeHeight[0],\n rowHeight = _calculateNodeHeight[1];\n if (heightRef.current !== height) {\n heightRef.current = height;\n node.style.setProperty('height', height + \"px\", 'important');\n onHeightChange(height, {\n rowHeight: rowHeight\n });\n }\n };\n var handleChange = function handleChange(event) {\n if (!isControlled) {\n resizeTextarea();\n }\n onChange(event);\n };\n {\n React.useLayoutEffect(resizeTextarea);\n useWindowResizeListener(resizeTextarea);\n useFontsLoadedListener(resizeTextarea);\n return /*#__PURE__*/React.createElement(\"textarea\", _extends({}, props, {\n onChange: handleChange,\n ref: ref\n }));\n }\n};\nvar index = /* #__PURE__ */React.forwardRef(TextareaAutosize);\n\nexport { index as default };\n","import * as React from 'react';\nimport useIsomorphicLayoutEffect from 'use-isomorphic-layout-effect';\n\nvar useLatest = function useLatest(value) {\n var ref = React.useRef(value);\n useIsomorphicLayoutEffect(function () {\n ref.current = value;\n });\n return ref;\n};\n\nexport { useLatest as default };\n","import * as React from 'react';\nimport CoreTextArea from 'antd/lib/input/TextArea';\nimport TextArea, { TextareaAutosizeProps } from 'react-textarea-autosize';\n\ninterface ComponentProps {\n\tvalue: string;\n\tname: string;\n\n\tonChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n\tonBlur?: (event: React.FocusEvent<HTMLTextAreaElement, Element>) => void;\n\n\tstyle?: TextareaAutosizeProps['style'];\n}\n\ntype TextAreaComponentProps = Omit<ComponentProps, 'style'>\nexport const TextAreaComponent: React.FC<TextAreaComponentProps> = (props: TextAreaComponentProps) => (\n\t<CoreTextArea\n\t\tclassName=\"form-control\"\n\t\tid={props.name}\n\t\tname={props.name}\n\n\t\tvalue={props.value}\n\t\tonChange={props.onChange}\n\t\tonBlur={props.onBlur}\n\t/>\n);\n\nexport const TextAreaResizeComponent: React.FC<ComponentProps> = (props: ComponentProps) => {\n\treturn (\n\t\t<TextArea\n\t\t\tclassName=\"form-control textarea\"\n\n\t\t\tid={props.name}\n\t\t\tname={props.name}\n\t\t\tstyle={props.style}\n\n\t\t\tvalue={props.value}\n\n\t\t\tonChange={props.onChange}\n\t\t\tonBlur={props.onBlur}\n\t\t/>\n\t);\n};\n","import { inputToRGB, rgbToHex, rgbToHsv } from '@ctrl/tinycolor';\nvar hueStep = 2; // 色相阶梯\nvar saturationStep = 0.16; // 饱和度阶梯,浅色部分\nvar saturationStep2 = 0.05; // 饱和度阶梯,深色部分\nvar brightnessStep1 = 0.05; // 亮度阶梯,浅色部分\nvar brightnessStep2 = 0.15; // 亮度阶梯,深色部分\nvar lightColorCount = 5; // 浅色数量,主色上\nvar darkColorCount = 4; // 深色数量,主色下\n// 暗色主题颜色映射关系表\nvar darkColorMap = [{\n index: 7,\n opacity: 0.15\n}, {\n index: 6,\n opacity: 0.25\n}, {\n index: 5,\n opacity: 0.3\n}, {\n index: 5,\n opacity: 0.45\n}, {\n index: 5,\n opacity: 0.65\n}, {\n index: 5,\n opacity: 0.85\n}, {\n index: 4,\n opacity: 0.9\n}, {\n index: 3,\n opacity: 0.95\n}, {\n index: 2,\n opacity: 0.97\n}, {\n index: 1,\n opacity: 0.98\n}];\n// Wrapper function ported from TinyColor.prototype.toHsv\n// Keep it here because of `hsv.h * 360`\nfunction toHsv(_ref) {\n var r = _ref.r,\n g = _ref.g,\n b = _ref.b;\n var hsv = rgbToHsv(r, g, b);\n return {\n h: hsv.h * 360,\n s: hsv.s,\n v: hsv.v\n };\n}\n\n// Wrapper function ported from TinyColor.prototype.toHexString\n// Keep it here because of the prefix `#`\nfunction toHex(_ref2) {\n var r = _ref2.r,\n g = _ref2.g,\n b = _ref2.b;\n return \"#\".concat(rgbToHex(r, g, b, false));\n}\n\n// Wrapper function ported from TinyColor.prototype.mix, not treeshakable.\n// Amount in range [0, 1]\n// Assume color1 & color2 has no alpha, since the following src code did so.\nfunction mix(rgb1, rgb2, amount) {\n var p = amount / 100;\n var rgb = {\n r: (rgb2.r - rgb1.r) * p + rgb1.r,\n g: (rgb2.g - rgb1.g) * p + rgb1.g,\n b: (rgb2.b - rgb1.b) * p + rgb1.b\n };\n return rgb;\n}\nfunction getHue(hsv, i, light) {\n var hue;\n // 根据色相不同,色相转向不同\n if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {\n hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;\n } else {\n hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;\n }\n if (hue < 0) {\n hue += 360;\n } else if (hue >= 360) {\n hue -= 360;\n }\n return hue;\n}\nfunction getSaturation(hsv, i, light) {\n // grey color don't change saturation\n if (hsv.h === 0 && hsv.s === 0) {\n return hsv.s;\n }\n var saturation;\n if (light) {\n saturation = hsv.s - saturationStep * i;\n } else if (i === darkColorCount) {\n saturation = hsv.s + saturationStep;\n } else {\n saturation = hsv.s + saturationStep2 * i;\n }\n // 边界值修正\n if (saturation > 1) {\n saturation = 1;\n }\n // 第一格的 s 限制在 0.06-0.1 之间\n if (light && i === lightColorCount && saturation > 0.1) {\n saturation = 0.1;\n }\n if (saturation < 0.06) {\n saturation = 0.06;\n }\n return Number(saturation.toFixed(2));\n}\nfunction getValue(hsv, i, light) {\n var value;\n if (light) {\n value = hsv.v + brightnessStep1 * i;\n } else {\n value = hsv.v - brightnessStep2 * i;\n }\n if (value > 1) {\n value = 1;\n }\n return Number(value.toFixed(2));\n}\nexport default function generate(color) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var patterns = [];\n var pColor = inputToRGB(color);\n for (var i = lightColorCount; i > 0; i -= 1) {\n var hsv = toHsv(pColor);\n var colorString = toHex(inputToRGB({\n h: getHue(hsv, i, true),\n s: getSaturation(hsv, i, true),\n v: getValue(hsv, i, true)\n }));\n patterns.push(colorString);\n }\n patterns.push(toHex(pColor));\n for (var _i = 1; _i <= darkColorCount; _i += 1) {\n var _hsv = toHsv(pColor);\n var _colorString = toHex(inputToRGB({\n h: getHue(_hsv, _i),\n s: getSaturation(_hsv, _i),\n v: getValue(_hsv, _i)\n }));\n patterns.push(_colorString);\n }\n\n // dark theme patterns\n if (opts.theme === 'dark') {\n return darkColorMap.map(function (_ref3) {\n var index = _ref3.index,\n opacity = _ref3.opacity;\n var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || '#141414'), inputToRGB(patterns[index]), opacity * 100));\n return darkColorString;\n });\n }\n return patterns;\n}","// Generated by script. Do NOT modify!\n\nexport var presetPrimaryColors = {\n \"red\": \"#F5222D\",\n \"volcano\": \"#FA541C\",\n \"orange\": \"#FA8C16\",\n \"gold\": \"#FAAD14\",\n \"yellow\": \"#FADB14\",\n \"lime\": \"#A0D911\",\n \"green\": \"#52C41A\",\n \"cyan\": \"#13C2C2\",\n \"blue\": \"#1677FF\",\n \"geekblue\": \"#2F54EB\",\n \"purple\": \"#722ED1\",\n \"magenta\": \"#EB2F96\",\n \"grey\": \"#666666\"\n};\nexport var red = [\"#fff1f0\", \"#ffccc7\", \"#ffa39e\", \"#ff7875\", \"#ff4d4f\", \"#f5222d\", \"#cf1322\", \"#a8071a\", \"#820014\", \"#5c0011\"];\nred.primary = red[5];\nexport var volcano = [\"#fff2e8\", \"#ffd8bf\", \"#ffbb96\", \"#ff9c6e\", \"#ff7a45\", \"#fa541c\", \"#d4380d\", \"#ad2102\", \"#871400\", \"#610b00\"];\nvolcano.primary = volcano[5];\nexport var orange = [\"#fff7e6\", \"#ffe7ba\", \"#ffd591\", \"#ffc069\", \"#ffa940\", \"#fa8c16\", \"#d46b08\", \"#ad4e00\", \"#873800\", \"#612500\"];\norange.primary = orange[5];\nexport var gold = [\"#fffbe6\", \"#fff1b8\", \"#ffe58f\", \"#ffd666\", \"#ffc53d\", \"#faad14\", \"#d48806\", \"#ad6800\", \"#874d00\", \"#613400\"];\ngold.primary = gold[5];\nexport var yellow = [\"#feffe6\", \"#ffffb8\", \"#fffb8f\", \"#fff566\", \"#ffec3d\", \"#fadb14\", \"#d4b106\", \"#ad8b00\", \"#876800\", \"#614700\"];\nyellow.primary = yellow[5];\nexport var lime = [\"#fcffe6\", \"#f4ffb8\", \"#eaff8f\", \"#d3f261\", \"#bae637\", \"#a0d911\", \"#7cb305\", \"#5b8c00\", \"#3f6600\", \"#254000\"];\nlime.primary = lime[5];\nexport var green = [\"#f6ffed\", \"#d9f7be\", \"#b7eb8f\", \"#95de64\", \"#73d13d\", \"#52c41a\", \"#389e0d\", \"#237804\", \"#135200\", \"#092b00\"];\ngreen.primary = green[5];\nexport var cyan = [\"#e6fffb\", \"#b5f5ec\", \"#87e8de\", \"#5cdbd3\", \"#36cfc9\", \"#13c2c2\", \"#08979c\", \"#006d75\", \"#00474f\", \"#002329\"];\ncyan.primary = cyan[5];\nexport var blue = [\"#e6f4ff\", \"#bae0ff\", \"#91caff\", \"#69b1ff\", \"#4096ff\", \"#1677ff\", \"#0958d9\", \"#003eb3\", \"#002c8c\", \"#001d66\"];\nblue.primary = blue[5];\nexport var geekblue = [\"#f0f5ff\", \"#d6e4ff\", \"#adc6ff\", \"#85a5ff\", \"#597ef7\", \"#2f54eb\", \"#1d39c4\", \"#10239e\", \"#061178\", \"#030852\"];\ngeekblue.primary = geekblue[5];\nexport var purple = [\"#f9f0ff\", \"#efdbff\", \"#d3adf7\", \"#b37feb\", \"#9254de\", \"#722ed1\", \"#531dab\", \"#391085\", \"#22075e\", \"#120338\"];\npurple.primary = purple[5];\nexport var magenta = [\"#fff0f6\", \"#ffd6e7\", \"#ffadd2\", \"#ff85c0\", \"#f759ab\", \"#eb2f96\", \"#c41d7f\", \"#9e1068\", \"#780650\", \"#520339\"];\nmagenta.primary = magenta[5];\nexport var grey = [\"#a6a6a6\", \"#999999\", \"#8c8c8c\", \"#808080\", \"#737373\", \"#666666\", \"#404040\", \"#1a1a1a\", \"#000000\", \"#000000\"];\ngrey.primary = grey[5];\nexport var gray = grey;\nexport var presetPalettes = {\n red: red,\n volcano: volcano,\n orange: orange,\n gold: gold,\n yellow: yellow,\n lime: lime,\n green: green,\n cyan: cyan,\n blue: blue,\n geekblue: geekblue,\n purple: purple,\n magenta: magenta,\n grey: grey\n};\nexport var redDark = [\"#2a1215\", \"#431418\", \"#58181c\", \"#791a1f\", \"#a61d24\", \"#d32029\", \"#e84749\", \"#f37370\", \"#f89f9a\", \"#fac8c3\"];\nredDark.primary = redDark[5];\nexport var volcanoDark = [\"#2b1611\", \"#441d12\", \"#592716\", \"#7c3118\", \"#aa3e19\", \"#d84a1b\", \"#e87040\", \"#f3956a\", \"#f8b692\", \"#fad4bc\"];\nvolcanoDark.primary = volcanoDark[5];\nexport var orangeDark = [\"#2b1d11\", \"#442a11\", \"#593815\", \"#7c4a15\", \"#aa6215\", \"#d87a16\", \"#e89a3c\", \"#f3b765\", \"#f8cf8d\", \"#fae3b7\"];\norangeDark.primary = orangeDark[5];\nexport var goldDark = [\"#2b2111\", \"#443111\", \"#594214\", \"#7c5914\", \"#aa7714\", \"#d89614\", \"#e8b339\", \"#f3cc62\", \"#f8df8b\", \"#faedb5\"];\ngoldDark.primary = goldDark[5];\nexport var yellowDark = [\"#2b2611\", \"#443b11\", \"#595014\", \"#7c6e14\", \"#aa9514\", \"#d8bd14\", \"#e8d639\", \"#f3ea62\", \"#f8f48b\", \"#fafab5\"];\nyellowDark.primary = yellowDark[5];\nexport var limeDark = [\"#1f2611\", \"#2e3c10\", \"#3e4f13\", \"#536d13\", \"#6f9412\", \"#8bbb11\", \"#a9d134\", \"#c9e75d\", \"#e4f88b\", \"#f0fab5\"];\nlimeDark.primary = limeDark[5];\nexport var greenDark = [\"#162312\", \"#1d3712\", \"#274916\", \"#306317\", \"#3c8618\", \"#49aa19\", \"#6abe39\", \"#8fd460\", \"#b2e58b\", \"#d5f2bb\"];\ngreenDark.primary = greenDark[5];\nexport var cyanDark = [\"#112123\", \"#113536\", \"#144848\", \"#146262\", \"#138585\", \"#13a8a8\", \"#33bcb7\", \"#58d1c9\", \"#84e2d8\", \"#b2f1e8\"];\ncyanDark.primary = cyanDark[5];\nexport var blueDark = [\"#111a2c\", \"#112545\", \"#15325b\", \"#15417e\", \"#1554ad\", \"#1668dc\", \"#3c89e8\", \"#65a9f3\", \"#8dc5f8\", \"#b7dcfa\"];\nblueDark.primary = blueDark[5];\nexport var geekblueDark = [\"#131629\", \"#161d40\", \"#1c2755\", \"#203175\", \"#263ea0\", \"#2b4acb\", \"#5273e0\", \"#7f9ef3\", \"#a8c1f8\", \"#d2e0fa\"];\ngeekblueDark.primary = geekblueDark[5];\nexport var purpleDark = [\"#1a1325\", \"#24163a\", \"#301c4d\", \"#3e2069\", \"#51258f\", \"#642ab5\", \"#854eca\", \"#ab7ae0\", \"#cda8f0\", \"#ebd7fa\"];\npurpleDark.primary = purpleDark[5];\nexport var magentaDark = [\"#291321\", \"#40162f\", \"#551c3b\", \"#75204f\", \"#a02669\", \"#cb2b83\", \"#e0529c\", \"#f37fb7\", \"#f8a8cc\", \"#fad2e3\"];\nmagentaDark.primary = magentaDark[5];\nexport var greyDark = [\"#151515\", \"#1f1f1f\", \"#2d2d2d\", \"#393939\", \"#494949\", \"#5a5a5a\", \"#6a6a6a\", \"#7b7b7b\", \"#888888\", \"#969696\"];\ngreyDark.primary = greyDark[5];\nexport var presetDarkPalettes = {\n red: redDark,\n volcano: volcanoDark,\n orange: orangeDark,\n gold: goldDark,\n yellow: yellowDark,\n lime: limeDark,\n green: greenDark,\n cyan: cyanDark,\n blue: blueDark,\n geekblue: geekblueDark,\n purple: purpleDark,\n magenta: magentaDark,\n grey: greyDark\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { FormProvider as RcFormProvider } from 'rc-field-form';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nexport var FormContext = /*#__PURE__*/React.createContext({\n labelAlign: 'right',\n vertical: false,\n itemRef: function itemRef() {}\n});\nexport var NoStyleItemContext = /*#__PURE__*/React.createContext(null);\nexport var FormProvider = function FormProvider(props) {\n var providerProps = omit(props, ['prefixCls']);\n return /*#__PURE__*/React.createElement(RcFormProvider, _extends({}, providerProps));\n};\nexport var FormItemPrefixContext = /*#__PURE__*/React.createContext({\n prefixCls: ''\n});\nexport var FormItemInputContext = /*#__PURE__*/React.createContext({});\nexport var NoFormStyle = function NoFormStyle(_ref) {\n var children = _ref.children,\n status = _ref.status,\n override = _ref.override;\n var formItemInputContext = useContext(FormItemInputContext);\n var newFormItemInputContext = useMemo(function () {\n var newContext = _extends({}, formItemInputContext);\n if (override) {\n delete newContext.isFormItemInput;\n }\n if (status) {\n delete newContext.status;\n delete newContext.hasFeedback;\n delete newContext.feedbackIcon;\n }\n return newContext;\n }, [status, override, formItemInputContext]);\n return /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n value: newFormItemInputContext\n }, children);\n};","import * as React from 'react';\nimport clsx from 'clsx';\nimport Button from 'antd/lib/button';\nimport { CloseOutlined } from '@ant-design/icons';\n\nimport { ImageComponent } from '@common/react/components/UI/Image/Image';\n\nimport noImage from '@images/no_image.jpg';\nimport '@app/scss/ui/urn-preview.scss';\n\ninterface PreviewProps {\n\timage?: string;\n\tonClose: () => void;\n}\n\nexport const Preview: React.FC<PreviewProps> = (props: PreviewProps) => {\n\tReact.useEffect(() => {\n\t\tdocument.body.classList.toggle('no-scroll', Boolean(props.image));\n\t}, [props.image]);\n\n\treturn (\n\t\t<div className={clsx('urn-preview', props.image && 'urn-active')} onClick={props.onClose}>\n\t\t\t<div className=\"urn-preview__container\">\n\t\t\t\t<ImageComponent\n\t\t\t\t\tsrc={props.image ?? ''}\n\t\t\t\t\tfallback={noImage}\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tclassName=\"action-container\"\n\t\t\t\t\tonClick={props.onClose}\n\t\t\t\t\ticon={<CloseOutlined className=\"action_link fa-2x\" />}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n","module.exports = (__webpack_require__(7))(56);","import * as React from 'react';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { useRequest } from '@app/hooks/useRequest';\n\nimport { CurrentStatus } from '@app/objects/CurrentStatus';\nimport { PromoteDirection, PromoteResponseCode } from '@app/components/UI/Status/PetStatusButton';\n\nexport interface StatusResponse {\n\tcurrentStatus: Nullable<CurrentStatus>;\n\n\tcode: PromoteResponseCode;\n\tmessage: string;\n}\n\ninterface RequestParams {\n\tpetId: number;\n\tpromoteBack: boolean;\n\tversion: number;\n\tconfirmChanges?: boolean;\n\tforceStatusId?: number;\n}\n\nexport interface PromoteParams {\n\tconfirmChanges?: boolean;\n\tforceStatusId?: number;\n\tsendEmail?: boolean;\n}\n\ntype PromoteRequest = (direction: PromoteDirection, petId: number, params?: PromoteParams) => Promise<StatusResponse | void>;\n\nexport interface PromoteObject {\n\trequest: PromoteRequest;\n\tisLoading?: PromoteDirection;\n}\n\ninterface OwnProps {\n\tchildren: (request: PromoteObject) => React.ReactElement;\n}\n\nexport const StatusChangeComponent = (props: OwnProps): React.ReactElement => {\n\tconst [isLoading, setLoading] = React.useState<PromoteDirection | undefined>(undefined);\n\tconst promRequest = useRequest<StatusResponse, RequestParams>('promoteStatus', undefined, { requestOnMount: false });\n\n\tconst request = (direction: PromoteDirection, petId: number, params?: PromoteParams) => {\n\t\tsetLoading(direction);\n\n\t\tconst promise = promRequest.reload({\n\t\t\tpetId,\n\t\t\tpromoteBack: direction === PromoteDirection.PD_PREVIOUS,\n\t\t\tversion: 2,\n\t\t\t...params,\n\t\t});\n\n\t\tpromise.finally(() => setLoading(undefined));\n\n\t\treturn promise;\n\t};\n\n\tconst promote: PromoteObject = {\n\t\trequest,\n\t\tisLoading,\n\t};\n\n\treturn props.children(promote);\n};\n","/**\n * Get order suffix based on number\n * (st, nd, rd, th)\n * @param order\n */\nexport function getOrderSuffix(order: number): string {\n\tconst digit = order % 10;\n\n\tif (digit === 1) return 'st';\n\tif (digit === 2) return 'nd';\n\tif (digit === 3) return 'rd';\n\n\treturn 'th';\n}\n","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _CheckOutlined = _interopRequireDefault(require(\"@ant-design/icons/CheckOutlined\"));\nvar _CopyOutlined = _interopRequireDefault(require(\"@ant-design/icons/CopyOutlined\"));\nvar _EditOutlined = _interopRequireDefault(require(\"@ant-design/icons/EditOutlined\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nvar _copyToClipboard = _interopRequireDefault(require(\"copy-to-clipboard\"));\nvar _rcResizeObserver = _interopRequireDefault(require(\"rc-resize-observer\"));\nvar _toArray = _interopRequireDefault(require(\"rc-util/lib/Children/toArray\"));\nvar _useLayoutEffect = _interopRequireDefault(require(\"rc-util/lib/hooks/useLayoutEffect\"));\nvar _useMergedState3 = _interopRequireDefault(require(\"rc-util/lib/hooks/useMergedState\"));\nvar _omit = _interopRequireDefault(require(\"rc-util/lib/omit\"));\nvar _ref3 = require(\"rc-util/lib/ref\");\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _configProvider = require(\"../../config-provider\");\nvar _LocaleReceiver = require(\"../../locale-provider/LocaleReceiver\");\nvar _transButton = _interopRequireDefault(require(\"../../_util/transButton\"));\nvar _styleChecker = require(\"../../_util/styleChecker\");\nvar _tooltip = _interopRequireDefault(require(\"../../tooltip\"));\nvar _Editable = _interopRequireDefault(require(\"../Editable\"));\nvar _useMergedConfig7 = _interopRequireDefault(require(\"../hooks/useMergedConfig\"));\nvar _useUpdatedEffect = _interopRequireDefault(require(\"../hooks/useUpdatedEffect\"));\nvar _Typography = _interopRequireDefault(require(\"../Typography\"));\nvar _Ellipsis = _interopRequireDefault(require(\"./Ellipsis\"));\nvar _EllipsisTooltip = _interopRequireDefault(require(\"./EllipsisTooltip\"));\nvar __rest = void 0 && (void 0).__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nfunction wrapperDecorations(_ref, content) {\n var mark = _ref.mark,\n code = _ref.code,\n underline = _ref.underline,\n del = _ref[\"delete\"],\n strong = _ref.strong,\n keyboard = _ref.keyboard,\n italic = _ref.italic;\n var currentContent = content;\n function wrap(needed, tag) {\n if (!needed) return;\n currentContent = /*#__PURE__*/React.createElement(tag, {}, currentContent);\n }\n wrap(strong, 'strong');\n wrap(underline, 'u');\n wrap(del, 'del');\n wrap(code, 'code');\n wrap(mark, 'mark');\n wrap(keyboard, 'kbd');\n wrap(italic, 'i');\n return currentContent;\n}\nfunction getNode(dom, defaultNode, needDom) {\n if (dom === true || dom === undefined) {\n return defaultNode;\n }\n return dom || needDom && defaultNode;\n}\nfunction toList(val) {\n if (val === false) {\n return [false, false];\n }\n return Array.isArray(val) ? val : [val];\n}\nvar ELLIPSIS_STR = '...';\nvar Base = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _a, _b, _c;\n var customizePrefixCls = props.prefixCls,\n className = props.className,\n style = props.style,\n type = props.type,\n disabled = props.disabled,\n children = props.children,\n ellipsis = props.ellipsis,\n editable = props.editable,\n copyable = props.copyable,\n component = props.component,\n title = props.title,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"style\", \"type\", \"disabled\", \"children\", \"ellipsis\", \"editable\", \"copyable\", \"component\", \"title\"]);\n var _React$useContext = React.useContext(_configProvider.ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n var textLocale = (0, _LocaleReceiver.useLocaleReceiver)('Text')[0]; // Force TS get this\n var typographyRef = React.useRef(null);\n var editIconRef = React.useRef(null);\n // ============================ MISC ============================\n var prefixCls = getPrefixCls('typography', customizePrefixCls);\n var textProps = (0, _omit[\"default\"])(restProps, ['mark', 'code', 'delete', 'underline', 'strong', 'keyboard', 'italic']);\n // ========================== Editable ==========================\n var _useMergedConfig = (0, _useMergedConfig7[\"default\"])(editable),\n _useMergedConfig2 = (0, _slicedToArray2[\"default\"])(_useMergedConfig, 2),\n enableEdit = _useMergedConfig2[0],\n editConfig = _useMergedConfig2[1];\n var _useMergedState = (0, _useMergedState3[\"default\"])(false, {\n value: editConfig.editing\n }),\n _useMergedState2 = (0, _slicedToArray2[\"default\"])(_useMergedState, 2),\n editing = _useMergedState2[0],\n setEditing = _useMergedState2[1];\n var _editConfig$triggerTy = editConfig.triggerType,\n triggerType = _editConfig$triggerTy === void 0 ? ['icon'] : _editConfig$triggerTy;\n var triggerEdit = function triggerEdit(edit) {\n var _a;\n if (edit) {\n (_a = editConfig.onStart) === null || _a === void 0 ? void 0 : _a.call(editConfig);\n }\n setEditing(edit);\n };\n // Focus edit icon when back\n (0, _useUpdatedEffect[\"default\"])(function () {\n var _a;\n if (!editing) {\n (_a = editIconRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }, [editing]);\n var onEditClick = function onEditClick(e) {\n e === null || e === void 0 ? void 0 : e.preventDefault();\n triggerEdit(true);\n };\n var onEditChange = function onEditChange(value) {\n var _a;\n (_a = editConfig.onChange) === null || _a === void 0 ? void 0 : _a.call(editConfig, value);\n triggerEdit(false);\n };\n var onEditCancel = function onEditCancel() {\n var _a;\n (_a = editConfig.onCancel) === null || _a === void 0 ? void 0 : _a.call(editConfig);\n triggerEdit(false);\n };\n // ========================== Copyable ==========================\n var _useMergedConfig3 = (0, _useMergedConfig7[\"default\"])(copyable),\n _useMergedConfig4 = (0, _slicedToArray2[\"default\"])(_useMergedConfig3, 2),\n enableCopy = _useMergedConfig4[0],\n copyConfig = _useMergedConfig4[1];\n var _React$useState = React.useState(false),\n _React$useState2 = (0, _slicedToArray2[\"default\"])(_React$useState, 2),\n copied = _React$useState2[0],\n setCopied = _React$useState2[1];\n var copyIdRef = React.useRef();\n var copyOptions = {};\n if (copyConfig.format) {\n copyOptions.format = copyConfig.format;\n }\n var cleanCopyId = function cleanCopyId() {\n window.clearTimeout(copyIdRef.current);\n };\n var onCopyClick = function onCopyClick(e) {\n var _a;\n e === null || e === void 0 ? void 0 : e.preventDefault();\n e === null || e === void 0 ? void 0 : e.stopPropagation();\n (0, _copyToClipboard[\"default\"])(copyConfig.text || String(children) || '', copyOptions);\n setCopied(true);\n // Trigger tips update\n cleanCopyId();\n copyIdRef.current = window.setTimeout(function () {\n setCopied(false);\n }, 3000);\n (_a = copyConfig.onCopy) === null || _a === void 0 ? void 0 : _a.call(copyConfig, e);\n };\n React.useEffect(function () {\n return cleanCopyId;\n }, []);\n // ========================== Ellipsis ==========================\n var _React$useState3 = React.useState(false),\n _React$useState4 = (0, _slicedToArray2[\"default\"])(_React$useState3, 2),\n isLineClampSupport = _React$useState4[0],\n setIsLineClampSupport = _React$useState4[1];\n var _React$useState5 = React.useState(false),\n _React$useState6 = (0, _slicedToArray2[\"default\"])(_React$useState5, 2),\n isTextOverflowSupport = _React$useState6[0],\n setIsTextOverflowSupport = _React$useState6[1];\n var _React$useState7 = React.useState(false),\n _React$useState8 = (0, _slicedToArray2[\"default\"])(_React$useState7, 2),\n expanded = _React$useState8[0],\n setExpanded = _React$useState8[1];\n var _React$useState9 = React.useState(false),\n _React$useState10 = (0, _slicedToArray2[\"default\"])(_React$useState9, 2),\n isJsEllipsis = _React$useState10[0],\n setIsJsEllipsis = _React$useState10[1];\n var _React$useState11 = React.useState(false),\n _React$useState12 = (0, _slicedToArray2[\"default\"])(_React$useState11, 2),\n isNativeEllipsis = _React$useState12[0],\n setIsNativeEllipsis = _React$useState12[1];\n var _React$useState13 = React.useState(true),\n _React$useState14 = (0, _slicedToArray2[\"default\"])(_React$useState13, 2),\n isNativeVisible = _React$useState14[0],\n setIsNativeVisible = _React$useState14[1];\n var _useMergedConfig5 = (0, _useMergedConfig7[\"default\"])(ellipsis, {\n expandable: false\n }),\n _useMergedConfig6 = (0, _slicedToArray2[\"default\"])(_useMergedConfig5, 2),\n enableEllipsis = _useMergedConfig6[0],\n ellipsisConfig = _useMergedConfig6[1];\n var mergedEnableEllipsis = enableEllipsis && !expanded;\n // Shared prop to reduce bundle size\n var _ellipsisConfig$rows = ellipsisConfig.rows,\n rows = _ellipsisConfig$rows === void 0 ? 1 : _ellipsisConfig$rows;\n var needMeasureEllipsis = React.useMemo(function () {\n return (\n // Disable ellipsis\n !mergedEnableEllipsis ||\n // Provide suffix\n ellipsisConfig.suffix !== undefined || ellipsisConfig.onEllipsis ||\n // Can't use css ellipsis since we need to provide the place for button\n ellipsisConfig.expandable || enableEdit || enableCopy\n );\n }, [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);\n (0, _useLayoutEffect[\"default\"])(function () {\n if (enableEllipsis && !needMeasureEllipsis) {\n setIsLineClampSupport((0, _styleChecker.isStyleSupport)('webkitLineClamp'));\n setIsTextOverflowSupport((0, _styleChecker.isStyleSupport)('textOverflow'));\n }\n }, [needMeasureEllipsis, enableEllipsis]);\n var cssEllipsis = React.useMemo(function () {\n if (needMeasureEllipsis) {\n return false;\n }\n if (rows === 1) {\n return isTextOverflowSupport;\n }\n return isLineClampSupport;\n }, [needMeasureEllipsis, isTextOverflowSupport, isLineClampSupport]);\n var isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? isNativeEllipsis : isJsEllipsis);\n var cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;\n var cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis;\n // >>>>> Expand\n var onExpandClick = function onExpandClick(e) {\n var _a;\n setExpanded(true);\n (_a = ellipsisConfig.onExpand) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, e);\n };\n var _React$useState15 = React.useState(0),\n _React$useState16 = (0, _slicedToArray2[\"default\"])(_React$useState15, 2),\n ellipsisWidth = _React$useState16[0],\n setEllipsisWidth = _React$useState16[1];\n var _React$useState17 = React.useState(0),\n _React$useState18 = (0, _slicedToArray2[\"default\"])(_React$useState17, 2),\n ellipsisFontSize = _React$useState18[0],\n setEllipsisFontSize = _React$useState18[1];\n var onResize = function onResize(_ref2, element) {\n var offsetWidth = _ref2.offsetWidth;\n var _a;\n setEllipsisWidth(offsetWidth);\n setEllipsisFontSize(parseInt((_a = window.getComputedStyle) === null || _a === void 0 ? void 0 : _a.call(window, element).fontSize, 10) || 0);\n };\n // >>>>> JS Ellipsis\n var onJsEllipsis = function onJsEllipsis(jsEllipsis) {\n var _a;\n setIsJsEllipsis(jsEllipsis);\n // Trigger if changed\n if (isJsEllipsis !== jsEllipsis) {\n (_a = ellipsisConfig.onEllipsis) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, jsEllipsis);\n }\n };\n // >>>>> Native ellipsis\n React.useEffect(function () {\n var textEle = typographyRef.current;\n if (enableEllipsis && cssEllipsis && textEle) {\n var currentEllipsis = cssLineClamp ? textEle.offsetHeight < textEle.scrollHeight : textEle.offsetWidth < textEle.scrollWidth;\n if (isNativeEllipsis !== currentEllipsis) {\n setIsNativeEllipsis(currentEllipsis);\n }\n }\n }, [enableEllipsis, cssEllipsis, children, cssLineClamp, isNativeVisible]);\n // https://github.com/ant-design/ant-design/issues/36786\n // Use IntersectionObserver to check if element is invisible\n React.useEffect(function () {\n var textEle = typographyRef.current;\n if (typeof IntersectionObserver === 'undefined' || !textEle || !cssEllipsis || !mergedEnableEllipsis) {\n return;\n }\n /* eslint-disable-next-line compat/compat */\n var observer = new IntersectionObserver(function () {\n setIsNativeVisible(!!textEle.offsetParent);\n });\n observer.observe(textEle);\n return function () {\n observer.disconnect();\n };\n }, [cssEllipsis, mergedEnableEllipsis]);\n // ========================== Tooltip ===========================\n var tooltipProps = {};\n if (ellipsisConfig.tooltip === true) {\n tooltipProps = {\n title: (_a = editConfig.text) !== null && _a !== void 0 ? _a : children\n };\n } else if ( /*#__PURE__*/React.isValidElement(ellipsisConfig.tooltip)) {\n tooltipProps = {\n title: ellipsisConfig.tooltip\n };\n } else if ((0, _typeof2[\"default\"])(ellipsisConfig.tooltip) === 'object') {\n tooltipProps = (0, _extends2[\"default\"])({\n title: (_b = editConfig.text) !== null && _b !== void 0 ? _b : children\n }, ellipsisConfig.tooltip);\n } else {\n tooltipProps = {\n title: ellipsisConfig.tooltip\n };\n }\n var topAriaLabel = React.useMemo(function () {\n var isValid = function isValid(val) {\n return ['string', 'number'].includes((0, _typeof2[\"default\"])(val));\n };\n if (!enableEllipsis || cssEllipsis) {\n return undefined;\n }\n if (isValid(editConfig.text)) {\n return editConfig.text;\n }\n if (isValid(children)) {\n return children;\n }\n if (isValid(title)) {\n return title;\n }\n if (isValid(tooltipProps.title)) {\n return tooltipProps.title;\n }\n return undefined;\n }, [enableEllipsis, cssEllipsis, title, tooltipProps.title, isMergedEllipsis]);\n // =========================== Render ===========================\n // >>>>>>>>>>> Editing input\n if (editing) {\n return /*#__PURE__*/React.createElement(_Editable[\"default\"], {\n value: (_c = editConfig.text) !== null && _c !== void 0 ? _c : typeof children === 'string' ? children : '',\n onSave: onEditChange,\n onCancel: onEditCancel,\n onEnd: editConfig.onEnd,\n prefixCls: prefixCls,\n className: className,\n style: style,\n direction: direction,\n component: component,\n maxLength: editConfig.maxLength,\n autoSize: editConfig.autoSize,\n enterIcon: editConfig.enterIcon\n });\n }\n // >>>>>>>>>>> Typography\n // Expand\n var renderExpand = function renderExpand() {\n var expandable = ellipsisConfig.expandable,\n symbol = ellipsisConfig.symbol;\n if (!expandable) return null;\n var expandContent;\n if (symbol) {\n expandContent = symbol;\n } else {\n expandContent = textLocale.expand;\n }\n return /*#__PURE__*/React.createElement(\"a\", {\n key: \"expand\",\n className: \"\".concat(prefixCls, \"-expand\"),\n onClick: onExpandClick,\n \"aria-label\": textLocale.expand\n }, expandContent);\n };\n // Edit\n var renderEdit = function renderEdit() {\n if (!enableEdit) return;\n var icon = editConfig.icon,\n tooltip = editConfig.tooltip;\n var editTitle = (0, _toArray[\"default\"])(tooltip)[0] || textLocale.edit;\n var ariaLabel = typeof editTitle === 'string' ? editTitle : '';\n return triggerType.includes('icon') ? ( /*#__PURE__*/React.createElement(_tooltip[\"default\"], {\n key: \"edit\",\n title: tooltip === false ? '' : editTitle\n }, /*#__PURE__*/React.createElement(_transButton[\"default\"], {\n ref: editIconRef,\n className: \"\".concat(prefixCls, \"-edit\"),\n onClick: onEditClick,\n \"aria-label\": ariaLabel\n }, icon || /*#__PURE__*/React.createElement(_EditOutlined[\"default\"], {\n role: \"button\"\n })))) : null;\n };\n // Copy\n var renderCopy = function renderCopy() {\n if (!enableCopy) return;\n var tooltips = copyConfig.tooltips,\n icon = copyConfig.icon;\n var tooltipNodes = toList(tooltips);\n var iconNodes = toList(icon);\n var copyTitle = copied ? getNode(tooltipNodes[1], textLocale.copied) : getNode(tooltipNodes[0], textLocale.copy);\n var systemStr = copied ? textLocale.copied : textLocale.copy;\n var ariaLabel = typeof copyTitle === 'string' ? copyTitle : systemStr;\n return /*#__PURE__*/React.createElement(_tooltip[\"default\"], {\n key: \"copy\",\n title: copyTitle\n }, /*#__PURE__*/React.createElement(_transButton[\"default\"], {\n className: (0, _classnames[\"default\"])(\"\".concat(prefixCls, \"-copy\"), copied && \"\".concat(prefixCls, \"-copy-success\")),\n onClick: onCopyClick,\n \"aria-label\": ariaLabel\n }, copied ? getNode(iconNodes[1], /*#__PURE__*/React.createElement(_CheckOutlined[\"default\"], null), true) : getNode(iconNodes[0], /*#__PURE__*/React.createElement(_CopyOutlined[\"default\"], null), true)));\n };\n var renderOperations = function renderOperations(renderExpanded) {\n return [renderExpanded && renderExpand(), renderEdit(), renderCopy()];\n };\n var renderEllipsis = function renderEllipsis(needEllipsis) {\n return [needEllipsis && ( /*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": true,\n key: \"ellipsis\"\n }, ELLIPSIS_STR)), ellipsisConfig.suffix, renderOperations(needEllipsis)];\n };\n return /*#__PURE__*/React.createElement(_rcResizeObserver[\"default\"], {\n onResize: onResize,\n disabled: !mergedEnableEllipsis || cssEllipsis\n }, function (resizeRef) {\n return /*#__PURE__*/React.createElement(_EllipsisTooltip[\"default\"], {\n tooltipProps: tooltipProps,\n enabledEllipsis: mergedEnableEllipsis,\n isEllipsis: isMergedEllipsis\n }, /*#__PURE__*/React.createElement(_Typography[\"default\"], (0, _extends2[\"default\"])({\n className: (0, _classnames[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])((0, _defineProperty2[\"default\"])({}, \"\".concat(prefixCls, \"-\").concat(type), type), \"\".concat(prefixCls, \"-disabled\"), disabled), \"\".concat(prefixCls, \"-ellipsis\"), enableEllipsis), \"\".concat(prefixCls, \"-single-line\"), mergedEnableEllipsis && rows === 1), \"\".concat(prefixCls, \"-ellipsis-single-line\"), cssTextOverflow), \"\".concat(prefixCls, \"-ellipsis-multiple-line\"), cssLineClamp), className),\n prefixCls: customizePrefixCls,\n style: (0, _extends2[\"default\"])((0, _extends2[\"default\"])({}, style), {\n WebkitLineClamp: cssLineClamp ? rows : undefined\n }),\n component: component,\n ref: (0, _ref3.composeRef)(resizeRef, typographyRef, ref),\n direction: direction,\n onClick: triggerType.includes('text') ? onEditClick : undefined,\n \"aria-label\": topAriaLabel === null || topAriaLabel === void 0 ? void 0 : topAriaLabel.toString(),\n title: title\n }, textProps), /*#__PURE__*/React.createElement(_Ellipsis[\"default\"], {\n enabledMeasure: mergedEnableEllipsis && !cssEllipsis,\n text: children,\n rows: rows,\n width: ellipsisWidth,\n fontSize: ellipsisFontSize,\n onEllipsis: onJsEllipsis\n }, function (node, needEllipsis) {\n var renderNode = node;\n if (node.length && needEllipsis && topAriaLabel) {\n renderNode = /*#__PURE__*/React.createElement(\"span\", {\n key: \"show-content\",\n \"aria-hidden\": true\n }, renderNode);\n }\n var wrappedContext = wrapperDecorations(props, /*#__PURE__*/React.createElement(React.Fragment, null, renderNode, renderEllipsis(needEllipsis)));\n return wrappedContext;\n })));\n });\n});\nvar _default = exports[\"default\"] = Base;","export class OnScrollManager {\n\tprivate pause: boolean = false;\n\tprivate throttle(callback: () => void, timeout: number) {\n\t\tif (this.pause) return;\n\n\t\tthis.pause = true;\n\n\t\tsetTimeout(() => {\n\t\t\tcallback();\n\n\t\t\tthis.pause = false;\n\t\t}, timeout);\n\t}\n\n\tpublic onScroll(target: HTMLElement, isLoading: boolean, hasMore: boolean, onLoad: () => void): void {\n\t\tconst height = target.offsetHeight;\n\t\tconst screenHeight = target.scrollHeight;\n\t\tconst scrolled = Math.floor(target.scrollTop);\n\n\t\tconst threshold = height - screenHeight / 4;\n\t\tconst position = scrolled + screenHeight;\n\n\t\tif (!isLoading && hasMore && position >= threshold) this.throttle(onLoad, 500);\n\t}\n}\n","import * as React from 'react';\n\nimport Pagination from 'antd/lib/pagination';\nimport Tag from 'antd/lib/tag';\n\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\nimport { AlertMessage } from '@common/react/components/UI/AlertMessage/AlertMessage';\n\nimport { EmailType, MailStatus, PetEmailLogView } from '@app/objects/EmailLog';\nimport { usePagination } from '@app/hooks/PaginationManager/PaginationManager';\nimport { useRemoteData } from '@app/hooks/RemoteDataProvider/RemoteDataProvider';\nimport { DateView } from '@app/components/UI/Views/DateFormat/DateView';\nimport { TimeView } from '@app/components/UI/Views/TimeView/TimeView';\n\ninterface OldPetEmailLogProps {\n\tpetId: number;\n}\n\nexport function setStatusColor(status: MailStatus) {\n\tswitch (status) {\n\tcase MailStatus.Success:\n\t\treturn 'green';\n\tcase MailStatus.Fail:\n\t\treturn 'red';\n\tcase MailStatus.Unknown:\n\t\treturn 'orange';\n\n\tdefault:\n\t\treturn 'default';\n\t}\n}\n\nexport const OldPetEmailLog: React.FC<OldPetEmailLogProps> = ({ petId }: OldPetEmailLogProps) => {\n\tconst params = React.useMemo(() => ({\n\t\tpetId,\n\t}), [petId]);\n\n\tconst request = useRemoteData<PetEmailLogView, OldPetEmailLogProps>({\n\t\tendpoint: 'petEmailLogList',\n\t\tshouldRefetch: false,\n\t\tusePagination: () => usePagination({ perPage: 5 }),\n\t}, params);\n\n\tReact.useEffect(() => {\n\t\trequest.fetch(params);\n\t}, [params]);\n\n\tif (request.loading) return <Loading />;\n\tif (request.error) return <AlertMessage message={request.error} />;\n\n\treturn (\n\t\t<>\n\t\t\t<ul className=\"status-history history-list\">\n\t\t\t\t{request.items && request.items.length > 0\n\t\t\t\t\t? request.items.map((item: PetEmailLogView) => (\n\t\t\t\t\t\t<li className=\"status-history__item history-item\" key={item.id}>\n\t\t\t\t\t\t\t<div className=\"clearfix\">\n\t\t\t\t\t\t\t\t<div className=\"status-history__item-name history-item__name pull-left\">\n\t\t\t\t\t\t\t\t\t<DateView date={item.dateTime} /> <TimeView time={item.dateTime} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\tclassName=\"status-history__item-name history-item__user pull-right\"\n\t\t\t\t\t\t\t\t\tcolor={setStatusColor(item.status)}\n\t\t\t\t\t\t\t\t\tstyle={{ margin: 0 }}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{MailStatus[item.status]}\n\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div className=\"clearfix\">\n\t\t\t\t\t\t\t\t<div className=\"status-history__item-name history-item__user pull-left\">\n\t\t\t\t\t\t\t\t\tEmail type: {EmailType[item.type]}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t))\n\t\t\t\t\t: <div className=\"text-center\"><i>History is empty</i></div>}\n\t\t\t</ul>\n\t\t\t<Pagination\n\t\t\t\ttotal={request.pagination.total}\n\t\t\t\thideOnSinglePage\n\t\t\t\tpageSize={request.pagination.perPage}\n\t\t\t\tonChange={(value: number) => request.onPageChange(value - 1)}\n\t\t\t\tcurrent={request.pagination.page + 1}\n\t\t\t\tstyle={{ textAlign: 'center' }}\n\t\t\t\tsize=\"small\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n","import * as React from 'react';\n\nimport { Nullable, isPresent } from '@common/typescript/objects/Nullable';\n\nimport { DeliveryType } from '@app/objects/Pet';\nimport { useCrematoryFeatures } from '@app/hooks/useCrematoryFeatures';\nimport { DeliveryTypeEntity, SystemDeliveryType } from '@app/objects/DeliveryType';\nimport { useDeliveryTypes } from '@app/hooks/Delivery/useDeliveryTypes';\n\ntype TypeTester = (value: Nullable<string | number>) => boolean;\n\nexport interface DeliveryManager {\n\ttype: 'modern' | 'obsolete';\n\n\tisHomeDropOff: TypeTester;\n\tisVetDropOff: TypeTester;\n\tisClinic: TypeTester;\n\tisMail: TypeTester;\n\tisPickup: TypeTester;\n\tisNone: TypeTester;\n\tis: (value: Nullable<string | number>, oneOf: Array<DeliveryType>) => boolean;\n}\n\n/**\n * Convert numeric value (or string-encoded number) to Delivery Type\n * @param {Nullable<string | number>} value value to be converted into DeliveryType\n * @returns {Nullable<DeliveryType>} DeliveryType or null if conversion is not possible\n */\nfunction toDeliveryType(value: Nullable<string | number>): Nullable<DeliveryType> {\n\tconst num = Number(value);\n\tif (Number.isNaN(num)) return null;\n\n\treturn num as DeliveryType;\n}\n\n/**\n * Check if value is equal to ref value\n * @param {Nullable<string | number>} value to be tested\n * @param {DeliveryType} ref value to test against\n * @returns {boolean} true if equal / false otherwise\n */\nfunction isDeliveryType(value: Nullable<string | number>, ref: DeliveryType): boolean {\n\tconst type = toDeliveryType(value);\n\n\treturn type === ref;\n}\n\nconst obsoleteManager: DeliveryManager = {\n\ttype: 'obsolete',\n\n\tisHomeDropOff: (value: Nullable<string | number>) => isDeliveryType(value, DeliveryType.HomeDropOff),\n\tisVetDropOff: (value: Nullable<string | number>) => isDeliveryType(value, DeliveryType.VetDropOff),\n\tisClinic: (value: Nullable<string | number>) => isDeliveryType(value, DeliveryType.Clinic),\n\tisMail: (value: Nullable<string | number>) => isDeliveryType(value, DeliveryType.Mail),\n\tisPickup: (value: Nullable<string | number>) => isDeliveryType(value, DeliveryType.Pickup),\n\tisNone: (value: Nullable<string | number>) => isDeliveryType(value, DeliveryType.None),\n\tis: (value: Nullable<string | number>, oneOf: Array<DeliveryType>) => {\n\t\tconst cast = toDeliveryType(value);\n\t\tif (cast === null) return false;\n\n\t\treturn oneOf.includes(cast);\n\t},\n};\n\n/**\n * Convert SystemDeliveryType to corresponding DeliveryType enum\n * Conversions is done by underline function that DeliveryType represents\n * @param {DeliveryType} deliveryType Delivery Type to be converted to SystemDeliveryType (if possible)\n * @returns {Nullable<SystemDeliveryType>} SystemDeliveryType or null if no corresponding SystemDeliveryType found\n */\nfunction toSystemType(deliveryType: DeliveryType): Nullable<SystemDeliveryType> {\n\tswitch (deliveryType) {\n\tcase DeliveryType.Clinic: return SystemDeliveryType.Clinic;\n\tcase DeliveryType.Mail: return SystemDeliveryType.Mail;\n\tcase DeliveryType.HomeDropOff: return SystemDeliveryType.HomeDropOff;\n\n\tdefault: return null;\n\t}\n}\n\nclass ModernDeliveryManager implements DeliveryManager {\n\tprivate readonly _store: Map<number, DeliveryTypeEntity>;\n\n\tconstructor(store: Map<number, DeliveryTypeEntity>) {\n\t\tthis._store = store;\n\t}\n\n\tprivate getDeliveryType(id: string | number): DeliveryTypeEntity | undefined {\n\t\tconst num = Number(id);\n\t\tif (Number.isNaN(num)) return undefined;\n\n\t\treturn this._store.get(num);\n\t}\n\n\tprivate isSystemType(id: Nullable<string | number>, type: SystemDeliveryType): boolean {\n\t\tif (id === null) return false;\n\n\t\tconst value = this.getDeliveryType(id);\n\t\tif (!value) return false;\n\n\t\treturn value.systemType === type;\n\t}\n\n\tpublic get type(): 'modern' {\n\t\treturn 'modern';\n\t}\n\n\tpublic isHomeDropOff(value: Nullable<string | number>): boolean {\n\t\treturn this.isSystemType(value, SystemDeliveryType.HomeDropOff);\n\t}\n\n\tpublic isVetDropOff(): boolean {\n\t\treturn false;\n\t}\n\n\tpublic isClinic(value: Nullable<string | number>): boolean {\n\t\treturn this.isSystemType(value, SystemDeliveryType.Clinic);\n\t}\n\n\tpublic isMail(value: Nullable<string | number>): boolean {\n\t\treturn this.isSystemType(value, SystemDeliveryType.Mail);\n\t}\n\n\tpublic isPickup(): boolean {\n\t\treturn false;\n\t}\n\n\tpublic isNone(value: Nullable<string | number>): boolean {\n\t\treturn value === null;\n\t}\n\n\tpublic is(value: Nullable<string | number>, oneOf: Array<DeliveryType>): boolean {\n\t\tif (value === null) return oneOf.includes(DeliveryType.None);\n\n\t\tconst delivery = this.getDeliveryType(value);\n\n\t\tif (!delivery) return false;\n\t\tif (delivery.systemType === null) return false;\n\n\t\treturn oneOf.map(toSystemType).filter(isPresent).includes(delivery.systemType);\n\t}\n}\n\nexport function useDeliveryManager(): DeliveryManager {\n\tconst features = useCrematoryFeatures();\n\tconst types = useDeliveryTypes();\n\tconst manager = React.useMemo(() => new ModernDeliveryManager(types.map), [types.map]);\n\n\tif (features.item?.enableCustomDeliveryType) return manager;\n\n\treturn obsoleteManager;\n}\n","// This icon file is generated automatically.\nvar PaperClipOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z\" } }] }, \"name\": \"paper-clip\", \"theme\": \"outlined\" };\nexport default PaperClipOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport PaperClipOutlinedSvg from \"@ant-design/icons-svg/es/asn/PaperClipOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar PaperClipOutlined = function PaperClipOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: PaperClipOutlinedSvg\n }));\n};\n\n/**![paper-clip](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc3OS4zIDE5Ni42Yy05NC4yLTk0LjItMjQ3LjYtOTQuMi0zNDEuNyAwbC0yNjEgMjYwLjhjLTEuNyAxLjctMi42IDQtMi42IDYuNHMuOSA0LjcgMi42IDYuNGwzNi45IDM2LjlhOSA5IDAgMDAxMi43IDBsMjYxLTI2MC44YzMyLjQtMzIuNCA3NS41LTUwLjIgMTIxLjMtNTAuMnM4OC45IDE3LjggMTIxLjIgNTAuMmMzMi40IDMyLjQgNTAuMiA3NS41IDUwLjIgMTIxLjIgMCA0NS44LTE3LjggODguOC01MC4yIDEyMS4ybC0yNjYgMjY1LjktNDMuMSA0My4xYy00MC4zIDQwLjMtMTA1LjggNDAuMy0xNDYuMSAwLTE5LjUtMTkuNS0zMC4yLTQ1LjQtMzAuMi03M3MxMC43LTUzLjUgMzAuMi03M2wyNjMuOS0yNjMuOGM2LjctNi42IDE1LjUtMTAuMyAyNC45LTEwLjNoLjFjOS40IDAgMTguMSAzLjcgMjQuNyAxMC4zIDYuNyA2LjcgMTAuMyAxNS41IDEwLjMgMjQuOSAwIDkuMy0zLjcgMTguMS0xMC4zIDI0LjdMMzcyLjQgNjUzYy0xLjcgMS43LTIuNiA0LTIuNiA2LjRzLjkgNC43IDIuNiA2LjRsMzYuOSAzNi45YTkgOSAwIDAwMTIuNyAwbDIxNS42LTIxNS42YzE5LjktMTkuOSAzMC44LTQ2LjMgMzAuOC03NC40cy0xMS01NC42LTMwLjgtNzQuNGMtNDEuMS00MS4xLTEwNy45LTQxLTE0OSAwTDQ2MyAzNjQgMjI0LjggNjAyLjFBMTcyLjIyIDE3Mi4yMiAwIDAwMTc0IDcyNC44YzAgNDYuMyAxOC4xIDg5LjggNTAuOCAxMjIuNSAzMy45IDMzLjggNzguMyA1MC43IDEyMi43IDUwLjcgNDQuNCAwIDg4LjgtMTYuOSAxMjIuNi01MC43bDMwOS4yLTMwOUM4MjQuOCA0OTIuNyA4NTAgNDMyIDg1MCAzNjcuNWMuMS02NC42LTI1LjEtMTI1LjMtNzAuNy0xNzAuOXoiIC8+PC9zdmc+) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(PaperClipOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'PaperClipOutlined';\n}\nexport default RefIcon;","import * as React from 'react';\n\nimport clsx from 'clsx';\nimport Button from 'antd/lib/button';\nimport { DeleteOutlined, EyeOutlined, PaperClipOutlined } from '@ant-design/icons';\nimport Space from 'antd/lib/space';\n\nimport { FileInterface } from '@common/typescript/objects/FileInterface';\nimport { ImageComponent } from '@common/react/components/UI/Image/Image';\n\ninterface FilePreviewProps {\n\tfile: FileInterface;\n\tfallback?: string;\n\n\tonDelete?: () => void;\n\tonPreview?: () => void;\n\n\t/**\n\t * Allow downloading item by clicking on filename\n\t */\n\tdownload?: boolean;\n}\n\nexport const FilePreview: React.FC<FilePreviewProps> = (props: FilePreviewProps) => (\n\t<div className=\"file-preview\">\n\t\t<div className=\"file-preview__image\">\n\t\t\t<ImageComponent\n\t\t\t\tsrc={props.file.thumb}\n\t\t\t\talt={props.file.name}\n\t\t\t\tfallback={props.fallback}\n\t\t\t/>\n\t\t\t<div className=\"file-preview__actions\">\n\t\t\t\t<Space>\n\t\t\t\t\t<Button\n\t\t\t\t\t\ttype=\"link\"\n\t\t\t\t\t\tstyle={{ display: props.onPreview ? undefined : 'none' }}\n\t\t\t\t\t\tonClick={props.onPreview}\n\t\t\t\t\t\ttitle=\"Preview file\"\n\t\t\t\t\t\ticon={<EyeOutlined />}\n\t\t\t\t\t/>\n\t\t\t\t\t<Button\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tdanger\n\t\t\t\t\t\tstyle={{ display: props.onDelete ? undefined : 'none' }}\n\t\t\t\t\t\tonClick={props.onDelete}\n\t\t\t\t\t\ttitle=\"Remove file\"\n\t\t\t\t\t\ticon={<DeleteOutlined />}\n\t\t\t\t\t/>\n\t\t\t\t</Space>\n\t\t\t</div>\n\t\t</div>\n\t\t<a\n\t\t\thref={props.file.src}\n\t\t\tdownload={props.download}\n\t\t\tclassName={clsx('file-preview__caption', !props.download && 'file-preview__caption--disabled')}\n\t\t\ttitle={props.file.name}\n\t\t>\n\t\t\t<PaperClipOutlined /><span>{props.file.name}</span>\n\t\t</a>\n\t</div>\n);\n\nFilePreview.defaultProps = {\n\tfallback: require('@images/no_image.jpg'),\n};\n","import React from 'react';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\n/* eslint-disable import/prefer-default-export */\nfunction invariant(condition, message) {\n if (condition) return;\n var error = new Error(\"loadable: \" + message);\n error.framesToPop = 1;\n error.name = 'Invariant Violation';\n throw error;\n}\nfunction warn(message) {\n // eslint-disable-next-line no-console\n console.warn(\"loadable: \" + message);\n}\n\nvar Context = /*#__PURE__*/\nReact.createContext();\n\nvar LOADABLE_REQUIRED_CHUNKS_KEY = '__LOADABLE_REQUIRED_CHUNKS__';\nfunction getRequiredChunkKey(namespace) {\n return \"\" + namespace + LOADABLE_REQUIRED_CHUNKS_KEY;\n}\n\nvar sharedInternals = /*#__PURE__*/Object.freeze({\n __proto__: null,\n getRequiredChunkKey: getRequiredChunkKey,\n invariant: invariant,\n Context: Context\n});\n\nvar LOADABLE_SHARED = {\n initialChunks: {}\n};\n\nvar STATUS_PENDING = 'PENDING';\nvar STATUS_RESOLVED = 'RESOLVED';\nvar STATUS_REJECTED = 'REJECTED';\n\nfunction resolveConstructor(ctor) {\n if (typeof ctor === 'function') {\n return {\n requireAsync: ctor,\n resolve: function resolve() {\n return undefined;\n },\n chunkName: function chunkName() {\n return undefined;\n }\n };\n }\n\n return ctor;\n}\n\nvar withChunkExtractor = function withChunkExtractor(Component) {\n var LoadableWithChunkExtractor = function LoadableWithChunkExtractor(props) {\n return React.createElement(Context.Consumer, null, function (extractor) {\n return React.createElement(Component, Object.assign({\n __chunkExtractor: extractor\n }, props));\n });\n };\n\n if (Component.displayName) {\n LoadableWithChunkExtractor.displayName = Component.displayName + \"WithChunkExtractor\";\n }\n\n return LoadableWithChunkExtractor;\n};\n\nvar identity = function identity(v) {\n return v;\n};\n\nfunction createLoadable(_ref) {\n var _ref$defaultResolveCo = _ref.defaultResolveComponent,\n defaultResolveComponent = _ref$defaultResolveCo === void 0 ? identity : _ref$defaultResolveCo,\n _render = _ref.render,\n onLoad = _ref.onLoad;\n\n function loadable(loadableConstructor, options) {\n if (options === void 0) {\n options = {};\n }\n\n var ctor = resolveConstructor(loadableConstructor);\n var cache = {};\n /**\n * Cachekey represents the component to be loaded\n * if key changes - component has to be reloaded\n * @param props\n * @returns {null|Component}\n */\n\n function _getCacheKey(props) {\n if (options.cacheKey) {\n return options.cacheKey(props);\n }\n\n if (ctor.resolve) {\n return ctor.resolve(props);\n }\n\n return 'static';\n }\n /**\n * Resolves loaded `module` to a specific `Component\n * @param module\n * @param props\n * @param Loadable\n * @returns Component\n */\n\n\n function resolve(module, props, Loadable) {\n var Component = options.resolveComponent ? options.resolveComponent(module, props) : defaultResolveComponent(module); // FIXME: suppressed due to https://github.com/gregberge/loadable-components/issues/990\n // if (options.resolveComponent && !ReactIs.isValidElementType(Component)) {\n // throw new Error(\n // `resolveComponent returned something that is not a React component!`,\n // )\n // }\n\n hoistNonReactStatics(Loadable, Component, {\n preload: true\n });\n return Component;\n }\n\n var cachedLoad = function cachedLoad(props) {\n var cacheKey = _getCacheKey(props);\n\n var promise = cache[cacheKey];\n\n if (!promise || promise.status === STATUS_REJECTED) {\n promise = ctor.requireAsync(props);\n promise.status = STATUS_PENDING;\n cache[cacheKey] = promise;\n promise.then(function () {\n promise.status = STATUS_RESOLVED;\n }, function (error) {\n console.error('loadable-components: failed to asynchronously load component', {\n fileName: ctor.resolve(props),\n chunkName: ctor.chunkName(props),\n error: error ? error.message : error\n });\n promise.status = STATUS_REJECTED;\n });\n }\n\n return promise;\n };\n\n var InnerLoadable =\n /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(InnerLoadable, _React$Component);\n\n InnerLoadable.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n var cacheKey = _getCacheKey(props);\n\n return _extends({}, state, {\n cacheKey: cacheKey,\n // change of a key triggers loading state automatically\n loading: state.loading || state.cacheKey !== cacheKey\n });\n };\n\n function InnerLoadable(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.state = {\n result: null,\n error: null,\n loading: true,\n cacheKey: _getCacheKey(props)\n };\n invariant(!props.__chunkExtractor || ctor.requireSync, 'SSR requires `@loadable/babel-plugin`, please install it'); // Server-side\n\n if (props.__chunkExtractor) {\n // This module has been marked with no SSR\n if (options.ssr === false) {\n return _assertThisInitialized(_this);\n } // We run load function, we assume that it won't fail and that it\n // triggers a synchronous loading of the module\n\n\n ctor.requireAsync(props)[\"catch\"](function () {\n return null;\n }); // So we can require now the module synchronously\n\n _this.loadSync();\n\n props.__chunkExtractor.addChunk(ctor.chunkName(props));\n\n return _assertThisInitialized(_this);\n } // Client-side with `isReady` method present (SSR probably)\n // If module is already loaded, we use a synchronous loading\n // Only perform this synchronous loading if the component has not\n // been marked with no SSR, else we risk hydration mismatches\n\n\n if (options.ssr !== false && ( // is ready - was loaded in this session\n ctor.isReady && ctor.isReady(props) || // is ready - was loaded during SSR process\n ctor.chunkName && LOADABLE_SHARED.initialChunks[ctor.chunkName(props)])) {\n _this.loadSync();\n }\n\n return _this;\n }\n\n var _proto = InnerLoadable.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true; // retrieve loading promise from a global cache\n\n var cachedPromise = this.getCache(); // if promise exists, but rejected - clear cache\n\n if (cachedPromise && cachedPromise.status === STATUS_REJECTED) {\n this.setCache();\n } // component might be resolved synchronously in the constructor\n\n\n if (this.state.loading) {\n this.loadAsync();\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n // Component has to be reloaded on cacheKey change\n if (prevState.cacheKey !== this.state.cacheKey) {\n this.loadAsync();\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n if (this.mounted) {\n this.setState(nextState, callback);\n }\n }\n /**\n * returns a cache key for the current props\n * @returns {Component|string}\n */\n ;\n\n _proto.getCacheKey = function getCacheKey() {\n return _getCacheKey(this.props);\n }\n /**\n * access the persistent cache\n */\n ;\n\n _proto.getCache = function getCache() {\n return cache[this.getCacheKey()];\n }\n /**\n * sets the cache value. If called without value sets it as undefined\n */\n ;\n\n _proto.setCache = function setCache(value) {\n if (value === void 0) {\n value = undefined;\n }\n\n cache[this.getCacheKey()] = value;\n };\n\n _proto.triggerOnLoad = function triggerOnLoad() {\n var _this2 = this;\n\n if (onLoad) {\n setTimeout(function () {\n onLoad(_this2.state.result, _this2.props);\n });\n }\n }\n /**\n * Synchronously loads component\n * target module is expected to already exists in the module cache\n * or be capable to resolve synchronously (webpack target=node)\n */\n ;\n\n _proto.loadSync = function loadSync() {\n // load sync is expecting component to be in the \"loading\" state already\n // sounds weird, but loading=true is the initial state of InnerLoadable\n if (!this.state.loading) return;\n\n try {\n var loadedModule = ctor.requireSync(this.props);\n var result = resolve(loadedModule, this.props, Loadable);\n this.state.result = result;\n this.state.loading = false;\n } catch (error) {\n console.error('loadable-components: failed to synchronously load component, which expected to be available', {\n fileName: ctor.resolve(this.props),\n chunkName: ctor.chunkName(this.props),\n error: error ? error.message : error\n });\n this.state.error = error;\n }\n }\n /**\n * Asynchronously loads a component.\n */\n ;\n\n _proto.loadAsync = function loadAsync() {\n var _this3 = this;\n\n var promise = this.resolveAsync();\n promise.then(function (loadedModule) {\n var result = resolve(loadedModule, _this3.props, Loadable);\n\n _this3.safeSetState({\n result: result,\n loading: false\n }, function () {\n return _this3.triggerOnLoad();\n });\n })[\"catch\"](function (error) {\n return _this3.safeSetState({\n error: error,\n loading: false\n });\n });\n return promise;\n }\n /**\n * Asynchronously resolves(not loads) a component.\n * Note - this function does not change the state\n */\n ;\n\n _proto.resolveAsync = function resolveAsync() {\n var _this$props = this.props,\n __chunkExtractor = _this$props.__chunkExtractor,\n forwardedRef = _this$props.forwardedRef,\n props = _objectWithoutPropertiesLoose(_this$props, [\"__chunkExtractor\", \"forwardedRef\"]);\n\n return cachedLoad(props);\n };\n\n _proto.render = function render() {\n var _this$props2 = this.props,\n forwardedRef = _this$props2.forwardedRef,\n propFallback = _this$props2.fallback,\n __chunkExtractor = _this$props2.__chunkExtractor,\n props = _objectWithoutPropertiesLoose(_this$props2, [\"forwardedRef\", \"fallback\", \"__chunkExtractor\"]);\n\n var _this$state = this.state,\n error = _this$state.error,\n loading = _this$state.loading,\n result = _this$state.result;\n\n if (options.suspense) {\n var cachedPromise = this.getCache() || this.loadAsync();\n\n if (cachedPromise.status === STATUS_PENDING) {\n throw this.loadAsync();\n }\n }\n\n if (error) {\n throw error;\n }\n\n var fallback = propFallback || options.fallback || null;\n\n if (loading) {\n return fallback;\n }\n\n return _render({\n fallback: fallback,\n result: result,\n options: options,\n props: _extends({}, props, {\n ref: forwardedRef\n })\n });\n };\n\n return InnerLoadable;\n }(React.Component);\n\n var EnhancedInnerLoadable = withChunkExtractor(InnerLoadable);\n var Loadable = React.forwardRef(function (props, ref) {\n return React.createElement(EnhancedInnerLoadable, Object.assign({\n forwardedRef: ref\n }, props));\n });\n Loadable.displayName = 'Loadable'; // In future, preload could use `<link rel=\"preload\">`\n\n Loadable.preload = function (props) {\n Loadable.load(props);\n };\n\n Loadable.load = function (props) {\n return cachedLoad(props);\n };\n\n return Loadable;\n }\n\n function lazy(ctor, options) {\n return loadable(ctor, _extends({}, options, {\n suspense: true\n }));\n }\n\n return {\n loadable: loadable,\n lazy: lazy\n };\n}\n\nfunction defaultResolveComponent(loadedModule) {\n // eslint-disable-next-line no-underscore-dangle\n return loadedModule.__esModule ? loadedModule[\"default\"] : loadedModule[\"default\"] || loadedModule;\n}\n\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nvar _createLoadable =\n/*#__PURE__*/\ncreateLoadable({\n defaultResolveComponent: defaultResolveComponent,\n render: function render(_ref) {\n var Component = _ref.result,\n props = _ref.props;\n return React.createElement(Component, props);\n }\n}),\n loadable = _createLoadable.loadable,\n lazy = _createLoadable.lazy;\n\n/* eslint-disable no-use-before-define, react/no-multi-comp */\n\nvar _createLoadable$1 =\n/*#__PURE__*/\ncreateLoadable({\n onLoad: function onLoad(result, props) {\n if (result && props.forwardedRef) {\n if (typeof props.forwardedRef === 'function') {\n props.forwardedRef(result);\n } else {\n props.forwardedRef.current = result;\n }\n }\n },\n render: function render(_ref) {\n var result = _ref.result,\n props = _ref.props;\n\n if (props.children) {\n return props.children(result);\n }\n\n return null;\n }\n}),\n loadable$1 = _createLoadable$1.loadable,\n lazy$1 = _createLoadable$1.lazy;\n\n/* eslint-disable no-underscore-dangle, camelcase */\nvar BROWSER = typeof window !== 'undefined';\nfunction loadableReady(done, _temp) {\n if (done === void 0) {\n done = function done() {};\n }\n\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$namespace = _ref.namespace,\n namespace = _ref$namespace === void 0 ? '' : _ref$namespace,\n _ref$chunkLoadingGlob = _ref.chunkLoadingGlobal,\n chunkLoadingGlobal = _ref$chunkLoadingGlob === void 0 ? '__LOADABLE_LOADED_CHUNKS__' : _ref$chunkLoadingGlob;\n\n if (!BROWSER) {\n warn('`loadableReady()` must be called in browser only');\n done();\n return Promise.resolve();\n }\n\n var requiredChunks = null;\n\n if (BROWSER) {\n var id = getRequiredChunkKey(namespace);\n var dataElement = document.getElementById(id);\n\n if (dataElement) {\n requiredChunks = JSON.parse(dataElement.textContent);\n var extElement = document.getElementById(id + \"_ext\");\n\n if (extElement) {\n var _JSON$parse = JSON.parse(extElement.textContent),\n namedChunks = _JSON$parse.namedChunks;\n\n namedChunks.forEach(function (chunkName) {\n LOADABLE_SHARED.initialChunks[chunkName] = true;\n });\n } else {\n // version mismatch\n throw new Error('loadable-component: @loadable/server does not match @loadable/component');\n }\n }\n }\n\n if (!requiredChunks) {\n warn('`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side');\n done();\n return Promise.resolve();\n }\n\n var resolved = false;\n return new Promise(function (resolve) {\n window[chunkLoadingGlobal] = window[chunkLoadingGlobal] || [];\n var loadedChunks = window[chunkLoadingGlobal];\n var originalPush = loadedChunks.push.bind(loadedChunks);\n\n function checkReadyState() {\n if (requiredChunks.every(function (chunk) {\n return loadedChunks.some(function (_ref2) {\n var chunks = _ref2[0];\n return chunks.indexOf(chunk) > -1;\n });\n })) {\n if (!resolved) {\n resolved = true;\n resolve();\n }\n }\n }\n\n loadedChunks.push = function () {\n originalPush.apply(void 0, arguments);\n checkReadyState();\n };\n\n checkReadyState();\n }).then(done);\n}\n\n/* eslint-disable no-underscore-dangle */\nvar loadable$2 = loadable;\nloadable$2.lib = loadable$1;\nvar lazy$2 = lazy;\nlazy$2.lib = lazy$1;\nvar __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sharedInternals;\n\nexport default loadable$2;\nexport { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, lazy$2 as lazy, loadableReady };\n","import { fetch } from '@common/react/components/Api/Fetch';\n\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\nimport { BaseApplicationState } from '@common/react/store';\nimport { BaseParams } from '@common/typescript/objects/BaseParams';\nimport { ResponseErrorContent, ResponseError } from '@common/react/components/Api/RequestError';\n\ninterface Message<T> {\n\tsuccess: number;\n\tresponse: T;\n\tsession: string;\n}\n\n/**\n * This is the base of request - simple fetch to server to dedicated endpoint(data).\n * The result is converted to RequestError (upon failure) or item of requested entity T.\n * @param {string} type - endpoint request is intended to be made to (Actor name with word 'Actor' omitted, spelled with camelCase)\n * @param {BaseParams} data - request params (actor message data)\n * @param {TApplicationState} state - current state (is required for login data)\n * @param signal\n * @returns {Promise<T>} promise that is resolved with requested data or rejected with RequestError object\n */\nexport function request<\n\tT,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState<TUser>\n\t>(type: string, data: BaseParams = {}, state?: TApplicationState, signal?: AbortSignal, idempotencyToken?: string): Promise<T> {\n\tconst headers: HeadersInit = {\n\t\t'Content-type': 'application/json; charset=utf-8',\n\t\t'X-Client-Type': '0',\n\t\t'X-Application-Version': globals.version,\n\t};\n\n\tif (state?.login?.session) {\n\t\theaders.Cookie = `session=${state.login.session}`;\n\t}\n\n\treturn fetch('api/post', {\n\t\tsignal,\n\t\tcredentials: 'same-origin',\n\t\tmethod: 'POST',\n\t\theaders,\n\t\tbody: JSON.stringify({\n\t\t\ttype,\n\t\t\tdata: JSON.stringify(data),\n\t\t\tidempotencyToken,\n\t\t}),\n\t})\n\t\t.then((response) => response.json() as Message<T | ResponseErrorContent>)\n\t\t.then((data: Message<T | ResponseErrorContent>) => {\n\t\t\tif (!data.success) throw new ResponseError(data.response as ResponseErrorContent);\n\n\t\t\treturn data.response as T;\n\t\t});\n}\n","import * as React from 'react';\n\nimport { WithFile } from '@common/typescript/objects/WithFile';\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport '@common/react/scss/components/upload-list.scss';\n\nexport type OnProgress = (value: Nullable<number>) => void;\n\ninterface UploadListProps<TEntity, TUser extends BaseUser, T extends WithFile<TEntity, TUser>> {\n\tlist: Array<T>;\n\n\trenderItem: (item: T) => React.ReactElement;\n\trenderProgress?: (progress: number) => React.ReactElement;\n\trenderUpload?: (onProgress: OnProgress) => React.ReactElement;\n\n\tmax?: number;\n}\n\nexport const UploadList = <\n\tTEntity,\n\tTUser extends BaseUser,\n\tT extends WithFile<TEntity, TUser>\n>(props: UploadListProps<TEntity, TUser, T>) => {\n\tconst [progress, setProgress] = React.useState<Nullable<number>>(() => null);\n\n\tconst canAdd = typeof props.max === 'number' ? props.list.length < props.max : true;\n\tconst list = typeof props.max === 'number' ? props.list.slice(0, props.max) : props.list;\n\n\treturn (\n\t\t<ul className=\"upload-list\">\n\t\t\t{\n\t\t\t\tlist.map((item: T) => (\n\t\t\t\t\t<li className=\"upload-list__\" key={item.id}>\n\t\t\t\t\t\t{props.renderItem(item)}\n\t\t\t\t\t</li>\n\t\t\t\t))\n\t\t\t}\n\t\t\t{\n\t\t\t\tprops.renderProgress && progress !== null\n\t\t\t\t\t? <li className=\"upload-list__item\">{props.renderProgress(progress)}</li>\n\t\t\t\t\t: null\n\t\t\t}\n\t\t\t{\n\t\t\t\tcanAdd && progress === null\n\t\t\t\t\t? <li className=\"upload-list__item\">{props.renderUpload?.(setProgress)}</li>\n\t\t\t\t\t: null\n\t\t\t}\n\t\t</ul>\n\t);\n};\n","import {\n\tFileInterface,\n\tFileType,\n} from '@common/typescript/objects/FileInterface';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nexport type TransformData = (data: FormData) => FormData;\n\ninterface ResponseResult<T> {\n\n\tsuccess: boolean;\n\n\tresponse: T;\n}\n\ninterface UploadFileParams<TParams> {\n\tfile: BeforeUploadFileType;\n\tfileType: FileType;\n\n\ttype?: string;\n\tobjectId?: number;\n\n\tdata?: TParams;\n\theaders?: HeadersInit;\n}\n\nexport const upload = <TParams = null>(\n\tparams: UploadFileParams<TParams>,\n\ttransformData: TransformData = (data: FormData) => data,\n\tonProgress?: (progress: Nullable<number>) => void,\n): Promise<FileInterface> => {\n\tconst promise: Promise<ResponseResult<FileInterface>> = new Promise((resolve, reject) => {\n\t\tconst xhr = new XMLHttpRequest();\n\t\tconst formData = new FormData();\n\n\t\tformData.append('file', params.file as File);\n\t\tformData.append('fileType', params.fileType.toString());\n\n\t\tif (params.type) {\n\t\t\tformData.append('objectType', params.type);\n\t\t}\n\n\t\tif (params.objectId) {\n\t\t\tformData.append('objectId', params.objectId.toString());\n\t\t}\n\n\t\tif (params.data) {\n\t\t\tconst data = params.data;\n\t\t\tObject.keys(data).forEach((key: string) => formData.append(`data[${key}]`, data[key].toString()));\n\t\t}\n\n\t\tif (onProgress !== undefined) {\n\t\t\tonProgress(0);\n\t\t\txhr.upload.addEventListener('progress', (e) => onProgress(e.loaded / e.total));\n\t\t}\n\n\t\txhr.addEventListener('load', () => resolve(JSON.parse(xhr.response) as ResponseResult<FileInterface>));\n\t\txhr.addEventListener('error', () => reject(new Error('File upload failed')));\n\t\txhr.addEventListener('abort', () => reject(new Error('File upload aborted')));\n\t\txhr.open('POST', 'fineUploader', true);\n\n\t\txhr.send(transformData(formData));\n\t});\n\n\treturn promise\n\t\t.then(((response: ResponseResult<FileInterface>) => {\n\t\t\tif (!response.success) throw response.response;\n\n\t\t\treturn response.response;\n\t\t}))\n\t\t.catch((error) => {\n\t\t\tconsole.log(error.message);\n\t\t\tthrow error;\n\t\t})\n\t\t.finally(() => onProgress?.(null));\n};\n\nexport interface UploadProgressEvent extends Partial<ProgressEvent> {\n\tpercent?: number;\n}\nexport type UploadRequestMethod = 'POST' | 'PUT' | 'PATCH' | 'post' | 'put' | 'patch';\nexport type UploadRequestHeader = Record<string, string>;\nexport interface UploadRequestError extends Error {\n\tstatus?: number;\n\tmethod?: UploadRequestMethod;\n\turl?: string;\n}\nexport interface RcFile extends File {\n\tuid: string;\n}\nexport type BeforeUploadFileType = File | Blob | boolean | string;\nexport interface UploadRequestOption<T> {\n\tonProgress?: (event: UploadProgressEvent) => void;\n\tonError?: (event: UploadRequestError | ProgressEvent, body?: T) => void;\n\tonSuccess?: (body: T, xhr?: XMLHttpRequest) => void;\n\tdata?: Record<string, unknown>;\n\tfilename?: string;\n\tfile: Exclude<BeforeUploadFileType, File | boolean> | RcFile;\n\twithCredentials?: boolean;\n\taction: string;\n\theaders?: UploadRequestHeader;\n\tmethod: UploadRequestMethod;\n}\n","import * as React from 'react';\n\nimport Checkbox, { CheckboxChangeEvent } from 'antd/lib/checkbox';\n\nimport { PetPrice } from '@app/objects/Pet';\nimport { getUrnSegments } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\n\ninterface OwnProps {\n\tservices: Array<PetPrice>;\n\tonChange: (service: PetPrice) => void;\n\tfieldName?: string;\n}\n\nfunction getUrnName(item: PetPrice) {\n\tif (!item.entry) return item.name;\n\n\treturn `${item?.entry?.name} ${getUrnSegments(item).join(' ')}`;\n}\n\nexport const SpecialServicesList: React.FC<OwnProps> = ({ services, onChange, fieldName }: OwnProps) => {\n\tif (!services.length) return null;\n\n\tconst handleChange = (value: boolean, service: PetPrice) => {\n\t\tconst newService = {\n\t\t\t...service,\n\t\t\tcompletedCount: value ? service.count : 0,\n\t\t};\n\n\t\tonChange(newService);\n\t};\n\n\treturn (\n\t\t<table className=\"table\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>{fieldName ?? 'Service'}</th>\n\t\t\t\t\t<th className=\"text-center\">Count</th>\n\t\t\t\t\t<th className=\"text-center\">Done</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t\t{services.sort((a, b) => b.id - a.id).map((service) => (\n\t\t\t\t\t<tr\n\t\t\t\t\t\tkey={`${service.priceId}-${service.id}-${service.done}`}\n\t\t\t\t\t\tonClick={() => handleChange(!service.completedCount, service)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t{fieldName?.toLowerCase() === 'urns' ? getUrnName(service) : service?.name}\n\t\t\t\t\t\t\t{service.note ? <div className=\"special-service-description form-group\">{service.note}</div> : null}\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td className=\"text-center\">{service.count}</td>\n\t\t\t\t\t\t<td className=\"text-center\">\n\t\t\t\t\t\t\t<Checkbox\n\t\t\t\t\t\t\t\tchecked={service.count === service.completedCount}\n\t\t\t\t\t\t\t\tonChange={(event: CheckboxChangeEvent) => handleChange(event.target.checked, service)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t))}\n\t\t\t</tbody>\n\t\t</table>\n\t);\n};\n","import { WithId } from '@common/typescript/objects/WithId';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { User } from '@app/objects/User';\nimport { PriceKind, PriceType } from '@app/objects/Price';\nimport { ServiceType } from '@app/objects/Pet';\n\nexport interface CustomerInfo {\n\tcompanyName: string;\n}\n\nexport interface WingstrackerCustomer extends WithId {\n\tclinicId: number;\n\tisCustomer: boolean;\n\n\tname: string;\n}\n\nexport interface QuickbooksCustomer extends WithId {\n\tcustomerId: string;\n\tcustomer: CustomerInfo;\n\n\twingsCustomerId: Nullable<number>;\n\twingsCustomer: Nullable<WingstrackerCustomer>;\n}\n\nexport enum QuickbooksItemType {\n\tInventory = 4,\n\tNonInventory = 5,\n\tService = 8,\n}\n\nexport interface QuickbooksItem extends WithId {\n\titemId: string;\n\titem: Item;\n\tcount: number;\n}\n\nexport interface Item {\n\tname: string;\n\tdescription: string;\n\ttype: QuickbooksItemType;\n}\n\nexport interface QuickbooksItemFilters {\n\tpriceType: Array<PriceType>;\n\tserviceType: Array<ServiceType>;\n\tpriceKind: Array<PriceKind>;\n\tclinic: Array<number>;\n}\n\nexport interface QuickbooksItemLink {\n\tpriceId: number;\n\tdelete: boolean;\n\tfilters?: QuickbooksItemFilters;\n}\n\nexport interface QuickbooksSetItems extends WithId {\n\titemId: string;\n\tselectAll: boolean;\n\tlinks: Array<QuickbooksItemLink>;\n}\n\nexport interface QuickbooksInvoice extends WithId{\n\tquickbooksInvoiceId: string;\n\tquickbooksDocumentNumber: string;\n\n\ttimeCreated: number;\n\tuser: Nullable<User>;\n\tuserId: number;\n}\n\nexport function getTypeName(type: QuickbooksItemType, t) {\n\tswitch (type) {\n\tcase QuickbooksItemType.Inventory:\n\t\treturn t('enums.quickbooks-item-type.inventory');\n\tcase QuickbooksItemType.NonInventory:\n\t\treturn t('enums.quickbooks-item-type.non-inventory');\n\tcase QuickbooksItemType.Service:\n\t\treturn t('enums.quickbooks-item-type.service');\n\n\tdefault:\n\t\treturn '-';\n\t}\n}\n","/* eslint-disable sonarjs/prefer-single-boolean-return */\nimport * as React from 'react';\n\nimport { List } from '@common/typescript/objects/List';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { useRequest } from '@app/hooks/useRequest';\nimport { AvailableStoreEntry } from '@app/objects/StoreEntry';\nimport { PriceType } from '@app/objects/Price';\nimport { ServiceType } from '@app/objects/Pet';\n\ninterface UrnRequestParams {\n\tcrematoryId?: number;\n\tclinicId?: number;\n\tpriceType?: PriceType;\n\tserviceType: ServiceType;\n\n\t/* Filtering */\n\tfilters: {\n\t\tname: string,\n\t};\n\n\t/* Pagination */\n\tcount?: number;\n\toffset?: number;\n}\n\n/// This is what Provider expects to receive via props\ntype ContextRequestProps = Omit<UrnRequestParams, 'filters'>;\n\ninterface ProviderProps extends ContextRequestProps {\n}\n\ntype OwnProps = React.PropsWithChildren<ProviderProps>;\n\nfunction toParams(props: ProviderProps): ContextRequestProps {\n\treturn {\n\t\tcrematoryId: props.crematoryId,\n\t\tclinicId: props.clinicId,\n\t\tpriceType: props.priceType,\n\t\tserviceType: props.serviceType,\n\t};\n}\n\ninterface RawUrnDetails {\n\tparams: ContextRequestProps;\n\ttotal: number;\n}\n\nfunction equals(a: ContextRequestProps, b: ContextRequestProps): boolean {\n\tif (a.crematoryId !== b.crematoryId) return false;\n\tif (a.clinicId !== b.clinicId) return false;\n\tif (a.priceType !== b.priceType) return false;\n\tif (a.serviceType !== b.serviceType) return false;\n\n\treturn true;\n}\n\nexport interface UrnList {\n\ttotal: number;\n\titems: {\n\t\tcount: number;\n\t\tlist: Array<AvailableStoreEntry>;\n\t};\n}\n\nexport interface UrnContext {\n\tlist: UrnList;\n\tsetName: (name: string) => void;\n}\n\nconst defaultContext: UrnContext = {\n\tlist: {\n\t\ttotal: 0,\n\t\titems: {\n\t\t\tcount: 0,\n\t\t\tlist: [],\n\t\t},\n\t},\n\tsetName: () => {\n\t\tthrow new Error('Settings params with no context specified (UrnContext)');\n\t},\n};\n\nconst Context = React.createContext<UrnContext>(defaultContext);\n\n// TODO: use it in modal as well (currently modal uses its own requests)\nfunction useUrns(params: ContextRequestProps, name: string): UrnList {\n\tconst [raw, setRaw] = React.useState<Nullable<RawUrnDetails>>(null);\n\tconst request = useRequest<List<AvailableStoreEntry>, UrnRequestParams>('availableStoreEntryList', undefined, { requestOnMount: false });\n\n\tReact.useEffect(() => {\n\t\tconst data: UrnRequestParams = {\n\t\t\t...params,\n\t\t\tfilters: {\n\t\t\t\tname,\n\t\t\t},\n\t\t\tcount: 1, // Don't fetch data for now - just make sure that data exists\n\t\t};\n\n\t\tif (raw === null || !equals(raw.params, params)) {\n\t\t\tsetRaw({\n\t\t\t\tparams,\n\t\t\t\ttotal: 0,\n\t\t\t});\n\t\t}\n\n\t\tconst updateTotal: boolean = !name;\n\t\trequest\n\t\t\t.reload(data)\n\t\t\t.then((value: List<AvailableStoreEntry> | void) => {\n\t\t\t\tif (!updateTotal) return;\n\t\t\t\tif (!value) return;\n\n\t\t\t\tsetRaw((q: Nullable<RawUrnDetails>) => {\n\t\t\t\t\tif (!q) return null;\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...q,\n\t\t\t\t\t\ttotal: value.count,\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t});\n\t}, [params, name]);\n\n\treturn React.useMemo(() => ({\n\t\ttotal: raw?.total ?? 0,\n\t\titems: {\n\t\t\tcount: request.item?.count ?? 0,\n\t\t\tlist: request.item?.list ?? [],\n\t\t},\n\t}), [raw?.total, request.item?.count, request.item?.list]);\n}\n\nexport const UrnsProvider: React.FC<OwnProps> = (props: OwnProps) => {\n\tconst [name, setName] = React.useState<string>('');\n\tconst params = React.useMemo(() => toParams(props), [\n\t\tprops.crematoryId,\n\t\tprops.clinicId,\n\t\tprops.priceType,\n\t\tprops.serviceType,\n\t\tprops.count,\n\t\tprops.offset,\n\t]);\n\tconst urns = useUrns(params, name);\n\n\tconst context: UrnContext = React.useMemo(() => ({\n\t\tlist: urns,\n\t\tsetName,\n\t}), [urns, setName]);\n\n\treturn (\n\t\t<Context.Provider value={context}>\n\t\t\t{props.children}\n\t\t</Context.Provider>\n\t);\n};\n\nexport function useUrnsContext(): UrnContext {\n\treturn React.useContext<UrnContext>(Context);\n}\n","import * as domainTask from 'domain-task';\n\nconst addTask = domainTask.addTask;\nconst fetch = domainTask.fetch;\n\nexport { fetch, addTask };\n","export interface ResponseErrorContent {\n\tmessage: string;\n\tcode: number;\n}\n\n/**\n * This is the base error of request\n * When Request fails ResponseError object is generated\n */\nexport class ResponseError extends Error {\n\tpublic readonly code: number;\n\n\tconstructor(content: ResponseErrorContent) {\n\t\tsuper(content.message);\n\t\tthis.code = content.code;\n\t\tthis.name = 'Response Error';\n\t}\n\n\tpublic get details(): string {\n\t\treturn `<${this.name}> [${this.code}]: ${this.message}`;\n\t}\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./dist/react-hot-loader.production.min.js');\n} else if (process.env.NODE_ENV === 'test') {\n module.exports = require('./dist/react-hot-loader.production.min.js');\n} else if (typeof window === 'undefined') {\n // this is just server environment\n module.exports = require('./dist/react-hot-loader.production.min.js');\n} else if (!module.hot) {\n module.exports = require('./dist/react-hot-loader.production.min.js');\n module.exports.AppContainer.warnAboutHMRDisabled = true;\n module.exports.hot.shouldWrapWithAppContainer = true;\n} else {\n var evalAllowed = false;\n var evalError = null;\n try {\n eval('evalAllowed = true');\n } catch (e) {\n // eval not allowed due to CSP\n evalError = e && e.message ? e.message : 'unknown reason';\n }\n\n // TODO: dont use eval to update methods. see #1273\n // RHL needs setPrototypeOf to operate Component inheritance, and eval to patch methods\n var jsFeaturesPresent = !!Object.setPrototypeOf;\n\n if (!jsFeaturesPresent || !evalAllowed) {\n // we are not in prod mode, but RHL could not be activated\n console.warn(\n 'React-Hot-Loader is not supported in this environment:',\n [\n !jsFeaturesPresent && \"some JS features are missing\",\n !evalAllowed && \"`eval` is not allowed(\" + evalError + \")\"\n ].join(','),\n '.'\n );\n module.exports = require('./dist/react-hot-loader.production.min.js');\n } else {\n module.exports = window.reactHotLoaderGlobal = require('./dist/react-hot-loader.development.js');\n }\n}\n","import { Action, Reducer } from 'redux';\n\nimport { BaseParams } from '@common/typescript/objects/BaseParams';\nimport { List } from '@common/typescript/objects/List';\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { equal } from '@common/typescript/Utils';\n\nimport { AppThunkAction, ApplicationState } from '@app/store';\nimport { request } from '@app/components/Api';\nimport { StatusOrder } from '@app/objects/StatusOrder';\n\ntype Dispatch = (action: KnownPetStatusTriggerActions) => void;\nexport interface PetStatusTriggerState<T extends StatusOrder> {\n\tisLoading: boolean;\n\titems: List<T>;\n\tpagination: {\n\t\ttotal: number;\n\t\tcurrent: number;\n\t\toffset: number;\n\t\tpageSize?: number;\n\t};\n\ttype: string;\n\tparams: BaseParams;\n\terror: Nullable<string>;\n}\n\nconst defaultPetStatusTrigger = {\n\tcount: 0,\n\texecution: 0,\n\toffset: 0,\n\tlist: [],\n};\n\nfunction getDefaultPetStatusTriggerState<T extends StatusOrder>(): PetStatusTriggerState<T> {\n\treturn {\n\t\tisLoading: false,\n\t\titems: defaultPetStatusTrigger,\n\t\tpagination: {\n\t\t\ttotal: 0,\n\t\t\tcurrent: 0,\n\t\t\toffset: 0,\n\t\t\tpageSize: 0,\n\t\t},\n\t\ttype: '',\n\t\tparams: {},\n\t\terror: null,\n\t};\n}\n\nexport enum TypeKeys {\n\tREQUESTPETSTATUSTRIGGER = 'REQUESTPETSTATUSTRIGGER',\n\tRECEIVEPETSTATUSTRIGGER = 'RECEIVEPETSTATUSTRIGGER',\n\tREQUESTPETSTATUSTRIGGERERROR = 'REQUESTPETSTATUSTRIGGERERROR',\n}\n\ninterface RequestPetStatusTriggerAction {\n\ttype: TypeKeys.REQUESTPETSTATUSTRIGGER;\n}\n\ninterface ReceivePetStatusTriggerAction {\n\ttype: TypeKeys.RECEIVEPETSTATUSTRIGGER;\n\titems: List<StatusOrder>;\n}\n\ninterface RequestPetStatusTriggerErrorAction {\n\ttype: TypeKeys.REQUESTPETSTATUSTRIGGERERROR;\n\terror: string;\n}\n\ntype KnownPetStatusTriggerActions = RequestPetStatusTriggerAction\n\t| ReceivePetStatusTriggerAction\n\t| RequestPetStatusTriggerErrorAction\n\nfunction loadPage(\n\tdispatch: Dispatch,\n\tgetState: () => ApplicationState,\n\tparams: BaseParams,\n) {\n\tconst fetchTask = request<List<StatusOrder>>('statusOrderList', params, getState())\n\t\t.then((data: List<StatusOrder>) => {\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.RECEIVEPETSTATUSTRIGGER,\n\t\t\t\titems: data,\n\t\t\t});\n\n\t\t\treturn data;\n\t\t})\n\t\t.catch((error: string) => {\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.REQUESTPETSTATUSTRIGGERERROR,\n\t\t\t\terror,\n\t\t\t});\n\t\t});\n\n\tdispatch({ type: TypeKeys.REQUESTPETSTATUSTRIGGER });\n\n\treturn fetchTask;\n}\n\nconst currentCount = 30;\nconst baseParams = { count: currentCount, offset: 0 };\nexport function gePetStatusTriggerActionCreators() {\n\treturn {\n\t\trequest: (\n\t\t\tparams?: BaseParams,\n\t\t): AppThunkAction<KnownPetStatusTriggerActions> => (dispatch, getState) => {\n\t\t\tconst storeState = getState().statusOrders;\n\n\t\t\tif (!equal(storeState.params, params)) {\n\t\t\t\treturn loadPage(dispatch, getState, params ?? baseParams);\n\t\t\t}\n\n\t\t\treturn Promise.resolve(storeState.items);\n\t\t},\n\t};\n}\n\nexport function getPetStatusTriggerReducer<T extends StatusOrder>(): Reducer<PetStatusTriggerState<T>> {\n\treturn (\n\t\tstate: PetStatusTriggerState<T> | undefined,\n\t\tincomingAction: Action,\n\t) => {\n\t\tconst result = state ?? getDefaultPetStatusTriggerState();\n\t\tconst action = incomingAction as KnownPetStatusTriggerActions;\n\n\t\tswitch (action.type) {\n\t\tcase TypeKeys.REQUESTPETSTATUSTRIGGER: {\n\t\t\treturn { ...result, isLoading: true };\n\t\t}\n\t\tcase TypeKeys.RECEIVEPETSTATUSTRIGGER: {\n\t\t\treturn {\n\t\t\t\t...result,\n\t\t\t\tisLoading: false,\n\t\t\t\titems: action.items as List<T>,\n\t\t\t};\n\t\t}\n\t\tcase TypeKeys.REQUESTPETSTATUSTRIGGERERROR:\n\t\t\treturn { ...result, isLoading: false, error: action.error };\n\n\t\tdefault:\n\t\t\treturn result;\n\t\t}\n\t};\n}\n","module.exports = (__webpack_require__(7))(54);","import * as React from 'react';\nimport { Helmet } from 'react-helmet';\n\ninterface TitleProps {\n\ttitle?: string;\n}\n\nexport const Title: React.FC<TitleProps> = (props: TitleProps) => {\n\tif (props.title) return <Helmet><title>{props.title};\n\n\treturn null;\n};\n","import * as React from 'react';\n\ninterface UploadProgressProps {\n\tprogress: number; // [0; 100]\n\n\tactiveBarColor?: string;\n\tbarColor?: string;\n}\n\nexport const UploadProgress: React.FC = (props: UploadProgressProps) => {\n\tconst value = Math.min(100, Math.max(0, props.progress));\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t{value.toFixed(0)}%\n\t\t\t
\n\t\t\n\t);\n};\n\nUploadProgress.defaultProps = {\n\tactiveBarColor: 'lightskyblue',\n\tbarColor: 'lightgray',\n};\n","import * as React from 'react';\n\nimport { FileInterface, FileType } from '@common/typescript/objects/FileInterface';\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { upload } from '@common/react/components/Forms/Files/Upload';\n\ninterface UploadFileProps {\n\ttype?: string; /// Type of connected entity\n\tobjectId?: number; /// Id of connected entity\n\n\tonUpload: (item: FileInterface) => void;\n\tonProgress?: (progress: Nullable) => void;\n\n\tdisabled?: boolean;\n}\n\ntype OwnProps = React.PropsWithChildren;\n\nfunction uploadFile(\n\ttype: UploadFileProps['type'],\n\tobjectId: UploadFileProps['objectId'],\n\tonProgress: UploadFileProps['onProgress'],\n): Promise {\n\treturn new Promise((resolve, reject) => {\n\t\tconst element = document.createElement('input');\n\t\telement.type = 'file';\n\n\t\telement.onchange = () => {\n\t\t\tconst item = element?.files?.item(0);\n\n\t\t\tif (!item) {\n\t\t\t\treject(new Error('No files were selected'));\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tresolve(item);\n\t\t};\n\t\telement.click();\n\t})\n\t\t.then((item: File) =>\n\t\t\tupload({\n\t\t\t\tfile: item,\n\t\t\t\tfileType: FileType.File,\n\t\t\t\ttype,\n\t\t\t\tobjectId,\n\t\t\t}, undefined, onProgress));\n}\n\nexport const UploadFile: React.FC = (props: OwnProps) => {\n\tconst action = React.useCallback(() => {\n\t\tconst onProgress = props.onProgress ? (value: Nullable) => props.onProgress?.(value === null ? null : value * 100) : undefined;\n\n\t\tuploadFile(props.type, props.objectId, onProgress)\n\t\t\t.then((item: FileInterface) => props.onUpload(item));\n\t}, [\n\t\tprops.type,\n\t\tprops.objectId,\n\t\tprops.onUpload,\n\t\tprops.onProgress,\n\t]);\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t{props.children}\n\t\t\t\n\t\t
\n\t);\n};\n\nUploadFile.defaultProps = {\n\tdisabled: false,\n};\n","import * as React from 'react';\n\ninterface UploadFilePlaceholderProps {\n\ticon?: React.ReactNode;\n\ttext: string;\n\tcaption?: string;\n}\n\nexport const UploadFilePlaceholder: React.FC = (props: UploadFilePlaceholderProps) => (\n\t
\n\t\t
\n\t\t\t{props.icon} {props.text}\n\t\t
\n\t\t
\n\t\t\t{props.caption}\n\t\t
\n\t
\n);\n","// This icon file is generated automatically.\nvar ClockCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z\" } }] }, \"name\": \"clock-circle\", \"theme\": \"outlined\" };\nexport default ClockCircleOutlined;\n","module.exports = (__webpack_require__(7))(561);","import React from 'react';\n\nimport { useFormikContext } from 'formik';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { PetPrice } from '@app/objects/Pet';\n\ninterface ServiceIndexProviderProps {\n\tclientId: string;\n\tchildren: (index: Nullable) => React.ReactElement;\n}\n\nexport const ServiceIndexProvider: React.FC = (props: ServiceIndexProviderProps) => {\n\tconst { values } = useFormikContext<{ services: Array }>();\n\tlet index: Nullable = values.services.findIndex((item: PetPrice) => item.clientId === props.clientId);\n\tif (index < 0 || index >= values.services.length) {\n\t\tindex = null;\n\t}\n\n\treturn props.children(index);\n};\n","// This icon file is generated automatically.\nvar LoadingOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"0 0 1024 1024\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z\" } }] }, \"name\": \"loading\", \"theme\": \"outlined\" };\nexport default LoadingOutlined;\n","// This icon file is generated automatically.\nvar CloseOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"fill-rule\": \"evenodd\", \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z\" } }] }, \"name\": \"close\", \"theme\": \"outlined\" };\nexport default CloseOutlined;\n","module.exports = (__webpack_require__(7))(555);","import * as React from 'react';\n\nexport type Value = number | string;\nexport type FilterOptionHook = (query: string, value: number) => boolean;\n\nexport enum SelectMode {\n\tSingle = 0,\n\tMultiple = 1,\n}\n\nexport enum SelectSize {\n\tLarge = 0,\n\tMedium = 1,\n\tSmall = 2,\n}\n\nexport interface OptionProps {\n\tvalue: T | null;\n\ttitle?: string;\n\tdisabled?: boolean;\n\n\t// Style\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\n\tchildren?: React.ReactNode;\n}\n\ntype OptionElement = React.ReactElement;\ntype OptionFragment = never | OptionElement | Array;\n\nexport interface SelectProps {\n\t// Optional Props\n\tplaceholder?: string;\n\ttitle?: string;\n\tmode?: SelectMode;\n\tdisabled?: boolean;\n\tloading?: boolean;\n\tshowSearch?: boolean;\n\tshowClear?: boolean;\n\n\t// Style\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\tsize?: SelectSize;\n\n\t// Main\n\tvalue: T | null | undefined;\n\tonChange: (value: T) => void;\n\n\t// Handlers\n\tonSelect?: (value) => void;\n\tonDeselect?: (value) => void;\n\tonSearch?: (query: string) => void;\n\tonBlur?: React.FocusEventHandler | undefined;\n\tonFocus?: () => void;\n\tonPopupScroll?: React.UIEventHandler;\n\tonInputKeyDown?: (e: React.KeyboardEvent) => void;\n\tonMouseEnter?: (e: React.MouseEvent) => void;\n\tonMouseLeave?: (e: React.MouseEvent) => void;\n\n\t// Hooks\n\tfilterOption?: boolean | FilterOptionHook;\n\n\t// Icons\n\tsuffixIcon?: React.ReactNode;\n\tremoveIcon?: React.ReactNode;\n\tclearIcon?: React.ReactNode;\n\tmenuItemSelectedIcon?: React.ReactNode;\n\n\tchildren: OptionFragment;\n}\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _Breadcrumb = _interopRequireDefault(require(\"./Breadcrumb\"));\nvar _default = exports[\"default\"] = _Breadcrumb[\"default\"];","module.exports = (__webpack_require__(7))(31);","type Predicate = (item: T) => boolean;\ntype Source = Array | Query;\n\nexport function isQuery(source: Source): source is Query {\n\treturn (source as Query).any !== undefined;\n}\n\nexport function isArray(source: Source): source is Array {\n\treturn (source as Array).length !== undefined;\n}\n\nexport class Query {\n\tprivate readonly list: Array;\n\tprivate chain: Array>;\n\n\tconstructor(source: Source) {\n\t\tif (isArray(source)) {\n\t\t\tthis.list = source;\n\t\t\tthis.chain = [];\n\t\t} else {\n\t\t\tthis.list = source.list;\n\t\t\tthis.chain = [...source.chain];\n\t\t}\n\t}\n\n\tpublic where(predicate: Predicate): Query {\n\t\tthis.chain.push(predicate);\n\n\t\treturn this;\n\t}\n\n\tpublic any(): boolean {\n\t\treturn Boolean(this.collapse().length);\n\t}\n\n\tpublic all(): boolean {\n\t\treturn this.collapse().length === this.list.length;\n\t}\n\n\tpublic none(): boolean {\n\t\treturn this.collapse().length === 0;\n\t}\n\n\tpublic count(): number {\n\t\treturn this.collapse().length;\n\t}\n\n\tpublic array(): Array {\n\t\treturn this.collapse();\n\t}\n\n\tpublic clone(): Query {\n\t\treturn new Query(this);\n\t}\n\n\tprivate collapse(): Array {\n\t\tconst apply = (item: T): boolean =>\n\t\t\tthis.chain.reduce((res: boolean, predicate: Predicate) => predicate(item) && res, true);\n\n\t\treturn this.list.filter(apply);\n\t}\n}\n","var defaultFunctionName = '';\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn) {\n try {\n if (!fn || typeof fn !== 'function') {\n return defaultFunctionName;\n }\n return fn.name || defaultFunctionName;\n }\n catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n return defaultFunctionName;\n }\n}\n//# sourceMappingURL=stacktrace.js.map","import * as React from 'react';\n\nimport List from 'antd/lib/list';\n\nimport { PetPrice } from '@app/objects/Pet';\n\ninterface OwnProps {\n\turns: Array\n}\n\nfunction getUrnDescription(item: PetPrice): string {\n\treturn `Requested ${item.count} urn${item.count > 1 ? 's' : ''} at the total of $${item.value.toFixed(2)}`;\n}\n\nexport const UrnSelectionPreview: React.FC = (props: OwnProps) => (\n\tSelected Urns: }\n\t\trenderItem={(item) => (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t)}\n\t/>\n);\n","import React from 'react';\n\nimport {\n\tForm,\n\tFormik,\n\tFormikHelpers,\n\tFormikProps,\n} from 'formik';\nimport { v4 } from 'uuid';\nimport Alert from 'antd/lib/alert';\nimport Space from 'antd/lib/space';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Pet, PetPrice } from '@app/objects/Pet';\nimport { useRequest } from '@app/hooks/useRequest';\nimport { ModalButtons } from '@app/components/UI/Status/StatusModal/ModalButtons';\n\nimport {\tStoreEntryNode } from '@app/objects/StoreEntry';\nimport { PriceKind } from '@app/objects/Price';\nimport { StatusModalController } from '@app/components/UI/Status/StatusModal/StatusModalController';\nimport { Stack, StackDirection } from '@app/components/Layout/Stack';\nimport { UrnSelection } from '@app/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/UrnSelection';\nimport {\n\tUrnSelectionPreview,\n} from '@app/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/UrnSelectionPreview';\nimport { DefaultInfo } from '@app/components/UI/Status/StatusModal/SpecificContentComponents/DefaultInfo';\nimport { PromoteParams } from '@app/components/UI/Status/StatusChangeComponent';\n\ninterface FormValues {\n\tid: number;\n\n\ttoConfirm: Array;\n\ttoSelect: Array;\n}\n\ninterface UrnFormProps {\n\titem: Pet;\n\tonChange: (item: Partial, shouldClose?: boolean, params?: PromoteParams, setSubmitting?: () => void) => void;\n\tonClose: () => void;\n}\n\ntype ConfirmPetPriceMessage = Pick;\nexport interface ConfirmMessage {\n\tservices: Array;\n}\n\ninterface UpdatePetPriceMessage {\n\tid: number;\n\tnodeId: number;\n}\n\nexport function toUpdateMessage(item: PetPrice): UpdatePetPriceMessage {\n\treturn {\n\t\tid: item.id,\n\t\tnodeId: item.nodeId!,\n\t};\n}\n\nexport interface UpdatePetMessage {\n\tid: number;\n\tupdateServices: Array;\n}\n\nexport function toConfirmMessage(item: PetPrice): ConfirmPetPriceMessage {\n\treturn {\n\t\tid: item.id,\n\t\tcompletedCount: item.count,\n\t};\n}\n\nfunction getUrns(item: Nullable): Array {\n\tif (!item) return [];\n\tif (!item.services) return [];\n\n\treturn item.services\n\t\t.filter((item: PetPrice) => item.price?.priceKind === PriceKind.UrnPrice)\n\t\t.filter((item: PetPrice) => !item.done)\n\t\t.map((item: PetPrice) => {\n\t\t\tconst entry = item.node?.entry ?? null;\n\t\t\tif (entry && item.node) {\n\t\t\t\tentry.tree = entry.tree.map((item: StoreEntryNode) => ({\n\t\t\t\t\t...item,\n\n\t\t\t\t\tparent: null,\n\t\t\t\t\tchildren: [],\n\t\t\t\t}));\n\n\t\t\t\tif (entry.tree.findIndex((node: StoreEntryNode) => node.id === item.nodeId) < 0) {\n\t\t\t\t\tentry.tree.push({\n\t\t\t\t\t\t...item.node,\n\n\t\t\t\t\t\tparent: null,\n\t\t\t\t\t\tchildren: [],\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\t...item,\n\t\t\t\tclientId: v4(),\n\n\t\t\t\tentry,\n\t\t\t\tnode: entry ? entry.tree.find((node: StoreEntryNode) => node.id === item.nodeId) : null,\n\t\t\t};\n\t\t})\n\t\t.filter((item: PetPrice) => item.node && item.entry);\n}\n\nexport function isSelected(item: PetPrice): boolean {\n\tif (!item.node || !item.entry) return false;\n\n\treturn !item.entry.tree\n\t\t.filter((node: StoreEntryNode) => !node.disabled)\n\t\t.some((node: StoreEntryNode) => node.parentId === item.nodeId);\n}\n\nfunction getAlertMessage(values: FormValues): string {\n\tif (values.toSelect.length) {\n\t\treturn 'Please, select an urn';\n\t}\n\n\treturn 'Please, confirm all selected urns data is correct';\n}\n\nexport const UrnForm: React.FC = (props: UrnFormProps) => {\n\tconst updatePet = useRequest('updatePet', undefined, { requestOnMount: false });\n\tconst updateServices = useRequest, ConfirmMessage>('updateServices', undefined, { requestOnMount: false });\n\n\tconst item = props.item;\n\tconst initialValues = React.useMemo(() => {\n\t\tconst urns = getUrns(item);\n\n\t\treturn {\n\t\t\tid: item.id,\n\n\t\t\ttoConfirm: urns.filter(isSelected),\n\t\t\ttoSelect: urns.filter((item: PetPrice) => !isSelected(item)),\n\t\t};\n\t}, [item]);\n\n\tconst submit = (\n\t\tvalues: FormValues,\n\t\tsetSubmitting: (val: boolean) => void,\n\t) => {\n\t\tfunction update(list: Array): Promise {\n\t\t\tconst data = list.map(toUpdateMessage);\n\n\t\t\treturn updatePet.reload({ id: values.id, updateServices: data });\n\t\t}\n\n\t\tfunction confirm(list: Array): Promise {\n\t\t\tconst data = list.map(toConfirmMessage);\n\n\t\t\treturn updateServices.reload({ services: data });\n\t\t}\n\n\t\tlet task: Promise = Promise.resolve();\n\n\t\tif (values.toSelect.length) {\n\t\t\tconst items = [values.toSelect[0]];\n\n\t\t\ttask = update(items).then(() => confirm(items));\n\t\t} else if (values.toConfirm.length) {\n\t\t\ttask = confirm(values.toConfirm);\n\t\t}\n\n\t\ttask\n\t\t\t.then(() => props.onChange({ id: item.id }))\n\t\t\t.finally(() => setSubmitting(false));\n\t};\n\n\treturn (\n\t\t) => submit(values, setSubmitting)}\n\t\t\tenableReinitialize\n\t\t>\n\t\t\t{\n\t\t\t\t(formik: FormikProps) => (\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tformik.values.toSelect.length\n\t\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t\t formik.setFieldValue('toSelect.0', value, false)}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tformik.values.toConfirm.length && !formik.values.toSelect.length\n\t\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t event.stopPropagation()}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tupdateServices.error || updatePet.error ? (\n\t\t\t\t\t\t\t\t\t event.stopPropagation()}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t}\n\t\t\n\t);\n};\n","import raf from \"rc-util/es/raf\";\nvar id = 0;\nvar ids = {};\n// Support call raf with delay specified frame\nexport default function wrapperRaf(callback) {\n var delayFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var myId = id++;\n var restFrames = delayFrames;\n function internalCallback() {\n restFrames -= 1;\n if (restFrames <= 0) {\n callback();\n delete ids[myId];\n } else {\n ids[myId] = raf(internalCallback);\n }\n }\n ids[myId] = raf(internalCallback);\n return myId;\n}\nwrapperRaf.cancel = function cancel(pid) {\n if (pid === undefined) return;\n raf.cancel(ids[pid]);\n delete ids[pid];\n};\nwrapperRaf.ids = ids; // export this for test usage","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _isNativeReflectConstruct from \"@babel/runtime/helpers/esm/isNativeReflectConstruct\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport { composeRef, supportRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { ConfigConsumer, ConfigContext } from '../config-provider';\nimport raf from './raf';\nimport { cloneElement } from './reactNode';\nvar styleForPseudo;\n// Where el is the DOM element you'd like to test for visibility\nfunction isHidden(element) {\n if (process.env.NODE_ENV === 'test') {\n return false;\n }\n return !element || element.offsetParent === null || element.hidden;\n}\nfunction getValidateContainer(nodeRoot) {\n if (nodeRoot instanceof Document) {\n return nodeRoot.body;\n }\n return Array.from(nodeRoot.childNodes).find(function (ele) {\n return (ele === null || ele === void 0 ? void 0 : ele.nodeType) === Node.ELEMENT_NODE;\n });\n}\nfunction isNotGrey(color) {\n // eslint-disable-next-line no-useless-escape\n var match = (color || '').match(/rgba?\\((\\d*), (\\d*), (\\d*)(, [\\d.]*)?\\)/);\n if (match && match[1] && match[2] && match[3]) {\n return !(match[1] === match[2] && match[2] === match[3]);\n }\n return true;\n}\nvar Wave = /*#__PURE__*/function (_React$Component) {\n _inherits(Wave, _React$Component);\n function Wave() {\n var _this;\n _classCallCheck(this, Wave);\n _this = _callSuper(this, Wave, arguments);\n _this.containerRef = /*#__PURE__*/React.createRef();\n _this.animationStart = false;\n _this.destroyed = false;\n _this.onClick = function (node, waveColor) {\n var _a, _b;\n var _this$props = _this.props,\n insertExtraNode = _this$props.insertExtraNode,\n disabled = _this$props.disabled;\n if (disabled || !node || isHidden(node) || node.className.includes('-leave')) {\n return;\n }\n _this.extraNode = document.createElement('div');\n var _assertThisInitialize = _assertThisInitialized(_this),\n extraNode = _assertThisInitialize.extraNode;\n var getPrefixCls = _this.context.getPrefixCls;\n extraNode.className = \"\".concat(getPrefixCls(''), \"-click-animating-node\");\n var attributeName = _this.getAttributeName();\n node.setAttribute(attributeName, 'true');\n // Not white or transparent or grey\n if (waveColor && waveColor !== '#fff' && waveColor !== '#ffffff' && waveColor !== 'rgb(255, 255, 255)' && waveColor !== 'rgba(255, 255, 255, 1)' && isNotGrey(waveColor) && !/rgba\\((?:\\d*, ){3}0\\)/.test(waveColor) &&\n // any transparent rgba color\n waveColor !== 'transparent') {\n extraNode.style.borderColor = waveColor;\n var nodeRoot = ((_a = node.getRootNode) === null || _a === void 0 ? void 0 : _a.call(node)) || node.ownerDocument;\n var nodeBody = (_b = getValidateContainer(nodeRoot)) !== null && _b !== void 0 ? _b : nodeRoot;\n styleForPseudo = updateCSS(\"\\n [\".concat(getPrefixCls(''), \"-click-animating-without-extra-node='true']::after, .\").concat(getPrefixCls(''), \"-click-animating-node {\\n --antd-wave-shadow-color: \").concat(waveColor, \";\\n }\"), 'antd-wave', {\n csp: _this.csp,\n attachTo: nodeBody\n });\n }\n if (insertExtraNode) {\n node.appendChild(extraNode);\n }\n ['transition', 'animation'].forEach(function (name) {\n node.addEventListener(\"\".concat(name, \"start\"), _this.onTransitionStart);\n node.addEventListener(\"\".concat(name, \"end\"), _this.onTransitionEnd);\n });\n };\n _this.onTransitionStart = function (e) {\n if (_this.destroyed) {\n return;\n }\n var node = _this.containerRef.current;\n if (!e || e.target !== node || _this.animationStart) {\n return;\n }\n _this.resetEffect(node);\n };\n _this.onTransitionEnd = function (e) {\n if (!e || e.animationName !== 'fadeEffect') {\n return;\n }\n _this.resetEffect(e.target);\n };\n _this.bindAnimationEvent = function (node) {\n if (!node || !node.getAttribute || node.getAttribute('disabled') || node.className.includes('disabled')) {\n return;\n }\n var onClick = function onClick(e) {\n // Fix radio button click twice\n if (e.target.tagName === 'INPUT' || isHidden(e.target)) {\n return;\n }\n _this.resetEffect(node);\n // Get wave color from target\n var waveColor = getComputedStyle(node).getPropertyValue('border-top-color') ||\n // Firefox Compatible\n getComputedStyle(node).getPropertyValue('border-color') || getComputedStyle(node).getPropertyValue('background-color');\n _this.clickWaveTimeoutId = window.setTimeout(function () {\n return _this.onClick(node, waveColor);\n }, 0);\n raf.cancel(_this.animationStartId);\n _this.animationStart = true;\n // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.\n _this.animationStartId = raf(function () {\n _this.animationStart = false;\n }, 10);\n };\n node.addEventListener('click', onClick, true);\n return {\n cancel: function cancel() {\n node.removeEventListener('click', onClick, true);\n }\n };\n };\n _this.renderWave = function (_ref) {\n var csp = _ref.csp;\n var children = _this.props.children;\n _this.csp = csp;\n if (! /*#__PURE__*/React.isValidElement(children)) return children;\n var ref = _this.containerRef;\n if (supportRef(children)) {\n ref = composeRef(children.ref, _this.containerRef);\n }\n return cloneElement(children, {\n ref: ref\n });\n };\n return _this;\n }\n _createClass(Wave, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.destroyed = false;\n var node = this.containerRef.current;\n if (!node || node.nodeType !== 1) {\n return;\n }\n this.instance = this.bindAnimationEvent(node);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.instance) {\n this.instance.cancel();\n }\n if (this.clickWaveTimeoutId) {\n clearTimeout(this.clickWaveTimeoutId);\n }\n this.destroyed = true;\n }\n }, {\n key: \"getAttributeName\",\n value: function getAttributeName() {\n var getPrefixCls = this.context.getPrefixCls;\n var insertExtraNode = this.props.insertExtraNode;\n return insertExtraNode ? \"\".concat(getPrefixCls(''), \"-click-animating\") : \"\".concat(getPrefixCls(''), \"-click-animating-without-extra-node\");\n }\n }, {\n key: \"resetEffect\",\n value: function resetEffect(node) {\n var _this2 = this;\n if (!node || node === this.extraNode || !(node instanceof Element)) {\n return;\n }\n var insertExtraNode = this.props.insertExtraNode;\n var attributeName = this.getAttributeName();\n node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466\n if (styleForPseudo) {\n styleForPseudo.innerHTML = '';\n }\n if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {\n node.removeChild(this.extraNode);\n }\n ['transition', 'animation'].forEach(function (name) {\n node.removeEventListener(\"\".concat(name, \"start\"), _this2.onTransitionStart);\n node.removeEventListener(\"\".concat(name, \"end\"), _this2.onTransitionEnd);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderWave);\n }\n }]);\n return Wave;\n}(React.Component);\nWave.contextType = ConfigContext;\nexport default Wave;","import * as Yup from 'yup';\n\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\n\nexport const phoneRegexp = /(\\(([0-9]{3})\\)\\s([0-9]{3})[-]([0-9]{2,4})|\\+([0-9]{11}))/;\n\nexport const formattedPhoneRegexp = /^\\+[1-9]+ \\([1-9]\\d{2}\\) \\d\\d\\d-\\d\\d\\d\\d$/;\n\nexport const simpleStringValidator = Yup.string().required();\nexport const simpleNumberValidator = Yup.number().required();\nexport const positiveNumberValidator = Yup.number().positive('Required field');\nexport const notNullValidator = Yup.mixed().test('is-not-null', 'Required field!', value => value !== null);\nexport const emailValidator = Yup.string().email().required();\nexport const optionalEmailValidator = Yup.string().email().nullable().notRequired();\nexport const dateValidator = Yup.number().required().nullable();\nexport const phoneRequiredValidator = Yup.string().matches(phoneRegexp, 'Invalid phone number').required();\nexport const phoneValidator = Yup.string().test('is-valid', 'Invalid phone number', value =>\n\t!value || phoneRegexp.test(value));\n\nexport const formattedPhoneValidator = Yup.string().test('is-formatted-valid', 'Invalid phone number', value =>\n\t!value || formattedPhoneRegexp.test(value)\n);\nexport const alphaDigitPasswordValidator = Yup.string().matches(/^([0-9a-zA-Z])+$/, 'Password should only contains digits and latin letters');\n\nexport const nonEmptyArray = (message: string) => Yup.array()\n\t.test(\n\t\t'Non-empty array',\n\t\tmessage,\n\t\t(value: null | undefined | Array) => (value || []).some((value: unknown) => !(value as WithDeleted).deleted),\n\t);\n\n/* Factories */\nexport function getSimpleStringValidator(field: string) {\n\treturn Yup.string().required(`${field} is required`);\n}\n\nexport function getSimpleNumberValidator(field: string) {\n\treturn Yup.number().required(`${field} is required`);\n}\n\nexport function getPositiveNumberValidator(field: string) {\n\treturn Yup.number().positive(`${field} should be positive`);\n}\n\nexport function getEmailValidator(field: string) {\n\treturn Yup.string().email(`${field} has incorrect email format`).required(`${field} is required`);\n}\n\nexport function getPhoneValidator(field: string) {\n\treturn Yup.string().test('is-valid', `${field} has incorrect phone format`, value => !value || phoneRegexp.test(value));\n}\n","import * as React from 'react';\nimport { useHistory, useLocation } from 'react-router-dom';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { onChangeValue } from '@app/components/UI/Filters/FiltersList';\nimport {\n\tDeliveryType, HasIssues, PetOnHold, PetSource,\n} from '@app/objects/Pet';\nimport {\n\tdecodeSearchParams, encodeSearchParams, getPageFilters, getSideFilters,\n} from '@app/components/Utils/Utils';\n\nexport interface DateRange {\n\tfrom: number | undefined;\n\tto: number | undefined;\n}\n\nexport type MultipleValue = Array;\ntype DefaultValue = number;\nexport type Value = Record extends { multiple: true } ? MultipleValue : DefaultValue;\n\nexport interface Filters {\n\tclinic: MultipleValue;\n\tclinicType: MultipleValue;\n\tcrematories: MultipleValue;\n\tcrematoryRole: Value;\n\tcontactPerson: string;\n\tcategory: MultipleValue,\n\tdeliveryType: DeliveryType;\n\tdate: DateRange;\n\tdueDate: DateRange;\n\tdone: Value,\n\tdiscountStatus: number;\n\temail: string;\n\texcludingStatus: MultipleValue;\n\tenabled: number;\n\thasIssues: HasIssues;\n\tid: string;\n\tinternalId; string;\n\tinvoiceNumber: string;\n\tinvoiceStatus: number;\n\tisSpecial: Nullable;\n\tisCustomer: Nullable,\n\titemType: MultipleValue,\n\tinventoryItemIds: MultipleValue,\n\tisLinkedToQuickbooks: Value,\n\tmachineId: MultipleValue,\n\tmyPets: boolean;\n\tname: string;\n\torderNumber: string;\n\townerFirstName: string;\n\townerLastName: string;\n\tonHold: PetOnHold;\n\tpetSpecie: number;\n\tpetSource: PetSource;\n\tpetBreed: MultipleValue;\n\tphone: string;\n\tpriceType: MultipleValue;\n\tpriceTypeWithAll: Value;\n\tpriceKind: MultipleValue,\n\tproducts: MultipleValue,\n\tquery: string;\n\tquantity: Value,\n\trole: Value;\n\troute: MultipleValue | Value,\n\trush: Nullable;\n\tserviceType: MultipleValue;\n\tserviceTypeWithAll: Value;\n\tstatus: MultipleValue;\n\tspecialServices: MultipleValue;\n\tstatusFunction: Value,\n\tuser: MultipleValue,\n\turns: MultipleValue,\n\tzip: string,\n}\n\nexport const filterKeys: Array = ['name', 'id', 'query', 'ownerFirstName', 'ownerLastName', 'crematories', 'contactPerson', 'petSpecie',\n\t'petBreed', 'clinic', 'deliveryType', 'email', 'phone', 'role', 'crematoryRole', 'serviceType', 'serviceTypeWithAll', 'status', 'excludingStatus',\n\t'invoiceNumber', 'date', 'priceType', 'discountStatus', 'specialServices', 'enabled', 'invoiceStatus', 'orderNumber', 'dueDate', 'petSource',\n\t'hasIssues', 'rush', 'onHold', 'isSpecial', 'priceTypeWithAll', 'myPets', 'user', 'internalId', 'statusFunction', 'category', 'isCustomer',\n\t'route', 'itemType', 'machineId', 'priceKind', 'isLinkedToQuickbooks', 'quantity', 'products', 'urns', 'done', 'inventoryItemIds', 'clinicType',\n\t'zip',\n];\n\nexport const useFilters = () :[\n\tPartial,\n\t(name: string, value: onChangeValue) => void,\n\t(i: Partial) => void,\n\tPartial, () => void,\n\t(fieldName: string, type: string, id?: number) => void,\n] => {\n\tconst history = useHistory();\n\tconst location = useLocation();\n\tconst [filters, setFilters] = React.useState>(getPageFilters(decodeSearchParams(location.search)));\n\tconst pathname = history.location.pathname;\n\tconst query = location.search;\n\tconst queryParams = React.useMemo(() => decodeSearchParams(query), [query]);\n\n\tReact.useEffect(() => setFilters(getPageFilters(decodeSearchParams(location.search))), [location.search]);\n\n\tconst onChange = (name: string, value: onChangeValue) => setFilters((s) => {\n\t\tif (name === 'date' && Array.isArray(value)) {\n\t\t\treturn { ...s, date: { from: value[0], to: value[1] } };\n\t\t}\n\n\t\tif (Array.isArray(value) && value.length === 0) {\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t\t\tconst { [name]: y, ...restFilters }: Record = filters;\n\n\t\t\treturn restFilters;\n\t\t}\n\n\t\treturn { ...s, [name]: value };\n\t});\n\n\tconst pushFiltersToUrl = (pathname, filters) => history.push({\n\t\tpathname,\n\t\tsearch: encodeSearchParams(filters),\n\t});\n\n\tconst clearQueryParams = () => {\n\t\tconst queryParams = decodeSearchParams(query);\n\t\tif (Object.values(filters).length === 0) {\n\t\t\tpushFiltersToUrl(pathname, '');\n\t\t} else {\n\t\t\tObject.keys(filters).forEach((key) => {\n\t\t\t\tif (key in queryParams) {\n\t\t\t\t\tdelete queryParams[key];\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetFilters({});\n\t\t\tpushFiltersToUrl(pathname, queryParams);\n\t\t}\n\t};\n\n\tconst onDeselect = (fieldName: string, type: string, id?: number) => {\n\t\tlet updatedFilters;\n\t\tif (type === 'id' && id) {\n\t\t\tupdatedFilters = filters[fieldName]?.filter((elm) => elm !== id);\n\t\t\tsetFilters((s) => ({ ...s, [fieldName]: updatedFilters }));\n\t\t} else if (type === 'text') {\n\t\t\tupdatedFilters = { ...filters };\n\t\t\tdelete updatedFilters[fieldName];\n\t\t\tsetFilters(updatedFilters);\n\t\t}\n\t};\n\n\tconst setQueryParams = () => {\n\t\tconst sideQueryParams = getSideFilters(decodeSearchParams(query));\n\t\tconst updatedQueryParams = { ...sideQueryParams, ...filters };\n\t\tpushFiltersToUrl(pathname, updatedQueryParams);\n\t};\n\n\treturn [filters, onChange, setQueryParams, queryParams, clearQueryParams, onDeselect];\n};\n","import * as React from 'react';\n\nimport Select from 'antd/lib/select';\n\nimport { OptionProps } from '@app/components/UI/Select/SelectProps';\n\nexport const Option: React.FC = (props: OptionProps) => {\n\treturn (\n\t\t\n\t\t\t{props.children}\n\t\t\n\t);\n};\n","import user from '@app/images/icons/user.svg';\nimport edit from '@app/images/icons/edit.svg';\nimport gender from '@app/images/icons/gender.svg';\nimport color from '@app/images/icons/color.svg';\nimport weight from '@app/images/icons/weight.svg';\nimport calendar from '@app/images/icons/calendar.svg';\nimport fish from '@app/images/icons/fish.svg';\nimport qrCode from '@app/images/icons/qr-code.svg';\nimport phone from '@app/images/icons/phone.svg';\nimport letter from '@app/images/icons/letter.svg';\nimport house from '@app/images/icons/house.svg';\nimport dog from '@app/images/icons/dog.svg';\nimport cat from '@app/images/icons/cat.svg';\nimport unicorn from '@app/images/icons/unicorn.svg';\nimport qrTable from '@app/images/icons/qr-code-table.svg';\nimport rush from '@app/images/icons/rush.svg';\nimport hold from '@app/images/icons/hold.svg';\nimport mapPin from '@app/images/icons/map-pin.svg';\n\nimport rushA from '@app/images/icons/allans-rush.svg';\nimport holdA from '@app/images/icons/allans-onhold.svg';\n\nexport {\n\tuser,\n\tedit,\n\tgender,\n\tcolor,\n\tweight,\n\tcalendar,\n\tfish,\n\tqrCode,\n\tphone,\n\tletter,\n\thouse,\n\tdog,\n\tcat,\n\tunicorn,\n\tqrTable,\n\trush,\n\thold,\n\tmapPin,\n\n\trushA,\n\tholdA,\n};\n","module.exports = (__webpack_require__(7))(200);","module.exports = (__webpack_require__(7))(201);","module.exports = (__webpack_require__(7))(55);","module.exports = (__webpack_require__(7))(414);","import { Action, ActionCreatorsMapObject, Reducer } from 'redux';\n\nimport { BaseAppThunkAction } from '@common/react/store';\nimport { List } from '@common/typescript/objects/List';\n\nimport { User } from '@app/objects/User';\nimport { CrematoryUserCounter, CrematoryUserCounterEntity } from '@app/objects/CrematoryUserCounter';\nimport { ApplicationState, AppThunkAction } from '@app/store/index';\nimport { request } from '@app/components/Api';\n\ninterface Pagination {\n\tpage: number;\n\tperPage: number;\n}\n\nexport interface CrematoryUserDashboardState {\n\tisLoading: boolean;\n\tstore: T;\n\tpagination: Pagination;\n\tcounters: List;\n\terror: string | null;\n}\n\nfunction getDefaultState(type: T): CrematoryUserDashboardState {\n\treturn {\n\t\tisLoading: false,\n\t\tstore: type,\n\t\tpagination: {\n\t\t\tpage: 0,\n\t\t\tperPage: 20,\n\t\t},\n\t\tcounters: {\n\t\t\tcount: 0,\n\t\t\toffset: 0,\n\t\t\texecution: 0,\n\t\t\tlist: [],\n\t\t},\n\t\terror: null,\n\t};\n}\n\nexport enum TypeKeys {\n\tREQUESTCREMATORYUSERCOUNTERS = 'REQUESTCREMATORYUSERCOUNTERS',\n\tRECEIVECREMATORYUSERCOUNTERS = 'RECEIVECREMATORYUSERCOUNTERS',\n\tREQUESTCREMATORYUSERCOUNTERSERROR = 'REQUESTCREMATORYUSERCOUNTERSERROR',\n}\n\ninterface RequestErrorAction {\n\ttype: TypeKeys.REQUESTCREMATORYUSERCOUNTERSERROR;\n\terror: string;\n\tstore: CrematoryUserCounterEntity;\n}\n\ninterface RequestCountersAction {\n\ttype: TypeKeys.REQUESTCREMATORYUSERCOUNTERS;\n\tstore: CrematoryUserCounterEntity;\n}\n\ninterface ReceiveCountersAction {\n\ttype: TypeKeys.RECEIVECREMATORYUSERCOUNTERS;\n\tstore: CrematoryUserCounterEntity;\n\tcounters: List;\n\tpagination: Pagination;\n}\n\ntype KnownPageActions = RequestCountersAction | ReceiveCountersAction | RequestErrorAction;\n\nexport interface CrematoryUserDashboardActionCreators extends ActionCreatorsMapObject {\n\treqCounters: (store: CrematoryUserCounterEntity) => BaseAppThunkAction;\n}\n\nexport function getActionCreators(store: CrematoryUserCounterEntity): CrematoryUserDashboardActionCreators {\n\tconst key: keyof ApplicationState = store === CrematoryUserCounterEntity.Status\n\t\t? 'crematoryUserDashboardStatus'\n\t\t: 'crematoryUserDashboardServices';\n\tconst endpoint = store === CrematoryUserCounterEntity.Status\n\t\t? 'crematoryUserCounterStatusList'\n\t\t: 'crematoryUserCounterSpecialServicesList';\n\n\treturn {\n\t\treqCounters: (page: number, perPage: number = 20): AppThunkAction => (dispatch, getState) => {\n\t\t\tconst state = getState()[key];\n\n\t\t\tif (state.pagination.page !== page || state.pagination.perPage !== perPage) {\n\t\t\t\trequest>(endpoint, { count: perPage, offset: (page - 1) * perPage }, getState())\n\t\t\t\t\t.then((data: List) => {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.RECEIVECREMATORYUSERCOUNTERS,\n\t\t\t\t\t\t\tstore,\n\t\t\t\t\t\t\tcounters: data,\n\t\t\t\t\t\t\tpagination: {\n\t\t\t\t\t\t\t\tpage,\n\t\t\t\t\t\t\t\tperPage,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error: string) => {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.REQUESTCREMATORYUSERCOUNTERSERROR,\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t\tstore,\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\n\t\t\t\tdispatch({ type: TypeKeys.REQUESTCREMATORYUSERCOUNTERS, store });\n\t\t\t}\n\t\t},\n\t};\n}\n\nexport function getReducer(store: T): Reducer> {\n\treturn (\n\t\tstate: CrematoryUserDashboardState | undefined,\n\t\tincomingAction: Action,\n\t) => {\n\t\tconst result = state ?? getDefaultState(store);\n\t\tconst action = incomingAction as KnownPageActions;\n\n\t\tif (action.store !== store) return result;\n\n\t\tswitch (action.type) {\n\t\tcase TypeKeys.REQUESTCREMATORYUSERCOUNTERS:\n\t\t\treturn { ...result, isLoading: true };\n\t\tcase TypeKeys.RECEIVECREMATORYUSERCOUNTERS:\n\t\t\treturn {\n\t\t\t\t...result,\n\t\t\t\tisLoading: false,\n\t\t\t\tcounters: action.counters,\n\t\t\t\tpagination: action.pagination,\n\t\t\t};\n\t\tcase TypeKeys.REQUESTCREMATORYUSERCOUNTERSERROR:\n\t\t\treturn { ...result, isLoading: false, error: action.error };\n\n\t\tdefault:\n\t\t\treturn result;\n\t\t}\n\t};\n}\n","module.exports = (__webpack_require__(7))(583);","module.exports = (__webpack_require__(7))(1108);","module.exports = (__webpack_require__(7))(1130);","module.exports = (__webpack_require__(7))(173);","module.exports = (__webpack_require__(7))(1001);","import { generatePath } from 'react-router-dom';\n\nimport { RoutePaths } from '@app/utilities/RoutePathVars';\nimport { ViewMode } from '@app/components/Utils/Utils';\n\ntype CrematoryPathProps = Record\n\nexport const NEW_CREMATORY_ID = -1;\nexport const crematoryListPath = '/crematory-list';\nexport const crematoryEditorPath = '/crematory-editor';\nexport const crematoryStoreName = 'crematory';\nexport const crematoriesStoreName = 'crematories';\nexport const getCrematoryEndpoint = 'getCrematory';\nexport const crematoryDeleteEndpoint = 'deleteCrematory';\nexport const crematorySaveEndpoint = 'updateCrematory';\nexport const crematoryListEndpoint = 'crematoryList';\n\nexport const getCrematoryPath = (props: CrematoryPathProps): string => generatePath(RoutePaths.admin, props);\nexport const getCrematoryViewPath = (id: number, tab: string): string => getCrematoryPath({ id, tab, type: ViewMode.view });\nexport const getCrematoryEditPath = (id: number | undefined, tab: string): string => getCrematoryPath({ id, tab, type: ViewMode.edit });\nexport const getNewCrematoryPath = (): string => getCrematoryPath({ id: '-1', type: ViewMode.edit, tab: 'info' });\n","module.exports = (__webpack_require__(7))(616);","import * as React from 'react';\nvar SizeContext = /*#__PURE__*/React.createContext(undefined);\nexport var SizeContextProvider = function SizeContextProvider(_ref) {\n var children = _ref.children,\n size = _ref.size;\n return /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (originSize) {\n return /*#__PURE__*/React.createElement(SizeContext.Provider, {\n value: size || originSize\n }, children);\n });\n};\nexport default SizeContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport warning from '../_util/warning';\nexport var GroupSizeContext = /*#__PURE__*/React.createContext(undefined);\nvar ButtonGroup = function ButtonGroup(props) {\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n var customizePrefixCls = props.prefixCls,\n size = props.size,\n className = props.className,\n others = __rest(props, [\"prefixCls\", \"size\", \"className\"]);\n var prefixCls = getPrefixCls('btn-group', customizePrefixCls);\n // large => lg\n // small => sm\n var sizeCls = '';\n switch (size) {\n case 'large':\n sizeCls = 'lg';\n break;\n case 'small':\n sizeCls = 'sm';\n break;\n case 'middle':\n case undefined:\n break;\n default:\n process.env.NODE_ENV !== \"production\" ? warning(!size, 'Button.Group', 'Invalid prop `size`.') : void 0;\n }\n var classes = classNames(prefixCls, _defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(sizeCls), sizeCls), \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(GroupSizeContext.Provider, {\n value: size\n }, /*#__PURE__*/React.createElement(\"div\", _extends({}, others, {\n className: classes\n })));\n};\nexport default ButtonGroup;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport LoadingOutlinedSvg from \"@ant-design/icons-svg/es/asn/LoadingOutlined\";\nimport AntdIcon from '../components/AntdIcon';\nvar LoadingOutlined = function LoadingOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: LoadingOutlinedSvg\n }));\n};\nvar RefIcon = /*#__PURE__*/React.forwardRef(LoadingOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'LoadingOutlined';\n}\nexport default RefIcon;","import LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport CSSMotion from 'rc-motion';\nimport React from 'react';\nvar getCollapsedWidth = function getCollapsedWidth() {\n return {\n width: 0,\n opacity: 0,\n transform: 'scale(0)'\n };\n};\nvar getRealWidth = function getRealWidth(node) {\n return {\n width: node.scrollWidth,\n opacity: 1,\n transform: 'scale(1)'\n };\n};\nvar LoadingIcon = function LoadingIcon(_ref) {\n var prefixCls = _ref.prefixCls,\n loading = _ref.loading,\n existIcon = _ref.existIcon;\n var visible = !!loading;\n if (existIcon) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-loading-icon\")\n }, /*#__PURE__*/React.createElement(LoadingOutlined, null));\n }\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: visible,\n // We do not really use this motionName\n motionName: \"\".concat(prefixCls, \"-loading-icon-motion\"),\n removeOnLeave: true,\n onAppearStart: getCollapsedWidth,\n onAppearActive: getRealWidth,\n onEnterStart: getCollapsedWidth,\n onEnterActive: getRealWidth,\n onLeaveStart: getRealWidth,\n onLeaveActive: getCollapsedWidth\n }, function (_ref2, ref) {\n var className = _ref2.className,\n style = _ref2.style;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-loading-icon\"),\n style: style,\n ref: ref\n }, /*#__PURE__*/React.createElement(LoadingOutlined, {\n className: className\n }));\n });\n};\nexport default LoadingIcon;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n/* eslint-disable react/button-has-type */\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport SizeContext from '../config-provider/SizeContext';\nimport { useCompactItemContext } from '../space/Compact';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { tuple } from '../_util/type';\nimport warning from '../_util/warning';\nimport Wave from '../_util/wave';\nimport Group, { GroupSizeContext } from './button-group';\nimport LoadingIcon from './LoadingIcon';\nvar rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nvar isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\nfunction isString(str) {\n return typeof str === 'string';\n}\nfunction isUnBorderedButtonType(type) {\n return type === 'text' || type === 'link';\n}\n// Insert one space between two chinese characters automatically.\nfunction insertSpace(child, needInserted) {\n // Check the child if is undefined or null.\n if (child === null || child === undefined) {\n return;\n }\n var SPACE = needInserted ? ' ' : '';\n // strictNullChecks oops.\n if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {\n return cloneElement(child, {\n children: child.props.children.split('').join(SPACE)\n });\n }\n if (typeof child === 'string') {\n return isTwoCNChar(child) ? /*#__PURE__*/React.createElement(\"span\", null, child.split('').join(SPACE)) : /*#__PURE__*/React.createElement(\"span\", null, child);\n }\n if (isFragment(child)) {\n return /*#__PURE__*/React.createElement(\"span\", null, child);\n }\n return child;\n}\nfunction spaceChildren(children, needInserted) {\n var isPrevChildPure = false;\n var childList = [];\n React.Children.forEach(children, function (child) {\n var type = _typeof(child);\n var isCurrentChildPure = type === 'string' || type === 'number';\n if (isPrevChildPure && isCurrentChildPure) {\n var lastIndex = childList.length - 1;\n var lastChild = childList[lastIndex];\n childList[lastIndex] = \"\".concat(lastChild).concat(child);\n } else {\n childList.push(child);\n }\n isPrevChildPure = isCurrentChildPure;\n });\n // Pass to React.Children.map to auto fill key\n return React.Children.map(childList, function (child) {\n return insertSpace(child, needInserted);\n });\n}\nvar ButtonTypes = tuple('default', 'primary', 'ghost', 'dashed', 'link', 'text');\nvar ButtonShapes = tuple('default', 'circle', 'round');\nvar ButtonHTMLTypes = tuple('submit', 'button', 'reset');\nexport function convertLegacyProps(type) {\n if (type === 'danger') {\n return {\n danger: true\n };\n }\n return {\n type: type\n };\n}\nvar InternalButton = function InternalButton(props, ref) {\n var _classNames;\n var _props$loading = props.loading,\n loading = _props$loading === void 0 ? false : _props$loading,\n customizePrefixCls = props.prefixCls,\n _props$type = props.type,\n type = _props$type === void 0 ? 'default' : _props$type,\n danger = props.danger,\n _props$shape = props.shape,\n shape = _props$shape === void 0 ? 'default' : _props$shape,\n customizeSize = props.size,\n customDisabled = props.disabled,\n className = props.className,\n children = props.children,\n icon = props.icon,\n _props$ghost = props.ghost,\n ghost = _props$ghost === void 0 ? false : _props$ghost,\n _props$block = props.block,\n block = _props$block === void 0 ? false : _props$block,\n _props$htmlType = props.htmlType,\n htmlType = _props$htmlType === void 0 ? 'button' : _props$htmlType,\n rest = __rest(props, [\"loading\", \"prefixCls\", \"type\", \"danger\", \"shape\", \"size\", \"disabled\", \"className\", \"children\", \"icon\", \"ghost\", \"block\", \"htmlType\"]);\n var size = React.useContext(SizeContext);\n // ===================== Disabled =====================\n var disabled = React.useContext(DisabledContext);\n var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n var groupSize = React.useContext(GroupSizeContext);\n var _React$useState = React.useState(!!loading),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n innerLoading = _React$useState2[0],\n setLoading = _React$useState2[1];\n var _React$useState3 = React.useState(false),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n hasTwoCNChar = _React$useState4[0],\n setHasTwoCNChar = _React$useState4[1];\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n autoInsertSpaceInButton = _React$useContext.autoInsertSpaceInButton,\n direction = _React$useContext.direction;\n var buttonRef = ref || /*#__PURE__*/React.createRef();\n var isNeedInserted = function isNeedInserted() {\n return React.Children.count(children) === 1 && !icon && !isUnBorderedButtonType(type);\n };\n var fixTwoCNChar = function fixTwoCNChar() {\n // Fix for HOC usage like \n if (!buttonRef || !buttonRef.current || autoInsertSpaceInButton === false) {\n return;\n }\n var buttonText = buttonRef.current.textContent;\n if (isNeedInserted() && isTwoCNChar(buttonText)) {\n if (!hasTwoCNChar) {\n setHasTwoCNChar(true);\n }\n } else if (hasTwoCNChar) {\n setHasTwoCNChar(false);\n }\n };\n // =============== Update Loading ===============\n var loadingOrDelay = typeof loading === 'boolean' ? loading : (loading === null || loading === void 0 ? void 0 : loading.delay) || true;\n React.useEffect(function () {\n var delayTimer = null;\n if (typeof loadingOrDelay === 'number') {\n delayTimer = window.setTimeout(function () {\n delayTimer = null;\n setLoading(loadingOrDelay);\n }, loadingOrDelay);\n } else {\n setLoading(loadingOrDelay);\n }\n return function () {\n if (delayTimer) {\n // in order to not perform a React state update on an unmounted component\n // and clear timer after 'loadingOrDelay' updated.\n window.clearTimeout(delayTimer);\n delayTimer = null;\n }\n };\n }, [loadingOrDelay]);\n React.useEffect(fixTwoCNChar, [buttonRef]);\n var handleClick = function handleClick(e) {\n var onClick = props.onClick;\n // https://github.com/ant-design/ant-design/issues/30207\n if (innerLoading || mergedDisabled) {\n e.preventDefault();\n return;\n }\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n };\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'Button', \"`icon` is using ReactNode instead of string naming in v4. Please check `\".concat(icon, \"` at https://ant.design/components/icon\")) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(ghost && isUnBorderedButtonType(type)), 'Button', \"`link` or `text` button can't be a `ghost` button.\") : void 0;\n var prefixCls = getPrefixCls('btn', customizePrefixCls);\n var autoInsertSpace = autoInsertSpaceInButton !== false;\n var _useCompactItemContex = useCompactItemContext(prefixCls, direction),\n compactSize = _useCompactItemContex.compactSize,\n compactItemClassnames = _useCompactItemContex.compactItemClassnames;\n var sizeClassNameMap = {\n large: 'lg',\n small: 'sm',\n middle: undefined\n };\n var sizeFullname = compactSize || groupSize || customizeSize || size;\n var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';\n var iconType = innerLoading ? 'loading' : icon;\n var linkButtonRestProps = omit(rest, ['navigate']);\n var classes = classNames(prefixCls, (_classNames = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(shape), shape !== 'default' && shape), \"\".concat(prefixCls, \"-\").concat(type), type), \"\".concat(prefixCls, \"-\").concat(sizeCls), sizeCls), \"\".concat(prefixCls, \"-icon-only\"), !children && children !== 0 && !!iconType), \"\".concat(prefixCls, \"-background-ghost\"), ghost && !isUnBorderedButtonType(type)), \"\".concat(prefixCls, \"-loading\"), innerLoading), \"\".concat(prefixCls, \"-two-chinese-chars\"), hasTwoCNChar && autoInsertSpace && !innerLoading), \"\".concat(prefixCls, \"-block\"), block), \"\".concat(prefixCls, \"-dangerous\"), !!danger), \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-disabled\"), linkButtonRestProps.href !== undefined && mergedDisabled)), compactItemClassnames, className);\n var iconNode = icon && !innerLoading ? icon : ( /*#__PURE__*/React.createElement(LoadingIcon, {\n existIcon: !!icon,\n prefixCls: prefixCls,\n loading: !!innerLoading\n }));\n var kids = children || children === 0 ? spaceChildren(children, isNeedInserted() && autoInsertSpace) : null;\n if (linkButtonRestProps.href !== undefined) {\n return /*#__PURE__*/React.createElement(\"a\", _extends({}, linkButtonRestProps, {\n className: classes,\n onClick: handleClick,\n ref: buttonRef\n }), iconNode, kids);\n }\n var buttonNode = /*#__PURE__*/React.createElement(\"button\", _extends({}, rest, {\n type: htmlType,\n className: classes,\n onClick: handleClick,\n disabled: mergedDisabled,\n ref: buttonRef\n }), iconNode, kids);\n if (isUnBorderedButtonType(type)) {\n return buttonNode;\n }\n return /*#__PURE__*/React.createElement(Wave, {\n disabled: !!innerLoading\n }, buttonNode);\n};\nvar Button = /*#__PURE__*/React.forwardRef(InternalButton);\nif (process.env.NODE_ENV !== 'production') {\n Button.displayName = 'Button';\n}\nButton.Group = Group;\nButton.__ANT_BUTTON = true;\nexport default Button;","import Button from './button';\nexport default Button;","// This icon file is generated automatically.\nvar CalendarOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z\" } }] }, \"name\": \"calendar\", \"theme\": \"outlined\" };\nexport default CalendarOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport CalendarOutlinedSvg from \"@ant-design/icons-svg/es/asn/CalendarOutlined\";\nimport AntdIcon from '../components/AntdIcon';\nvar CalendarOutlined = function CalendarOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: CalendarOutlinedSvg\n }));\n};\nvar RefIcon = /*#__PURE__*/React.forwardRef(CalendarOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'CalendarOutlined';\n}\nexport default RefIcon;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ClockCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/ClockCircleOutlined\";\nimport AntdIcon from '../components/AntdIcon';\nvar ClockCircleOutlined = function ClockCircleOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: ClockCircleOutlinedSvg\n }));\n};\nvar RefIcon = /*#__PURE__*/React.forwardRef(ClockCircleOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'ClockCircleOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar CloseCircleFilled = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"fill-rule\": \"evenodd\", \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z\" } }] }, \"name\": \"close-circle\", \"theme\": \"filled\" };\nexport default CloseCircleFilled;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport CloseCircleFilledSvg from \"@ant-design/icons-svg/es/asn/CloseCircleFilled\";\nimport AntdIcon from '../components/AntdIcon';\nvar CloseCircleFilled = function CloseCircleFilled(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: CloseCircleFilledSvg\n }));\n};\nvar RefIcon = /*#__PURE__*/React.forwardRef(CloseCircleFilled);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'CloseCircleFilled';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar SwapRightOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"0 0 1024 1024\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z\" } }] }, \"name\": \"swap-right\", \"theme\": \"outlined\" };\nexport default SwapRightOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport SwapRightOutlinedSvg from \"@ant-design/icons-svg/es/asn/SwapRightOutlined\";\nimport AntdIcon from '../components/AntdIcon';\nvar SwapRightOutlined = function SwapRightOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: SwapRightOutlinedSvg\n }));\n};\nvar RefIcon = /*#__PURE__*/React.forwardRef(SwapRightOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'SwapRightOutlined';\n}\nexport default RefIcon;","import { createContext } from 'react';\nvar LocaleContext = /*#__PURE__*/createContext(undefined);\nexport default LocaleContext;","var locale = {\n locale: 'en_US',\n today: 'Today',\n now: 'Now',\n backToToday: 'Back to today',\n ok: 'OK',\n clear: 'Clear',\n month: 'Month',\n year: 'Year',\n timeSelect: 'select time',\n dateSelect: 'select date',\n weekSelect: 'Choose a week',\n monthSelect: 'Choose a month',\n yearSelect: 'Choose a year',\n decadeSelect: 'Choose a decade',\n yearFormat: 'YYYY',\n dateFormat: 'M/D/YYYY',\n dayFormat: 'D',\n dateTimeFormat: 'M/D/YYYY HH:mm:ss',\n monthBeforeYear: true,\n previousMonth: 'Previous month (PageUp)',\n nextMonth: 'Next month (PageDown)',\n previousYear: 'Last year (Control + left)',\n nextYear: 'Next year (Control + right)',\n previousDecade: 'Last decade',\n nextDecade: 'Next decade',\n previousCentury: 'Last century',\n nextCentury: 'Next century'\n};\nexport default locale;","var locale = {\n placeholder: 'Select time',\n rangePlaceholder: ['Start time', 'End time']\n};\nexport default locale;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport CalendarLocale from \"rc-picker/es/locale/en_US\";\nimport TimePickerLocale from '../../time-picker/locale/en_US';\n// Merge into a locale object\nvar locale = {\n lang: _extends({\n placeholder: 'Select date',\n yearPlaceholder: 'Select year',\n quarterPlaceholder: 'Select quarter',\n monthPlaceholder: 'Select month',\n weekPlaceholder: 'Select week',\n rangePlaceholder: ['Start date', 'End date'],\n rangeYearPlaceholder: ['Start year', 'End year'],\n rangeQuarterPlaceholder: ['Start quarter', 'End quarter'],\n rangeMonthPlaceholder: ['Start month', 'End month'],\n rangeWeekPlaceholder: ['Start week', 'End week']\n }, CalendarLocale),\n timePickerLocale: _extends({}, TimePickerLocale)\n};\n// All settings at:\n// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json\nexport default locale;","/* eslint-disable no-template-curly-in-string */\nimport Pagination from \"rc-pagination/es/locale/en_US\";\nimport Calendar from '../calendar/locale/en_US';\nimport DatePicker from '../date-picker/locale/en_US';\nimport TimePicker from '../time-picker/locale/en_US';\nvar typeTemplate = '${label} is not a valid ${type}';\nvar localeValues = {\n locale: 'en',\n Pagination: Pagination,\n DatePicker: DatePicker,\n TimePicker: TimePicker,\n Calendar: Calendar,\n global: {\n placeholder: 'Please select'\n },\n Table: {\n filterTitle: 'Filter menu',\n filterConfirm: 'OK',\n filterReset: 'Reset',\n filterEmptyText: 'No filters',\n filterCheckall: 'Select all items',\n filterSearchPlaceholder: 'Search in filters',\n emptyText: 'No data',\n selectAll: 'Select current page',\n selectInvert: 'Invert current page',\n selectNone: 'Clear all data',\n selectionAll: 'Select all data',\n sortTitle: 'Sort',\n expand: 'Expand row',\n collapse: 'Collapse row',\n triggerDesc: 'Click to sort descending',\n triggerAsc: 'Click to sort ascending',\n cancelSort: 'Click to cancel sorting'\n },\n Modal: {\n okText: 'OK',\n cancelText: 'Cancel',\n justOkText: 'OK'\n },\n Popconfirm: {\n okText: 'OK',\n cancelText: 'Cancel'\n },\n Transfer: {\n titles: ['', ''],\n searchPlaceholder: 'Search here',\n itemUnit: 'item',\n itemsUnit: 'items',\n remove: 'Remove',\n selectCurrent: 'Select current page',\n removeCurrent: 'Remove current page',\n selectAll: 'Select all data',\n removeAll: 'Remove all data',\n selectInvert: 'Invert current page'\n },\n Upload: {\n uploading: 'Uploading...',\n removeFile: 'Remove file',\n uploadError: 'Upload error',\n previewFile: 'Preview file',\n downloadFile: 'Download file'\n },\n Empty: {\n description: 'No data'\n },\n Icon: {\n icon: 'icon'\n },\n Text: {\n edit: 'Edit',\n copy: 'Copy',\n copied: 'Copied',\n expand: 'Expand'\n },\n PageHeader: {\n back: 'Back'\n },\n Form: {\n optional: '(optional)',\n defaultValidateMessages: {\n \"default\": 'Field validation error for ${label}',\n required: 'Please enter ${label}',\n \"enum\": '${label} must be one of [${enum}]',\n whitespace: '${label} cannot be a blank character',\n date: {\n format: '${label} date format is invalid',\n parse: '${label} cannot be converted to a date',\n invalid: '${label} is an invalid date'\n },\n types: {\n string: typeTemplate,\n method: typeTemplate,\n array: typeTemplate,\n object: typeTemplate,\n number: typeTemplate,\n date: typeTemplate,\n \"boolean\": typeTemplate,\n integer: typeTemplate,\n \"float\": typeTemplate,\n regexp: typeTemplate,\n email: typeTemplate,\n url: typeTemplate,\n hex: typeTemplate\n },\n string: {\n len: '${label} must be ${len} characters',\n min: '${label} must be at least ${min} characters',\n max: '${label} must be up to ${max} characters',\n range: '${label} must be between ${min}-${max} characters'\n },\n number: {\n len: '${label} must be equal to ${len}',\n min: '${label} must be minimum ${min}',\n max: '${label} must be maximum ${max}',\n range: '${label} must be between ${min}-${max}'\n },\n array: {\n len: 'Must be ${len} ${label}',\n min: 'At least ${min} ${label}',\n max: 'At most ${max} ${label}',\n range: 'The amount of ${label} must be between ${min}-${max}'\n },\n pattern: {\n mismatch: '${label} does not match the pattern ${pattern}'\n }\n }\n },\n Image: {\n preview: 'Preview'\n }\n};\nexport default localeValues;","import locale from '../locale/default';\nexport default locale;","export default {\n // Options.jsx\n items_per_page: '/ page',\n jump_to: 'Go to',\n jump_to_confirm: 'confirm',\n page: 'Page',\n // Pagination.jsx\n prev_page: 'Previous Page',\n next_page: 'Next Page',\n prev_5: 'Previous 5 Pages',\n next_5: 'Next 5 Pages',\n prev_3: 'Previous 3 Pages',\n next_3: 'Next 3 Pages',\n page_size: 'Page Size'\n};","import enUS from '../../date-picker/locale/en_US';\nexport default enUS;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport LocaleContext from './context';\nimport defaultLocaleData from './default';\nvar LocaleReceiver = function LocaleReceiver(props) {\n var _props$componentName = props.componentName,\n componentName = _props$componentName === void 0 ? 'global' : _props$componentName,\n defaultLocale = props.defaultLocale,\n children = props.children;\n var antLocale = React.useContext(LocaleContext);\n var getLocale = React.useMemo(function () {\n var _a;\n var locale = defaultLocale || defaultLocaleData[componentName];\n var localeFromContext = (_a = antLocale === null || antLocale === void 0 ? void 0 : antLocale[componentName]) !== null && _a !== void 0 ? _a : {};\n return _extends(_extends({}, locale instanceof Function ? locale() : locale), localeFromContext || {});\n }, [componentName, defaultLocale, antLocale]);\n var getLocaleCode = React.useMemo(function () {\n var localeCode = antLocale && antLocale.locale;\n // Had use LocaleProvide but didn't set locale\n if (antLocale && antLocale.exist && !localeCode) {\n return defaultLocaleData.locale;\n }\n return localeCode;\n }, [antLocale]);\n return children(getLocale, getLocaleCode, antLocale);\n};\nexport default LocaleReceiver;\nexport var useLocaleReceiver = function useLocaleReceiver(componentName, defaultLocale) {\n var antLocale = React.useContext(LocaleContext);\n var getLocale = React.useMemo(function () {\n var _a;\n var locale = defaultLocale || defaultLocaleData[componentName];\n var localeFromContext = (_a = antLocale === null || antLocale === void 0 ? void 0 : antLocale[componentName]) !== null && _a !== void 0 ? _a : {};\n return _extends(_extends({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {});\n }, [componentName, defaultLocale, antLocale]);\n return [getLocale];\n};","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport classNames from 'classnames';\nimport { tuple } from './type';\nvar InputStatuses = tuple('warning', 'error', '');\nexport function getStatusClassNames(prefixCls, status, hasFeedback) {\n return classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-status-success\"), status === 'success'), \"\".concat(prefixCls, \"-status-warning\"), status === 'warning'), \"\".concat(prefixCls, \"-status-error\"), status === 'error'), \"\".concat(prefixCls, \"-status-validating\"), status === 'validating'), \"\".concat(prefixCls, \"-has-feedback\"), hasFeedback));\n}\nexport var getMergedStatus = function getMergedStatus(contextStatus, customStatus) {\n return customStatus || contextStatus;\n};","export function getPlaceholder(picker, locale, customizePlaceholder) {\n if (customizePlaceholder !== undefined) {\n return customizePlaceholder;\n }\n if (picker === 'year' && locale.lang.yearPlaceholder) {\n return locale.lang.yearPlaceholder;\n }\n if (picker === 'quarter' && locale.lang.quarterPlaceholder) {\n return locale.lang.quarterPlaceholder;\n }\n if (picker === 'month' && locale.lang.monthPlaceholder) {\n return locale.lang.monthPlaceholder;\n }\n if (picker === 'week' && locale.lang.weekPlaceholder) {\n return locale.lang.weekPlaceholder;\n }\n if (picker === 'time' && locale.timePickerLocale.placeholder) {\n return locale.timePickerLocale.placeholder;\n }\n return locale.lang.placeholder;\n}\nexport function getRangePlaceholder(picker, locale, customizePlaceholder) {\n if (customizePlaceholder !== undefined) {\n return customizePlaceholder;\n }\n if (picker === 'year' && locale.lang.yearPlaceholder) {\n return locale.lang.rangeYearPlaceholder;\n }\n if (picker === 'quarter' && locale.lang.quarterPlaceholder) {\n return locale.lang.rangeQuarterPlaceholder;\n }\n if (picker === 'month' && locale.lang.monthPlaceholder) {\n return locale.lang.rangeMonthPlaceholder;\n }\n if (picker === 'week' && locale.lang.weekPlaceholder) {\n return locale.lang.rangeWeekPlaceholder;\n }\n if (picker === 'time' && locale.timePickerLocale.placeholder) {\n return locale.timePickerLocale.rangePlaceholder;\n }\n return locale.lang.rangePlaceholder;\n}\nexport function transPlacement2DropdownAlign(direction, placement) {\n var overflow = {\n adjustX: 1,\n adjustY: 1\n };\n switch (placement) {\n case 'bottomLeft':\n {\n return {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: overflow\n };\n }\n case 'bottomRight':\n {\n return {\n points: ['tr', 'br'],\n offset: [0, 4],\n overflow: overflow\n };\n }\n case 'topLeft':\n {\n return {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: overflow\n };\n }\n case 'topRight':\n {\n return {\n points: ['br', 'tr'],\n offset: [0, -4],\n overflow: overflow\n };\n }\n default:\n {\n return {\n points: direction === 'rtl' ? ['tr', 'br'] : ['tl', 'bl'],\n offset: [0, 4],\n overflow: overflow\n };\n }\n }\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CalendarOutlined from \"@ant-design/icons/es/icons/CalendarOutlined\";\nimport ClockCircleOutlined from \"@ant-design/icons/es/icons/ClockCircleOutlined\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport SwapRightOutlined from \"@ant-design/icons/es/icons/SwapRightOutlined\";\nimport classNames from 'classnames';\nimport { RangePicker as RCRangePicker } from 'rc-picker';\nimport * as React from 'react';\nimport { forwardRef, useContext, useImperativeHandle } from 'react';\nimport { Components, getTimeProps } from '.';\nimport { ConfigContext } from '../../config-provider';\nimport DisabledContext from '../../config-provider/DisabledContext';\nimport SizeContext from '../../config-provider/SizeContext';\nimport { FormItemInputContext } from '../../form/context';\nimport { useCompactItemContext } from '../../space/Compact';\nimport LocaleReceiver from '../../locale-provider/LocaleReceiver';\nimport { getMergedStatus, getStatusClassNames } from '../../_util/statusUtils';\nimport enUS from '../locale/en_US';\nimport { getRangePlaceholder, transPlacement2DropdownAlign } from '../util';\nimport warning from '../../_util/warning';\nexport default function generateRangePicker(generateConfig) {\n var RangePicker = /*#__PURE__*/forwardRef(function (props, ref) {\n var customizePrefixCls = props.prefixCls,\n customGetPopupContainer = props.getPopupContainer,\n className = props.className,\n placement = props.placement,\n customizeSize = props.size,\n customDisabled = props.disabled,\n _props$bordered = props.bordered,\n bordered = _props$bordered === void 0 ? true : _props$bordered,\n placeholder = props.placeholder,\n popupClassName = props.popupClassName,\n dropdownClassName = props.dropdownClassName,\n customStatus = props.status,\n restProps = __rest(props, [\"prefixCls\", \"getPopupContainer\", \"className\", \"placement\", \"size\", \"disabled\", \"bordered\", \"placeholder\", \"popupClassName\", \"dropdownClassName\", \"status\"]);\n var innerRef = React.useRef(null);\n var _useContext = useContext(ConfigContext),\n getPrefixCls = _useContext.getPrefixCls,\n direction = _useContext.direction,\n getPopupContainer = _useContext.getPopupContainer;\n var prefixCls = getPrefixCls('picker', customizePrefixCls);\n var _useCompactItemContex = useCompactItemContext(prefixCls, direction),\n compactSize = _useCompactItemContex.compactSize,\n compactItemClassnames = _useCompactItemContex.compactItemClassnames;\n var format = props.format,\n showTime = props.showTime,\n picker = props.picker;\n var rootPrefixCls = getPrefixCls();\n var additionalOverrideProps = {};\n additionalOverrideProps = _extends(_extends(_extends({}, additionalOverrideProps), showTime ? getTimeProps(_extends({\n format: format,\n picker: picker\n }, showTime)) : {}), picker === 'time' ? getTimeProps(_extends(_extends({\n format: format\n }, props), {\n picker: picker\n })) : {});\n process.env.NODE_ENV !== \"production\" ? warning(!dropdownClassName, 'RangePicker', '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.') : void 0;\n // ===================== Size =====================\n var size = React.useContext(SizeContext);\n var mergedSize = compactSize || customizeSize || size;\n // ===================== Disabled =====================\n var disabled = React.useContext(DisabledContext);\n var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n // ===================== FormItemInput =====================\n var formItemContext = useContext(FormItemInputContext);\n var hasFeedback = formItemContext.hasFeedback,\n contextStatus = formItemContext.status,\n feedbackIcon = formItemContext.feedbackIcon;\n var suffixNode = /*#__PURE__*/React.createElement(React.Fragment, null, picker === 'time' ? /*#__PURE__*/React.createElement(ClockCircleOutlined, null) : /*#__PURE__*/React.createElement(CalendarOutlined, null), hasFeedback && feedbackIcon);\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n var _a;\n return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n },\n blur: function blur() {\n var _a;\n return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.blur();\n }\n };\n });\n return /*#__PURE__*/React.createElement(LocaleReceiver, {\n componentName: \"DatePicker\",\n defaultLocale: enUS\n }, function (contextLocale) {\n var locale = _extends(_extends({}, contextLocale), props.locale);\n return /*#__PURE__*/React.createElement(RCRangePicker, _extends({\n separator: /*#__PURE__*/React.createElement(\"span\", {\n \"aria-label\": \"to\",\n className: \"\".concat(prefixCls, \"-separator\")\n }, /*#__PURE__*/React.createElement(SwapRightOutlined, null)),\n disabled: mergedDisabled,\n ref: innerRef,\n dropdownAlign: transPlacement2DropdownAlign(direction, placement),\n placeholder: getRangePlaceholder(picker, locale, placeholder),\n suffixIcon: suffixNode,\n clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null),\n prevIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-prev-icon\")\n }),\n nextIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-next-icon\")\n }),\n superPrevIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-super-prev-icon\")\n }),\n superNextIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-super-next-icon\")\n }),\n allowClear: true,\n transitionName: \"\".concat(rootPrefixCls, \"-slide-up\")\n }, restProps, additionalOverrideProps, {\n className: classNames(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(mergedSize), mergedSize), \"\".concat(prefixCls, \"-borderless\"), !bordered), getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), compactItemClassnames, className),\n locale: locale.lang,\n prefixCls: prefixCls,\n getPopupContainer: customGetPopupContainer || getPopupContainer,\n generateConfig: generateConfig,\n components: Components,\n direction: direction,\n dropdownClassName: popupClassName || dropdownClassName\n }));\n });\n });\n return RangePicker;\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CalendarOutlined from \"@ant-design/icons/es/icons/CalendarOutlined\";\nimport ClockCircleOutlined from \"@ant-design/icons/es/icons/ClockCircleOutlined\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport classNames from 'classnames';\nimport RCPicker from 'rc-picker';\nimport * as React from 'react';\nimport { forwardRef, useContext, useImperativeHandle } from 'react';\nimport { useCompactItemContext } from '../../space/Compact';\nimport { Components, getTimeProps } from '.';\nimport { ConfigContext } from '../../config-provider';\nimport DisabledContext from '../../config-provider/DisabledContext';\nimport SizeContext from '../../config-provider/SizeContext';\nimport { FormItemInputContext } from '../../form/context';\nimport LocaleReceiver from '../../locale-provider/LocaleReceiver';\nimport { getMergedStatus, getStatusClassNames } from '../../_util/statusUtils';\nimport warning from '../../_util/warning';\nimport enUS from '../locale/en_US';\nimport { getPlaceholder, transPlacement2DropdownAlign } from '../util';\nexport default function generatePicker(generateConfig) {\n function getPicker(picker, displayName) {\n var Picker = /*#__PURE__*/forwardRef(function (props, ref) {\n var customizePrefixCls = props.prefixCls,\n customizeGetPopupContainer = props.getPopupContainer,\n className = props.className,\n customizeSize = props.size,\n _props$bordered = props.bordered,\n bordered = _props$bordered === void 0 ? true : _props$bordered,\n placement = props.placement,\n placeholder = props.placeholder,\n popupClassName = props.popupClassName,\n dropdownClassName = props.dropdownClassName,\n customDisabled = props.disabled,\n customStatus = props.status,\n restProps = __rest(props, [\"prefixCls\", \"getPopupContainer\", \"className\", \"size\", \"bordered\", \"placement\", \"placeholder\", \"popupClassName\", \"dropdownClassName\", \"disabled\", \"status\"]);\n var _useContext = useContext(ConfigContext),\n getPrefixCls = _useContext.getPrefixCls,\n direction = _useContext.direction,\n getPopupContainer = _useContext.getPopupContainer;\n var prefixCls = getPrefixCls('picker', customizePrefixCls);\n var _useCompactItemContex = useCompactItemContext(prefixCls, direction),\n compactSize = _useCompactItemContex.compactSize,\n compactItemClassnames = _useCompactItemContex.compactItemClassnames;\n var innerRef = React.useRef(null);\n var format = props.format,\n showTime = props.showTime;\n useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n var _a;\n return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n },\n blur: function blur() {\n var _a;\n return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.blur();\n }\n };\n });\n var additionalProps = {\n showToday: true\n };\n var additionalOverrideProps = {};\n if (picker) {\n additionalOverrideProps.picker = picker;\n }\n var mergedPicker = picker || props.picker;\n additionalOverrideProps = _extends(_extends(_extends({}, additionalOverrideProps), showTime ? getTimeProps(_extends({\n format: format,\n picker: mergedPicker\n }, showTime)) : {}), mergedPicker === 'time' ? getTimeProps(_extends(_extends({\n format: format\n }, props), {\n picker: mergedPicker\n })) : {});\n var rootPrefixCls = getPrefixCls();\n // =================== Warning =====================\n process.env.NODE_ENV !== \"production\" ? warning(picker !== 'quarter', displayName, \"DatePicker.\".concat(displayName, \" is legacy usage. Please use DatePicker[picker='\").concat(picker, \"'] directly.\")) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!dropdownClassName, mergedPicker === 'time' ? 'TimePicker' : 'DatePicker', '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.') : void 0;\n // ===================== Size =====================\n var size = React.useContext(SizeContext);\n var mergedSize = compactSize || customizeSize || size;\n // ===================== Disabled =====================\n var disabled = React.useContext(DisabledContext);\n var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n // ===================== FormItemInput =====================\n var formItemContext = useContext(FormItemInputContext);\n var hasFeedback = formItemContext.hasFeedback,\n contextStatus = formItemContext.status,\n feedbackIcon = formItemContext.feedbackIcon;\n var suffixNode = /*#__PURE__*/React.createElement(React.Fragment, null, mergedPicker === 'time' ? /*#__PURE__*/React.createElement(ClockCircleOutlined, null) : /*#__PURE__*/React.createElement(CalendarOutlined, null), hasFeedback && feedbackIcon);\n return /*#__PURE__*/React.createElement(LocaleReceiver, {\n componentName: \"DatePicker\",\n defaultLocale: enUS\n }, function (contextLocale) {\n var locale = _extends(_extends({}, contextLocale), props.locale);\n return /*#__PURE__*/React.createElement(RCPicker, _extends({\n ref: innerRef,\n placeholder: getPlaceholder(mergedPicker, locale, placeholder),\n suffixIcon: suffixNode,\n dropdownAlign: transPlacement2DropdownAlign(direction, placement),\n clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null),\n prevIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-prev-icon\")\n }),\n nextIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-next-icon\")\n }),\n superPrevIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-super-prev-icon\")\n }),\n superNextIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-super-next-icon\")\n }),\n allowClear: true,\n transitionName: \"\".concat(rootPrefixCls, \"-slide-up\")\n }, additionalProps, restProps, additionalOverrideProps, {\n locale: locale.lang,\n className: classNames(_defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(mergedSize), mergedSize), \"\".concat(prefixCls, \"-borderless\"), !bordered), getStatusClassNames(prefixCls, getMergedStatus(contextStatus, customStatus), hasFeedback), compactItemClassnames, className),\n prefixCls: prefixCls,\n getPopupContainer: customizeGetPopupContainer || getPopupContainer,\n generateConfig: generateConfig,\n components: Components,\n direction: direction,\n disabled: mergedDisabled,\n dropdownClassName: popupClassName || dropdownClassName\n }));\n });\n });\n if (displayName) {\n Picker.displayName = displayName;\n }\n return Picker;\n }\n var DatePicker = getPicker();\n var WeekPicker = getPicker('week', 'WeekPicker');\n var MonthPicker = getPicker('month', 'MonthPicker');\n var YearPicker = getPicker('year', 'YearPicker');\n var TimePicker = getPicker('time', 'TimePicker');\n var QuarterPicker = getPicker('quarter', 'QuarterPicker');\n return {\n DatePicker: DatePicker,\n WeekPicker: WeekPicker,\n MonthPicker: MonthPicker,\n YearPicker: YearPicker,\n TimePicker: TimePicker,\n QuarterPicker: QuarterPicker\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { tuple } from '../../_util/type';\nimport PickerButton from '../PickerButton';\nimport PickerTag from '../PickerTag';\nimport generateRangePicker from './generateRangePicker';\nimport generateSinglePicker from './generateSinglePicker';\nexport var Components = {\n button: PickerButton,\n rangeItem: PickerTag\n};\nfunction toArray(list) {\n if (!list) {\n return [];\n }\n return Array.isArray(list) ? list : [list];\n}\nexport function getTimeProps(props) {\n var format = props.format,\n picker = props.picker,\n showHour = props.showHour,\n showMinute = props.showMinute,\n showSecond = props.showSecond,\n use12Hours = props.use12Hours;\n var firstFormat = toArray(format)[0];\n var showTimeObj = _extends({}, props);\n if (firstFormat && typeof firstFormat === 'string') {\n if (!firstFormat.includes('s') && showSecond === undefined) {\n showTimeObj.showSecond = false;\n }\n if (!firstFormat.includes('m') && showMinute === undefined) {\n showTimeObj.showMinute = false;\n }\n if (!firstFormat.includes('H') && !firstFormat.includes('h') && showHour === undefined) {\n showTimeObj.showHour = false;\n }\n if ((firstFormat.includes('a') || firstFormat.includes('A')) && use12Hours === undefined) {\n showTimeObj.use12Hours = true;\n }\n }\n if (picker === 'time') {\n return showTimeObj;\n }\n if (typeof firstFormat === 'function') {\n // format of showTime should use default when format is custom format function\n delete showTimeObj.format;\n }\n return {\n showTime: showTimeObj\n };\n}\nvar DataPickerPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');\nfunction generatePicker(generateConfig) {\n // =========================== Picker ===========================\n var _generateSinglePicker = generateSinglePicker(generateConfig),\n DatePicker = _generateSinglePicker.DatePicker,\n WeekPicker = _generateSinglePicker.WeekPicker,\n MonthPicker = _generateSinglePicker.MonthPicker,\n YearPicker = _generateSinglePicker.YearPicker,\n TimePicker = _generateSinglePicker.TimePicker,\n QuarterPicker = _generateSinglePicker.QuarterPicker;\n // ======================== Range Picker ========================\n var RangePicker = generateRangePicker(generateConfig);\n var MergedDatePicker = DatePicker;\n MergedDatePicker.WeekPicker = WeekPicker;\n MergedDatePicker.MonthPicker = MonthPicker;\n MergedDatePicker.YearPicker = YearPicker;\n MergedDatePicker.RangePicker = RangePicker;\n MergedDatePicker.TimePicker = TimePicker;\n MergedDatePicker.QuarterPicker = QuarterPicker;\n return MergedDatePicker;\n}\nexport default generatePicker;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport Button from '../button';\nexport default function PickerButton(props) {\n return /*#__PURE__*/React.createElement(Button, _extends({\n size: \"small\",\n type: \"primary\"\n }, props));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport Tag from '../tag';\nexport default function PickerTag(props) {\n return /*#__PURE__*/React.createElement(Tag, _extends({\n color: \"blue\"\n }, props));\n}","import dayjs, { Dayjs } from 'dayjs';\nimport dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';\nimport generatePicker from 'antd/es/date-picker/generatePicker';\nimport utc from 'dayjs/plugin/utc';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\n\ndayjs.extend(localizedFormat);\ndayjs.extend(customParseFormat);\ndayjs.extend(utc);\nconst DatePicker = generatePicker(dayjsGenerateConfig);\n\nexport default DatePicker;\n","import * as React from 'react';\nimport dayjs, { Dayjs } from 'dayjs';\nimport { PickerTimeProps } from 'antd/es/date-picker/generatePicker';\n\nimport { DatePicker } from '@common/react/components/Forms/Pickers/index';\n\nexport interface TimePickerProps extends Omit, 'picker'> {}\n\nconst TimePicker = React.forwardRef((props, ref) => {\n\treturn ;\n});\n\nTimePicker.displayName = 'TimePicker';\n\nexport default TimePicker;\n","import * as React from 'react';\nimport { RouteComponentProps } from 'react-router';\n\nimport { Action, bindActionCreators, Dispatch } from 'redux';\nimport { FormikProps, FormikHelpers } from 'formik';\nimport Space from 'antd/lib/space';\n\nimport { request } from '@common/react/components/Api';\nimport { BaseApplicationState } from '@common/react/store';\nimport { Extend } from '@common/typescript/utils/types';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BaseParams } from '@common/react/objects/BaseParams';\nimport Button from '@common/react/components/Forms/Button';\nimport { WithId } from '@common/typescript/objects/WithId';\nimport {\n\tgetActionCreators as getItemActionCreators,\n\tIActionCreators as ItemActionCreators,\n\tIMappedActionCreators as MappedItemActionCreators,\n\tItemState,\n} from '@common/react/store/Item';\nimport {\n\tgetActionCreators as getItemsActionCreators,\n\tIActionCreators as ItemsActionCreators,\n\tIMappedActionCreators as MappedItemsActionCreators,\n} from '@common/react/store/ItemList';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nexport interface Actions> {\n\titemActions: MappedItemActionCreators;\n\tpagesActions: MappedItemsActionCreators;\n}\n\nexport type PageProps> =\n\tItemState\n\t& Actions\n\t& RouteComponentProps<{ id: string }>;\n\nexport interface ItemEditorDefaultState {\n\tisLoading: boolean;\n\tsuccess: boolean;\n\terror: string | null;\n}\n\ntype ComponentProps<\n\tTEntity extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState,\n\tTPropsExtension = never\n> = Extend, TPropsExtension>;\n\ninterface LocationState {\n\tprevPath?: string;\n}\n\nexport abstract class ExtendableItemEditor<\n\tTEntity extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState,\n\tTPropsExtension = never,\n\tTState extends ItemEditorDefaultState = ItemEditorDefaultState,\n\tTValues = Record\n> extends React.Component, TState> {\n\tpublic abstract store: keyof TApplicationState;\n\tpublic abstract itemsStore: keyof TApplicationState;\n\n\tpublic abstract saveItemPath: string;\n\tpublic abstract itemsPath: string;\n\tpublic abstract path: string;\n\tpublic abstract backPath: string;\n\tpublic additionalParams: BaseParams = {};\n\n\tpublic abstract defaultItem: TEntity;\n\tpublic state: TState = {\n\t\tisLoading: false,\n\t\tsuccess: false,\n\t\terror: null,\n\t} as TState;\n\n\tprotected form = React.createRef>();\n\n\tconstructor(props: ComponentProps) {\n\t\tsuper(props);\n\n\t\tthis.handlerBack = this.handlerBack.bind(this);\n\t\tthis.updateItem = this.updateItem.bind(this);\n\t\tthis.handleSubmit = this.handleSubmit.bind(this);\n\t\tthis.handleCheckItem = this.handleCheckItem.bind(this);\n\t\tthis.saveItem = this.saveItem.bind(this);\n\t\tthis.submitForm = this.submitForm.bind(this);\n\t\tthis.clearForSubmit = this.clearForSubmit.bind(this);\n\t\tthis.updateValues = this.updateValues.bind(this);\n\t\tthis.returnAfterSubmit = this.returnAfterSubmit.bind(this);\n\t\tthis.refreshPages = this.refreshPages.bind(this);\n\t}\n\n\tcomponentDidMount(): void {\n\t\tconst itemPathOrId = this.getIdParam();\n\t\tthis.props.itemActions.loadItem(this.store, this.path, itemPathOrId, this.defaultItem, this.additionalParams);\n\t}\n\n\tcomponentDidUpdate(prevProps: Readonly>): void {\n\t\tif (this.props.match.params.id && +this.props.match.params.id !== +prevProps.match.params.id) {\n\t\t\tthis.props.itemActions.loadItem(this.store, this.path, +this.props.match.params.id, this.defaultItem, this.additionalParams);\n\t\t}\n\t}\n\n\thandlerBack() {\n\t\tconst state: Nullable | undefined = this.props.location.state as (Nullable | undefined);\n\t\tif (state && state.prevPath) {\n\t\t\tthis.props.history.push(state.prevPath);\n\t\t} else {\n\t\t\tconsole.log('this.backPath', this.backPath);\n\t\t\tthis.props.history.push(this.backPath);\n\t\t}\n\t}\n\n\tclearForSubmit(values: TValues): any {\n\t\treturn undefined;\n\t}\n\n\treturnAfterSubmit(values: TValues, fields: Array = [], response?: TEntity): TValues | {} {\n\t\tif (!fields.length) {\n\t\t\treturn {};\n\t\t}\n\n\t\tconst isArrayOfObjects = (value): boolean => value instanceof Array && value[0] instanceof Object && value[0].id;\n\n\t\tconst valuesToReturn = {};\n\t\tfor (const key of fields) {\n\t\t\tvaluesToReturn[key] = values[key];\n\n\t\t\tif (response && isArrayOfObjects(valuesToReturn[key])) {\n\t\t\t\tvaluesToReturn[key] = valuesToReturn[key].filter((value) => !value.deleted).map((obj, index) => (response[key][index] ? {\n\t\t\t\t\t...obj,\n\t\t\t\t\tid: response[key][index].id,\n\t\t\t\t} : obj));\n\t\t\t}\n\t\t}\n\n\t\treturn valuesToReturn;\n\t}\n\n\tsubmitForm(values: TValues, returnToList: boolean = true): Promise {\n\t\tconst item: TEntity = { ...this.props.item, ...values, ...this.clearForSubmit(values) };\n\n\t\treturn this.saveItem(item).then((response: TEntity) => {\n\t\t\tthis.updateItem({ ...response, ...this.returnAfterSubmit(values, [], response) }, true);\n\n\t\t\tif (item.id === -1) {\n\t\t\t\tthis.props.history.replace({\n\t\t\t\t\t...this.props.location,\n\t\t\t\t\tpathname: this.props.location.pathname.replace('/-1', `/${response.id}`),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (returnToList) {\n\t\t\t\tthis.returnToList();\n\t\t\t} else {\n\t\t\t\tthis.hideSuccess();\n\t\t\t}\n\t\t});\n\t}\n\n\tsaveItem(item: Partial): Promise {\n\t\tthis.setState({\n\t\t\tisLoading: true,\n\t\t\terror: null,\n\t\t});\n\n\t\treturn request(this.saveItemPath, item).then((response) => {\n\t\t\tthis.setState({\n\t\t\t\tisLoading: false,\n\t\t\t\tsuccess: true,\n\t\t\t});\n\n\t\t\treturn response;\n\t\t}).catch((error: string) => {\n\t\t\tthis.setState({\n\t\t\t\terror,\n\t\t\t\tisLoading: false,\n\t\t\t});\n\n\t\t\tthrow error;\n\t\t});\n\t}\n\n\tupdateItem(data: Partial, refreshItemsStore: boolean = false) {\n\t\tthis.props.itemActions.updateItem(this.store, data);\n\t\trefreshItemsStore && this.refreshPages();\n\t}\n\n\tupdateValues(data: Partial) {\n\t\tconst form = this.form.current;\n\n\t\tif (form) {\n\t\t\tform.setValues({ ...form.values, ...data });\n\t\t}\n\t}\n\n\treturnToList(): void {\n\t\tsetTimeout(() => {\n\t\t\tthis.handlerBack();\n\t\t}, 2000);\n\t}\n\n\thandleSubmit(values: TValues, formikActions: FormikHelpers) {\n\t\tthis.submitForm(values);\n\t}\n\n\thideSuccess() {\n\t\tsetTimeout(() => {\n\t\t\tthis.setState({\n\t\t\t\tsuccess: false,\n\t\t\t});\n\t\t}, 2000);\n\t}\n\n\tmessages() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{this.state.success ?
Successfully saved
: ''}\n\t\t\t\t{this.state.error ?
{this.state.error}
: ''}\n\t\t\t\n\t\t);\n\t}\n\n\trefreshPages() {\n\t\tthis.props.pagesActions.refreshPages(this.itemsStore, this.itemsPath);\n\t}\n\n\tbuttons() {\n\t\treturn (\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t);\n\t}\n\n\thandleCheckItem() {\n\t\tconst item: Partial | null = this.props.item;\n\n\t\tif (item && this.props.match && item.id === +this.props.match.params.id) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\tgetIdParam() {\n\t\treturn this.props.match ? +this.props.match.params.id : -1;\n\t}\n}\n\nexport abstract class ItemEditor<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState,\n\tTState extends ItemEditorDefaultState = ItemEditorDefaultState,\n\tTValues = any\n> extends ExtendableItemEditor {}\n\nexport function dispatchToProps<\n\tT extends WithId,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState\n>(dispatch: Dispatch): Actions {\n\treturn {\n\t\titemActions: bindActionCreators<\n\t\t\tItemActionCreators,\n\t\t\tMappedItemActionCreators\n\t\t\t>(getItemActionCreators(), dispatch),\n\t\tpagesActions: bindActionCreators<\n\t\t\tItemsActionCreators,\n\t\t\tMappedItemsActionCreators\n\t\t\t>(getItemsActionCreators(), dispatch),\n\t};\n}\n","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\nvar _omit = _interopRequireDefault(require(\"rc-util/lib/omit\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _warning = _interopRequireDefault(require(\"../_util/warning\"));\nvar _Base = _interopRequireDefault(require(\"./Base\"));\nvar __rest = void 0 && (void 0).__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar Text = function Text(_a, ref) {\n var ellipsis = _a.ellipsis,\n restProps = __rest(_a, [\"ellipsis\"]);\n var mergedEllipsis = React.useMemo(function () {\n if (ellipsis && (0, _typeof2[\"default\"])(ellipsis) === 'object') {\n return (0, _omit[\"default\"])(ellipsis, ['expandable', 'rows']);\n }\n return ellipsis;\n }, [ellipsis]);\n process.env.NODE_ENV !== \"production\" ? (0, _warning[\"default\"])((0, _typeof2[\"default\"])(ellipsis) !== 'object' || !ellipsis || !('expandable' in ellipsis) && !('rows' in ellipsis), 'Typography.Text', '`ellipsis` do not support `expandable` or `rows` props.') : void 0;\n return /*#__PURE__*/React.createElement(_Base[\"default\"], (0, _extends2[\"default\"])({\n ref: ref\n }, restProps, {\n ellipsis: mergedEllipsis,\n component: \"span\"\n }));\n};\nvar _default = exports[\"default\"] = /*#__PURE__*/React.forwardRef(Text);","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,i=/\\d\\d?/,o=/\\d*[^-_:/,()\\s\\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[i,f(\"seconds\")],ss:[i,f(\"seconds\")],m:[i,f(\"minutes\")],mm:[i,f(\"minutes\")],H:[i,f(\"hours\")],h:[i,f(\"hours\")],HH:[i,f(\"hours\")],hh:[i,f(\"hours\")],D:[i,f(\"day\")],DD:[r,f(\"day\")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[i,f(\"week\")],ww:[r,f(\"week\")],M:[i,f(\"month\")],MM:[r,f(\"month\")],MMM:[o,function(e){var t=u(\"months\"),n=(u(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,f(\"year\")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,f(\"year\")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f-1)return new Date((\"X\"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date(\"\")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date(\"\")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}));","module.exports = (__webpack_require__(7))(473);","import { tuple } from './type';\nexport var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning');\n// eslint-disable-next-line import/prefer-default-export\nexport var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');","/* eslint-disable sonarjs/no-duplicate-string */\n\nimport { InternationalizationSchema } from '@app/internationalization/InternationalizationSchema';\n\nexport const schema: InternationalizationSchema = {\n\tlanguage: 'American English (US)',\n\thelpers: {\n\t\tnone: 'None',\n\t\tdays: 'days',\n\t\tindefinitely: 'Indefinitely',\n\t\tfinished: 'Finished',\n\t\tfinish: 'Finish',\n\t\tcomplete: 'Complete',\n\t\timage: 'image',\n\t\tupload: 'Upload',\n\t\tload: 'Load',\n\t\tunload: 'Unload',\n\t\tunknown: 'Unknown',\n\t\tnew: 'New',\n\t\tselect: 'Select',\n\t\t'total-amount': 'Total Amount',\n\t\tinfo: 'Info',\n\t},\n\tenums: {\n\t\t'tax-policy': {\n\t\t\t'policy-excluded_tax': 'Tax Excluded',\n\t\t\t'policy-excluded_hst': 'HST Excluded',\n\t\t\t'policy-excluded_gst': 'GST Excluded',\n\t\t\t'policy-excluded_tax-default': 'Tax Excluded',\n\n\t\t\t'policy-included_tax': 'Tax Included',\n\t\t\t'policy-included_hst': 'HST Included',\n\t\t\t'policy-included_gst': 'GST Included',\n\t\t\t'policy-included_tax-default': 'Tax Included',\n\t\t},\n\t\t'invoice-tax-model': {\n\t\t\t'per-invoice_tax': 'Tax Per Invoice',\n\t\t\t'per-invoice_hst': 'HST Per Invoice',\n\t\t\t'per-invoice_gst': 'GST Per Invoice',\n\t\t\t'per-invoice_tax-default': 'Tax Per Invoice',\n\n\t\t\t'per-item_tax': 'Tax Per Item',\n\t\t\t'per-item_hst': 'HST Per Item',\n\t\t\t'per-item_gst': 'GST Per Item',\n\t\t\t'per-item_tax-default': 'Tax Per Item',\n\t\t},\n\t\t'crematory-type': {\n\t\t\tboth: 'Both',\n\t\t\tcremation: 'Cremation',\n\t\t\taquamation: 'Aquamation',\n\t\t},\n\t\tpermissions: {\n\t\t\t'create-pet': 'Create Pet',\n\t\t\t'update-pet': 'Update Pet',\n\t\t\t'delete-pet': 'Delete Pet',\n\t\t\t'change-status': 'Change Status',\n\t\t\t'complete-service': 'Complete Service',\n\t\t\t'manage-invoices': 'Manage Invoices',\n\t\t\t'manage-users': 'Manage Users',\n\t\t\tquickbooks: 'Quickbooks',\n\t\t},\n\t\t'price-kind': {\n\t\t\t'base-price': 'Base Price',\n\t\t\t'special-service-price': 'Special Service Price',\n\t\t\t'delivery-price': 'Delivery Price',\n\t\t\t'urn-price': 'Urn Price',\n\t\t\tdiscount: 'Discount',\n\t\t\t'product-price': 'Product Price',\n\t\t\tengraving: 'Engraving',\n\t\t},\n\t\t'service-type': {\n\t\t\tprivate: 'Private',\n\t\t\tsemiprivate: 'SemiPrivate',\n\t\t\tstorage: 'Storage',\n\t\t\tcommunal: 'Communal',\n\t\t\tall: 'All',\n\t\t\t'products-only': 'Products Only',\n\t\t\t'aus-private': 'Individual',\n\t\t\t'aus-semiprivate': 'SemiIndividual',\n\t\t},\n\t\t'batch-type': {\n\t\t\tprivate: 'Private',\n\t\t\tsemiprivate: 'SemiPrivate',\n\t\t\tcommunal: 'Communal',\n\t\t\tboth: 'Both',\n\t\t},\n\t\t'price-type': {\n\t\t\twholesale: 'Wholesale',\n\t\t\tretail: 'Retail',\n\t\t\tall: 'All',\n\t\t},\n\t\t'user-roles': {\n\t\t\tadmin: 'Admin',\n\t\t\t'crematory-admin': 'Crematory admin',\n\t\t\t'crematory-user': 'Crematory user',\n\t\t\tclinic: 'Clinic',\n\t\t},\n\t\t'delivery-type': {\n\t\t\t'home-drop-off': 'Home Drop off',\n\t\t\t'vet-drop-off': 'Vet Drop off',\n\t\t\tclinic: 'Clinic',\n\t\t\tmail: 'Mail',\n\t\t\t'pick-up': 'Pick up',\n\t\t\tnone: 'None',\n\t\t},\n\t\t'weight-units': {\n\t\t\tpounds: 'Pounds',\n\t\t\tkilograms: 'Kilograms',\n\t\t},\n\t\t'quickbooks-item-type': {\n\t\t\tinventory: 'Inventory',\n\t\t\t'non-inventory': 'Non Inventory',\n\t\t\tservice: 'Service',\n\t\t},\n\t\tterms: {\n\t\t\t'due-on-receipt': 'Due On Receipt',\n\t\t\t'net-15': 'Net 15',\n\t\t\t'net-30': 'Net 30',\n\t\t\tcustom: 'Custom',\n\t\t},\n\t\t'invoice-status': {\n\t\t\topen: 'Open',\n\t\t\tpaid: 'Paid',\n\t\t},\n\t\tadjustment: {\n\t\t\tservice: 'Service',\n\t\t\tproduct: 'Product',\n\t\t},\n\t},\n\tmenu: {\n\t\theader: {\n\t\t\tclinics: 'Clinics',\n\t\t\tcrematories: 'Crematories',\n\t\t\t'crematory-users': 'Crematory Users',\n\t\t\tdashboard: 'Dashboard',\n\t\t\t'discount-codes': 'Discount Codes',\n\t\t\tpets: 'Pets',\n\t\t\tquickbooks: 'Quickbooks',\n\t\t},\n\t\tsubmenu: {\n\t\t\tpets: 'Pets',\n\t\t\tbatches: 'Batches',\n\t\t\t'coordinate-batches': 'Coordinate Batches',\n\t\t\tlabels: 'Labels',\n\t\t\tcustomers: 'Customers',\n\t\t\t'quickbooks-items': 'Quickbooks Items',\n\t\t\thistory: 'History',\n\t\t\t'api-import': 'API Import',\n\t\t},\n\t},\n\t'page-headers': {\n\t\t'api-keys': 'API Keys',\n\t\tbatches: 'Batches',\n\t\t'additional-notes': 'Additional notes',\n\t\tinvoices: 'Invoices',\n\t\tadjustments: 'Adjustments',\n\t\t'store-entries': 'Inventory Items',\n\t\tprices: 'Prices',\n\n\t\t'item-names': {\n\t\t\t'api-key': 'API Key',\n\t\t\tbatch: 'Batch',\n\t\t\tinvoice: 'Invoice',\n\t\t\tadjustment: 'Adjustment',\n\t\t\t'store-entry': 'Inventory Item',\n\t\t\tprice: 'Price',\n\t\t},\n\t},\n\tlists: {\n\t\t'clinic-pet-list': {\n\t\t\tcards: {\n\t\t\t\t'pet-card': {\n\t\t\t\t\t'owner-name': 'Owner\\'s name',\n\t\t\t\t\t'date-entered': 'Date entered',\n\t\t\t\t\tengraving: 'Engraving',\n\t\t\t\t\tcolor: 'Color',\n\t\t\t\t\t'reported-weight': 'Reported weight',\n\t\t\t\t\tgender: 'Gender',\n\t\t\t\t},\n\t\t\t},\n\t\t\tcolumns: {\n\t\t\t\tname: 'Name',\n\t\t\t\tspecies: 'Species',\n\t\t\t\tbreed: 'Breed',\n\t\t\t\tgender: 'Gender',\n\t\t\t\tcolor: 'Color',\n\t\t\t\tweight: 'Weight',\n\t\t\t\t'service-type': 'Service type',\n\t\t\t\tstatus: 'Status',\n\t\t\t\t'created-date': 'Created date',\n\t\t\t\twarnings: {\n\t\t\t\t\t'unknown-status': 'Unknown status',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\teditors: {\n\t\t'profile-editor': {\n\t\t\ttitle: 'Profile Editor',\n\t\t\t'base-info': {\n\t\t\t\ttitle: 'General Info',\n\t\t\t\t'first-name': 'First Name',\n\t\t\t\t'last-name': 'Last Name',\n\t\t\t\temail: 'Email',\n\t\t\t},\n\t\t\t'localization-preferences': {\n\t\t\t\ttitle: 'Localization Preferences',\n\t\t\t\tlanguage: 'Language',\n\t\t\t\t'date-format': 'Date Format',\n\t\t\t\t'time-format': 'Time Format',\n\t\t\t},\n\t\t\tmessages: {\n\t\t\t\t'update-success': 'Successfully updated profile!',\n\t\t\t},\n\t\t\tpermissions: {\n\t\t\t\t'create-pet': 'The user can create pet',\n\t\t\t\t'update-pet': 'The user can update pet',\n\t\t\t\t'delete-pet': 'The user can delete pet',\n\t\t\t\t'change-status': 'The user can change status',\n\t\t\t\t'complete-service': 'The user can complete service',\n\t\t\t\t'manage-invoices': 'The user can manage invoices',\n\t\t\t\t'manage-users': 'The user can manage users',\n\t\t\t\tquickbooks: 'The user can manage Quickbooks',\n\t\t\t},\n\t\t},\n\t\t'pet-editor': {\n\t\t\t'estimations':{\n\t\t\t\t'ashes-hint':'Estimated Ashes Weight'\n\t\t\t},\n\t\t\tcards: {\n\t\t\t\t'pet-info': {\n\t\t\t\t\tspecie: 'Specie',\n\t\t\t\t\tbreed: 'Breed',\n\t\t\t\t\tname: 'Name',\n\t\t\t\t\tengraving: 'Engraving',\n\t\t\t\t\tcolor: 'Colour',\n\t\t\t\t\tgender: 'Gender',\n\t\t\t\t\t'reported-weight': 'Reported weight',\n\t\t\t\t\t'actual-weight': 'Actual weight',\n\t\t\t\t},\n\t\t\t},\n\t\t\tlabels: {\n\t\t\t\tinvoice: 'Invoice',\n\t\t\t\tcrematory: 'Crematory',\n\t\t\t\t'price-type': 'Pricing Type',\n\t\t\t\trush: 'Rush',\n\t\t\t\t'rush-details': 'This pet needs urgent service',\n\t\t\t\t'on-hold': 'On Hold',\n\t\t\t\t'on-hold-details': 'This pet is on hold',\n\n\t\t\t\t'owner-first-name': 'First name',\n\t\t\t\t'owner-last-name': 'Last name',\n\t\t\t\t'owner-email': 'Email',\n\t\t\t\t'owner-phone-1': 'Phone number',\n\t\t\t\t'owner-phone-2': 'Phone number',\n\n\t\t\t\t'owner-street-address-1': 'Street address 1',\n\t\t\t\t'owner-street-address-2': 'Street address 2',\n\t\t\t\t'owner-zip': 'Zip',\n\t\t\t\t'owner-postal': 'Postal',\n\t\t\t\t'owner-mail-default': 'Mail index',\n\t\t\t\t'owner-city': 'City',\n\t\t\t\t'owner-state': 'State',\n\t\t\t\t'owner-province': 'Province',\n\t\t\t\t'owner-region-default': 'Region',\n\n\t\t\t\t'notes-about-family': 'Notes about Family',\n\t\t\t\tnotes: 'Notes',\n\t\t\t\tdiscount: 'Discount',\n\t\t\t\t'pick-up-service': 'Pickup Service',\n\n\t\t\t\t'date-received': 'Date Received',\n\t\t\t\tclinic: 'Clinic',\n\t\t\t\t'clinic-location': 'Clinic Location',\n\t\t\t\tvet: 'Vet',\n\t\t\t\t'clinic-internal-number': 'Internal ID',\n\n\t\t\t\t'pet-species': 'Species',\n\t\t\t\t'pet-breed': 'Breed',\n\t\t\t\t'is-mixed': 'Is mixed',\n\t\t\t\t'pet-name': 'Pet Name',\n\t\t\t\t'pet-color': 'Color',\n\t\t\t\t'pet-gender': 'Gender',\n\t\t\t\t'pet-reported-weight': 'Reported Weight',\n\t\t\t\t'pet-actual-weight': 'Actual Weight',\n\t\t\t\t'pet-ashes-weight': 'Ashes Weight',\n\n\t\t\t\t'delivery-type': 'Delivery type',\n\t\t\t\t'delivery-address-1': 'Delivery address',\n\t\t\t\t'delivery-address-2': 'Delivery address 2',\n\t\t\t\t'delivery-zip': 'Delivery zip',\n\t\t\t\t'delivery-postal': 'Delivery postal',\n\t\t\t\t'delivery-mail-default': 'Delivery mail index',\n\t\t\t\t'delivery-city': 'Delivery city',\n\t\t\t\t'delivery-state': 'Delivery state',\n\t\t\t\t'delivery-region-default': 'Delivery region',\n\t\t\t\t'delivery-province': 'Delivery province',\n\t\t\t\t'delivery-clinic': 'Delivery clinic',\n\n\t\t\t\t'special-instructions': 'Special instructions',\n\t\t\t\tcarrier: 'Carrier',\n\t\t\t\t'tracking-number': 'Tracking number',\n\n\t\t\t\t'spread-long': 'Longitude',\n\t\t\t\t'spread-lat': 'Latitude',\n\n\t\t\t\t'type-of-service': 'Type of Service',\n\t\t\t\tengraving: 'Engraving',\n\n\t\t\t\t'urn-type': 'Urn Type',\n\t\t\t\t'urn-size': 'Urn Size',\n\t\t\t\t'urn-count': 'Count',\n\n\t\t\t\t'product-count': 'Count',\n\t\t\t},\n\n\t\t\tsections: {\n\t\t\t\towner: 'Owner Information',\n\t\t\t\tpet: 'Pet Information',\n\t\t\t\t'special-services': 'Special Services',\n\t\t\t\tdelivery: 'Delivery',\n\t\t\t\tclinic: 'Clinic Information',\n\t\t\t\tprocess: 'Process Information',\n\t\t\t\tproducts: 'Products',\n\t\t\t\tdocuments: 'Documents',\n\t\t\t},\n\n\t\t\tactions: {\n\t\t\t\t'edit-pet': 'Edit pet',\n\t\t\t\t'add-pet': 'Add Pet',\n\t\t\t\t'add-batch': 'Add Batch',\n\n\t\t\t\t'save-action': 'Save',\n\t\t\t\t'cancel-action': 'Cancel',\n\n\t\t\t\texport: 'Export',\n\t\t\t\t'export-title': 'Export to excel document',\n\t\t\t},\n\n\t\t\t'price-tag': {\n\t\t\t\ttotal: 'Total',\n\t\t\t\tsubtotal: 'Subtotal',\n\t\t\t\tfree: 'Free',\n\t\t\t\tprice: 'Price',\n\t\t\t\t'price-not-found': 'Price for entered data isn\\'t set',\n\t\t\t\tdiscount: 'Discount',\n\t\t\t\t'clinic-discount': 'Clinic Discount',\n\t\t\t\ttax: 'Tax',\n\t\t\t\thst: 'HST',\n\t\t\t\tgst: 'GST',\n\t\t\t\t'tax-default': 'Tax',\n\t\t\t},\n\n\t\t\t'pet-tag': {\n\t\t\t\t'button-text': 'Print pet tag',\n\t\t\t\t'button-invoice-text': 'Print Receipt',\n\t\t\t},\n\t\t},\n\t\t'clinic-pet-editor': {\n\t\t\tcards: {\n\t\t\t\t'pet-info': {\n\t\t\t\t\tname: 'Name',\n\t\t\t\t\tengraving: 'Engraving',\n\t\t\t\t\tgender: 'Gender',\n\t\t\t\t\tweight: 'Weight',\n\t\t\t\t\tspecies: 'Species',\n\t\t\t\t\tbreed: 'Breed',\n\t\t\t\t\t'breed-type': 'Breed type',\n\t\t\t\t\tcolor: 'Color',\n\t\t\t\t\t'urn-type': 'Urn Type',\n\t\t\t\t\t'urn-count': 'Quantity',\n\t\t\t\t},\n\t\t\t\t'owner-info': {\n\t\t\t\t\t'owner-type': 'Owner type',\n\t\t\t\t\t'owner-first-name': 'Owner first name',\n\t\t\t\t\t'owner-last-name': 'Owner last name',\n\t\t\t\t\t'owner-email': 'Owner email',\n\t\t\t\t\t'owner-phone': 'Owner phone',\n\t\t\t\t},\n\t\t\t\t'cremation-info': {\n\t\t\t\t\tcrematory: 'Crematory',\n\t\t\t\t\t'cremation-type': 'Cremation type',\n\t\t\t\t\t'clinic-location': 'Clinic location',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t'crematory-editor': {\n\t\t\theaders: {\n\t\t\t\t'general-preferences': 'General preferences',\n\t\t\t\t'email-notifications': 'Email notifications',\n\t\t\t\tlocalizations: 'Localization preferences',\n\t\t\t\t'special-service-colors': 'Special service colors',\n\t\t\t\tdelivery: 'Delivery',\n\t\t\t\tpricing: 'Pricing',\n\t\t\t\t'expiration-colors': 'Expiration colors',\n\t\t\t\t'change-status-policy': 'Change status policy',\n\t\t\t},\n\t\t\tinformation: {\n\t\t\t\taddress: {\n\t\t\t\t\t'street-address-1': 'Street address 1',\n\t\t\t\t\t'street-address-2': 'Street address 2',\n\t\t\t\t\tzip: 'Zip',\n\t\t\t\t\tpostal: 'Postal',\n\t\t\t\t\t'mail-default': 'Postal code',\n\t\t\t\t\tcity: 'City',\n\t\t\t\t\tstate: 'State',\n\t\t\t\t\tprovince: 'Province',\n\t\t\t\t\t'region-default': 'Region',\n\t\t\t\t},\n\t\t\t},\n\t\t\tpreferences: {\n\t\t\t\tpricing: {\n\t\t\t\t\ttax: 'Tax',\n\t\t\t\t\thst: 'HST',\n\t\t\t\t\tgst: 'GST',\n\t\t\t\t\t'tax-default': 'Tax',\n\t\t\t\t\t'show-prices-to-clinic': 'Show prices to clinic',\n\n\t\t\t\t\tcaptions: {\n\t\t\t\t\t\t'show-prices-to-clinic': 'The clinics will display prices in the pet editor',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tgeneral: {\n\t\t\t\t\t'tag-icon': 'Tag Icon',\n\t\t\t\t\t'weight-unit': 'Weight Units',\n\t\t\t\t\t'use-service-type': 'Use Service Type',\n\t\t\t\t\t'prefill-engraving': 'Prefill Engraving',\n\t\t\t\t\t'show-internal-id': 'Show Internal Id',\n\t\t\t\t\t'require-internal-id': 'Require Internal Id',\n\t\t\t\t\t'upload-files-to-clinic': 'Upload files to Clinic',\n\t\t\t\t\t'crematory-type': 'Crematory Type',\n\t\t\t\t\t'manage-stock': 'Manage Stock',\n\t\t\t\t\t'retail-requires-urn': 'Require urn for Retail price',\n\t\t\t\t\t'wholesale-requires-urn': 'Require urn for Wholesale price',\n\n\t\t\t\t\tcaptions: {\n\t\t\t\t\t\t'use-service-type': 'Use this Service Type for crematory',\n\t\t\t\t\t\t'prefill-engraving': 'Add engraving line filled with pet\\'s name automatically',\n\t\t\t\t\t\t'show-internal-id': 'Display Internal ID for this Service Type',\n\t\t\t\t\t\t'require-internal-id': 'The Internal ID will be required',\n\t\t\t\t\t\t'upload-files-to-clinic': 'Clinics will be able to upload files for pets',\n\t\t\t\t\t\t'manage-stock': 'Keep track of items in stock',\n\t\t\t\t\t\t'retail-requires-urn': 'It is required to have an urn for the type of Retail price and this type of service',\n\t\t\t\t\t\t'wholesale-requires-urn': 'It is required to have an urn for the type of Wholesale price and this type of service',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t'clinic-editor': {\n\t\t\tlabels: {\n\t\t\t\tname: 'Name',\n\t\t\t\t'contact-first-name': 'Contact First Name',\n\t\t\t\t'contact-last-name': 'Contact Last Name',\n\t\t\t\temail: 'Email',\n\t\t\t\tphone: 'Phone number',\n\n\t\t\t\t'street-address-1': 'Street Address 1',\n\t\t\t\t'street-address-2': 'Street Address 2',\n\t\t\t\tzip: 'Zip',\n\t\t\t\tpostal: 'Postal',\n\t\t\t\t'mail-default': 'Postal code',\n\t\t\t\tcity: 'City',\n\t\t\t\tstate: 'State',\n\t\t\t\tprovince: 'Province',\n\t\t\t\t'region-default': 'Region',\n\n\t\t\t\tcountry: 'Country',\n\t\t\t\tlanguage: 'Language',\n\t\t\t\t'date-format': 'Date Format',\n\t\t\t\t'time-format': 'Time Format',\n\t\t\t\t'clinic-type': 'Clinic Type',\n\t\t\t},\n\t\t\tsections: {\n\t\t\t\t'general-info': 'General Information',\n\t\t\t\taddress: 'Address',\n\t\t\t\t'localization-info': 'Localization Info',\n\t\t\t\t'linked-crematories': 'Linked Crematories',\n\t\t\t\tnotes: 'Notes',\n\t\t\t\tdelivery: 'Delivery',\n\t\t\t\tdanger: 'Danger',\n\t\t\t},\n\t\t},\n\t\t'expiration-coloring-editor': {\n\t\t\tvalidation: {\n\t\t\t\t'days-passed': {\n\t\t\t\t\tinteger: '\"Days\" should be an integer',\n\t\t\t\t\t'non-negative': '\"Days\" shouldn\\'t be negative',\n\t\t\t\t\trequired: '\"Days\" is a required field',\n\t\t\t\t\t'type-error': '\"Days\" should be a number',\n\t\t\t\t},\n\t\t\t\t'color-error': '\"Color\" is a required string',\n\t\t\t},\n\t\t\tmodal: {\n\t\t\t\ttitle: 'Here comes the title',\n\t\t\t\tdays: 'Days',\n\t\t\t\tcolor: 'Color',\n\t\t\t},\n\t\t\ttable: {\n\t\t\t\ttitle: 'Expiration colors',\n\t\t\t\titem: 'expiration color',\n\t\t\t\tcolumns: {\n\t\t\t\t\tcolor: 'Color',\n\t\t\t\t\t'days-passed': 'Days passed',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t'batch-editor': {\n\t\t\t'batch-info': 'Batch Info',\n\t\t\t'missing-info': 'Missing Batch Info',\n\t\t\t'pets-list': 'Pets List',\n\t\t\t'batch-image': 'Batch Image',\n\t\t\t'force-finish': 'Force Finish',\n\t\t\t'number-of-pet': 'Number of pets',\n\t\t\t'loaded-by': 'Loaded by',\n\t\t\t'loaded-at': 'Loaded at',\n\t\t\t'finished-by': 'Finished by',\n\t\t\t'finished-at': 'Finished at',\n\t\t\t'with-note': 'With note',\n\t\t},\n\t\t'invoice-editor': {\n\t\t\t'confirm-message': 'Price of some pets had been changed since invoice was generated. Consider reissuing invoice.',\n\t\t\t'adjustment-attach-message': 'Adjustment has been attached to the invoice.',\n\t\t\t'adjustment-change-message': 'Adjustment has been successfully changed.',\n\t\t\t'successfully-saved-message': 'Successfully saved.',\n\t\t\t'select-clinic-to-add-pets': 'Select clinic to add pets',\n\t\t\t'attach-pets-to-invoice': 'Click here to attach pets to invoice',\n\t\t\t'include-on-hold': 'Include On Hold',\n\t\t\t'by-dates': 'By dates',\n\t\t\tmanually: 'Manually',\n\t\t\t'create-invoice': 'Create invoice',\n\t\t\t'save-changes': 'Save changes',\n\t\t\t'send-email': 'Send email to clinic',\n\t\t\t'delete-invoice': 'Delete Invoice',\n\t\t\t'print-detailed-invoice': 'Print Detailed Invoice',\n\t\t\t'exclude-free-services': 'Exclude Free Services',\n\t\t\t'per-location': 'Per Location',\n\t\t\t'clinic-address': 'Clinic address',\n\n\t\t\t'send-to-quickbooks': 'Send To Quickbooks',\n\t\t\t'quickbooks-id': 'Quickbooks Id',\n\t\t\t'quickbooks-document-number': 'Quickbooks Document Number',\n\t\t\t'sent-by': 'Sent By',\n\t\t\t'sent-at': 'Sent At',\n\t\t},\n\t\t'dashboard-editor': {\n\t\t\tentities: {\n\t\t\t\tstatuses: 'Statuses',\n\t\t\t\tservices: 'Services',\n\t\t\t\t'special-services': 'Special Services',\n\t\t\t\treports: 'Reports',\n\t\t\t},\n\t\t\t'item-entities': {\n\t\t\t\tstatus: 'Status',\n\t\t\t\tservice: 'Service',\n\t\t\t\treport: 'Report',\n\t\t\t},\n\t\t\ttexts: {\n\t\t\t\t'empty-view': 'No Status Selected. Edit Dashboard to add statuses to display.',\n\t\t\t\t'empty-edit': 'You don\\'t have any',\n\t\t\t},\n\t\t},\n\t},\n\tmodals: {\n\t\t'pet-info-modal': {\n\t\t\tlabels: {\n\t\t\t\tcolor: 'Color',\n\t\t\t},\n\t\t},\n\n\t\t'batch-modal': {\n\t\t\t'batch-action': 'Batch Action',\n\t\t\t'select-machine': 'Select Machine',\n\t\t\t'select-pets': 'Select Pets',\n\t\t\t'confirm-batch': 'Confirm Batch',\n\n\t\t\t'leave-batch': 'Leave the batch',\n\t\t\t'confirm-text': 'It will not be saved',\n\t\t\t'batch-overview': 'Batch overview',\n\t\t\tchemicals: 'Chemicals',\n\t\t\t'no-overview': 'There is no overview data',\n\t\t\t'no-chemicals': 'There are no chemicals',\n\t\t\t'batch-type': 'Batch Type',\n\t\t\t'pets-amount': 'Pets Amount',\n\t\t\t'total-weight': 'Total Weight',\n\t\t},\n\t},\n\tselects: {\n\t\t'color-select': {\n\t\t\tplaceholder: 'Color',\n\t\t},\n\t\t'region-select': {\n\t\t\tplaceholder: {\n\t\t\t\tstate: 'Please, pick a state',\n\t\t\t\tprovince: 'Please, pick a province',\n\t\t\t\t'region-default': 'Please, pick a region',\n\t\t\t},\n\t\t},\n\t\t'postal-code-autocomplete': {\n\t\t\tplaceholder: {\n\t\t\t\tzip: 'Zip',\n\t\t\t\tpostal: 'Postal',\n\t\t\t\t'mail-default': 'Postal code',\n\t\t\t},\n\t\t},\n\t},\n\tbuttons: {\n\t\t'export-pet-report': {\n\t\t\tvalues: {\n\t\t\t\tid: 'Id',\n\t\t\t\tname: 'Name',\n\t\t\t\tspecies: 'Species',\n\t\t\t\tbreed: 'Breed',\n\t\t\t\t'actual-weight': 'Actual weight',\n\t\t\t\t'reported-weight': 'Reported weight',\n\t\t\t\t'price-type': 'Price type',\n\t\t\t\t'service-type': 'Service type',\n\t\t\t\t'delivery-type': 'Delivery type',\n\t\t\t\tclinic: 'Clinic',\n\t\t\t\tcrematory: 'Crematory',\n\t\t\t\t'entered-date': 'Entered date',\n\t\t\t\tstatus: 'Status',\n\t\t\t\tcity: 'City',\n\t\t\t\tstate: 'State',\n\t\t\t\tprovince: 'Province',\n\t\t\t\t'mail-default': 'Mail index',\n\t\t\t\tzip: 'Zip',\n\t\t\t\tpostal: 'Postal',\n\t\t\t\t'region-default': 'Region',\n\t\t\t\t'street-name-1': 'Street name 1',\n\t\t\t\t'street-name-2': 'Street name 2',\n\t\t\t\tnotes: 'Notes',\n\t\t\t\tgender: 'Gender',\n\t\t\t\tcolor: 'Color',\n\t\t\t\tphone: 'Phone',\n\t\t\t\temail: 'Email',\n\t\t\t\tengraving: 'Engraving',\n\t\t\t\t'first-name': 'First Name',\n\t\t\t\t'last-name': 'Last Name',\n\t\t\t\t'base-price-total': 'Total base price',\n\t\t\t\t'product-price-total': 'Total product price',\n\t\t\t\t'delivery-price-total': 'Total delivery price',\n\t\t\t\t'special-service-total': 'Total special service price',\n\t\t\t\t'pickup-service': 'Pickup service price',\n\t\t\t\t'current-status-date': 'Date that it became the current status',\n\t\t\t\tservice: 'Service',\n\t\t\t\tproduct: 'Product',\n\t\t\t\ttax: 'Tax',\n\t\t\t\thst: 'HST',\n\t\t\t\tgst: 'GST',\n\t\t\t\t'special-services': 'Special Services',\n\t\t\t},\n\t\t\tstate: {\n\t\t\t\ttitle: 'State',\n\t\t\t\t'up-to-date': 'Up-to-date',\n\t\t\t\tpending: 'Pending',\n\t\t\t},\n\t\t},\n\t\t'export-clinic-invoice-report': {\n\t\t\tid: 'Id',\n\t\t\t'invoice-number': 'Invoice Number',\n\t\t\t'clinic-name': 'Clinic Name',\n\t\t\t'pets-count': 'Pets Count',\n\t\t\ttotal: 'Total',\n\t\t\tstatus: 'Status',\n\t\t\t'issued-date': 'Issued Date',\n\t\t\t'due-date': 'Due Date',\n\n\t\t\t'base-price-total': 'Total base price',\n\t\t\t'product-price-total': 'Total product price',\n\t\t\t'urn-price-total': 'Total urn price',\n\t\t\t'delivery-price-total': 'Total delivery price',\n\t\t\t'special-service-total': 'Total special service price',\n\t\t\t'pickup-fees-total': 'Total pickup fees',\n\t\t\t'adjustment-price-total': 'Total adjustment price',\n\t\t\tservice: 'Service',\n\t\t\tproduct: 'Product',\n\t\t\ttax: 'Tax',\n\t\t\thst: 'HST',\n\t\t\tgst: 'GST',\n\t\t},\n\t\tadd: 'Add',\n\t\tedit: 'Edit',\n\t\tsave: 'Save',\n\t\tcancel: 'Cancel',\n\t\tleave: 'Leave',\n\t\tstay: 'Stay',\n\t\tconfirm: 'Confirm',\n\t\t'open-menu': 'Open Menu',\n\t\t'download-pdf': 'Download PDF',\n\t\t'load-more': 'Load more',\n\t},\n\tcolors: {\n\t\tgreen: 'green',\n\t\tyellow: 'yellow',\n\t\torange: 'orange',\n\t\tred: 'red',\n\t\tviolet: 'violet',\n\t\tblue: 'blue',\n\t\tlightblue: 'light blue',\n\t\tlightgreen: 'light green',\n\t\tpink: 'pink',\n\t\tblack: 'black',\n\t\ttransparent: 'transparent',\n\t},\n\tfilters: {\n\t\tsearch: 'Search',\n\t\t'search-by-name': 'Search by name',\n\t\treset: 'Reset filters',\n\t\tquantity: 'item(s)',\n\n\t\tid: 'Id',\n\t\tquery: 'Query',\n\t\tname: 'Name',\n\t\t'owner-first-name': 'Owner First Name',\n\t\t'owner-last-name': 'Owner Last Name',\n\t\tcrematories: 'Crematories',\n\t\t'contact-person': 'Contact Person',\n\t\t'pet-specie': 'Species',\n\t\t'pet-source': 'Source',\n\t\t'pet-breed': 'Breed',\n\t\tclinic: 'Clinic',\n\t\t'clinic-type': 'Clinic Type',\n\t\t'invoice-number': 'Invoice Number',\n\t\trole: 'Role',\n\t\t'crematory-role': 'Role',\n\t\temail: 'Email',\n\t\tphone: 'Phone',\n\t\t'service-type': 'Service Type',\n\t\t'service-type-with-all': 'Service Type',\n\t\tstatus: 'Status',\n\t\t'excluding-status': 'Excluding Status',\n\t\tdate: 'Date',\n\t\t'date-to': 'To',\n\t\t'date-from': 'From',\n\t\t'delivery-type': 'Delivery Type',\n\t\t'price-type': 'Price Type',\n\t\t'price-type-with-all': 'Price Type',\n\t\t'special-services': 'Special Services',\n\t\tenabled: 'Status',\n\t\t'invoice-status': 'Invoice Status',\n\t\t'order-number': 'Purchase Order Number',\n\t\t'due-date': 'Due Date',\n\t\t'has-issues': 'Issues',\n\t\trush: 'Rush',\n\t\t'on-hold': 'On Hold',\n\t\t'is-special': 'Special',\n\t\t'my-pets': 'My Pets',\n\t\tuser: 'User',\n\t\t'internal-id': 'Internal Id',\n\t\t'status-function': 'Status Function',\n\t\tcategory: 'Category',\n\t\t'is-customer': 'Is Customer',\n\t\troute: 'Route',\n\t\tmachine: 'Machine',\n\t\ttype: 'Type',\n\t\t'price-kind': 'Price Kind',\n\t\t'is-linked-to-quickbooks': 'Linked to Quickbooks',\n\t\t'stock-quantity': 'Quantity',\n\t\tconfirmed: 'Confirmed',\n\t\tproducts: 'Products',\n\t\turns: 'Urns',\n\t},\n\ttable: {\n\t\tcolumns: {\n\t\t\tactions: 'Actions',\n\n\t\t\tname: 'Name',\n\t\t\titem: 'Item',\n\t\t\tdiscount: 'Discount',\n\t\t\t'pet-name': 'Pet Name',\n\t\t\t'owner-name': 'Owner Name',\n\t\t\tspecies: 'Pet Species',\n\t\t\tbreed: 'Pet Breed',\n\t\t\tgender: 'Gender',\n\t\t\t'pet-color': 'Color',\n\t\t\tweight: 'Weight (Actual / Reported)',\n\t\t\t'weight-short': 'Weight (A/R)',\n\t\t\t'actual-weight': 'Actual Weight',\n\t\t\t'report-weight': 'Reported Weight',\n\t\t\t'service-type': 'Service Type',\n\t\t\t'price-type': 'Price Type',\n\t\t\t'price-kind': 'Price Kind',\n\t\t\tstatus: 'Status',\n\t\t\t'delivery-type': 'Delivery Type',\n\t\t\tclinic: 'Clinic',\n\t\t\tcrematories: 'Crematories',\n\t\t\t'entered-date': 'Entered Date',\n\t\t\t'created-date': 'Created Date',\n\t\t\t'internal-id': 'Internal Id',\n\n\t\t\texpiration: 'Expiration',\n\t\t\tmachine: 'Machine',\n\t\t\t'machine-position': 'Machine position',\n\t\t\ttype: 'Type',\n\t\t\tnote: 'Note',\n\t\t\tdescription: 'Description',\n\n\t\t\tdate: 'Date',\n\t\t\t'due-date': 'Due Date',\n\t\t\tnumber: 'Number',\n\t\t\tterms: 'Terms',\n\t\t\ttotal: 'Total',\n\t\t\tsubtotal: 'Subtotal',\n\t\t\tvalue: 'Value',\n\t\t\tprice: 'Price',\n\n\t\t\t'number-of-prices': 'Number of Prices',\n\t\t\tshipping: 'Shipping',\n\t\t\tpickup: 'Pick Up',\n\t\t\tproducts: 'Products',\n\t\t\turns: 'Urns',\n\t\t\t'special-services': 'Special Services',\n\t\t\ttax: 'Tax',\n\t\t\thst: 'HST',\n\t\t\tgst: 'GST',\n\t\t\tdiscounts: 'Discounts',\n\t\t\tattributes: 'Attributes',\n\t\t\t'clinic-can-pick': 'Clinic Can Pick',\n\t\t\t'total-urns': 'Total Urns',\n\n\t\t\t'invoice-model_tax': 'Invoice Tax Model',\n\t\t\t'invoice-model_hts': 'Invoice HST Model',\n\t\t\t'invoice-model_gst': 'Invoice GST Model',\n\t\t\t'invoice-model_tax-default': 'Invoice Tax Model',\n\t\t},\n\t\tactions: {\n\t\t\tedit: 'Edit',\n\t\t\tprint: 'Print tag',\n\t\t\tdelete: 'Delete',\n\t\t\tforce: 'Force',\n\t\t},\n\t},\n\tcontrol: {\n\t\tnext: 'Next',\n\t\tprevious: 'Previous',\n\t\tback: 'Back',\n\t},\n\ttext: {\n\t\t'pet-warning-issues': 'have been imported with issues and require review.',\n\t\t'api-key-success-message': `Please, save this API Key into secure storage. \n\t\tThis API Key is used by external apps to log in into wingstracker. \n\t\tAPI Key is not stored in Wingstracker.`,\n\t\t'api-key-success-title': 'Your key has been generated.',\n\t\t'batch-status-loaded': 'Pets are loaded',\n\t\t'batch-overriden-message': 'Some chemicals are overriden. Make sure you don\\'t use too much / too little.',\n\t\t'upload-image-message': 'Image size must not exceed 4 Mb',\n\t\t'add-pet': 'Add Pet',\n\t},\n\tmessages: {\n\t\ttype: {\n\t\t\tsuccess: 'Success',\n\t\t\terror: 'Error',\n\t\t},\n\n\t\ttext: {\n\t\t\tdelete: 'was deleted',\n\t\t\tfinished: 'is finished',\n\t\t\tconfirm: 'Confirm changes reviewed',\n\t\t\tupdate: 'has been updated',\n\t\t\tcopy: 'was copied',\n\t\t},\n\t},\n\tunknown: {\n\t\tkey: 'Unknown',\n\n\t\titems: {\n\t\t\tuser: 'User',\n\t\t\tmachine: 'Machine',\n\t\t},\n\t},\n\treports: {\n\t\t'income-reports': 'Income Reports',\n\t\t'average-turn-around-report': 'Average Turn Around Report',\n\t},\n};\n","import * as React from 'react';\n\nimport Modal from 'antd/lib/modal/Modal';\nimport {\n\tField, FieldProps, Form, Formik, FormikProps,\n} from 'formik';\n\nimport Alert from 'antd/lib/alert';\n\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\nimport { List } from '@common/typescript/objects/List';\n\nimport { ModalControls } from '@app/hooks/Editors/useModal';\n\nimport { SelectableRadioList } from '@app/components/UI/SelectableList/SelectableRadioList';\nimport { StatusChangeComponent, StatusResponse } from '@app/components/UI/Status/StatusChangeComponent';\nimport { PromoteDirection, PromoteResponseCode } from '@app/components/UI/Status/PetStatusButton';\nimport { request } from '@app/components/Api';\n\nimport { Pet } from '@app/objects/Pet';\nimport { StatusOrder } from '@app/objects/StatusOrder';\nimport { CurrentStatus } from '@app/objects/CurrentStatus';\n\nimport { alertMessage, MessageType } from '@app/utilities/alert';\n\ninterface ForceStatusFormProps {\n\tpet: Pet;\n\tmodal: ModalControls;\n\tonChangeStatus: (response: CurrentStatus) => void;\n}\n\ninterface ForceStatus {\n\tid: number,\n\tname: string,\n\tdescription: string | null,\n\tstatusId: number,\n}\n\nconst initialValues = {\n\tid: -1,\n\tname: '',\n\tdescription: '',\n\tstatusId: -1,\n};\n\nexport const ForceStatusForm: React.FC = (props: ForceStatusFormProps) => {\n\tconst { pet, modal, onChangeStatus } = props;\n\tconst [isLoading, setIsLoading] = React.useState(false);\n\tconst [error, setError] = React.useState(false);\n\tconst [data, setData] = React.useState>([]);\n\tconst reqParams = React.useMemo(() => ({\n\t\tobjectId: pet.crematoryId,\n\t\tserviceType: pet.serviceType,\n\t\tpriceType: pet.priceType,\n\t}), [pet]);\n\n\tReact.useEffect(() => {\n\t\tsetIsLoading(true);\n\t\trequest>('statusOrderList', { ...reqParams })\n\t\t\t.then((statusOrder: List) => {\n\t\t\t\tconst items: Array = statusOrder.list.map((item: StatusOrder) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: item.status?.id ?? -1,\n\t\t\t\t\t\tname: item.status?.name ?? '',\n\t\t\t\t\t\tdescription: item.status?.description ?? '',\n\t\t\t\t\t\tstatusId: item.statusId,\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t\tsetData(items);\n\t\t\t})\n\t\t\t.catch((err) => alertMessage(MessageType.error, err))\n\t\t\t.finally(() => setIsLoading(false));\n\t}, [reqParams]);\n\n\treturn (\n\t\t\n\t\t\t{(promote) => (\n\t\t\t\t \t{\n\t\t\t\t\t\tif (values.statusId < 0) {\n\t\t\t\t\t\t\tsetError(true);\n\t\t\t\t\t\t\tsetSubmitting(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpromote.request(PromoteDirection.PD_NEXT, pet.id, { confirmChanges: true, forceStatusId: values.statusId })\n\t\t\t\t\t\t\t\t.then((response: StatusResponse | void) => {\n\t\t\t\t\t\t\t\t\tif (!response) return;\n\n\t\t\t\t\t\t\t\t\tif (response.currentStatus && response.code === PromoteResponseCode.Success) {\n\t\t\t\t\t\t\t\t\t\tonChangeStatus(response.currentStatus);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\talertMessage(MessageType.warning, response.message);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tmodal.close();\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch((error: string) => alertMessage(MessageType.error, error))\n\t\t\t\t\t\t\t\t.finally(() => setSubmitting(false));\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tinitialValues={initialValues}\n\t\t\t\t>\n\t\t\t\t\t{(formikBag: FormikProps) => (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t formikBag.handleSubmit()}\n\t\t\t\t\t\t\t\tonCancel={() => {\n\t\t\t\t\t\t\t\t\tmodal.close();\n\t\t\t\t\t\t\t\t\tformikBag.resetForm();\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tokText=\"Save\"\n\t\t\t\t\t\t\t\tcancelText=\"Cancel\"\n\t\t\t\t\t\t\t\tokButtonProps={{ loading: formikBag.isSubmitting }}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, id)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twithSingleDefault\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{error && }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t)}\n\t\t
\n\t);\n};\n","import * as React from 'react';\n\nimport Checkbox from 'antd/lib/checkbox';\n\nimport { Pet } from '@app/objects/Pet';\nimport { OldPetHistoryChange } from '@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetHistoryChange';\n\ninterface OwnProps {\n\titem: Pet;\n\tonChange: (isCheck: boolean, isItems: boolean) => void;\n}\n\nexport const HistoryChangeList: React.FC = (props: OwnProps) => {\n\tconst {\n\t\titem,\n\t\tonChange,\n\t} = props;\n\tconst [isChecked, setIsChecked] = React.useState(false);\n\tconst [isItems, setIsItems] = React.useState(false);\n\n\tReact.useEffect(() => {\n\t\tonChange(isChecked, isItems);\n\t}, [isChecked, isItems]);\n\n\treturn (\n\t\t<>\n\t\t\t setIsItems(isItems)}\n\n\t\t\t\tfallback={null}\n\t\t\t/>\n\t\t\t{isItems\n\t\t\t\t? (\n\t\t\t\t\t setIsChecked(!isChecked)}\n\t\t\t\t\t\tstyle={{ fontWeight: 'normal', marginTop: 10 }}\n\t\t\t\t\t>\n\t\t\t\t\t\tConfirm changes reviewed\n\t\t\t\t\t\n\t\t\t\t) : null }\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { bindActionCreators } from 'redux';\n\nimport Alert from 'antd/lib/alert';\nimport { EditOutlined } from '@ant-design/icons';\n\nimport { Formik, FormikProps, useFormikContext } from 'formik';\n\nimport Button from '@common/react/components/Forms/Button';\n\nimport { Pet, PetPrice } from '@app/objects/Pet';\nimport { CurrentStatus } from '@app/objects/CurrentStatus';\nimport { ApplicationState } from '@app/store';\nimport { UserRole } from '@app/objects/User';\n\nimport { StatusComponent } from '@app/components/UI/Status/StatusComponent';\nimport { SpecialServicesList } from '@app/components/UI/Status/SpecialServicesList';\nimport { StatusChangeComponent, StatusResponse } from '@app/components/UI/Status/StatusChangeComponent';\nimport { PromoteDirection, PromoteResponseCode } from '@app/components/UI/Status/PetStatusButton';\n\nimport { alertMessage, MessageType } from '@app/utilities/alert';\nimport {\n\tgetNewServicesArray,\n\tgetCurrentServices,\n\trestorePrices,\n\tExtraProps,\n} from '@app/utilities/services';\nimport { ModalControls, useModal } from '@app/hooks/Editors/useModal';\nimport { ForceStatusForm } from '@app/components/UI/Status/StatusModal/SpecificContentComponents/ForceStatusForm';\nimport { HistoryChangeList } from '@app/components/Pages/PetEditor/HistoryChangeList';\nimport { activePermission, Permission } from '@app/objects/Permission';\nimport { TriggerAction, TriggerEvent } from '@app/objects/TriggerStatus';\nimport { gePetStatusTriggerActionCreators } from '@app/store/PetTriggers';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { allowAdd } from '@app/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/Services';\nimport {\n\tConfirmMessage,\n\ttoUpdateMessage,\n\tUpdatePetMessage,\n} from '@app/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/UrnForm';\nimport { useRequest } from '@app/hooks/useRequest';\n\ninterface ComponentProps {\n\tonChangeStatus: (response: CurrentStatus) => void;\n\tonRefresh: (petId: number, services: Array) => void;\n\tonUrnRefresh: (services: Array) => void;\n\tdisabled?: boolean;\n}\n\ninterface CurrentStatusComponentProps {\n\tpet: Pet,\n\tonChangeStatus: (response: CurrentStatus) => void,\n\tisConfirm?: boolean,\n\tmodal: ModalControls,\n\tdisabled?: boolean,\n}\n\ninterface ServiceComponentProps {\n\tpet: Pet;\n\tonRefresh: (petId: number, services: Array) => void;\n\tonUrnRefresh: (services: Array) => void;\n\tservices: Array;\n\tfieldName?: string;\n}\n\ninterface FormValues {\n\tservices: Array;\n}\n\nconst CurrentStatusComponent: React.FC = (props: CurrentStatusComponentProps) => {\n\tconst {\n\t\tpet, onChangeStatus, isConfirm, modal, disabled,\n\t} = props;\n\tconst { currentStatus } = pet;\n\n\tconst login = useSelector((state: ApplicationState) => state.login);\n\tconst withControls = login.user?.role === UserRole.Admin || login.user?.role === UserRole.Crematory;\n\tconst withNext = Boolean(currentStatus?.nextStatusId);\n\tconst withPrevious = Boolean(currentStatus?.previousStatusId);\n\tconst canChangeStatus = activePermission(login.user, Permission.ChangeStatus);\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t

Current status

\n\t\t\t
\n\n\t\t\t\n\t\t\t\t{(promote) => (\n\t\t\t\t\t {\n\t\t\t\t\t\t\tpromote.request(direction, pet.id, { confirmChanges: isConfirm })\n\t\t\t\t\t\t\t\t.then((response: StatusResponse | void) => {\n\t\t\t\t\t\t\t\t\tif (!response) return;\n\n\t\t\t\t\t\t\t\t\tif (response.currentStatus && (response.code === PromoteResponseCode.Success\n\t\t\t\t\t\t\t\t\t\t|| pet.currentStatus?.statusId !== response.currentStatus?.statusId)) {\n\t\t\t\t\t\t\t\t\t\tonChangeStatus(response.currentStatus);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\talertMessage(MessageType.warning, response.message);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch((error: string) => alertMessage(MessageType.error, error));\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tloading={promote.isLoading}\n\t\t\t\t\t\twithControls={withControls && canChangeStatus}\n\t\t\t\t\t\twithNext={withNext}\n\t\t\t\t\t\twithPrevious={withPrevious}\n\t\t\t\t\t\tdisabled={disabled || !isConfirm}\n\t\t\t\t\t\taction={login.user?.role === UserRole.Admin && canChangeStatus\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t modal.open() : undefined}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\n\t\t
\n\t);\n};\ninterface TValues {\n\ttoConfirm: Array,\n\tid: number;\n\n\ttoSelect: Array;\n}\n\nconst submit = (\n\tvalues: TValues,\n\tsetSubmitting: (isSubmitting: boolean) => void,\n\tupdatePet,\n\tupdateServices,\n\tonChange: (services: Array) => void,\n) => {\n\tfunction update(list: Array): Promise {\n\t\tconst data = list.map(toUpdateMessage);\n\n\t\treturn updatePet.reload({ id: values.id, updateServices: data });\n\t}\n\n\tfunction confirm(list: Array): Promise {\n\t\treturn updateServices.reload({ services: list })\n\t\t\t.then((res) => onChange(res as Array));\n\t}\n\n\tsetSubmitting(true);\n\tlet task: Promise = Promise.resolve();\n\n\tif (values.toSelect.length) {\n\t\ttask = update(values.toSelect)\n\t\t\t.then(() => confirm(values.toConfirm));\n\t} else if (values.toConfirm.length) {\n\t\ttask = confirm(values.toConfirm);\n\t}\n\n\ttask\n\t\t.finally(() => setSubmitting(false));\n};\n\nconst ServiceComponent = (props: ServiceComponentProps) => {\n\tconst { pet, services, onRefresh } = props;\n\tconst updatePet = useRequest('updatePet', undefined, { requestOnMount: false });\n\tconst updateServices = useRequest, ConfirmMessage>('updateServices', undefined, { requestOnMount: false });\n\n\treturn (\n\t\t {\n\t\t\t\tconst allArray = getNewServicesArray(services, values);\n\t\t\t\tif (props.fieldName?.toLowerCase() !== 'urns') {\n\t\t\t\t\tupdateServices.reload({ services: allArray.changed })\n\t\t\t\t\t\t.then((items: Array | void) => {\n\t\t\t\t\t\t\tif (!items) return;\n\n\t\t\t\t\t\t\tonRefresh(pet.id, restorePrices(services, allArray.unchanged.concat(items)));\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.finally(() => setSubmitting(false));\n\t\t\t\t} else {\n\t\t\t\t\tconst toSelect = values.services.filter((i) => i.toSelect);\n\t\t\t\t\tconst data = {\n\t\t\t\t\t\tid: pet.id,\n\t\t\t\t\t\ttoSelect,\n\t\t\t\t\t\ttoConfirm: allArray.changed,\n\t\t\t\t\t};\n\t\t\t\t\tsubmit(data, setSubmitting, updatePet, updateServices, props.onUrnRefresh);\n\t\t\t\t}\n\t\t\t}}\n\t\t\tenableReinitialize\n\t\t>\n\t\t\t{(formik: FormikProps) => (\n\t\t\t\t<>\n\t\t\t\t\t {\n\t\t\t\t\t\t\tconst newValues = formik.values.services.map((item: PetPrice) => {\n\t\t\t\t\t\t\t\tif (item.id === service.id) return service;\n\n\t\t\t\t\t\t\t\treturn item;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tformik.setFieldValue('services', newValues);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tfieldName={props.fieldName}\n\t\t\t\t\t/>\n\t\t\t\t\t
\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tupdatePet.error ?? updateServices.error ? (\n\t\t\t\t\t\t\t\t event.stopPropagation()}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t formik.submitForm()}\n\t\t\t\t\t\t\tloading={formik.isSubmitting}\n\t\t\t\t\t\t\tdisabled={!formik.values.services.some((i) => i.completedCount === i.count)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tSave\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t)}\n\t\t\n\t);\n};\n\nexport const OldPetStatusHistory: React.FC = ({\n\tonRefresh, onChangeStatus, disabled, onUrnRefresh,\n}) => {\n\tconst modal = useModal(false);\n\tconst { values } = useFormikContext();\n\tconst {\n\t\tcurrentStatus, crematoryId, serviceType, priceType,\n\t} = values;\n\tconst dispatch = useDispatch();\n\tconst action = bindActionCreators(gePetStatusTriggerActionCreators(), dispatch);\n\tconst statusOrders = useSelector((state: ApplicationState) => state.statusOrders.items);\n\tconst needUrnsConfirmed = React.useMemo(() => Boolean(statusOrders.list.find((i) =>\n\t\t(currentStatus?.statusId === i.id && i.triggers.find((t) => t.event === TriggerEvent.OnWillLeave))\n\t\t|| (currentStatus?.nextStatusId === i.id && i.triggers.find((t) => t.event === TriggerEvent.OnWillEnter)))), [statusOrders, currentStatus]);\n\tconst [isStatusChanged, setIsStatusChanged] = React.useState(false);\n\n\tconst params = React.useMemo(() => ({\n\t\tfilters: {\n\t\t\tcrematoryId,\n\t\t\tserviceType,\n\t\t\tpriceType,\n\t\t\ttrigger: [TriggerAction.UrnPopup],\n\t\t},\n\t}), [serviceType, priceType, crematoryId]);\n\n\tReact.useEffect(() => {\n\t\taction.request(params);\n\t}, [params]);\n\n\tconst [isConfirm, setIsConfirm] = React.useState(true);\n\n\tconst services = getCurrentServices(values);\n\tconst urns = React.useMemo(() => values.urns.filter((i) => i.done !== true && allowAdd(i.entry, i.node, i.nodeId) && !i.removed && i.id > 0), [values.urns]);\n\n\treturn (\n\t\t
\n\t\t\t{\n\t\t\t\tcurrentStatus\n\t\t\t\t\t? (\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tonChangeStatus(response);\n\t\t\t\t\t\t\t\tsetIsStatusChanged(true);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tisConfirm={isConfirm}\n\t\t\t\t\t\t\tmodal={modal}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : null\n\t\t\t}\n\t\t\t{\n\t\t\t\tservices.length\n\t\t\t\t\t? (\n\t\t\t\t\t\t\n\t\t\t\t\t) : null\n\t\t\t}\n\t\t\t{\n\t\t\t\tneedUrnsConfirmed && urns.length\n\t\t\t\t\t? (\n\t\t\t\t\t\t\n\t\t\t\t\t) : null\n\t\t\t}\n\t\t\t{!isStatusChanged && (\n\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetIsConfirm((isCheck && isItems) || !isItems);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t
\n\t\t\t)}\n\n\t\t\t{modal.state ? () : null }\n\t\t
\n\t);\n};\n","import * as Yup from 'yup';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport {\n\tidValidator,\n\tstringValidator,\n\temailValidator,\n\tpositiveNumberValidator,\n\tenumValidator, phoneValidator,\n} from '@app/utilities/validators';\nimport { PriceKind, PriceType } from '@app/objects/Price';\nimport { DeliveryType, PetPrice } from '@app/objects/Pet';\nimport { CrematoryServiceTypePreferences } from '@app/objects/Crematory';\nimport { allowAdd } from '@app/components/Pages/ClinicPetEditor/ClinicPetsComponents/StoreEntriesModal/StoreEntriesModal';\nimport { DeliveryManager } from '@app/hooks/Delivery/useDeliveryManager';\n\nconst isClinicDelivery = (deliveryType: DeliveryType) => deliveryType === DeliveryType.Clinic;\n\nconst urnSchema = Yup.array().of(\n\tYup.object().shape({\n\t\tcount: Yup.number().when('done', {\n\t\t\tis: (val) => val === false,\n\t\t\tthen: () => Yup.number().min(1, 'Count should be a positive value'),\n\t\t})\n\t\t\t.required('Count is required filed')\n\t\t\t.integer('Count quantity should be an integer value'),\n\t\tid: Yup.number().when(['entry', 'nodeId', 'removed'], {\n\t\t\tis: (entry, nodeId, removed) => !removed && !allowAdd(entry, nodeId),\n\t\t\tthen: () => Yup.number().max(-3, 'Not all parameters for the urn are selected'),\n\t\t}),\n\t}),\n);\n\nexport type DeliveryProvider = (type: Nullable, id: Nullable) => Nullable;\n\ninterface ValidationSchemaConfig {\n\tpreferences: CrematoryServiceTypePreferences;\n\tmanager: DeliveryManager;\n\tprovider: DeliveryProvider;\n\tcountry?: string;\n}\n\nfunction requireDeliveryAddress(config: ValidationSchemaConfig, type: Nullable, id: Nullable): boolean {\n\tconst manager = config.manager;\n\tconst provider = config.provider;\n\tconst value = provider(type, id);\n\n\treturn !manager.isNone(value) && !manager.isPickup(value);\n}\n\n/**\n * Create pet validation schema based on crematory configuration\n * @param {ValidationSchemaConfig} config - crematory configuration\n * @returns Yup.object() - Yup validation schema for object\n */\nexport const getValidationSchema = (config: ValidationSchemaConfig) => Yup.object().shape({\n\tcrematoryId: idValidator('Crematory'),\n\n\townerFirstName: Yup.string().nullable(),\n\townerLastName: stringValidator('Owner last name'),\n\townerEmail: emailValidator('Owner email', false),\n\townerPhone: phoneValidator('Owner phone', false, config.country),\n\townerPhone2: phoneValidator('Owner phone 2', false, config.country),\n\n\tname: stringValidator('Pet name'),\n\tpetSpecieId: idValidator('Species'),\n\tpetBreedId: idValidator('Pet breed'),\n\tclinicId: Yup.number()\n\t\t.when('priceType', {\n\t\t\tis: (priceType) => +priceType === PriceType.Wholesale,\n\t\t\tthen: () => idValidator('Clinic'),\n\t\t\totherwise: () => Yup.number().nullable(),\n\t\t}),\n\treceivedDate: positiveNumberValidator('Received date'), // Less than now?\n\treportedWeight: positiveNumberValidator('Reported weight'),\n\tactualWeight: Yup.number().min(0, 'Actual Weight should not be negative'),\n\tgenderId: idValidator('Gender'),\n\n\tdeliveryType: enumValidator('Delivery type'),\n\tdeliveryAddress: Yup\n\t\t.string()\n\t\t.when(['deliveryType', 'deliveryTypeId'], {\n\t\t\tis: (type, id) => requireDeliveryAddress(config, type, id),\n\t\t\tthen: () => stringValidator('Delivery address'),\n\t\t}),\n\tdeliveryCity: Yup\n\t\t.string()\n\t\t.when(['deliveryType', 'deliveryTypeId'], {\n\t\t\tis: (type, id) => requireDeliveryAddress(config, type, id),\n\t\t\tthen: () => stringValidator('Delivery city'),\n\t\t}),\n\tdeliveryStateId: Yup\n\t\t.number()\n\t\t.when(['deliveryType', 'deliveryTypeId'], {\n\t\t\tis: (type, id) => requireDeliveryAddress(config, type, id),\n\t\t\tthen: () => Yup\n\t\t\t\t.number()\n\t\t\t\t.min(1, 'Delivery State is required')\n\t\t\t\t.required('Delivery State is required'),\n\t\t\totherwise: () => Yup.number().nullable(),\n\t\t}),\n\tdeliveryZip: Yup\n\t\t.string()\n\t\t.when(['deliveryType', 'deliveryTypeId'], {\n\t\t\tis: (type, id) => requireDeliveryAddress(config, type, id),\n\t\t\tthen: () => stringValidator('Delivery zip'),\n\t\t}),\n\tdeliveryClinicId: Yup\n\t\t.number()\n\t\t.nullable()\n\t\t.when(['deliveryType', 'deliveryTypeId'], {\n\t\t\tis: (type, id) => config.manager.isClinic(config.provider(type, id)),\n\t\t\tthen: () => idValidator('Delivery clinic'),\n\t\t}),\n\turns: Yup.array().when({\n\t\tis: (val: Array) => val.filter((i) => !i.removed).length, // check the length of urns - only !removed urn\n\t\tthen: () => urnSchema, // if urns.length > 0 - simple validation\n\t\totherwise: () => Yup.array().when('priceType', { // if urns.length === 0 - check the requiresUrn flag in crematory preferences\n\t\t\tis: (priceType: PriceType) =>\n\t\t\t\t(priceType === PriceType.Retail ? config.preferences.retailRequiresUrn : config.preferences.wholesaleRequiresUrn),\n\t\t\tthen: () => Yup.array().when({ // if requiresUrn === true - validate min length of urns\n\t\t\t\tis: (val) => val.length > 0, // find min length\n\t\t\t\tthen: () => urnSchema.min(\n\t\t\t\t\tYup.ref('urns'), // take urns.length because we already check array for removed urns & ignore it - [removed, removed] === []\n\t\t\t\t\t'For this combination of service and price types required at least one urn',\n\t\t\t\t),\n\t\t\t\totherwise: () => urnSchema.min(\n\t\t\t\t\t1, // take 1 because urn.length === 0\n\t\t\t\t\t'For this combination of service and price types required at least one urn',\n\t\t\t\t),\n\t\t\t}),\n\t\t\totherwise: () => urnSchema, // if requiresUrn === false - no validate urns length\n\t\t}),\n\t}),\n\tservices: Yup.array().of(\n\t\tYup.object().shape({\n\t\t\tcount: Yup.number()\n\t\t\t\t.required('Count is required filed')\n\t\t\t\t.min(0, 'Count should be a positive value')\n\t\t\t\t.integer('Count quantity should be an integer value'),\n\t\t\tvalue: Yup.number().when(['price.priceKind'], {\n\t\t\t\tis: (priceKind: PriceKind) => priceKind !== PriceKind.Discount && priceKind !== PriceKind.UrnPrice,\n\t\t\t\tthen: () => Yup.number().min(0, 'Cost should be a positive value'),\n\t\t\t}).required('Cost is required filed'),\n\t\t}),\n\t),\n\tinternalIdNum: Yup.string().when('id', {\n\t\tis: () => config.preferences?.showInternalId && config.preferences?.requireInternalId,\n\t\tthen: () => stringValidator('Internal ID'),\n\t}),\n});\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport {\n\tFieldHelperProps,\n\tFieldInputProps,\n\tuseField,\n\tuseFormikContext,\n} from 'formik';\nimport { v4 } from 'uuid';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { PetPrice, ServiceType } from '@app/objects/Pet';\n\nimport {\n\tSpecialServiceActions,\n\tSpecialServiceList,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/SpecialServiceList';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport {\n\tPriceType,\n\tPrice,\n\tPriceKind,\n} from '@app/objects/Price';\nimport { useRequest } from '@app/hooks/useRequest';\nimport { ApplicationState } from '@app/store';\nimport { SectionContainer } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer';\n\ninterface SpecialServiceSectionProps {\n\tprices: Array;\n}\n\nfunction getActions(field: FieldInputProps>, form: FieldHelperProps>): SpecialServiceActions {\n\tfunction setValue(value: Array) {\n\t\tform.setValue(value, false);\n\t}\n\n\treturn {\n\t\tadd: (items: Array) => {\n\t\t\tconst values = [...field.value, ...items];\n\n\t\t\tsetValue(values);\n\t\t},\n\t\tupdate: (clientId: string, value: Partial) => {\n\t\t\tconst values = field.value.map((q: PetPrice) => {\n\t\t\t\tif (q.clientId === clientId) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...q,\n\t\t\t\t\t\t...value,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn q;\n\t\t\t});\n\n\t\t\tsetValue(values);\n\t\t},\n\t\tdelete: (clientId: string) => {\n\t\t\tconst values = field.value.map((q: PetPrice) => {\n\t\t\t\tif (q.clientId === clientId && !(q.done || q.completedCount > 0)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...q,\n\t\t\t\t\t\tremoved: true,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn q;\n\t\t\t}).filter((q: PetPrice) => !(q.removed && q.id < 0));\n\n\t\t\tsetValue(values);\n\t\t},\n\t};\n}\n\ninterface PetData {\n\tcrematoryId: number;\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tclinicId?: Nullable;\n}\n\ninterface ServiceProps {\n\tpet: PetData;\n\tpendingOnly: boolean;\n\tdefaultOnly: boolean;\n}\n\ninterface ProviderProps {\n\tonLoad: (value: boolean) => void;\n}\n\n// eslint-disable-next-line sonarjs/cognitive-complexity\nconst DefaultServicesProvider: React.VFC = ({ onLoad }: ProviderProps) => {\n\tconst { values, setFieldValue, initialValues } = useFormikContext();\n\tconst activeCrematoryId = useSelector((state: ApplicationState) => state.login.user?.activeCrematoryId);\n\tconst noActiveCrematory = values.id > 0 ? initialValues.crematoryId : -1;\n\tconst isActiveCrematory = !activeCrematoryId ? noActiveCrematory : activeCrematoryId;\n\tconst availableServices = useRequest, ServiceProps>('availableSpecialServiceList', undefined, { requestOnMount: false });\n\tconst prevCrematoryId = React.useRef(isActiveCrematory);\n\tconst prevClinicId = React.useRef | undefined>(values.clinicId);\n\tconst prevServiceType = React.useRef>(values.id > 0 ? initialValues.serviceType : null);\n\tconst prevPriceType = React.useRef>(values.id > 0 ? initialValues.priceType : null);\n\tconst equal = values.crematoryId !== prevCrematoryId.current\n\t\t|| values.clinicId !== prevClinicId.current\n\t\t|| values.serviceType !== prevServiceType.current\n\t\t|| values.priceType !== prevPriceType.current;\n\tconst changedOnlyClinicRef = React.useRef(false);\n\n\tReact.useEffect(() => {\n\t\tconst cur = {\n\t\t\tserviceType: values.serviceType,\n\t\t\tpriceType: values.priceType,\n\t\t\tcrematoryId: values.crematoryId,\n\t\t\tclinicId: values.clinicId,\n\t\t};\n\t\tchangedOnlyClinicRef.current = values.clinicId !== prevClinicId.current\n\t\t&& values.crematoryId === prevCrematoryId.current\n\t\t&& values.serviceType === prevServiceType.current\n\t\t&& values.priceType === prevPriceType.current;\n\n\t\tif (equal) {\n\t\t\tprevCrematoryId.current = values.crematoryId;\n\t\t\tprevServiceType.current = values.serviceType;\n\t\t\tprevPriceType.current = values.priceType;\n\t\t\tprevClinicId.current = values.clinicId;\n\n\t\t\tavailableServices.reload({\n\t\t\t\tpet: cur,\n\t\t\t\tpendingOnly: values.id > 0,\n\t\t\t\tdefaultOnly: true,\n\t\t\t});\n\t\t}\n\t}, [values.crematoryId, values.clinicId, values.serviceType, values.priceType]);\n\n\tReact.useEffect(() => {\n\t\tif (availableServices.item !== null) {\n\t\t\tconst services = availableServices.item.map((item: Price) => {\n\t\t\t\tconst count = item.batchCount || 1;\n\t\t\t\tconst extra = Math.max(count - item.batchCount, 0) * item.value;\n\n\t\t\t\treturn {\n\t\t\t\t\tid: -1,\n\t\t\t\t\tclientId: v4(),\n\t\t\t\t\tdeleted: false,\n\n\t\t\t\t\tpriceId: item.id,\n\t\t\t\t\tprice: item,\n\n\t\t\t\t\tpet: null,\n\t\t\t\t\tpetId: values.id,\n\n\t\t\t\t\tcount,\n\t\t\t\t\tcompletedCount: 0,\n\t\t\t\t\tdone: false,\n\n\t\t\t\t\tvalue: item.batchPrice + extra,\n\t\t\t\t\textra,\n\n\t\t\t\t\tname: item.specialService?.name ?? 'Special Service',\n\t\t\t\t\teditor: null,\n\t\t\t\t\teditorId: null,\n\t\t\t\t};\n\t\t\t});\n\t\t\tconst old = (values.services ?? []).filter((s: PetPrice) => s.id > 0).map((q: PetPrice) => {\n\t\t\t\tif (changedOnlyClinicRef.current && q.price?.priceKind === PriceKind.Discount) return q;\n\n\t\t\t\treturn { ...q, removed: true };\n\t\t\t});\n\n\t\t\tsetFieldValue('services', [...services, ...old], false);\n\t\t}\n\t}, [availableServices.item]);\n\tReact.useEffect(() => onLoad(availableServices.loading), [availableServices.loading]);\n\n\treturn null;\n};\n\nexport const SpecialServiceSection: React.FC = ({ prices }: SpecialServiceSectionProps) => {\n\tconst [loading, setLoading] = React.useState(false);\n\tconst [field, , form] = useField>('services');\n\tconst actions: SpecialServiceActions = getActions(field, form);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport {\n\tCoreSelect,\n\tCoreSelectProps,\n} from '@app/components/UI/Inputs/CoreSelect';\nimport { PickupServicesSelectFilter } from '@app/store/SelectList/SelectsInterfaces';\nimport { SelectRequestParams } from '@app/store/SelectList/ListActions';\nimport { ServiceType } from '@app/objects/Pet';\nimport { PriceKind, PriceType } from '@app/objects/Price';\n\ninterface BaseProps {\n\tserviceType: ServiceType;\n\tpriceType: PriceType;\n\tcrematoryId?: number;\n\tclinicId?: Nullable;\n\tavailableForPricing?: boolean;\n\n\tdisabled?: boolean;\n\tclassName?: string;\n\tselectClassName?: string;\n\tactiveClassName?: string;\n\n\tpickDefault?: (entity) => number;\n\tonDeselect?: (id: number) => void;\n\tonSelect?: (id: number) => void;\n\n\tlabel?: string;\n\tplaceholder?: string;\n\tallowClear?: boolean;\n}\n\ninterface SingleProps extends BaseProps {\n\tvalue?: number;\n\tonChange: (value?: number) => void;\n\tmultiple?: false;\n}\n\ninterface MultipleProps extends BaseProps {\n\tvalue?: Array;\n\tonChange: (value?: Array) => void;\n\tmultiple: true;\n}\n\ntype OwnProps = SingleProps | MultipleProps;\n\ninterface RequestParams extends SelectRequestParams {\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tclinicId: Nullable;\n}\n\nfunction isEmptyValue(value?: number | Array) {\n\tif (value === undefined) return true;\n\tif (Array.isArray(value)) return value.length === 0;\n\n\treturn value === -1;\n}\n\nexport const PickupServicePricesSelect: React.FC = (props: OwnProps): JSX.Element => {\n\tconst [query, setQuery] = React.useState('');\n\tconst filters: Nullable = React.useMemo(() => ({\n\t\tname: query,\n\t\tsearch: query,\n\t\tpriceKind: [PriceKind.PickupPrice],\n\t\tcrematoryId: props.crematoryId,\n\t}), [props.crematoryId, query]);\n\n\tconst reqParams = React.useMemo(() => ({\n\t\tpriceType: props.priceType,\n\t\tserviceType: props.serviceType,\n\t\tclinicId: props.clinicId,\n\t\tavailableForPricing: props.availableForPricing,\n\t}), [props.priceType, props.serviceType, props.clinicId, props.availableForPricing]);\n\n\tconst properties: CoreSelectProps = {\n\t\t...props,\n\t\tonSearch: setQuery,\n\t\tfilters,\n\t\treqParams,\n\t\tshouldPickDefault: () => false,\n\t\tisEmptyValue,\n\t\tstore: 'pickupServicePrices',\n\t};\n\n\treturn ;\n};\n","import * as React from 'react';\nimport { bindActionCreators } from 'redux';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useTranslation } from 'react-i18next';\nimport { v4 } from 'uuid';\nimport { Field, FieldProps, useFormikContext } from 'formik';\nimport { Col, Row } from 'antd/lib/grid';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\n\nimport { DiscountSelect } from '@app/components/UI/Inputs/DiscountSelect';\nimport {\n\tDiscountType,\n\tPrice,\n\tPriceKind,\n\tPriceType,\n} from '@app/objects/Price';\nimport {\n\tTextAreaResizeComponent,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Components/Controls/TextAreaComponent';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { RegionSelect } from '@app/components/UI/Inputs/Address/RegionSelect';\nimport { addressService } from '@app/services/AddressService';\nimport { PostalCodeAutocomplete } from '@app/components/UI/Inputs/Address/PostalCodeAutocomplete';\nimport { ApplicationState } from '@app/store';\nimport { UserRole } from '@app/objects/User';\nimport { isPickDefault } from '@app/store/SelectList/SelectsInterfaces';\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { Country } from '@app/objects/Country';\nimport { PhoneInput } from '@app/components/UI/Inputs/PhoneInput';\nimport { getActionCreators } from '@app/store/SelectList/ListActions';\nimport { selectListRequest } from '@app/store/SelectList/SelectListRequests';\nimport { PostalCode } from '@app/objects/PostalCode';\nimport { PetPrice } from '@app/objects/Pet';\nimport { PickupServicePricesSelect } from '@app/components/UI/Inputs/PickupServicePricesSelect';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { SectionContainer } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer';\nimport { ControlLabel } from '@app/components/UI/ControlLabel/ControlLabel';\n\ninterface OwnerInfoSectionProps {\n\tcountry?: Nullable;\n\tcalculatedPrice: IPriceStack;\n}\n\nfunction setDisabledOptions(calculatedPrice: IPriceStack, item: Price) {\n\tconst basePrice = calculatedPrice.base?.value ?? 0;\n\tconst services = calculatedPrice.services.filter((item) => !item.removed && item.price?.specialServiceId);\n\tconst sum = services.reduce((acc: number, current) => acc + current.value, basePrice);\n\n\tif (item.unit === DiscountType.Percentage) return false;\n\n\treturn item.value > sum;\n}\n\nfunction toPetPrice(price: Price, petId: number, oldPrice?: PetPrice): PetPrice {\n\treturn {\n\t\tid: oldPrice?.id ?? -1,\n\t\tclientId: oldPrice?.clientId ?? v4(),\n\n\t\tpriceId: price.id,\n\t\tprice,\n\n\t\tpet: null,\n\t\tpetId,\n\n\t\tcount: 1,\n\t\tcompletedCount: 0,\n\t\tdone: false,\n\n\t\tvalue: price.value,\n\t\textra: price.extra,\n\t\ttax: 0,\n\t\tdiscount: 0,\n\n\t\tbatchCount: price.batchCount,\n\t\tbatchPrice: price.batchPrice,\n\n\t\tname: price.name ?? 'Pickup Service',\n\n\t\teditor: null,\n\t\teditorId: null,\n\n\t\tpickupService: null,\n\t\tpickupServiceId: price.pickupServiceId,\n\n\t\tnode: null,\n\t\tnodeId: null,\n\n\t\tnote: '',\n\t};\n}\n\nfunction getServices(items: Array, prices: Array, petId: number, id?: number) {\n\tconst price = prices.find((i) => i.id === id);\n\tconst pickUpService = items.find((item) => item.price?.priceKind === PriceKind.PickupPrice);\n\tlet services: Array = [];\n\n\tif (pickUpService) {\n\t\t// change already exists service\n\t\titems.forEach((item: PetPrice) => {\n\t\t\tif (item.price?.priceKind === PriceKind.PickupPrice) {\n\t\t\t\tif (id) {\n\t\t\t\t\tservices.push(toPetPrice(price, petId, pickUpService));\n\t\t\t\t} else if (!id && item.id > 0) {\n\t\t\t\t\tservices.push({ ...item, removed: true });\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tservices.push(item);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tservices = [...items, toPetPrice(price, petId)]; // add to array new service\n\t}\n\n\treturn services;\n}\n\nexport const OwnerInfoSection: React.FC = (props: OwnerInfoSectionProps) => {\n\tconst { t } = useTranslation();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst details = addressService.provide(props.country);\n\tconst disabled = user?.role !== UserRole.Admin && (!user?.activeCrematoryId || user.activeCrematoryId <= 0);\n\tconst { values } = useFormikContext();\n\tconst [country, setCountry] = React.useState>(null);\n\tconst crematory = useCrematory(values.crematoryId);\n\tconst clinicsStore = useSelector((state: ApplicationState) => state.selects.clinics.items);\n\tconst countryStore = useSelector((state: ApplicationState) => state.selects.countries.items);\n\tconst dispatch = useDispatch();\n\tconst action = bindActionCreators(getActionCreators('countries', selectListRequest.countries), dispatch);\n\tconst prices = useSelector((state: ApplicationState) => state.selects.pickupServicePrices.items);\n\n\tReact.useEffect(() => {\n\t\tif (!countryStore.length) action.request(selectListRequest.countries.defaultFilters);\n\n\t\tif (values.priceType === PriceType.Retail || (values.priceType === PriceType.Wholesale && !values.clinicId)) {\n\t\t\tconst value = crematory?.country;\n\n\t\t\tsetCountry(countryStore.find((i) => i.alpha3 === value));\n\t\t} else {\n\t\t\tconst countryId = clinicsStore.find((i) => i.id === values.clinicId)?.countryId;\n\n\t\t\tsetCountry(countryStore.find((i) => i.id === countryId));\n\t\t}\n\t}, [values.priceType, values.clinicId, values.crematoryId, countryStore, clinicsStore]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\trender={({ field, form }: FieldProps) =>\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, val)} />}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => \t(\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, val)} />\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t fieldProps.form.setFieldValue('ownerZip', value)}\n\t\t\t\t\t\t\t\t\t\tonSelect={(value, item?: PostalCode) => {\n\t\t\t\t\t\t\t\t\t\t\tif (!item) return;\n\n\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setValues({\n\t\t\t\t\t\t\t\t\t\t\t\t...fieldProps.form.values,\n\t\t\t\t\t\t\t\t\t\t\t\townerZip: item.zip,\n\t\t\t\t\t\t\t\t\t\t\t\townerCity: item.city,\n\t\t\t\t\t\t\t\t\t\t\t\townerStateId: item.stateId,\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tcountry={details.country}\n\t\t\t\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, value)}\n\t\t\t\t\t\t\t\t\t\tcountry={country?.alpha3 ?? details.country}\n\t\t\t\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name, value);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tvalue={form.values.discountId}\n\t\t\t\t\t\t\t\t\t\tpickDefault={(store: Array) => isPickDefault(store)}\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Select Discount\"\n\t\t\t\t\t\t\t\t\t\tdisabledOptions={(item: Price) => setDisabledOptions(props.calculatedPrice, item)}\n\t\t\t\t\t\t\t\t\t\tdisabled={!form.values.crematoryId || form.values.crematoryId < 0}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t, PetFormValues>) => (\n\t\t\t\t\t\t\t\t\t i.price?.priceKind === PriceKind.PickupPrice && !i.removed)?.priceId}\n\t\t\t\t\t\t\t\t\t\tonChange={(id?: number) => {\n\t\t\t\t\t\t\t\t\t\t\tconst services = getServices(field.value, prices, values.id, id);\n\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name, services);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Select Pickup Service\"\n\t\t\t\t\t\t\t\t\t\tserviceType={values.serviceType}\n\t\t\t\t\t\t\t\t\t\tpriceType={values.priceType}\n\t\t\t\t\t\t\t\t\t\tcrematoryId={form.values.crematoryId}\n\t\t\t\t\t\t\t\t\t\tavailableForPricing={false}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { Field, FieldProps, useFormikContext, } from 'formik';\n\nimport Button from 'antd/lib/button';\nimport Select from 'antd/lib/select';\nimport Space from 'antd/lib/space';\nimport Popconfirm from 'antd/lib/popconfirm';\nimport { Col, Row } from 'antd/lib/grid';\nimport { EnvironmentOutlined, MailOutlined } from '@ant-design/icons';\n\nimport { Nullable, isPresent } from '@common/typescript/objects/Nullable';\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\n\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { DeliveryTypeSelect } from '@app/components/UI/Inputs/DeliveryTypes/DeliveryTypeSelect';\nimport { DeliveryType, Pet, ServiceType } from '@app/objects/Pet';\nimport { SectionContainer } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer';\nimport { Clinic, ClinicListInfo, getDefaultClinic, } from '@app/objects/Clinic';\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { ApplicationState } from '@app/store';\nimport { RegionSelect } from '@app/components/UI/Inputs/Address/RegionSelect';\nimport { addressService } from '@app/services/AddressService';\nimport { PostalCodeAutocomplete } from '@app/components/UI/Inputs/Address/PostalCodeAutocomplete';\nimport { TrackChange } from '@app/smart components/Tracker/TrackChange';\nimport {\n\tTextAreaResizeComponent,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Components/Controls/TextAreaComponent';\nimport { setStatusColor } from '@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetEmailLog';\nimport { MailStatus } from '@app/objects/EmailLog';\nimport { alertMessage, MessageType } from '@app/utilities/alert';\nimport { request } from '@app/components/Api';\nimport { bindItemActionCreators, getItemActionCreators } from '@app/store/Item';\nimport { PostalCode } from '@app/objects/PostalCode';\nimport { ClinicCrematory } from '@app/objects/ClinicCrematory';\nimport { Price, PriceKind, PriceType } from '@app/objects/Price';\nimport { FormikField } from '@app/components/Forms/FormikField';\nimport { DeliveryEntitySelect } from '@app/components/UI/Inputs/DeliveryTypes/DeliveryEntitySelect';\nimport { DeliveryManager, useDeliveryManager } from '@app/hooks/Delivery/useDeliveryManager';\nimport { useCrematoryFeatures } from '@app/hooks/useCrematoryFeatures';\nimport { useDeliveryTypes } from '@app/hooks/Delivery/useDeliveryTypes';\nimport { DeliveryTypeEntity, toSystemType, toDeliveryType } from '@app/objects/DeliveryType';\nimport { CrematoryListInfo, CrematoryServiceTypePreferences } from '@app/objects/Crematory';\n\nfunction toNumber(value: number | string | null | undefined): number {\n\tif (value === null || value === undefined) return 0;\n\n\tconst cast = +value;\n\tif (Number.isNaN(cast) || cast === 0) return 0;\n\n\treturn cast;\n}\n\ntype SetValue = (key: K, value: PetFormValues[K]) => void;\n\nfunction setDeliveryAddress(setValue: SetValue, clinicId: number, clinics: Array): void {\n\tconst clinic = clinics.find((item: ClinicListInfo) => item.id === clinicId);\n\tconst stateId = clinic?.crematories.find((i: ClinicCrematory) => i.clinicId === clinicId).clinic?.stateId;\n\n\tif (clinic) {\n\t\tsetValue('deliveryAddress', clinic.streetAddress);\n\t\tsetValue('deliveryAddress2', clinic.streetAddress2);\n\t\tsetValue('deliveryZip', clinic.zip);\n\t\tsetValue('deliveryCity', clinic.city);\n\t\tsetValue('deliveryStateId', stateId ?? null);\n\t\tsetValue('deliveryClinicId', clinic.id);\n\t}\n}\n\ninterface DeliveryClinicSelectedEvent {\n\tclinicId: number;\n\tdelivery: Nullable;\n\tsetValue: SetValue;\n\tclinics: Array;\n\tmanager: DeliveryManager;\n}\n\nfunction onDeliveryClinicSelect(event: DeliveryClinicSelectedEvent): void {\n\tif (!event.manager.isClinic(event.delivery)) return;\n\n\tsetDeliveryAddress(event.setValue, event.clinicId, event.clinics);\n}\n\ninterface DeliveryTypeChangedEvent {\n\tvalue: DeliveryValue;\n\tsetValue: SetValue;\n\tvalues: PetFormValues;\n\tclinics: Array;\n\tmanager: DeliveryManager;\n}\n\nfunction onDeliveryTypeChange(event: DeliveryTypeChangedEvent): void {\n\tconst clinicId = toNumber(event.values.clinicId);\n\n\tevent.setValue('deliveryType', event.value.deliveryType);\n\tevent.setValue('deliveryTypeId', event.value.entityId);\n\n\tif (event.manager.isClinic(event.value.value) && clinicId > 0) {\n\t\tsetDeliveryAddress(event.setValue, clinicId, event.clinics);\n\t}\n\n\tif (event.manager.is(event.value.value, [DeliveryType.HomeDropOff, DeliveryType.Mail])) {\n\t\tevent.setValue('deliveryAddress', event.values.ownerAddress);\n\t\tevent.setValue('deliveryAddress2', event.values.ownerAddress2);\n\t\tevent.setValue('deliveryZip', event.values.ownerZip);\n\t\tevent.setValue('deliveryCity', event.values.ownerCity);\n\t\tevent.setValue('deliveryStateId', event.values.ownerStateId);\n\t}\n}\n\ninterface TrackClinicProps {\n\tvalue: Nullable;\n\tonChange: (value: Nullable) => void;\n}\n\nconst TrackClinic: React.FC = (props: TrackClinicProps) => {\n\tReact.useEffect(() => {\n\t\tprops.onChange(props.value);\n\t}, [props.value]);\n\n\treturn null;\n};\n\ninterface DeliverySectionProps {\n\tcountry?: Nullable;\n\tprices: Array;\n}\n\ntype ResponseMailStatus = { code: ResponseCode }\n\nenum ResponseCode {\n\tSuccess = 0,\n\tAlreadySent = 1\n}\n\nfunction onSendEmail(\n\tpetId: number,\n\tonChange: (value: boolean) => void,\n\tupdate: (store: keyof ApplicationState, data: Partial) => void,\n\tsetLoading: (value: boolean) => void,\n\tresend?: boolean,\n) {\n\tsetLoading(true);\n\trequest('sendCrematoryCoordinatesEmail', { id: petId, resend })\n\t\t.then(({ code }: ResponseMailStatus) => {\n\t\t\tif (code === ResponseCode.AlreadySent) {\n\t\t\t\tonChange(true);\n\t\t\t} else {\n\t\t\t\tupdate('pet', { id: petId, coordinatesMailStatus: MailStatus.Success });\n\t\t\t\tonChange(false);\n\t\t\t}\n\t\t})\n\t\t.catch((error: string) => alertMessage(MessageType.error, error))\n\t\t.finally(() => setLoading(false));\n}\n\ninterface DeliveryValue {\n\tdeliveryType: DeliveryType;\n\tentityId: Nullable;\n\tvalue: Nullable; // Either delivery type or entity id\n\tsource: 'DeliveryType' | 'DeliveryEntity';\n}\n\nfunction toEntity(type: DeliveryType, list: Array): Nullable {\n\tif (!list.length) return null;\n\n\tconst result = toSystemType(type);\n\tif (result === null) return null;\n\n\treturn list.find((item: DeliveryTypeEntity) => item.systemType === result).id ?? null;\n}\n\nfunction useDeliveryValue(): DeliveryValue {\n\tconst features = useCrematoryFeatures();\n\tconst { values: { deliveryType, deliveryTypeId } } = useFormikContext();\n\tconst source = features.item?.enableCustomDeliveryType ? 'DeliveryEntity' : 'DeliveryType';\n\tconst types = useDeliveryTypes();\n\n\tif (source === 'DeliveryEntity') {\n\t\treturn {\n\t\t\tsource,\n\t\t\tentityId: deliveryTypeId,\n\t\t\tdeliveryType: isPresent(deliveryTypeId)\n\t\t\t\t? toDeliveryType(types.map.get(deliveryTypeId))\n\t\t\t\t: DeliveryType.None,\n\t\t\tvalue: deliveryTypeId,\n\t\t};\n\t}\n\n\treturn {\n\t\tsource,\n\t\tentityId: toEntity(deliveryType, types.list),\n\t\tdeliveryType,\n\t\tvalue: deliveryType,\n\t};\n}\n\ninterface ClinicDeliverySetterConfig {\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tuseCustomDelivery: boolean;\n\tsetter: ReturnType>['setFieldValue'];\n\tclinic: Clinic;\n\tlink: ClinicCrematory;\n}\n\nfunction getServiceTypeName(type: ServiceType): Nullable {\n\tswitch (type) {\n\tcase ServiceType.Private: return 'Private';\n\tcase ServiceType.SemiPrivate: return 'SemiPrivate';\n\tcase ServiceType.Communal: return 'Communal';\n\tcase ServiceType.Storage: return 'Storage';\n\tcase ServiceType.ProductsOnly: return 'ProductsOnly';\n\n\tdefault: return null;\n\t}\n}\n\nfunction setClinicDeliveryType(config: ClinicDeliverySetterConfig): void {\n\tconst name = getServiceTypeName(config.serviceType);\n\tif (!name) return;\n\n\tconst preference = `default${name}DeliveryType${config.useCustomDelivery ? 'Id' : ''}`;\n\tif (config.useCustomDelivery) {\n\t\tif (!config.link) return;\n\n\t\tconst value = config.link[preference];\n\t\tconfig.setter('deliveryTypeId', value, false);\n\t} else {\n\t\tconst value = config.clinic[preference];\n\t\tconfig.setter('deliveryType', value, true);\n\t}\n}\n\ninterface CrematoryDeliverySetterConfig {\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\tuseCustomDelivery: boolean;\n\tsetter: ReturnType>['setFieldValue'];\n\tsource: CrematoryListInfo;\n}\n\nfunction getPreferenceName(serviceType: ServiceType): Nullable {\n\tswitch (serviceType) {\n\tcase ServiceType.Private: return 'private';\n\tcase ServiceType.SemiPrivate: return 'semiPrivate';\n\tcase ServiceType.Communal: return 'communal';\n\tcase ServiceType.ProductsOnly: return 'productsOnly';\n\tcase ServiceType.Storage: return 'storage';\n\n\tdefault: return null;\n\t}\n}\n\nfunction setCrematoryDeliveryType(config: CrematoryDeliverySetterConfig): void {\n\tconst property: keyof CrematoryServiceTypePreferences = `default${config.priceType === PriceType.Retail ? 'Retail' : 'Wholesale'}DeliveryType${config.useCustomDelivery ? 'EntityId' : ''}`;\n\tconst name = getPreferenceName(config.serviceType);\n\tif (!name) return;\n\n\tconst value = config.source[name][property];\n\tif (config.useCustomDelivery) {\n\t\tconfig.setter('deliveryTypeId', value, false);\n\t} else {\n\t\tconfig.setter('deliveryType', value, false);\n\t}\n}\n\ntype DefaultDeliveryProvider = () => void;\n\nexport function useDefaultDeliveryTypeProvider(): Nullable {\n\tconst features = useCrematoryFeatures();\n\tconst clinic = useSelector((state: ApplicationState) => state.clinic);\n\tconst crematories = useSelector((state: ApplicationState) => state.crematories);\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst dispatch = useDispatch();\n\tconst { values, setFieldValue } = useFormikContext();\n\n\tReact.useEffect(() => {\n\t\tif (values.clinicId === null || values.clinicId <= 0) return;\n\n\t\tconst factory = getItemActionCreators();\n\t\tdispatch(factory.loadItem('clinic', 'getClinic', values.clinicId, getDefaultClinic(), { withCrematories: true }));\n\t}, [dispatch, values.clinicId]);\n\n\treturn React.useMemo(() => {\n\t\tconst crematoryId = user?.activeCrematoryId ? user.activeCrematoryId : values.crematoryId;\n\t\tif (crematoryId < 0) return null;\n\n\t\tconst crematory = crematories.items.find((item: CrematoryListInfo) => item.id === crematoryId);\n\t\tif (!crematory) return null;\n\n\t\tif (values.priceType === PriceType.Wholesale && values.clinicId !== null && values.clinicId === clinic.item?.id) {\n\t\t\tconst link = clinic.item?.clinicCrematories?.find((item: ClinicCrematory) => item.crematoryId === crematoryId);\n\t\t\tconst clinicConfig: ClinicDeliverySetterConfig = {\n\t\t\t\tpriceType: values.priceType,\n\t\t\t\tserviceType: values.serviceType,\n\t\t\t\tuseCustomDelivery: features.item?.enableCustomDeliveryType ?? false,\n\t\t\t\tsetter: setFieldValue,\n\t\t\t\tclinic: clinic.item,\n\t\t\t\tlink,\n\t\t\t};\n\n\t\t\treturn () => setClinicDeliveryType(clinicConfig);\n\t\t}\n\n\t\tconst crematoryConfig: CrematoryDeliverySetterConfig = {\n\t\t\tpriceType: values.priceType,\n\t\t\tserviceType: values.serviceType,\n\t\t\tuseCustomDelivery: features.item?.enableCustomDeliveryType ?? false,\n\t\t\tsetter: setFieldValue,\n\t\t\tsource: crematory,\n\t\t};\n\n\t\treturn () => setCrematoryDeliveryType(crematoryConfig);\n\t}, [\n\t\tvalues.priceType,\n\t\tvalues.serviceType,\n\t\tvalues.clinicId,\n\t\tvalues.crematoryId,\n\t\tfeatures.item?.enableCustomDeliveryType,\n\t\tclinic.item,\n\t\tcrematories,\n\t\tsetFieldValue,\n\t\tuser?.activeCrematoryId,\n\t]);\n}\n\nexport const DeliverySection: React.FC = (props: DeliverySectionProps) => {\n\tconst { t } = useTranslation();\n\tconst form = useFormikContext();\n\tconst deliveryService = useDeliveryManager();\n\tconst deliveryType = useDeliveryValue();\n\tconst features = useCrematoryFeatures();\n\n\tconst clinics = useSelector((state: ApplicationState) => state.clinics).items ?? [];\n\tconst carriers = useSelector((state: ApplicationState) => state.carriers).items ?? [];\n\tconst dispatch = useDispatch();\n\tconst factory = bindItemActionCreators(dispatch);\n\n\tconst [showConfirm, setShowConfirm] = React.useState(false);\n\tconst [loading, setLoading] = React.useState(false);\n\n\tconst country = props.country ?? 'unknown';\n\tconst details = addressService.provide(country);\n\n\tconst defaultProvider = useDefaultDeliveryTypeProvider();\n\tconst previousRef = React.useRef({\n\t\tserviceType: form.values.serviceType,\n\t\tpriceType: form.values.priceType,\n\t\tclinicId: form.values.clinicId,\n\t});\n\n\tReact.useEffect(() => {\n\t\tif (form.values.id > 0 && previousRef.current.priceType === form.values.priceType && previousRef.current.serviceType === form.values.serviceType) return;\n\n\t\tpreviousRef.current.priceType = form.values.priceType;\n\t\tpreviousRef.current.serviceType = form.values.serviceType;\n\n\t\tdefaultProvider?.();\n\t}, [form.values.id, form.values.priceType, form.values.serviceType, defaultProvider]);\n\tReact.useEffect(() => {\n\t\tif (form.values.priceType !== PriceType.Wholesale) return;\n\t\tif (form.values.id > 0 && previousRef.current.clinicId === form.values.clinicId) return;\n\n\t\tpreviousRef.current.clinicId = form.values.clinicId;\n\t\tdefaultProvider?.();\n\t}, [form.values.id, form.values.clinicId, defaultProvider]);\n\n\tif (features.isLoading) return ;\n\n\treturn (\n\t\t\n\t\t\t<>\n\t\t\t\t {\n\t\t\t\t\t\tif (!features.item) return;\n\t\t\t\t\t\tif (features.item.enableCustomDeliveryType) return;\n\n\t\t\t\t\t\tconst event: DeliveryTypeChangedEvent = {\n\t\t\t\t\t\t\tvalue: deliveryType,\n\t\t\t\t\t\t\tsetValue: form.setFieldValue,\n\t\t\t\t\t\t\tvalues: form.values,\n\t\t\t\t\t\t\tclinics,\n\t\t\t\t\t\t\tmanager: deliveryService,\n\t\t\t\t\t\t};\n\t\t\t\t\t\tonDeliveryTypeChange(event);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t {\n\t\t\t\t\t\tif (!features.item) return;\n\t\t\t\t\t\tif (!features.item.enableCustomDeliveryType) return;\n\n\t\t\t\t\t\tconst event: DeliveryTypeChangedEvent = {\n\t\t\t\t\t\t\tvalue: deliveryType,\n\t\t\t\t\t\t\tsetValue: form.setFieldValue,\n\t\t\t\t\t\t\tvalues: form.values,\n\t\t\t\t\t\t\tclinics,\n\t\t\t\t\t\t\tmanager: deliveryService,\n\t\t\t\t\t\t};\n\t\t\t\t\t\tonDeliveryTypeChange(event);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t) => {\n\t\t\t\t\t\tconst deliveryClinicId = form.values.deliveryClinicId;\n\t\t\t\t\t\tconst isDeliveryNotClinicSet = deliveryClinicId === null || deliveryClinicId < 1;\n\n\t\t\t\t\t\tif (deliveryService.isClinic(deliveryType.value) && isDeliveryNotClinicSet) {\n\t\t\t\t\t\t\tsetDeliveryAddress(form.setFieldValue, value ?? -1, clinics);\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t/>\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfeatures.item?.enableCustomDeliveryType\n\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t, PetFormValues>) => (\n\t\t\t\t\t\t\t\t\t\t\t i.priceKind === PriceKind.DeliveryPrice)}\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={(value: Nullable) => form.setFieldValue(field.name, value)}\n\t\t\t\t\t\t\t\t\t\t\t\tcrematoryId={form.values.crematoryId}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t\t i.priceKind === PriceKind.DeliveryPrice)}\n\t\t\t\t\t\t\t\t\t\t\t\tonChange={(value: number) => form.setFieldValue(field.name, value)}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tdeliveryService.isClinic(deliveryType.value)\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst event: DeliveryClinicSelectedEvent = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclinicId: value,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdelivery: features.item?.enableCustomDeliveryType\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? form.values.deliveryTypeId\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: form.values.deliveryType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetValue: form.setFieldValue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclinics,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmanager: deliveryService,\n\t\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\t\tonDeliveryClinicSelect(event);\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={field.value ?? ''}\n\t\t\t\t\t\t\t\t\t\t\t\toptions={clinics.map((item: ClinicListInfo) => ({ value: item.id, label: item.name }))}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) : null\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tdeliveryService.isMail(deliveryType.value)\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name, value);\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={field.value ?? undefined}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tPlease, pick a carriers\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tNone\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t{carriers.map((carrier) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{carrier.name}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) : null\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tdeliveryService.isMail(deliveryType.value)\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t) : null\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\t!deliveryService.isNone(deliveryType.value) && !deliveryService.isPickup(deliveryType.value)\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setFieldValue(fieldProps.field.name as keyof PetFormValues, value, false)}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonSelect={(value, item?: PostalCode) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!item) return;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setValues({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...fieldProps.form.values,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeliveryZip: item.zip,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeliveryCity: item.city,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeliveryStateId: item.stateId,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcountry={country}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, state)}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tcountry={country}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{({ field }: FieldProps) => {\n\t\t\t\t\t\t\t\t\t\tif (field.value !== ServiceType.Communal) return null;\n\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShow on map\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{field.value ? MailStatus[field.value] : 'The email was\\'t sent'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonSendEmail(form.values.id, setShowConfirm, factory.updateItem, setLoading, true)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tokText=\"Yes\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcancelText=\"No\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tokButtonProps={{ loading }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Send email\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloading={loading}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => setShowConfirm(true)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\nimport { useTranslation } from 'react-i18next';\n\nimport { Field, FieldProps, useFormikContext } from 'formik';\n\nimport Input from 'antd/lib/input';\nimport Checkbox from 'antd/lib/checkbox';\nimport Typography from 'antd/lib/typography';\nimport { Col, Row } from 'antd/lib/grid';\n\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\nimport Datepicker from '@common/react/components/Forms/Datepicker/Datepicker';\n\nimport { SectionContainer } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { PetSpecieSelect } from '@app/components/UI/Inputs/PetSpecieSelect';\nimport { BreedSelect } from '@app/components/UI/Inputs/PetBreedSelect';\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { GenderSelect } from '@app/components/UI/Inputs/GenderSelect';\nimport { NumberField } from '@app/components/UI/NumberField/NumberField';\nimport {\n\tPetEngraving,\n\tServiceType,\n\tupdateEngraving as getUpdatedEngraving,\n\tneedUpdateEngraving,\n} from '@app/objects/Pet';\nimport { EngravingList } from '@app/components/Various/Pet/EngravingList';\nimport { Price } from '@app/objects/Price';\nimport { ApplicationState } from '@app/store';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { WeightUnits } from '@app/objects/Crematory';\nimport { toUnit } from '@app/utilities/units';\n\nexport const PetInfoSection: React.FC = () => {\n\tconst { t } = useTranslation();\n\tconst { values, setFieldValue } = useFormikContext();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst crematory = useCrematory(values.crematoryId);\n\tconst [availableEngravingPrices, setAvailableEngravingPrices] = React.useState>([]);\n\tconst needUpdate = needUpdateEngraving(values.name, values.engraving, availableEngravingPrices, values.serviceType, crematory?.prefillEngraving);\n\tconst unit = toUnit(crematory?.units?.weight ?? WeightUnits.Pounds);\n\n\tReact.useEffect(() => {\n\t\tif (needUpdate && values.id < 0 && values.name) {\n\t\t\tsetFieldValue('engraving', getUpdatedEngraving(values.name, values.engraving));\n\t\t}\n\t}, [availableEngravingPrices, values.serviceType, values.name, values.id]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\t\t\t\t\tfield.onChange(e);\n\t\t\t\t\t\t\t\t\t\t\tconst engraving = form.values.engraving;\n\n\t\t\t\t\t\t\t\t\t\t\tif (needUpdate) {\n\t\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('engraving', getUpdatedEngraving(e.target.value, engraving));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setFieldValue('petSpecieId', value);\n\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setFieldValue('petBreedId', -1);\n\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setFieldValue('breedName', '');\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tcrematoryId={crematory?.id}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('petBreedId', id, false);\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={field.value}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t{({ field: mixedField, form }: FieldProps) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t form.setFieldValue(mixedField.name, e.target.checked)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tchecked={mixedField.value}\n\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMixed\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t form.setFieldValue(name, value)}\n\t\t\t\t\t\t\t\t\t\tvalue={field.value}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, date)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, value)}\n\t\t\t\t\t\t\t\t\t\taddonAfter={unit.name}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, value)}\n\t\t\t\t\t\t\t\t\t\taddonAfter={unit.name}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => {\n\t\t\t\t\t\t\tconst actualWeight = values.actualWeight ?? 0;\n\t\t\t\t\t\t\tconst reportedWeight = values.reportedWeight ?? 0;\n\t\t\t\t\t\t\tconst estimatedAshes = unit.unitToFraction(actualWeight || reportedWeight) * 0.03;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name, value)}\n\t\t\t\t\t\t\t\t\t\t\t\taddonAfter={unit.fractionName}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\testimatedAshes\n\t\t\t\t\t\t\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{t(iKey('estimations.ashes-hint'))} is {estimatedAshes.toFixed(1)} {unit.fractionName}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : null\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\t(fieldProps: FieldProps>) => {\n\t\t\t\t\t\tif (fieldProps.form.values.serviceType === ServiceType.Communal) return null;\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\t\t\t\t\tfieldProps.form.setFieldValue(fieldProps.field.name, value);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tonChangePrice={setAvailableEngravingPrices}\n\t\t\t\t\t\t\t\t\t\tprefillEngraving={crematory?.prefillEngraving}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\n\t);\n};\n","// This icon file is generated automatically.\nvar BankOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z\" } }] }, \"name\": \"bank\", \"theme\": \"outlined\" };\nexport default BankOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport BankOutlinedSvg from \"@ant-design/icons-svg/es/asn/BankOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar BankOutlined = function BankOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: BankOutlinedSvg\n }));\n};\n\n/**![bank](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg5NCA0NjJjMzAuOSAwIDQzLjgtMzkuNyAxOC43LTU4TDUzMC44IDEyNi4yYTMxLjgxIDMxLjgxIDAgMDAtMzcuNiAwTDExMS4zIDQwNGMtMjUuMSAxOC4yLTEyLjIgNTggMTguOCA1OEgxOTJ2Mzc0aC03MmMtNC40IDAtOCAzLjYtOCA4djUyYzAgNC40IDMuNiA4IDggOGg3ODRjNC40IDAgOC0zLjYgOC04di01MmMwLTQuNC0zLjYtOC04LThoLTcyVjQ2Mmg2MnpNNTEyIDE5Ni43bDI3MS4xIDE5Ny4ySDI0MC45TDUxMiAxOTYuN3pNMjY0IDQ2MmgxMTd2Mzc0SDI2NFY0NjJ6bTE4OSAwaDExN3YzNzRINDUzVjQ2MnptMzA3IDM3NEg2NDJWNDYyaDExOHYzNzR6IiAvPjwvc3ZnPg==) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(BankOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'BankOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar PercentageOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M855.7 210.8l-42.4-42.4a8.03 8.03 0 00-11.3 0L168.3 801.9a8.03 8.03 0 000 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z\" } }] }, \"name\": \"percentage\", \"theme\": \"outlined\" };\nexport default PercentageOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport PercentageOutlinedSvg from \"@ant-design/icons-svg/es/asn/PercentageOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar PercentageOutlined = function PercentageOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: PercentageOutlinedSvg\n }));\n};\n\n/**![percentage](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NS43IDIxMC44bC00Mi40LTQyLjRhOC4wMyA4LjAzIDAgMDAtMTEuMyAwTDE2OC4zIDgwMS45YTguMDMgOC4wMyAwIDAwMCAxMS4zbDQyLjQgNDIuNGMzLjEgMy4xIDguMiAzLjEgMTEuMyAwTDg1NS42IDIyMmMzLjItMyAzLjItOC4xLjEtMTEuMnpNMzA0IDQ0OGM3OS40IDAgMTQ0LTY0LjYgMTQ0LTE0NHMtNjQuNi0xNDQtMTQ0LTE0NC0xNDQgNjQuNi0xNDQgMTQ0IDY0LjYgMTQ0IDE0NCAxNDR6bTAtMjE2YzM5LjcgMCA3MiAzMi4zIDcyIDcycy0zMi4zIDcyLTcyIDcyLTcyLTMyLjMtNzItNzIgMzIuMy03MiA3Mi03MnptNDE2IDM0NGMtNzkuNCAwLTE0NCA2NC42LTE0NCAxNDRzNjQuNiAxNDQgMTQ0IDE0NCAxNDQtNjQuNiAxNDQtMTQ0LTY0LjYtMTQ0LTE0NC0xNDR6bTAgMjE2Yy0zOS43IDAtNzItMzIuMy03Mi03MnMzMi4zLTcyIDcyLTcyIDcyIDMyLjMgNzIgNzItMzIuMyA3Mi03MiA3MnoiIC8+PC9zdmc+) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(PercentageOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'PercentageOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar DollarOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z\" } }] }, \"name\": \"dollar\", \"theme\": \"outlined\" };\nexport default DollarOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport DollarOutlinedSvg from \"@ant-design/icons-svg/es/asn/DollarOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar DollarOutlined = function DollarOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: DollarOutlinedSvg\n }));\n};\n\n/**![dollar](data:image/svg+xml;base64,PHN2ZyB3a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0zMy44LTEyLjItNDkuNS0zMS45LTQ5LjUtNTcuMyAwLTM2LjMgMjcuNS01NyA2NC41LTYxLjd2MTI0ek01MzQuMyA2NzdWNTQzLjNjMy4xLjkgNS45IDEuNiA4LjggMi4yIDQ3LjMgMTQuNCA2My4yIDM0LjQgNjMuMiA2NS4xIDAgMzkuMS0yOS40IDYyLjYtNzIgNjYuNHoiIC8+PC9zdmc+) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(DollarOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'DollarOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar SignatureOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"fill-rule\": \"evenodd\", \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M145.71 752c2 0 4-.2 5.98-.5L319.9 722c1.99-.4 3.88-1.3 5.28-2.8l423.91-423.87a9.93 9.93 0 000-14.06L582.88 114.9C581 113 578.5 112 575.82 112s-5.18 1-7.08 2.9L144.82 538.76c-1.5 1.5-2.4 3.29-2.8 5.28l-29.5 168.17a33.59 33.59 0 009.37 29.81c6.58 6.48 14.95 9.97 23.82 9.97m51.75-85.43l15.65-88.92 362.7-362.67 73.28 73.27-362.7 362.67zm401.37-98.64c27.69-14.81 57.29-20.85 85.54-15.52 32.37 6.1 59.72 26.53 78.96 59.4 29.97 51.22 21.64 102.34-18.48 144.26-17.58 18.36-41.07 35.01-70 50.3l-.3.15.86.26a147.88 147.88 0 0041.54 6.2l1.17.01c61.07 0 100.98-22.1 125.28-67.87a36 36 0 0163.6 33.76C869.7 849.1 804.9 885 718.12 885c-47.69 0-91.94-15.03-128.19-41.36l-1.05-.78-1.36.47c-46.18 16-98.74 29.95-155.37 41.94l-2.24.47a1931.1 1931.1 0 01-139.16 23.96 36 36 0 11-9.5-71.38 1860.1 1860.1 0 00133.84-23.04c42.8-9 83-19.13 119.35-30.34l.24-.08-.44-.69c-16.46-26.45-25.86-55.43-26.14-83.24v-1.3c0-49.9 39.55-104.32 90.73-131.7M671 623.17c-10.74-2.03-24.1.7-38.22 8.26-29.55 15.8-52.7 47.64-52.7 68.2 0 18.2 8.9 40.14 24.71 59.73l.24.3 1.22-.52c39.17-16.58 68.49-34.27 85.93-52.18l.64-.67c18.74-19.57 21.39-35.84 8.36-58.1-9.06-15.47-19.03-22.92-30.18-25.02\" } }] }, \"name\": \"signature\", \"theme\": \"outlined\" };\nexport default SignatureOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport SignatureOutlinedSvg from \"@ant-design/icons-svg/es/asn/SignatureOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar SignatureOutlined = function SignatureOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: SignatureOutlinedSvg\n }));\n};\n\n/**![signature](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQ1LjcxIDc1MmMyIDAgNC0uMiA1Ljk4LS41TDMxOS45IDcyMmMxLjk5LS40IDMuODgtMS4zIDUuMjgtMi44bDQyMy45MS00MjMuODdhOS45MyA5LjkzIDAgMDAwLTE0LjA2TDU4Mi44OCAxMTQuOUM1ODEgMTEzIDU3OC41IDExMiA1NzUuODIgMTEycy01LjE4IDEtNy4wOCAyLjlMMTQ0LjgyIDUzOC43NmMtMS41IDEuNS0yLjQgMy4yOS0yLjggNS4yOGwtMjkuNSAxNjguMTdhMzMuNTkgMzMuN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czbC4yNC4zIDEuMjItLjUyYzM5LjE3LTE2LjU4IDY4LjQ5LTM0LjI3IDg1LjkzLTUyLjE4bC42NC0uNjdjMTguNzQtMTkuNTcgMjEuMzktMzUuODQgOC4zNi01OC4xLTkuMDYtMTUuNDctMTkuMDMtMjIuOTItMzAuMTgtMjUuMDIiIC8+PC9zdmc+) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(SignatureOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'SignatureOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar ThunderboltOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z\" } }] }, \"name\": \"thunderbolt\", \"theme\": \"outlined\" };\nexport default ThunderboltOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ThunderboltOutlinedSvg from \"@ant-design/icons-svg/es/asn/ThunderboltOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ThunderboltOutlined = function ThunderboltOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ThunderboltOutlinedSvg\n }));\n};\n\n/**![thunderbolt](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0OCAzNTkuM0g2MjcuN0w4MjUuOCAxMDljNC4xLTUuMy40LTEzLTYuMy0xM0g0MzZjLTIuOCAwLTUuNSAxLjUtNi45IDRMMTcwIDU0Ny41Yy0zLjEgNS4zLjcgMTIgNi45IDEyaDE3NC40bC04OS40IDM1Ny42Yy0xLjkgNy44IDcuNSAxMy4zIDEzLjMgNy43TDg1My41IDM3M2M1LjItNC45IDEuNy0xMy43LTUuNS0xMy43ek0zNzguMiA3MzIuNWw2MC4zLTI0MUgyODEuMWwxODkuNi0zMjcuNGgyMjQuNkw0ODcgNDI3LjRoMjExTDM3OC4yIDczMi41eiIgLz48L3N2Zz4=) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(ThunderboltOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'ThunderboltOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar ShoppingCartOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"0 0 1024 1024\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z\" } }] }, \"name\": \"shopping-cart\", \"theme\": \"outlined\" };\nexport default ShoppingCartOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ShoppingCartOutlinedSvg from \"@ant-design/icons-svg/es/asn/ShoppingCartOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ShoppingCartOutlined = function ShoppingCartOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ShoppingCartOutlinedSvg\n }));\n};\n\n/**![shopping-cart](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyMi45IDcwMS45SDMyNy40bDI5LjktNjAuOSA0OTYuOC0uOWMxNi44IDAgMzEuMi0xMiAzNC4yLTI4LjZsNjguOC0zODUuMWMxLjgtMTAuMS0uOS0yMC41LTcuNS0yOC40YTM0Ljk5IDM0Ljk5IDAgMDAtMjYuNi0xMi41bC02MzItMi4xLTUuNC0yNS40Yy0zLjQtMTYuMi0xOC0yOC0zNC42LTI4SDk2LjVhMzUuMyAzNS4zIDAgMTAwIDcwLjZoMTI1LjlMMjQ2IDMxMi44bDU4LjEgMjgxLjMtNzQuOCAxMjIuMWEzNC45NiAzNC45NiAwIDAwLTMgMzYuOGM2IDExLjkgMTguMSAxOS40IDMxLjUgMTkuNGg2Mi44YTEwMi40MyAxMDIuNDMgMCAwMC0yMC42IDYxLjdjMCA1Ni42IDQ2IDEwMi42IDEwMi42IDEwMi42czEwMi42LTQ2IDEwMi42LTEwMi42YzAtMjIuMy03LjQtNDQtMjAuNi02MS43aDE2MS4xYTEwMi40MyAxMDIuNDMgMCAwMC0yMC42IDYxLjdjMCA1Ni42IDQ2IDEwMi42IDEwMi42IDEwMi42czEwMi42LTQ2IDEwMi42LTEwMi42YzAtMjIuMy03LjQtNDQtMjAuNi02MS43SDkyM2MxOS40IDAgMzUuMy0xNS44IDM1LjMtMzUuM2EzNS40MiAzNS40MiAwIDAwLTM1LjQtMzUuMnpNMzA1LjcgMjUzbDU3NS44IDEuOS01Ni40IDMxNS44LTQ1Mi4zLjhMMzA1LjcgMjUzem05Ni45IDYxMi43Yy0xNy40IDAtMzEuNi0xNC4yLTMxLjYtMzEuNiAwLTE3LjQgMTQuMi0zMS42IDMxLjYtMzEuNnMzMS42IDE0LjIgMzEuNiAzMS42YTMxLjYgMzEuNiAwIDAxLTMxLjYgMzEuNnptMzI1LjEgMGMtMTcuNCAwLTMxLjYtMTQuMi0zMS42LTMxLjYgMC0xNy40IDE0LjItMzEuNiAzMS42LTMxLjZzMzEuNiAxNC4yIDMxLjYgMzEuNmEzMS42IDMxLjYgMCAwMS0zMS42IDMxLjZ6IiAvPjwvc3ZnPg==) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(ShoppingCartOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'ShoppingCartOutlined';\n}\nexport default RefIcon;","// This icon file is generated automatically.\nvar CompassOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z\" } }] }, \"name\": \"compass\", \"theme\": \"outlined\" };\nexport default CompassOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport CompassOutlinedSvg from \"@ant-design/icons-svg/es/asn/CompassOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar CompassOutlined = function CompassOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: CompassOutlinedSvg\n }));\n};\n\n/**![compass](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnptMTk4LjQtNTg4LjFhMzIgMzIgMCAwMC0yNC41LjVMNDE0LjkgNDE1IDI5Ni40IDY4NmMtMy42IDguMi0zLjYgMTcuNSAwIDI1LjcgMy40IDcuOCA5LjcgMTMuOSAxNy43IDE3IDMuOCAxLjUgNy43IDIuMiAxMS43IDIuMiA0LjQgMCA4LjctLjkgMTIuOC0yLjdsMjcxLTExOC42IDExOC41LTI3MWEzMi4wNiAzMi4wNiAwIDAwLTE3LjctNDIuN3pNNTc2LjggNTM0LjRsMjYuMiAyNi4yLTQyLjQgNDIuNC0yNi4yLTI2LjJMMzgwIDY0NC40IDQ0Ny41IDQ5MCA0MjIgNDY0LjRsNDIuNC00Mi40IDI1LjUgMjUuNUw2NDQuNCAzODBsLTY3LjYgMTU0LjR6TTQ2NC40IDQyMkw0MjIgNDY0LjRsMjUuNSAyNS42IDg2LjkgODYuOCAyNi4yIDI2LjIgNDIuNC00Mi40LTI2LjItMjYuMi04Ni44LTg2Ljl6IiAvPjwvc3ZnPg==) */\nvar RefIcon = /*#__PURE__*/React.forwardRef(CompassOutlined);\nif (process.env.NODE_ENV !== 'production') {\n RefIcon.displayName = 'CompassOutlined';\n}\nexport default RefIcon;","/* eslint-disable jsx-a11y/control-has-associated-label */\nimport * as React from 'react';\nimport { useSelector } from 'react-redux';\nimport { useTranslation } from 'react-i18next';\nimport { useFormikContext } from 'formik';\nimport clsx from 'clsx';\nimport Popover from 'antd/lib/popover';\nimport Button from 'antd/lib/button';\nimport {\n\tBankOutlined,\n\tCompassOutlined,\n\tDollarOutlined,\n\tPercentageOutlined,\n\tPlusOutlined,\n\tRestOutlined,\n\tShoppingCartOutlined,\n\tSignatureOutlined,\n\tThunderboltOutlined,\n\tTruckOutlined,\n} from '@ant-design/icons';\n\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\n\nimport { getUrnFullName, iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { PetPrice } from '@app/objects/Pet';\nimport { DiscountType, PriceKind, PriceType } from '@app/objects/Price';\nimport { Translator } from '@app/internationalization/init';\nimport { addressService } from '@app/services/AddressService';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { ApplicationState } from '@app/store';\n\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { getOrderSuffix } from '@app/utilities/naturalLanguage';\nimport { SpecialServiceType } from '@app/objects/SpecialService';\nimport { TaxPolicy } from '@app/objects/Crematory';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { InvoiceTaxModel } from '@app/objects/Invoice';\n\nconst localeKey = 'editors.pet-editor.price-tag';\ninterface TotalContentProps {\n\tvalue: IPriceStack;\n\tformValues: PetFormValues;\n\tonRecalculate: () => void;\n}\n\nfunction isMobileView(): boolean {\n\treturn typeof window !== 'undefined' && window.innerWidth < 400;\n}\n\nfunction getDiscountLabel(discount: PetPrice, t: Translator, isClinicDiscount: boolean = false): string {\n\tconst price = discount.price;\n\tconst title = isClinicDiscount ? discount.name : t('discount');\n\n\tif (!price || price.unit !== DiscountType.Percentage) return `${title}`;\n\n\treturn `${title} (${price.value}%)`;\n}\n\nfunction getProductValue(value: number) {\n\tif (value >= 0) return `$${value.toFixed(2)}`;\n\n\treturn `-$${(value * -1).toFixed(2)}`;\n}\n\nfunction getServiceLabel(service: PetPrice) {\n\tif (service.price?.priceKind === PriceKind.PickupPrice) return service.name;\n\n\treturn `${service.name} x ${service.count}`;\n}\n\ninterface TaxesProps {\n\tserviceTax: Nullable;\n\tserviceTaxPercentage: number;\n\tproductTax: Nullable;\n\tproductTaxPercentage: number;\n\tformValues: PetFormValues;\n\tperItem: boolean;\n}\n\ninterface ClinicDiscountsProps {\n\tdiscounts: Nullable>;\n\tperItem: boolean;\n}\n\nfunction formatPercentage(value: Optional): string {\n\tif (!value) return '0';\n\n\treturn (value * 100).toFixed(0);\n}\n\nconst Taxes: React.FC = (props: TaxesProps) => {\n\tconst { t } = useTranslation('translation', { keyPrefix: localeKey });\n\tconst { values } = useFormikContext();\n\tconst crematories = useSelector((state: ApplicationState) => state.crematories.items);\n\tconst crematory = crematories.find((item) => item.id === props.formValues.crematoryId);\n\n\tif (!props.serviceTax && !props.productTax) return null;\n\n\tconst details = addressService.provide(crematory.country);\n\tconst taxName = t(details.taxKey);\n\n\tif (props.serviceTaxPercentage === props.productTaxPercentage) {\n\t\tconst value = (props.serviceTax ?? 0) + (props.productTax ?? 0);\n\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t{taxName} ({formatPercentage(props.productTaxPercentage)}%):\n\t\t\t\t{props.perItem ? : null}\n\t\t\t\t\n\t\t\t\t\t${value.toFixed(2)}\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n\n\tconst taxPolicy = values.priceType === PriceType.Retail ? crematory.retailTaxPolicy : crematory.wholesaleTaxPolicy;\n\tconst serviceTaxName = taxPolicy === TaxPolicy.TaxExcluded ? 'Service' : 'Including Service';\n\tconst productTaxName = taxPolicy === TaxPolicy.TaxExcluded ? 'Product' : 'Including Product';\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t{serviceTaxName} {taxName} ({formatPercentage(props.serviceTaxPercentage)}%):\n\t\t\t\t{props.perItem ? : null}\n\t\t\t\t\n\t\t\t\t\t${(props.serviceTax ?? 0).toFixed(2)}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t{productTaxName} {taxName} ({formatPercentage(props.productTaxPercentage)}%):\n\t\t\t\t{props.perItem ? : null}\n\t\t\t\t\n\t\t\t\t\t${(props.productTax ?? 0).toFixed(2)}\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\nconst ClinicDiscounts: React.FC = (props: ClinicDiscountsProps) => {\n\tconst { t } = useTranslation('translation', { keyPrefix: localeKey });\n\tconst basePriceDiscount = props.discounts?.find((i) => i.price?.applyTo === PriceKind.BasePrice);\n\tconst servicePriceDiscount = props.discounts?.find((i) => i.price?.applyTo === PriceKind.SpecialServicePrice);\n\n\treturn (\n\t\t<>\n\t\t\t{\n\t\t\t\tbasePriceDiscount\n\t\t\t\t\t? (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{getDiscountLabel(basePriceDiscount, t, true)}:\n\t\t\t\t\t\t\t{props.perItem ? : null}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t${basePriceDiscount.value.toFixed(2)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t) : null\n\t\t\t}\n\t\t\t{\n\t\t\t\tservicePriceDiscount ? (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t{getDiscountLabel(servicePriceDiscount, t, true)}:\n\t\t\t\t\t\t{props.perItem ? : null}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${servicePriceDiscount.value.toFixed(2)}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t) : null\n\t\t\t}\n\t\t\n\t);\n};\n\nfunction filterServices(services: Array): Array {\n\treturn services.filter((q: PetPrice) => {\n\t\tconst type = q.price?.specialService?.specialServiceType;\n\n\t\treturn type === SpecialServiceType.Kit || type === SpecialServiceType.Service;\n\t});\n}\n\nfunction formatMoney(value: Optional): string {\n\tif (!value) return '';\n\n\treturn `$${value.toFixed(2)}`;\n}\n\nfunction formatTotal(price: Optional): string {\n\tif (!price) return '';\n\n\tlet value = price.value - (price.discount ?? 0);\n\tif (price.price?.priceKind === PriceKind.BasePrice) {\n\t\tvalue += price.extra;\n\t}\n\n\treturn `$${value.toFixed(2)}`;\n}\n\ninterface PerItemContentProps {\n\tperItem: boolean;\n\tservice: Optional;\n}\n\nconst PerItemContent: React.FC = (props: PerItemContentProps) => {\n\tif (!props.perItem || !props.service) return null;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{formatMoney(props.service.discount)}\n\t\t\t\n\t\t\t\n\t\t\t\t{formatMoney(props.service.tax)}\n\t\t\t\n\t\t\t\n\t\t\t\t{(formatTotal(props.service))}\n\t\t\t\n\t\t\n\t);\n};\n\n// eslint-disable-next-line sonarjs/cognitive-complexity\nconst TotalContent: React.FC = (props: TotalContentProps) => {\n\tconst { t } = useTranslation('translation', { keyPrefix: localeKey });\n\tconst crematory = useCrematory(props.formValues.crematoryId);\n\tconst perItem: boolean = crematory?.invoiceTaxModel === InvoiceTaxModel.TaxPerItem;\n\tconst details = addressService.provide(crematory?.country);\n\tconst taxName = t(details.taxKey);\n\n\tconst cremation = props.value.base;\n\tconst engraving = props.value.engravings;\n\tconst rush = props.value.rush;\n\tconst priceExtra = cremation && cremation.extra > 0 ? ` + $${cremation.extra.toFixed(2)}` : '';\n\tconst services = filterServices(props.value.services).filter((service: PetPrice) => !service.removed);\n\n\tconst urns = props.value.urns;\n\tconst products = props.value.products;\n\n\tconst delivery = props.value.delivery;\n\tconst pickup = props.value.pickup;\n\n\tconst discount = props.value.discount;\n\tconst clinicDiscounts = props.value.clinicDiscounts;\n\n\tconst subtotal = props.value.subtotal;\n\tconst total = props.value.total;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\tperItem\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\tengraving.map((item: PetPrice, index: number) => (\n\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\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tdelivery\n\t\t\t\t\t\t?\t(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tsubtotal\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{perItem ? \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t{perItem ? \n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tRecalculate\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t\t\tItemPriceDiscount{taxName} AmountTotal Amount
\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{t('price')}:\n\t\t\t\t\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcremation\n\t\t\t\t\t\t\t\t? `$${cremation.value.toFixed(2)}${(priceExtra)}`\n\t\t\t\t\t\t\t\t: {t('price-not-found')}\n\t\t\t\t\t\t}\n\t\t\t\t\t
Engraving - {index + 1}{getOrderSuffix(index + 1)} line\n\t\t\t\t\t\t\t\t{item.value ? (`$${item.value.toFixed(2)}`) : t('free')}\n\t\t\t\t\t\t\t
Rush:\n\t\t\t\t\t\t\t\t\t{`$${rush.value.toFixed(2)}`}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{getServiceLabel(service)}:\n\t\t\t\t\t\t\t\t{service.value ? (`$${service.value.toFixed(2)}`) : t('free')}\n\t\t\t\t\t\t\t
{getUrnFullName(urn)} x {urn.count}: \n\t\t\t\t\t\t\t\t{getProductValue(urn.value)}\n\t\t\t\t\t\t\t
{product.name} x {product.count}: \n\t\t\t\t\t\t\t\t{getProductValue(product.value)}\n\t\t\t\t\t\t\t
{getDiscountLabel(discount, t)}: : null}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t${discount.value.toFixed(2)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{getServiceLabel(pickup)}:\n\t\t\t\t\t\t\t\t\t{pickup.value ? (`$${pickup.value.toFixed(2)}`) : t('free')}\n\t\t\t\t\t\t\t\t
Delivery:\n\t\t\t\t\t\t\t\t\t{`$${delivery.value.toFixed(2)}`}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{t('subtotal')}: : null}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t${subtotal.toFixed(2)}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t{t('total')}: : null}\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${total.toFixed(2)}\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t);\n};\n\nexport const PriceTagDisplay: React.FC = (props: TotalContentProps) => {\n\tconst { t } = useTranslation();\n\n\tconst isMobile = isMobileView();\n\tconst classes = clsx('pet-editor-page__total', !props.value.base && 'pet-editor-page__total_not-found');\n\n\treturn (\n\t\t\n\t\t\t)}\n\t\t>\n\t\t\t\n\t\t\t\t{t(iKey('price-tag.total'))}: $\n\t\t\t\t{props.value.total.toFixed(2)}\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { generatePath } from 'react-router-dom';\nimport { useSelector } from 'react-redux';\n\nimport Dropdown from 'antd/lib/dropdown';\nimport { FilePdfOutlined } from '@ant-design/icons';\nimport { useFormikContext } from 'formik';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { getDeliveryTypeName, getServiceTypeName } from '@app/objects/Pet';\n\nimport { ResourceButton } from '@app/components/UI/Buttons/ResourceButton';\nimport { PriceTagDisplay } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Displays/PriceTagDisplay';\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { PdfField } from '@app/components/Pages/Clinics/ClinicTabs/Invoices/InvoiceEditor/InvoiceEditorComponents/FormFields';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { List } from '@app/components/UI/List/List';\nimport { RoutePaths } from '@app/utilities/RoutePathVars';\nimport { ApplicationState } from '@app/store';\nimport { australiaCode } from '@app/components/UI/Inputs/PhoneInput';\n\nimport '@app/scss/ui/blocks/header-affix.scss';\nimport { useCountry } from '@app/hooks/useCountry';\n\ninterface PetEditorHeaderProps {\n\tcalculatedPrice: Nullable;\n\tonRecalculate: () => void;\n}\n\nconst InvoicePrint = ({ petId }) => {\n\tconst { t } = useTranslation();\n\tconst [excludeFree, setExcludeFree] = React.useState(true);\n\n\tif (petId < 0) return null;\n\n\treturn (\n\t\t\n\t\t\t\t\t\t),\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}}\n\t\t\tplacement=\"bottomRight\"\n\t\t>\n\t\t\t\n\t\t\t\t\n\t\t\t\t{t(iKey('pet-tag.button-invoice-text'))}\n\t\t\t
\n\t\t\n\t);\n};\n\nexport const PetEditorHeader: React.FC = (props: PetEditorHeaderProps) => {\n\tconst { t } = useTranslation();\n\tconst { values } = useFormikContext();\n\tconst crematories = useSelector((state: ApplicationState) => state.selects.crematories.items);\n\n\tconst { gender: genderStore, selects } = useSelector((state: ApplicationState) => state);\n\tconst gender = React.useMemo(() => genderStore.items.find((i) => i.id === values.genderId), [values.genderId, genderStore.items]);\n\tconst petBreed = React.useMemo(() => selects.petBreeds.items.find((i) => i.id === values.petBreedId), [values.petBreedId, selects.petBreeds.items]);\n\n\tconst crematory = crematories.find((i) => i.id === values.crematoryId);\n\tconst isCrematory = !values.clinicId && values.crematoryId ? { code: crematory?.country } : { code: undefined, id: undefined };\n\tconst params = values.clinicId && values.clinic ? { code: values.clinic.country?.alpha3, id: values.clinic.countryId } : isCrematory;\n\tconst country = useCountry(params.code, params.id);\n\tconst isAustralia = React.useMemo(() => country?.phoneCode === australiaCode, [country]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{values.id > 0\n\t\t\t\t\t? `${t(iKey('actions.edit-pet'))} #${values.id}`\n\t\t\t\t\t: t(iKey('actions.add-pet'))}\n\t\t\t\n\t\t\t\n\t\t\t\t{`${values.name}, ${gender?.name ?? ' - '}, ${values.petSpecie?.name ?? ' - '}, ${petBreed?.name ?? ' - '}, \n\t\t\t\t${getServiceTypeName(values.serviceType, t, false, isAustralia)}, ${getDeliveryTypeName(values.deliveryType)}`}\n\t\t\t\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\tprops.calculatedPrice\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\t{values.id > 0 && (\n\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{t(iKey('pet-tag.button-text'))}\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSelector } from 'react-redux';\n\nimport { Field, FieldProps, useFormikContext } from 'formik';\n\nimport Select from 'antd/lib/select';\nimport Checkbox, { CheckboxChangeEvent } from 'antd/lib/checkbox';\nimport { Col, Row } from 'antd/lib/grid';\nimport Space from 'antd/lib/space';\n\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\n\nimport { PriceType } from '@app/objects/Price';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { UserRole } from '@app/objects/User';\nimport { CrematorySelect } from '@app/components/UI/Inputs/CrematorySelect';\nimport { CrematoryListInfo, getServiceTypePreferenceKind } from '@app/objects/Crematory';\nimport { PetOnHold, ServiceType } from '@app/objects/Pet';\nimport { isPickDefault } from '@app/store/SelectList/SelectsInterfaces';\nimport { ApplicationState } from '@app/store';\nimport { LocalSelect, Option } from '@app/components/UI/Inputs/LocalSelect';\nimport { serviceTypes } from '@app/components/UI/Inputs/LocalSelectOptions';\nimport { ControlLabel } from '@app/components/UI/ControlLabel/ControlLabel';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { useCountry } from '@app/hooks/useCountry';\nimport { australiaCode } from '@app/components/UI/Inputs/PhoneInput';\n\nexport const TopSection: React.FC = () => {\n\tconst { t } = useTranslation();\n\tconst { values } = useFormikContext();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst crematory = useCrematory(values.crematoryId);\n\tconst clinics = useSelector((state: ApplicationState) => state.clinics.items);\n\tconst clinic = React.useMemo(() => clinics.find((c) => c.id === values.clinicId), [values.clinicId, clinics]);\n\tconst params = React.useMemo(\n\t\t() => (values.clinicId ? { id: clinic?.countryId } : { code: crematory?.country }),\n\t\t[clinic, values.clinicId, crematory],\n\t);\n\tconst country = useCountry(params.code, params.id);\n\tconst isAustralia = React.useMemo(() => country?.phoneCode === australiaCode, [country]);\n\tconst [serviceTypeOptions, setServiceTypeOptions] = React.useState>([]);\n\n\tReact.useEffect(() => {\n\t\tif (!crematory || !values.crematoryId) return;\n\n\t\tsetServiceTypeOptions(serviceTypes(t, isAustralia, crematory));\n\t}, [crematory, values.crematoryId, isAustralia]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => {\n\t\t\t\t\t\t\tif (user?.role === UserRole.Crematory) return null;\n\t\t\t\t\t\t\tif (user?.role === UserRole.CrematoryUser) return null;\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name as keyof PetFormValues, value, false);\n\t\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('clinicId', null);\n\t\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('clinicName', '');\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\tpickDefault={(store: Array) => isPickDefault(store)}\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Crematory\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t form.setFieldValue(field.name as keyof PetFormValues, value, false)}\n\t\t\t\t\t\t\t\t\t\tvalue={field.value}\n\t\t\t\t\t\t\t\t\t\toptions={serviceTypeOptions}\n\t\t\t\t\t\t\t\t\t\tfieldName={field.name}\n\t\t\t\t\t\t\t\t\t\tdeselectType={field.name}\n\t\t\t\t\t\t\t\t\t\tfilterName={field.name}\n\t\t\t\t\t\t\t\t\t\tallowClear={false}\n\t\t\t\t\t\t\t\t\t\tplaceholder=\"Select the Service Type\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name as keyof PetFormValues, value, false);\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('ownerPhone', '');\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('ownerPhone2', '');\n\n\t\t\t\t\t\t\t\t\t\t\tif (value === PriceType.Retail) form.setFieldValue('clinicId', null);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{t('enums.price-type.wholesale')}\n\t\t\t\t\t\t\t\t\t\t{t('enums.price-type.retail')}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{(fieldProps: FieldProps) => {\n\t\t\t\t\t\tconst values = fieldProps.form.values;\n\t\t\t\t\t\tif (values.priceType !== PriceType.Retail) return null;\n\t\t\t\t\t\tconst serviceTypePreference = getServiceTypePreferenceKind(values.serviceType);\n\t\t\t\t\t\tif (!crematory?.[serviceTypePreference]?.showInternalId) return null;\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcontainerClassName=\"\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t}}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name as keyof PetFormValues, event.target.checked, false)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{t(iKey('labels.rush-details'))}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tconst value = event.target.checked ? PetOnHold.ByCrematory : PetOnHold.None;\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name as keyof PetFormValues, value, false);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{t(iKey('labels.on-hold-details'))}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\n\nimport List from 'antd/lib/list';\nimport Empty from 'antd/lib/empty';\n\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\n\nimport { useRequest } from '@app/hooks/useRequest';\nimport { PetSpecial, PetSpecialDescription } from '@app/objects/PetSpecial';\nimport { DateView } from '@app/components/UI/Views/DateView/DateView';\n\ninterface OwnProps {\n\tpetId: number;\n}\n\ninterface RequestParams {\n\tpetId: number;\n}\n\nexport const WhySpecial: React.FC = (props: OwnProps) => {\n\tconst request = useRequest('getPetSpecial', { petId: props.petId });\n\n\tif (request.loading) return ;\n\tif (!request.loading && !request.item) return ;\n\n\treturn (\n\t\t\n\t\t\t\t\tLast checked on \n\t\t\t\t\n\t\t\t)}\n\t\t\trenderItem={(item: PetSpecialDescription) => (\n\t\t\t\t{item.description}\n\t\t\t)}\n\t\t/>\n\t);\n};\n","import * as React from 'react';\nimport { useFormikContext } from 'formik';\n\nimport Tag from 'antd/lib/tag';\nimport { QuestionCircleOutlined } from '@ant-design/icons';\n\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { PetOnHold } from '@app/objects/Pet';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { Stack, StackDirection } from '@app/components/Layout/Stack';\nimport { ModalWrapper } from '@app/components/UI/Modal/Modal';\nimport { WhySpecial } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Displays/WhySpecial';\n\nexport const TagStack: React.FC = () => {\n\tconst [petId, setPetId] = React.useState>(() => null);\n\tconst { values } = useFormikContext();\n\n\tconst { onHold, isSpecial, id } = values;\n\n\tif (onHold === PetOnHold.None && !isSpecial) return null;\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\tonHold !== PetOnHold.None\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\tOn Hold\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tisSpecial\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t setPetId(id)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tSpecial\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\n\t\t\t setPetId(null)}\n\t\t\t\tonCancel={() => setPetId(null)}\n\t\t\t\tokText=\"Ok\"\n\t\t\t>\n\t\t\t\t{\n\t\t\t\t\tpetId\n\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t) : null\n\t\t\t\t}\n\t\t\t\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\nimport { useTranslation } from 'react-i18next';\nimport {\n\tField,\n\tFieldProps,\n\tuseFormikContext,\n} from 'formik';\n\nimport { Col, Row } from 'antd/lib/grid';\n\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { SectionContainer } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { iKey } from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport { ClinicSelect } from '@app/components/UI/Inputs/ClinicSelect';\nimport { LocationSelect } from '@app/components/UI/Inputs/LocationSelect';\nimport { ApplicationState } from '@app/store';\nimport { UserRole } from '@app/objects/User';\nimport { PriceKind, PriceType } from '@app/objects/Price';\nimport { getServiceTypePreferenceKind } from '@app/objects/Crematory';\nimport { ControlLabel } from '@app/components/UI/ControlLabel/ControlLabel';\nimport { useCrematory } from '@app/hooks/useCrematory';\nimport { PetPrice } from '@app/objects/Pet';\n\nfunction missingValue(value?: Nullable): boolean {\n\treturn value === null || value === undefined || value < 0;\n}\n\nexport const ClinicSection: React.FC = () => {\n\tconst { t } = useTranslation();\n\tconst { values } = useFormikContext();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst crematory = useCrematory(values.crematoryId);\n\tconst option = getServiceTypePreferenceKind(values.serviceType);\n\tconst showInternalId = crematory?.[option]?.showInternalId;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t | undefined) => {\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue(field.name as keyof PetFormValues, id, false);\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('clinicLocationId', null, false);\n\t\t\t\t\t\t\t\t\t\t\tform.setFieldValue('services', form.values.services?.filter((i: PetPrice) => i.price?.priceKind === PriceKind.Discount));\n\n\t\t\t\t\t\t\t\t\t\t\tif (form.values.priceType === PriceType.Wholesale) form.setFieldValue('ownerState', '');\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tdisabled={user?.role !== UserRole.Crematory && missingValue(form.values.crematoryId)}\n\t\t\t\t\t\t\t\t\t\tcrematoryId={form.values.crematoryId}\n\t\t\t\t\t\t\t\t\t\tcustomers\n\t\t\t\t\t\t\t\t\t\tmarkCustomer={user?.role === UserRole.Crematory || user?.role === UserRole.CrematoryUser}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t\t\t) => (\n\t\t\t\t\t\t\t\t\t) => form.setFieldValue('clinicLocationId', value, false)}\n\n\t\t\t\t\t\t\t\t\t\tclinicId={form.values.clinicId === null ? undefined : +form.values.clinicId}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t{(fieldProps: FieldProps) => {\n\t\t\t\t\t\tif (!showInternalId) return null;\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcontainerClassName=\"\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t}}\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n","import { Nullable } from '@common/typescript/objects/Nullable';\nimport { isPresent } from '@common/typescript/objects/WithRemoved';\n\nimport {\n\tServiceType,\n\tPetPrice,\n\tWeightSource,\n\tDeliveryType,\n\tPetEngraving,\n\tPetInvoiceSummary,\n} from '@app/objects/Pet';\nimport {\n\tPriceType,\n\tPriceKind,\n} from '@app/objects/Price';\nimport { InventoryItem } from '@app/objects/Inventory';\n\nexport interface WeightContainer {\n\tactualWeight: number;\n\treportedWeight: number;\n}\n\nexport interface ProductContainer {\n\tremoved?: boolean;\n\tcategoryId: number;\n\tcount: number;\n\tvalue?: number;\n}\n\nexport interface KeyPriceParamsContainer {\n\tid: number;\n\tweight: number;\n\trush: boolean;\n\tengraving: Array;\n\n\tcrematoryId: number;\n\tclinicId: Nullable;\n\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\n\tpetSpecieId: number;\n\n\tdeliveryType: DeliveryType;\n\n\turns: Array;\n\tdiscountId: Nullable;\n\n\tsummary: PetInvoiceSummary;\n}\n\nexport interface KeyNameContainer {\n\tinventoryItem: InventoryItem;\n}\n\n/**\n * Get current weight\n * @param {WeightContainer} item - item containing actual and reported weight data\n * @param {WeightSource} source - which weight-picking policy to use\n * @returns {number} current weight\n */\nexport function getWeight(item: WeightContainer, source: WeightSource): number {\n\tif (source === WeightSource.ReportedWeight) return item.reportedWeight;\n\n\treturn item.actualWeight > 0 ? item.actualWeight : item.reportedWeight;\n}\n\nfunction compareServices(original: Array, current: Array): boolean {\n\tif (original.length !== current.length) return false;\n\n\treturn current.reduce((res: boolean, item: PetPrice) => {\n\t\tconst source = original.find((q: PetPrice) => q.clientId === item.clientId);\n\n\t\treturn res && Boolean(source)\n\t\t\t&& source.value === item.value\n\t\t\t&& source.count === item.count\n\t\t\t&& source.priceId === item.priceId\n\t\t\t&& Boolean(source.removed) === Boolean(item.removed);\n\t}, true);\n}\n\nfunction filterServices(services: Array = []): Array {\n\treturn services.filter((q: PetPrice) => q.price?.priceKind === PriceKind.SpecialServicePrice || q.price?.priceKind === PriceKind.PickupPrice);\n}\n\ntype PriceComparable = KeyPriceParamsContainer & { services?: Array, products?: Array };\n\nfunction hasValue(item: PetEngraving): boolean {\n\treturn isPresent(item) && Boolean(item.name);\n}\n\nconst keys: Array = [\n\t'weight',\n\t'rush',\n\t'crematoryId',\n\t'clinicId',\n\t'priceType',\n\t'serviceType',\n\t'petSpecieId',\n\t'deliveryType',\n\t'discountId',\n];\n\n/**\n * Should price object be kept or should base price be recalculated\n * @param {KeyPriceParamsContainer} original - original object\n * @param {KeyPriceParamsContainer} current - updated object\n * @returns {boolean} - true if price should be kept\n */\nexport function shouldKeepPrice(original: PriceComparable, current: PriceComparable): boolean {\n\treturn keys.reduce(\n\t\t(res: boolean, key: keyof KeyPriceParamsContainer) => res && (original[key] === current[key]),\n\t\tcompareServices(original.urns ?? [], current.urns ?? [])\n\t\t&& compareServices(original.products ?? [], current.products ?? [])\n\t\t&& compareServices(filterServices(original.services), filterServices(current.services))\n\t\t&& original.engraving.filter(hasValue).length === current.engraving.filter(hasValue).length,\n\t);\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { PetPrice } from '@app/objects/Pet';\nimport { PriceKind } from '@app/objects/Price';\nimport { Values } from '@app/services/pricing/PricingManager';\n\n/**\n * This PriceStack is used to display data of saved (existing) prices\n */\nexport class ExistingPriceStack implements IPriceStack {\n\tprivate readonly _base: Nullable = null;\n\tprivate readonly _engraving: Array = [];\n\tprivate readonly _rush: Nullable = null;\n\tprivate readonly _services: Array = [];\n\tprivate readonly _urns: Array = [];\n\tprivate readonly _products: Array = [];\n\tprivate readonly _discount: Nullable = null;\n\tprivate readonly _clinicDiscounts: Array = [];\n\tprivate readonly _delivery: Nullable = null;\n\tprivate readonly _pickup: Nullable = null;\n\n\tprivate readonly _serviceValue: number = 0; // this is services + base (with discount included)\n\tprivate readonly _productValue: number = 0;\n\tprivate readonly _productTaxValue: number = 0;\n\tprivate readonly _productTaxPercentage: number = 0;\n\tprivate readonly _serviceTaxValue: number = 0;\n\tprivate readonly _serviceTaxPercentage: number = 0;\n\tprivate readonly _subtotal: number = 0;\n\tprivate readonly _total: number = 0;\n\n\tpublic constructor(services: Array = [], values: Nullable = null) {\n\t\tthis._base = services.find((q: PetPrice) => q.price?.priceKind === PriceKind.BasePrice) ?? null;\n\t\tthis._engraving = services.filter((q: PetPrice) => q.price?.priceKind === PriceKind.Engraving);\n\t\tthis._rush = services.find((q: PetPrice) => q.price?.priceKind === PriceKind.RushFee) ?? null;\n\t\tthis._services = services.filter((q: PetPrice) => q.price?.priceKind === PriceKind.SpecialServicePrice);\n\t\tthis._urns = services.filter((q: PetPrice) => q.price?.priceKind === PriceKind.UrnPrice);\n\t\tthis._products = services.filter((q: PetPrice) => q.price?.priceKind === PriceKind.ProductPrice);\n\t\tthis._discount = services.find((q: PetPrice) => q.price?.priceKind === PriceKind.Discount) ?? null;\n\t\tthis._clinicDiscounts = services.filter((item: PetPrice) => item.price?.priceKind === PriceKind.ClinicDiscount);\n\t\tthis._delivery = services.find((q: PetPrice) => q.price?.priceKind === PriceKind.DeliveryPrice) ?? null;\n\t\tthis._pickup = services.find((q: PetPrice) => q.price?.priceKind === PriceKind.PickupPrice);\n\n\t\tthis._productValue = values?.summary?.productsTotal ?? 0;\n\t\tthis._serviceValue = values?.summary.servicesTotal ?? 0;\n\t\tthis._productTaxValue = values?.summary?.productTax ?? 0;\n\t\tthis._serviceTaxValue = values?.summary?.serviceTax ?? 0;\n\t\tthis._productTaxPercentage = (values?.summary.productTaxPercentage ?? 0) / 100;\n\t\tthis._serviceTaxPercentage = (values?.summary.serviceTaxPercentage ?? 0) / 100;\n\t\tthis._subtotal = values?.summary.subTotal ?? 0;\n\t\tthis._total = values?.summary.total ?? 0;\n\t}\n\n\tpublic get base(): Nullable {\n\t\treturn this._base;\n\t}\n\n\tpublic get engravings(): Array {\n\t\treturn this._engraving;\n\t}\n\n\tpublic get rush(): Nullable {\n\t\treturn this._rush;\n\t}\n\n\tpublic get services(): Array {\n\t\treturn this._services;\n\t}\n\n\tpublic get urns(): Array {\n\t\treturn this._urns;\n\t}\n\n\tpublic get products(): Array {\n\t\treturn this._products;\n\t}\n\n\tpublic get discount(): Nullable {\n\t\treturn this._discount;\n\t}\n\n\tpublic get clinicDiscounts(): Array {\n\t\treturn this._clinicDiscounts;\n\t}\n\n\tpublic get delivery(): Nullable {\n\t\treturn this._delivery;\n\t}\n\n\tpublic get pickup(): Nullable {\n\t\treturn this._pickup;\n\t}\n\n\tpublic get productTax(): Nullable {\n\t\treturn this._productTaxValue;\n\t}\n\n\tpublic get serviceTax(): Nullable {\n\t\treturn this._serviceTaxValue;\n\t}\n\n\tpublic get serviceTotal(): number {\n\t\treturn this._serviceValue ?? 0;\n\t}\n\n\tpublic get productTotal(): number {\n\t\treturn this._productValue ?? 0;\n\t}\n\n\tpublic get productTaxTotal(): number {\n\t\treturn this._productTaxValue;\n\t}\n\n\tpublic get productTaxPercentage(): number {\n\t\treturn this._productTaxPercentage;\n\t}\n\n\tpublic get serviceTaxTotal(): number {\n\t\treturn this._serviceTaxValue;\n\t}\n\n\tpublic get serviceTaxPercentage(): number {\n\t\treturn this._serviceTaxPercentage;\n\t}\n\n\tpublic get taxTotal(): number {\n\t\treturn this.serviceTaxTotal + this.productTaxTotal;\n\t}\n\n\tpublic get subtotal(): number {\n\t\tif (this._subtotal !== null) return this._subtotal;\n\n\t\treturn 0;\n\t}\n\n\tpublic get total(): number {\n\t\tif (this._total !== null) return this._total;\n\n\t\treturn 0;\n\t}\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { DeliveryType, ServiceType } from '@app/objects/Pet';\nimport { PriceType, Price, PriceKind } from '@app/objects/Price';\nimport { Query } from '@app/services/query/Query';\nimport { ProductContainer } from '@app/components/Utils/Prices/Helpers';\n\nexport interface FilterData {\n\tcrematoryId: number;\n\tclinicId: Nullable;\n\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\n\tpetSpecieId: number;\n\tweight: number;\n\n\tdeliveryType: DeliveryType;\n\tdiscountId: Nullable;\n}\n\ninterface Pick {\n\tprice: Price;\n\tdistance: number;\n}\n\nfunction getDistance(rangeFrom: number, rangeTo: number, value: number): number {\n\tif (value < rangeFrom) return -1;\n\tif (value >= rangeTo) return value - rangeTo;\n\n\treturn 0;\n}\n\nfunction select(list: Array): Nullable {\n\tlet min: Nullable = null;\n\n\tfor (let i = 0; i < list.length; i++) {\n\t\tconst item = list[i];\n\n\t\tif (min === null || item.distance <= min.distance) {\n\t\t\tmin = item;\n\t\t}\n\t}\n\n\treturn min?.price ?? null;\n}\n\nexport class PriceFilter {\n\tprivate readonly data: FilterData;\n\n\tconstructor(data: FilterData) {\n\t\tthis.data = data;\n\t}\n\n\tprivate bySpecies(query: Query): Query {\n\t\tif (this.data.petSpecieId <= 0) return query.where((q: Price) => q.petSpecieId === null);\n\n\t\tconst filtered = query.clone().where((q: Price) => q.petSpecieId === this.data.petSpecieId);\n\t\tif (filtered.any()) return filtered;\n\n\t\treturn query.where((q: Price) => q.petSpecieId === null);\n\t}\n\n\tprivate getProductQuery(prices: Array, type: PriceKind): Array {\n\t\tconst key = type === PriceKind.UrnPrice ? 'urns' : 'products';\n\t\tconst ids = this.data[key].filter((q: ProductContainer) => !q.removed).map>((q: ProductContainer) => q.categoryId);\n\t\tif (!ids.length) {\n\t\t\tids.push(null);\n\t\t}\n\n\t\tconst products = prices\n\t\t\t.filter((q: Price) => q.priceKind === type)\n\t\t\t.filter((q: Price) => q.clinicId === this.data.clinicId || q.clinicId === null)\n\t\t\t.filter((q: Price) => ids.includes(q.inventoryItemId));\n\n\t\tconst clinicQuery = products.filter((q: Price) => q.clinicId === this.data.clinicId);\n\t\tif (clinicQuery.length !== 0) return clinicQuery;\n\n\t\treturn products.filter((q: Price) => q.clinicId === null);\n\t}\n\n\tprivate getDiscountQuery(prices: Array): Array {\n\t\treturn prices\n\t\t\t.filter((q: Price) => q.priceKind === PriceKind.Discount)\n\t\t\t.filter((q: Price) => q.clinicId === null);\n\t}\n\n\tprivate getQuery(prices: Array) {\n\t\tconst delivery = prices\n\t\t\t.filter((q: Price) => q.crematoryId === this.data.crematoryId)\n\t\t\t.filter((q: Price) => q.serviceType === this.data.serviceType)\n\t\t\t.filter((q: Price) => q.priceType === this.data.priceType)\n\t\t\t.filter((q: Price) => q.priceKind === PriceKind.DeliveryPrice);\n\n\t\tconst clinicQuery = delivery.filter((q: Price) => q.clinicId === this.data.clinicId);\n\n\t\tif (clinicQuery.length === 0) {\n\t\t\treturn delivery.filter((q: Price) => q.clinicId === null);\n\t\t}\n\n\t\treturn delivery.filter((q: Price) => q.clinicId === this.data.clinicId);\n\t}\n\n\tprivate getRushQuery(prices: Array) {\n\t\tconst rush = prices\n\t\t\t.filter((q: Price) => q.crematoryId === this.data.crematoryId)\n\t\t\t.filter((q: Price) => q.serviceType === this.data.serviceType)\n\t\t\t.filter((q: Price) => q.priceType === this.data.priceType)\n\t\t\t.filter((q: Price) => q.priceKind === PriceKind.RushFee);\n\n\t\tconst clinicQuery = rush.filter((q: Price) => q.clinicId === this.data.clinicId);\n\n\t\tif (clinicQuery.length === 0) {\n\t\t\treturn rush.filter((q: Price) => q.clinicId === null);\n\t\t}\n\n\t\treturn rush.filter((q: Price) => q.clinicId === this.data.clinicId);\n\t}\n\n\tprivate getBaseQuery(prices: Array): Query {\n\t\tconst base: Query = new Query(prices)\n\t\t\t.where((q: Price) => q.crematoryId === this.data.crematoryId)\n\t\t\t.where((q: Price) => q.serviceType === this.data.serviceType)\n\t\t\t.where((q: Price) => q.priceKind === PriceKind.BasePrice);\n\n\t\tconst clinicQuery = base.clone().where((q: Price) => q.clinicId === this.data.clinicId);\n\t\tif (clinicQuery.any()) {\n\t\t\treturn this.bySpecies(clinicQuery);\n\t\t}\n\n\t\treturn this.bySpecies(base.where((q: Price) => q.clinicId === null));\n\t}\n\n\tpublic getBase(prices: Array): Nullable {\n\t\tconst list = this.getBaseQuery(prices).array().sort((a: Price, b: Price) => a.from - b.from);\n\n\t\tconst pick: Array = list.map((q: Price) => ({\n\t\t\tprice: q,\n\t\t\tdistance: getDistance(q.from, q.to, this.data.weight),\n\t\t})).filter((q: Pick) => q.distance >= 0);\n\n\t\treturn select(pick);\n\t}\n\n\tpublic getDelivery(prices: Array): Nullable {\n\t\treturn this.getQuery(prices).find((q: Price) => q.deliveryType === this.data.deliveryType);\n\t}\n\n\tpublic getProduct(prices: Array, type: PriceKind): Array {\n\t\treturn this.getProductQuery(prices, type);\n\t}\n\n\tpublic getDiscount(prices: Array): Nullable {\n\t\treturn this.getDiscountQuery(prices).find((q: Price) => q.id === this.data.discountId);\n\t}\n\n\tpublic getRush(prices: Array): Nullable {\n\t\tconst query = this.getRushQuery(prices);\n\t\tif (!query.length) return null;\n\n\t\treturn query[0];\n\t}\n}\n","import { v4 } from 'uuid';\n\nimport { Nullable, Optional, isPresent } from '@common/typescript/objects/Nullable';\n\nimport { PetEngraving, PetPrice } from '@app/objects/Pet';\nimport {\n\tPrice,\n\tPriceKind,\n\tDiscountType,\n\tPriceType,\n} from '@app/objects/Price';\nimport { KeyPriceParamsContainer, ProductContainer } from '@app/components/Utils/Prices/Helpers';\nimport { PriceFilter } from '@app/services/pricing/filters/PriceFilter';\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { ClinicDiscount, ApplyFilter } from '@app/objects/Clinic';\nimport { TaxPolicy } from '@app/objects/Crematory';\n\nfunction sum(list: Array): number {\n\treturn list.reduce((acc: number, item: PetPrice) => acc + item.value, 0);\n}\n\n/**\n * This PriceStack is constructed based on Raw Data\n * This is used for creating new pets or editing existing ones (when prices are overridden)\n */\nexport class CalculatedPriceStack implements IPriceStack {\n\tprivate readonly _base: Nullable = null;\n\tprivate readonly _engravings: Array = [];\n\tprivate readonly _rush: Nullable = null;\n\tprivate readonly _services: Array = [];\n\tprivate readonly _urns: Array = [];\n\tprivate readonly _products: Array = [];\n\tprivate readonly _clinicDiscounts: Array = [];\n\tprivate readonly _discount: Nullable = null;\n\tprivate readonly _delivery: Nullable = null;\n\tprivate readonly _pickup: Nullable = null;\n\n\tprivate readonly _serviceTaxPercentage: number = 0;\n\tprivate readonly _productTaxPercentage: number = 0;\n\n\tprivate readonly _isTaxPolicyExcluded: boolean = true;\n\n\tprivate getBase(prices: Array, params: KeyPriceParamsContainer): Nullable {\n\t\tconst price = new PriceFilter(params).getBase(prices);\n\t\tif (!price) return null;\n\n\t\treturn {\n\t\t\tid: -1,\n\t\t\tclientId: v4(),\n\t\t\tname: 'Base Price',\n\n\t\t\tvalue: price.value,\n\t\t\textra: price.extra * Math.max((params.weight - price.to), 0),\n\t\t\tdiscount: 0,\n\t\t\ttax: 0,\n\n\t\t\tcount: 0,\n\t\t\tcompletedCount: 0,\n\t\t\tdone: false,\n\n\t\t\tbatchPrice: price.batchPrice,\n\t\t\tbatchCount: price.batchCount,\n\n\t\t\tprice,\n\t\t\tpriceId: price.id,\n\n\t\t\tpet: null,\n\t\t\tpetId: params.id,\n\n\t\t\teditor: null,\n\t\t\teditorId: null,\n\n\t\t\tpickupService: null,\n\t\t\tpickupServiceId: null,\n\n\t\t\tnode: null,\n\t\t\tnodeId: null,\n\n\t\t\tnote: '',\n\t\t};\n\t}\n\n\tprivate getEngraving(prices: Array, params: KeyPriceParamsContainer): Array {\n\t\tconst source = prices\n\t\t\t.filter((item: Price) => item.priceKind === PriceKind.Engraving)\n\t\t\t.sort((a: Price, b: Price) => (a.order ?? 0) - (b.order ?? 0));\n\t\tconst texts = params.engraving\n\t\t\t.filter(isPresent)\n\t\t\t.sort((a: PetEngraving, b: PetEngraving) => a.order - b.order);\n\t\tconst result: Array = [];\n\n\t\tconst map = new Map();\n\t\tsource.filter((item: Price) => item.clinicId === null)\n\t\t\t.forEach((item: Price) => {\n\t\t\t\tif (typeof (item.order) !== 'number') return;\n\n\t\t\t\tmap.set(item.order, item);\n\t\t\t});\n\t\tsource.filter((item: Price) => item.clinicId !== null)\n\t\t\t.forEach((item: Price) => {\n\t\t\t\tif (typeof item.order !== 'number') return;\n\n\t\t\t\tmap.set(item.order, item);\n\t\t\t});\n\n\t\tconst list = [...map.values()].sort((a: Price, b: Price) => (a.order ?? 0) - (b.order ?? 0));\n\t\tconst count = Math.min(list.length, texts.length);\n\n\t\tfor (let i = 0; i < count; i++) {\n\t\t\tconst reference = list[i];\n\t\t\tresult.push({\n\t\t\t\tid: -1,\n\t\t\t\tclientId: v4(),\n\t\t\t\tname: 'Engraving',\n\n\t\t\t\tvalue: reference.value,\n\t\t\t\textra: 0,\n\t\t\t\tdiscount: 0,\n\t\t\t\ttax: 0,\n\n\t\t\t\tcount: 0,\n\t\t\t\tcompletedCount: 0,\n\t\t\t\tdone: false,\n\n\t\t\t\tbatchPrice: 0,\n\t\t\t\tbatchCount: 0,\n\n\t\t\t\tprice: reference,\n\t\t\t\tpriceId: reference.id,\n\n\t\t\t\tpet: null,\n\t\t\t\tpetId: params.id,\n\n\t\t\t\teditor: null,\n\t\t\t\teditorId: null,\n\n\t\t\t\tpickupService: null,\n\t\t\t\tpickupServiceId: null,\n\n\t\t\t\tnode: null,\n\t\t\t\tnodeId: null,\n\n\t\t\t\tnote: '',\n\t\t\t});\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tprivate getRush(prices: Array, params: KeyPriceParamsContainer): Nullable {\n\t\tif (!params.rush) return null;\n\n\t\tconst price = new PriceFilter(params).getRush(prices);\n\t\tif (!price) return price;\n\n\t\treturn {\n\t\t\tid: -1,\n\t\t\tclientId: v4(),\n\t\t\tname: 'Rush',\n\n\t\t\tvalue: price.value,\n\t\t\textra: 0,\n\t\t\tdiscount: 0,\n\t\t\ttax: 0,\n\n\t\t\tcount: 0,\n\t\t\tcompletedCount: 0,\n\t\t\tdone: false,\n\n\t\t\tbatchPrice: 0,\n\t\t\tbatchCount: 0,\n\n\t\t\tprice,\n\t\t\tpriceId: price.id,\n\n\t\t\tpet: null,\n\t\t\tpetId: params.id,\n\n\t\t\teditor: null,\n\t\t\teditorId: null,\n\n\t\t\tpickupService: null,\n\t\t\tpickupServiceId: null,\n\n\t\t\tnode: null,\n\t\t\tnodeId: null,\n\n\t\t\tnote: '',\n\t\t};\n\t}\n\n\t// check this method\n\tprivate getProducts(prices: Array, params: KeyPriceParamsContainer, type: PriceKind): Array {\n\t\tconst list = new PriceFilter(params).getProduct(prices, type);\n\t\tconst key = type === PriceKind.UrnPrice ? 'urns' : 'products';\n\n\t\treturn list.map>((item: Price) => {\n\t\t\tif (item.priceKind === type && item.priceKind === PriceKind.ProductPrice && item.inventoryItemId === null && !params.urns.length) {\n\t\t\t\treturn {\n\t\t\t\t\tid: -1,\n\t\t\t\t\tclientId: v4(),\n\t\t\t\t\tname: 'No Item',\n\n\t\t\t\t\tvalue: item.value,\n\t\t\t\t\textra: 0,\n\t\t\t\t\tdiscount: 0,\n\t\t\t\t\ttax: 0,\n\n\t\t\t\t\tcount: 1,\n\t\t\t\t\tcompletedCount: 0,\n\t\t\t\t\tdone: false,\n\n\t\t\t\t\tbatchPrice: 0,\n\t\t\t\t\tbatchCount: 0,\n\n\t\t\t\t\tprice: item,\n\t\t\t\t\tpriceId: item.id,\n\n\t\t\t\t\tpet: null,\n\t\t\t\t\tpetId: params.id,\n\n\t\t\t\t\tstoreEntryPick: null,\n\n\t\t\t\t\teditor: null,\n\t\t\t\t\teditorId: null,\n\n\t\t\t\t\tpickupService: null,\n\t\t\t\t\tpickupServiceId: null,\n\n\t\t\t\t\tnode: null,\n\t\t\t\t\tnodeId: null,\n\n\t\t\t\t\tnote: '',\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (item.priceKind === type && item.priceKind === PriceKind.UrnPrice && item.inventoryItemId === null && !params.urns.length) {\n\t\t\t\tparams.urns.forEach((u) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: -1,\n\t\t\t\t\t\tclientId: v4(),\n\t\t\t\t\t\tname: 'No Item',\n\n\t\t\t\t\t\tvalue: u.value,\n\t\t\t\t\t\textra: 0,\n\t\t\t\t\t\tdiscount: 0,\n\t\t\t\t\t\ttax: 0,\n\n\t\t\t\t\t\tcount: 1,\n\t\t\t\t\t\tcompletedCount: 0,\n\t\t\t\t\t\tdone: false,\n\n\t\t\t\t\t\tbatchPrice: 0,\n\t\t\t\t\t\tbatchCount: 0,\n\n\t\t\t\t\t\tprice: item,\n\t\t\t\t\t\tpriceId: item.id,\n\n\t\t\t\t\t\tpet: null,\n\t\t\t\t\t\tpetId: params.id,\n\n\t\t\t\t\t\teditor: null,\n\t\t\t\t\t\teditorId: null,\n\n\t\t\t\t\t\tpickupService: null,\n\t\t\t\t\t\tpickupServiceId: null,\n\n\t\t\t\t\t\tnode: null,\n\t\t\t\t\t\tnodeId: null,\n\n\t\t\t\t\t\tnote: '',\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst source = params[key].find((q: ProductContainer) => q.categoryId === item.inventoryItemId);\n\t\t\tif (!source) return null;\n\n\t\t\tconst extra = Math.max(source.count - item.batchCount, 0) * item.value;\n\n\t\t\treturn {\n\t\t\t\tid: -1,\n\t\t\t\tclientId: v4(),\n\t\t\t\tname: item.inventoryItem?.name ?? 'Unknown item',\n\n\t\t\t\tvalue: source.value,\n\t\t\t\textra,\n\t\t\t\tdiscount: 0,\n\t\t\t\ttax: 0,\n\n\t\t\t\tcount: source.count,\n\t\t\t\tcompletedCount: 0,\n\t\t\t\tdone: false,\n\n\t\t\t\tbatchPrice: item.batchPrice,\n\t\t\t\tbatchCount: item.batchCount,\n\n\t\t\t\tprice: item,\n\t\t\t\tpriceId: item.id,\n\n\t\t\t\tpet: null,\n\t\t\t\tpetId: params.id,\n\n\t\t\t\teditor: null,\n\t\t\t\teditorId: null,\n\n\t\t\t\tpickupService: null,\n\t\t\t\tpickupServiceId: null,\n\n\t\t\t\tnode: null,\n\t\t\t\tnodeId: null,\n\n\t\t\t\tnote: '',\n\t\t\t};\n\t\t})\n\t\t\t.filter((item: Nullable) => item !== null) as Array;\n\t}\n\n\tprivate getDiscount(prices: Array, params: KeyPriceParamsContainer): Nullable {\n\t\tconst price = new PriceFilter(params).getDiscount(prices);\n\t\tif (!price) return null;\n\n\t\treturn {\n\t\t\tid: -1,\n\t\t\tclientId: v4(),\n\t\t\tname: price.name,\n\n\t\t\tvalue: 0,\n\t\t\textra: 0,\n\t\t\tdiscount: 0,\n\t\t\ttax: 0,\n\n\t\t\tcount: 0,\n\t\t\tcompletedCount: 0,\n\t\t\tdone: false,\n\n\t\t\tbatchPrice: 0,\n\t\t\tbatchCount: 0,\n\n\t\t\tprice,\n\t\t\tpriceId: price.id,\n\n\t\t\tpet: null,\n\t\t\tpetId: params.id,\n\n\t\t\teditor: null,\n\t\t\teditorId: null,\n\n\t\t\tpickupService: null,\n\t\t\tpickupServiceId: null,\n\n\t\t\tnode: null,\n\t\t\tnodeId: null,\n\n\t\t\tnote: '',\n\t\t};\n\t}\n\n\tprivate getDelivery(prices: Array, params: KeyPriceParamsContainer): Nullable {\n\t\tconst price = new PriceFilter(params).getDelivery(prices);\n\t\tif (!price) return price;\n\n\t\treturn {\n\t\t\tid: -1,\n\t\t\tclientId: v4(),\n\t\t\tname: 'Delivery',\n\n\t\t\tvalue: price.value,\n\t\t\textra: 0,\n\t\t\tdiscount: 0,\n\t\t\ttax: 0,\n\n\t\t\tcount: 0,\n\t\t\tcompletedCount: 0,\n\t\t\tdone: false,\n\n\t\t\tbatchPrice: 0,\n\t\t\tbatchCount: 0,\n\n\t\t\tprice,\n\t\t\tpriceId: price.id,\n\n\t\t\tpet: null,\n\t\t\tpetId: params.id,\n\n\t\t\teditor: null,\n\t\t\teditorId: null,\n\n\t\t\tpickupService: null,\n\t\t\tpickupServiceId: null,\n\n\t\t\tnode: null,\n\t\t\tnodeId: null,\n\n\t\t\tnote: '',\n\t\t};\n\t}\n\n\tprivate getClinicDiscount(discounts: Array, params: KeyPriceParamsContainer): Array {\n\t\tconst result: Array = [];\n\n\t\tif (!discounts) return result;\n\n\t\tconst list = discounts\n\t\t\t.filter((item: ClinicDiscount) => item.serviceType === params.serviceType)\n\t\t\t.filter((item: ClinicDiscount) => item.clinicId === params.clinicId)\n\t\t\t.filter((item: ClinicDiscount) => item.crematoryId === params.crematoryId);\n\t\tconst cremation = list.find((item: ClinicDiscount) => item.appliesTo === ApplyFilter.BasePrice);\n\t\tconst service = list.find((item: ClinicDiscount) => item.appliesTo === ApplyFilter.ServicePrice);\n\n\t\tif (cremation) {\n\t\t\tconst discount = cremation.value / 100;\n\t\t\tconst total = (this.base?.value ?? 0) + (this.base?.extra ?? 0);\n\n\t\t\tresult.push({\n\t\t\t\tid: 0,\n\t\t\t\tname: cremation.name,\n\t\t\t\tclientId: v4(),\n\n\t\t\t\tpetId: params.id,\n\t\t\t\tpet: null,\n\n\t\t\t\tpriceId: 0,\n\t\t\t\tprice: {\n\t\t\t\t\tid: 0,\n\t\t\t\t\tname: cremation.name,\n\t\t\t\t\tdescription: cremation.description,\n\t\t\t\t\tunit: DiscountType.Percentage,\n\t\t\t\t\tapplyTo: PriceKind.BasePrice,\n\n\t\t\t\t\tpetSpecieId: null,\n\t\t\t\t\tpetSpecie: null,\n\n\t\t\t\t\tcrematoryId: cremation.crematoryId,\n\t\t\t\t\tcrematory: null,\n\n\t\t\t\t\tclinicId: cremation.clinicId,\n\t\t\t\t\tclinic: null,\n\n\t\t\t\t\tspecialServiceId: null,\n\t\t\t\t\tspecialService: null,\n\n\t\t\t\t\tpickupServiceId: null,\n\n\t\t\t\t\tinventoryItem: null,\n\t\t\t\t\tinventoryItemId: null,\n\n\t\t\t\t\tpriceType: PriceType.Wholesale,\n\t\t\t\t\tserviceType: cremation.serviceType,\n\t\t\t\t\tpriceKind: PriceKind.ClinicDiscount,\n\t\t\t\t\tdeliveryType: null,\n\t\t\t\t\tdeliveryEntityId: null,\n\n\t\t\t\t\tfrom: 0,\n\t\t\t\t\tto: 0,\n\n\t\t\t\t\tvalue: cremation.value,\n\t\t\t\t\textra: 0,\n\n\t\t\t\t\tbatchPrice: 0,\n\t\t\t\t\tbatchCount: 0,\n\t\t\t\t\tisDefault: false,\n\t\t\t\t},\n\n\t\t\t\tcount: 0,\n\t\t\t\tdone: false,\n\t\t\t\tcompletedCount: 0,\n\n\t\t\t\tvalue: total * discount,\n\t\t\t\textra: 0,\n\t\t\t\tdiscount: 0,\n\t\t\t\ttax: 0,\n\n\t\t\t\teditor: null,\n\t\t\t\teditorId: null,\n\n\t\t\t\tpickupService: null,\n\t\t\t\tpickupServiceId: null,\n\n\t\t\t\tbatchCount: 0,\n\t\t\t\tbatchPrice: 0,\n\n\t\t\t\tentry: null,\n\t\t\t\tnode: null,\n\t\t\t\tnodeId: null,\n\t\t\t\ttoSelect: false,\n\n\t\t\t\tnote: '',\n\t\t\t});\n\t\t}\n\n\t\tif (service) {\n\t\t\tconst discount = service.value / 100;\n\t\t\tconst total = this._services.reduce((acc: number, cur: PetPrice) => acc + cur.value, 0);\n\t\t\tresult.push({\n\t\t\t\tid: 0,\n\t\t\t\tname: service.name,\n\t\t\t\tclientId: v4(),\n\n\t\t\t\tpetId: params.id,\n\t\t\t\tpet: null,\n\n\t\t\t\tpriceId: 0,\n\t\t\t\tprice: {\n\t\t\t\t\tid: 0,\n\t\t\t\t\tname: service.name,\n\t\t\t\t\tdescription: service.description,\n\t\t\t\t\tunit: DiscountType.Percentage,\n\t\t\t\t\tapplyTo: PriceKind.SpecialServicePrice,\n\n\t\t\t\t\tpetSpecieId: null,\n\t\t\t\t\tpetSpecie: null,\n\n\t\t\t\t\tcrematoryId: service.crematoryId,\n\t\t\t\t\tcrematory: null,\n\n\t\t\t\t\tclinicId: service.clinicId,\n\t\t\t\t\tclinic: null,\n\n\t\t\t\t\tspecialServiceId: null,\n\t\t\t\t\tspecialService: null,\n\n\t\t\t\t\tpickupServiceId: null,\n\n\t\t\t\t\tinventoryItem: null,\n\t\t\t\t\tinventoryItemId: null,\n\n\t\t\t\t\tpriceType: PriceType.Wholesale,\n\t\t\t\t\tserviceType: service.serviceType,\n\t\t\t\t\tpriceKind: PriceKind.ClinicDiscount,\n\t\t\t\t\tdeliveryType: null,\n\t\t\t\t\tdeliveryEntityId: null,\n\n\t\t\t\t\tfrom: 0,\n\t\t\t\t\tto: 0,\n\n\t\t\t\t\tvalue: service.value,\n\t\t\t\t\textra: 0,\n\n\t\t\t\t\tbatchPrice: 0,\n\t\t\t\t\tbatchCount: 0,\n\t\t\t\t\tisDefault: false,\n\t\t\t\t},\n\n\t\t\t\tcount: 0,\n\t\t\t\tdone: false,\n\t\t\t\tcompletedCount: 0,\n\n\t\t\t\tvalue: total * discount,\n\t\t\t\textra: 0,\n\t\t\t\tdiscount: 0,\n\t\t\t\ttax: 0,\n\n\t\t\t\teditor: null,\n\t\t\t\teditorId: null,\n\n\t\t\t\tpickupService: null,\n\t\t\t\tpickupServiceId: null,\n\n\t\t\t\tbatchCount: 0,\n\t\t\t\tbatchPrice: 0,\n\n\t\t\t\tentry: null,\n\t\t\t\tnode: null,\n\t\t\t\tnodeId: null,\n\t\t\t\ttoSelect: false,\n\n\t\t\t\tnote: '',\n\t\t\t});\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tprivate applyDiscount(fraction: number, prices: Array): number {\n\t\tlet total: number = 0;\n\n\t\tprices.forEach((item: PetPrice) => {\n\t\t\tlet value = item.value + (item.price?.priceKind === PriceKind.BasePrice ? item.price.extra : 0);\n\t\t\tvalue = Math.max(value - item.discount);\n\n\t\t\tconst discount = value * fraction;\n\t\t\titem.discount += discount;\n\t\t\ttotal += discount;\n\t\t});\n\n\t\treturn total;\n\t}\n\n\tprivate applyAbsoluteDiscount(discount: number, prices: Array): number {\n\t\tlet budget = discount;\n\t\tlet total = 0;\n\n\t\tprices.forEach((item: PetPrice) => {\n\t\t\tif (budget <= 0) return;\n\n\t\t\tlet value = item.value + (item.price?.priceKind === PriceKind.BasePrice ? item.extra : 0);\n\t\t\tvalue = Math.max(value - item.discount, 0);\n\n\t\t\tconst result = Math.max(value - budget, 0);\n\t\t\tconst diff = value - result;\n\n\t\t\titem.discount += diff;\n\t\t\tbudget -= diff;\n\t\t\ttotal += diff;\n\t\t});\n\n\t\treturn total;\n\t}\n\n\tprivate applyClinicDiscounts(): void {\n\t\tconst discounts = this._clinicDiscounts;\n\t\tif (!discounts.length) return;\n\n\t\tdiscounts.forEach((item: PetPrice) => {\n\t\t\tif (!item.price) return;\n\n\t\t\tif (item.price.applyTo === PriceKind.BasePrice && this._base) {\n\t\t\t\titem.value = this.applyDiscount(item.price.value / 100, [this._base]);\n\t\t\t}\n\n\t\t\tif (item.price.applyTo === PriceKind.SpecialServicePrice && this.services.length) {\n\t\t\t\titem.value = this.applyDiscount(item.price.value / 100, this.services);\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate applyDiscounts(): void {\n\t\tthis.applyClinicDiscounts();\n\n\t\tconst discount = this._discount;\n\t\tif (!discount) return;\n\t\tif (!discount.price) return;\n\n\t\tconst apply: (prices: Array>) => number = (prices: Array>): number => {\n\t\t\tif (!discount.price) return 0;\n\n\t\t\tconst items: Array = prices.filter(isPresent);\n\t\t\tif (!prices.length) return 0;\n\n\t\t\tif (discount.price.unit === DiscountType.Percentage) {\n\t\t\t\treturn this.applyDiscount(discount.price.value / 100, items);\n\t\t\t}\n\n\t\t\tif (discount.price.unit === DiscountType.Value) {\n\t\t\t\treturn this.applyAbsoluteDiscount(discount.price.value, items);\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t};\n\n\t\tswitch (discount.price.applyTo) {\n\t\tcase PriceKind.BasePrice:\n\t\t\t// eslint-disable-next-line no-case-declarations\n\t\t\tdiscount.value = apply([this._base]);\n\n\t\t\treturn;\n\n\t\tcase PriceKind.SpecialServicePrice:\n\t\t\tdiscount.value = apply(this._services);\n\n\t\t\treturn;\n\n\t\tcase PriceKind.UrnPrice:\n\t\t\t// eslint-disable-next-line no-case-declarations\n\t\t\tdiscount.value = apply(this._urns);\n\n\t\t\treturn;\n\n\t\tdefault:\n\t\t\t// eslint-disable-next-line no-case-declarations\n\t\t\tconst list: Array = [\n\t\t\t\tthis._base,\n\t\t\t\t...this._services,\n\t\t\t\t...this._urns,\n\t\t\t].filter(isPresent);\n\t\t\tif (!list.length) return;\n\n\t\t\tdiscount.value = apply(list);\n\t\t}\n\t}\n\n\tprivate calculateIncludedTax(fraction: number, value: number): number {\n\t\treturn (value * fraction) / (fraction + 1);\n\t}\n\n\tprivate calculateExcludedTax(fraction: number, value: number): number {\n\t\treturn value * fraction;\n\t}\n\n\tprivate applyTax(items: Array, fraction: number, policy: TaxPolicy): number {\n\t\tconst calculate = policy === TaxPolicy.TaxIncluded ? this.calculateIncludedTax : this.calculateExcludedTax;\n\t\tlet total: number = 0;\n\n\t\titems.forEach((item: PetPrice) => {\n\t\t\tlet value = item.value + (item.price?.priceKind === PriceKind.BasePrice ? item.extra : 0);\n\t\t\tvalue = Math.max(value - item.discount, 0);\n\n\t\t\tconst tax = calculate(fraction, value);\n\t\t\titem.tax = tax;\n\t\t\ttotal += tax;\n\t\t});\n\n\t\treturn total;\n\t}\n\n\tprivate applyTaxes([serviceFraction, productFraction]: [number, number], policy: TaxPolicy): [number, number] {\n\t\tconst services: Array = [\n\t\t\tthis.base,\n\t\t\t...this.engravings,\n\t\t\tthis.rush,\n\t\t\tthis.delivery,\n\t\t\tthis.pickup,\n\t\t].filter(isPresent);\n\t\tconst products: Array = [\n\t\t\t...this.urns,\n\t\t\t...this.products,\n\t\t];\n\n\t\treturn [this.applyTax(services, serviceFraction, policy), this.applyTax(products, productFraction, policy)];\n\t}\n\n\tprivate clear(item: Optional): void {\n\t\tif (!item) return;\n\n\t\titem.tax = 0;\n\t\titem.discount = 0;\n\t}\n\n\tprivate clearList(list: Array): void {\n\t\tif (!list.length) return;\n\n\t\tlist.forEach((item: PetPrice) => {\n\t\t\titem.tax = 0;\n\t\t\titem.discount = 0;\n\t\t});\n\t}\n\n\tprivate clearAll(): void {\n\t\tthis.clear(this._base);\n\t\tthis.clear(this._rush);\n\t\tthis.clear(this._discount);\n\t\tthis.clear(this._pickup);\n\t\tthis.clear(this._delivery);\n\n\t\tthis.clearList(this._services);\n\t\tthis.clearList(this._urns);\n\t\tthis.clearList(this._products);\n\t\tthis.clearList(this._engravings);\n\t}\n\n\tpublic constructor(\n\t\tprices: Array,\n\t\tservices: Array,\n\t\tproducts: Array,\n\t\tparams: KeyPriceParamsContainer,\n\t\tclinicDiscounts: Array,\n\t\ttaxPolicy: TaxPolicy,\n\t) {\n\t\tthis._base = this.getBase(prices, params);\n\t\tthis._engravings = this.getEngraving(prices, params);\n\t\tthis._rush = this.getRush(prices, params);\n\t\tthis._services = services\n\t\t\t.filter((item: PetPrice) => !item.removed)\n\t\t\t.filter((item: PetPrice) => item.price?.priceKind === PriceKind.SpecialServicePrice);\n\t\tthis._urns = params.urns.filter((item: PetPrice) => !item.removed);\n\t\tthis._products = products\n\t\t\t.filter((item: PetPrice) => !item.removed)\n\t\t\t.filter((item: PetPrice) => item.price?.priceKind === PriceKind.ProductPrice);\n\n\t\tthis._clinicDiscounts = clinicDiscounts.length\n\t\t\t? this.getClinicDiscount(clinicDiscounts, params)\n\t\t\t: services.filter((item: PetPrice) => item?.price?.priceKind === PriceKind.ClinicDiscount && !item.removed);\n\t\tthis._discount = this.getDiscount(prices, params);\n\n\t\tthis._delivery = this.getDelivery(prices, params);\n\t\tthis._pickup = services\n\t\t\t.filter((item: PetPrice) => !item.removed)\n\t\t\t.find((item: PetPrice) => item.price?.priceKind === PriceKind.PickupPrice) ?? null;\n\n\t\tthis._serviceTaxPercentage = params.summary.serviceTaxPercentage / 100;\n\t\tthis._productTaxPercentage = params.summary.productTaxPercentage / 100;\n\n\t\tthis.clearAll();\n\t\tthis.applyDiscounts();\n\t\tthis.applyTaxes([this._serviceTaxPercentage, this._productTaxPercentage], taxPolicy);\n\n\t\tthis._isTaxPolicyExcluded = taxPolicy === TaxPolicy.TaxExcluded;\n\t}\n\n\tpublic get base(): Nullable {\n\t\treturn this._base;\n\t}\n\n\tpublic get engravings(): Array {\n\t\treturn this._engravings;\n\t}\n\n\tpublic get services(): Array {\n\t\treturn this._services;\n\t}\n\n\tpublic get products(): Array {\n\t\treturn this._products;\n\t}\n\n\tpublic get urns(): Array {\n\t\treturn this._urns;\n\t}\n\n\tpublic get productTotal(): number {\n\t\tconst products = sum(this.products);\n\t\tconst urns = sum(this.urns);\n\n\t\treturn products + urns;\n\t}\n\n\tpublic get productTaxPercentage(): number {\n\t\treturn this._productTaxPercentage;\n\t}\n\n\tpublic get productTaxTotal(): number {\n\t\tconst productTax = this._isTaxPolicyExcluded ? this.productTaxPercentage : this.productTaxPercentage * 100;\n\t\tconst tax = productTax * (this.productTotal - (this.discount?.value ?? 0));\n\t\tconst result = this._isTaxPolicyExcluded ? tax : tax / (100 + productTax);\n\n\t\treturn Math.max(result, 0);\n\t}\n\n\tpublic get serviceTotal(): number {\n\t\tconst base = (this.base?.value ?? 0) + (this.base?.extra ?? 0);\n\t\tconst services = sum(this.services) + sum(this.engravings) + (this.rush?.value ?? 0);\n\n\t\treturn base + services - sum(this.clinicDiscounts);\n\t}\n\n\tpublic get serviceTaxPercentage(): number {\n\t\treturn this._serviceTaxPercentage;\n\t}\n\n\tpublic get serviceTaxTotal(): number {\n\t\tconst serviceTax = this._isTaxPolicyExcluded ? this.serviceTaxPercentage : this.serviceTaxPercentage * 100;\n\t\tconst tax = serviceTax * (this.serviceTotal - (this.discount?.value ?? 0) + (this.delivery?.value ?? 0));\n\t\tconst result = this._isTaxPolicyExcluded ? tax : tax / (100 + serviceTax);\n\n\t\treturn Math.max(result, 0);\n\t}\n\n\tpublic get discount(): Nullable {\n\t\treturn this._discount;\n\t}\n\n\tpublic get pickup(): Nullable {\n\t\treturn this._pickup;\n\t}\n\n\tpublic get clinicDiscounts(): Array {\n\t\treturn this._clinicDiscounts;\n\t}\n\n\tpublic get delivery(): Nullable {\n\t\treturn this._delivery;\n\t}\n\n\tpublic get rush(): Nullable {\n\t\treturn this._rush;\n\t}\n\n\tpublic get subtotal(): number {\n\t\treturn this.serviceTotal + this.productTotal - (this.discount?.value ?? 0) + (this.delivery?.value ?? 0) + (this.pickup?.value ?? 0);\n\t}\n\n\tpublic get taxTotal(): number {\n\t\treturn this.serviceTaxTotal + this.productTaxTotal;\n\t}\n\n\tpublic get total(): number {\n\t\treturn this._isTaxPolicyExcluded ? this.subtotal + this.taxTotal : this.subtotal;\n\t}\n}\n","import { Nullable } from '@common/typescript/objects/Nullable';\n\nimport {\n\tPrice,\n\tPriceKind,\n} from '@app/objects/Price';\nimport {\n\tKeyPriceParamsContainer,\n\tshouldKeepPrice,\n} from '@app/components/Utils/Prices/Helpers';\nimport { DeliveryType, PetPrice } from '@app/objects/Pet';\n\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { ExistingPriceStack } from '@app/services/pricing/ExistingPriceStack';\nimport { CalculatedPriceStack } from '@app/services/pricing/CalculatedPriceStack';\nimport { ClinicDiscount } from '@app/objects/Clinic';\nimport { TaxPolicy } from '@app/objects/Crematory';\n\nexport interface Values extends KeyPriceParamsContainer {\n\tid: number;\n\tservices?: Array;\n\trecalculatePrice: boolean;\n\tdeliveryType: DeliveryType;\n\tproducts?: Array;\n\tclinicDiscounts: Nullable>;\n}\n\nexport class PricingManager {\n\tpublic getPrice(\n\t\tcurrent: Values,\n\t\tinitial: Values,\n\t\tprices: Array,\n\t\tclinicDiscounts: Array,\n\t\ttaxPolicy: TaxPolicy,\n\t): IPriceStack {\n\t\tconst list = current.services ?? [];\n\t\tconst basePrice: Nullable = list.find((item: PetPrice) => item.price?.priceKind === PriceKind.BasePrice);\n\t\tconst keepPrice: boolean = shouldKeepPrice(initial, current) && !current.recalculatePrice;\n\n\t\tif (current.id > 0 && keepPrice && basePrice) {\n\t\t\treturn new ExistingPriceStack(list, current);\n\t\t}\n\n\t\treturn new CalculatedPriceStack(prices, current.services ?? [], current.products ?? [], current, clinicDiscounts, taxPolicy);\n\t}\n}\n","import * as React from 'react';\n\nimport { Field, FieldProps } from 'formik';\n\nimport { FormikInput } from '@common/react/components/Forms/FormikInput/FormikInput';\nimport { FileInterface } from '@common/typescript/objects/FileInterface';\nimport { Nullable } from '@common/typescript/objects/Nullable';\nimport { ModalPreview } from '@common/react/components/Forms/Upload/ModalPreview';\n\nimport { SectionContainer } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Containers/SectionContainer';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { PetFile } from '@app/objects/PetFile';\nimport { UploadDocuments } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/DocumentsSection/UploadDocuments';\n\nexport const DocumentsSection: React.FC = () => {\n\tconst [file, setFile] = React.useState>(null);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{(fieldProps: FieldProps) => (\n\t\t\t\t\t, PetFormValues>) => (\n\t\t\t\t\t\t\t) => form.setFieldValue(field.name, items, false)}\n\t\t\t\t\t\t\t\tonChangeFile={setFile}\n\n\t\t\t\t\t\t\t\ttype=\"pet\"\n\t\t\t\t\t\t\t\tmaxSizeCaption=\"File should not exceed 20 mb\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\n\t\t\t setFile(null)}\n\t\t\t/>\n\t\t\n\t);\n};\n","import React from 'react';\nimport { useSelector } from 'react-redux';\nimport { useFormikContext } from 'formik';\n\nimport { List } from '@common/typescript/objects/List';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport {\n\tDeliveryType,\n\tPet,\n\tPetPrice,\n\tServiceType,\n\tWeightSource,\n} from '@app/objects/Pet';\nimport { UserRole } from '@app/objects/User';\nimport { ApplicationState } from '@app/store';\nimport {\n\tPrice,\n\tPriceKind,\n} from '@app/objects/Price';\nimport { getWeight } from '@app/components/Utils/Prices/Helpers';\nimport { TrackChange } from '@app/smart components/Tracker/TrackChange';\nimport { PetFormValues } from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { getCrematory, LoadPricesParams } from '@app/components/Pages/PetEditor/OldPetEditor/Editor';\nimport { CrematoryListInfo, CrematoryServiceTypePreferences, getServiceTypePreferenceKind } from '@app/objects/Crematory';\nimport { Carrier } from '@app/objects/Carriers';\nimport { ClinicDiscount } from '@app/objects/Clinic';\nimport { useRequest } from '@app/hooks/useRequest';\n\ninterface PetTrackChangeProps {\n\titem: Pet;\n\tprices: Array;\n\treloadPrices: () => void;\n\tonLoadPrices: (params: LoadPricesParams) => void,\n\tloadCrematoryDependencies: (id: number) => void,\n\tonChangeClinicDiscount: (value: Array) => void,\n\tonChangeDisableHistory: (value: React.SetStateAction) => void;\n\tonChangeServiceTypePreferences: (value: CrematoryServiceTypePreferences) => void;\n}\n\nexport function setDefaultCarrier(\n\tvalues: PetFormValues,\n\tcarriers: Array,\n\tcrematories: Array,\n\tonChangeValues: (field: string, value: Nullable) => void,\n) {\n\tif (values.crematoryId <= 0) return;\n\n\tconst crematory = crematories.find((item: CrematoryListInfo) => item.id === values.crematoryId);\n\tif (!crematory) return;\n\n\tlet value: Nullable = null;\n\n\tif (crematory && crematory.defaultCarrier) {\n\t\tvalue = crematory.defaultCarrier.id;\n\t} else if (carriers.length === 1) {\n\t\tvalue = carriers[0].id;\n\t}\n\n\tonChangeValues('carrierId', value);\n}\n\nfunction loadPricesBySelect(\n\tvalues: PetFormValues,\n\tinitialValues: PetFormValues,\n\tprices: Array,\n\tonLoadPrices: (params: LoadPricesParams) => void,\n\tpriceKind?: PriceKind,\n) {\n\tconst params = {\n\t\tcrematoryId: values.crematoryId,\n\t\tclinicId: values.clinicId,\n\n\t\tpriceType: values.priceType,\n\t\tserviceType: values.serviceType,\n\t};\n\n\tconst isPriceAlreadyLoaded = prices.length;\n\n\tif (priceKind === PriceKind.SpecialServicePrice) {\n\t\tconst originServices = initialValues.services?.filter((item: PetPrice) => item.price?.priceKind === priceKind).length;\n\t\tconst updateServices = values.services?.filter((item: PetPrice) => item.price?.priceKind === priceKind).length;\n\n\t\tif (updateServices && originServices && (originServices <= updateServices) && isPriceAlreadyLoaded) return;\n\t}\n\n\tif (priceKind === PriceKind.UrnPrice) {\n\t\tconst originUrns = initialValues.urns.length;\n\t\tconst updateUrns = values.urns.length;\n\n\t\tif (originUrns <= updateUrns && isPriceAlreadyLoaded) return;\n\t}\n\n\tif (priceKind === PriceKind.ProductPrice) {\n\t\tconst originServices = initialValues.services?.filter((item: PetPrice) => item.price?.priceKind === priceKind).length;\n\t\tconst updateServices = values.products.length;\n\n\t\tif (updateServices && originServices && (originServices <= updateServices) && isPriceAlreadyLoaded) return;\n\t}\n\n\tonLoadPrices(params);\n}\n\nexport const PetTrackChange: React.FC = (props: PetTrackChangeProps) => {\n\tconst { values, setFieldValue, initialValues } = useFormikContext();\n\tconst user = useSelector((state: ApplicationState) => state.login.user);\n\tconst crematories = useSelector((state: ApplicationState) => state.crematories.items);\n\tconst carriers = useSelector((state: ApplicationState) => state.carriers.items);\n\tconst clinicDiscountRequest = useRequest, { clinicId: number | null }>('clinicDiscountList', undefined, { requestOnMount: false });\n\n\tconst onLoadPricesBySelect = React.useCallback((val?: PriceKind) =>\n\t\tloadPricesBySelect(values, initialValues, props.prices, props.onLoadPrices, val), [\n\t\tvalues, initialValues, props.prices,\n\t]);\n\tconst setServices = () => {\n\t\tconst services = values.services?.filter(q => q.price?.priceKind !== PriceKind.Discount) || [];\n\t\tsetFieldValue('services', services);\n\t};\n\n\tconst handleWeightChange = () => {\n\t\tif (values) {\n\t\t\tconst oldCrematory = getCrematory(props.item, user, crematories);\n\t\t\tconst newCrematory = getCrematory(values, user, crematories);\n\n\t\t\tconst oldSource = oldCrematory?.weightSource ?? WeightSource.ActualWeight;\n\t\t\tconst newSource = newCrematory?.weightSource ?? WeightSource.ActualWeight;\n\n\t\t\tconst oldWeight = props.item ? getWeight(props.item, oldSource) : 0;\n\t\t\tconst newWeight = getWeight(values, newSource);\n\t\t\tconst hasChanged = oldWeight !== newWeight;\n\n\t\t\tif (hasChanged && props.prices.length === 0) props.reloadPrices();\n\t\t}\n\t};\n\n\tconst setServiceTypePreferences = () => {\n\t\tconst option = getServiceTypePreferenceKind(values.serviceType);\n\n\t\tconst crematoryId = user?.role === UserRole.Admin ? values.crematoryId : user?.activeCrematoryId;\n\t\tconst crematory = crematories.find((i) => i.id === crematoryId);\n\n\t\tprops.onChangeServiceTypePreferences(crematory?.[option]);\n\t};\n\n\tconst onChangeLoadPrices = () => {\n\t\tconst petExists = values.id > 0;\n\t\tif (petExists) props.onChangeDisableHistory((prev) => !prev);\n\n\t\tonLoadPricesBySelect();\n\t};\n\n\tconst onLoadClinicDiscounts = () => {\n\t\tconst clinicId = values.clinicId;\n\t\tif (!clinicId) {\n\t\t\tprops.onChangeClinicDiscount([]);\n\n\t\t\treturn;\n\t\t}\n\n\t\tclinicDiscountRequest.reload({ clinicId: values.clinicId })\n\t\t\t.then((res: List | void) => {\n\t\t\t\tif (!res) return;\n\n\t\t\t\tconst discounts = res.list\n\t\t\t\t\t.filter((item: ClinicDiscount) => item.crematoryId === values.crematoryId)\n\t\t\t\t\t.filter((item: ClinicDiscount) => item.clinicId === values.clinicId)\n\t\t\t\t\t.filter((item: ClinicDiscount) => item.serviceType === values.serviceType);\n\t\t\t\tprops.onChangeClinicDiscount(discounts);\n\t\t\t});\n\t};\n\n\tconst setClinicDiscount = () => {\n\t\tconst clinicDiscounts = clinicDiscountRequest.item?.list ?? [];\n\n\t\tif (!clinicDiscounts.length) {\n\t\t\tonLoadClinicDiscounts();\n\t\t} else {\n\t\t\tconst discounts = clinicDiscounts\n\t\t\t\t.filter((item: ClinicDiscount) => item.crematoryId === values.crematoryId)\n\t\t\t\t.filter((item: ClinicDiscount) => item.clinicId === values.clinicId)\n\t\t\t\t.filter((item: ClinicDiscount) => item.serviceType === values.serviceType);\n\t\t\tprops.onChangeClinicDiscount(discounts);\n\t\t}\n\t};\n\n\tReact.useEffect(() => setServiceTypePreferences(), [crematories]);\n\n\treturn (\n\t\t<>\n\t\t\t {\n\t\t\t\t\tif (id <= 0) return;\n\n\t\t\t\t\tonChangeLoadPrices();\n\t\t\t\t\tprops.loadCrematoryDependencies(id);\n\t\t\t\t\tsetServiceTypePreferences();\n\t\t\t\t\tsetClinicDiscount();\n\t\t\t\t\tsetServices();\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t {\n\t\t\t\t\tonChangeLoadPrices();\n\t\t\t\t\tsetServices();\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t {\n\t\t\t\t\tonChangeLoadPrices();\n\t\t\t\t\tsetServiceTypePreferences();\n\t\t\t\t\tsetClinicDiscount();\n\t\t\t\t\tsetServices();\n\n\t\t\t\t\tif (value === ServiceType.Communal) setFieldValue('engraving', []);\n\t\t\t\t\tif (value !== ServiceType.Private && value !== ServiceType.SemiPrivate) setFieldValue('urns', []);\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t {\n\t\t\t\t\tonChangeLoadPrices();\n\t\t\t\t\tonLoadClinicDiscounts();\n\n\t\t\t\t\tsetServices();\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t {\n\t\t\t\t\tconst crematoryId = user?.role !== UserRole.Crematory\n\t\t\t\t\t\t? values.crematoryId : user.activeCrematoryId;\n\n\t\t\t\t\tif (value === DeliveryType.Mail && crematoryId > 0) setDefaultCarrier(values, carriers, crematories, setFieldValue);\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t handleWeightChange()}\n\t\t\t/>\n\t\t\t handleWeightChange()}\n\t\t\t/>\n\t\t\t onLoadPricesBySelect(PriceKind.UrnPrice)}\n\t\t\t/>\n\t\t\t onLoadPricesBySelect(PriceKind.SpecialServicePrice)}\n\t\t\t/>\n\t\t\t onLoadPricesBySelect()}\n\t\t\t/>\n\t\t\t onLoadPricesBySelect(PriceKind.ProductPrice)}\n\t\t\t/>\n\t\t\n\t);\n};\n","import * as React from 'react';\nimport { connect, useSelector } from 'react-redux';\nimport { generatePath, useHistory, useParams } from 'react-router-dom';\nimport clsx from 'clsx';\nimport {\n\tForm,\n\tFormik,\n\tFormikProps,\n\tuseFormikContext,\n} from 'formik';\nimport { v4 } from 'uuid';\n\nimport { useTranslation } from 'react-i18next';\n\nimport Space from 'antd/lib/space';\nimport Result from 'antd/lib/result';\nimport Button from 'antd/lib/button';\nimport Tabs from 'antd/lib/tabs';\n\nimport { List } from '@common/typescript/objects/List';\nimport ScrollToError from '@common/react/components/Forms/ScrollToError';\nimport { ItemState } from '@common/react/store/Item';\nimport * as PagesState from '@common/react/store/ItemList';\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\nimport { Nullable, Optional } from '@common/typescript/objects/Nullable';\nimport { getShallowChanges, pickDifference } from '@common/typescript/utils/entity';\nimport { ResponseError } from '@common/react/components/Api/RequestError';\n\nimport { ApplicationState } from '@app/store';\nimport { Actions, dispatchToProps } from '@app/components/Pages/ItemEditor';\nimport {\n\tDeliveryType,\n\tgetDefaultPet,\n\tPet,\n\tPetInvoiceSummary,\n\tPetListInfo,\n\tPetOnHold,\n\tPetPrice,\n\tServiceType,\n\tWeightSource,\n} from '@app/objects/Pet';\nimport {\n\tClinic,\n\tClinicListInfo,\n\tClinicSelectInfo,\n\tClinicDiscount,\n} from '@app/objects/Clinic';\nimport {\n\tPrice,\n\tPriceKind,\n\tPriceType,\n} from '@app/objects/Price';\nimport {\n\tCrematoryListInfo,\n\tCrematoryServiceTypePreferences,\n\tgetDefaultCrematoryServiceTypePreferences,\n} from '@app/objects/Crematory';\nimport { CurrentStatus } from '@app/objects/CurrentStatus';\nimport { User, UserRole } from '@app/objects/User';\nimport { Location } from '@app/objects/Location';\nimport { Status } from '@app/objects/Status';\nimport { RoutePaths } from '@app/utilities/RoutePathVars';\nimport { OldPetStatusHistory } from '@app/components/Pages/PetEditor/OldPetStatusHistory';\nimport { Carrier } from '@app/objects/Carriers';\nimport {\n\tCreatePetMessage,\n\tPetFormValues,\n\tReturnValues,\n\tUpdatePetMessage,\n\tUpdatePetPriceMessage,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Types';\nimport { getValidationSchema, DeliveryProvider } from '@app/components/Pages/PetEditor/OldPetEditor/schemas';\nimport {\n\tdiff,\n\ttimeoutCode,\n\ttoCreateMessage, toUpdateMessage, updateSpecialServiceKit,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Services';\nimport {\n\tSpecialServiceSection,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/SpecialServiceSection/SpecialServiceSection';\nimport { OwnerInfoSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/OwnerInfoSection';\nimport {\n\tDeliverySection,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/DeliverySection';\nimport { PetInfoSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/PetInfoSection';\nimport { PetEditorHeader } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/PetEditorHeader';\nimport { TopSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/TopSection';\nimport { TagStack } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/TagStack';\nimport { ClinicSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/ClinicSection';\nimport { ProcessSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/ProcessSection';\nimport { ProductsSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/ProductsSection';\n\nimport { PricingManager, Values } from '@app/services/pricing/PricingManager';\nimport { OldPetEditorTabs } from '@app/components/Pages/PetEditor/OldPetEditorTabs/OldPetEditorTabs';\nimport { getWeight } from '@app/components/Utils/Prices/Helpers';\nimport { IPriceStack } from '@app/services/pricing/IPriceStack';\nimport { ExistingPriceStack } from '@app/services/pricing/ExistingPriceStack';\nimport { DocumentsSection } from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/DocumentsSection/DocumentsSection';\nimport { Stack, StackDirection } from '@app/components/Layout/Stack';\nimport { SpecialServiceType } from '@app/objects/SpecialService';\nimport { activePermission, Permission } from '@app/objects/Permission';\nimport { Container } from '@app/components/UI/Container/Container';\nimport { useRequest } from '@app/hooks/useRequest';\nimport { alertMessage, MessageType } from '@app/utilities/alert';\nimport { allowAdd } from '@app/components/UI/Status/StatusModal/SpecificContentComponents/UrnForm/Services';\nimport { StoreEntryNode } from '@app/objects/StoreEntry';\nimport { Country } from '@app/objects/Country';\nimport { ValidationResult, toValidationFunction } from '@app/utilities/validators';\nimport { FormValues } from '@app/components/Pages/PetEditor/PetEditor';\nimport { DeliveryManager, useDeliveryManager } from '@app/hooks/Delivery/useDeliveryManager';\nimport {\n\tPetTrackChange,\n\tsetDefaultCarrier,\n} from '@app/components/Pages/PetEditor/OldPetEditor/Components/Sections/PetTrackChange';\n\nconst path: string = 'getPet';\nconst store: keyof ApplicationState = 'pet';\nconst saveItemPath: string = 'createPet';\nconst updateItemPath: string = 'updatePet';\nconst itemsStore: keyof ApplicationState = 'pets';\nconst defaultListParams = {\n\tpage: 1,\n\ttext: '',\n\tcount: 1000,\n\tcolumn: [{\n\t\tcaption: 'name',\n\t\tdirection: 1,\n\t}],\n};\nconst additionalParams: Record = {\n\twithInvoice: true,\n\twithCurrentStatus: true,\n\twithServices: true,\n\twithUrns: true,\n\twithBatch: true,\n\twithFiles: true,\n\n\t// for title info\n\twithPetSpecie: true,\n};\n\ninterface ReduxProps {\n\tclinics: PagesState.ItemsState;\n\tcrematories: PagesState.ItemsState;\n\tpets: PagesState.ItemsState;\n\tlocations: PagesState.ItemsState;\n\tuser: User | null;\n\tcarriers: PagesState.ItemsState;\n\tcrematoryList: Array;\n\tclinicsList: Array;\n}\n\nexport interface LoadPricesParams extends Omit {\n\tclinicId: Nullable;\n}\n\ninterface PriceListRequestParams {\n\tcrematoryId: number;\n\tclinicId: Array>;\n\tpriceType: PriceType;\n\tserviceType: ServiceType;\n\twithSpecialService: boolean;\n\twithInventoryItem: boolean;\n\tcount: number;\n}\n\nfunction toValues(values: PetFormValues, source: WeightSource): Values {\n\tconst urns: Array = values.urns ?? [];\n\tconst products: Array = values.products ?? [];\n\tconst summary: PetInvoiceSummary = values.invoiceSummary ?? {\n\t\tservicesTotal: 0,\n\t\tproductsTotal: 0,\n\t\tdeliveryTotal: 0,\n\t\tsubTotal: 0,\n\t\tserviceTax: 0,\n\t\tserviceTaxPercentage: 0,\n\t\tproductTax: 0,\n\t\tproductTaxPercentage: 0,\n\t\ttotal: 0,\n\t};\n\n\treturn {\n\t\tid: values.id,\n\t\tengraving: values.engraving ?? [],\n\t\tservices: values.services,\n\t\trecalculatePrice: values.recalculatePrice,\n\n\t\tweight: getWeight(values, source),\n\t\trush: values.rush,\n\n\t\tcrematoryId: values.crematoryId,\n\t\tclinicId: values.clinicId,\n\n\t\tpriceType: values.priceType,\n\t\tserviceType: values.serviceType,\n\n\t\tpetSpecieId: values.petSpecieId,\n\t\tdeliveryType: values.deliveryType,\n\t\turns,\n\t\tproducts,\n\t\tdiscountId: values.discountId,\n\t\tclinicDiscounts: values.services?.filter((item: PetPrice) => item.price?.priceKind === PriceKind.ClinicDiscount) ?? [],\n\n\t\tsummary,\n\t};\n}\n\nexport function getCrematory(\n\titem: Nullable<{ crematoryId: number }>,\n\tuser: Nullable,\n\tcrematories: Array,\n): Nullable {\n\tif (user?.role === UserRole.Crematory || user?.role === UserRole.CrematoryUser) {\n\t\tconst id = user?.activeCrematoryId;\n\t\tif (id === null || id <= 0) return null;\n\n\t\treturn crematories.find((q: CrematoryListInfo) => q.id === id) ?? null;\n\t}\n\n\tif (!item) return null;\n\n\tif (item.crematoryId > 0) {\n\t\treturn crematories.find((q: CrematoryListInfo) => q.id === item.crematoryId) ?? null;\n\t}\n\n\treturn crematories[0] ? crematories[0] : null;\n}\n\n// eslint-disable-next-line sonarjs/cognitive-complexity\nfunction getInitialValues(item: Pet, onGetCrematory: (values: PetFormValues) => Nullable): PetFormValues {\n\tconst crematory = onGetCrematory(item as PetFormValues);\n\tconst crematoryId = crematory ? crematory.id : item.crematoryId;\n\tconst services = item.services ?? [];\n\tconst urns = services.filter((i) => i.price?.priceKind === PriceKind.UrnPrice) ?? [];\n\tconst products = services.filter((i) => i.price?.priceKind === PriceKind.ProductPrice) ?? [];\n\n\tif (services.length) {\n\t\tservices.forEach((q: PetPrice) => {\n\t\t\tif (q.clientId) return;\n\n\t\t\tq.clientId = v4();\n\t\t});\n\t}\n\n\turns.forEach((urn: PetPrice) => {\n\t\turn.entry = urn.node?.entry;\n\t\turn.toSelect = !allowAdd(urn.node?.entry, urn.node, urn.nodeId);\n\t});\n\n\treturn {\n\t\t...item,\n\n\t\tdeliveryAddress: item.deliveryAddress ?? '',\n\t\tdeliveryAddress2: item.deliveryAddress2 ?? '',\n\t\tdeliveryCity: item.deliveryCity ?? '',\n\t\tdeliveryZip: item.deliveryZip ?? '',\n\t\tdeliveryState: item.deliveryState ?? null,\n\t\tdeliveryStateId: item.deliveryStateId ?? null,\n\t\tspecialInstructions: item.specialInstructions ?? '',\n\t\tbatchMachineLocation: item.batchMachineLocation ?? '',\n\t\ttrackingNumber: item.trackingNumber ?? '',\n\t\tphone: item.phone ?? '',\n\t\temail: item.email ?? '',\n\t\tclinicName: item.clinicName ?? '',\n\t\tname: item.name ?? '',\n\t\tcolor: item.color ?? '',\n\n\t\tvet: item.vet ?? '',\n\t\tinternalIdNum: item.internalIdNum ?? '',\n\t\tonHold: item.onHold ?? PetOnHold.None,\n\n\t\townerFirstName: item.ownerFirstName ?? '',\n\t\townerLastName: item.ownerLastName ?? '',\n\t\townerPhone: item.ownerPhone ?? '',\n\t\townerPhone2: item.ownerPhone2 ?? '',\n\t\townerEmail: item.ownerEmail ?? '',\n\t\townerAddress: item.ownerAddress ?? '',\n\t\townerAddress2: item.ownerAddress2 ?? '',\n\t\townerCity: item.ownerCity ?? '',\n\t\townerState: item.ownerState ?? null,\n\t\townerStateId: item.ownerStateId ?? null,\n\t\townerZip: item.ownerZip ?? '',\n\t\townerNotes: item.ownerNotes ?? '',\n\n\t\tcrematoryId,\n\t\tservices,\n\t\turns,\n\t\tproducts,\n\n\t\tengraving: item.engraving || [{\n\t\t\tid: -1, order: 0, name: item.name, removed: false,\n\t\t}],\n\t\tpreferences: crematory ? { country: crematory.country } : null,\n\n\t\trecalculatePrice: false,\n\t\tcarrierId: item.carrierId ?? 0,\n\n\t\tnotes: item.notes ?? [],\n\t\tloadingUrns: false,\n\t\tdiscountId: item.discountId ?? -1,\n\t};\n}\n\nfunction getCalculatedPrice(\n\tform: FormikProps,\n\tprices: Array,\n\tonGetCrematory: (values: PetFormValues) => Nullable,\n\tclinicDiscounts: Array,\n): IPriceStack {\n\tconst values = form.values;\n\tconst initial = form.initialValues;\n\tconst manager = new PricingManager();\n\n\tconst oldCrematory = onGetCrematory(initial);\n\tconst newCrematory = onGetCrematory(values);\n\n\tif (newCrematory) {\n\t\tconst current = toValues(values, newCrematory.weightSource);\n\t\tconst original = toValues(\n\t\t\tinitial,\n\t\t\toldCrematory ? oldCrematory.weightSource : newCrematory.weightSource,\n\t\t);\n\t\tconst taxPolicy = values.priceType === PriceType.Retail ? newCrematory.retailTaxPolicy : newCrematory.wholesaleTaxPolicy;\n\n\t\tcurrent.summary.productTaxPercentage = values.priceType === PriceType.Retail ? newCrematory.retailProductTax : newCrematory.wholesaleProductTax;\n\t\tcurrent.summary.serviceTaxPercentage = values.priceType === PriceType.Retail ? newCrematory.retailServiceTax : newCrematory.wholesaleServiceTax;\n\n\t\treturn manager.getPrice(current, original, prices, clinicDiscounts, taxPolicy);\n\t}\n\n\treturn new ExistingPriceStack([]);\n}\n\nfunction onUpdatePet(petId: number, services: Array, props: PetEditorInnerProps) {\n\tif (props.item?.services) {\n\t\tlet needUpdateKit = false;\n\t\tconst result: Array = [...props.item.services];\n\n\t\tservices.forEach((item: PetPrice) => {\n\t\t\tconst id = result.findIndex((q: PetPrice) => q.id === item.id);\n\t\t\tif (id >= 0) {\n\t\t\t\tresult[id] = item;\n\t\t\t} else {\n\t\t\t\tresult.push(item);\n\t\t\t}\n\n\t\t\tif (item.price?.specialService?.specialServiceType === SpecialServiceType.KitService) needUpdateKit = true;\n\t\t});\n\n\t\tprops.itemActions.updateItem>('pet', {\n\t\t\tservices: needUpdateKit ? updateSpecialServiceKit(result) : result,\n\t\t});\n\n\t\tif (props.pets.items.length > 0) {\n\t\t\tprops.pagesActions.refreshPages('pets', 'petList', {\n\t\t\t\tpage: 1,\n\t\t\t\twithPetBreed: true,\n\t\t\t\twithSpecie: true,\n\t\t\t\twithClinic: true,\n\t\t\t});\n\t\t}\n\t}\n}\n\nfunction onUpdateUrnPet(petId: number, services: Array, props: PetEditorInnerProps) {\n\tconst result: Array = [...props.item?.services ?? []];\n\n\tservices.forEach((item: PetPrice) => {\n\t\tconst id = result.findIndex((q: PetPrice) => q.id === item.id);\n\n\t\tif (id >= 0) {\n\t\t\tconst oldItem = { ...result[id] };\n\t\t\tresult[id] = {\n\t\t\t\t...oldItem,\n\t\t\t\t...item,\n\t\t\t\tentry: oldItem.entry,\n\t\t\t\tnode: { ...item.node, entry: oldItem.entry ?? null, parent: null } as Nullable,\n\t\t\t};\n\t\t} else {\n\t\t\tresult.push(item);\n\t\t}\n\t});\n\n\tprops.itemActions.updateItem(store, { id: petId, services: result });\n\tprops.pagesActions.refreshPages('pets', 'petList', {\n\t\tpage: 1,\n\t\twithPetBreed: true,\n\t\twithSpecie: true,\n\t\twithClinic: true,\n\t});\n}\n\nfunction loadPrices(\n\tparams: LoadPricesParams,\n\tonReload: (data?: PriceListRequestParams | undefined) => Promise | void>,\n\tonChangePrices: (value: Array) => void,\n\tonChangeServicesPrices: (value: Array) => void,\n) {\n\tonReload({\n\t\tcrematoryId: params.crematoryId,\n\t\tclinicId: [params.clinicId, null],\n\t\tpriceType: params.priceType || PriceType.Wholesale,\n\t\tserviceType: params.serviceType,\n\t\twithSpecialService: true,\n\t\twithInventoryItem: true,\n\t\tcount: 500,\n\t}).then((response: List | void) => {\n\t\tif (!response) return;\n\n\t\tconst { list } = response;\n\t\tconst prices = list.filter((price: Price) => !price.specialServiceId)\n\t\t\t.sort((a: Price, b: Price) => a.to - b.to);\n\t\tconst servicesPrice = list.filter((price: Price) => price.specialServiceId)\n\t\t\t.sort((a: Price, b: Price) => a.to - b.to);\n\t\tconst isClinicSet = params.clinicId !== null && params.clinicId > 0;\n\n\t\tlet loadedServices = list.filter((price: Price) => price.specialServiceId !== null && price.specialServiceId > 0\n\t\t\t&& (isClinicSet ? (price.clinicId === +(params.clinicId as number) || price.clinicId === null) : price.clinicId === null));\n\n\t\tonChangePrices(prices);\n\t\tonChangeServicesPrices(servicesPrice);\n\n\t\tif (isClinicSet) {\n\t\t\t// reduce special services overwritten by clinic\n\t\t\tconst clinicServices = loadedServices.filter((item) => item.clinicId === +(params.clinicId as number));\n\n\t\t\tloadedServices = loadedServices.filter((item) => {\n\t\t\t\tconst foundInClinic = clinicServices.find((service: Price) =>\n\t\t\t\t\tservice.specialServiceId === item.specialServiceId && service.serviceType === item.serviceType);\n\n\t\t\t\tif (item.clinicId) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\treturn !foundInClinic;\n\t\t\t});\n\t\t}\n\t});\n}\n\nfunction getCalculatedPriceServices(newValues: ReturnValues, calculatedPrice: IPriceStack): Array {\n\tconst price = calculatedPrice?.base;\n\n\tif (price) return [...newValues.services, price];\n\n\treturn [];\n}\n\nfunction getNewValues(item: PetFormValues, values: PetFormValues, isWholesale: boolean): ReturnValues {\n\tconst clinicLocationId = values.clinicLocationId && +values.clinicLocationId > 0 ? +values.clinicLocationId : null;\n\tconst clinicId = values.clinicId ? +values.clinicId : null;\n\tconst services = [...values.services ?? [], ...values.products, ...values.urns ?? []];\n\tconst carrierId = values.carrierId || null;\n\n\treturn {\n\t\t...item,\n\t\t...values,\n\n\t\tclinicId: isWholesale && clinicId ? clinicId : null,\n\t\tclinicLocationId: isWholesale ? clinicLocationId : null,\n\t\tdeliveryClinicId: +values.deliveryType === DeliveryType.Clinic && values.deliveryClinicId\n\t\t&& +values.deliveryClinicId > 0 ? +values.deliveryClinicId : null,\n\t\tclinic: undefined,\n\t\tdeliveryClinic: null,\n\t\tclinicLocation: undefined,\n\t\tservices,\n\t\tcarrierId,\n\t\tdiscountId: values.discountId ?? null,\n\t};\n}\n\nfunction getUpdateServices(initialServices: Array, updateServices: Array, initialValues: PetFormValues, values: PetFormValues) {\n\tconst discountPrice = values.services?.filter((i) => i.price?.priceKind === PriceKind.Discount)?.map((service: PetPrice): UpdatePetPriceMessage => ({\n\t\tid: service.id,\n\t\tremoved: service.removed ?? false,\n\n\t\tpriceId: service.priceId,\n\t\tnodeId: service.nodeId,\n\t\tcount: service.count,\n\t\tvalue: service.value,\n\t\tnote: service.note,\n\t}))?.[0];\n\tconst messageServices: Array = pickDifference(initialServices, updateServices);\n\tconst needSaveDiscount = discountPrice\n\t\t&& values.clinicId !== initialValues.clinicId\n\t\t&& !messageServices.find((i) => i.priceId === discountPrice.priceId);\n\n\treturn needSaveDiscount ? [...messageServices, discountPrice] : messageServices;\n}\n\nfunction handleSubmit(\n\tvalues: PetFormValues,\n\tinitialValues: PetFormValues, // use it instead of store item\n\tuser: Nullable,\n\tcalculatedPrice: IPriceStack,\n\tsubmitRequest: (message: Partial | CreatePetMessage) => void,\n) {\n\tconst isWholesale = +values.priceType !== PriceType.Retail;\n\tconst role = user?.role;\n\tconst initialServices = initialValues.services ?? [];\n\tconst newValues = getNewValues(initialValues, values, isWholesale);\n\n\tif (initialValues.id > 0) {\n\t\tconst newServices = newValues.services.filter((q: PetPrice) => q.id === -1)\n\t\t\t.filter((q: PetPrice) => q.price?.specialServiceId || q.price?.priceKind === PriceKind.PickupPrice);\n\t\tconst updatedServices = newValues.services.filter((q: PetPrice) => q.id > 0)\n\t\t\t.filter((q: PetPrice) => (q.price?.specialServiceId && q.price?.priceKind === PriceKind.SpecialServicePrice) || q.price?.priceKind === PriceKind.PickupPrice)\n\t\t\t.filter((q1: PetPrice) => {\n\t\t\t\tconst value = (initialServices ?? []).find((q2: PetPrice) => q2.id === q1.id);\n\n\t\t\t\treturn value.removed !== q1.removed || value.count !== q1.count || value.value !== q1.value;\n\t\t\t});\n\n\t\tnewValues.services = [...newServices, ...updatedServices];\n\t} else {\n\t\tnewValues.services = (values.services ?? []).filter((item: PetPrice) => !item.removed);\n\t}\n\n\tconst prices = initialServices.filter((service) => service.price && !service.price.specialServiceId);\n\tconst price = prices[0];\n\n\tif (calculatedPrice.base) {\n\t\tnewValues.services = getCalculatedPriceServices(newValues, calculatedPrice);\n\t} else if (price) {\n\t\tnewValues.services.push({ ...price, removed: true });\n\t}\n\n\tif (initialValues.id > 0) {\n\t\tconst initial = toUpdateMessage(initialValues, role);\n\t\tconst updated = toUpdateMessage(newValues, role);\n\n\t\tconst message: Partial = getShallowChanges(initial, updated);\n\t\tmessage.updateServices = getUpdateServices(initial.updateServices, updated.updateServices, initialValues, values);\n\n\t\tsubmitRequest(message);\n\t} else {\n\t\tconst message: CreatePetMessage = toCreateMessage(newValues);\n\n\t\tsubmitRequest(message);\n\t}\n}\n\ninterface InformationProps extends PetEditorInnerProps {\n\tdisableHistory: boolean;\n\tonChangeStatus: (status: CurrentStatus) => void;\n}\n\nconst Information: React.FC = ({ disableHistory, onChangeStatus, ...props }: InformationProps) => {\n\tconst { values } = useFormikContext();\n\n\treturn (\n\t\t\n\t\t\t{\n\t\t\t\tvalues.onHold === PetOnHold.None && (\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t) => onUpdatePet(petId, services, props)}\n\t\t\t\t\t\t\t\tonUrnRefresh={(services: Array) => onUpdateUrnPet(values.id, services, props)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t)\n\t\t\t}\n\t\t\t\n\t\t
\n\t);\n};\n\nfunction getCountry(\n\tvalues: PetFormValues,\n\tcrematories: Array,\n\tclinics: Array,\n\tcountries: Array,\n): Optional {\n\tif (values.clinicId) {\n\t\tconst countryId = clinics.find((item: ClinicSelectInfo) => item.id === values.clinicId)?.countryId;\n\n\t\treturn countries.find((item: Country) => item.id === countryId)?.alpha3;\n\t}\n\n\treturn crematories.find((item: CrematoryListInfo) => item.id === values.crematoryId)?.country;\n}\n\ninterface ValidateEnvelope {\n\tcrematories: Array;\n\tclinics: Array;\n\tcountries: Array;\n\tpreferences: CrematoryServiceTypePreferences;\n}\n\ninterface ValidateConfig {\n\tvalues: PetFormValues;\n\tenvelope: ValidateEnvelope;\n\tmanager: DeliveryManager;\n\tprovider: DeliveryProvider;\n}\n\nfunction validate(config: ValidateConfig): ValidationResult {\n\tconst country = getCountry(config.values, config.envelope.crematories, config.envelope.clinics, config.envelope.countries) ?? '';\n\tconst schema = getValidationSchema({\n\t\tcountry,\n\t\tpreferences: config.envelope.preferences,\n\t\tmanager: config.manager,\n\t\tprovider: config.provider,\n\t});\n\n\treturn toValidationFunction(schema, config.values);\n}\n\ntype PetEditorInnerProps = ItemState & ReduxProps & Actions\nconst PetEditorInner: React.FC = (props: PetEditorInnerProps) => {\n\tconst { t } = useTranslation('translation');\n\tconst { id } = useParams<{ id: string }>();\n\tconst history = useHistory();\n\tconst deliveryManager = useDeliveryManager();\n\n\tconst formRef = React.useRef>(null);\n\tconst [prices, setPrices] = React.useState>([]);\n\tconst [error, setError] = React.useState(null);\n\n\tconst [globalLoading, setGlobalLoading] = React.useState(Number(id) > 0 ? Boolean(!(props.item && props.item.id === Number(id))) : false);\n\tconst [servicesPrice, setServicesPrice] = React.useState>([]);\n\tconst [clinicDiscounts, setClinicDiscounts] = React.useState>([]);\n\tconst [serviceTypePreferences, setServiceTypePreferences] = React.useState(getDefaultCrematoryServiceTypePreferences());\n\tconst [disableHistory, setDisableHistory] = React.useState(false);\n\n\tconst item = props.item ?? getDefaultPet();\n\tconst refItem = React.useRef(item);\n\tconst idempotencyTokenRef = React.useRef(undefined);\n\tconst valuesRef = React.useRef>(null);\n\tconst userCanCreatePet = item.id < 0 && activePermission(props.user, Permission.CreatePet);\n\tconst userCanUpdatePet = item.id > 0 && activePermission(props.user, Permission.UpdatePet);\n\n\tconst { clinics, crematories, countries } = useSelector((state: ApplicationState) => state.selects);\n\n\tconst priceListRequest = useRequest, PriceListRequestParams>('priceList', undefined, { requestOnMount: false });\n\n\tconst onGetCrematory = React.useCallback((items: PetFormValues) => getCrematory(items, props.user, props.crematories.items), [props.user, props.crematories.items]);\n\tconst onLoadPrices = React.useCallback((params) => loadPrices(params, priceListRequest.reload, setPrices, setServicesPrice), []);\n\n\tconst calculatedPrice = (): IPriceStack => {\n\t\tconst form = formRef.current;\n\n\t\tif (form) return getCalculatedPrice(form, prices, onGetCrematory, clinicDiscounts);\n\n\t\treturn new ExistingPriceStack([]);\n\t};\n\n\tconst onChangeStatus = (status: CurrentStatus) => {\n\t\tprops.itemActions.updateItem('pet', {\n\t\t\tcurrentStatus: status,\n\t\t});\n\t};\n\n\tconst loadCrematoryDependencies = (id: number) => {\n\t\tif (id <= 0) return;\n\n\t\tconst crematory = props.crematories.items.find((item) => item.id === id);\n\t\tif (!crematory) return;\n\n\t\tconst form = formRef.current;\n\t\tif (!form) return;\n\n\t\tsetDefaultCarrier(form.values, props.carriers.items, props.crematories.items, form.setFieldValue);\n\t\t// defaultProvider?.();\n\n\t\tform?.setFieldValue('preferences', { country: crematory.country }, false);\n\t};\n\n\tconst reloadPrices = () => {\n\t\tconst form = formRef.current;\n\t\tif (!form) return;\n\n\t\tconst values = form.values;\n\t\tconst params = {\n\t\t\tcrematoryId: values.crematoryId,\n\t\t\tclinicId: [values.clinicId, null],\n\t\t\tpriceType: values.priceType || PriceType.Wholesale,\n\t\t\tserviceType: values.serviceType,\n\t\t\twithSpecialService: true,\n\t\t\twithInventoryItem: true,\n\t\t\tcount: 500,\n\t\t};\n\n\t\tpriceListRequest.reload(params)\n\t\t\t.then((response: List | void) => {\n\t\t\t\tif (!response) return;\n\n\t\t\t\tconst prices = response.list.filter((price: Price) => !price.specialServiceId)\n\t\t\t\t\t.sort((a: Price, b: Price) => a.to - b.to);\n\t\t\t\tconst servicesPrice = response.list.filter((price: Price) => price.specialServiceId)\n\t\t\t\t\t.sort((a: Price, b: Price) => a.to - b.to);\n\n\t\t\t\tsetPrices(prices);\n\t\t\t\tsetServicesPrice(servicesPrice);\n\t\t\t});\n\t};\n\n\tconst createRequest = useRequest(saveItemPath, undefined, { requestOnMount: false, idempotencyToken: idempotencyTokenRef.current });\n\tconst createPet = (message: CreatePetMessage, onChangeLoading: (val: boolean) => void) => {\n\t\tif ((formRef.current?.submitCount ?? 0) > 1) {\n\t\t\tif (!valuesRef.current) valuesRef.current = { ...message };\n\n\t\t\tconst hasDiff = diff(valuesRef.current!, message);\n\n\t\t\tif (hasDiff) {\n\t\t\t\tidempotencyTokenRef.current = v4();\n\t\t\t\tvaluesRef.current = { ...message };\n\t\t\t}\n\t\t}\n\n\t\tcreateRequest.reload(message)\n\t\t\t.then((item: Pet | void) => {\n\t\t\t\tif (!item) return;\n\n\t\t\t\talertMessage(MessageType.success, `${t('messages.type.success')}! Pet was created!`);\n\t\t\t\tconst locationPath = generatePath(RoutePaths.petEditor, { id: item.id, type: 'edit' });\n\n\t\t\t\thistory.replace(locationPath);\n\t\t\t\tidempotencyTokenRef.current = undefined;\n\t\t\t\tprops.itemActions.loadItem(store, path, item.id, getDefaultPet(), additionalParams, () => true);\n\t\t\t\tprops.pagesActions.addItem(itemsStore, item);\n\t\t\t})\n\t\t\t.catch((error: ResponseError) => {\n\t\t\t\talertMessage(MessageType.error, error.message);\n\n\t\t\t\tif (error.code !== timeoutCode) idempotencyTokenRef.current = v4();\n\t\t\t})\n\t\t\t.finally(() => onChangeLoading(false));\n\t};\n\n\tconst updateRequest = useRequest>(updateItemPath, undefined, { requestOnMount: false });\n\tconst updatePet = (message: Partial, onChangeLoading: (val: boolean) => void) => {\n\t\tupdateRequest.reload({ ...message, ...additionalParams })\n\t\t\t.then((item: Pet | void) => {\n\t\t\t\tif (!item) return;\n\n\t\t\t\talertMessage(MessageType.success, `${t('messages.type.success')}! Pet was updated!`);\n\n\t\t\t\tprops.itemActions.updateItem(store, item);\n\t\t\t\tprops.pagesActions.updateItem(itemsStore, item);\n\n\t\t\t\thistory.push(RoutePaths.petList);\n\t\t\t})\n\t\t\t.catch((error: ResponseError) => alertMessage(MessageType.error, error.message))\n\t\t\t.finally(() => onChangeLoading(false));\n\t};\n\n\tReact.useEffect(() => {\n\t\tif (id) {\n\t\t\tprops.itemActions.loadItem(store, path, +id, getDefaultPet(), additionalParams)\n\t\t\t\t.catch((error) => setError(error))\n\t\t\t\t.finally(() => setGlobalLoading(false));\n\t\t}\n\n\t\tif (+id < 0) idempotencyTokenRef.current = v4();\n\t}, [id]);\n\n\tReact.useEffect(() => {\n\t\t// this need for recalculated price if we changed something on pet list for the same pet\n\t\tif (props.item && item?.outOfDate) {\n\t\t\tprops.itemActions.loadItem(store, path, +id, getDefaultPet(), additionalParams, () => true)\n\t\t\t\t.then(() => props.itemActions.updateItem(store, { id: +id, outOfDate: false }))\n\t\t\t\t.catch((error) => setError(error));\n\t\t}\n\n\t\tprops.pagesActions.reqPages('statuses', 'statusList', 'status', { page: 1, text: '', count: 50 });\n\t\tprops.pagesActions.reqPages('crematories', 'crematoryList', 'crematory', { page: 1, text: '', count: 10 })\n\t\t\t.then(() => {\n\t\t\t\tconst item = props.item ?? getDefaultPet();\n\t\t\t\tconst activeCrematoryId = props.user?.activeCrematoryId ?? props.crematories.items[0]?.id;\n\t\t\t\tif (+id < 0 && activeCrematoryId > 0) {\n\t\t\t\t\tonLoadPrices({\n\t\t\t\t\t\tcrematoryId: activeCrematoryId,\n\t\t\t\t\t\tpriceType: item.priceType,\n\t\t\t\t\t\tserviceType: item.serviceType,\n\t\t\t\t\t\tclinicId: item.clinicId,\n\t\t\t\t\t});\n\n\t\t\t\t\tif (activeCrematoryId) loadCrematoryDependencies(activeCrematoryId);\n\t\t\t\t}\n\t\t\t});\n\t\tprops.pagesActions.reqPages('clinics', 'clinicList', 'clinic', defaultListParams);\n\t\tprops.pagesActions.reqPages('carriers', 'carrierList', 'carrier', defaultListParams);\n\t}, [item]);\n\n\tReact.useEffect(() => {\n\t\tif (props.item === refItem.current) return;\n\n\t\tconst services = props.item?.services ?? [];\n\t\tservices.forEach((item: PetPrice) => {\n\t\t\tif (item.clientId) return;\n\n\t\t\titem.clientId = v4();\n\t\t});\n\t}, [item]);\n\n\tif (error) {\n\t\treturn (\n\t\t\t history.goBack()}\n\t\t\t\t\t>\n\t\t\t\t\t\tBack\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t/>\n\t\t);\n\t}\n\n\tif (globalLoading) return ;\n\n\treturn (\n\t\t validate({\n\t\t\t\tvalues,\n\t\t\t\tenvelope: {\n\t\t\t\t\tclinics: clinics.items,\n\t\t\t\t\tcrematories: crematories.items,\n\t\t\t\t\tpreferences: serviceTypePreferences,\n\t\t\t\t\tcountries: countries.items,\n\t\t\t\t},\n\t\t\t\tmanager: deliveryManager,\n\t\t\t\tprovider: (type, id) => {\n\t\t\t\t\tif (deliveryManager.type === 'obsolete') return type;\n\n\t\t\t\t\treturn id;\n\t\t\t\t},\n\n\t\t\t})}\n\t\t\tonSubmit={(values: PetFormValues, { setSubmitting }) => {\n\t\t\t\tconst submitRequest = (message) => (values.id > 0 ? updatePet(message, setSubmitting) : createPet(message, setSubmitting));\n\t\t\t\thandleSubmit(\n\t\t\t\t\tvalues,\n\t\t\t\t\tgetInitialValues(item, onGetCrematory),\n\t\t\t\t\tprops.user,\n\t\t\t\t\tcalculatedPrice(),\n\t\t\t\t\tsubmitRequest,\n\t\t\t\t);\n\t\t\t}}\n\t\t\tenableReinitialize\n\t\t\tinnerRef={formRef}\n\t\t>\n\t\t\t{({ values, setFieldValue, ...formikBag }: FormikProps) => (\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tsetFieldValue('recalculatePrice', true, false);\n\t\t\t\t\t\t\t\treloadPrices();\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t 0 && 'pet-editor__mobile-view')}\n\t\t\t\t\t\t\titems={[\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tkey: 'editor',\n\t\t\t\t\t\t\t\t\tlabel: 'Editor',\n\t\t\t\t\t\t\t\t\tchildren: (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tkey: 'info',\n\t\t\t\t\t\t\t\t\tlabel: 'Information',\n\t\t\t\t\t\t\t\t\tchildren: (),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t)}\n\t\t\n\t);\n};\n\nexport const OldPetEditor = connect & ReduxProps, Actions, unknown, ApplicationState>(\n\t(state: ApplicationState) => ({\n\t\t...state.pet,\n\t\tclinics: state.clinics,\n\t\tcrematories: state.crematories,\n\t\tpets: state.pets,\n\t\tuser: state.login.user,\n\t\tlocations: state.clinicLocations,\n\t\tcarriers: state.carriers,\n\t\tcrematoryList: state.selects.crematories.items,\n\t\tclinicsList: state.selects.clinics.items,\n\t}),\n\tdispatchToProps,\n)(PetEditorInner);\n","module.exports = (__webpack_require__(7))(894);","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\nconst filterObject = require('filter-obj');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (value === null || value === undefined || value.length === 0) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(query, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn ret;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of query.split('&')) {\n\t\tif (param === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (url, options) => {\n\toptions = Object.assign({\n\t\tdecode: true\n\t}, options);\n\n\tconst [url_, hash] = splitOnFirst(url, '#');\n\n\treturn Object.assign(\n\t\t{\n\t\t\turl: url_.split('?')[0] || '',\n\t\t\tquery: parse(extract(url), options)\n\t\t},\n\t\toptions && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}\n\t);\n};\n\nexports.stringifyUrl = (object, options) => {\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true\n\t}, options);\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(object.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl, {sort: false});\n\n\tconst query = Object.assign(parsedQueryFromUrl, object.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\thash = `#${encode(object.fragmentIdentifier, options)}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n\nexports.pick = (input, filter, options) => {\n\toptions = Object.assign({\n\t\tparseFragmentIdentifier: true\n\t}, options);\n\n\tconst {url, query, fragmentIdentifier} = exports.parseUrl(input, options);\n\treturn exports.stringifyUrl({\n\t\turl,\n\t\tquery: filterObject(query, filter),\n\t\tfragmentIdentifier\n\t}, options);\n};\n\nexports.exclude = (input, filter, options) => {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn exports.pick(input, exclusionFilter, options);\n};\n","// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that\n// have WebKitMutationObserver but not un-prefixed MutationObserver.\n// Must use `global` or `self` instead of `window` to work in both frames and web\n// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.\n/* globals self */ const scope = typeof global !== 'undefined' ? global : self;\nconst BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;\nexport function makeRequestCallFromTimer(callback) {\n return function requestCall() {\n // We dispatch a timeout with a specified delay of 0 for engines that\n // can reliably accommodate that request. This will usually be snapped\n // to a 4 milisecond delay, but once we're flushing, there's no delay\n // between events.\n const timeoutHandle = setTimeout(handleTimer, 0);\n // However, since this timer gets frequently dropped in Firefox\n // workers, we enlist an interval handle that will try to fire\n // an event 20 times per second until it succeeds.\n const intervalHandle = setInterval(handleTimer, 50);\n function handleTimer() {\n // Whichever timer succeeds will cancel both timers and\n // execute the callback.\n clearTimeout(timeoutHandle);\n clearInterval(intervalHandle);\n callback();\n }\n };\n}\n// To request a high priority event, we induce a mutation observer by toggling\n// the text of a text node between \"1\" and \"-1\".\nexport function makeRequestCallFromMutationObserver(callback) {\n let toggle = 1;\n const observer = new BrowserMutationObserver(callback);\n const node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return function requestCall() {\n toggle = -toggle;\n node.data = toggle;\n };\n}\nexport const makeRequestCall = typeof BrowserMutationObserver === 'function' ? // reliably everywhere they are implemented.\n// They are implemented in all modern browsers.\n//\n// - Android 4-4.3\n// - Chrome 26-34\n// - Firefox 14-29\n// - Internet Explorer 11\n// - iPad Safari 6-7.1\n// - iPhone Safari 7-7.1\n// - Safari 6-7\nmakeRequestCallFromMutationObserver : // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera\n// 11-12, and in web workers in many engines.\n// Although message channels yield to any queued rendering and IO tasks, they\n// would be better than imposing the 4ms delay of timers.\n// However, they do not work reliably in Internet Explorer or Safari.\n// Internet Explorer 10 is the only browser that has setImmediate but does\n// not have MutationObservers.\n// Although setImmediate yields to the browser's renderer, it would be\n// preferrable to falling back to setTimeout since it does not have\n// the minimum 4ms penalty.\n// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and\n// Desktop to a lesser extent) that renders both setImmediate and\n// MessageChannel useless for the purposes of ASAP.\n// https://github.com/kriskowal/q/issues/396\n// Timers are implemented universally.\n// We fall back to timers in workers in most engines, and in foreground\n// contexts in the following browsers.\n// However, note that even this simple case requires nuances to operate in a\n// broad spectrum of browsers.\n//\n// - Firefox 3-13\n// - Internet Explorer 6-9\n// - iPad Safari 4.3\n// - Lynx 2.8.7\nmakeRequestCallFromTimer;\n\n//# sourceMappingURL=makeRequestCall.js.map","import { isString } from './is';\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nexport function htmlTreeAsString(elem) {\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n var currentElem = elem;\n var MAX_TRAVERSE_HEIGHT = 5;\n var MAX_OUTPUT_LEN = 80;\n var out = [];\n var height = 0;\n var len = 0;\n var separator = ' > ';\n var sepLength = separator.length;\n var nextStr = void 0;\n // eslint-disable-next-line no-plusplus\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds MAX_OUTPUT_LEN\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) {\n break;\n }\n out.push(nextStr);\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n return out.reverse().join(separator);\n }\n catch (_oO) {\n return '';\n }\n}\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el) {\n var elem = el;\n var out = [];\n var className;\n var classes;\n var key;\n var attr;\n var i;\n if (!elem || !elem.tagName) {\n return '';\n }\n out.push(elem.tagName.toLowerCase());\n if (elem.id) {\n out.push(\"#\" + elem.id);\n }\n // eslint-disable-next-line prefer-const\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(\".\" + classes[i]);\n }\n }\n var allowedAttrs = ['type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(\"[\" + key + \"=\\\"\" + attr + \"\\\"]\");\n }\n }\n return out.join('');\n}\n//# sourceMappingURL=browser.js.map","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import clsx from 'clsx';\nimport React from 'react';\n\ninterface ContainerProps {\n\tchildren: React.ReactNode;\n\tclassName?: string;\n}\n\nexport const Container: React.FC = ({ children, className }: ContainerProps) => (\n\t
\n\t\t{children}\n\t
\n);\n","import { WithId } from '@common/typescript/objects/WithId';\nimport { WithRemoved } from '@common/typescript/objects/WithRemoved';\nimport { Nullable } from '@common/typescript/objects/Nullable';\n\nimport { Clinic } from '@app/objects/Clinic';\nimport { Location } from '@app/objects/Location';\n\nexport enum AttachedRouteClinic {\n\tAttached = 0,\n\tAll = 1,\n}\n\nexport interface Route extends WithId {\n\tname: string;\n\tdescription: string;\n\tlocations: Array;\n\tzipRoutes: Array;\n}\n\nexport interface RouteLocation extends WithId, WithRemoved {\n\tclinic: Nullable;\n\tclinicId: number;\n\trouteId: number;\n\tlocationId: Nullable,\n\tlocation: Nullable,\n\torder: number,\n}\n\nexport interface ZipRouteMask extends WithId, WithRemoved {\n\tclientId: string;\n\n\tmask: string;\n\tdeleted?: boolean;\n}\n","import { TFunction } from 'react-i18next';\n\nimport { DueDate, InvoiceStatus, InvoiceTaxModel } from '@app/objects/Invoice';\nimport { UserRole } from '@app/objects/User';\nimport {\n\tHasIssues,\n\tPetOnHold,\n\tPetSource,\n\tServiceType,\n\tWeightSource,\n} from '@app/objects/Pet';\nimport {\n\tDiscountType,\n\tPriceType,\n\tgetPriceKindName,\n\tPriceKind,\n} from '@app/objects/Price';\nimport { TriggerAction, TriggerEvent } from '@app/objects/TriggerStatus';\nimport { DemoRequestStatus, TypeOfCrematory } from '@app/objects/DemoRequest';\nimport { AdjustmentAction, AdjustmentValueType, InvoiceAdjustmentType } from '@app/objects/Adjustment';\nimport { FunctionsGroup, StatusFunction, statusOrderFunctionDescriptions } from '@app/objects/StatusOrderFunction';\nimport { BatchActionType } from '@app/objects/BatchAction';\nimport {\n\tCrematoryListInfo, CrematoryType, TaxPolicy, WeightUnits, getDefaultCrematory,\n} from '@app/objects/Crematory';\nimport { ItemCategory } from '@app/objects/Inventory';\nimport { LengthUnit, Orientation } from '@app/objects/LabelPaper';\nimport { AttachedRouteClinic } from '@app/objects/Route';\nimport { QuickbooksItemType } from '@app/objects/Quickbooks';\nimport { Option } from '@app/components/UI/Inputs/LocalSelect';\nimport { ApplyFilter, Customer } from '@app/objects/Clinic';\nimport { TaxKey } from '@app/services/AddressService';\n\nexport const userRoles = [{\n\ttext: 'Admin',\n\tvalue: `${UserRole.Admin}`,\n},\n{\n\ttext: 'Clinic User',\n\tvalue: `${UserRole.ClinicUser}`,\n},\n{\n\ttext: 'Clinic Manager',\n\tvalue: `${UserRole.ClinicManager}`,\n},\n{\n\ttext: 'Crematory',\n\tvalue: `${UserRole.Crematory}`,\n},\n{\n\ttext: 'Crematory User',\n\tvalue: `${UserRole.CrematoryUser}`,\n}];\n\nexport const crematoryUserRoles = [\n\t{\n\t\ttext: 'Crematory',\n\t\tvalue: `${UserRole.Crematory}`,\n\t},\n\t{\n\t\ttext: 'Crematory User',\n\t\tvalue: `${UserRole.CrematoryUser}`,\n\t},\n\t{\n\t\ttext: 'Clinic User',\n\t\tvalue: `${UserRole.ClinicUser}`,\n\t},\n\t{\n\t\ttext: 'Clinic Manager',\n\t\tvalue: `${UserRole.ClinicManager}`,\n\t},\n];\n\nconst productsOnlyTitle = 'Products Only';\nconst adminServiceTypeOptions: Record, Option> = {\n\t[ServiceType.Communal]: { text: 'Communal', value: ServiceType.Communal.toString() },\n\t[ServiceType.SemiPrivate]: { text: 'Semiprivate', value: ServiceType.SemiPrivate.toString() },\n\t[ServiceType.Private]: { text: 'Private', value: ServiceType.Private.toString() },\n\t[ServiceType.Storage]: { text: 'Storage', value: ServiceType.Storage.toString() },\n\t[ServiceType.ProductsOnly]: { text: productsOnlyTitle, value: ServiceType.ProductsOnly.toString() },\n};\n\nexport const adminServiceTypes = [\n\tadminServiceTypeOptions[ServiceType.Communal],\n\tadminServiceTypeOptions[ServiceType.SemiPrivate],\n\tadminServiceTypeOptions[ServiceType.Private],\n\tadminServiceTypeOptions[ServiceType.Storage],\n\tadminServiceTypeOptions[ServiceType.ProductsOnly],\n];\n\nexport const serviceTypes = (t: TFunction, isAustralia: boolean, crematory?: CrematoryListInfo, withAll?: boolean): Array