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AACwE,GAAD,EAC3F,GACD,C,uDCeD,IAbmB,WAAmB,MAC/BvF,GAAiBC,EAAAA,EAAAA,MAEjBuF,EAAiB9I,EAAAA,SAAc,WACpC,OAAO,SAAMiB,EAAcV,EAAkBwI,EAAeC,EAAWpE,GAEtE,OADAmE,GAAiBA,KACVE,EAAAA,EAAAA,GAAyDhI,EAAMV,OAAMd,EAAWmF,EACvF,CACD,GAAE,IAEH,OAAOtB,SAAA,UAAAA,EAAgB0B,aAAhB,eAAuB5B,UAAW0F,CACzC,C","sources":["webpack://SMAesthetics/./ClientApp/components/Utils.ts","webpack://SMAesthetics/./common/react/components/Core/ItemProvider/ItemProvider.tsx","webpack://SMAesthetics/./common/react/components/Core/ServerPageProvider/ServerPageProvider.tsx","webpack://SMAesthetics/./common/react/hooks/useAbortController.ts","webpack://SMAesthetics/./common/react/hooks/useRequest.ts"],"sourcesContent":["import { WithLangs } from '@common/typescript/objects/Page';\nimport { Lang } from '@common/typescript/objects/Lang';\n\nimport { Page, PageInfo } from '@commonTuna/react/objects/Page';\n\nexport const getPageInfo = (item: WithLangs): PageInfo | undefined => {\n\treturn item.langs.length > 0 ? (item.langs.find((langItem) => langItem.language === Lang.En) || item.langs[0]) : undefined;\n};\n\nexport const getPageShortName = (item: Page): string => {\n\treturn item.shortNameEn || item.name;\n};\n","/**\n * ## ItemProvider.tsx ##\n * This file contains ItemProvider component\n * @packageDocumentation\n */\n\nimport * as React from 'react';\nimport { useHistory } from 'react-router-dom';\n\nimport once from 'lodash/once';\nimport isEmpty from 'lodash/isEmpty';\nimport { AnySchema, ValidationError } from 'yup';\n\nimport { WithDeleted } from '@common/typescript/objects/WithDeleted';\nimport useRequest from '@common/react/hooks/useRequest';\nimport { BaseParams } from '@common/react/objects/BaseParams';\nimport { ClearValue } from '@common/react/utils/utils';\nimport { useRequestProviderContext } from '@common/react/components/RequestProvider/RequestProvider';\nimport useAbortController from '@common/react/hooks/useAbortController';\n\nexport enum Mode {\n\tView,\n\tEdit\n}\n\n/**\n * This is the description of the interface\n *\n * @interface ItemProviderProps\n * @typeParam T - T Any WithDeleted entity\n */\nexport interface ItemProviderProps {\n\t/**\n\t * Element ID. Used as load param\n\t */\n\tid: number;\n\t/**\n\t * ReactElement to be wrapped in an ItemProvider context\n\t */\n\tchildren: React.ReactNode | ((context: ItemProviderContext) => React.ReactNode);\n\t/**\n\t * Schema for checking element before saving.\n\t *\n\t * - Need to set a default value for the property that will be validated\n\t */\n\tvalidationSchema?: AnySchema;\n\t/**\n\t * By default determines which item to load and how to save it\n\t */\n\ttype: string;\n\t/**\n\t * Defines the default element if id < 0.\n\t * Ignored if withoutAdd is set to true\n\t */\n\tadd?: Partial;\n\t/**\n\t * Defines the default element.\n\t * Ignored if withoutAdd is set to false and id < 0\n\t */\n\titem?: T | undefined;\n\t/**\n\t * load request name. The default is made up of type.\n\t */\n\tloadRequest?: string;\n\t/**\n\t * load request name. The default is made up of type.\n\t */\n\tsaveRequest?: string;\n\t/**\n\t * transform item before send to server\n\t * @param item - element before submit\n\t * @return the element to be sent in the request\n\t */\n\tclearForSubmit?: (item: T) => ClearValue | T;\n\t/**\n\t * error handling function\n\t * @param error - error text\n\t */\n\tonRequestError?: ((error: string) => void);\n\t/**\n\t * error handling function for load request\n\t * @param error - error text\n\t * @default onRequestError\n\t */\n\tonLoadRequestError?: ((error: string) => void);\n\t/**\n\t * error handling function for save\n\t * @param error - error text\n\t * @default onRequestError\n\t */\n\tonSaveRequestError?: ((error: string) => void);\n\t/**\n\t * validation error handling function\n\t * @param item - not valid element\n\t * @param err - solved error\n\t * @param error - original error object\n\t */\n\tonValidationError?: ((item: T, err, error: ValidationError) => void);\n\t/**\n\t * view mode\n\t */\n\treadonly?: boolean;\n\t/**\n\t * function to be called after load\n\t * @param res - request response\n\t */\n\tonLoad?: (res: T) => void;\n\t/**\n\t * load params\n\t */\n\tadditionalParams?: BaseParams;\n\t/**\n\t * function to be called after item change\n\t * @param item - new element\n\t */\n\tupdateItem?: (item: T) => void;\n\t/**\n\t * a function that converts an element after saving\n\t * @param item - element\n\t * @param response - request response\n\t * @param prevItem - item before edit\n\t * @return Partial\n\t */\n\ttransformAfterSave?: (item: T | undefined, response: T, prevItem: T) => Partial;\n\t/**\n\t * init load condition\n\t */\n\tskipInitLoad?: boolean;\n\t/**\n\t * init error\n\t */\n\terror?: string;\n\t/**\n\t * defines the default value if element id < 0\n\t */\n\twithoutAdd?: boolean;\n\t/**\n\t * a function that converts an element after saving\n\t * @param response - request response\n\t * @param item - element\n\t * @return number\n\t */\n\tgetIdAfterSave?: (response: T, data: T) => number;\n\t/**\n\t * a function that handles the url\n\t * @param response - request response\n\t * @param item - element\n\t * @return number\n\t */\n\thandleUrlAfterSave?: (response: T, data: T, history) => void;\n\t/**\n\t * function to be called after save\n\t * @param item - saved item\n\t * @param res - request response\n\t */\n\tonSave?: (item: T, response?: T) => void;\n\t/**\n\t * time to live (ms) for cached response at RequestProvider if cache is available\n\t */\n\tttl?: number;\n}\n\nexport interface ItemProviderContextState {\n\t/**\n\t * stored element\n\t */\n\titem: T;\n\t/**\n\t * loading state for ItemProvider requests (save, update, delete), it will be true if itemProvider making that request\n\t */\n\tloading: boolean;\n\t/**\n\t * stored save or load error message\n\t */\n\terror: string;\n\t/**\n\t * type from props\n\t */\n\ttype: string;\n\t/**\n\t * view mode\n\t */\n\treadonly: boolean;\n\t/**\n\t * Schema for checking element before saving.\n\t *\n\t * - Need to set a default value for the property that will be validated\n\t */\n\tvalidationSchema?: AnySchema;\n\t/**\n\t * loading state for load request, it will be true, if ItemProvider try to load item\n\t */\n\titemLoading: boolean;\n\t/**\n\t * success message state\n\t */\n\tmessage: string;\n\t/**\n\t * a function that converts an element after saving\n\t * @param response - request response\n\t * @param item - element\n\t * @return number\n\t */\n\tgetIdAfterSave: (response: T, data: T) => number;\n\t/**\n\t * a function that converts an element after saving\n\t * @param item - element\n\t * @param response - request response\n\t * @param prevItem - item before edit\n\t * @return Partial\n\t */\n\ttransformAfterSave: (item: T | undefined, response: T, prevItem: T) => Partial;\n}\n\ninterface LoadOptions {\n\tsilent: boolean;\n}\n\ninterface ItemProviderContextActions {\n\t/**\n\t * load new item for ItemProvider\n\t * @param params - load params\n\t * @param options - LoadOptions\n\t * @return Promise\n\t */\n\tload: (params?: BaseParams, options?: LoadOptions) => Promise;\n\t/**\n\t * send save request\n\t * @param item - new item\n\t * @param skipValidation - ignore validation or no. By default is undefined\n\t * @param requestName\n\t * @return Promise\n\t */\n\tupdate: (item: T, skipValidation?: boolean, requestName?: string) => Promise;\n\t/**\n\t * update stored item without request\n\t * @param value - React.SetStateAction\n\t */\n\tsetItem: (value: React.SetStateAction) => void;\n\t/**\n\t * sent delete item request\n\t */\n\tdeleteItem: () => void;\n\t/**\n\t * update message state\n\t * @param value - React.SetStateAction\n\t */\n\tsetMessage: (value) => void;\n\t/**\n\t * update error state\n\t * @param error - error message\n\t */\n\tsetError: (error: string) => void;\n}\n\nexport interface ItemProviderContext {\n\tstate: ItemProviderContextState;\n\tactions: ItemProviderContextActions;\n}\n\nexport const createItemProviderContext = once(() => React.createContext({} as ItemProviderContext));\n\n/**\n * useItemProviderContext - get ItemProviderContext\n * @typeParam T - T Any {WithKey}\n * @param required - if true throw exception when context is empty\n * @returns ItemProviderContext\n */\nexport const useItemProviderContext = (required = true) => {\n\tconst context : ItemProviderContext = React.useContext(createItemProviderContext());\n\n\tif (required && isEmpty(context)) throw 'Need ItemProvider context!';\n\n\treturn context;\n};\n\n/**\n * defaultGetIdAfterSave - get element id\n * @param response - request response\n * @param data - element\n * @returns res\n */\nconst defaultGetIdAfterSave = (response, data) => response.id as number;\n\n/**\n * defaultHandleUrlAfterSave - get element id\n * @param response - request response\n * @param data - element\n * @param history\n */\nconst defaultHandleUrlAfterSave = (response, data, history) => {\n\tif (data.id < 0) {\n\t\twindow.setTimeout(() => {\n\t\t\thistory.replace({\n\t\t\t\t...location,\n\t\t\t\tpathname: location.pathname.replace('/-1', `/${response.id}`),\n\t\t\t});\n\t\t}, 0);\n\t}\n};\n\n/**\n * ItemProvider component.\n *\n * usage examples:\n * - {React.ReactNode}\n * - {(context) => React.ReactNode}\n * - {({ state: { itemLoading }}) => itemLoading ? : React.ReactNode}\n * use itemLoading when you need to show something before the item is loaded\n *\n * @typeParam T - T Any {WithKey}\n * @param props - ItemProviderProps\n * @type {React.FC}\n * @returns React.ReactElement\n */\n\nexport const ItemProvider: (p: ItemProviderProps) => React.ReactElement = (\n\t{\n\t\titem = undefined,\n\t\ttype,\n\t\tloadRequest = type,\n\t\tsaveRequest = type,\n\t\tchildren,\n\t\tvalidationSchema,\n\t\tclearForSubmit = (item) => item,\n\t\tonRequestError,\n\t\tonLoadRequestError = onRequestError,\n\t\tonSaveRequestError = onRequestError,\n\t\tonValidationError,\n\t\treadonly = true,\n\t\tonLoad,\n\t\tadditionalParams = {},\n\t\tupdateItem,\n\t\ttransformAfterSave = (item, response) => item as T,\n\t\tid = -1,\n\t\tskipInitLoad = false,\n\t\terror: initError = '',\n\t\tadd = {},\n\t\twithoutAdd = false,\n\t\tgetIdAfterSave = defaultGetIdAfterSave,\n\t\thandleUrlAfterSave = defaultHandleUrlAfterSave,\n\t\tonSave,\n\t\tttl,\n\t} : ItemProviderProps,\n) => {\n\tconst ItemContext = createItemProviderContext();\n\n\tconst [_item, _setItem] = React.useState(!withoutAdd && +id < 0 ? { id, ...add } as T : item as T);\n\tconst [loading, setLoading] = React.useState(false);\n\tconst [error, setError] = React.useState(initError);\n\tconst [message, setMessage] = React.useState('');\n\tconst [itemLoading, setItemLoading] = React.useState(+id < 0 ? false : !item || !skipInitLoad);\n\tconst data = React.useRef(skipInitLoad ? id : 0);\n\tconst history = useHistory();\n\tconst request = useRequest();\n\tconst requestContext = useRequestProviderContext();\n\tconst [abortController, setAbortController] = useAbortController();\n\n\tReact.useEffect(() => {\n\t\tif ((!_item || +id !== +data.current) && +id >= 0) {\n\t\t\tsetItemLoading(true);\n\t\t\tconst oldId = data.current;\n\t\t\tdata.current = +id;\n\t\t\tload()\n\t\t\t\t.then(() => {\n\t\t\t\t\tsetError((prev) => {\n\t\t\t\t\t\tif (prev) {\n\t\t\t\t\t\t\tdata.current = oldId;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn prev;\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch((err) => (typeof err !== 'string' || !err?.includes('aborted')) && console.log(err));\n\t\t}\n\t}, [id]);\n\n\tReact.useEffect(() => {\n\t\tif (skipInitLoad && _item && +id >= 0 && +id === _item.id && requestContext?.actions?.updateCache) {\n\t\t\trequestContext.actions.updateCache(\n\t\t\t\tloadRequest,\n\t\t\t\t{ ...additionalParams, id },\n\t\t\t\titem,\n\t\t\t\tttl,\n\t\t\t);\n\t\t}\n\t\treturn () => {\n\t\t\tabortController.abort();\n\t\t};\n\t}, []);\n\n\tconst setItem = (value: React.SetStateAction) => {\n\t\t_setItem((prev) => {\n\t\t\tconst newItem = typeof value === 'function' ? value(prev) : value;\n\t\t\tdata.current = newItem.id;\n\t\t\tupdateItem && updateItem(newItem);\n\t\t\treturn newItem;\n\t\t});\n\t};\n\n\tconst load = (params?: BaseParams, options?: LoadOptions) => {\n\t\tsetError('');\n\n\t\treturn request(\n\t\t\tloadRequest,\n\t\t\t{ ...additionalParams, ...params, id },\n\t\t\t() => !options?.silent && setItemLoading(true),\n\t\t\tttl,\n\t\t\tabortController.signal,\n\t\t)\n\t\t\t.then((res: T) => {\n\t\t\t\tsetItem(res);\n\t\t\t\t!options?.silent && setItemLoading(false);\n\t\t\t\tonLoad && onLoad(res);\n\t\t\t\treturn res;\n\t\t\t}).catch((error) => {\n\t\t\t\tif (typeof error === 'string' && error.includes('aborted')) {\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t\t!options?.silent && setItemLoading(false);\n\n\t\t\t\tonLoadRequestError && onLoadRequestError(error);\n\t\t\t\tsetError(error);\n\t\t\t\treturn item as T;\n\t\t\t});\n\t};\n\n\tconst saveItem = (data: T, requestName: string = saveRequest) => {\n\t\tconst item = { ...data, ...clearForSubmit(data) };\n\n\t\tsetLoading(true);\n\t\tsetError('');\n\n\t\treturn request(requestName, item)\n\t\t\t.then((response) => {\n\t\t\t\tsetItem({ ...data, ...transformAfterSave(data, response, _item), id: getIdAfterSave(response, data) });\n\n\t\t\t\thandleUrlAfterSave(response, data, history);\n\t\t\t\tonSave && onSave(item, response);\n\t\t\t\treturn response;\n\t\t\t}).catch((error: string) => {\n\t\t\t\tonSaveRequestError && onSaveRequestError(error);\n\t\t\t\tsetError(error);\n\n\t\t\t\tthrow error;\n\t\t\t}).finally(() => setLoading(false));\n\t};\n\n\tconst update = (item : T, skipValidation?: boolean, requestName: string = saveRequest) => {\n\t\tif (!item.deleted && validationSchema && !skipValidation) {\n\t\t\treturn validationSchema?.validate(item, { abortEarly: false }).then(() => {\n\t\t\t\treturn saveItem(item, requestName);\n\t\t\t}).catch((err) => {\n\t\t\t\tif (err.inner) {\n\t\t\t\t\tconst er = {};\n\t\t\t\t\tfor (let i = 0; i < err.inner.length; i++) {\n\t\t\t\t\t\ter[err.inner[i].path] = err.inner[i].errors[0];\n\t\t\t\t\t}\n\n\t\t\t\t\tsetError(err.message);\n\n\t\t\t\t\tonValidationError && onValidationError(item, er, err);\n\t\t\t\t} else {\n\t\t\t\t\tthrow err;\n\t\t\t\t}\n\t\t\t}) as Promise;\n\t\t}\n\n\t\treturn saveItem(item, requestName);\n\t};\n\n\tconst deleteItem = () => {\n\t\t_item && saveItem({ ..._item, deleted: true });\n\t};\n\n\tconst value: ItemProviderContext = {\n\t\tstate: {\n\t\t\titem: _item,\n\t\t\tloading,\n\t\t\terror,\n\t\t\ttype,\n\t\t\tvalidationSchema,\n\t\t\treadonly,\n\t\t\titemLoading,\n\t\t\tmessage,\n\t\t\ttransformAfterSave,\n\t\t\tgetIdAfterSave,\n\t\t},\n\t\tactions: {\n\t\t\tload,\n\t\t\tupdate,\n\t\t\tsetItem,\n\t\t\tdeleteItem,\n\t\t\tsetMessage,\n\t\t\tsetError,\n\t\t},\n\t};\n\n\treturn (\n\t\t\n\t\t\t{typeof children === 'function' ? children(value) : children}\n\t\t\n\t);\n};\n","/**\n * ## ServerPageProvider.tsx ##\n * This file contains ServerPageProvider component\n * @packageDocumentation\n */\n\nimport React from 'react';\n\nimport { useSelector, shallowEqual } from 'react-redux';\nimport { useLocation, useParams } from 'react-router-dom';\nimport { Helmet } from 'react-helmet';\n\nimport once from 'lodash/once';\n\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\nimport {\n\tItemProvider,\n\tuseItemProviderContext,\n} from '@common/react/components/Core/ItemProvider/ItemProvider';\nimport Loader from '@common/react/components/Core/LoadingProvider/Loader';\nimport PageNotFound from '@common/react/components/UI/PageNotFound/PageNotFound';\nimport NotFoundComponent from '@common/react/components/Core/NotFoundPageProvider/NotFoundComponent';\nimport { Lang } from '@common/typescript/objects/Lang';\nimport { useRequestProviderContext } from '@common/react/components/RequestProvider/RequestProvider';\n\nexport interface ServerPageProviderContext {\n\tstate: {\n\t\tpage: any,\n\t\tgetFromContext?: boolean;\n\t\terror?: string;\n\t\tloading?: boolean;\n\t};\n}\n\nexport const createServerPageProviderContext = once(() => React.createContext({} as ServerPageProviderContext));\n\nexport const useServerPageProviderContext: () => ServerPageProviderContext = () =>\n\tReact.useContext(createServerPageProviderContext());\n\n/**\n * This is the description of the interface\n *\n * @interface ServerPageProviderProps\n */\nexport interface ServerPageProviderProps {\n\t/**\n\t * render content\n\t * @param initPage - serverPage data. May not be defined\n\t * @return page content\n\t */\n\tinner: (initPage) => React.ReactNode;\n\t/**\n\t * pathname where we want to display the page. Used to avoid using data from another page\n\t */\n\tpath?: string;\n\t/**\n\t * a function that determines what state to take from redux\n\t * @param state - redux state\n\t * @return global page data\n\t */\n\tgetState?: (state) => any;\n\t/**\n\t * custom loader. by default } />\n\t */\n\tloader?: React.ReactNode;\n\t/**\n\t * custom content for not found page. by default } />\n\t */\n\tnotFoundComponent?: React.ReactNode;\n\t/**\n\t * a function to take the value of an element from the page data\n\t * @param value - global page data\n\t * @return page date\n\t */\n\ttransformToItem?: (value) => any;\n\t/**\n\t * default initPage. Used when we have page data but the data from Redux is empty.\n\t */\n\tpage?: any;\n\t/**\n\t * true if we don't have to use a helmet\n\t */\n\twithoutHelmet?: boolean;\n\t/**\n\t * By default used title from page langs\n\t */\n\tcustomTitle?: string;\n\t/**\n\t * returns which language to use\n\t */\n\tlanguage?: Lang;\n\t/**\n\t * sends what title will be if there is no customTitle and data from langs\n\t */\n\tdefaultTitle?: string;\n\t/**\n\t * used if an error occurred while loading data\n\t * @param error - error message\n\t */\n\tonRequestError?: (error: string) => void;\n\t/**\n\t * function to separate when you don't need to use data from spp.\n\t * By default it ignore serverPage when id from url not define or id < 0\n\t * @param error - error message\n\t */\n\tgetIgnoreServerPage?: (id, initPage) => boolean;\n\t/**\n\t * determines whether to load data again when changing pathname\n\t */\n\treloadByPathChange?: boolean;\n\t/**\n\t * additional params for load request\n\t */\n\tadditionalParams?: any;\n\t/**\n\t * determines whether the child spp should take values from the context of the current\n\t */\n\tgetInnerPageFromContext?: boolean;\n\t/**\n\t * time to live (ms) for cached response at RequestProvider if cache is available\n\t */\n\tttl?: number;\n}\n\ninterface ServerPageProviderInnerProps {\n\tinner: (initPage) => React.ReactNode;\n\tloader: React.ReactNode;\n\tnotFoundComponent: React.ReactNode;\n\tpathname: string;\n\tlanguage: Lang;\n\tskipInitLoad: boolean;\n\twithoutHelmet?: boolean;\n\tcustomTitle?: string;\n\tdefaultTitle?: string;\n\treloadByPathChange?: boolean;\n}\n\nconst defaultGetState = (state) => state.serverPage;\n\nconst ServerPageProviderInner: React.FC = ({\n\tinner,\n\tloader,\n\tnotFoundComponent,\n\tpathname,\n\tskipInitLoad,\n\twithoutHelmet,\n\tcustomTitle,\n\tlanguage,\n\tdefaultTitle,\n\treloadByPathChange,\n}) => {\n\tconst context = useItemProviderContext();\n\n\tif (!context.state) throw 'Need ItemsProvider context!';\n\n\tconst {\n\t\tstate: {\n\t\t\titem, loading, error, itemLoading,\n\t\t}, actions: { load },\n\t} = context;\n\tconst [skipLoad, setSkipLoad] = React.useState(skipInitLoad);\n\tconst [prevPath, setPrevPath] = React.useState(pathname);\n\n\tReact.useEffect(() => {\n\t\tif ((error || (reloadByPathChange && prevPath !== pathname)) && !skipLoad) {\n\t\t\tload();\n\t\t\tsetPrevPath(pathname);\n\t\t}\n\t\tsetSkipLoad(false);\n\t}, [pathname, reloadByPathChange]);\n\n\tconst info = React.useMemo(() => item?.langs?.find((lang) => lang.language === language), [item, language]);\n\tconst title = customTitle || info?.title || defaultTitle;\n\n\treturn (<>\n\t\t{!withoutHelmet && \n\t\t\t{title && {title}}\n\t\t}\n\t\t{(error === 'Page not found')\n\t\t\t? notFoundComponent\n\t\t\t: (loading || !item || itemLoading) && !error\n\t\t\t\t? loader\n\t\t\t\t: inner(error ? { ...item, error: item?.error || error } : item)\n\t\t}\n\t);\n};\n\nconst ServerPageProvider: React.FC = (props) => {\n\tconst SppContext = createServerPageProviderContext();\n\tconst sppContext = useServerPageProviderContext();\n\tconst defaultTransformToItem = sppContext?.state ? (value) => value?.innerPage : (value) => value;\n\tconst location = useLocation();\n\tconst { id } = useParams<{id?: string}>();\n\tconst {\n\t\tpath, getState = defaultGetState, inner, loader: loaderFromProps,\n\t\tnotFoundComponent: notFoundComponentFromProps, transformToItem = defaultTransformToItem, page, reloadByPathChange,\n\t} = props;\n\tconst { withoutHelmet, language = Lang.En, customTitle } = props;\n\tconst serverPage = useSelector(getState, shallowEqual);\n\tconst loader = loaderFromProps || } />;\n\tconst notFoundComponent = notFoundComponentFromProps || } />;\n\tconst requestContext = useRequestProviderContext();\n\n\tconst [initPage, setInitPage] = React.useState(() => {\n\t\tconst cacheData = requestContext?.actions?.getFromCache(\n\t\t\t'pageLoader',\n\t\t\t{ path: `${location.pathname}${location.search}`, ...props.additionalParams, id: 0 },\n\t\t);\n\t\tif (cacheData) return cacheData;\n\n\t\tconst value = page\n\t\t\t|| (sppContext?.state?.page && (serverPage?.page || sppContext?.state?.getFromContext)\n\t\t\t\t? sppContext?.state?.page\n\t\t\t\t: (serverPage?.path === path || path === undefined) && serverPage?.page\n\t\t\t\t\t? { ...serverPage?.page } : undefined);\n\t\treturn value ? JSON.parse(JSON.stringify({ ...value })) : value;\n\t});\n\tconst error = React.useMemo(() =>\n\t\t(serverPage.page !== null && (serverPage.page?.id === 0 || !serverPage.path) ? 'Page not found' : ''), [location.pathname]);\n\n\tconst ignoreServerPage = props.getIgnoreServerPage ? props.getIgnoreServerPage(id, initPage) : id && !isNaN(+id) && +id < 0;\n\n\tconst item = ignoreServerPage ? {} : transformToItem(initPage);\n\n\tReact.useEffect(() => {\n\t\tif (sppContext?.state && sppContext?.state?.page && sppContext?.state?.getFromContext) {\n\t\t\tsetInitPage(sppContext?.state?.page);\n\t\t}\n\t}, [sppContext?.state?.page]);\n\n\tReact.useEffect(() => {\n\t\tif (serverPage.page) {\n\t\t\tserverPage.page = null;\n\t\t}\n\t\tif (!error && !ignoreServerPage && requestContext?.actions?.updateCache && item) {\n\t\t\trequestContext.actions.updateCache(\n\t\t\t\t'pageLoader',\n\t\t\t\t{ path: `${location.pathname}${location.search}`, ...props.additionalParams, id: 0 },\n\t\t\t\titem,\n\t\t\t\tprops.ttl,\n\t\t\t);\n\t\t}\n\t}, []);\n\n\tif (sppContext?.state && !sppContext?.state?.page && sppContext?.state?.getFromContext) {\n\t\treturn <>{loader};\n\t}\n\n\treturn (\n\t\t !initPage && setInitPage(response)}\n\t\t>\n\t\t\t{({ state: { itemLoading } }) => \n\t\t\t\t{props.children}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t);\n};\n\nexport default ServerPageProvider;\n","import React from 'react';\n\nconst useAbortController = () => {\n\treturn React.useState(() => {\n\t\treturn typeof window !== 'undefined' ? new AbortController() : { signal: undefined, abort: (reason?: string) => undefined };\n\t});\n};\n\nexport default useAbortController;\n","import React from 'react';\n\nimport { RequestType, useRequestProviderContext } from '@common/react/components/RequestProvider/RequestProvider';\nimport { request as baseRequest } from '@common/react/components/Api';\nimport { BaseParams } from '@common/react/objects/BaseParams';\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\nimport { BaseApplicationState } from '@common/react/store';\n\nconst useRequest = (): RequestType => {\n\tconst requestContext = useRequestProviderContext();\n\n\tconst defaultRequest = React.useMemo(() => {\n\t\treturn (type: string, data: BaseParams, beforeRequest, _: number, signal?: AbortSignal) => {\n\t\t\tbeforeRequest && beforeRequest();\n\t\t\treturn baseRequest>(type, data, undefined, signal);\n\t\t};\n\t}, []);\n\n\treturn requestContext?.state?.request || defaultRequest;\n};\n\nexport default useRequest;\n"],"names":["getPageInfo","item","langs","length","find","langItem","language","Lang","undefined","getPageShortName","shortNameEn","name","Mode","createItemProviderContext","once","React","useItemProviderContext","required","context","isEmpty","defaultGetIdAfterSave","response","data","id","defaultHandleUrlAfterSave","history","window","setTimeout","replace","location","pathname","ItemProvider","type","loadRequest","saveRequest","children","validationSchema","clearForSubmit","onRequestError","onLoadRequestError","onSaveRequestError","onValidationError","readonly","onLoad","additionalParams","updateItem","transformAfterSave","skipInitLoad","error","initError","add","withoutAdd","getIdAfterSave","handleUrlAfterSave","onSave","ttl","ItemContext","_item","_setItem","loading","setLoading","setError","message","setMessage","itemLoading","setItemLoading","useHistory","request","useRequest","requestContext","useRequestProviderContext","useAbortController","abortController","current","oldId","load","then","prev","err","includes","console","log","actions","updateCache","abort","setItem","value","newItem","params","options","silent","signal","res","saveItem","requestName","state","update","skipValidation","deleted","validate","abortEarly","inner","er","i","path","errors","deleteItem","Provider","createServerPageProviderContext","defaultGetState","serverPage","ServerPageProviderInner","loader","notFoundComponent","withoutHelmet","customTitle","defaultTitle","reloadByPathChange","skipLoad","setSkipLoad","prevPath","setPrevPath","info","lang","title","Helmet","props","SppContext","sppContext","defaultTransformToItem","innerPage","useLocation","useParams","getState","loaderFromProps","notFoundComponentFromProps","transformToItem","page","useSelector","shallowEqual","defaultLoader","defaultNotFoundComponent","cacheData","getFromCache","search","getFromContext","JSON","parse","stringify","initPage","setInitPage","ignoreServerPage","getIgnoreServerPage","isNaN","getInnerPageFromContext","AbortController","reason","defaultRequest","beforeRequest","_","baseRequest"],"sourceRoot":""}