{"version":3,"sources":["utils/localization/locales/en/en-locale.ts","components/layouts/error-layout/index.tsx","contexts/app/context.ts","components/general/footer/styles.module.scss","components/layouts/map-layout/styles.module.scss","utils/helpers/functions.ts","utils/api/api-execute.ts","components/general/antd/space/index.tsx","utils/api/api-error-type.ts","utils/api/http-client.ts","utils/events/index.ts","services/http-client.ts","services/app/index.tsx","services/auth/index.tsx","services/atm/index.tsx","services/end-points.ts","components/general/select-langauge/index.tsx","components/layouts/error-layout/styles.module.scss","components/general/loading-page/styles.module.scss","utils/localization/i18n.ts","utils/localization/locales/ar/ar-locale.ts","contexts/app/reducer.ts","contexts/app/provider.tsx","components/general/footer/index.tsx","components/layouts/map-layout/index.tsx","routes/site.tsx","pages/errors/404/index.tsx","routes/other.tsx","App.tsx","reportWebVitals.ts","components/general/loading-page/index.tsx","index.tsx","utils/helpers/constants.ts","pages/errors/403/index.tsx","utils/rbac/can.tsx","routes/routes.tsx","components/general/antd/button/index.tsx","contexts/auth/context.ts"],"names":["typeTemplate","localeValues","locale","Pagination","items_per_page","jump_to","jump_to_confirm","page","prev_page","next_page","prev_5","next_5","prev_3","next_3","DatePicker","lang","placeholder","yearPlaceholder","quarterPlaceholder","monthPlaceholder","weekPlaceholder","rangePlaceholder","rangeYearPlaceholder","rangeMonthPlaceholder","rangeWeekPlaceholder","today","now","backToToday","ok","clear","month","year","timeSelect","dateSelect","weekSelect","monthSelect","yearSelect","decadeSelect","yearFormat","dateFormat","dayFormat","dateTimeFormat","monthBeforeYear","previousMonth","nextMonth","previousYear","nextYear","previousDecade","nextDecade","previousCentury","nextCentury","timePickerLocale","TimePicker","Calendar","global","Table","filterTitle","filterConfirm","filterReset","filterEmptyText","emptyText","selectAll","selectInvert","selectionAll","sortTitle","expand","collapse","triggerDesc","triggerAsc","cancelSort","Modal","okText","cancelText","justOkText","Popconfirm","Transfer","titles","searchPlaceholder","itemUnit","itemsUnit","remove","selectCurrent","removeCurrent","removeAll","Upload","uploading","removeFile","uploadError","previewFile","downloadFile","Empty","description","Icon","icon","Text","edit","copy","copied","PageHeader","back","Form","optional","defaultValidateMessages","default","required","enum","whitespace","date","format","parse","invalid","types","string","method","array","object","number","boolean","integer","float","regexp","email","url","hex","len","min","max","range","pattern","mismatch","Content","Layout","ErrorLayout","props","style","minHeight","className","styles","children","internalState","loading","screenType","direction","en","externalState","actions","getGeneralInformation","DEFAULT_FUNCTION","AppContext","createContext","module","exports","toggleLoading","toggle","xor","isArray","formatDate","DATE_FORMATE","moment","camelize","s","replace","x","toUpperCase","execute","parametrs","a","callback","fallback","throwException","finallyCallback","Space","size","split","type","ApiErrorType","ContentType","HttpClient","securityWorker","secure","axiosConfig","instance","securityData","setSecurityData","data","request","path","Json","query","body","params","secureParams","requestParams","mergeRequestParams","responseFormat","FormData","headers","common","Accept","post","put","createFormData","responseType","this","axios","create","baseURL","process","params1","params2","defaults","input","Object","keys","reduce","formData","key","property","append","Blob","JSON","stringify","eventManager","EventEmitter","httpclient","Authorization","token","localStorage","getItem","LANGUAGE_CODE","interceptors","use","config","error","Promise","reject","response","handleError","message","status","BAD_REQUEST","UNAUTHORIZED","emit","FORBIDDEN","NOT_FOUND","CONFLICT","INTERNAL_SERVER_ERROR","UNKNOWN","errorType","CONNECTION","isEmpty","i18next","t","AppService","http","AuthService","login","logout","changePassword","ATMService","getAllApplications","EndPoints","app","auth","atm","Option","Select","SelectLanguage","useTranslation","language","i18n","value","onChange","changeLanguage","resources","enTranslation","ar","arTranslation","initReactI18next","LanguageDetector","init","lng","fallbackLng","interpolation","escapeValue","monthFormat","weekFormat","reducer","state","action","payload","generalInformation","AppContextProvider","useReducer","dispatch","screenSize","useMediaQuery","useEffect","dir","document","classList","add","notification","placement","rtl","Provider","AntdFooter","Footer","socials","label","YoutubeFilled","link","color","FacebookFilled","InstagramOutlined","footer","justify","gutter","span","showLanguge","showSocials","align","map","button","title","href","target","MapLayout","layout","content","SiteRoutes","userPermissions","useContext","AuthContext","routes","r","renderRoute","Error404","history","useHistory","subTitle","extra","onClick","goBack","OtherRoutes","component","App","I18nextProvider","exact","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","LoadingPage","container","tip","ReactDOM","render","basename","StrictMode","getElementById","DEFAULT_PAGE_SIZE","INITIAL_PAGE","DEFAULT_QUERY","Error403","check","permissions","length","find","p","includes","ATMsPage","lazy","ATMsTableArPage","ATMsTableEnPage","labelKey","otherRoutes","route","Button","disabled"],"mappings":"sHACA,IAAIA,EAAe,kCACfC,EAAe,CACjBC,OAAQ,KACRC,WAAY,CAEVC,eAAgB,SAChBC,QAAS,QACTC,gBAAiB,UACjBC,KAAM,GAENC,UAAW,gBACXC,UAAW,YACXC,OAAQ,mBACRC,OAAQ,eACRC,OAAQ,mBACRC,OAAQ,gBAEVC,WAAY,CACVC,KAAM,CACJC,YAAa,cACbC,gBAAiB,cACjBC,mBAAoB,iBACpBC,iBAAkB,eAClBC,gBAAiB,cACjBC,iBAAkB,CAAC,aAAc,YACjCC,qBAAsB,CAAC,aAAc,YACrCC,sBAAuB,CAAC,cAAe,aACvCC,qBAAsB,CAAC,aAAc,YACrCtB,OAAQ,QACRuB,MAAO,QACPC,IAAK,MACLC,YAAa,gBACbC,GAAI,KACJC,MAAO,QACPC,MAAO,QACPC,KAAM,OACNC,WAAY,cACZC,WAAY,cACZC,WAAY,gBACZC,YAAa,iBACbC,WAAY,gBACZC,aAAc,kBACdC,WAAY,OACZC,WAAY,WACZC,UAAW,IACXC,eAAgB,oBAChBC,iBAAiB,EACjBC,cAAe,0BACfC,UAAW,wBACXC,aAAc,6BACdC,SAAU,8BACVC,eAAgB,cAChBC,WAAY,cACZC,gBAAiB,eACjBC,YAAa,gBAEfC,iBAAkB,CAChBnC,YAAa,cACbK,iBAAkB,CAAC,aAAc,cAGrC+B,WAAY,CACVpC,YAAa,cACbK,iBAAkB,CAAC,aAAc,aAEnCgC,SAAU,CACRtC,KAAM,CACJC,YAAa,cACbC,gBAAiB,cACjBC,mBAAoB,iBACpBC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,EAAkBD,gBAAK,kBAAM,uDAC7BE,EAAkBF,gBAAK,kBAAM,uDActB/C,EAAsB,CACjC,CACEhJ,KAAM,IACNkM,SAAU,OACVnC,UAAW+B,EACX3R,KAAM,cAAC,IAAD,IACNsR,YAAa,GACbvB,OAAO,IAIEiC,EAAuB,CAClC,CACEnM,KAAM,WACNkM,SAAU,OACVnC,UAAWiC,EACX7R,KAAM,cAAC,IAAD,IACNsR,YAAa,GACbvB,OAAO,GAET,CACElK,KAAM,WACNkM,SAAU,OACVnC,UAAWkC,EACX9R,KAAM,cAAC,IAAD,IACNsR,YAAa,GACbvB,OAAO,IAIEZ,EAAc,SACzB8C,EACAnD,GAEA,OACE,cAAC,IAAD,CAEEjJ,KAAMoM,EAAMpM,KACZgL,OAAQ,SAACrO,GACP,OACGyP,EAAMX,aACPD,EAAK,OAACvC,QAAD,IAACA,IAAmB,GAAImD,EAAMX,aAE5B,cAACW,EAAMrC,UAAP,2BAAqBpN,GAArB,IAA4ByP,MAAOA,KAGrC,cAAC,EAAD,KAOTlC,MAAOkC,EAAMlC,OAjBRkC,EAAMpM,Q,2DCrDFqM,IAJuB,SAAC1P,GACrC,OAAO,cAAC,IAAD,aAAY2P,UAA4B,IAAlB3P,EAAMO,SAAsBP,M,0DC0B9CW,EAA6B,2BAdG,CAC3CJ,QAAS,GAET+L,gBAAiB,KAWuB,IAExC1L,QAAS,CACP+G,MAAO7G,IACP8G,OAAQ9G,IACR+G,eAAgB/G,OAId0L,EAAcxL,wBAAcL,GAEnB6L,Q","file":"static/js/main.a7306ba4.chunk.js","sourcesContent":["/* eslint-disable no-template-curly-in-string */\nvar typeTemplate = '${label} is not a valid ${type}'\nvar localeValues = {\n locale: 'en',\n Pagination: {\n // Options.jsx\n items_per_page: '/ page',\n jump_to: 'Go to',\n jump_to_confirm: 'confirm',\n 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 },\n DatePicker: {\n lang: {\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 rangeMonthPlaceholder: ['Start month', 'End month'],\n rangeWeekPlaceholder: ['Start week', 'End week'],\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 },\n timePickerLocale: {\n placeholder: 'Select time',\n rangePlaceholder: ['Start time', 'End time'],\n },\n },\n TimePicker: {\n placeholder: 'Select time',\n rangePlaceholder: ['Start time', 'End time'],\n },\n Calendar: {\n lang: {\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 rangeMonthPlaceholder: ['Start month', 'End month'],\n rangeWeekPlaceholder: ['Start week', 'End week'],\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 },\n timePickerLocale: {\n placeholder: 'Select time',\n rangePlaceholder: ['Start time', 'End time'],\n },\n },\n global: {\n placeholder: 'Please select',\n },\n Table: {\n filterTitle: 'Filter menu',\n filterConfirm: 'OK',\n filterReset: 'Reset',\n filterEmptyText: 'No filters',\n emptyText: 'No data',\n selectAll: 'Select current page',\n selectInvert: 'Invert current page',\n selectionAll: 'Select all data',\n sortTitle: 'Sort',\n expand: 'Expand row',\n collapse: 'Collapse row',\n triggerDesc: 'Click sort by descend',\n triggerAsc: 'Click sort by ascend',\n cancelSort: 'Click to cancel sort',\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 ${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} at least ${min} characters',\n max: '${label} 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} minimum value is ${min}',\n max: '${label} maximum value is ${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}\nexport default localeValues\n","import { Layout } from 'antd'\r\nimport styles from './styles.module.scss'\r\n\r\nconst { Content } = Layout\r\ninterface Props {}\r\n\r\nconst ErrorLayout: React.FC = (props) => {\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nexport default ErrorLayout\r\n","import { DEFAULT_FUNCTION } from './../../utils/helpers/constants'\nimport { DirectionType } from 'antd/lib/config-provider'\nimport { createContext } from 'react'\nimport en from '../../utils/localization/locales/en/en-locale'\nimport { GeneralInformationResponse } from '../../models/app/response'\n\nexport type AppLoading = 'general-information'\n\nexport type ScreenType = 'Laptop' | 'Mobile'\nexport interface IInternalState {\n loading: AppLoading[]\n screenType: ScreenType\n\n generalInformation?: GeneralInformationResponse\n direction: DirectionType\n locale: any\n}\n\nexport const internalState: IInternalState = {\n loading: [],\n screenType: 'Laptop',\n\n direction: 'ltr',\n locale: en,\n}\n\nexport interface IExternalState extends IInternalState {\n actions: {\n getGeneralInformation: () => void\n }\n}\n\nexport const externalState: IExternalState = {\n ...internalState,\n actions: {\n getGeneralInformation: DEFAULT_FUNCTION,\n },\n}\n\nconst AppContext = createContext(externalState)\n\nexport default AppContext\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"footer\":\"styles_footer__26wiF\",\"button\":\"styles_button__nvj2q\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"layout\":\"styles_layout__2hH5i\",\"content\":\"styles_content__1oXJL\"};","import { DATE_FORMATE } from './constants'\r\nimport { isArray, xor } from 'lodash'\r\nimport moment from 'moment'\r\n\r\nexport const toggleLoading = (loading: any[], toggle: any[] | any) => {\r\n return xor(loading, isArray(toggle) ? toggle : [toggle])\r\n}\r\n\r\nexport const formatDate = (date?: Date, format: string = DATE_FORMATE) => {\r\n return date && moment(date).format(format)\r\n}\r\n\r\nexport const a2e = (s: string) =>\r\n s.replace(/[٠-٩]/g, (d) => '٠١٢٣٤٥٦٧٨٩'.indexOf(d).toString())\r\n\r\nexport const camelize = (s: string) =>\r\n s.replace(/-./g, (x) => x[1].toUpperCase())\r\n","import ApiError from './api-error'\n\nexport const execute = async (parametrs: {\n callback: () => Promise\n fallback?: (error: ApiError) => void\n finallyCallback?: () => void\n throwException?: boolean\n}): Promise => {\n try {\n return await parametrs.callback()\n } catch (error: any) {\n parametrs.fallback && parametrs.fallback(error)\n if (parametrs.throwException) {\n throw error\n }\n } finally {\n parametrs.finallyCallback && parametrs.finallyCallback()\n }\n}\n","import { Divider, Space as AntdSpace, SpaceProps as AntdSpaceProps } from 'antd'\r\n\r\nexport interface SpaceProps extends AntdSpaceProps {}\r\n\r\nconst Space: React.FC = (props) => {\r\n return (\r\n \r\n }\r\n {...props}\r\n >\r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nexport default Space\r\n","enum ApiErrorType {\n CONNECTION = 'Connection',\n BAD_REQUEST = 'Bad Request',\n UNAUTHORIZED = 'Unauthorized',\n FORBIDDEN = 'Forbidden',\n NOT_FOUND = 'Not Found',\n CONFLICT = 'Conflict',\n INTERNAL_SERVER_ERROR = 'Internal Server Error',\n CUSTOM = 'Custom',\n UNKNOWN = 'Unknown',\n}\n\nexport default ApiErrorType\n","import axios, {\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n ResponseType,\n} from 'axios'\n\nexport type QueryParamsType = Record\n\nexport interface FullRequestParams\n extends Omit {\n /** set parameter to `true` for call `securityWorker` for this request */\n secure?: boolean\n /** request path */\n path: string\n /** content type of request body */\n type?: ContentType\n /** query params */\n query?: QueryParamsType\n /** format of response (i.e. response.json() -> format: \"json\") */\n format?: ResponseType\n /** request body */\n body?: unknown\n}\n\nexport type RequestParams = Omit<\n FullRequestParams,\n 'body' | 'method' | 'query' | 'path'\n>\n\nexport interface ApiConfig\n extends Omit {\n securityWorker?: (\n securityData: SecurityDataType | null\n ) => Promise | AxiosRequestConfig | void\n secure?: boolean\n format?: ResponseType\n}\n\nexport enum ContentType {\n Json = 'application/json',\n FormData = 'multipart/form-data',\n UrlEncoded = 'application/x-www-form-urlencoded',\n}\n\nexport class HttpClient {\n public instance: AxiosInstance\n private securityData: SecurityDataType | null = null\n private securityWorker?: ApiConfig['securityWorker']\n private secure?: boolean\n private format?: ResponseType\n\n constructor({\n securityWorker,\n secure,\n format,\n ...axiosConfig\n }: ApiConfig = {}) {\n this.instance = axios.create({\n ...axiosConfig,\n baseURL: axiosConfig.baseURL || process.env.REACT_APP_BASE_API_URL,\n })\n this.secure = secure\n this.format = format\n this.securityWorker = securityWorker\n }\n\n public setSecurityData = (data: SecurityDataType | null) => {\n this.securityData = data\n }\n\n private mergeRequestParams(\n params1: AxiosRequestConfig,\n params2?: AxiosRequestConfig\n ): AxiosRequestConfig {\n return {\n ...this.instance.defaults,\n ...params1,\n ...(params2 || {}),\n headers: {\n ...(this.instance.defaults.headers || {}),\n ...(params1.headers || {}),\n ...((params2 && params2.headers) || {}),\n },\n }\n }\n\n private createFormData(input: Record): FormData {\n return Object.keys(input || {}).reduce((formData, key) => {\n const property = input[key]\n formData.append(\n key,\n property instanceof Blob\n ? property\n : typeof property === 'object' && property !== null\n ? JSON.stringify(property)\n : `${property}`\n )\n return formData\n }, new FormData())\n }\n\n public request = async ({\n secure = true,\n path,\n type = ContentType.Json,\n query,\n format,\n body,\n ...params\n }: FullRequestParams): Promise> => {\n const secureParams =\n ((typeof secure === 'boolean' ? secure : this.secure) &&\n this.securityWorker &&\n (await this.securityWorker(this.securityData))) ||\n {}\n const requestParams = this.mergeRequestParams(params, secureParams)\n const responseFormat = (format && this.format) || void 0\n\n if (\n type === ContentType.FormData &&\n body &&\n body !== null &&\n typeof body === 'object'\n ) {\n requestParams.headers.common = { Accept: '*/*' }\n requestParams.headers.post = {}\n requestParams.headers.put = {}\n\n body = this.createFormData(body as Record)\n }\n\n return this.instance.request({\n ...requestParams,\n headers: {\n ...(type && type !== ContentType.FormData\n ? { 'Content-Type': type }\n : {}),\n ...(requestParams.headers || {}),\n },\n params: query,\n responseType: responseFormat,\n data: body,\n url: path,\n })\n }\n}\n","import { EventEmitter } from 'events'\n\nexport const EVENT_UNAOUTHORIZED = 'event-unauthorized'\nexport const EVENT_FORBIDDEN = 'event-forbidden'\nexport const EVENT_SUCCESS = 'success'\nexport const EVENT_ERORR = 'error'\n\nconst eventManager = new EventEmitter()\n\nexport default eventManager\n","import i18next from 'i18next'\nimport { isEmpty } from 'lodash'\nimport ApiError, { ErrorData } from '../utils/api/api-error'\nimport ApiErrorType from '../utils/api/api-error-type'\nimport { HttpClient } from '../utils/api/http-client'\nimport eventManager, {\n EVENT_ERORR,\n EVENT_FORBIDDEN,\n EVENT_UNAOUTHORIZED,\n} from '../utils/events'\nimport { LANGUAGE_CODE } from '../utils/helpers/constants'\n\nexport const httpclient = new HttpClient<{ token?: string }>({\n securityWorker: (data) => {\n return {\n headers: {\n Authorization: `Bearer ${data?.token}`,\n },\n }\n },\n headers: {\n 'Accept-Language': `${\n localStorage.getItem(LANGUAGE_CODE) ??\n process.env.REACT_APP_DEFAULT_LANGUAGE\n }`,\n },\n})\n\nhttpclient.instance.interceptors.request.use(\n (config) => {\n return config\n },\n (error) => {\n return Promise.reject(error)\n }\n)\nhttpclient.instance.interceptors.response.use(\n (response) => {\n return response\n },\n (error) => {\n throw handleError(error)\n }\n)\n\nconst handleError = (error: ApiError): ApiError => {\n let message: ErrorData\n\n if (error.response) {\n // The request was made and the server responded with an error status code.\n\n message = error.response.data\n\n let type: ApiErrorType\n switch (error.response.status) {\n case 400:\n type = ApiErrorType.BAD_REQUEST\n break\n case 401:\n type = ApiErrorType.UNAUTHORIZED\n eventManager.emit(EVENT_UNAOUTHORIZED)\n break\n case 403:\n type = ApiErrorType.FORBIDDEN\n eventManager.emit(EVENT_FORBIDDEN)\n break\n case 404:\n type = ApiErrorType.NOT_FOUND\n break\n case 409:\n type = ApiErrorType.CONFLICT\n break\n case 500:\n type = ApiErrorType.INTERNAL_SERVER_ERROR\n break\n default:\n type = ApiErrorType.UNKNOWN\n break\n }\n\n error.errorType = type\n } else if (error.request) {\n // The request was made but no response was received.\n message = '500'\n error.errorType = ApiErrorType.CONNECTION\n } else {\n message = '500'\n error.errorType = ApiErrorType.UNKNOWN\n }\n\n // console.log('errors', error.errorType, message)\n\n // Display Error\n if (typeof message === 'string' && !isEmpty(message)) {\n eventManager.emit(EVENT_ERORR, i18next.t(message))\n }\n\n return error\n}\n","import { GeneralInformationResponse } from '../../models/app/response'\nimport { HttpClient, RequestParams } from '../../utils/api/http-client'\n\nclass AppService {\n http: HttpClient\n\n constructor(http: HttpClient) {\n this.http = http\n }\n\n getGeneralInformation = (params?: RequestParams) =>\n this.http.request({\n path: '/ExternalManagement/GeneralInformation',\n method: 'GET',\n ...params,\n })\n}\n\nexport default AppService\n","import { ChangePasswordRequest, LoginRequest } from '../../models/auth/request'\nimport { LoginResponse } from '../../models/auth/response'\nimport { HttpClient, RequestParams } from '../../utils/api/http-client'\n\nclass AuthService {\n http: HttpClient\n\n constructor(http: HttpClient) {\n this.http = http\n }\n\n login = (data: LoginRequest, params?: RequestParams) =>\n this.http.request({\n path: `/Authentication/PortalLogin`,\n method: 'POST',\n secure: false,\n body: data,\n ...params,\n })\n\n logout = (params?: RequestParams) =>\n this.http.request({\n path: `/Authentication/PortalLogout`,\n method: 'POST',\n ...params,\n })\n\n changePassword = (data: ChangePasswordRequest, params?: RequestParams) =>\n this.http.request({\n path: `/ExternalManagement/UpdateUserCreds`,\n method: 'PUT',\n body: data,\n ...params,\n })\n}\n\nexport default AuthService\n","import { ATMQuery } from '../../models/atm/query'\r\nimport { ATMResponse } from '../../models/atm/response'\r\nimport { HttpClient, RequestParams } from '../../utils/api/http-client'\r\n\r\nclass ATMService {\r\n http: HttpClient\r\n\r\n constructor(http: HttpClient) {\r\n this.http = http\r\n }\r\n\r\n getAllApplications = (query: ATMQuery, params?: RequestParams) =>\r\n this.http.request({\r\n path: '/atms',\r\n method: 'GET',\r\n query,\r\n ...params,\r\n })\r\n}\r\n\r\nexport default ATMService\r\n","import { httpclient } from './http-client'\nimport AppService from './app'\nimport AuthService from './auth'\nimport ATMService from './atm'\n\nexport default class EndPoints {\n public static app = new AppService(httpclient)\n public static auth = new AuthService(httpclient)\n public static atm = new ATMService(httpclient)\n}\n","import { Select } from 'antd'\r\nimport { useTranslation } from 'react-i18next'\r\nimport i18next from 'i18next'\r\n\r\nconst { Option } = Select\r\n\r\ninterface Props {}\r\n\r\nconst SelectLanguage: React.FC = (props) => {\r\n const {\r\n t,\r\n i18n: { language },\r\n } = useTranslation()\r\n\r\n return (\r\n i18next.changeLanguage(value)}\r\n >\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default SelectLanguage\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"error-content\":\"styles_error-content__2nTzU\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__147KE\"};","import i18next from 'i18next'\r\nimport { initReactI18next } from 'react-i18next'\r\nimport LanguageDetector from 'i18next-browser-languagedetector'\r\n\r\nimport enTranslation from './locales/en/translate.json'\r\nimport arTranslation from './locales/ar/translate.json'\r\nimport { LANGUAGE_CODE } from '../helpers/constants'\r\n\r\nexport const resources = {\r\n en: enTranslation,\r\n ar: arTranslation,\r\n}\r\n\r\ni18next\r\n .use(initReactI18next) // passes i18n down to react-i18next\r\n .use(LanguageDetector)\r\n .init({\r\n // the translations\r\n // (tip move them in a JSON file and import them,\r\n // or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)\r\n resources,\r\n\r\n lng: localStorage.getItem(LANGUAGE_CODE) ?? 'en', // if you're using a language detector, do not define the lng option\r\n fallbackLng: process.env.REACT_APP_DEFAULT_LANGUAGE,\r\n interpolation: {\r\n escapeValue: false, // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape\r\n },\r\n })\r\n\r\nexport default i18next\r\n","/* eslint-disable no-template-curly-in-string */\nvar typeTemplate = 'ليس ${label} من نوع ${type} صالحًا'\nvar localeValues = {\n locale: 'ar',\n Pagination: {\n // Options.jsx\n items_per_page: '/ الصفحة',\n jump_to: 'الذهاب إلى',\n jump_to_confirm: 'تأكيد',\n page: '',\n // Pagination.jsx\n prev_page: 'الصفحة السابقة',\n next_page: 'الصفحة التالية',\n prev_5: 'خمس صفحات سابقة',\n next_5: 'خمس صفحات تالية',\n prev_3: 'ثلاث صفحات سابقة',\n next_3: 'ثلاث صفحات تالية',\n },\n DatePicker: {\n lang: {\n placeholder: 'اختيار التاريخ',\n rangePlaceholder: ['البداية', 'النهاية'],\n locale: 'ar_EG',\n today: 'اليوم',\n now: 'الأن',\n backToToday: 'العودة إلى اليوم',\n ok: 'تأكيد',\n clear: 'مسح',\n month: 'الشهر',\n year: 'السنة',\n timeSelect: 'اختيار الوقت',\n dateSelect: 'اختيار التاريخ',\n monthSelect: 'اختيار الشهر',\n yearSelect: 'اختيار السنة',\n decadeSelect: 'اختيار العقد',\n yearFormat: 'YYYY',\n dateFormat: 'M/D/YYYY',\n dayFormat: 'D',\n dateTimeFormat: 'M/D/YYYY HH:mm:ss',\n monthBeforeYear: true,\n previousMonth: 'الشهر السابق (PageUp)',\n nextMonth: 'الشهر التالى(PageDown)',\n previousYear: 'العام السابق (Control + left)',\n nextYear: 'العام التالى (Control + right)',\n previousDecade: 'العقد السابق',\n nextDecade: 'العقد التالى',\n previousCentury: 'القرن السابق',\n nextCentury: 'القرن التالى',\n },\n timePickerLocale: {\n placeholder: 'اختيار الوقت',\n },\n dateFormat: 'DD-MM-YYYY',\n monthFormat: 'MM-YYYY',\n dateTimeFormat: 'DD-MM-YYYY HH:mm:ss',\n weekFormat: 'wo-YYYY',\n },\n TimePicker: {\n placeholder: 'اختيار الوقت',\n },\n Calendar: {\n locale: 'ar_EG',\n today: 'اليوم',\n now: 'الأن',\n backToToday: 'العودة إلى اليوم',\n ok: 'تأكيد',\n clear: 'مسح',\n month: 'الشهر',\n year: 'السنة',\n timeSelect: 'اختيار الوقت',\n dateSelect: 'اختيار التاريخ',\n monthSelect: 'اختيار الشهر',\n yearSelect: 'اختيار السنة',\n decadeSelect: 'اختيار العقد',\n yearFormat: 'YYYY',\n dateFormat: 'M/D/YYYY',\n dayFormat: 'D',\n dateTimeFormat: 'M/D/YYYY HH:mm:ss',\n monthBeforeYear: true,\n previousMonth: 'الشهر السابق (PageUp)',\n nextMonth: 'الشهر التالى(PageDown)',\n previousYear: 'العام السابق (Control + left)',\n nextYear: 'العام التالى (Control + right)',\n previousDecade: 'العقد السابق',\n nextDecade: 'العقد التالى',\n previousCentury: 'القرن السابق',\n nextCentury: 'القرن التالى',\n },\n global: {\n placeholder: 'يرجى التحديد',\n },\n Table: {\n filterTitle: 'الفلاتر',\n filterConfirm: 'تأكيد',\n filterReset: 'إعادة ضبط',\n selectAll: 'اختيار الكل',\n selectInvert: 'إلغاء الاختيار',\n selectionAll: 'حدد جميع البيانات',\n sortTitle: 'رتب',\n expand: 'توسيع الصف',\n collapse: 'طي الصف',\n triggerDesc: 'ترتيب تنازلي',\n triggerAsc: 'ترتيب تصاعدي',\n cancelSort: 'إلغاء الترتيب',\n },\n Modal: {\n okText: 'تأكيد',\n cancelText: 'إلغاء',\n justOkText: 'تأكيد',\n },\n Popconfirm: {\n okText: 'تأكيد',\n cancelText: 'إلغاء',\n },\n Transfer: {\n searchPlaceholder: 'ابحث هنا',\n itemUnit: 'عنصر',\n itemsUnit: 'عناصر',\n },\n Upload: {\n uploading: 'جاري الرفع...',\n removeFile: 'احذف الملف',\n uploadError: 'مشكلة فى الرفع',\n previewFile: 'استعرض الملف',\n downloadFile: 'تحميل الملف',\n },\n Empty: {\n description: 'لا توجد بيانات',\n },\n Icon: {\n icon: 'أيقونة',\n },\n Text: {\n edit: 'تعديل',\n copy: 'نسخ',\n copied: 'نقل',\n expand: 'وسع',\n },\n PageHeader: {\n back: 'عودة',\n },\n Form: {\n defaultValidateMessages: {\n default: 'خطأ في حقل الإدخال ${label}',\n required: 'يرجى إدخال ${label}',\n enum: '${label} يجب أن يكون واحدا من [${enum}]',\n whitespace: '${label} لا يمكن أن يكون حرفًا فارغًا',\n date: {\n format: '${label} تنسيق التاريخ غير صحيح',\n parse: '${label} لا يمكن تحويلها إلى تاريخ',\n invalid: 'تاريخ ${label} غير صحيح',\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} ان يكون ${len} أحرف',\n min: '${label} على الأقل ${min} أحرف',\n max: '${label} يصل إلى ${max} أحرف',\n range: 'يجب ${label} ان يكون مابين ${min}-${max} أحرف',\n },\n number: {\n len: '${len} ان يساوي ${label} يجب',\n min: '${min} الأدنى هو ${label} حد',\n max: '${max} الأقصى هو ${label} حد',\n range: '${max}-${min} ان يكون مابين ${label} يجب',\n },\n array: {\n len: 'يجب أن يكون ${label} طوله ${len}',\n min: 'يجب أن يكون ${label} طوله الأدنى ${min}',\n max: 'يجب أن يكون ${label} طوله الأقصى ${max}',\n range: 'يجب أن يكون ${label} طوله مابين ${min}-${max}',\n },\n pattern: {\n mismatch: 'لا يتطابق ${label} مع ${pattern}',\n },\n },\n },\n}\nexport default localeValues\n","import { IInternalState, AppLoading, ScreenType } from './context'\nimport { DirectionType } from 'antd/lib/config-provider'\nimport { toggleLoading } from '../../utils/helpers/functions'\nimport { GeneralInformationResponse } from '../../models/app/response'\n\ntype Action =\n | { type: 'SET_DIRECTION'; payload: { direction: DirectionType } }\n | { type: 'SET_LOCALE'; payload: { locale: any } }\n | {\n type: 'SET_GENERAL_INFORMATION'\n payload: { data: GeneralInformationResponse }\n }\n | {\n type: 'SET_SCREEN_TYPE'\n payload: { screenType: ScreenType }\n }\n | { type: 'LOADING'; payload: { loading: AppLoading[] | AppLoading } }\n\nconst reducer = (state: IInternalState, action: Action): IInternalState => {\n switch (action.type) {\n case 'SET_DIRECTION':\n return { ...state, direction: action.payload.direction }\n case 'SET_LOCALE':\n return { ...state, locale: action.payload.locale }\n case 'SET_GENERAL_INFORMATION':\n return { ...state, generalInformation: action.payload.data }\n case 'SET_SCREEN_TYPE':\n return { ...state, screenType: action.payload.screenType }\n case 'LOADING':\n return {\n ...state,\n loading: toggleLoading(state.loading, action.payload.loading),\n }\n default:\n return state\n }\n}\n\nexport default reducer\n","/* eslint-disable react-hooks/exhaustive-deps */\nimport React, { useEffect, useReducer } from 'react'\nimport en from '../../utils/localization/locales/en/en-locale'\nimport ar from '../../utils/localization/locales/ar/ar-locale'\nimport AppContext, { internalState } from './context'\nimport reducer from './reducer'\nimport { useTranslation } from 'react-i18next'\nimport { execute } from '../../utils/api/api-execute'\nimport EndPoints from '../../services/end-points'\nimport i18next from 'i18next'\nimport { ConfigProvider, notification } from 'antd'\nimport useMediaQuery from 'use-media-antd-query'\n\nconst AppContextProvider: React.FC = (props) => {\n const [state, dispatch] = useReducer(reducer, internalState)\n\n const screenSize = useMediaQuery()\n\n useEffect(() => {\n if (screenSize === 'sm' || screenSize === 'xs') {\n dispatch({ type: 'SET_SCREEN_TYPE', payload: { screenType: 'Mobile' } })\n } else {\n dispatch({ type: 'SET_SCREEN_TYPE', payload: { screenType: 'Laptop' } })\n }\n }, [screenSize])\n\n /**\n * Langauge\n */\n const {\n i18n: { language },\n } = useTranslation()\n\n useEffect(() => {\n dispatch({\n type: 'SET_DIRECTION',\n payload: { direction: i18next.dir(language) },\n })\n\n const locale = language === 'ar' ? ar : en\n dispatch({ type: 'SET_LOCALE', payload: { locale } })\n }, [language])\n\n useEffect(() => {\n document.body.classList.remove('rtl', 'ltr')\n state.direction && document.body.classList.add(state.direction)\n\n notification.config({\n placement: state.direction === 'rtl' ? 'bottomLeft' : 'bottomRight',\n rtl: state.direction === 'rtl',\n })\n }, [state.direction])\n\n const getGeneralInformation = async () => {\n await execute({\n callback: async () => {\n dispatch({\n type: 'LOADING',\n payload: { loading: 'general-information' },\n })\n\n const { data } = await EndPoints.app.getGeneralInformation()\n\n dispatch({ type: 'SET_GENERAL_INFORMATION', payload: { data: data } })\n },\n fallback: (error) => {},\n finallyCallback: () => {\n dispatch({\n type: 'LOADING',\n payload: { loading: 'general-information' },\n })\n },\n throwException: false,\n })\n }\n\n return (\n \n \n {props.children}\n \n \n )\n}\n\nexport default AppContextProvider\n","import { Col, Layout, Row } from 'antd'\r\nimport { useTranslation } from 'react-i18next'\r\nimport SelectLanguage from '../../general/select-langauge'\r\nimport styles from './styles.module.scss'\r\nimport {\r\n YoutubeFilled,\r\n FacebookFilled,\r\n InstagramOutlined,\r\n} from '@ant-design/icons'\r\nimport { FaTelegramPlane } from 'react-icons/fa'\r\nimport Button from '../antd/button'\r\nimport Space from '../antd/space'\r\n\r\nconst { Footer: AntdFooter } = Layout\r\ninterface Props {\r\n showSocials?: boolean\r\n showLanguge?: boolean\r\n}\r\n\r\nconst Footer: React.FC = (props) => {\r\n const { t } = useTranslation()\r\n\r\n const socials = [\r\n {\r\n label: 'YOUTUBE',\r\n icon: ,\r\n link: 'https://www.youtube.com/channel/UChI4K08Qng6Lw18SdkSvsXQ',\r\n color: '#ff0000',\r\n },\r\n {\r\n label: 'FACEBOOK',\r\n icon: ,\r\n link: 'https://www.facebook.com/Syria-International-Islamic-Bank-%D8%A8%D9%86%D9%83-%D8%B3%D9%88%D8%B1%D9%8A%D8%A9-%D8%A7%D9%84%D8%AF%D9%88%D9%84%D9%8A-%D8%A7%D9%84%D8%A5%D8%B3%D9%84%D8%A7%D9%85%D9%8A-301732157276892/',\r\n color: '#3b5998',\r\n },\r\n {\r\n label: 'TELEGRAM',\r\n icon: ,\r\n link: 'https://telegram.me/siibank',\r\n color: '#0088cc',\r\n },\r\n {\r\n label: 'INISTGRAM',\r\n icon: ,\r\n link: 'https://www.instagram.com/syriainternationlislamicbank/',\r\n color: '#c32aa3',\r\n },\r\n ]\r\n\r\n return (\r\n \r\n \r\n {props.showLanguge && }\r\n {t('copyRight')}\r\n {props.showSocials && (\r\n \r\n \r\n {socials.map((s, key) => (\r\n \r\n ))}\r\n \r\n \r\n )}\r\n \r\n \r\n )\r\n}\r\n\r\nexport default Footer\r\n","import { Layout } from 'antd'\r\nimport React from 'react'\r\nimport Footer from '../../general/footer'\r\nimport styles from './styles.module.scss'\r\n\r\nconst { Content } = Layout\r\n\r\ninterface Props {}\r\n\r\nconst MapLayout: React.FC = (props) => {\r\n return (\r\n \r\n {props.children}\r\n