@asaleh37/ui-base 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react-redux"),n=require("@fortawesome/fontawesome-svg-core"),r=require("@fortawesome/free-brands-svg-icons"),o=require("@fortawesome/free-regular-svg-icons"),i=require("@fortawesome/free-solid-svg-icons");require("react-toastify/dist/ReactToastify.css");var a=require("@mui/material"),l=require("@emotion/react"),s=require("react"),c=require("@mui/material/styles"),d=require("@mui/material/CssBaseline"),u=require("@mui/material/AppBar"),p=require("@mui/material/Toolbar"),f=require("@fortawesome/react-fontawesome"),m=require("@reduxjs/toolkit"),y=require("react-toastify"),h=require("axios"),g=require("i18next"),E=require("react-i18next"),_=require("@mui/material/List"),b=require("@mui/material/Card"),T=require("@mui/material/CardHeader"),A=require("@mui/material/ListItemText"),O=require("@mui/material/ListItemIcon"),I=require("@mui/material/Checkbox"),N=require("@mui/material/Button"),v=require("@mui/material/Divider"),S=require("@mui/x-charts"),M=require("@mui/material/LinearProgress"),L=require("@mui/material/Typography"),D=require("@mui/material/Box"),C=require("@mui/x-charts/PieChart"),w=require("@mui/x-date-pickers"),x=require("@mui/x-date-pickers/AdapterMoment"),R=require("moment"),k=require("zod"),j=require("react-hook-form"),P=require("@hookform/resolvers/zod"),U=require("react-router-dom"),B=require("react-dom"),F=require("@mui/x-data-grid-premium"),z=require("@mui/material/IconButton"),Y=require("@mui/material/Drawer"),W=require("@react-spring/web"),K=require("@mui/material/Collapse"),G=require("@mui/x-tree-view/RichTreeView"),V=require("@mui/x-tree-view/TreeItem"),H=require("@mui/x-tree-view/useTreeItem2"),q=require("@mui/x-tree-view/TreeItem2"),Q=require("@mui/x-tree-view/TreeItem2Icon"),Z=require("@mui/x-tree-view/TreeItem2Provider"),$=require("@mui/x-tree-view/TreeItem2DragAndDropOverlay"),J=require("stylis-plugin-rtl"),X=require("stylis"),ee=require("@emotion/cache"),te=require("@emotion/styled"),ne=require("@mui/material/colors"),re=require("@mui/material/SwipeableDrawer"),oe=require("@mui/x-license");function ie(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var ae=ie(s),le=ie(k);function se(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}se("html,\r\nbody {\r\n height: 100vh;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#root {\r\n height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n overflow: hidden;\r\n}\r\n\r\n.red-row {\r\n background-color: #f0d8d8;\r\n}\r\n");const ce=(e=768)=>{const[t,n]=s.useState(window.innerWidth<e);return s.useEffect((()=>{const t=()=>n(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},de=350,ue={themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},pe=m.createSlice({name:"AppLayout",initialState:ue,reducers:{setThemeMode:(e,t)=>{e.themeMode=t.payload},setAppDirection:(e,t)=>{e.appDirection=t.payload}}}),fe=pe.actions;var me=pe.reducer;const ye=m.createSlice({name:"loadingMask",initialState:{value:{isOpened:!1,message:null}},reducers:{showLoadingMask:(e,t)=>{e.value.isOpened=!0,e.value.message=t.payload},hideLoadingMask:e=>{e.value.isOpened=!1,e.value.message=null}}}),{showLoadingMask:he,hideLoadingMask:ge}=ye.actions;var Ee=ye.reducer;const _e=()=>{const e=t.useDispatch();return{show:t=>{e(he(t))},hide:()=>{e(ge())}}},be=()=>{const e=_e(),n=t.useSelector((e=>e.AppInfo.value.apiBaseUrl)),r=h.create({baseURL:n,timeout:6e5,withCredentials:!0});r.defaults.withCredentials=!0,r.interceptors.response.use((e=>e),(e=>{if(e&&(e.response&&(e.response.status&&401===e.response.status)))y.toast.error("your session is now expired, you need to login again",{autoClose:!1});else if(e&&(e.response&&(e.response.status&&403===e.response.status)))y.toast.error("you aren't authorized to process this request");else if(e&&(e.response&&(e.response.status&&500===e.response.status)))if(e.response.data instanceof Blob){e.response.data.text().then((e=>{y.toast.error(e)}))}else y.toast.error(e.response.data);else y.toast.error("failed to communicate with the server ... try again later");return"ERROR"}));return{handleGetRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const n=await r.get(t.endPointURI,{params:{...t.parameters},withCredentials:!0});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==n?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(n),n):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(n),"ERROR")},handlePostRequest:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let n=await r.post(t.endPointURI,t.data,{params:t.parameters});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==n?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(n),n):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(n),"ERROR")},handleDeleteRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let n=await r.delete(t.endPointURI,{params:{...t.parameters}});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==n?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(n),n):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(n),"ERROR")},HandleDownloadHTTPPostPDF:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const n=await r.post(t.endPointURI,t.data,{responseType:"blob"});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==n?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(n),n):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(n),"ERROR")}}},Te=m.createSlice({name:"UserSession",initialState:{value:{isAuthenticated:null,authorities:[]}},reducers:{setAuthenticated:(e,t)=>{e.value=t.payload},setUnAuthenticated:e=>{e.value={isAuthenticated:!1,authorities:[]}}}}),Ae=Te.actions;var Oe=Te.reducer,Ie={"System Administration":"إدارة النظام",welcome:"مرحبا",APP_SETTINGS_LABEL:"الاعدادت",WELCOME_MESSAGE:"اهلا , هذا التطبيق تحت التطوير و هو مصمم للتطبيقات المستقبلية",APP_FOOTER:"حقوق الملكية<sup>&copy;</sup> 2023-2026. جميع الحقوق محفوظة.",TREE_HOME_NODE:"الصفحة الرئيسية",TREE_ADMINISTRATION_NODE:"ادارة النظام",COMMING_SOON_LABEL:"قريبا",TRIAL_LABEL:"تجريبي",GRID_ACTION_LABEL:"الاوامر",SAVE_BTN_LABEL:"حفظ",SEARCH_BTN_LABEL:"بحث",RESET_BTN_LABEL:"ازالة البحث",CANCEL_BTN_LABEL:"الغاء",DELETE_BTN_LABEL:"حذف",EDIT_BTN_LABEL:"تعديل",ADD_BTN_LABEL:"اضافة",RESET_GRID_STATE:"مسح حالة الجدول",EXPORT_EXECL_LABEL:"تحميل Execl",CHANGE_ORG_LABEL:"تغير المنظومة",ORG_LABEL:"المنظومة",VERSION:"رقم الاصدار",COPY_RIGHTS:"جميع الحقوق محفوظة © 2024-2030",SUCCESS_MESSAGE:"تم تنفيذ طلبك بنجاح",REQUIRED_FIELD:"هذه الخانة مطلوبة",ACTIONS:"الاوامر",CONFIRMATION:"تأكيد",DELETION_CONFIRMATION_MESSAGE:"هل انت متأكد من حذف هذا البيان؟",ACTION_CONFIRMATION:"هل انت متأكد من تنفيذ هذه العملية؟",YES_LABEL:"نعم",NO_LABEL:"لا",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"يجب ان تختار علي الاقل بند واحد لتنقيذ هذه العملية",DEFAULT_LOADING_MESSAGE:"جاري تنفيذ طلبك ...برجاء الانتظار",SHOW_REPORT_BTN_LABEL:"عرض التقرير",WF_COMMENT_LABEL:"التعليق",WF_TAKE_ACTION_BTN_LABEL:"ارسل",WF_CANCEL_BTN_LABEL:"الغاء",WE_AVAILABLE_ACTIONS_LABEL:"القرارات المتاحة",WE_NEXT_APPROVER_LABEL:"ارسل الي",WF_ACTION_HISTORY_LABEL:"تاريخ القرارات",WF_WAITING_FOR_LABEL:"في انتظار",VIEW_LABEL:"عرض"},Ne={admin:"admin",ORGANIZATION_SINGULAR:"organization",ORGANIZATION_PLURAL:"organizations",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_AR_NAME:"Organization ar name",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_ORGANIZATION_EN_NAME:"Organization en name",ORGANIZATION_MEMBER_SINGULAR:"organizationmember",ORGANIZATION_MEMBER_PLURAL:"organizationmembers",ORGANIZATION_MEMBER_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_IS_DEFAULT:"Is default",ORGANIZATION_MEMBER_ORGANIZATION_ID:"Organization id",ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID:"Organization rank id",ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID:"Organization unit id",ORGANIZATION_MEMBER_PERSON_ID:"Person id",ORGANIZATION_MEMBER_ROLE_SINGULAR:"organizationmemberrole",ORGANIZATION_MEMBER_ROLE_PLURAL:"organizationmemberroles",ORGANIZATION_MEMBER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_ROLE_END_DATE:"End date",ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID:"Organization member id",ORGANIZATION_MEMBER_ROLE_START_DATE:"Start date",ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_ID:"Organization id",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_RANK_RANK_AR_NAME:"Rank ar name",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_EN_NAME:"Rank en name",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID:"Organization unit type id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_TYPE_SINGULAR:"organizationunittype",ORGANIZATION_UNIT_TYPE_PLURAL:"organizationunittypes",ORGANIZATION_UNIT_TYPE_IS_ACTIVE:"Is active",ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER:"Organization unit type order",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME:"Unit type ar name",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE:"Unit type code",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME:"Unit type en name",PERSON_SINGULAR:"person",PERSON_PLURAL:"persons",PERSON_EMAIL:"Email",PERSON_EMPLOYEE_AR_NAME:"Employee ar name",PERSON_EMPLOYEE_EN_NAME:"Employee en name",PERSON_EMPLOYEE_NUMBER:"Employee number",PERSON_MOBILE_NUMBER:"Mobile number",PERSON_PASSWORD:"Password",PERSON_USERNAME:"Username",SYSTEM_APPLICATION_SINGULAR:"systemapplication",SYSTEM_APPLICATION_PLURAL:"systemapplications",SYSTEM_APPLICATION_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_APPLICATION_CODE:"Application code",SYSTEM_APPLICATION_APPLICATION_DESCRIPTION:"Application description",SYSTEM_APPLICATION_APPLICATION_NAME:"Application name",SYSTEM_APPLICATION_AUTHORITY_SINGULAR:"systemapplicationauthority",SYSTEM_APPLICATION_AUTHORITY_PLURAL:"systemapplicationauthorities",SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID:"System module id",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE:"Authority code",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",SYSTEM_APPLICATION_MODULE_SINGULAR:"systemapplicationmodule",SYSTEM_APPLICATION_MODULE_PLURAL:"systemapplicationmodules",SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION:"Module description",SYSTEM_APPLICATION_MODULE_MODULE_NAME:"Module name",SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_SINGULAR:"systemapplicationrole",SYSTEM_APPLICATION_ROLE_PLURAL:"systemapplicationroles",SYSTEM_APPLICATION_ROLE_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION:"Role description",SYSTEM_APPLICATION_ROLE_ROLE_NAME:"Role name",SYSTEM_APPLICATION_ROLE_AUTHORITY_SINGULAR:"systemapplicationroleauthority",SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL:"systemapplicationroleauthorities",SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID:"System application authority id",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_APPLICATION_MODULE_SINGULAR:"organizationapplicationmodule",ORGANIZATION_APPLICATION_MODULE_PLURAL:"organizationapplicationmodules",ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE:"Expiration date",ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE:"Is active",ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID:"Organization id",ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE:"Subscription date",ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID:"System application module id"};var ve={welcome:"welcome",APP_SETTINGS_LABEL:"Settings",WELCOME_MESSAGE:" Hello, This is an under development template for future apps",APP_FOOTER:"Copyright<sup>&copy;</sup> 2023-2026. All rights reserved.",TREE_HOME_NODE:"Home",TREE_ADMINISTRATION_NODE:"Administration",COMMING_SOON_LABEL:"soon",GRID_ACTION_LABEL:"Actions",TRIAL_LABEL:"trial",SAVE_BTN_LABEL:"Save",SEARCH_BTN_LABEL:"search",RESET_BTN_LABEL:"Reset",CANCEL_BTN_LABEL:"Cancel",DELETE_BTN_LABEL:"Delete",EDIT_BTN_LABEL:"Edit",ADD_BTN_LABEL:"Add",RESET_GRID_STATE:"Clear Grid State",EXPORT_EXECL_LABEL:"Export to excel",CHANGE_ORG_LABEL:"Change Organization",ORG_LABEL:"Organization",VERSION:"V.",COPY_RIGHTS:"Copyright © 2024-2030. All rights reserved.",SUCCESS_MESSAGE:"Your request has been processed successfully",REQUIRED_FIELD:"This field is required",ACTIONS:"Actions",CONFIRMATION:"Confirmation",DELETION_CONFIRMATION_MESSAGE:"Are you sure you want to delete this record ?",ACTION_CONFIRMATION:"Are you sure you want to process this action ?",YES_LABEL:"Yes",NO_LABEL:"No",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"You must at least select on record to process this action on",DEFAULT_LOADING_MESSAGE:"Processing you request ... please wait",SHOW_REPORT_BTN_LABEL:"Show Report",WF_COMMENT_LABEL:"Comment",WF_TAKE_ACTION_BTN_LABEL:"Submit",WF_CANCEL_BTN_LABEL:"Cancel",WE_AVAILABLE_ACTIONS_LABEL:"Available Actions",WE_NEXT_APPROVER_LABEL:"Send To",WF_ACTION_HISTORY_LABEL:"Action History",WF_WAITING_FOR_LABEL:"Waiting For",VIEW_LABEL:"VIEW"},Se={admin:"admin",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_AR_NAME:"Organization ar name",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_ORGANIZATION_EN_NAME:"Organization en name",ORGANIZATION_MEMBER_SINGULAR:"Member",ORGANIZATION_MEMBER_PLURAL:"Members",ORGANIZATION_MEMBER_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_IS_DEFAULT:"Is default",ORGANIZATION_MEMBER_ORGANIZATION_ID:"Organization id",ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID:"Organization rank id",ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID:"Organization unit id",ORGANIZATION_MEMBER_PERSON_ID:"Person id",ORGANIZATION_MEMBER_ROLE_SINGULAR:"organizationmemberrole",ORGANIZATION_MEMBER_ROLE_PLURAL:"organizationmemberroles",ORGANIZATION_MEMBER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_ROLE_END_DATE:"End date",ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID:"Organization member id",ORGANIZATION_MEMBER_ROLE_START_DATE:"Start date",ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_RANK_SINGULAR:"Rank",ORGANIZATION_RANK_PLURAL:"Ranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_ID:"Organization id",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_RANK_RANK_AR_NAME:"Rank ar name",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_EN_NAME:"Rank en name",ORGANIZATION_UNIT_SINGULAR:"Organization Unit",ORGANIZATION_UNIT_PLURAL:"Organization Units",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID:"Organization unit type id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_TYPE_SINGULAR:"Organization uUnit Type",ORGANIZATION_UNIT_TYPE_PLURAL:"Organization Unit Types",ORGANIZATION_UNIT_TYPE_IS_ACTIVE:"Is active",ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER:"Organization unit type order",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME:"Unit type ar name",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE:"Unit type code",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME:"Unit type en name",PERSON_SINGULAR:"person",PERSON_PLURAL:"persons",PERSON_EMAIL:"Email",PERSON_EMPLOYEE_AR_NAME:"Employee ar name",PERSON_EMPLOYEE_EN_NAME:"Employee en name",PERSON_EMPLOYEE_NUMBER:"Employee number",PERSON_MOBILE_NUMBER:"Mobile number",PERSON_PASSWORD:"Password",PERSON_USERNAME:"Username",SYSTEM_APPLICATION_SINGULAR:"Application",SYSTEM_APPLICATION_PLURAL:"Applications",SYSTEM_APPLICATION_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_APPLICATION_CODE:"Application code",SYSTEM_APPLICATION_APPLICATION_DESCRIPTION:"Application description",SYSTEM_APPLICATION_APPLICATION_NAME:"Application name",SYSTEM_APPLICATION_AUTHORITY_SINGULAR:"Authority",SYSTEM_APPLICATION_AUTHORITY_PLURAL:"Authorities",SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID:"System module id",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE:"Authority code",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME:"Authority Name",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",SYSTEM_APPLICATION_MODULE_SINGULAR:"Application Module",SYSTEM_APPLICATION_MODULE_PLURAL:"Application Modules",SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION:"Module description",SYSTEM_APPLICATION_MODULE_MODULE_CODE:"Module Code",SYSTEM_APPLICATION_MODULE_MODULE_NAME:"Module name",SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_SINGULAR:"Role",SYSTEM_APPLICATION_ROLE_PLURAL:"Roles",SYSTEM_APPLICATION_ROLE_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION:"Role description",SYSTEM_APPLICATION_ROLE_ROLE_NAME:"Role name",SYSTEM_APPLICATION_ROLE_AUTHORITY_SINGULAR:"systemapplicationroleauthority",SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL:"systemapplicationroleauthorities",SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID:"System application authority id",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_APPLICATION_MODULE_SINGULAR:"organizationapplicationmodule",ORGANIZATION_APPLICATION_MODULE_PLURAL:"organizationapplicationmodules",ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE:"Expiration date",ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE:"Is active",ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID:"Organization id",ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE:"Subscription date",ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID:"System application module id",PERSON_IS_ACTIVE:"Active"};const Me={en:{translation:{...ve,...Se,...{DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Monitoring",dev:"dev",ATTACHMENT_SINGULAR:"attachment",ATTACHMENT_PLURAL:"attachments",ATTACHMENT_ATTACHMENT_NUMBER:"Attachment number",ATTACHMENT_ATTACHMENT_SIZE:"Attachment size",ATTACHMENT_ATTACHMENT_TYPE:"Attachment type",ATTACHMENT_CATEGORY:"Category",ATTACHMENT_DOC_TYPE:"Doc type",ATTACHMENT_FILE_NAME:"File name",ATTACHMENT_REF_KEY:"Ref key",ATTACHMENT_REMARK:"Remark",BLUE_PRINT_SINGULAR:"Blueprint",BLUE_PRINT_PLURAL:"Blueprints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"dashboard",DASHBOARD_PLURAL:"dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"dashboardwidget",DASHBOARD_WIDGET_PLURAL:"dashboardwidgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"Data Query",DATA_QUERY_PLURAL:"Data Queries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource con id",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"dataqueryparameter",DATA_QUERY_PARAMETER_PLURAL:"dataqueryparameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"Enabled",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",DATA_QUERY_PARAMETER_HIDDEN:"Hidden",DATA_QUERY_PARAMETER_MANDATORY:"Mandatory",DATASOURCE_CONNECTION_SINGULAR:"Datasource Connection",DATASOURCE_CONNECTION_PLURAL:"Datasource Connections",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",ENTITY_PARAMETER_SINGULAR:"Entity Parameter",ENTITY_PARAMETER_PLURAL:"Entity Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"exceluploaderheader",EXCEL_UPLOADER_HEADER_PLURAL:"exceluploaderheaders",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"lookup",LOOKUP_PLURAL:"lookups",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_NAME:"Body Name",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"mailnotificationqueue",MAIL_NOTIFICATION_QUEUE_PLURAL:"mailnotificationqueues",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"Mail Template",MAIL_TEMPLATE_PLURAL:"Mail Templates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NOTIFICATION_SINGULAR:"notification",NOTIFICATION_PLURAL:"notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"notificationqueue",NOTIFICATION_QUEUE_PLURAL:"notificationqueues",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",REPORT_SINGULAR:"Report",REPORT_PLURAL:"Reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow Document",WORKFLOW_DOCUMENT_PLURAL:"Workflow Documents",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"workflowdocumentmaillog",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"workflowdocumentmaillogs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}},ar:{translation:{...Ie,...Ne,...{DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Monitoring",dev:"dev",ATTACHMENT_SINGULAR:"attachment",ATTACHMENT_PLURAL:"attachments",ATTACHMENT_ATTACHMENT_NUMBER:"Attachment number",ATTACHMENT_ATTACHMENT_SIZE:"Attachment size",ATTACHMENT_ATTACHMENT_TYPE:"Attachment type",ATTACHMENT_CATEGORY:"Category",ATTACHMENT_DOC_TYPE:"Doc type",ATTACHMENT_FILE_NAME:"File name",ATTACHMENT_REF_KEY:"Ref key",ATTACHMENT_REMARK:"Remark",BLUE_PRINT_SINGULAR:"blueprint",BLUE_PRINT_PLURAL:"blueprints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"dashboard",DASHBOARD_PLURAL:"dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"dashboardwidget",DASHBOARD_WIDGET_PLURAL:"dashboardwidgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"dataquery",DATA_QUERY_PLURAL:"dataqueries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource con id",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"dataqueryparameter",DATA_QUERY_PARAMETER_PLURAL:"dataqueryparameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"Enabled",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",DATA_QUERY_PARAMETER_HIDDEN:"Hidden",DATA_QUERY_PARAMETER_MANDATORY:"Mandatory",DATASOURCE_CONNECTION_SINGULAR:"Datasource Connection",DATASOURCE_CONNECTION_PLURAL:"Datasource Connections",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",ENTITY_PARAMETER_SINGULAR:"Entity Parameter",ENTITY_PARAMETER_PLURAL:"Entity Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"exceluploaderheader",EXCEL_UPLOADER_HEADER_PLURAL:"exceluploaderheaders",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"lookup",LOOKUP_PLURAL:"lookups",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"mailnotificationqueue",MAIL_NOTIFICATION_QUEUE_PLURAL:"mailnotificationqueues",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"mailtemplate",MAIL_TEMPLATE_PLURAL:"mailtemplates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NOTIFICATION_SINGULAR:"notification",NOTIFICATION_PLURAL:"notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"notificationqueue",NOTIFICATION_QUEUE_PLURAL:"notificationqueues",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",REPORT_SINGULAR:"report",REPORT_PLURAL:"reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow Document",WORKFLOW_DOCUMENT_PLURAL:"Workflow Documents",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"workflowdocumentmaillog",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"workflowdocumentmaillogs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}}};g.use(E.initReactI18next).init({resources:Me,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const Le=t=>{const[n,r]=s.useState(!1),{t:o}=E.useTranslation();return{ConfirmationWindow:()=>e.jsxs(a.Dialog,{open:n,children:[e.jsx(a.DialogTitle,{children:t.title}),e.jsx(a.DialogContent,{children:e.jsx(a.DialogContentText,{children:t.body})}),e.jsxs(a.DialogActions,{children:[e.jsx(a.Button,{variant:"contained",color:"primary",onClick:()=>{r(!1)},children:o("NO_LABEL")}),e.jsx(a.Button,{variant:"contained",color:"error",onClick:()=>{t.onConfirmationCallBk(),r(!1)},autoFocus:!0,children:o("YES_LABEL")})]})]}),open:n,setOpen:r}},De=()=>{const e=t.useSelector((e=>e.UserSession)),n=e.value;return{UserSession:e,isUserAuthorized:t=>{if(e?.value?.authorities)for(let n of e.value.authorities)if("DEVELOPMENT_ADMIN"===n?.authority||n?.authority===t)return!0;return!1},UserInfo:n}},Ce=t=>{const[n,r]=s.useState(!1);return{windowState:n,setWindowState:r,Window:o=>e.jsx(a.Modal,{open:n,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!n&&t?.onCloseCallBack&&t.onCloseCallBack()},children:e.jsxs(a.Box,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:t?.height||"80%",width:t?.width||"90%",minWidth:t.minWidth||400,minHeight:t.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e.jsx(a.AppBar,{position:"static",children:e.jsxs(a.Toolbar,{variant:"dense",children:[e.jsx(f.FontAwesomeIcon,{icon:t?.windowIcon||"window-maximize",style:{marginRight:5}}),e.jsx(a.Typography,{variant:"h6",color:"inherit",component:"div",children:t?.windowTitle||"window"}),e.jsx("div",{style:{flexGrow:1}}),e.jsx(a.IconButton,{onClick:()=>{r(!1),null!=t.onCloseCallBack&&null!=t.onCloseCallBack&&t.onCloseCallBack()},color:"secondary",children:e.jsx(f.FontAwesomeIcon,{icon:"xmark-square"})})]})}),e.jsx(a.Paper,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:o?.children})]})})}},we=m.createSlice({name:"loadingMask",initialState:{stores:{},storeKeys:[],isAutoLoadLoaded:!1},reducers:{setStoresMetaData:(e,t)=>{e.stores=t.payload,e.storeKeys=Object.keys(t.payload)},setStoreData:(e,t)=>{e.stores[t.payload.storeKey].data=t.payload.data},setAutoLoadLoaded:()=>{state.isAutoLoadLoaded=!0}}}),{setStoreData:xe,setStoresMetaData:Re,setAutoLoadLoaded:ke}=we.actions;var je=we.reducer;const Pe=e=>{const n=t.useSelector((e=>e.commonStores.stores)),r=t.useDispatch(),o=De(),{handleGetRequest:i,handlePostRequest:a,handleDeleteRequest:l}=be();return{reloadData:async t=>{if(e?.commonStoreKey){const t=Object.keys(n);for(const a of t)if(a===e.commonStoreKey&&(void 0===n[a]?.authority||null===n[a]?.authority||o.isUserAuthorized(n[a]?.authority))&&""!=n[a]?.url){await i({endPointURI:n[a].url,showMask:!1,successCallBkFn:t=>{r(xe({storeKey:a,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{r(xe({storeKey:a,data:[]})),e.setData([])}});break}}else e?.findAll&&await i({endPointURI:e.findAll,showMask:!0,parameters:t||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let n=null;if(e?.findById){const r={};r[e?.findByIdParamName||"id"]=t,await i({endPointURI:e.findById,showMask:!0,parameters:r,successCallBkFn:e=>{n=e.data}})}return n},saveRecord:async t=>{let n=null;return e?.save&&await a({endPointURI:e.save,data:t,showMask:!0,successCallBkFn:e=>{n=e.data}}),n},deleteRecordById:async t=>{let n=!0;if(e?.deleteById){const r={};r[e?.deleteByIdParamName||"id"]=t,await l({endPointURI:e.deleteById,showMask:!0,parameters:r,successCallBkFn:()=>{n=!0},failureCallBkFn:()=>{n=!1}})}return n}}},Ue=t=>{const{t:n}=E.useTranslation();return e.jsx(a.TextField,{...t,slotProps:{inputLabel:{shrink:!0}},label:e.jsx(e.Fragment,{children:t?.label?n(t.label):""})})};function Be(e,t){return e.filter((e=>-1===t.indexOf(e)))}function Fe(e,t){return e.filter((e=>-1!==t.indexOf(e)))}const ze=({valueField:t="id",displayField:n="name",options:r=[],selectedOptions:o=[],setSelection:i})=>{const[l,s]=ae.useState([]),[c,d]=ae.useState([]),[u,p]=ae.useState([]),[f,m]=ae.useState(""),[y,h]=ae.useState(""),g=Fe(l,c),E=Fe(l,u);ae.useEffect((()=>{r&&d([...r])}),[r]),ae.useEffect((()=>{o&&p([...o])}),[o]);const S=e=>()=>{const t=l.indexOf(e),n=[...l];-1===t?n.push(e):n.splice(t,1),s(n)},M=e=>Fe(l,e).length,L=e=>()=>{var t,n;M(e)===e.length?s(Be(l,e)):s((t=l,n=e,[...t,...Be(n,t)]))},D=(r,o,i)=>{const s=o.filter((e=>{if(e[n]){const t=e[n];if("left"===i&&t.toLocaleLowerCase().includes(f.toLocaleLowerCase()))return!0;if("right"===i&&t.toLocaleLowerCase().includes(y.toLocaleLowerCase()))return!0}return!1}));return e.jsxs(b,{sx:{height:"100%"},children:[e.jsx(T,{sx:{px:2,py:1},avatar:e.jsx(I,{onClick:L(s),checked:M(s)===s.length&&0!==s.length,indeterminate:M(s)!==s.length&&0!==M(s),disabled:0===s.length,inputProps:{"aria-label":"all items selected"}}),title:r,subheader:`${M(o)} / ${o.length} Selected`}),e.jsx(a.Box,{sx:{width:"100%",padding:1},children:e.jsx(Ue,{fullWidth:!0,label:"search",value:"left"===i?f:y,onChange:e=>{"left"===i?m(e.target.value):h(e.target.value)}})}),e.jsx(v,{}),e.jsx(_,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:s.map((r=>(r[t],e.jsxs(a.ListItemButton,{role:"listitem",onClick:S(r),sx:{cursor:"pointer"},children:[e.jsx(O,{children:e.jsx(I,{checked:-1!==l.indexOf(r),tabIndex:-1,disableRipple:!0})}),e.jsx(A,{id:r[t],primary:r[n]})]},r[t]))))})]})};return e.jsxs(a.Grid2,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[e.jsx(a.Grid2,{sx:{height:"100%",flex:1},children:D("Available Items",c,"left")}),e.jsx(a.Grid2,{children:e.jsxs(a.Grid2,{container:!0,direction:"column",alignItems:"center",children:[e.jsx(N,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p((e=>{let t=u.concat(g);return i(t),t})),d(Be(c,g)),s(Be(l,g))},disabled:0===g.length,"aria-label":"move selected right",children:">"}),e.jsx(N,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{d(c.concat(E)),p((e=>{let t=Be(u,E);return i(t),t})),s(Be(l,E))},disabled:0===E.length,"aria-label":"move selected left",children:"<"})]})}),e.jsx(a.Grid2,{sx:{height:"100%",flex:1},children:D("Currently Selected",u,"right")})]})},Ye=t=>e.jsx(S.BarChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band",label:t.valueLabel}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),We=t=>e.jsxs(a.Paper,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[e.jsx(a.Box,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e.jsx("div",{children:t.record[t.valueField]})}),e.jsx(a.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]})]}),Ke=t=>e.jsxs(e.Fragment,{children:[e.jsx(a.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]}),e.jsx(S.Gauge,{width:200,height:200,value:t.record[t.valueField],valueMax:t.total})]}),Ge=t=>e.jsx(S.LineChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band",label:t.valueLabel}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))});function Ve(t){return e.jsxs(D,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(D,{sx:{width:"100%",mr:1},children:e.jsx(M,{variant:"determinate",...t})}),e.jsx(D,{sx:{minWidth:35},children:e.jsx(L,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(t.value)}%`})})]})}const He=t=>e.jsxs(D,{sx:{width:"100%"},children:[e.jsx(L,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]}),e.jsx(Ve,{value:t.record[t.valueField]/t.total*100})]}),qe=t=>{const n=t.data.map(((e,n)=>({id:n,value:e[t.valueField],label:e[t.labelField]+""})));return e.jsx(C.PieChart,{series:[{data:n}]})},Qe=t=>{const{t:n}=E.useTranslation();return e.jsx(a.FormControlLabel,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e.jsx(a.Checkbox,{checked:t?.checkedValue==t.value||"true"===t.value||"1"==t.value,onChange:e=>{void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&(e.target.checked?void 0!==t.checkedValue&&null!=t.checkedValue?t.onChangeCallBack(t.checkedValue):t.onChangeCallBack(!0):void 0!==t.unCheckedValue&&null!=t.unCheckedValue?t.onChangeCallBack(t.unCheckedValue):t.onChangeCallBack(!1))}}),label:n(t.label)})},Ze=n=>{const r=t.useSelector((e=>e.AppLayout)),{t:o}=E.useTranslation();return e.jsx(a.Autocomplete,{sx:n.sx,value:(e=>{for(let t of n.options)if(t[n.valueField]==e)return t;return null})(n.value),options:n.options,disabled:n.disabled,onChange:(e,t)=>{if(void 0!==n.onChangeCallBack&&null!=n.onChangeCallBack)if(null!=t){let e=t[n.valueField];n.onChangeCallBack(e,t)}else n.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:e=>null!=e?o(e[n.displayField]):"",renderOption:(t,r)=>e.jsx("li",{...t,children:null!=r?o(r[n.displayField]):""}),slots:{popper:t=>e.jsx(a.Popper,{...t,style:{...t.style,direction:r.appDirection}})},renderInput:t=>e.jsx(a.TextField,{...t,required:n.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:o(n.label),error:null!=n.errorMessage&&void 0!==n.errorMessage,helperText:null!=n.errorMessage&&void 0!==n.errorMessage?o(n.errorMessage):""})})},$e="YYYY-MM-DD",Je="YYYY-MM-DD HH:mm:ss",Xe="#37505C",et="#ff6d00",tt="#ea690e",nt="#74776B",rt=t=>{const{t:n}=E.useTranslation();return e.jsx(w.LocalizationProvider,{dateAdapter:x.AdapterMoment,children:e.jsx(w.DatePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?R(t.value,t?.format||$e):null,sx:t.sx,label:n(t.label),format:t?.format||$e,disabled:t.disabled,onChange:e=>{let n=null;null!=e&&e.isValid()&&(n=e.format(t?.format||$e)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(n)},slotProps:{textField:{InputLabelProps:{shrink:!0},variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:n(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})},ot=t=>{const{t:n}=E.useTranslation();return e.jsx(w.LocalizationProvider,{dateAdapter:x.AdapterMoment,children:e.jsx(w.DateTimePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?R(t.value,t?.format||Je):null,label:n(t.label),sx:t.sx,format:t?.format||Je,disabled:t.disabled,onChange:e=>{let n=null;null!=e&&e.isValid()&&(n=e.format(t?.format||Je)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(n)},slotProps:{textField:{variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:n(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})};function it(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}var at="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var st,ct={exports:{}},dt={exports:{}},ut={};var pt,ft,mt,yt,ht,gt,Et,_t,bt,Tt,At,Ot,It,Nt,vt,St={};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react-redux"),i=require("@fortawesome/fontawesome-svg-core"),o=require("@fortawesome/free-brands-svg-icons"),a=require("@fortawesome/free-regular-svg-icons"),r=require("@fortawesome/free-solid-svg-icons");require("react-toastify/dist/ReactToastify.css");var d=require("@mui/material"),n=require("@emotion/react"),l=require("react"),s=require("@mui/material/styles"),p=require("@mui/material/CssBaseline"),c=require("@mui/material/AppBar"),u=require("@mui/material/Toolbar"),m=require("@fortawesome/react-fontawesome"),T=require("@reduxjs/toolkit"),A=require("react-toastify"),_=require("axios"),E=require("i18next"),f=require("react-i18next"),I=require("@mui/material/List"),O=require("@mui/material/Card"),N=require("@mui/material/CardHeader"),y=require("@mui/material/ListItemText"),R=require("@mui/material/ListItemIcon"),L=require("@mui/material/Checkbox"),h=require("@mui/material/Button"),P=require("@mui/material/Divider"),M=require("@mui/x-charts"),C=require("@mui/material/LinearProgress"),D=require("@mui/material/Typography"),S=require("@mui/material/Box"),b=require("@mui/x-charts/PieChart"),g=require("@mui/x-date-pickers"),x=require("@mui/x-date-pickers/AdapterMoment"),U=require("moment"),v=require("zod"),F=require("react-hook-form"),w=require("@hookform/resolvers/zod"),B=require("react-router-dom"),k=require("draft-js"),W=require("react-draft-wysiwyg"),G=require("draftjs-to-html"),j=require("draft-js-import-html");require("react-draft-wysiwyg/dist/react-draft-wysiwyg.css");var V=require("@mui/x-data-grid-premium"),Y=require("@mui/material/IconButton"),q=require("@mui/material/Drawer"),K=require("@react-spring/web"),z=require("@mui/material/Collapse"),H=require("@mui/x-tree-view/RichTreeView"),Q=require("@mui/x-tree-view/TreeItem"),Z=require("@mui/x-tree-view/useTreeItem2"),$=require("@mui/x-tree-view/TreeItem2"),X=require("@mui/x-tree-view/TreeItem2Icon"),J=require("@mui/x-tree-view/TreeItem2Provider"),ee=require("@mui/x-tree-view/TreeItem2DragAndDropOverlay"),te=require("stylis-plugin-rtl"),ie=require("stylis"),oe=require("@emotion/cache"),ae=require("@emotion/styled"),re=require("@mui/material/colors"),de=require("@mui/material/SwipeableDrawer"),ne=require("@mui/x-license");function le(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}var se=le(l),pe=le(v);!function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("html,\r\nbody {\r\n height: 100vh;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#root {\r\n height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n overflow: hidden;\r\n}\r\n\r\n.red-row {\r\n background-color: #f0d8d8;\r\n}\r\n");const ce=(e=768)=>{const[t,i]=l.useState(window.innerWidth<e);return l.useEffect((()=>{const t=()=>i(window.innerWidth<e);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},ue=350,me={themeMode:localStorage.getItem("themeMode")||"light",appDirection:"ar"==localStorage.getItem("language")?"rtl":"ltr"},Te=T.createSlice({name:"AppLayout",initialState:me,reducers:{setThemeMode:(e,t)=>{e.themeMode=t.payload},setAppDirection:(e,t)=>{e.appDirection=t.payload}}}),Ae=Te.actions;var _e=Te.reducer;const Ee=T.createSlice({name:"loadingMask",initialState:{value:{isOpened:!1,message:null}},reducers:{showLoadingMask:(e,t)=>{e.value.isOpened=!0,e.value.message=t.payload},hideLoadingMask:e=>{e.value.isOpened=!1,e.value.message=null}}}),{showLoadingMask:fe,hideLoadingMask:Ie}=Ee.actions;var Oe=Ee.reducer;const Ne=()=>{const e=t.useDispatch();return{show:t=>{e(fe(t))},hide:()=>{e(Ie())}}},ye=()=>{const e=Ne(),i=t.useSelector((e=>e.AppInfo.value.apiBaseUrl)),o=_.create({baseURL:i,timeout:6e5,withCredentials:!0});o.defaults.withCredentials=!0,o.interceptors.response.use((e=>e),(e=>{if(e&&(e.response&&(e.response.status&&401===e.response.status)))A.toast.error("your session is now expired, you need to login again",{autoClose:!1});else if(e&&(e.response&&(e.response.status&&403===e.response.status)))A.toast.error("you aren't authorized to process this request");else if(e&&(e.response&&(e.response.status&&500===e.response.status)))if(e.response.data instanceof Blob){e.response.data.text().then((e=>{A.toast.error(e)}))}else A.toast.error(e.response.data);else A.toast.error("failed to communicate with the server ... try again later");return"ERROR"}));return{handleGetRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const i=await o.get(t.endPointURI,{params:{...t.parameters},withCredentials:!0});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},handlePostRequest:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let i=await o.post(t.endPointURI,t.data,{params:t.parameters});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},handleDeleteRequest:async(t={endPointURI:"",parameters:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);let i=await o.delete(t.endPointURI,{params:{...t.parameters}});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")},HandleDownloadHTTPPostPDF:async(t={endPointURI:"",parameters:{},data:{}})=>{void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.show(t.loadingMessage);const i=await o.post(t.endPointURI,t.data,{responseType:"blob"});return void 0!==t.showMask&&null!=t.showMask&&!0===t.showMask&&e.hide(),"ERROR"!==i?(void 0!==t.successCallBkFn&&null!=t.successCallBkFn&&t.successCallBkFn(i),i):(void 0!==t.failureCallBkFn&&null!=t.failureCallBkFn&&t.failureCallBkFn(i),"ERROR")}}},Re=T.createSlice({name:"UserSession",initialState:{value:{isAuthenticated:null,authorities:[]}},reducers:{setAuthenticated:(e,t)=>{e.value=t.payload},setUnAuthenticated:e=>{e.value={isAuthenticated:!1,authorities:[]}}}}),Le=Re.actions;var he=Re.reducer,Pe={"System Administration":"إدارة النظام",welcome:"مرحبا",APP_SETTINGS_LABEL:"الاعدادت",WELCOME_MESSAGE:"اهلا , هذا التطبيق تحت التطوير و هو مصمم للتطبيقات المستقبلية",APP_FOOTER:"حقوق الملكية<sup>&copy;</sup> 2023-2026. جميع الحقوق محفوظة.",TREE_HOME_NODE:"الصفحة الرئيسية",TREE_ADMINISTRATION_NODE:"ادارة النظام",COMMING_SOON_LABEL:"قريبا",TRIAL_LABEL:"تجريبي",GRID_ACTION_LABEL:"الاوامر",SAVE_BTN_LABEL:"حفظ",SEARCH_BTN_LABEL:"بحث",RESET_BTN_LABEL:"ازالة البحث",CANCEL_BTN_LABEL:"الغاء",DELETE_BTN_LABEL:"حذف",EDIT_BTN_LABEL:"تعديل",ADD_BTN_LABEL:"اضافة",RESET_GRID_STATE:"مسح حالة الجدول",EXPORT_EXECL_LABEL:"تحميل Execl",CHANGE_ORG_LABEL:"تغير المنظومة",ORG_LABEL:"المنظومة",VERSION:"رقم الاصدار",COPY_RIGHTS:"جميع الحقوق محفوظة © 2024-2030",SUCCESS_MESSAGE:"تم تنفيذ طلبك بنجاح",REQUIRED_FIELD:"هذه الخانة مطلوبة",ACTIONS:"الاوامر",CONFIRMATION:"تأكيد",DELETION_CONFIRMATION_MESSAGE:"هل انت متأكد من حذف هذا البيان؟",ACTION_CONFIRMATION:"هل انت متأكد من تنفيذ هذه العملية؟",YES_LABEL:"نعم",NO_LABEL:"لا",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"يجب ان تختار علي الاقل بند واحد لتنقيذ هذه العملية",DEFAULT_LOADING_MESSAGE:"جاري تنفيذ طلبك ...برجاء الانتظار",SHOW_REPORT_BTN_LABEL:"عرض التقرير",WF_COMMENT_LABEL:"التعليق",WF_TAKE_ACTION_BTN_LABEL:"ارسل",WF_CANCEL_BTN_LABEL:"الغاء",WE_AVAILABLE_ACTIONS_LABEL:"القرارات المتاحة",WE_NEXT_APPROVER_LABEL:"ارسل الي",WF_ACTION_HISTORY_LABEL:"تاريخ القرارات",WF_WAITING_FOR_LABEL:"في انتظار",VIEW_LABEL:"عرض"},Me={admin:"admin",ORGANIZATION_SINGULAR:"organization",ORGANIZATION_PLURAL:"organizations",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_AR_NAME:"Organization ar name",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_ORGANIZATION_EN_NAME:"Organization en name",ORGANIZATION_MEMBER_SINGULAR:"organizationmember",ORGANIZATION_MEMBER_PLURAL:"organizationmembers",ORGANIZATION_MEMBER_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_IS_DEFAULT:"Is default",ORGANIZATION_MEMBER_ORGANIZATION_ID:"Organization id",ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID:"Organization rank id",ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID:"Organization unit id",ORGANIZATION_MEMBER_PERSON_ID:"Person id",ORGANIZATION_MEMBER_ROLE_SINGULAR:"organizationmemberrole",ORGANIZATION_MEMBER_ROLE_PLURAL:"organizationmemberroles",ORGANIZATION_MEMBER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_ROLE_END_DATE:"End date",ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID:"Organization member id",ORGANIZATION_MEMBER_ROLE_START_DATE:"Start date",ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_RANK_SINGULAR:"organizationrank",ORGANIZATION_RANK_PLURAL:"organizationranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_ID:"Organization id",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_RANK_RANK_AR_NAME:"Rank ar name",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_EN_NAME:"Rank en name",ORGANIZATION_UNIT_SINGULAR:"organizationunit",ORGANIZATION_UNIT_PLURAL:"organizationunits",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID:"Organization unit type id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_TYPE_SINGULAR:"organizationunittype",ORGANIZATION_UNIT_TYPE_PLURAL:"organizationunittypes",ORGANIZATION_UNIT_TYPE_IS_ACTIVE:"Is active",ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER:"Organization unit type order",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME:"Unit type ar name",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE:"Unit type code",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME:"Unit type en name",PERSON_SINGULAR:"person",PERSON_PLURAL:"persons",PERSON_EMAIL:"Email",PERSON_EMPLOYEE_AR_NAME:"Employee ar name",PERSON_EMPLOYEE_EN_NAME:"Employee en name",PERSON_EMPLOYEE_NUMBER:"Employee number",PERSON_MOBILE_NUMBER:"Mobile number",PERSON_PASSWORD:"Password",PERSON_USERNAME:"Username",SYSTEM_APPLICATION_SINGULAR:"systemapplication",SYSTEM_APPLICATION_PLURAL:"systemapplications",SYSTEM_APPLICATION_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_APPLICATION_CODE:"Application code",SYSTEM_APPLICATION_APPLICATION_DESCRIPTION:"Application description",SYSTEM_APPLICATION_APPLICATION_NAME:"Application name",SYSTEM_APPLICATION_AUTHORITY_SINGULAR:"systemapplicationauthority",SYSTEM_APPLICATION_AUTHORITY_PLURAL:"systemapplicationauthorities",SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID:"System module id",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE:"Authority code",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",SYSTEM_APPLICATION_MODULE_SINGULAR:"systemapplicationmodule",SYSTEM_APPLICATION_MODULE_PLURAL:"systemapplicationmodules",SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION:"Module description",SYSTEM_APPLICATION_MODULE_MODULE_NAME:"Module name",SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_SINGULAR:"systemapplicationrole",SYSTEM_APPLICATION_ROLE_PLURAL:"systemapplicationroles",SYSTEM_APPLICATION_ROLE_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION:"Role description",SYSTEM_APPLICATION_ROLE_ROLE_NAME:"Role name",SYSTEM_APPLICATION_ROLE_AUTHORITY_SINGULAR:"systemapplicationroleauthority",SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL:"systemapplicationroleauthorities",SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID:"System application authority id",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_APPLICATION_MODULE_SINGULAR:"organizationapplicationmodule",ORGANIZATION_APPLICATION_MODULE_PLURAL:"organizationapplicationmodules",ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE:"Expiration date",ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE:"Is active",ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID:"Organization id",ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE:"Subscription date",ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID:"System application module id"};var Ce={welcome:"welcome",APP_SETTINGS_LABEL:"Settings",WELCOME_MESSAGE:" Hello, This is an under development template for future apps",APP_FOOTER:"Copyright<sup>&copy;</sup> 2023-2026. All rights reserved.",TREE_HOME_NODE:"Home",TREE_ADMINISTRATION_NODE:"Administration",COMMING_SOON_LABEL:"soon",GRID_ACTION_LABEL:"Actions",TRIAL_LABEL:"trial",SAVE_BTN_LABEL:"Save",SEARCH_BTN_LABEL:"search",RESET_BTN_LABEL:"Reset",CANCEL_BTN_LABEL:"Cancel",DELETE_BTN_LABEL:"Delete",EDIT_BTN_LABEL:"Edit",ADD_BTN_LABEL:"Add",RESET_GRID_STATE:"Clear Grid State",EXPORT_EXECL_LABEL:"Export to excel",CHANGE_ORG_LABEL:"Change Organization",ORG_LABEL:"Organization",VERSION:"V.",COPY_RIGHTS:"Copyright © 2024-2030. All rights reserved.",SUCCESS_MESSAGE:"Your request has been processed successfully",REQUIRED_FIELD:"This field is required",ACTIONS:"Actions",CONFIRMATION:"Confirmation",DELETION_CONFIRMATION_MESSAGE:"Are you sure you want to delete this record ?",ACTION_CONFIRMATION:"Are you sure you want to process this action ?",YES_LABEL:"Yes",NO_LABEL:"No",AT_LEAST_ONE_RECORD_SELECTED_MESSAGE:"You must at least select on record to process this action on",DEFAULT_LOADING_MESSAGE:"Processing you request ... please wait",SHOW_REPORT_BTN_LABEL:"Show Report",WF_COMMENT_LABEL:"Comment",WF_TAKE_ACTION_BTN_LABEL:"Submit",WF_CANCEL_BTN_LABEL:"Cancel",WE_AVAILABLE_ACTIONS_LABEL:"Available Actions",WE_NEXT_APPROVER_LABEL:"Send To",WF_ACTION_HISTORY_LABEL:"Action History",WF_WAITING_FOR_LABEL:"Waiting For",VIEW_LABEL:"VIEW"},De={admin:"admin",ORGANIZATION_SINGULAR:"Organization",ORGANIZATION_PLURAL:"Organizations",ORGANIZATION_IS_ACTIVE:"Is active",ORGANIZATION_ORGANIZATION_AR_NAME:"Organization ar name",ORGANIZATION_ORGANIZATION_CODE:"Organization code",ORGANIZATION_ORGANIZATION_EN_NAME:"Organization en name",ORGANIZATION_MEMBER_SINGULAR:"Member",ORGANIZATION_MEMBER_PLURAL:"Members",ORGANIZATION_MEMBER_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_IS_DEFAULT:"Is default",ORGANIZATION_MEMBER_ORGANIZATION_ID:"Organization id",ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID:"Organization rank id",ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID:"Organization unit id",ORGANIZATION_MEMBER_PERSON_ID:"Person id",ORGANIZATION_MEMBER_ROLE_SINGULAR:"organizationmemberrole",ORGANIZATION_MEMBER_ROLE_PLURAL:"organizationmemberroles",ORGANIZATION_MEMBER_ROLE_IS_ACTIVE:"Is active",ORGANIZATION_MEMBER_ROLE_END_DATE:"End date",ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID:"Organization member id",ORGANIZATION_MEMBER_ROLE_START_DATE:"Start date",ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_RANK_SINGULAR:"Rank",ORGANIZATION_RANK_PLURAL:"Ranks",ORGANIZATION_RANK_ENABLED:"Enabled",ORGANIZATION_RANK_ORGANIZATION_ID:"Organization id",ORGANIZATION_RANK_RANK_ORDER:"Rank order",ORGANIZATION_RANK_RANK_AR_NAME:"Rank ar name",ORGANIZATION_RANK_RANK_CODE:"Rank code",ORGANIZATION_RANK_RANK_EN_NAME:"Rank en name",ORGANIZATION_UNIT_SINGULAR:"Organization Unit",ORGANIZATION_UNIT_PLURAL:"Organization Units",ORGANIZATION_UNIT_ENABLED:"Enabled",ORGANIZATION_UNIT_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID:"Organization unit parent id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID:"Organization unit type id",ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME:"Organization unit ar name",ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME:"Organization unit en name",ORGANIZATION_UNIT_TYPE_SINGULAR:"Organization uUnit Type",ORGANIZATION_UNIT_TYPE_PLURAL:"Organization Unit Types",ORGANIZATION_UNIT_TYPE_IS_ACTIVE:"Is active",ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID:"Organization id",ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER:"Organization unit type order",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME:"Unit type ar name",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE:"Unit type code",ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME:"Unit type en name",PERSON_SINGULAR:"person",PERSON_PLURAL:"persons",PERSON_EMAIL:"Email",PERSON_EMPLOYEE_AR_NAME:"Employee ar name",PERSON_EMPLOYEE_EN_NAME:"Employee en name",PERSON_EMPLOYEE_NUMBER:"Employee number",PERSON_MOBILE_NUMBER:"Mobile number",PERSON_PASSWORD:"Password",PERSON_USERNAME:"Username",SYSTEM_APPLICATION_SINGULAR:"Application",SYSTEM_APPLICATION_PLURAL:"Applications",SYSTEM_APPLICATION_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_APPLICATION_CODE:"Application code",SYSTEM_APPLICATION_APPLICATION_DESCRIPTION:"Application description",SYSTEM_APPLICATION_APPLICATION_NAME:"Application name",SYSTEM_APPLICATION_AUTHORITY_SINGULAR:"Authority",SYSTEM_APPLICATION_AUTHORITY_PLURAL:"Authorities",SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID:"System module id",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE:"Authority code",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME:"Authority Name",SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION:"Authority description",SYSTEM_APPLICATION_MODULE_SINGULAR:"Application Module",SYSTEM_APPLICATION_MODULE_PLURAL:"Application Modules",SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION:"Module description",SYSTEM_APPLICATION_MODULE_MODULE_CODE:"Module Code",SYSTEM_APPLICATION_MODULE_MODULE_NAME:"Module name",SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_SINGULAR:"Role",SYSTEM_APPLICATION_ROLE_PLURAL:"Roles",SYSTEM_APPLICATION_ROLE_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID:"System application id",SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION:"Role description",SYSTEM_APPLICATION_ROLE_ROLE_NAME:"Role name",SYSTEM_APPLICATION_ROLE_AUTHORITY_SINGULAR:"systemapplicationroleauthority",SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL:"systemapplicationroleauthorities",SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE:"Is active",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID:"System application authority id",SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID:"System application role id",ORGANIZATION_APPLICATION_MODULE_SINGULAR:"organizationapplicationmodule",ORGANIZATION_APPLICATION_MODULE_PLURAL:"organizationapplicationmodules",ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE:"Expiration date",ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE:"Is active",ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID:"Organization id",ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE:"Subscription date",ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID:"System application module id",PERSON_IS_ACTIVE:"Active"};const Se={en:{translation:{...Ce,...De,...{DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Monitoring",dev:"dev",ATTACHMENT_SINGULAR:"attachment",ATTACHMENT_PLURAL:"attachments",ATTACHMENT_ATTACHMENT_NUMBER:"Attachment number",ATTACHMENT_ATTACHMENT_SIZE:"Attachment size",ATTACHMENT_ATTACHMENT_TYPE:"Attachment type",ATTACHMENT_CATEGORY:"Category",ATTACHMENT_DOC_TYPE:"Doc type",ATTACHMENT_FILE_NAME:"File name",ATTACHMENT_REF_KEY:"Ref key",ATTACHMENT_REMARK:"Remark",BLUE_PRINT_SINGULAR:"Blueprint",BLUE_PRINT_PLURAL:"Blueprints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"dashboard",DASHBOARD_PLURAL:"dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"dashboardwidget",DASHBOARD_WIDGET_PLURAL:"dashboardwidgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"Data Query",DATA_QUERY_PLURAL:"Data Queries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource con id",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"dataqueryparameter",DATA_QUERY_PARAMETER_PLURAL:"dataqueryparameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"Enabled",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",DATA_QUERY_PARAMETER_HIDDEN:"Hidden",DATA_QUERY_PARAMETER_MANDATORY:"Mandatory",DATASOURCE_CONNECTION_SINGULAR:"Datasource Connection",DATASOURCE_CONNECTION_PLURAL:"Datasource Connections",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",ENTITY_PARAMETER_SINGULAR:"Entity Parameter",ENTITY_PARAMETER_PLURAL:"Entity Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"exceluploaderheader",EXCEL_UPLOADER_HEADER_PLURAL:"exceluploaderheaders",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"lookup",LOOKUP_PLURAL:"lookups",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_NAME:"Body Name",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"mailnotificationqueue",MAIL_NOTIFICATION_QUEUE_PLURAL:"mailnotificationqueues",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"Mail Template",MAIL_TEMPLATE_PLURAL:"Mail Templates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NOTIFICATION_SINGULAR:"notification",NOTIFICATION_PLURAL:"notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"notificationqueue",NOTIFICATION_QUEUE_PLURAL:"notificationqueues",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",REPORT_SINGULAR:"Report",REPORT_PLURAL:"Reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow Document",WORKFLOW_DOCUMENT_PLURAL:"Workflow Documents",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"workflowdocumentmaillog",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"workflowdocumentmaillogs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}},ar:{translation:{...Pe,...Me,...{DEVELOPMENT_TOOLS:"Development Tools",SYSTEM_MONITORING:"System Monitoring",dev:"dev",ATTACHMENT_SINGULAR:"attachment",ATTACHMENT_PLURAL:"attachments",ATTACHMENT_ATTACHMENT_NUMBER:"Attachment number",ATTACHMENT_ATTACHMENT_SIZE:"Attachment size",ATTACHMENT_ATTACHMENT_TYPE:"Attachment type",ATTACHMENT_CATEGORY:"Category",ATTACHMENT_DOC_TYPE:"Doc type",ATTACHMENT_FILE_NAME:"File name",ATTACHMENT_REF_KEY:"Ref key",ATTACHMENT_REMARK:"Remark",BLUE_PRINT_SINGULAR:"blueprint",BLUE_PRINT_PLURAL:"blueprints",BLUE_PRINT_BLUE_PRINT_CODE:"Blue print code",BLUE_PRINT_QUERY_ID:"Query id",BLUE_PRINT_PAGE_SINGULAR:"blueprintpage",BLUE_PRINT_PAGE_PLURAL:"blueprintpages",BLUE_PRINT_PAGE_BLUE_PRINT_ID:"Blue print id",BLUE_PRINT_PAGE_ENABLED:"Enabled",BLUE_PRINT_PAGE_PAGE_NAME:"Page name",BLUE_PRINT_PAGE_PAGE_ORDER:"Page order",BLUE_PRINT_PAGE_QUERY_ID:"Query id",BLUE_PRINT_POINT_SINGULAR:"blueprintpoint",BLUE_PRINT_POINT_PLURAL:"blueprintpoints",BLUE_PRINT_POINT_BLUE_PRINT_PAGE_ID:"Blue print page id",BLUE_PRINT_POINT_FONT_SIZE:"Font size",BLUE_PRINT_POINT_POINT_CODE:"Point code",BLUE_PRINT_POINT_X:"X",BLUE_PRINT_POINT_Y:"Y",DASHBOARD_SINGULAR:"dashboard",DASHBOARD_PLURAL:"dashboards",DASHBOARD_DASHBOARD_CODE:"Dashboard code",DASHBOARD_DASHBOARD_NAME:"Dashboard name",DASHBOARD_DASHBOARD_TITLE:"Dashboard title",DASHBOARD_ENABLED:"Enabled",DASHBOARD_LOAD_WIDGETS_INDIVIDUALLY:"Load widgets individually",DASHBOARD_NUMBER_OF_COLUMNS:"Number of columns",DASHBOARD_WIDGET_SINGULAR:"dashboardwidget",DASHBOARD_WIDGET_PLURAL:"dashboardwidgets",DASHBOARD_WIDGET_DASHBOARD_ID:"Dashboard id",DASHBOARD_WIDGET_ENABLED:"Enabled",DASHBOARD_WIDGET_WIDGET_ID:"Widget id",DASHBOARD_WIDGET_WIDGET_ORDER:"Widget order",DATA_QUERY_SINGULAR:"dataquery",DATA_QUERY_PLURAL:"dataqueries",DATA_QUERY_DATASOURCE_CON_ID:"Datasource con id",DATA_QUERY_QUERY_NAME:"Query name",DATA_QUERY_QUERY_STR:"Query str",DATA_QUERY_USE_SYS_CON:"Use sys con",DATA_QUERY_PARAMETER_SINGULAR:"dataqueryparameter",DATA_QUERY_PARAMETER_PLURAL:"dataqueryparameters",DATA_QUERY_PARAMETER_DATA_QUERY_ID:"Data query id",DATA_QUERY_PARAMETER_DEFAULT_VALUE:"Default value",DATA_QUERY_PARAMETER_ENABLED:"Enabled",DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",DATA_QUERY_PARAMETER_HIDDEN:"Hidden",DATA_QUERY_PARAMETER_MANDATORY:"Mandatory",DATASOURCE_CONNECTION_SINGULAR:"Datasource Connection",DATASOURCE_CONNECTION_PLURAL:"Datasource Connections",DATASOURCE_CONNECTION_CONNECTION_NAME:"Connection name",DATASOURCE_CONNECTION_DATASOURCE_PASSWORD:"Datasource password",DATASOURCE_CONNECTION_DATASOURCE_TYPE:"Datasource type",DATASOURCE_CONNECTION_DATASOURCE_URL:"Datasource url",DATASOURCE_CONNECTION_DATASOURCE_USERNAME:"Datasource username",DATASOURCE_CONNECTION_ENABLED:"Enabled",ENTITY_PARAMETER_SINGULAR:"Entity Parameter",ENTITY_PARAMETER_PLURAL:"Entity Parameters",ENTITY_PARAMETER_ENABLED:"Enabled",ENTITY_PARAMETER_PARAMETER_CODE:"Parameter code",ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID:"Parameter data query id",ENTITY_PARAMETER_PARAMETER_DATASET:"Parameter dataset",ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD:"Parameter display field",ENTITY_PARAMETER_PARAMETER_LABEL:"Parameter label",ENTITY_PARAMETER_PARAMETER_TYPE:"Parameter type",ENTITY_PARAMETER_PARAMETER_VALUE_FIELD:"Parameter value field",ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT:"Parameter value format",EXCEL_UPLOADER_DETAIL_SINGULAR:"exceluploaderdetail",EXCEL_UPLOADER_DETAIL_PLURAL:"exceluploaderdetails",EXCEL_UPLOADER_DETAIL_COLUMN_INDEX:"Column index",EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID:"Excel uploader header id",EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID:"Lookup query id",EXCEL_UPLOADER_DETAIL_TABLE_FIELD:"Table field",EXCEL_UPLOADER_HEADER_SINGULAR:"exceluploaderheader",EXCEL_UPLOADER_HEADER_PLURAL:"exceluploaderheaders",EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID:"Uploader connection id",EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME:"Uploader database name",EXCEL_UPLOADER_HEADER_UPLOADER_NAME:"Uploader name",EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME:"Uploader table name",LOOKUP_SINGULAR:"lookup",LOOKUP_PLURAL:"lookups",LOOKUP_ENABLED:"Enabled",LOOKUP_LOOKUP_AR_DISPLAY:"Lookup ar display",LOOKUP_LOOKUP_EN_DISPLAY:"Lookup en display",LOOKUP_LOOKUP_TYPE:"Lookup type",LOOKUP_LOOKUP_VALUE:"Lookup value",LOOKUP_ORG_CODE:"Org code",MAIL_ATTACHMENT_SINGULAR:"mailattachment",MAIL_ATTACHMENT_PLURAL:"mailattachments",MAIL_ATTACHMENT_ENABLED:"Enabled",MAIL_ATTACHMENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_ATTACHMENT_REPORT_ID:"Report id",MAIL_BODY_SINGULAR:"mailbody",MAIL_BODY_PLURAL:"mailbodies",MAIL_BODY_BODY_CONTENT:"Body content",MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID:"Body content data query id",MAIL_BODY_BODY_ORDER:"Body order",MAIL_BODY_ENABLED:"Enabled",MAIL_BODY_IS_MAIN:"Is main",MAIL_BODY_MAIL_TEMPLATE_ID:"Mail template id",MAIL_BODY_PRINT_FOR_EACH_RECORD:"Print for each record",MAIL_NOTIFICATION_QUEUE_SINGULAR:"mailnotificationqueue",MAIL_NOTIFICATION_QUEUE_PLURAL:"mailnotificationqueues",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID:"Custom mail attached report id",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY:"Custom mail body",MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT:"Custom mail subject",MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS:"Custom recipients",MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS:"Mail parameters",MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID:"Mail template id",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE:"Notification message",MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME:"Notification time",MAIL_RECIPIENT_SINGULAR:"mailrecipient",MAIL_RECIPIENT_PLURAL:"mailrecipients",MAIL_RECIPIENT_ENABLED:"Enabled",MAIL_RECIPIENT_MAIL_TEMPLATE_ID:"Mail template id",MAIL_RECIPIENT_RECIPIENT_MAIL:"Recipient mail",MAIL_RECIPIENT_RECIPIENT_TYPE:"Recipient type",MAIL_TEMPLATE_SINGULAR:"mailtemplate",MAIL_TEMPLATE_PLURAL:"mailtemplates",MAIL_TEMPLATE_ENABLED:"Enabled",MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID:"Mail cc data query id",MAIL_TEMPLATE_MAIL_SUBJECT:"Mail subject",MAIL_TEMPLATE_MAIL_TEMPLATE_CODE:"Mail template code",MAIL_TEMPLATE_MAIL_TEMPLATE_NAME:"Mail template name",MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID:"Mail to data query id",MAIL_TEMPLATE_PERIOD_TYPE:"Period type",MAIL_TEMPLATE_PERIOD_VALUE:"Period value",MAIL_TEMPLATE_PERIODICAL:"Periodical",MAIL_TEMPLATE_START_SENDING_AT:"Start sending at",MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID:"Subject data query id",NOTIFICATION_SINGULAR:"notification",NOTIFICATION_PLURAL:"notifications",NOTIFICATION_ENABLED:"Enabled",NOTIFICATION_NOTIFICATION_ACTION_KEY:"Notification action key",NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD:"Notification action payload",NOTIFICATION_NOTIFICATION_CODE:"Notification code",NOTIFICATION_NOTIFICATION_ICON:"Notification icon",NOTIFICATION_NOTIFICATION_QUERY_ID:"Notification query id",NOTIFICATION_NOTIFICATION_TEXT:"Notification text",NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID:"Users to notify query id",NOTIFICATION_QUEUE_SINGULAR:"notificationqueue",NOTIFICATION_QUEUE_PLURAL:"notificationqueues",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY:"Custom notification action key",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD:"Custom notification action payload",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON:"Custom notification icon",NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT:"Custom notification text",NOTIFICATION_QUEUE_IS_NOTIFIED:"Is notified",NOTIFICATION_QUEUE_NOTIFICATION_CODE:"Notification code",NOTIFICATION_QUEUE_NOTIFICATION_PARAMS:"Notification params",NOTIFICATION_QUEUE_NOTIFIED_TIME:"Notified time",NOTIFICATION_QUEUE_USERNAME:"Username",REPORT_SINGULAR:"report",REPORT_PLURAL:"reports",REPORT_DATASOURCE_CON_ID:"Datasource con id",REPORT_REPORT_BLUE_PRINT_ID:"Report blue print id",REPORT_REPORT_CATEGORY:"Report category",REPORT_REPORT_CODE:"Report code",REPORT_REPORT_EXCEL_DATA_QUERY_ID:"Report excel data query id",REPORT_REPORT_EXPORT_NAME:"Report export name",REPORT_REPORT_JASPER_NAME:"Report jasper name",REPORT_REPORT_JASPER_PATH:"Report jasper path",REPORT_REPORT_MENU_CODE:"Report menu code",REPORT_REPORT_NAME:"Report name",REPORT_REPORT_TYPE:"Report type",REPORT_USE_SYS_DATASOURCE:"Use sys datasource",REPORT_PARAMETER_SINGULAR:"reportparameter",REPORT_PARAMETER_PLURAL:"reportparameters",REPORT_PARAMETER_DEFAULT_VALUE:"Default value",REPORT_PARAMETER_ENABLED:"Enabled",REPORT_PARAMETER_ENTITY_PARAMETER_ID:"Entity parameter id",REPORT_PARAMETER_HIDDEN:"Hidden",REPORT_PARAMETER_MANDATORY:"Mandatory",REPORT_PARAMETER_REPORT_ID:"Report id",USER_REQUEST_SINGULAR:"userrequest",USER_REQUEST_PLURAL:"userrequests",USER_REQUEST_IS_NOTIFIED:"Is notified",USER_REQUEST_MAILS_TO_NOTIFY:"Mails to notify",USER_REQUEST_NOTIFICATION_MESSAGE:"Notification message",USER_REQUEST_NOTIFICATION_TIME:"Notification time",USER_REQUEST_NOTIFICATION_TYPE:"Notification type",USER_REQUEST_NOTIFY_USER:"Notify user",USER_REQUEST_REPORT_CODE:"Report code",USER_REQUEST_REPORT_PARAMETERS:"Report parameters",USER_REQUEST_REQUEST_TYPE:"Request type",USER_REQUEST_STATUS:"Status",USER_REQUEST_STATUS_MESSAGE:"Status message",WIDGET_SINGULAR:"widget",WIDGET_PLURAL:"widgets",WIDGET_DATA_QUERY_ID:"Data query id",WIDGET_ENABLED:"Enabled",WIDGET_HEIGHT:"Height",WIDGET_HORIZONTAL_AXIS_FIELD:"Horizontal axis field",WIDGET_HORIZONTAL_AXIS_LABEL:"Horizontal axis label",WIDGET_ICON:"Icon",WIDGET_SERIES_KEYS:"Series keys",WIDGET_TITLE:"Title",WIDGET_VERTICAL_AXIS_FIELD:"Vertical axis field",WIDGET_VERTICAL_AXIS_LABEL:"Vertical axis label",WIDGET_WIDGET_DESCRIPTION:"Widget description",WIDGET_WIDGET_NAME:"Widget name",WIDGET_WIDGET_TYPE:"Widget type",WIDGET_WIDTH:"Width",WORKFLOW_DOCUMENT_SINGULAR:"Workflow Document",WORKFLOW_DOCUMENT_PLURAL:"Workflow Documents",WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON:"App notification icon",WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE:"App notification style",WORKFLOW_DOCUMENT_APP_VIEW_ROUTE:"App view route",WORKFLOW_DOCUMENT_DOCUMENT_CODE:"Document code",WORKFLOW_DOCUMENT_DOCUMENT_CON_ID:"Document con id",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME:"Document database name",WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE:"Document database table",WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD:"Document id field",WORKFLOW_DOCUMENT_DOCUMENT_NAME:"Document name",WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD:"Document number field",WORKFLOW_DOCUMENT_DOCUMENT_REPORT_ID:"Document report id",WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD:"Document status field",WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED:"Mail approval allowed",WORKFLOW_DOCUMENT_ORG_CODE:"Org code",WORKFLOW_DOCUMENT_USE_SYSTEM_CON:"Use system con",WORKFLOW_DOCUMENT_ACTION_SINGULAR:"workflowdocumentaction",WORKFLOW_DOCUMENT_ACTION_PLURAL:"workflowdocumentactions",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE:"Document action code",WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_NAME:"Document action name",WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID:"Next document status id",WORKFLOW_DOCUMENT_ACTION_POST_ACTION_ENDPOINT:"Post action endpoint",WORKFLOW_DOCUMENT_ACTION_PRE_ACTION_ENDPOINT:"Pre action endpoint",WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT:"Require comment",WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_HISTORY_SINGULAR:"workflowdocumentactionhistory",WORKFLOW_DOCUMENT_ACTION_HISTORY_PLURAL:"workflowdocumentactionhistories",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_BY:"Action by",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_COMMENT:"Action comment",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_METHOD:"Action method",WORKFLOW_DOCUMENT_ACTION_HISTORY_ACTION_TIME:"Action time",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_HISTORY_DOCUMENT_REF_ID:"Document ref id",WORKFLOW_DOCUMENT_ACTION_HISTORY_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_ACTION_MAIL_SINGULAR:"workflowdocumentactionmail",WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL:"workflowdocumentactionmails",WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID:"Document action id",WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED:"Enabled",WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID:"Mail template id",WORKFLOW_DOCUMENT_MAIL_LOG_SINGULAR:"workflowdocumentmaillog",WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL:"workflowdocumentmaillogs",WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID:"Graph api msg id",WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED:"Is processed",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE:"Mail action code",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT:"Mail body content",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM:"Mail from",WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT:"Mail subject",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE:"Process message",WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME:"Process time",WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID:"Ref doc id",WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID:"Workflow document id",WORKFLOW_DOCUMENT_STATUS_SINGULAR:"workflowdocumentstatus",WORKFLOW_DOCUMENT_STATUS_PLURAL:"workflowdocumentstatuses",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE:"Document status code",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_NAME:"Document status name",WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER:"Document status order",WORKFLOW_DOCUMENT_STATUS_ENABLED:"Enabled",WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE:"Is zero state",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTION_TAKERS_QUERY_ID:"Next action takers query id",WORKFLOW_DOCUMENT_STATUS_NEXT_ACTIONS_QUERY_ID:"Next actions query id",WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID:"Workflow document id"}}}};E.use(f.initReactI18next).init({resources:Se,lng:localStorage.getItem("language")||"en",fallbackLng:"en"});const be=t=>{const[i,o]=l.useState(!1),{t:a}=f.useTranslation();return{ConfirmationWindow:()=>e.jsxs(d.Dialog,{open:i,children:[e.jsx(d.DialogTitle,{children:t.title}),e.jsx(d.DialogContent,{children:e.jsx(d.DialogContentText,{children:t.body})}),e.jsxs(d.DialogActions,{children:[e.jsx(d.Button,{variant:"contained",color:"primary",onClick:()=>{o(!1)},children:a("NO_LABEL")}),e.jsx(d.Button,{variant:"contained",color:"error",onClick:()=>{t.onConfirmationCallBk(),o(!1)},autoFocus:!0,children:a("YES_LABEL")})]})]}),open:i,setOpen:o}},ge=()=>{const e=t.useSelector((e=>e.UserSession)),i=e.value;return{UserSession:e,isUserAuthorized:t=>{if(e?.value?.authorities)for(let i of e.value.authorities)if("DEVELOPMENT_ADMIN"===i?.authority||i?.authority===t)return!0;return!1},UserInfo:i}},xe=t=>{const[i,o]=l.useState(!1);return{windowState:i,setWindowState:o,Window:a=>e.jsx(d.Modal,{open:i,sx:{zIndex:e=>e.zIndex.drawer},onClose:()=>{!i&&t?.onCloseCallBack&&t.onCloseCallBack()},children:e.jsxs(d.Box,{sx:{position:"absolute",top:"50%",left:"50%",maxHeight:"90%",transform:"translate(-50%, -50%)",height:t?.height||"80%",width:t?.width||"90%",minWidth:t.minWidth||400,minHeight:t.minHeight||200,overflow:"hidden",bgcolor:"modalBackground.main",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:[e.jsx(d.AppBar,{position:"static",children:e.jsxs(d.Toolbar,{variant:"dense",children:[e.jsx(m.FontAwesomeIcon,{icon:t?.windowIcon||"window-maximize",style:{marginRight:5}}),e.jsx(d.Typography,{variant:"h6",color:"inherit",component:"div",children:t?.windowTitle||"window"}),e.jsx("div",{style:{flexGrow:1}}),e.jsx(d.IconButton,{onClick:()=>{o(!1),null!=t.onCloseCallBack&&null!=t.onCloseCallBack&&t.onCloseCallBack()},color:"secondary",children:e.jsx(m.FontAwesomeIcon,{icon:"xmark-square"})})]})}),e.jsx(d.Paper,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"100%",padding:1,overflow:"hidden"},children:a?.children})]})})}},Ue=T.createSlice({name:"loadingMask",initialState:{stores:{},storeKeys:[],isAutoLoadLoaded:!1},reducers:{setStoresMetaData:(e,t)=>{e.stores=t.payload,e.storeKeys=Object.keys(t.payload)},setStoreData:(e,t)=>{e.stores[t.payload.storeKey].data=t.payload.data},setAutoLoadLoaded:()=>{state.isAutoLoadLoaded=!0}}}),{setStoreData:ve,setStoresMetaData:Fe,setAutoLoadLoaded:we}=Ue.actions;var Be=Ue.reducer;const ke=e=>{const i=t.useSelector((e=>e.commonStores.stores)),o=t.useDispatch(),a=ge(),{handleGetRequest:r,handlePostRequest:d,handleDeleteRequest:n}=ye();return{reloadData:async t=>{if(e?.commonStoreKey){const t=Object.keys(i);for(const d of t)if(d===e.commonStoreKey&&(void 0===i[d]?.authority||null===i[d]?.authority||a.isUserAuthorized(i[d]?.authority))&&""!=i[d]?.url){await r({endPointURI:i[d].url,showMask:!1,successCallBkFn:t=>{o(ve({storeKey:d,data:t.data})),e.setData(t.data)},failureCallBkFn:()=>{o(ve({storeKey:d,data:[]})),e.setData([])}});break}}else e?.findAll&&await r({endPointURI:e.findAll,showMask:!0,parameters:t||{},successCallBkFn:t=>{e.setData(t.data)}})},loadRecordById:async t=>{let i=null;if(e?.findById){const o={};o[e?.findByIdParamName||"id"]=t,await r({endPointURI:e.findById,showMask:!0,parameters:o,successCallBkFn:e=>{i=e.data}})}return i},saveRecord:async t=>{let i=null;return e?.save&&await d({endPointURI:e.save,data:t,showMask:!0,successCallBkFn:e=>{i=e.data}}),i},deleteRecordById:async t=>{let i=!0;if(e?.deleteById){const o={};o[e?.deleteByIdParamName||"id"]=t,await n({endPointURI:e.deleteById,showMask:!0,parameters:o,successCallBkFn:()=>{i=!0},failureCallBkFn:()=>{i=!1}})}return i}}},We=t=>{const{t:i}=f.useTranslation();return e.jsx(d.TextField,{...t,slotProps:{inputLabel:{shrink:!0}},label:e.jsx(e.Fragment,{children:t?.label?i(t.label):""})})};function Ge(e,t){return e.filter((e=>-1===t.indexOf(e)))}function je(e,t){return e.filter((e=>-1!==t.indexOf(e)))}const Ve=({valueField:t="id",displayField:i="name",options:o=[],selectedOptions:a=[],setSelection:r})=>{const[n,l]=se.useState([]),[s,p]=se.useState([]),[c,u]=se.useState([]),[m,T]=se.useState(""),[A,_]=se.useState(""),E=je(n,s),f=je(n,c);se.useEffect((()=>{o&&p([...o])}),[o]),se.useEffect((()=>{a&&u([...a])}),[a]);const M=e=>()=>{const t=n.indexOf(e),i=[...n];-1===t?i.push(e):i.splice(t,1),l(i)},C=e=>je(n,e).length,D=e=>()=>{var t,i;C(e)===e.length?l(Ge(n,e)):l((t=n,i=e,[...t,...Ge(i,t)]))},S=(o,a,r)=>{const l=a.filter((e=>{if(e[i]){const t=e[i];if("left"===r&&t.toLocaleLowerCase().includes(m.toLocaleLowerCase()))return!0;if("right"===r&&t.toLocaleLowerCase().includes(A.toLocaleLowerCase()))return!0}return!1}));return e.jsxs(O,{sx:{height:"100%"},children:[e.jsx(N,{sx:{px:2,py:1},avatar:e.jsx(L,{onClick:D(l),checked:C(l)===l.length&&0!==l.length,indeterminate:C(l)!==l.length&&0!==C(l),disabled:0===l.length,inputProps:{"aria-label":"all items selected"}}),title:o,subheader:`${C(a)} / ${a.length} Selected`}),e.jsx(d.Box,{sx:{width:"100%",padding:1},children:e.jsx(We,{fullWidth:!0,label:"search",value:"left"===r?m:A,onChange:e=>{"left"===r?T(e.target.value):_(e.target.value)}})}),e.jsx(P,{}),e.jsx(I,{sx:{width:"100%",height:"100%",bgcolor:"secondary",overflow:"auto"},dense:!0,component:"div",role:"list",children:l.map((o=>(o[t],e.jsxs(d.ListItemButton,{role:"listitem",onClick:M(o),sx:{cursor:"pointer"},children:[e.jsx(R,{children:e.jsx(L,{checked:-1!==n.indexOf(o),tabIndex:-1,disableRipple:!0})}),e.jsx(y,{id:o[t],primary:o[i]})]},o[t]))))})]})};return e.jsxs(d.Grid2,{container:!0,spacing:2,sx:{flexGrow:1,overflow:"auto",margin:1,display:"flex",width:"100%"},justifyContent:"center",alignItems:"center",children:[e.jsx(d.Grid2,{sx:{height:"100%",flex:1},children:S("Available Items",s,"left")}),e.jsx(d.Grid2,{children:e.jsxs(d.Grid2,{container:!0,direction:"column",alignItems:"center",children:[e.jsx(h,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{u((e=>{let t=c.concat(E);return r(t),t})),p(Ge(s,E)),l(Ge(n,E))},disabled:0===E.length,"aria-label":"move selected right",children:">"}),e.jsx(h,{sx:{my:.5},variant:"outlined",size:"small",onClick:()=>{p(s.concat(f)),u((e=>{let t=Ge(c,f);return r(t),t})),l(Ge(n,f))},disabled:0===f.length,"aria-label":"move selected left",children:"<"})]})}),e.jsx(d.Grid2,{sx:{height:"100%",flex:1},children:S("Currently Selected",c,"right")})]})},Ye=t=>e.jsx(M.BarChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band",label:t.valueLabel}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))}),qe=t=>e.jsxs(d.Paper,{sx:{display:"flex",flexDirection:"column",height:150,padding:1,flexGrow:1,justifyContent:"center",alignItems:"center"},children:[e.jsx(d.Box,{sx:{display:"flex",width:"100%",justifyContent:"space-evenly",alignItems:"center"},children:e.jsx("div",{children:t.record[t.valueField]})}),e.jsx(d.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]})]}),Ke=t=>e.jsxs(e.Fragment,{children:[e.jsx(d.Typography,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]}),e.jsx(M.Gauge,{width:200,height:200,value:t.record[t.valueField],valueMax:t.total})]}),ze=t=>e.jsx(M.LineChart,{dataset:t.data,xAxis:[{dataKey:t.valueField,scaleType:"band",label:t.valueLabel}],series:t.labelField?.split(",").map((e=>({dataKey:e,label:e})))});function He(t){return e.jsxs(S,{sx:{display:"flex",alignItems:"center"},children:[e.jsx(S,{sx:{width:"100%",mr:1},children:e.jsx(C,{variant:"determinate",...t})}),e.jsx(S,{sx:{minWidth:35},children:e.jsx(D,{variant:"body2",sx:{color:"text.secondary"},children:`${Math.round(t.value)}%`})})]})}const Qe=t=>e.jsxs(S,{sx:{width:"100%"},children:[e.jsx(D,{sx:{fontSize:16,fontWeight:"bold"},children:t.record[t.labelField]}),e.jsx(He,{value:t.record[t.valueField]/t.total*100})]}),Ze=t=>{const i=t.data.map(((e,i)=>({id:i,value:e[t.valueField],label:e[t.labelField]+""})));return e.jsx(b.PieChart,{series:[{data:i}]})},$e=t=>{const{t:i}=f.useTranslation();return e.jsx(d.FormControlLabel,{sx:t.sx,disabled:t.disabled||!1,required:t.required||!1,control:e.jsx(d.Checkbox,{checked:t?.checkedValue==t.value||"true"===t.value||"1"==t.value,onChange:e=>{void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&(e.target.checked?void 0!==t.checkedValue&&null!=t.checkedValue?t.onChangeCallBack(t.checkedValue):t.onChangeCallBack(!0):void 0!==t.unCheckedValue&&null!=t.unCheckedValue?t.onChangeCallBack(t.unCheckedValue):t.onChangeCallBack(!1))}}),label:i(t.label)})},Xe=i=>{const o=t.useSelector((e=>e.AppLayout)),{t:a}=f.useTranslation();return e.jsx(d.Autocomplete,{sx:i.sx,value:(e=>{for(let t of i.options)if(t[i.valueField]==e)return t;return null})(i.value),options:i.options,disabled:i.disabled,onChange:(e,t)=>{if(void 0!==i.onChangeCallBack&&null!=i.onChangeCallBack)if(null!=t){let e=t[i.valueField];i.onChangeCallBack(e,t)}else i.onChangeCallBack(null,null)},clearOnBlur:!0,handleHomeEndKeys:!0,getOptionLabel:e=>null!=e?a(e[i.displayField]):"",renderOption:(t,o)=>e.jsx("li",{...t,children:null!=o?a(o[i.displayField]):""}),slots:{popper:t=>e.jsx(d.Popper,{...t,style:{...t.style,direction:o.appDirection}})},renderInput:t=>e.jsx(d.TextField,{...t,required:i.required||!1,variant:"outlined",InputLabelProps:{shrink:!0},label:a(i.label),error:null!=i.errorMessage&&void 0!==i.errorMessage,helperText:null!=i.errorMessage&&void 0!==i.errorMessage?a(i.errorMessage):""})})},Je="YYYY-MM-DD",et="YYYY-MM-DD HH:mm:ss",tt="#37505C",it="#ff6d00",ot="#ea690e",at="#74776B",rt=t=>{const{t:i}=f.useTranslation();return e.jsx(g.LocalizationProvider,{dateAdapter:x.AdapterMoment,children:e.jsx(g.DatePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?U(t.value,t?.format||Je):null,sx:t.sx,label:i(t.label),format:t?.format||Je,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||Je)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(i)},slotProps:{textField:{InputLabelProps:{shrink:!0},variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:i(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})},dt=t=>{const{t:i}=f.useTranslation();return e.jsx(g.LocalizationProvider,{dateAdapter:x.AdapterMoment,children:e.jsx(g.DateTimePicker,{value:null!=t.value&&void 0!==t.value&&""!==t.value?U(t.value,t?.format||et):null,label:i(t.label),sx:t.sx,format:t?.format||et,disabled:t.disabled,onChange:e=>{let i=null;null!=e&&e.isValid()&&(i=e.format(t?.format||et)),void 0!==t.onChangeCallBack&&null!=t.onChangeCallBack&&t.onChangeCallBack(i)},slotProps:{textField:{variant:"outlined",required:t.required,error:void 0!==t.errorMessage&&null!=t.errorMessage,helperText:void 0!==t.errorMessage&&null!=t.errorMessage?e.jsx(e.Fragment,{children:i(t.errorMessage)}):e.jsx(e.Fragment,{})}}})})};function nt(e,...t){const i=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>i.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${i} for the full message.`}function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var st,pt={exports:{}},ct={exports:{}},ut={};var mt,Tt,At,_t,Et,ft,It,Ot,Nt,yt,Rt,Lt,ht,Pt,Mt,Ct={};
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *
@@ -6,12 +6,12 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */function Mt(){return ft||(ft=1,"production"===process.env.NODE_ENV?dt.exports=function(){if(st)return ut;st=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case f:case a:return e;default:return p}}case n:return p}}}function b(e){return _(e)===c}return ut.AsyncMode=s,ut.ConcurrentMode=c,ut.ContextConsumer=l,ut.ContextProvider=a,ut.Element=t,ut.ForwardRef=d,ut.Fragment=r,ut.Lazy=m,ut.Memo=f,ut.Portal=n,ut.Profiler=i,ut.StrictMode=o,ut.Suspense=u,ut.isAsyncMode=function(e){return b(e)||_(e)===s},ut.isConcurrentMode=b,ut.isContextConsumer=function(e){return _(e)===l},ut.isContextProvider=function(e){return _(e)===a},ut.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ut.isForwardRef=function(e){return _(e)===d},ut.isFragment=function(e){return _(e)===r},ut.isLazy=function(e){return _(e)===m},ut.isMemo=function(e){return _(e)===f},ut.isPortal=function(e){return _(e)===n},ut.isProfiler=function(e){return _(e)===i},ut.isStrictMode=function(e){return _(e)===o},ut.isSuspense=function(e){return _(e)===u},ut.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h||e.$$typeof===g||e.$$typeof===E||e.$$typeof===y)},ut.typeOf=_,ut}():dt.exports=(pt||(pt=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var y=e.type;switch(y){case s:case c:case r:case i:case o:case u:return y;default:var h=y&&y.$$typeof;switch(h){case l:case d:case m:case f:case a:return h;default:return p}}case n:return p}}}var b=s,T=c,A=l,O=a,I=t,N=d,v=r,S=m,M=f,L=n,D=i,C=o,w=u,x=!1;function R(e){return _(e)===c}St.AsyncMode=b,St.ConcurrentMode=T,St.ContextConsumer=A,St.ContextProvider=O,St.Element=I,St.ForwardRef=N,St.Fragment=v,St.Lazy=S,St.Memo=M,St.Portal=L,St.Profiler=D,St.StrictMode=C,St.Suspense=w,St.isAsyncMode=function(e){return x||(x=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||_(e)===s},St.isConcurrentMode=R,St.isContextConsumer=function(e){return _(e)===l},St.isContextProvider=function(e){return _(e)===a},St.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},St.isForwardRef=function(e){return _(e)===d},St.isFragment=function(e){return _(e)===r},St.isLazy=function(e){return _(e)===m},St.isMemo=function(e){return _(e)===f},St.isPortal=function(e){return _(e)===n},St.isProfiler=function(e){return _(e)===i},St.isStrictMode=function(e){return _(e)===o},St.isSuspense=function(e){return _(e)===u},St.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h||e.$$typeof===g||e.$$typeof===E||e.$$typeof===y)},St.typeOf=_}()),St)),dt.exports}
9
+ */function Dt(){return Tt||(Tt=1,"production"===process.env.NODE_ENV?ct.exports=function(){if(st)return ut;st=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,n=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:switch(e=e.type){case l:case s:case o:case r:case a:case c:return e;default:switch(e=e&&e.$$typeof){case n:case p:case T:case m:case d:return e;default:return u}}case i:return u}}}function O(e){return I(e)===s}return ut.AsyncMode=l,ut.ConcurrentMode=s,ut.ContextConsumer=n,ut.ContextProvider=d,ut.Element=t,ut.ForwardRef=p,ut.Fragment=o,ut.Lazy=T,ut.Memo=m,ut.Portal=i,ut.Profiler=r,ut.StrictMode=a,ut.Suspense=c,ut.isAsyncMode=function(e){return O(e)||I(e)===l},ut.isConcurrentMode=O,ut.isContextConsumer=function(e){return I(e)===n},ut.isContextProvider=function(e){return I(e)===d},ut.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ut.isForwardRef=function(e){return I(e)===p},ut.isFragment=function(e){return I(e)===o},ut.isLazy=function(e){return I(e)===T},ut.isMemo=function(e){return I(e)===m},ut.isPortal=function(e){return I(e)===i},ut.isProfiler=function(e){return I(e)===r},ut.isStrictMode=function(e){return I(e)===a},ut.isSuspense=function(e){return I(e)===c},ut.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===r||e===a||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===m||e.$$typeof===d||e.$$typeof===n||e.$$typeof===p||e.$$typeof===_||e.$$typeof===E||e.$$typeof===f||e.$$typeof===A)},ut.typeOf=I,ut}():ct.exports=(mt||(mt=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,n=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var A=e.type;switch(A){case l:case s:case o:case r:case a:case c:return A;default:var _=A&&A.$$typeof;switch(_){case n:case p:case T:case m:case d:return _;default:return u}}case i:return u}}}var O=l,N=s,y=n,R=d,L=t,h=p,P=o,M=T,C=m,D=i,S=r,b=a,g=c,x=!1;function U(e){return I(e)===s}Ct.AsyncMode=O,Ct.ConcurrentMode=N,Ct.ContextConsumer=y,Ct.ContextProvider=R,Ct.Element=L,Ct.ForwardRef=h,Ct.Fragment=P,Ct.Lazy=M,Ct.Memo=C,Ct.Portal=D,Ct.Profiler=S,Ct.StrictMode=b,Ct.Suspense=g,Ct.isAsyncMode=function(e){return x||(x=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(e)||I(e)===l},Ct.isConcurrentMode=U,Ct.isContextConsumer=function(e){return I(e)===n},Ct.isContextProvider=function(e){return I(e)===d},Ct.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ct.isForwardRef=function(e){return I(e)===p},Ct.isFragment=function(e){return I(e)===o},Ct.isLazy=function(e){return I(e)===T},Ct.isMemo=function(e){return I(e)===m},Ct.isPortal=function(e){return I(e)===i},Ct.isProfiler=function(e){return I(e)===r},Ct.isStrictMode=function(e){return I(e)===a},Ct.isSuspense=function(e){return I(e)===c},Ct.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===r||e===a||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===m||e.$$typeof===d||e.$$typeof===n||e.$$typeof===p||e.$$typeof===_||e.$$typeof===E||e.$$typeof===f||e.$$typeof===A)},Ct.typeOf=I}()),Ct)),ct.exports}
10
10
  /*
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function Lt(){if(yt)return mt;yt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return mt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(e){a=e(i);for(var d=0;d<a.length;d++)n.call(i,a[d])&&(l[a[d]]=i[a[d]])}}return l},mt}function Dt(){if(gt)return ht;gt=1;return ht="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ct(){return _t?Et:(_t=1,Et=Function.call.bind(Object.prototype.hasOwnProperty))}function wt(){if(Tt)return bt;Tt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Dt(),n={},r=Ct();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},bt=o}function xt(){if(Ot)return At;Ot=1;var e=Mt(),t=Lt(),n=Dt(),r=Ct(),o=wt(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),At=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new f("Invalid "+i+" `"+a+"` of type `"+E(l)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,o,i,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return l(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+E(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+E(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new f("Invalid "+o+" `"+i+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:m((function(e,t,n,r,o){return g(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,l){if("function"!=typeof e)return new f("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],c=E(s);if("object"!==c)return new f("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,i,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return m((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===_(t)?String(t):t}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(o)+" at index "+t+"."),a}return m((function(t,o,i,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new f("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,a){var l=t[r],s=E(l);if("object"!==s)return new f("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return h(o,i,a,c,_(d));var u=d(l,c,o,i,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(o,i,a,l,s){var c=o[i],d=E(c);if("object"!==d)return new f("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},o[i],e);for(var p in u){var m=e[p];if(r(e,p)&&"function"!=typeof m)return h(a,l,s,p,_(m));if(!m)return new f("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=m(c,p,a,l,s+"."+p,n);if(y)return y}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,c,u,p,m){if(c=c||d,p=p||l,m!==n){if(s){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=c+":"+l;!t[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[h]=!0,r++)}}return null==a[l]?o?null===a[l]?new f("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(e){return m((function(t,n,r,o,i,a){var l=t[n];return E(l)!==e?new f("Invalid "+o+" `"+i+"` of type `"+_(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function h(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function E(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function _(e){if(null==e)return""+e;var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=_(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},At}function Rt(){if(Nt)return It;Nt=1;var e=Dt();function t(){}function n(){}return n.resetWarningCache=t,It=function(){function r(t,n,r,o,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function kt(){if(vt)return ct.exports;if(vt=1,"production"!==process.env.NODE_ENV){var e=Mt();ct.exports=xt()(e.isElement,true)}else ct.exports=Rt()();return ct.exports}var jt=lt(kt());var Pt,Ut={exports:{}},Bt={};function Ft(){if(Pt)return Bt;Pt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function m(f){if("object"==typeof f&&null!==f){var m=f.$$typeof;switch(m){case e:switch(f=f.type){case n:case o:case r:case s:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case l:case u:case d:case i:return f;default:return m}}case t:return m}}}return Bt.ContextConsumer=i,Bt.ContextProvider=a,Bt.Element=e,Bt.ForwardRef=l,Bt.Fragment=n,Bt.Lazy=u,Bt.Memo=d,Bt.Portal=t,Bt.Profiler=o,Bt.StrictMode=r,Bt.Suspense=s,Bt.SuspenseList=c,Bt.isContextConsumer=function(e){return m(e)===i},Bt.isContextProvider=function(e){return m(e)===a},Bt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Bt.isForwardRef=function(e){return m(e)===l},Bt.isFragment=function(e){return m(e)===n},Bt.isLazy=function(e){return m(e)===u},Bt.isMemo=function(e){return m(e)===d},Bt.isPortal=function(e){return m(e)===t},Bt.isProfiler=function(e){return m(e)===o},Bt.isStrictMode=function(e){return m(e)===r},Bt.isSuspense=function(e){return m(e)===s},Bt.isSuspenseList=function(e){return m(e)===c},Bt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},Bt.typeOf=m,Bt}var zt,Yt,Wt={};
14
+ */function St(){if(_t)return At;_t=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return At=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,a){for(var r,d,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var s in r=Object(arguments[l]))t.call(r,s)&&(n[s]=r[s]);if(e){d=e(r);for(var p=0;p<d.length;p++)i.call(r,d[p])&&(n[d[p]]=r[d[p]])}}return n},At}function bt(){if(ft)return Et;ft=1;return Et="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function gt(){return Ot?It:(Ot=1,It=Function.call.bind(Object.prototype.hasOwnProperty))}function xt(){if(yt)return Nt;yt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=bt(),i={},o=gt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,r,d,n,l){if("production"!==process.env.NODE_ENV)for(var s in a)if(o(a,s)){var p;try{if("function"!=typeof a[s]){var c=Error((n||"React class")+": "+d+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}p=a[s](r,s,n,d,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((n||"React class")+": type specification of "+d+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var u=l?l():"";e("Failed "+d+" type: "+p.message+(null!=u?u:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},Nt=a}function Ut(){if(Lt)return Rt;Lt=1;var e=Dt(),t=St(),i=bt(),o=gt(),a=xt(),r=function(){};function d(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Rt=function(n,l){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",c={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(d),arrayOf:function(e){return T((function(t,o,a,r,d){if("function"!=typeof e)return new m("Property `"+d+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var n=t[o];if(!Array.isArray(n))return new m("Invalid "+r+" `"+d+"` of type `"+f(n)+"` supplied to `"+a+"`, expected an array.");for(var l=0;l<n.length;l++){var s=e(n,l,a,r,d+"["+l+"]",i);if(s instanceof Error)return s}return null}))},element:T((function(e,t,i,o,a){var r=e[t];return n(r)?null:new m("Invalid "+o+" `"+a+"` of type `"+f(r)+"` supplied to `"+i+"`, expected a single ReactElement.")})),elementType:T((function(t,i,o,a,r){var d=t[i];return e.isValidElementType(d)?null:new m("Invalid "+a+" `"+r+"` of type `"+f(d)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return T((function(t,i,o,a,r){if(!(t[i]instanceof e)){var d=e.name||p;return new m("Invalid "+a+" `"+r+"` of type `"+(((n=t[i]).constructor&&n.constructor.name?n.constructor.name:p)+"` supplied to `")+o+"`, expected instance of `"+d+"`.")}var n;return null}))},node:T((function(e,t,i,o,a){return E(e[t])?null:new m("Invalid "+o+" `"+a+"` supplied to `"+i+"`, expected a ReactNode.")})),objectOf:function(e){return T((function(t,a,r,d,n){if("function"!=typeof e)return new m("Property `"+n+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[a],s=f(l);if("object"!==s)return new m("Invalid "+d+" `"+n+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var p in l)if(o(l,p)){var c=e(l,p,r,d,n+"."+p,i);if(c instanceof Error)return c}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),d;return T((function(t,i,o,a,r){for(var d=t[i],n=0;n<e.length;n++)if(u(d,e[n]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===I(t)?String(t):t}));return new m("Invalid "+a+" `"+r+"` of value `"+String(d)+"` supplied to `"+o+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+O(a)+" at index "+t+"."),d}return T((function(t,a,r,d,n){for(var l=[],s=0;s<e.length;s++){var p=(0,e[s])(t,a,r,d,n,i);if(null==p)return null;p.data&&o(p.data,"expectedType")&&l.push(p.data.expectedType)}return new m("Invalid "+d+" `"+n+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return T((function(t,o,a,r,d){var n=t[o],l=f(n);if("object"!==l)return new m("Invalid "+r+" `"+d+"` of type `"+l+"` supplied to `"+a+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return _(a,r,d,s,I(p));var c=p(n,s,a,r,d+"."+s,i);if(c)return c}return null}))},exact:function(e){return T((function(a,r,d,n,l){var s=a[r],p=f(s);if("object"!==p)return new m("Invalid "+n+" `"+l+"` of type `"+p+"` supplied to `"+d+"`, expected `object`.");var c=t({},a[r],e);for(var u in c){var T=e[u];if(o(e,u)&&"function"!=typeof T)return _(d,n,l,u,I(T));if(!T)return new m("Invalid "+n+" `"+l+"` key `"+u+"` supplied to `"+d+"`.\nBad object: "+JSON.stringify(a[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var A=T(s,u,d,n,l+"."+u,i);if(A)return A}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function T(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function a(a,d,n,s,c,u,T){if(s=s||p,u=u||n,T!==i){if(l){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var _=s+":"+n;!t[_]&&o<3&&(r("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[_]=!0,o++)}}return null==d[n]?a?null===d[n]?new m("The "+c+" `"+u+"` is marked as required in `"+s+"`, but its value is `null`."):new m("The "+c+" `"+u+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(d,n,s,c,u)}var d=a.bind(null,!1);return d.isRequired=a.bind(null,!0),d}function A(e){return T((function(t,i,o,a,r,d){var n=t[i];return f(n)!==e?new m("Invalid "+a+" `"+r+"` of type `"+I(n)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function _(e,t,i,o,a){return new m((e||"React class")+": "+t+" type `"+i+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function E(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(E);if(null===e||n(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var i,o=t.call(e);if(t!==e.entries){for(;!(i=o.next()).done;)if(!E(i.value))return!1}else for(;!(i=o.next()).done;){var a=i.value;if(a&&!E(a[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function I(e){if(null==e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function O(e){var t=I(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,c.checkPropTypes=a,c.resetWarningCache=a.resetWarningCache,c.PropTypes=c,c},Rt}function vt(){if(Pt)return ht;Pt=1;var e=bt();function t(){}function i(){}return i.resetWarningCache=t,ht=function(){function o(t,i,o,a,r,d){if(d!==e){var n=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}}function a(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:t};return r.PropTypes=r,r}}function Ft(){if(Mt)return pt.exports;if(Mt=1,"production"!==process.env.NODE_ENV){var e=Dt();pt.exports=Ut()(e.isElement,true)}else pt.exports=vt()();return pt.exports}var wt=lt(Ft());var Bt,kt={exports:{}},Wt={};function Gt(){if(Bt)return Wt;Bt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),d=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),u=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function T(m){if("object"==typeof m&&null!==m){var T=m.$$typeof;switch(T){case e:switch(m=m.type){case i:case a:case o:case l:case s:case u:return m;default:switch(m=m&&m.$$typeof){case d:case n:case c:case p:case r:return m;default:return T}}case t:return T}}}return Wt.ContextConsumer=r,Wt.ContextProvider=d,Wt.Element=e,Wt.ForwardRef=n,Wt.Fragment=i,Wt.Lazy=c,Wt.Memo=p,Wt.Portal=t,Wt.Profiler=a,Wt.StrictMode=o,Wt.Suspense=l,Wt.SuspenseList=s,Wt.isContextConsumer=function(e){return T(e)===r},Wt.isContextProvider=function(e){return T(e)===d},Wt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Wt.isForwardRef=function(e){return T(e)===n},Wt.isFragment=function(e){return T(e)===i},Wt.isLazy=function(e){return T(e)===c},Wt.isMemo=function(e){return T(e)===p},Wt.isPortal=function(e){return T(e)===t},Wt.isProfiler=function(e){return T(e)===a},Wt.isStrictMode=function(e){return T(e)===o},Wt.isSuspense=function(e){return T(e)===l},Wt.isSuspenseList=function(e){return T(e)===s},Wt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===l||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===p||e.$$typeof===d||e.$$typeof===r||e.$$typeof===n||e.$$typeof===m||void 0!==e.getModuleId)},Wt.typeOf=T,Wt}var jt,Vt,Yt={};
15
15
  /**
16
16
  * @license React
17
17
  * react-is.development.js
@@ -20,7 +20,7 @@ object-assign
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */function Kt(){return zt||(zt=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case u:case a:return e;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");Wt.ContextConsumer=a,Wt.ContextProvider=l,Wt.Element=t,Wt.ForwardRef=s,Wt.Fragment=r,Wt.Lazy=p,Wt.Memo=u,Wt.Portal=n,Wt.Profiler=i,Wt.StrictMode=o,Wt.Suspense=c,Wt.SuspenseList=d,Wt.isContextConsumer=function(t){return e(t)===a},Wt.isContextProvider=function(t){return e(t)===l},Wt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wt.isForwardRef=function(t){return e(t)===s},Wt.isFragment=function(t){return e(t)===r},Wt.isLazy=function(t){return e(t)===p},Wt.isMemo=function(t){return e(t)===u},Wt.isPortal=function(t){return e(t)===n},Wt.isProfiler=function(t){return e(t)===i},Wt.isStrictMode=function(t){return e(t)===o},Wt.isSuspense=function(t){return e(t)===c},Wt.isSuspenseList=function(t){return e(t)===d},Wt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===s||e.$$typeof===m||void 0!==e.getModuleId)},Wt.typeOf=e}()),Wt}function Gt(){return Yt||(Yt=1,"production"===process.env.NODE_ENV?Ut.exports=Ft():Ut.exports=Kt()),Ut.exports}var Vt=Gt();function Ht(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function qt(e){if(ae.isValidElement(e)||Vt.isValidElementType(e)||!Ht(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=qt(e[n])})),t}function Qt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ht(e)&&Ht(t)&&Object.keys(t).forEach((o=>{ae.isValidElement(t[o])||Vt.isValidElementType(t[o])?r[o]=t[o]:Ht(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ht(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=Ht(t[o])?qt(t[o]):t[o]:r[o]=t[o]})),r}function Zt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const $t={borderRadius:4},Jt="production"!==process.env.NODE_ENV?jt.oneOfType([jt.number,jt.string,jt.object,jt.array]):{};function Xt(e,t){return t?Qt(e,t,{clone:!1}):e}const en={xs:0,sm:600,md:900,lg:1200,xl:1536},tn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${en[e]}px)`},nn={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:en[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function rn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||tn;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||tn;return Object.keys(t).reduce(((o,i)=>{if(a=e.keys,"@"===(l=i)||l.startsWith("@")&&(a.some((e=>l.startsWith(`@${e}`)))||l.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:it(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:nn,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||en).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,l;return o}),{})}return n(t)}function on(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":it(7));return e.charAt(0).toUpperCase()+e.slice(1)}function an(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ln(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:an(e,n)||r,t&&(o=t(o,r,e)),o}function sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=an(e.theme,r)||{};return rn(e,i,(e=>{let r=ln(a,o,e);return e===r&&"string"==typeof e&&(r=ln(a,o,`${t}${"default"===e?"":on(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:Jt}:{},i.filterProps=[t],i}const cn={m:"margin",p:"padding"},dn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},un={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!un[e])return[e];e=un[e]}const[t,n]=e.split(""),r=cn[t],o=dn[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),fn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yn=[...fn,...mn];function hn(e,t,n,r){const o=an(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e):Array.isArray(o)?e=>{if("string"==typeof e)return e;const n=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(n)?n>o.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${n} > ${o.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const r=o[n];return e>=0?r:"number"==typeof r?-r:"string"==typeof r&&r.startsWith("var(")?`calc(-1 * ${r})`:`-${r}`}:"function"==typeof o?o:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function gn(e){return hn(e,"spacing",8,"spacing")}function En(e,t){return"string"==typeof t||null==t?t:e(t)}function _n(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=En(t,n),e)),{})}(pn(n),r);return rn(e,e[n],o)}function bn(e,t){const n=gn(e.theme);return Object.keys(e).map((r=>_n(e,t,r,n))).reduce(Xt,{})}function Tn(e){return bn(e,fn)}function An(e){return bn(e,mn)}function On(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Xt(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function In(e){return"number"!=typeof e?e:`${e}px solid`}function Nn(e,t){return sn({prop:e,themeKey:"borders",transform:t})}Tn.propTypes="production"!==process.env.NODE_ENV?fn.reduce(((e,t)=>(e[t]=Jt,e)),{}):{},Tn.filterProps=fn,An.propTypes="production"!==process.env.NODE_ENV?mn.reduce(((e,t)=>(e[t]=Jt,e)),{}):{},An.filterProps=mn,"production"===process.env.NODE_ENV||yn.reduce(((e,t)=>(e[t]=Jt,e)),{});const vn=Nn("border",In),Sn=Nn("borderTop",In),Mn=Nn("borderRight",In),Ln=Nn("borderBottom",In),Dn=Nn("borderLeft",In),Cn=Nn("borderColor"),wn=Nn("borderTopColor"),xn=Nn("borderRightColor"),Rn=Nn("borderBottomColor"),kn=Nn("borderLeftColor"),jn=Nn("outline",In),Pn=Nn("outlineColor"),Un=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hn(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:En(t,e)});return rn(e,e.borderRadius,n)}return null};Un.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Jt}:{},Un.filterProps=["borderRadius"],On(vn,Sn,Mn,Ln,Dn,Cn,wn,xn,Rn,kn,Un,jn,Pn);const Bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hn(e.theme,"spacing",8,"gap"),n=e=>({gap:En(t,e)});return rn(e,e.gap,n)}return null};Bn.propTypes="production"!==process.env.NODE_ENV?{gap:Jt}:{},Bn.filterProps=["gap"];const Fn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hn(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:En(t,e)});return rn(e,e.columnGap,n)}return null};Fn.propTypes="production"!==process.env.NODE_ENV?{columnGap:Jt}:{},Fn.filterProps=["columnGap"];const zn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hn(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:En(t,e)});return rn(e,e.rowGap,n)}return null};zn.propTypes="production"!==process.env.NODE_ENV?{rowGap:Jt}:{},zn.filterProps=["rowGap"];function Yn(e,t){return"grey"===t?t:e}On(Bn,Fn,zn,sn({prop:"gridColumn"}),sn({prop:"gridRow"}),sn({prop:"gridAutoFlow"}),sn({prop:"gridAutoColumns"}),sn({prop:"gridAutoRows"}),sn({prop:"gridTemplateColumns"}),sn({prop:"gridTemplateRows"}),sn({prop:"gridTemplateAreas"}),sn({prop:"gridArea"}));function Wn(e){return e<=1&&0!==e?100*e+"%":e}On(sn({prop:"color",themeKey:"palette",transform:Yn}),sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yn}),sn({prop:"backgroundColor",themeKey:"palette",transform:Yn}));const Kn=sn({prop:"width",transform:Wn}),Gn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||en[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Wn(t)}};return rn(e,e.maxWidth,t)}return null};Gn.filterProps=["maxWidth"];const Vn=sn({prop:"minWidth",transform:Wn}),Hn=sn({prop:"height",transform:Wn}),qn=sn({prop:"maxHeight",transform:Wn}),Qn=sn({prop:"minHeight",transform:Wn});sn({prop:"size",cssProperty:"width",transform:Wn}),sn({prop:"size",cssProperty:"height",transform:Wn});On(Kn,Gn,Vn,Hn,qn,Qn,sn({prop:"boxSizing"}));const Zn={border:{themeKey:"borders",transform:In},borderTop:{themeKey:"borders",transform:In},borderRight:{themeKey:"borders",transform:In},borderBottom:{themeKey:"borders",transform:In},borderLeft:{themeKey:"borders",transform:In},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:In},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Un},color:{themeKey:"palette",transform:Yn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yn},backgroundColor:{themeKey:"palette",transform:Yn},p:{style:An},pt:{style:An},pr:{style:An},pb:{style:An},pl:{style:An},px:{style:An},py:{style:An},padding:{style:An},paddingTop:{style:An},paddingRight:{style:An},paddingBottom:{style:An},paddingLeft:{style:An},paddingX:{style:An},paddingY:{style:An},paddingInline:{style:An},paddingInlineStart:{style:An},paddingInlineEnd:{style:An},paddingBlock:{style:An},paddingBlockStart:{style:An},paddingBlockEnd:{style:An},m:{style:Tn},mt:{style:Tn},mr:{style:Tn},mb:{style:Tn},ml:{style:Tn},mx:{style:Tn},my:{style:Tn},margin:{style:Tn},marginTop:{style:Tn},marginRight:{style:Tn},marginBottom:{style:Tn},marginLeft:{style:Tn},marginX:{style:Tn},marginY:{style:Tn},marginInline:{style:Tn},marginInlineStart:{style:Tn},marginInlineEnd:{style:Tn},marginBlock:{style:Tn},marginBlockStart:{style:Tn},marginBlockEnd:{style:Tn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Bn},rowGap:{style:zn},columnGap:{style:Fn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:Gn},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const $n=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=an(n,l)||{};if(c)return c(o);return rn(o,t,(t=>{let n=ln(d,s,t);return t===n&&"string"==typeof t&&(n=ln(d,s,`${e}${"default"===t?"":on(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Zn;function a(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(o.breakpoints),l=Object.keys(a);let s=a;return Object.keys(r).forEach((n=>{const a=(l=r[n],c=o,"function"==typeof l?l(c):l);var l,c;if(null!=a)if("object"==typeof a)if(i[n])s=Xt(s,e(n,a,o,i));else{const e=rn({theme:o},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?s=Xt(s,e):s[n]=t({sx:a,theme:o})}else s=Xt(s,e(n,a,o,i))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(o,function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s))}return Array.isArray(r)?r.map(a):a(r)}}();function Jn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xn(e=null){const t=ae.useContext(l.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}$n.filterProps=["sx"];const er=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,l=Zt(n),s=function(e=8,t=gn({spacing:e})){if(e.mui)return e;const n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(o);let c=Qt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...$t,...i}},a);return c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(c),c.applyStyles=Jn,c=t.reduce(((e,t)=>Qt(e,t)),c),c.unstable_sxConfig={...Zn,...a?.unstable_sxConfig},c.unstable_sx=function(e){return $n({sx:e,theme:this})},c}();function tr(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Zn;return Object.keys(e).forEach((r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]})),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ht(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}const nr=e=>e,rr=(()=>{let e=nr;return{configure(t){e=t},generate:t=>e(t),reset(){e=nr}}})();function or(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ir(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=or(e))&&(r&&(r+=" "),r+=t);return r}const ar={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const lr=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=t,a=
23
+ */function qt(){return jt||(jt=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var T=e.$$typeof;switch(T){case t:switch(e=e.type){case o:case r:case a:case s:case p:case m:return e;default:switch(e=e&&e.$$typeof){case n:case l:case u:case c:case d:return e;default:return T}}case i:return T}}}var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),n=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");Yt.ContextConsumer=d,Yt.ContextProvider=n,Yt.Element=t,Yt.ForwardRef=l,Yt.Fragment=o,Yt.Lazy=u,Yt.Memo=c,Yt.Portal=i,Yt.Profiler=r,Yt.StrictMode=a,Yt.Suspense=s,Yt.SuspenseList=p,Yt.isContextConsumer=function(t){return e(t)===d},Yt.isContextProvider=function(t){return e(t)===n},Yt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Yt.isForwardRef=function(t){return e(t)===l},Yt.isFragment=function(t){return e(t)===o},Yt.isLazy=function(t){return e(t)===u},Yt.isMemo=function(t){return e(t)===c},Yt.isPortal=function(t){return e(t)===i},Yt.isProfiler=function(t){return e(t)===r},Yt.isStrictMode=function(t){return e(t)===a},Yt.isSuspense=function(t){return e(t)===s},Yt.isSuspenseList=function(t){return e(t)===p},Yt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===r||e===a||e===s||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===c||e.$$typeof===n||e.$$typeof===d||e.$$typeof===l||e.$$typeof===T||void 0!==e.getModuleId)},Yt.typeOf=e}()),Yt}function Kt(){return Vt||(Vt=1,"production"===process.env.NODE_ENV?kt.exports=Gt():kt.exports=qt()),kt.exports}var zt=Kt();function Ht(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Qt(e){if(se.isValidElement(e)||zt.isValidElementType(e)||!Ht(e))return e;const t={};return Object.keys(e).forEach((i=>{t[i]=Qt(e[i])})),t}function Zt(e,t,i={clone:!0}){const o=i.clone?{...e}:e;return Ht(e)&&Ht(t)&&Object.keys(t).forEach((a=>{se.isValidElement(t[a])||zt.isValidElementType(t[a])?o[a]=t[a]:Ht(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ht(e[a])?o[a]=Zt(e[a],t[a],i):i.clone?o[a]=Ht(t[a])?Qt(t[a]):t[a]:o[a]=t[a]})),o}function $t(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:o=5,...a}=e,r=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),d=Object.keys(r);function n(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${i})`}function s(e,a){const r=d.indexOf(a);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i}) and (max-width:${(-1!==r&&"number"==typeof t[d[r]]?t[d[r]]:a)-o/100}${i})`}return{keys:d,values:r,up:n,down:l,between:s,only:function(e){return d.indexOf(e)+1<d.length?s(e,d[d.indexOf(e)+1]):n(e)},not:function(e){const t=d.indexOf(e);return 0===t?n(d[1]):t===d.length-1?l(d[t]):s(e,d[d.indexOf(e)+1]).replace("@media","@media not all and")},unit:i,...a}}const Xt={borderRadius:4},Jt="production"!==process.env.NODE_ENV?wt.oneOfType([wt.number,wt.string,wt.object,wt.array]):{};function ei(e,t){return t?Zt(e,t,{clone:!1}):e}const ti={xs:0,sm:600,md:900,lg:1200,xl:1536},ii={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ti[e]}px)`},oi={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:ti[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function ai(e,t,i){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||ii;return t.reduce(((o,a,r)=>(o[e.up(e.keys[r])]=i(t[r]),o)),{})}if("object"==typeof t){const e=o.breakpoints||ii;return Object.keys(t).reduce(((a,r)=>{if(d=e.keys,"@"===(n=r)||n.startsWith("@")&&(d.some((e=>n.startsWith(`@${e}`)))||n.match(/^@\d/))){const e=function(e,t){const i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:nt(18,`(${t})`));return null}const[,o,a]=i,r=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(r)}(o.containerQueries?o:oi,r);e&&(a[e]=i(t[r],r))}else if(Object.keys(e.values||ti).includes(r)){a[e.up(r)]=i(t[r],r)}else{const e=r;a[e]=t[e]}var d,n;return a}),{})}return i(t)}function ri(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":nt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function di(e,t,i=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&i){const i=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=i)return i}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ni(e,t,i,o=i){let a;return a="function"==typeof e?e(i):Array.isArray(e)?e[i]||o:di(e,i)||o,t&&(a=t(a,o,e)),a}function li(e){const{prop:t,cssProperty:i=e.prop,themeKey:o,transform:a}=e,r=e=>{if(null==e[t])return null;const r=e[t],d=di(e.theme,o)||{};return ai(e,r,(e=>{let o=ni(d,a,e);return e===o&&"string"==typeof e&&(o=ni(d,a,`${t}${"default"===e?"":ri(e)}`,e)),!1===i?o:{[i]:o}}))};return r.propTypes="production"!==process.env.NODE_ENV?{[t]:Jt}:{},r.filterProps=[t],r}const si={m:"margin",p:"padding"},pi={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ci={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ui=function(e){const t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}((e=>{if(e.length>2){if(!ci[e])return[e];e=ci[e]}const[t,i]=e.split(""),o=si[t],a=pi[i]||"";return Array.isArray(a)?a.map((e=>o+e)):[o+a]})),mi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ti=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ai=[...mi,...Ti];function _i(e,t,i,o){const a=di(e,t,!0)??i;return"number"==typeof a||"string"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),"string"==typeof a?a.startsWith("var(")&&0===e?0:a.startsWith("var(")&&1===e?a:`calc(${e} * ${a})`:a*e):Array.isArray(a)?e=>{if("string"==typeof e)return e;const i=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const o=a[i];return e>=0?o:"number"==typeof o?-o:"string"==typeof o&&o.startsWith("var(")?`calc(-1 * ${o})`:`-${o}`}:"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Ei(e){return _i(e,"spacing",8,"spacing")}function fi(e,t){return"string"==typeof t||null==t?t:e(t)}function Ii(e,t,i,o){if(!t.includes(i))return null;const a=function(e,t){return i=>e.reduce(((e,o)=>(e[o]=fi(t,i),e)),{})}(ui(i),o);return ai(e,e[i],a)}function Oi(e,t){const i=Ei(e.theme);return Object.keys(e).map((o=>Ii(e,t,o,i))).reduce(ei,{})}function Ni(e){return Oi(e,mi)}function yi(e){return Oi(e,Ti)}function Ri(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((i=>{e[i]=t})),e)),{}),i=e=>Object.keys(e).reduce(((i,o)=>t[o]?ei(i,t[o](e)):i),{});return i.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},i.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),i}function Li(e){return"number"!=typeof e?e:`${e}px solid`}function hi(e,t){return li({prop:e,themeKey:"borders",transform:t})}Ni.propTypes="production"!==process.env.NODE_ENV?mi.reduce(((e,t)=>(e[t]=Jt,e)),{}):{},Ni.filterProps=mi,yi.propTypes="production"!==process.env.NODE_ENV?Ti.reduce(((e,t)=>(e[t]=Jt,e)),{}):{},yi.filterProps=Ti,"production"===process.env.NODE_ENV||Ai.reduce(((e,t)=>(e[t]=Jt,e)),{});const Pi=hi("border",Li),Mi=hi("borderTop",Li),Ci=hi("borderRight",Li),Di=hi("borderBottom",Li),Si=hi("borderLeft",Li),bi=hi("borderColor"),gi=hi("borderTopColor"),xi=hi("borderRightColor"),Ui=hi("borderBottomColor"),vi=hi("borderLeftColor"),Fi=hi("outline",Li),wi=hi("outlineColor"),Bi=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_i(e.theme,"shape.borderRadius",4,"borderRadius"),i=e=>({borderRadius:fi(t,e)});return ai(e,e.borderRadius,i)}return null};Bi.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Jt}:{},Bi.filterProps=["borderRadius"],Ri(Pi,Mi,Ci,Di,Si,bi,gi,xi,Ui,vi,Bi,Fi,wi);const ki=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_i(e.theme,"spacing",8,"gap"),i=e=>({gap:fi(t,e)});return ai(e,e.gap,i)}return null};ki.propTypes="production"!==process.env.NODE_ENV?{gap:Jt}:{},ki.filterProps=["gap"];const Wi=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_i(e.theme,"spacing",8,"columnGap"),i=e=>({columnGap:fi(t,e)});return ai(e,e.columnGap,i)}return null};Wi.propTypes="production"!==process.env.NODE_ENV?{columnGap:Jt}:{},Wi.filterProps=["columnGap"];const Gi=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_i(e.theme,"spacing",8,"rowGap"),i=e=>({rowGap:fi(t,e)});return ai(e,e.rowGap,i)}return null};Gi.propTypes="production"!==process.env.NODE_ENV?{rowGap:Jt}:{},Gi.filterProps=["rowGap"];function ji(e,t){return"grey"===t?t:e}Ri(ki,Wi,Gi,li({prop:"gridColumn"}),li({prop:"gridRow"}),li({prop:"gridAutoFlow"}),li({prop:"gridAutoColumns"}),li({prop:"gridAutoRows"}),li({prop:"gridTemplateColumns"}),li({prop:"gridTemplateRows"}),li({prop:"gridTemplateAreas"}),li({prop:"gridArea"}));function Vi(e){return e<=1&&0!==e?100*e+"%":e}Ri(li({prop:"color",themeKey:"palette",transform:ji}),li({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ji}),li({prop:"backgroundColor",themeKey:"palette",transform:ji}));const Yi=li({prop:"width",transform:Vi}),qi=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const i=e.theme?.breakpoints?.values?.[t]||ti[t];return i?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Vi(t)}};return ai(e,e.maxWidth,t)}return null};qi.filterProps=["maxWidth"];const Ki=li({prop:"minWidth",transform:Vi}),zi=li({prop:"height",transform:Vi}),Hi=li({prop:"maxHeight",transform:Vi}),Qi=li({prop:"minHeight",transform:Vi});li({prop:"size",cssProperty:"width",transform:Vi}),li({prop:"size",cssProperty:"height",transform:Vi});Ri(Yi,qi,Ki,zi,Hi,Qi,li({prop:"boxSizing"}));const Zi={border:{themeKey:"borders",transform:Li},borderTop:{themeKey:"borders",transform:Li},borderRight:{themeKey:"borders",transform:Li},borderBottom:{themeKey:"borders",transform:Li},borderLeft:{themeKey:"borders",transform:Li},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Li},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bi},color:{themeKey:"palette",transform:ji},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ji},backgroundColor:{themeKey:"palette",transform:ji},p:{style:yi},pt:{style:yi},pr:{style:yi},pb:{style:yi},pl:{style:yi},px:{style:yi},py:{style:yi},padding:{style:yi},paddingTop:{style:yi},paddingRight:{style:yi},paddingBottom:{style:yi},paddingLeft:{style:yi},paddingX:{style:yi},paddingY:{style:yi},paddingInline:{style:yi},paddingInlineStart:{style:yi},paddingInlineEnd:{style:yi},paddingBlock:{style:yi},paddingBlockStart:{style:yi},paddingBlockEnd:{style:yi},m:{style:Ni},mt:{style:Ni},mr:{style:Ni},mb:{style:Ni},ml:{style:Ni},mx:{style:Ni},my:{style:Ni},margin:{style:Ni},marginTop:{style:Ni},marginRight:{style:Ni},marginBottom:{style:Ni},marginLeft:{style:Ni},marginX:{style:Ni},marginY:{style:Ni},marginInline:{style:Ni},marginInlineStart:{style:Ni},marginInlineEnd:{style:Ni},marginBlock:{style:Ni},marginBlockStart:{style:Ni},marginBlockEnd:{style:Ni},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ki},rowGap:{style:Gi},columnGap:{style:Wi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vi},maxWidth:{style:qi},minWidth:{transform:Vi},height:{transform:Vi},maxHeight:{transform:Vi},minHeight:{transform:Vi},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const $i=function(){function e(e,t,i,o){const a={[e]:t,theme:i},r=o[e];if(!r)return{[e]:t};const{cssProperty:d=e,themeKey:n,transform:l,style:s}=r;if(null==t)return null;if("typography"===n&&"inherit"===t)return{[e]:t};const p=di(i,n)||{};if(s)return s(a);return ai(a,t,(t=>{let i=ni(p,l,t);return t===i&&"string"==typeof t&&(i=ni(p,l,`${e}${"default"===t?"":ri(t)}`,t)),!1===d?i:{[d]:i}}))}return function t(i){const{sx:o,theme:a={}}=i||{};if(!o)return null;const r=a.unstable_sxConfig??Zi;function d(i){let o=i;if("function"==typeof i)o=i(a);else if("object"!=typeof i)return i;if(!o)return null;const d=function(e={}){const t=e.keys?.reduce(((t,i)=>(t[e.up(i)]={},t)),{});return t||{}}(a.breakpoints),n=Object.keys(d);let l=d;return Object.keys(o).forEach((i=>{const d=(n=o[i],s=a,"function"==typeof n?n(s):n);var n,s;if(null!=d)if("object"==typeof d)if(r[i])l=ei(l,e(i,d,a,r));else{const e=ai({theme:a},d,(e=>({[i]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(t);return e.every((e=>i.size===Object.keys(e).length))}(e,d)?l=ei(l,e):l[i]=t({sx:d,theme:a})}else l=ei(l,e(i,d,a,r))})),function(e,t){if(!e.containerQueries)return t;const i=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const i=/min-width:\s*([0-9.]+)/;return+(e.match(i)?.[1]||0)-+(t.match(i)?.[1]||0)}));return i.length?i.reduce(((e,i)=>{const o=t[i];return delete e[i],e[i]=o,e}),{...t}):t}(a,function(e,t){return e.reduce(((e,t)=>{const i=e[t];return(!i||0===Object.keys(i).length)&&delete e[t],e}),t)}(n,l))}return Array.isArray(o)?o.map(d):d(o)}}();function Xi(e,t){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||"function"!=typeof i.getColorSchemeSelector)return{};let o=i.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return i.palette.mode===e?t:{}}function Ji(e=null){const t=se.useContext(n.ThemeContext);return t&&(i=t,0!==Object.keys(i).length)?t:e;var i}$i.filterProps=["sx"];const eo=function(e={},...t){const{breakpoints:i={},palette:o={},spacing:a,shape:r={},...d}=e,n=$t(i),l=function(e=8,t=Ei({spacing:e})){if(e.mui)return e;const i=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const i=t(e);return"number"==typeof i?`${i}px`:i})).join(" "));return i.mui=!0,i}(a);let s=Zt({breakpoints:n,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...Xt,...r}},d);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function i(i,o){i.up=(...i)=>t(e.breakpoints.up(...i),o),i.down=(...i)=>t(e.breakpoints.down(...i),o),i.between=(...i)=>t(e.breakpoints.between(...i),o),i.only=(...i)=>t(e.breakpoints.only(...i),o),i.not=(...i)=>{const a=t(e.breakpoints.not(...i),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const o={},a=e=>(i(o,e),o);return i(a),{...e,containerQueries:a}}(s),s.applyStyles=Xi,s=t.reduce(((e,t)=>Zt(e,t)),s),s.unstable_sxConfig={...Zi,...d?.unstable_sxConfig},s.unstable_sx=function(e){return $i({sx:e,theme:this})},s}();function to(e){const{sx:t,...i}=e,{systemProps:o,otherProps:a}=(e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??Zi;return Object.keys(e).forEach((o=>{i[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]})),t})(i);let r;return r=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const i=t(...e);return Ht(i)?{...o,...i}:o}:{...o,...t},{...a,sx:r}}const io=e=>e,oo=(()=>{let e=io;return{configure(t){e=t},generate:t=>e(t),reset(){e=io}}})();function ao(e){var t,i,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=ao(e[t]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function ro(){for(var e,t,i=0,o="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=ao(e))&&(o&&(o+=" "),o+=t);return o}const no={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const lo=function(t={}){const{themeId:i,defaultTheme:o,defaultClassName:a="MuiBox-root",generateClassName:r}=t,d=
24
24
  /**
25
25
  * @mui/styled-engine v7.1.1
26
26
  *
@@ -28,10 +28,5 @@ object-assign
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
30
  */
31
- function(e,t){const n=te(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r=`"${e}"`;return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})($n),l=ae.forwardRef((function(t,l){const s=function(e=er){return Xn(e)}(r),{className:c,component:d="div",...u}=tr(t);return e.jsx(a,{as:d,ref:l,className:ir(c,i?i(o):o),theme:n&&s[n]||s,...u})}));return l}({defaultClassName:function(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=function(e,t,n="Mui"){const r=ar[t];return r?`${n}-${r}`:`${rr.generate(e)}-${t}`}(e,t,n)})),r}("MuiBox",["root"]).root,generateClassName:rr.generate});function sr(e){return"number"==typeof e&&!isNaN(e)}function cr(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function dr(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function ur(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}"production"!==process.env.NODE_ENV&&(lr.propTypes={children:jt.node,component:jt.elementType,sx:jt.oneOfType([jt.arrayOf(jt.oneOfType([jt.func,jt.object,jt.bool])),jt.func,jt.object])});var pr,fr,mr,yr,hr,gr,Er,_r,br,Tr,Ar,Or,Ir,Nr,vr,Sr,Mr,Lr,Dr,Cr,wr,xr,Rr,kr,jr,Pr,Ur,Br,Fr,zr,Yr,Wr,Kr,Gr,Vr,Hr,qr,Qr,Zr,$r,Jr,Xr,eo,to,no,ro,oo,io,ao,lo,so,co,uo,po,fo,mo,yo,ho,go,Eo,_o,bo,To,Ao,Oo,Io,No,vo,So,Mo,Lo,Do,Co,wo,xo,Ro,ko,jo,Po,Uo,Bo,Fo,zo,Yo,Wo,Ko,Go,Vo,Ho,qo,Qo,Zo={exports:{}};function $o(){return pr||(pr=1,Zo.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:H(e)}function r(e){return l(e)?e:q(e)}function o(e){return s(e)?e:Q(e)}function i(e){return a(e)&&!c(e)?e:Z(e)}function a(e){return!(!e||!e[u])}function l(e){return!(!e||!e[p])}function s(e){return!(!e||!e[f])}function c(e){return l(e)||s(e)}function d(e){return!(!e||!e[m])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=d,n.Keyed=r,n.Indexed=o,n.Set=i;var u="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",m="@@__IMMUTABLE_ORDERED__@@",y="delete",h=5,g=1<<h,E=g-1,_={},b={value:!1},T={value:!1};function A(e){return e.value=!1,e}function O(e){e&&(e.value=!0)}function I(){}function N(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function v(e){return void 0===e.size&&(e.size=e.__iterate(M)),e.size}function S(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?v(e)+t:t}function M(){return!0}function L(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function D(e,t){return w(e,t,0)}function C(e,t){return w(e,t,t)}function w(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var x=0,R=1,k=2,j="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",U=j||P;function B(e){this.next=e}function F(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function Y(e){return!!G(e)}function W(e){return e&&"function"==typeof e.next}function K(e){var t=G(e);return t&&t.call(e)}function G(e){var t=e&&(j&&e[j]||e[P]);if("function"==typeof t)return t}function V(e){return e&&"number"==typeof e.length}function H(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function Q(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Z(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=x,B.VALUES=R,B.ENTRIES=k,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[U]=function(){return this},t(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return ue(this,e,t,!0)},H.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(q,H),q.prototype.toKeyedSeq=function(){return this},t(Q,H),Q.of=function(){return Q(arguments)},Q.prototype.toIndexedSeq=function(){return this},Q.prototype.toString=function(){return this.__toString("Seq [","]")},Q.prototype.__iterate=function(e,t){return ue(this,e,t,!1)},Q.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Z,H),Z.of=function(){return Z(arguments)},Z.prototype.toSetSeq=function(){return this},H.isSeq=ie,H.Keyed=q,H.Set=Z,H.Indexed=Q;var $,J,X,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return $||($=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():W(e)?new oe(e).fromEntrySeq():Y(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=de(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=de(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function de(e){return V(e)?new te(e):W(e)?new oe(e):Y(e)?new re(e):void 0}function ue(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new B((function(){var e=o[n?i-a:a];return a++>i?z():F(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function fe(e,t){return t?me(t,e,"",{"":e}):ye(e)}function me(e,t,n,r){return Array.isArray(t)?e.call(r,n,Q(t).map((function(n,r){return me(e,n,r,t)}))):he(t)?e.call(r,n,q(t).map((function(n,r){return me(e,n,r,t)}))):t}function ye(e){return Array.isArray(e)?Q(e).map(ye).toList():he(e)?q(e).map(ye).toMap():e}function he(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ge(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Ee(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(d(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ge(o[1],e)&&(n||ge(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var u=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ge(t,e.get(r,_)):!ge(e.get(r,_),t))return u=!1,!1}));return u&&e.size===p}function _e(e,t){if(!(this instanceof _e))return new _e(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function be(e,t){if(!e)throw new Error(t)}function Te(e,t,n){if(!(this instanceof Te))return new Te(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(X)return X;X=this}}function Ae(){throw TypeError("Abstract")}function Oe(){}function Ie(){}function Ne(){}H.prototype[ee]=!0,t(te,Q),te.prototype.get=function(e,t){return this.has(e)?this._array[S(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new B((function(){return o>r?z():F(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new B((function(){var a=r[t?o-i:i];return i++>o?z():F(e,a,n[a])}))},ne.prototype[m]=!0,t(re,Q),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(W(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!W(n))return new B(z);var r=0;return new B((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(oe,Q),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new B((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return F(e,o,r[o++])}))},t(_e,Q),_e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},_e.prototype.get=function(e,t){return this.has(e)?this._value:t},_e.prototype.includes=function(e){return ge(this._value,e)},_e.prototype.slice=function(e,t){var n=this.size;return L(e,t,n)?this:new _e(this._value,C(t,n)-D(e,n))},_e.prototype.reverse=function(){return this},_e.prototype.indexOf=function(e){return ge(this._value,e)?0:-1},_e.prototype.lastIndexOf=function(e){return ge(this._value,e)?this.size:-1},_e.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},_e.prototype.__iterator=function(e,t){var n=this,r=0;return new B((function(){return r<n.size?F(e,r++,n._value):z()}))},_e.prototype.equals=function(e){return e instanceof _e?ge(this._value,e._value):Ee(e)},t(Te,Q),Te.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Te.prototype.get=function(e,t){return this.has(e)?this._start+S(this,e)*this._step:t},Te.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Te.prototype.slice=function(e,t){return L(e,t,this.size)?this:(e=D(e,this.size),(t=C(t,this.size))<=e?new Te(0,0):new Te(this.get(e,this._end),this.get(t,this._end),this._step))},Te.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Te.prototype.lastIndexOf=function(e){return this.indexOf(e)},Te.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Te.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new B((function(){var a=o;return o+=t?-r:r,i>n?z():F(e,i++,a)}))},Te.prototype.equals=function(e){return e instanceof Te?this._start===e._start&&this._end===e._end&&this._step===e._step:Ee(this,e)},t(Ae,n),t(Oe,Ae),t(Ie,Ae),t(Ne,Ae),Ae.Keyed=Oe,Ae.Indexed=Ie,Ae.Set=Ne;var ve="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Se(e){return e>>>1&1073741824|3221225471&e}function Me(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Se(n)}if("string"===t)return e.length>Be?Le(e):De(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Ce(e);if("function"==typeof e.toString)return De(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Le(e){var t=Ye[e];return void 0===t&&(t=De(e),ze===Fe&&(ze=0,Ye={}),ze++,Ye[e]=t),t}function De(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Se(t)}function Ce(e){var t;if(je&&void 0!==(t=ke.get(e)))return t;if(void 0!==(t=e[Ue]))return t;if(!xe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ue]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Pe,1073741824&Pe&&(Pe=0),je)ke.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(xe)Object.defineProperty(e,Ue,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ue]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ue]=t}}return t}var we=Object.isExtensible,xe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var ke,je="function"==typeof WeakMap;je&&(ke=new WeakMap);var Pe=0,Ue="__immutablehash__";"function"==typeof Symbol&&(Ue=Symbol(Ue));var Be=16,Fe=255,ze=0,Ye={};function We(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():Ge(e)&&!d(e)?e:ot().withMutations((function(t){var n=r(e);We(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ge(e){return!(!e||!e[He])}t(Ke,Oe),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,_,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,_)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return _}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ht(this,An(e),t,n);return r===_?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,ft,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,mt(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Yt(un(this,e))},Ke.prototype.sortBy=function(e,t){return Yt(un(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new I)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=Ge;var Ve,He="@@__IMMUTABLE_MAP__@@",qe=Ke.prototype;function Qe(e,t){this.ownerID=e,this.entries=t}function Ze(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function $e(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return F(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return Ve||(Ve=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=A(b),a=A(T);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===_?-1:1:0)}else{if(n===_)return e;o=1,r=new Qe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===_?e:(O(l),O(a),new Xe(t,r,[o,i]))}function lt(e){return e.constructor===Xe||e.constructor===Je}function st(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&E,l=(0===n?r:r>>>n)&E;return new Ze(t,1<<a|1<<l,a===l?[st(e,t,n+h,r,o)]:(i=new Xe(t,r,o),a<l?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new I);for(var o=new Xe(e,Me(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function dt(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var d=t[l];void 0!==d&&l!==r&&(o|=s,a[i++]=d)}return new Ze(e,o,a)}function ut(e,t,n,r,o){for(var i=0,a=new Array(g),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new $e(e,i+1,a)}function pt(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=r(l);a(l)||(s=s.map((function(e){return fe(e)}))),o.push(s)}return yt(e,t,o)}function ft(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ge(e,t)?e:t}function mt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ge(t,o)?t:o}}function yt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,_,(function(e){return e===_?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function ht(e,t,n,r){var o=e===_,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}be(o||e&&e.set,"invalid keyPath");var s=i.value,c=o?_:e.get(s,_),d=ht(c,t,n,r);return d===c?e:d===_?e.remove(s):(o?ot():e).set(s,d)}function gt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Et(e,t,n,r){var o=r?e:N(e);return o[t]=n,o}function _t(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function bt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[He]=!0,qe[y]=qe.remove,qe.removeIn=qe.deleteIn,Qe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ge(n,o[i][0]))return o[i][1];return r},Qe.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===_,s=this.entries,c=0,d=s.length;c<d&&!ge(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===o:l)return this;if(O(a),(l||!u)&&O(i),!l||1!==s.length){if(!u&&!l&&s.length>=Tt)return ct(e,s,r,o);var p=e&&e===this.ownerID,f=p?s:N(s);return u?l?c===d-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new Qe(e,f)}},Ze.prototype.get=function(e,t,n,r){void 0===t&&(t=Me(n));var o=1<<((0===e?t:t>>>e)&E),i=this.bitmap;return 0===(i&o)?r:this.nodes[gt(i&o-1)].get(e+h,t,n,r)},Ze.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var l=(0===t?n:n>>>t)&E,s=1<<l,c=this.bitmap,d=0!==(c&s);if(!d&&o===_)return this;var u=gt(c&s-1),p=this.nodes,f=d?p[u]:void 0,m=at(f,e,t+h,n,r,o,i,a);if(m===f)return this;if(!d&&m&&p.length>=At)return ut(e,p,c,l,m);if(d&&!m&&2===p.length&&lt(p[1^u]))return p[1^u];if(d&&m&&1===p.length&&lt(m))return m;var y=e&&e===this.ownerID,g=d?m?c:c^s:c|s,b=d?m?Et(p,u,m,y):bt(p,u,y):_t(p,u,m,y);return y?(this.bitmap=g,this.nodes=b,this):new Ze(e,g,b)},$e.prototype.get=function(e,t,n,r){void 0===t&&(t=Me(n));var o=(0===e?t:t>>>e)&E,i=this.nodes[o];return i?i.get(e+h,t,n,r):r},$e.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var l=(0===t?n:n>>>t)&E,s=o===_,c=this.nodes,d=c[l];if(s&&!d)return this;var u=at(d,e,t+h,n,r,o,i,a);if(u===d)return this;var p=this.count;if(d){if(!u&&--p<Ot)return dt(e,c,p,l)}else p++;var f=e&&e===this.ownerID,m=Et(c,l,u,f);return f?(this.count=p,this.nodes=m,this):new $e(e,p,m)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ge(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Me(r));var l=o===_;if(n!==this.keyHash)return l?this:(O(a),O(i),st(this,e,t,n,[r,o]));for(var s=this.entries,c=0,d=s.length;c<d&&!ge(r,s[c][0]);c++);var u=c<d;if(u?s[c][1]===o:l)return this;if(O(a),(l||!u)&&O(i),l&&2===d)return new Xe(e,this.keyHash,s[1^c]);var p=e&&e===this.ownerID,f=p?s:N(s);return u?l?c===d-1?f.pop():f[c]=f.pop():f[c]=[r,o]:f.push([r,o]),p?(this.entries=f,this):new Je(e,this.keyHash,f)},Xe.prototype.get=function(e,t,n,r){return ge(n,this.entry[0])?this.entry[1]:r},Xe.prototype.update=function(e,t,n,r,o,i,a){var l=o===_,s=ge(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(O(a),l?void O(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new Xe(e,this.keyHash,[r,o]):(O(i),st(this,e,t,Me(r),[r,o])))},Qe.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ze.prototype.iterate=$e.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(et,B),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return z()};var Tt=g/4,At=g/2,Ot=g/4;function It(e){var t=Rt();if(null==e)return t;if(Nt(e))return e;var n=o(e),r=n.size;return 0===r?t:(We(r),r>0&&r<g?xt(0,r,h,null,new Mt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Nt(e){return!(!e||!e[vt])}t(It,Ie),It.of=function(){return this(arguments)},It.prototype.toString=function(){return this.__toString("List [","]")},It.prototype.get=function(e,t){if((e=S(this,e))>=0&&e<this.size){var n=Ut(this,e+=this._origin);return n&&n.array[e&E]}return t},It.prototype.set=function(e,t){return kt(this,e,t)},It.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},It.prototype.insert=function(e,t){return this.splice(e,0,t)},It.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},It.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Bt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},It.prototype.pop=function(){return Bt(this,0,-1)},It.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Bt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},It.prototype.shift=function(){return Bt(this,1)},It.prototype.merge=function(){return Ft(this,void 0,arguments)},It.prototype.mergeWith=function(t){return Ft(this,t,e.call(arguments,1))},It.prototype.mergeDeep=function(){return Ft(this,ft,arguments)},It.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ft(this,mt(t),n)},It.prototype.setSize=function(e){return Bt(this,0,e)},It.prototype.slice=function(e,t){var n=this.size;return L(e,t,n)?this:Bt(this,D(e,n),C(t,n))},It.prototype.__iterator=function(e,t){var n=0,r=wt(this,t);return new B((function(){var t=r();return t===Ct?z():F(e,n++,t)}))},It.prototype.__iterate=function(e,t){for(var n,r=0,o=wt(this,t);(n=o())!==Ct&&!1!==e(n,r++,this););return r},It.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},It.isList=Nt;var vt="@@__IMMUTABLE_LIST__@@",St=It.prototype;function Mt(e,t){this.array=e,this.ownerID=t}St[vt]=!0,St[y]=St.remove,St.setIn=qe.setIn,St.deleteIn=St.removeIn=qe.removeIn,St.update=qe.update,St.updateIn=qe.updateIn,St.mergeIn=qe.mergeIn,St.mergeDeepIn=qe.mergeDeepIn,St.withMutations=qe.withMutations,St.asMutable=qe.asMutable,St.asImmutable=qe.asImmutable,St.wasAltered=qe.wasAltered,Mt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&E;if(r>=this.array.length)return new Mt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-h,n))===a&&i)return this}if(i&&!o)return this;var l=Pt(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},Mt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&E;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-h,n))===i&&o===this.array.length-1)return this}var a=Pt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Lt,Dt,Ct={};function wt(e,t){var n=e._origin,r=e._capacity,o=zt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>g&&(c=g),function(){if(s===c)return Ct;var e=t?--c:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,c=i>n?0:n-i>>o,d=1+(r-i>>o);return d>g&&(d=g),function(){for(;;){if(l){var e=l();if(e!==Ct)return e;l=null}if(c===d)return Ct;var n=t?--d:c++;l=a(s&&s[n],o-h,i+(n<<o))}}}}function xt(e,t,n,r,o,i,a){var l=Object.create(St);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function Rt(){return Lt||(Lt=xt(0,0,h))}function kt(e,t,n){if((t=S(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Bt(e,t).set(0,n):Bt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=A(T);return t>=zt(e._capacity)?r=jt(r,e.__ownerID,0,t,n,i):o=jt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):xt(e._origin,e._capacity,e._level,o,r):e}function jt(e,t,n,r,o,i){var a,l=r>>>n&E,s=e&&l<e.array.length;if(!s&&void 0===o)return e;if(n>0){var c=e&&e.array[l],d=jt(c,t,n-h,r,o,i);return d===c?e:((a=Pt(e,t)).array[l]=d,a)}return s&&e.array[l]===o?e:(O(i),a=Pt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function Pt(e,t){return t&&e&&t===e.ownerID?e:new Mt(e?e.array.slice():[],t)}function Ut(e,t){if(t>=zt(e._capacity))return e._tail;if(t<1<<e._level+h){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&E],r-=h;return n}}function Bt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new I,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,d=0;a+d<0;)c=new Mt(c&&c.array.length?[void 0,c]:[],r),d+=1<<(s+=h);d&&(a+=d,o+=d,l+=d,i+=d);for(var u=zt(i),p=zt(l);p>=1<<s+h;)c=new Mt(c&&c.array.length?[c]:[],r),s+=h;var f=e._tail,m=p<u?Ut(e,l-1):p>u?new Mt([],r):f;if(f&&p>u&&a<i&&f.array.length){for(var y=c=Pt(c,r),g=s;g>h;g-=h){var _=u>>>g&E;y=y.array[_]=Pt(y.array[_],r)}y.array[u>>>h&E]=f}if(l<i&&(m=m&&m.removeAfter(r,0,l)),a>=p)a-=p,l-=p,s=h,c=null,m=m&&m.removeBefore(r,0,a);else if(a>o||p<u){for(d=0;c;){var b=a>>>s&E;if(b!==p>>>s&E)break;b&&(d+=(1<<s)*b),s-=h,c=c.array[b]}c&&a>o&&(c=c.removeBefore(r,s,a-d)),c&&p<u&&(c=c.removeAfter(r,s,p-d)),d&&(a-=d,l-=d)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=m,e.__hash=void 0,e.__altered=!0,e):xt(a,l,s,c,m)}function Ft(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],c=o(s);c.size>i&&(i=c.size),a(s)||(c=c.map((function(e){return fe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),yt(e,t,r)}function zt(e){return e<g?0:e-1>>>h<<h}function Yt(e){return null==e?Gt():Wt(e)?e:Gt().withMutations((function(t){var n=r(e);We(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Wt(e){return Ge(e)&&d(e)}function Kt(e,t,n,r){var o=Object.create(Yt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Gt(){return Dt||(Dt=Kt(ot(),Rt()))}function Vt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===_){if(!s)return e;a.size>=g&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function Ht(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Qt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function $t(e){var t=_n(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=bn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===k){var r=e.__iterator(t,n);return new B((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?x:R,n)},t}function Jt(e,t,n){var r=_n(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,_);return i===_?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(k,o);return new B((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return F(r,l,t.call(n,a[1],l,e),o)}))},r}function Xt(e,t){var n=_n(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=$t(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=bn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=_n(e);return r&&(o.has=function(r){var o=e.get(r,_);return o!==_&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,_);return i!==_&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(k,i),l=0;return new B((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],d=s[1];if(t.call(n,d,c,e))return F(o,r?c:l++,d,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),o=(d(e)?Yt():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=En(e);return o.map((function(t){return yn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),L(t,n,o))return e;var i=D(t,o),a=C(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s==s&&(l=s<0?0:s);var c=_n(e);return c.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(c.get=function(t,n){return(t=S(this,t))>=0&&t<l?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==l})),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new B((function(){for(;a++<i;)o.next();if(++s>l)return z();var e=o.next();return r||t===R?e:F(t,s-1,t===x?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=_n(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(k,o),l=!0;return new B((function(){if(!l)return z();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,i)?r===k?e:F(r,s,c,e):(l=!1,z())}))},r}function an(e,t,n,r){var o=_n(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate((function(e,i,c){if(!l||!(l=t.call(n,e,i,c)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(k,i),s=!0,c=0;return new B((function(){var e,i,d;do{if((e=l.next()).done)return r||o===R?e:F(o,c++,o===x?void 0:e.value[1],e);var u=e.value;i=u[0],d=u[1],s&&(s=t.call(n,d,i,a))}while(s);return o===k?e:F(o,i,d,e)}))},o}function ln(e,t){var n=l(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||s(e)&&s(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function sn(e,t,n){var r=_n(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,c){var d=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?o:i++,d)&&(l=!0),!l}),o)}return s(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],s=0;return new B((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===k&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:F(r,s++,c,e);l.push(i),i=c.__iterator(r,o)}else i=l.pop()}return z()}))},r}function cn(e,t,n){var r=En(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function dn(e,t){var n=_n(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new B((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,t):F(n,a++,o.value,o)}))},n}function un(e,t,n){t||(t=Tn);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):s(e)?Q(i):Z(i)}function pn(e,t,n){if(t||(t=Tn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return fn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return fn(t,e,n)?n:e}))}function fn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function mn(e,t,r){var o=_n(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,l=!1;return new B((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?z():F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function yn(e,t){return ie(e)?t:e.constructor(t)}function hn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gn(e){return We(e.size),v(e)}function En(e){return l(e)?r:s(e)?o:i}function _n(e){return Object.create((l(e)?q:s(e)?Q:Z).prototype)}function bn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function Tn(e,t){return e>t?1:e<t?-1:0}function An(e){var t=K(e);if(!t){if(!V(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function On(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Sn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(In);return o.constructor=r,r}t(Yt,Ke),Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Yt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Yt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Gt()},Yt.prototype.set=function(e,t){return Vt(this,e,t)},Yt.prototype.remove=function(e){return Vt(this,e,_)},Yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Yt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Yt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Yt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Yt.isOrderedMap=Wt,Yt.prototype[m]=!0,Yt.prototype[y]=Yt.prototype.remove,t(Ht,q),Ht.prototype.get=function(e,t){return this._iter.get(e,t)},Ht.prototype.has=function(e){return this._iter.has(e)},Ht.prototype.valueSeq=function(){return this._iter.valueSeq()},Ht.prototype.reverse=function(){var e=this,t=Xt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Ht.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Ht.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?gn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Ht.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?gn(this):0;return new B((function(){var o=n.next();return o.done?o:F(e,t?--r:r++,o.value,o)}))},Ht.prototype[m]=!0,t(qt,Q),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new B((function(){var t=n.next();return t.done?t:F(e,r++,t.value,t)}))},t(Qt,Z),Qt.prototype.has=function(e){return this._iter.includes(e)},Qt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new B((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t(Zt,q),Zt.prototype.entrySeq=function(){return this._iter.toSeq()},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){hn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new B((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){hn(r);var o=a(r);return F(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Ht.prototype.cacheResult=Qt.prototype.cacheResult=Zt.prototype.cacheResult=bn,t(On,Oe),On.prototype.toString=function(){return this.__toString(vn(this)+" {","}")},On.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},On.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},On.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Nn(this,ot()))},On.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+vn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Nn(this,n)},On.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Nn(this,t)},On.prototype.wasAltered=function(){return this._map.wasAltered()},On.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},On.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},On.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Nn(this,t,e):(this.__ownerID=e,this._map=t,this)};var In=On.prototype;function Nn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function vn(e){return e._name||e.constructor.name||"Record"}function Sn(e,t){try{t.forEach(Mn.bind(void 0,e))}catch(e){}}function Mn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Ln(e){return null==e?jn():Dn(e)&&!d(e)?e:jn().withMutations((function(t){var n=i(e);We(n.size),n.forEach((function(e){return t.add(e)}))}))}function Dn(e){return!(!e||!e[wn])}In[y]=In.remove,In.deleteIn=In.removeIn=qe.removeIn,In.merge=qe.merge,In.mergeWith=qe.mergeWith,In.mergeIn=qe.mergeIn,In.mergeDeep=qe.mergeDeep,In.mergeDeepWith=qe.mergeDeepWith,In.mergeDeepIn=qe.mergeDeepIn,In.setIn=qe.setIn,In.update=qe.update,In.updateIn=qe.updateIn,In.withMutations=qe.withMutations,In.asMutable=qe.asMutable,In.asImmutable=qe.asImmutable,t(Ln,Ne),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("Set {","}")},Ln.prototype.has=function(e){return this._map.has(e)},Ln.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},Ln.prototype.remove=function(e){return Rn(this,this._map.remove(e))},Ln.prototype.clear=function(){return Rn(this,this._map.clear())},Ln.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Ln.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Ln.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Ln.prototype.merge=function(){return this.union.apply(this,arguments)},Ln.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Ln.prototype.sort=function(e){return Pn(un(this,e))},Ln.prototype.sortBy=function(e,t){return Pn(un(this,t,e))},Ln.prototype.wasAltered=function(){return this._map.wasAltered()},Ln.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Ln.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Ln.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Ln.isSet=Dn;var Cn,wn="@@__IMMUTABLE_SET__@@",xn=Ln.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function kn(e,t){var n=Object.create(xn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function jn(){return Cn||(Cn=kn(ot()))}function Pn(e){return null==e?Yn():Un(e)?e:Yn().withMutations((function(t){var n=i(e);We(n.size),n.forEach((function(e){return t.add(e)}))}))}function Un(e){return Dn(e)&&d(e)}xn[wn]=!0,xn[y]=xn.remove,xn.mergeDeep=xn.merge,xn.mergeDeepWith=xn.mergeWith,xn.withMutations=qe.withMutations,xn.asMutable=qe.asMutable,xn.asImmutable=qe.asImmutable,xn.__empty=jn,xn.__make=kn,t(Pn,Ln),Pn.of=function(){return this(arguments)},Pn.fromKeys=function(e){return this(r(e).keySeq())},Pn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Pn.isOrderedSet=Un;var Bn,Fn=Pn.prototype;function zn(e,t){var n=Object.create(Fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Yn(){return Bn||(Bn=zn(Gt()))}function Wn(e){return null==e?Qn():Kn(e)?e:Qn().unshiftAll(e)}function Kn(e){return!(!e||!e[Vn])}Fn[m]=!0,Fn.__empty=Yn,Fn.__make=zn,t(Wn,Ie),Wn.of=function(){return this(arguments)},Wn.prototype.toString=function(){return this.__toString("Stack [","]")},Wn.prototype.get=function(e,t){var n=this._head;for(e=S(this,e);n&&e--;)n=n.next;return n?n.value:t},Wn.prototype.peek=function(){return this._head&&this._head.value},Wn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Wn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;We(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Wn.prototype.pop=function(){return this.slice(1)},Wn.prototype.unshift=function(){return this.push.apply(this,arguments)},Wn.prototype.unshiftAll=function(e){return this.pushAll(e)},Wn.prototype.shift=function(){return this.pop.apply(this,arguments)},Wn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Qn()},Wn.prototype.slice=function(e,t){if(L(e,t,this.size))return this;var n=D(e,this.size);if(C(t,this.size)!==this.size)return Ie.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):qn(r,o)},Wn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Wn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Wn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new B((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return z()}))},Wn.isStack=Kn;var Gn,Vn="@@__IMMUTABLE_STACK__@@",Hn=Wn.prototype;function qn(e,t,n,r){var o=Object.create(Hn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Qn(){return Gn||(Gn=qn(0))}function Zn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Hn[Vn]=!0,Hn.withMutations=qe.withMutations,Hn.asMutable=qe.asMutable,Hn.asImmutable=qe.asImmutable,Hn.wasAltered=qe.wasAltered,n.Iterator=B,Zn(n,{toArray:function(){We(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Ht(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){We(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Yt(this.toKeyedSeq())},toOrderedSet:function(){return Pn(l(this)?this.valueSeq():this)},toSet:function(){return Ln(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Qt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Wn(l(this)?this.valueSeq():this)},toList:function(){return It(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return yn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ge(t,e)}))},entries:function(){return this.__iterator(k)},every:function(e,t){We(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return yn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return We(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){We(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(x)},map:function(e,t){return yn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return We(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return yn(this,Xt(this,!0))},slice:function(e,t){return yn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return yn(this,un(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return v(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Ee(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(M)},flatMap:function(e,t){return yn(this,cn(this,e,t))},flatten:function(e){return yn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Zt(this)},get:function(e,t){return this.find((function(t,n){return ge(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=An(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,_):_)===_)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,_)!==_},hasIn:function(e){return this.getIn(e,_)!==_},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return yn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return yn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return yn(this,un(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return yn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return yn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var $n=n.prototype;$n[u]=!0,$n[U]=$n.values,$n.__toJS=$n.toArray,$n.__toStringMapper=rr,$n.inspect=$n.toSource=function(){return this.toString()},$n.chain=$n.flatMap,$n.contains=$n.includes,function(){try{Object.defineProperty($n,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Zn(r,{flip:function(){return yn(this,$t(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ge(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ge(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return yn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return yn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Xn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return N(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=d(e),n=l(e),r=t?1:0;return lr(e.__iterate(n?t?function(e,t){r=31*r+sr(Me(e),Me(t))|0}:function(e,t){r=r+sr(Me(e),Me(t))|0}:t?function(e){r=31*r+Me(e)|0}:function(e){r=r+Me(e)|0}),r)}function lr(e,t){return t=ve(t,3432918353),t=ve(t<<15|t>>>-15,461845907),t=ve(t<<13|t>>>-13,5),t=ve((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Se((t=ve(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[U]=$n.entries,Jn.__toJS=$n.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Zn(o,{toKeyedSeq:function(){return new Ht(this,!1)},filter:function(e,t){return yn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return yn(this,Xt(this,!1))},slice:function(e,t){return yn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=D(e,e<0?this.count():this.size);var r=this.slice(0,e);return yn(this,1===n?r:r.concat(N(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return yn(this,sn(this,e,!1))},get:function(e,t){return(e=S(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=S(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return yn(this,dn(this,e))},interleave:function(){var e=[this].concat(N(arguments)),t=mn(this.toSeq(),Q.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),yn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return yn(this,an(this,e,t,!1))},zip:function(){return yn(this,mn(this,or,[this].concat(N(arguments))))},zipWith:function(e){var t=N(arguments);return t[0]=this,yn(this,mn(this,e,t))}}),o.prototype[f]=!0,o.prototype[m]=!0,Zn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=$n.includes,Zn(q,r.prototype),Zn(Q,o.prototype),Zn(Z,i.prototype),Zn(Oe,r.prototype),Zn(Ie,o.prototype),Zn(Ne,i.prototype);var cr={Iterable:n,Seq:H,Collection:Ae,Map:Ke,OrderedMap:Yt,List:It,Stack:Wn,Set:Ln,OrderedSet:Pn,Record:On,Range:Te,Repeat:_e,is:ge,fromJS:fe};return cr}()),Zo.exports}function Jo(){if(mr)return fr;mr=1;var e=$o().OrderedMap;return fr={createFromArray:function(t){return e(t.map((function(e){return[e.getKey(),e]})))}}}function Xo(){if(hr)return yr;hr=1;var e=$o(),t=e.Map,n=e.OrderedSet,r=e.Record,o=n(),i={style:o,entity:null},a=function(e){var r,i;function a(){return e.apply(this,arguments)||this}i=e,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var c=a.prototype;return c.getStyle=function(){return this.get("style")},c.getEntity=function(){return this.get("entity")},c.hasStyle=function(e){return this.getStyle().includes(e)},a.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return a.create(n)},a.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return a.create(n)},a.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return a.create(n)},a.create=function(e){if(!e)return l;var n=t({style:o,entity:null}).merge(e),r=s.get(n);if(r)return r;var i=new a(n);return s=s.set(n,i),i},a.fromJS=function(e){var t=e.style,r=e.entity;return new a({style:Array.isArray(t)?n(t):t,entity:Array.isArray(r)?n(r):r})},a}(r(i)),l=new a,s=t([[t(i),l]]);return a.EMPTY=l,yr=a}function ei(){if(Er)return gr;return Er=1,gr=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}}function ti(){if(br)return _r;br=1;var e=Xo(),t=ei(),n=$o(),r=n.List,o=n.Map,i=n.OrderedSet,a=n.Record,l=n.Repeat,s=i(),c=a({key:"",type:"unstyled",text:"",characterList:r(),depth:0,data:o()});function d(e,t){return e.getStyle()===t.getStyle()}function u(e,t){return e.getEntity()===t.getEntity()}return _r=function(n){var o,i;function a(t){return n.call(this,function(t){if(!t)return t;var n=t.characterList,o=t.text;return o&&!n&&(t.characterList=r(l(e.EMPTY,o.length))),t}(t))||this}i=n,(o=a).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var c=a.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():s},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.findStyleRanges=function(e,n){t(this.getCharacterList(),d,e,n)},c.findEntityRanges=function(e,n){t(this.getCharacterList(),u,e,n)},a}(c)}function ni(){if(Ar)return Tr;Ar=1;var e=Xo(),t=ei(),n=$o(),r=n.List,o=n.Map,i=n.OrderedSet,a=n.Record,l=n.Repeat,s=i(),c={parent:null,characterList:r(),data:o(),depth:0,key:"",text:"",type:"unstyled",children:r(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},u=function(e,t){return e.getEntity()===t.getEntity()},p=function(n){var o,i;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return n.call(this,function(t){if(!t)return t;var n=t.characterList,o=t.text;return o&&!n&&(t.characterList=r(l(e.EMPTY,o.length))),t}(t))||this}i=n,(o=a).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var p=a.prototype;return p.getKey=function(){return this.get("key")},p.getType=function(){return this.get("type")},p.getText=function(){return this.get("text")},p.getCharacterList=function(){return this.get("characterList")},p.getLength=function(){return this.getText().length},p.getDepth=function(){return this.get("depth")},p.getData=function(){return this.get("data")},p.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():s},p.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},p.getChildKeys=function(){return this.get("children")},p.getParentKey=function(){return this.get("parent")},p.getPrevSiblingKey=function(){return this.get("prevSibling")},p.getNextSiblingKey=function(){return this.get("nextSibling")},p.findStyleRanges=function(e,n){t(this.getCharacterList(),d,e,n)},p.findEntityRanges=function(e,n){t(this.getCharacterList(),u,e,n)},a}(a(c));return Tr=p}function ri(){if(Mr)return Sr;Mr=1;var e=function(){if(vr)return Nr;vr=1;var e=Xo();return Nr=function(t,n,r,o){for(var i=n,a=t.getCharacterList();i<r;)a=a.set(i,e.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}}(),t=$o();return Sr=function(n,r,o){var i=n.getBlockMap(),a=r.getStartKey(),l=r.getStartOffset(),s=r.getEndKey(),c=r.getEndOffset(),d=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===s})).toOrderedMap().merge(t.OrderedMap([[s,i.get(s)]])).map((function(t,n){var r=n===a?l:0,i=n===s?c:t.getLength();return e(t,r,i,o)}));return n.merge({blockMap:i.merge(d),selectionBefore:r,selectionAfter:r})}}function oi(){if(wr)return Cr;wr=1;var e="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};return Cr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(e(n),!t){var a;if(void 0===n)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;(a=new Error(n.replace(/%s/g,(function(){return String(o[l++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}},Cr}function ii(){if(jr)return kr;jr=1;var e=Dr?Lr:(Dr=1,Lr={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,l=r,s=null,c=null,d=0;d<i.length;d++){if(e<(a=l+i[d].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var u=r+n.length,p=s===r,f=c===u;return(!p&&f||p&&!f)&&("forward"===o?c!==u&&c++:s!==r&&s--),{start:s,end:c}}}),t=function(){if(Rr)return xr;Rr=1;var e=oi();return xr=function(t,n){var r=[];return t.findEntityRanges((function(e){return e.getEntity()===n}),(function(e,t){r.push({start:e,end:t})})),r.length||("production"!==process.env.NODE_ENV?e(!1,"Entity key not found in this range."):e(!1)),r}}(),n=oi();function r(r,o,i,a,l,s,c){var d=i.getStartOffset(),u=i.getEndOffset(),p=r.__get(l).getMutability(),f=c?d:u;if("MUTABLE"===p)return i;var m=t(o,l).filter((function(e){return f<=e.end&&f>=e.start}));1!=m.length&&("production"!==process.env.NODE_ENV?n(!1,"There should only be one entity range within this removal range."):n(!1));var y=m[0];if("IMMUTABLE"===p)return i.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1});s||(c?u=y.end:d=y.start);var h=e.getRemovalRange(d,u,o.getText().slice(y.start,y.end),y.start,a);return i.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}return kr=function(e,t,n,o,i){var a=o.getStartOffset(),l=o.getEndOffset(),s=t.getEntityAt(a),c=n.getEntityAt(l-1);if(!s&&!c)return o;var d=o;if(s&&s===c)d=r(e,t,d,i,s,!0,!0);else if(s&&c){var u=r(e,t,d,i,s,!1,!0),p=r(e,n,d,i,c,!1,!1);d=d.merge({anchorOffset:u.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var f=r(e,t,d,i,s,!1,!0);d=d.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(c){var m=r(e,n,d,i,c,!1,!1);d=d.merge({focusOffset:m.getEndOffset(),isBackward:!1})}return d}}function ai(){if(Ur)return Pr;Ur=1;var e={},t=Math.pow(2,24);return Pr=function(){for(var n;void 0===n||e.hasOwnProperty(n)||!isNaN(+n);)n=Math.floor(Math.random()*t).toString(32);return e[n]=!0,n}}function li(){if(Fr)return Br;Fr=1;var e=ni(),t=ai(),n=$o().OrderedMap;return Br=function(r){return r.first()instanceof e?function(e){var r,o={};return n(e.withMutations((function(e){e.forEach((function(n,i){var a=n.getKey(),l=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),d=n.getParentKey(),u=t();if(o[a]=u,l&&(e.get(l)?e.setIn([l,"prevSibling"],u):e.setIn([a,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([a,"prevSibling"],null)),d&&e.get(d)){var p=e.get(d).getChildKeys();e.setIn([d,"children"],p.set(p.indexOf(n.getKey()),u))}else e.setIn([a,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],u),e.setIn([a,"prevSibling"],o[r.getKey()])),r=e.get(a);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([a,"children"],n.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[o[e.getKey()],e.set("key",o[e.getKey()])]})))}(r):function(e){return n(e.toArray().map((function(e){var n=t();return[n,e.set("key",n)]})))}(r)}}function si(){if(Yr)return zr;Yr=1;var e=Xo(),t=ei(),n=oi();function r(r,o,i){var a=o.getCharacterList(),l=i>0?a.get(i-1):void 0,s=i<a.count()?a.get(i):void 0,c=l?l.getEntity():void 0,d=s?s.getEntity():void 0;if(d&&d===c&&"MUTABLE"!==r.__get(d).getMutability()){for(var u,p=function(e,r,o){var i;return t(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===r}),(function(e,t){e<=o&&t>=o&&(i={start:e,end:t})})),"object"!=typeof i&&("production"!==process.env.NODE_ENV?n(!1,"Removal range must exist within character list."):n(!1)),i}(a,d,i),f=p.start,m=p.end;f<m;)u=a.get(f),a=a.set(f,e.applyEntity(u,null)),f++;return o.set("characterList",a)}return o}return zr=function(e,t){var n=e.getBlockMap(),o=e.getEntityMap(),i={},a=t.getStartKey(),l=t.getStartOffset(),s=n.get(a),c=r(o,s,l);c!==s&&(i[a]=c);var d=t.getEndKey(),u=t.getEndOffset(),p=n.get(d);a===d&&(p=c);var f=r(o,p,u);return f!==p&&(i[d]=f),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}}function ci(){if(Kr)return Wr;Kr=1;var e=li(),t=si();return Wr=function(n,r){var o=r.getStartKey(),i=r.getStartOffset(),a=r.getEndKey(),l=r.getEndOffset(),s=t(n,r).getBlockMap(),c=s.keySeq(),d=c.indexOf(o),u=c.indexOf(a)+1;return e(s.slice(d,u).map((function(e,t){var n=e.getText(),r=e.getCharacterList();return o===a?e.merge({text:n.slice(i,l),characterList:r.slice(i,l)}):t===o?e.merge({text:n.slice(i),characterList:r.slice(i)}):t===a?e.merge({text:n.slice(0,l),characterList:r.slice(0,l)}):e})))}}function di(){if(Vr)return Gr;return Vr=1,Gr=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r}}function ui(){if(qr)return Hr;qr=1;var e=Jo(),t=ni(),n=$o(),r=di(),o=oi(),i=li(),a=n.List,l=function(n,r,o,i,l,s){var c=o.first()instanceof t,d=[],u=i.size,p=o.get(l),f=i.first(),m=i.last(),y=m.getLength(),h=m.getKey(),g=c&&(!p.getChildKeys().isEmpty()||!f.getChildKeys().isEmpty());o.forEach((function(e,t){t===l?(g?d.push(e):d.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),l=n.first();return e.merge({text:i+l.getText(),characterList:a.concat(l.getCharacterList()),type:i?e.getType():l.getType(),data:l.getData()})}(e,s,i)),i.slice(g?0:1,u-1).forEach((function(e){return d.push(e)})),d.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),l=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,s,i))):d.push(e)}));var E=e.createFromArray(d);return c&&(E=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),l=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),d=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([d,"nextSibling"],l),l&&t.setIn([l,"prevSibling"],d),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var u=e.get(s).getChildKeys(),p=u.indexOf(o)+1,f=u.toArray();f.splice.apply(f,[p,0].concat(c)),t.setIn([s,"children"],a(f))}}))}(E,0,p,f)),n.merge({blockMap:E,selectionBefore:r,selectionAfter:r.merge({anchorKey:h,anchorOffset:y,focusKey:h,focusOffset:y,isBackward:!1})})};return Hr=function(e,n,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||("production"!==process.env.NODE_ENV?o(!1,"`insertFragment` should only be called with a collapsed selection state."):o(!1));var c=e.getBlockMap(),d=i(a),u=n.getStartKey(),p=n.getStartOffset(),f=c.get(u);return f instanceof t&&(f.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?o(!1,"`insertFragment` should not be called when a container node is selected."):o(!1))),1===d.size?function(e,t,n,o,i,a){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(i),c=s.getText(),d=s.getCharacterList(),u=i,p=a+o.getText().length,f=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":f=o.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":f=o.getData()}var m=s.getType();c&&"unstyled"===m&&(m=o.getType());var y=s.merge({text:c.slice(0,a)+o.getText()+c.slice(a),characterList:r(d,o.getCharacterList(),a),type:m,data:f});return e.merge({blockMap:n.set(i,y),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:p,focusKey:u,focusOffset:p,isBackward:!1})})}(e,n,c,d.first(),u,p,s):l(e,n,c,d,u,p)},Hr}function pi(){if(Jr)return $r;Jr=1;var e=$o().Map;return $r=function(t,n,r){var o=n.getStartKey(),i=n.getEndKey(),a=t.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(e([[i,a.get(i)]])).map(r);return t.merge({blockMap:a.merge(l),selectionBefore:n,selectionAfter:n})}}function fi(){if(eo)return Xr;eo=1;var e=ni();return Xr=function(t,n){if(!(t instanceof e))return null;var r=t.getNextSiblingKey();if(r)return r;var o=t.getParentKey();if(!o)return null;for(var i=n.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?n.get(a):null}return i?i.getNextSiblingKey():null}}function mi(){if(no)return to;no=1;var e=ni(),t=fi(),n=$o();n.List;var r=n.Map,o=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},i=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},a=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},s=function(e,n,r,s){return e.withMutations((function(c){if(o(n.getKey(),c,(function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})),o(r.getKey(),c,(function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})})),i(n.getKey(),s).forEach((function(e){return o(e,c,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return c.get(e)})),nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}))})),o(n.getNextSiblingKey(),c,(function(e){return e.merge({prevSibling:n.getPrevSiblingKey()})})),o(n.getPrevSiblingKey(),c,(function(e){return e.merge({nextSibling:a(e,c,s)})})),o(r.getNextSiblingKey(),c,(function(e){return e.merge({prevSibling:l(e,c,s)})})),o(r.getPrevSiblingKey(),c,(function(e){return e.merge({nextSibling:r.getNextSiblingKey()})})),i(r.getKey(),s).forEach((function(e){o(e,c,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return c.get(e)})),nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}))})),function(e,n){var r=[];if(!e)return r;for(var o=t(e,n);o&&n.get(o);){var i=n.get(o);r.push(o),o=i.getParentKey()?t(i,n):null}return r}(r,s).forEach((function(e){return o(e,c,(function(e){return e.merge({nextSibling:a(e,c,s),prevSibling:l(e,c,s)})}))})),null==e.get(n.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===n.getKey()&&null==r.getPrevSiblingKey()){var d=n.getPrevSiblingKey();o(r.getKey(),c,(function(e){return e.merge({prevSibling:d})})),o(d,c,(function(e){return e.merge({nextSibling:r.getKey()})}));var u=d?e.get(d):null,p=u?u.getParentKey():null;if(n.getChildKeys().forEach((function(e){o(e,c,(function(e){return e.merge({parent:p})}))})),null!=p){var f=e.get(p);o(p,c,(function(e){return e.merge({children:f.getChildKeys().concat(n.getChildKeys())})}))}o(n.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),c,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})}))}}))},c=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};return to=function(n,o){if(o.isCollapsed())return n;var a,l=n.getBlockMap(),d=o.getStartKey(),u=o.getStartOffset(),p=o.getEndKey(),f=o.getEndOffset(),m=l.get(d),y=l.get(p),h=m instanceof e,g=[];if(h){var E=y.getChildKeys(),_=i(p,l);y.getNextSiblingKey()&&(g=g.concat(_)),E.isEmpty()||(g=g.concat(_.concat([p]))),g=g.concat(i(t(y,l),l))}a=m===y?c(m.getCharacterList(),u,f):m.getCharacterList().slice(0,u).concat(y.getCharacterList().slice(f));var b=m.merge({text:m.getText().slice(0,u)+y.getText().slice(f),characterList:a}),T=h&&0===u&&0===f&&y.getParentKey()===d&&null==y.getPrevSiblingKey()?r([[d,null]]):l.toSeq().skipUntil((function(e,t){return t===d})).takeUntil((function(e,t){return t===p})).filter((function(e,t){return-1===g.indexOf(t)})).concat(r([[p,null]])).map((function(e,t){return t===d?b:null})),A=l.merge(T).filter((function(e){return!!e}));return h&&m!==y&&(A=s(A,m,y,l)),n.merge({blockMap:A,selectionBefore:o,selectionAfter:o.merge({anchorKey:d,anchorOffset:u,focusKey:d,focusOffset:u,isBackward:!1})})}}function yi(){if(oo)return ro;oo=1;var e=ni(),t=ai(),n=$o(),r=oi(),o=pi(),i=n.List,a=n.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};return ro=function(n,s){s.isCollapsed()||("production"!==process.env.NODE_ENV?r(!1,"Selection range must be collapsed."):r(!1));var c=s.getAnchorKey(),d=n.getBlockMap(),u=d.get(c),p=u.getText();if(!p){var f=u.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return o(n,s,(function(e){return e.merge({type:"unstyled",depth:0})}))}var m=s.getAnchorOffset(),y=u.getCharacterList(),h=t(),g=u instanceof e,E=u.merge({text:p.slice(0,m),characterList:y.slice(0,m)}),_=E.merge({key:h,text:p.slice(m),characterList:y.slice(m),data:a()}),b=d.toSeq().takeUntil((function(e){return e===u})),T=d.toSeq().skipUntil((function(e){return e===u})).rest(),A=b.concat([[c,E],[h,_]],T).toOrderedMap();return g&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?r(!1,"ContentBlockNode must not have children"):r(!1)),A=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,o),e.merge({children:i(a)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),l(r,e,(function(e){return e.merge({nextSibling:o})})),l(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(A,E,_)),n.merge({blockMap:A,selectionBefore:s,selectionAfter:s.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}}function hi(){if(ao)return io;ao=1;var e=Xo(),t=function(){if(Ir)return Or;Ir=1;var e=Xo(),t=$o().Map;function n(n,r,o,i){var a=n.getBlockMap(),l=r.getStartKey(),s=r.getStartOffset(),c=r.getEndKey(),d=r.getEndOffset(),u=a.skipUntil((function(e,t){return t===l})).takeUntil((function(e,t){return t===c})).concat(t([[c,a.get(c)]])).map((function(t,n){var r,a;l===c?(r=s,a=d):(r=n===l?s:0,a=n===c?d:t.getLength());for(var u,p=t.getCharacterList();r<a;)u=p.get(r),p=p.set(r,i?e.applyStyle(u,o):e.removeStyle(u,o)),r++;return t.set("characterList",p)}));return n.merge({blockMap:a.merge(u),selectionBefore:r,selectionAfter:r})}return Or={add:function(e,t,r){return n(e,t,r,!0)},remove:function(e,t,r){return n(e,t,r,!1)}}}(),n=ri(),r=ii(),o=ci(),i=$o(),a=ui(),l=function(){if(Zr)return Qr;Zr=1;var e=$o(),t=di(),n=oi(),r=e.Repeat;return Qr=function(e,o,i,a){o.isCollapsed()||("production"!==process.env.NODE_ENV?n(!1,"`insertText` should only be called with a collapsed range."):n(!1));var l=null;if(null!=i&&(l=i.length),null==l||0===l)return e;var s=e.getBlockMap(),c=o.getStartKey(),d=o.getStartOffset(),u=s.get(c),p=u.getText(),f=u.merge({text:p.slice(0,d)+i+p.slice(d,u.getLength()),characterList:t(u.getCharacterList(),r(a,l).toList(),d)}),m=d+l;return e.merge({blockMap:s.set(c,f),selectionAfter:o.merge({anchorOffset:m,focusOffset:m})})}}(),s=oi(),c=pi(),d=si(),u=mi(),p=yi(),f=i.OrderedSet,m={replaceText:function(t,n,r,o,i){var a=d(t,n),s=u(a,n),c=e.create({style:o||f(),entity:i||null});return l(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?s(!1,"Target range must be collapsed for `insertText`."):s(!1)),m.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=o(e,t),i=m.removeRange(e,t,"backward");return m.replaceWithFragment(i,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(e,t),i=u(o,t);return a(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var o,i,a,l;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),o=t.getAnchorKey(),i=t.getFocusKey(),a=e.getBlockForKey(o),l=e.getBlockForKey(i);var s=t.getStartOffset(),c=t.getEndOffset(),p=a.getEntityAt(s),f=l.getEntityAt(c-1);if(o===i&&p&&p===f){var m=r(e.getEntityMap(),a,l,t,n);return u(e,m)}var y=d(e,t);return u(y,t)},splitBlock:function(e,t){var n=d(e,t),r=u(n,t);return p(r,r.getSelectionAfter())},applyInlineStyle:function(e,n,r){return t.add(e,n,r)},removeInlineStyle:function(e,n,r){return t.remove(e,n,r)},setBlockType:function(e,t,n){return c(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return c(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return c(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,r){var o=d(e,t);return n(o,t,r)}};return io=m}function gi(){if(so)return lo;return so=1,lo=function(e){return Object.keys(e).map((function(t){return e[t]}))}}function Ei(){if(uo)return co;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}uo=1;var t=ei(),n=gi(),r=$o(),o=r.List,i=r.Repeat,a=r.Record,l=function(){return!0},s=a({start:null,end:null}),c=a({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,n,r){var a=n.getLength();if(!a)return o.of(new c({start:0,end:0,decoratorKey:null,leaves:o.of(new s({start:0,end:0}))}));var d=[],f=r?r.getDecorations(n,e):o(i(null,a)),m=n.getCharacterList();return t(f,p,l,(function(e,t){d.push(new c({start:e,end:t,decoratorKey:f.get(e),leaves:u(m.slice(e,t).toList(),e)}))})),o(d)},fromJS:function(t){var r=t.leaves,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["leaves"]);return new c(function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){e(t,n,r[n])}))}return t}({},i,{leaves:null!=r?o(Array.isArray(r)?r:n(r)).map((function(e){return s(e)})):null}))}};function u(e,n){var r=[],i=e.map((function(e){return e.getStyle()})).toList();return t(i,p,l,(function(e,t){r.push(new s({start:e+n,end:t+n}))})),o(r)}function p(e,t){return e===t}return co=d}function _i(){if(fo)return po;fo=1;var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,$o().Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));return po=e}function bi(){if(go)return ho;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}go=1;var t=_i(),n=$o(),r=oi(),o=(yo||(yo=1,mo=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}),mo),i=(0,n.Map)(),a=o();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var s={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),s.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),s.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),s.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),s.__get(e)},__getAll:function(){return i},__loadWithEntities:function(e){i=e,a=o()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),s.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),s.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return a},__create:function(e,n,r){return s.__add(new t({type:e,mutability:n,data:r||{}}))},__add:function(e){return a=o(),i=i.set(a,e),a},__get:function(e){var t=i.get(e);return t||("production"!==process.env.NODE_ENV?r(!1,"Unknown DraftEntity key: %s.",e):r(!1)),t},__mergeData:function(t,n){var r=s.__get(t),o=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){e(t,n,r[n])}))}return t}({},r.getData(),n),a=r.set("data",o);return i=i.set(t,a),a},__replaceData:function(e,t){var n=s.__get(e).set("data",t);return i=i.set(e,n),n}};return ho=s}function Ti(){if(_o)return Eo;_o=1;var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,$o().Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));return Eo=e}function Ai(){return To?bo:(To=1,bo=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]})}function Oi(){if(Oo)return Ao;Oo=1;var e=new RegExp("\r","g");return Ao=function(t){return t.replace(e,"")}}function Ii(){if(No)return Io;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){t(e,n,r[n])}))}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}No=1;var n=Jo(),r=Xo(),o=ti(),i=ni(),a=bi(),l=Ti(),s=ai(),c=gi(),d=Ai(),u=$o(),p=Oi(),f=u.List,m=u.Record,y=u.Repeat,h=u.Map,g=u.OrderedMap,E=m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),_=d("draft_tree_data_support")?i:o,b=function(t){var o,i;function d(){return t.apply(this,arguments)||this}i=t,(o=d).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var u=d.prototype;return u.getEntityMap=function(){return a},u.getBlockMap=function(){return this.get("blockMap")},u.getSelectionBefore=function(){return this.get("selectionBefore")},u.getSelectionAfter=function(){return this.get("selectionAfter")},u.getBlockForKey=function(e){return this.getBlockMap().get(e)},u.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},u.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},u.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},u.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},u.getBlocksAsArray=function(){return this.getBlockMap().toArray()},u.getFirstBlock=function(){return this.getBlockMap().first()},u.getLastBlock=function(){return this.getBlockMap().last()},u.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},u.getLastCreatedEntityKey=function(){return a.__getLastCreatedEntityKey()},u.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},u.createEntity=function(e,t,n){return a.__create(e,t,n),this},u.mergeEntityData=function(e,t){return a.__mergeData(e,t),this},u.replaceEntityData=function(e,t){return a.__replaceData(e,t),this},u.addEntity=function(e){return a.__add(e),this},u.getEntity=function(e){return a.__get(e)},u.getAllEntities=function(){return a.__getAll()},u.loadWithEntities=function(e){return a.__loadWithEntities(e)},d.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,o=n.createFromArray(r),i=o.isEmpty()?new l:l.createEmpty(o.first().getKey());return new d({blockMap:o,entityMap:t||a,selectionBefore:i,selectionAfter:i})},d.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=p(e),new _({key:s(),text:e,type:"unstyled",characterList:f(y(r.EMPTY,e.length))})}));return d.createFromBlockArray(n)},d.fromJS=function(t){return new d(e({},t,{blockMap:g(t.blockMap).map(d.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},d.createContentBlockFromJS=function(t){var n=t.characterList;return new _(e({},t,{data:h(t.data),characterList:null!=n?f((Array.isArray(n)?n:c(n)).map((function(e){return r.fromJS(e)}))):void 0}))},d}(E);return Io=b}function Ni(){if(So)return vo;So=1;var e=oi(),t="LTR",n=null;function r(e){return e===t||"RTL"===e}function o(n){return r(n)||("production"!==process.env.NODE_ENV?e(!1,"`dir` must be a strong direction to be converted to HTML Direction"):e(!1)),n===t?"ltr":"rtl"}function i(e){n=e}return vo={NEUTRAL:"NEUTRAL",LTR:t,RTL:"RTL",isStrong:r,getHTMLDir:o,getHTMLDirIfDifferent:function(t,n){return r(t)||("production"!==process.env.NODE_ENV?e(!1,"`dir` must be a strong direction to be converted to HTML Direction"):e(!1)),r(n)||("production"!==process.env.NODE_ENV?e(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):e(!1)),t===n?null:o(t)},setGlobalDir:i,initGlobalDir:function(){i(t)},getGlobalDir:function(){return n||this.initGlobalDir(),n||("production"!==process.env.NODE_ENV?e(!1,"Global direction not set."):e(!1)),n}}}function vi(){if(Lo)return Mo;Lo=1;var e=Ni(),t=oi(),n="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",r="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",o=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+n+r+"]"),i=new RegExp("["+n+r+"]");function a(e){var t=o.exec(e);return null==t?null:t[0]}function l(t){var n=a(t);return null==n?e.NEUTRAL:i.exec(n)?e.RTL:e.LTR}function s(t,n){if(n=n||e.NEUTRAL,!t.length)return n;var r=l(t);return r===e.NEUTRAL?n:r}function c(n,r){return r||(r=e.getGlobalDir()),e.isStrong(r)||("production"!==process.env.NODE_ENV?t(!1,"Fallback direction must be a strong direction"):t(!1)),s(n,r)}return Mo={firstStrongChar:a,firstStrongCharDir:l,resolveBlockDir:s,getDirection:c,isDirectionLTR:function(t,n){return c(t,n)===e.LTR},isDirectionRTL:function(t,n){return c(t,n)===e.RTL}}}function Si(){if(xo)return wo;xo=1;return wo=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}}function Mi(){if(ko)return Ro;ko=1;var e,t=function(){if(Co)return Do;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Co=1;var t=vi(),n=Ni(),r=oi();return Do=function(){function o(t){e(this,"_defaultDir",void 0),e(this,"_lastDir",void 0),t?n.isStrong(t)||("production"!==process.env.NODE_ENV?r(!1,"Default direction must be a strong direction (LTR or RTL)"):r(!1)):t=n.getGlobalDir(),this._defaultDir=t,this.reset()}var i=o.prototype;return i.reset=function(){this._lastDir=this._defaultDir},i.getDirection=function(e){return this._lastDir=t.getDirection(e,this._lastDir),this._lastDir},o}()}(),n=$o(),r=Si(),o=n.OrderedMap;return Ro={getDirectionMap:function(i,a){e?e.reset():e=new t;var l=i.getBlockMap(),s=l.valueSeq().map((function(t){return r(e).getDirection(t.getText())})),c=o(l.keySeq().zip(s));return null!=a&&n.is(a,c)?a:c}}}function Li(){if(Po)return jo;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){t(e,n,r[n])}))}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Po=1;var n=Ei(),r=Ii(),o=Mi(),i=Ti(),a=$o(),l=a.OrderedSet,s=a.Record,c=a.Stack,d=a.OrderedMap,u=a.List,p=s({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:c(),selection:null,treeMap:null,undoStack:c()}),f=function(){s.createEmpty=function(e){return this.createWithText("",e)},s.createWithText=function(e,t){return s.createWithContent(r.createFromText(e),t)},s.createWithContent=function(e,t){if(0===e.getBlockMap().count())return s.createEmpty(t);var n=e.getBlockMap().first().getKey();return s.create({currentContent:e,undoStack:c(),redoStack:c(),decorator:t||null,selection:i.createEmpty(n)})},s.create=function(t){var n=t.currentContent,r=e({},t,{treeMap:y(n,t.decorator),directionMap:o.getDirectionMap(n)});return new s(new p(r))},s.fromJS=function(t){return new s(new p(e({},t,{directionMap:null!=t.directionMap?d(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?r.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?c(t.redoStack.map((function(e){return r.fromJS(e)}))):t.redoStack,selection:null!=t.selection?new i(t.selection):t.selection,treeMap:null!=t.treeMap?d(t.treeMap).map((function(e){return u(e).map((function(e){return n.fromJS(e)}))})):t.treeMap,undoStack:null!=t.undoStack?c(t.undoStack.map((function(e){return r.fromJS(e)}))):t.undoStack,currentContent:r.fromJS(t.currentContent)})))},s.set=function(e,t){return new s(e.getImmutable().withMutations((function(r){var o=r.get("decorator"),i=o;null===t.decorator?i=null:t.decorator&&(i=t.decorator);var a=t.currentContent||e.getCurrentContent();if(i!==o){var l,s=r.get("treeMap");return l=i&&o?function(e,t,r,o,i){return r.merge(t.toSeq().filter((function(t){return o.getDecorations(t,e)!==i.getDecorations(t,e)})).map((function(t){return n.generate(e,t,o)})))}(a,a.getBlockMap(),s,i,o):y(a,i),void r.merge({decorator:i,treeMap:l,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&r.set("treeMap",function(e,t,r,o){var i=e.getCurrentContent().set("entityMap",r),a=i.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return n.generate(i,e,o)})))}(e,a.getBlockMap(),a.getEntityMap(),i)),r.merge(t)})))};var a=s.prototype;function s(e){t(this,"_immutable",void 0),this._immutable=e}return a.toJS=function(){return this.getImmutable().toJS()},a.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},a.getCurrentContent=function(){return this.getImmutable().get("currentContent")},a.getUndoStack=function(){return this.getImmutable().get("undoStack")},a.getRedoStack=function(){return this.getImmutable().get("redoStack")},a.getSelection=function(){return this.getImmutable().get("selection")},a.getDecorator=function(){return this.getImmutable().get("decorator")},a.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},a.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},a.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},a.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},a.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},s.setInlineStyleOverride=function(e,t){return s.set(e,{inlineStyleOverride:t})},a.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return h(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return h(e,n)}(t,n)},a.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},a.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},a.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},a.getDirectionMap=function(){return this.getImmutable().get("directionMap")},s.acceptSelection=function(e,t){return m(e,t,!1)},s.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},s.moveSelectionToEnd=function(e){var t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength();return s.acceptSelection(e,new i({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},s.moveFocusToEnd=function(e){var t=s.moveSelectionToEnd(e);return s.forceSelection(t,t.getSelection())},s.push=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===t)return e;var i=o.getDirectionMap(t,e.getDirectionMap());if(!e.getAllowUndo())return s.set(e,{currentContent:t,directionMap:i,lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),d=e.getUndoStack(),u=t;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,n)?(d=d.push(l),u=u.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",l.getSelectionBefore()));var p=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(p=null);var f={currentContent:u,directionMap:i,undoStack:d,redoStack:c(),lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:p};return s.set(e,f)},s.undo=function(e){if(!e.getAllowUndo())return e;var t=e.getUndoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),i=o.getDirectionMap(n,e.getDirectionMap());return s.set(e,{currentContent:n,directionMap:i,undoStack:t.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},s.redo=function(e){if(!e.getAllowUndo())return e;var t=e.getRedoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),i=o.getDirectionMap(n,e.getDirectionMap());return s.set(e,{currentContent:n,directionMap:i,undoStack:e.getUndoStack().push(r),redoStack:t.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},a.getImmutable=function(){return this._immutable},s}();function m(e,t,n){return f.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function y(e,t){return e.getBlockMap().map((function(r){return n.generate(e,r,t)})).toOrderedMap()}function h(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}return jo=f}function Di(){if(zo)return Fo;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){t(e,n,r[n])}))}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zo=1;var n=Jo(),r=Xo(),o=ti(),i=ni(),a=hi(),l=Li(),s=ai(),c=Ai(),d=$o(),u=function(){if(Bo)return Uo;Bo=1;var e=ni(),t=fi(),n=$o(),r=oi(),o=n.OrderedMap,i=n.List,a=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,o){if(!o)return e;var l="after"===r,s=t.getKey(),c=n.getKey(),d=t.getParentKey(),u=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),f=n.getParentKey(),m=l?n.getNextSiblingKey():c,y=l?c:n.getPrevSiblingKey();return e.withMutations((function(e){a(d,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(s))})})),a(p,e,(function(e){return e.merge({nextSibling:u})})),a(u,e,(function(e){return e.merge({prevSibling:p})})),a(m,e,(function(e){return e.merge({prevSibling:s})})),a(y,e,(function(e){return e.merge({nextSibling:s})})),a(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(c),r=l?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,s),e.merge({children:i(o)})})),a(s,e,(function(e){return e.merge({nextSibling:m,prevSibling:y,parent:f})}))}))};return Uo=function(n,i,a,s){"replace"===s&&("production"!==process.env.NODE_ENV?r(!1,"Replacing blocks is not supported."):r(!1));var c=a.getKey(),d=i.getKey();d===c&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1));var u=n.getBlockMap(),p=i instanceof e,f=[i],m=u.delete(d);p&&(f=[],m=u.withMutations((function(e){var n=i.getNextSiblingKey(),r=t(i,e);e.toSeq().skipUntil((function(e){return e.getKey()===d})).takeWhile((function(e){var t=e.getKey(),o=t===d,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){f.push(t),e.delete(t.getKey())}))})));var y=m.toSeq().takeUntil((function(e){return e===a})),h=m.toSeq().skipUntil((function(e){return e===a})).skip(1),g=f.map((function(e){return[e.getKey(),e]})),E=o();if("before"===s){var _=n.getBlockBefore(c);_&&_.getKey()===i.getKey()&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),E=y.concat([].concat(g,[[c,a]]),h).toOrderedMap()}else if("after"===s){var b=n.getBlockAfter(c);b&&b.getKey()===d&&("production"!==process.env.NODE_ENV?r(!1,"Block cannot be moved next to itself."):r(!1)),E=y.concat([[c,a]].concat(g),h).toOrderedMap()}return n.merge({blockMap:l(E,i,a,s,p),selectionBefore:n.getSelectionAfter(),selectionAfter:n.getSelectionAfter().merge({anchorKey:d,focusKey:d})})}}(),p=c("draft_tree_data_support"),f=p?i:o,m=d.List,y=d.Repeat;return Fo={insertAtomicBlock:function(t,o,i){var c=t.getCurrentContent(),d=t.getSelection(),u=a.removeRange(c,d,"backward"),h=u.getSelectionAfter(),g=a.splitBlock(u,h),E=g.getSelectionAfter(),_=a.setBlockType(g,E,"atomic"),b=r.create({entity:o}),T={key:s(),type:"atomic",text:i,characterList:m(y(b,i.length))},A={key:s(),type:"unstyled"};p&&(T=e({},T,{nextSibling:A.key}),A=e({},A,{prevSibling:T.key}));var O=[new f(T),new f(A)],I=n.createFromArray(O),N=a.replaceWithFragment(_,E,I),v=N.merge({selectionBefore:d,selectionAfter:N.getSelectionAfter().set("hasFocus",!0)});return l.push(t,v,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),s=e.getSelection();if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=u(i,t,c,r)}else{var d=a.removeRange(i,n,"backward"),p=d.getSelectionAfter(),f=d.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())o=u(d,t,f,"before");else if(p.getEndOffset()===f.getLength())o=u(d,t,f,"after");else{var m=a.splitBlock(d,p),y=m.getSelectionAfter(),h=m.getBlockForKey(y.getFocusKey());o=u(m,t,h,"before")}}var g=o.merge({selectionBefore:s,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(e,g,"move-block")}}}function Ci(){if(Wo)return Yo;Wo=1;var e=$o().List;return Yo=function(){function t(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var n=t.prototype;return n.getDecorations=function(t,n){var r=Array(t.getText().length).fill(null);return this._decorators.forEach((function(e,o){var i=0;(0,e.strategy)(t,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(r,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(r,e,t,o+"."+i),i++)}),n)})),e(r)},n.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},n.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},t}()}function wi(){if(Go)return Ko;function e(e){return e.replace(/\//g,"-")}return Go=1,Ko=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")},Ko}function xi(){if(Ho)return Vo;Ho=1;var e=s,t=wi(),n=(0,$o().Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:e.createElement("ul",{className:t("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:e.createElement("ol",{className:t("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:e.createElement("pre",{className:t("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});return Vo=n}function Ri(){return Qo?qo:(Qo=1,qo={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}})}var ki,ji,Pi,Ui,Bi,Fi,zi,Yi,Wi,Ki,Gi,Vi,Hi,qi,Qi,Zi,$i,Ji,Xi,ea,ta,na,ra,oa,ia,aa,la,sa,ca,da,ua,pa,fa,ma,ya,ha,ga,Ea,_a,ba,Ta,Aa,Oa,Ia,Na,va,Sa,Ma,La,Da,Ca,wa,xa,Ra,ka,ja,Pa,Ua,Ba,Fa,za,Ya,Wa,Ka,Ga,Va,Ha,qa,Qa,Za,$a,Ja,Xa,el,tl,nl,rl,ol,il,al,ll,sl,cl,dl,ul,pl,fl,ml,yl,hl,gl,El,_l,bl,Tl,Al,Ol,Il,Nl,vl,Sl,Ml,Ll,Dl,Cl,wl,xl,Rl,kl,jl,Pl,Ul,Bl,Fl,zl,Yl,Wl,Kl,Gl,Vl={exports:{}},Hl=Vl.exports;function ql(){return ki||(ki=1,function(e,t){!function(n,r){var o="function",i="undefined",a="object",l="string",s="major",c="model",d="name",u="type",p="vendor",f="version",m="architecture",y="console",h="mobile",g="tablet",E="smarttv",_="wearable",b="embedded",T="Amazon",A="Apple",O="ASUS",I="BlackBerry",N="Browser",v="Chrome",S="Firefox",M="Google",L="Huawei",D="LG",C="Microsoft",w="Motorola",x="Opera",R="Samsung",k="Sharp",j="Sony",P="Xiaomi",U="Zebra",B="Facebook",F="Chromium OS",z="Mac OS",Y=" Browser",W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===l&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},H=function(e,t){for(var n,i,l,s,c,d,u=0;u<t.length&&!c;){var p=t[u],f=t[u+1];for(n=i=0;n<p.length&&!c&&p[n];)if(c=p[n++].exec(e))for(l=0;l<f.length;l++)d=c[++i],typeof(s=f[l])===a&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):r:this[s[0]]=d?s[1].call(this,d,s[2]):r:4===s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):r):this[s]=d||r;u+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(K(t[n][o],e))return"?"===n?r:n}else if(K(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,f],[/opios[\/ ]+([\w\.]+)/i],[f,[d,x+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[f,[d,x+" GX"]],[/\bopr\/([\w\.]+)/i],[f,[d,x]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[f,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,f],[/quark(?:pc)?\/([-\w\.]+)/i],[f,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[f,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[d,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[d,"Smart Lenovo "+N]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+N],f],[/\bfocus\/([\w\.]+)/i],[f,[d,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[d,x+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[d,x+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[d,"MIUI"+Y]],[/fxios\/([\w\.-]+)/i],[f,[d,S]],[/\bqihoobrowser\/?([\w\.]*)/i],[f,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],f],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+Y],f],[/samsungbrowser\/([\w\.]+)/i],[f,[d,R+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[f,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,f],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[f,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,B],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[d,v+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,v+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[d,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[f,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],f],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[d,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,[f,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,G]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[p,R],[u,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[p,R],[u,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[p,A],[u,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[p,A],[u,g]],[/(macintosh);/i],[c,[p,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[p,k],[u,h]],[/(?:honor)([-\w ]+)[;\)]/i],[c,[p,"Honor"],[u,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[p,L],[u,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[p,L],[u,h]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[c,/_/g," "],[p,P],[u,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[p,P],[u,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[p,"OPPO"],[u,h]],[/\b(opd2\d{3}a?) bui/i],[c,[p,"OPPO"],[u,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[p,"Vivo"],[u,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[p,"Realme"],[u,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[p,w],[u,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[p,w],[u,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[p,D],[u,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[p,D],[u,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[p,"Lenovo"],[u,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[p,"Nokia"],[u,h]],[/(pixel c)\b/i],[c,[p,M],[u,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[p,M],[u,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[p,j],[u,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[p,j],[u,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[p,"OnePlus"],[u,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[p,T],[u,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[p,T],[u,h]],[/(playbook);[-\w\),; ]+(rim)/i],[c,p,[u,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[p,I],[u,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[p,O],[u,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[p,O],[u,h]],[/(nexus 9)/i],[c,[p,"HTC"],[u,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[c,/_/g," "],[u,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[p,"TCL"],[u,g]],[/(itel) ((\w+))/i],[[p,G],c,[u,q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[p,"Acer"],[u,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[p,"Meizu"],[u,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[p,"Ulefone"],[u,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[p,"Energizer"],[u,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[p,"Cat"],[u,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[p,"Smartfren"],[u,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[p,"Nothing"],[u,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,c,[u,h]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,c,[u,g]],[/(surface duo)/i],[c,[p,C],[u,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[p,"Fairphone"],[u,h]],[/(u304aa)/i],[c,[p,"AT&T"],[u,h]],[/\bsie-(\w*)/i],[c,[p,"Siemens"],[u,h]],[/\b(rct\w+) b/i],[c,[p,"RCA"],[u,g]],[/\b(venue[\d ]{2,7}) b/i],[c,[p,"Dell"],[u,g]],[/\b(q(?:mv|ta)\w+) b/i],[c,[p,"Verizon"],[u,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[p,"Barnes & Noble"],[u,g]],[/\b(tm\d{3}\w+) b/i],[c,[p,"NuVision"],[u,g]],[/\b(k88) b/i],[c,[p,"ZTE"],[u,g]],[/\b(nx\d{3}j) b/i],[c,[p,"ZTE"],[u,h]],[/\b(gen\d{3}) b.+49h/i],[c,[p,"Swiss"],[u,h]],[/\b(zur\d{3}) b/i],[c,[p,"Swiss"],[u,g]],[/\b((zeki)?tb.*\b) b/i],[c,[p,"Zeki"],[u,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],c,[u,g]],[/\b(ns-?\w{0,9}) b/i],[c,[p,"Insignia"],[u,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[p,"NextBook"],[u,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],c,[u,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],c,[u,h]],[/\b(ph-1) /i],[c,[p,"Essential"],[u,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[p,"Envizen"],[u,g]],[/\b(trio[-\w\. ]+) b/i],[c,[p,"MachSpeed"],[u,g]],[/\btu_(1491) b/i],[c,[p,"Rotor"],[u,g]],[/(shield[\w ]+) b/i],[c,[p,"Nvidia"],[u,g]],[/(sprint) (\w+)/i],[p,c,[u,h]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[p,C],[u,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[p,U],[u,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[p,U],[u,h]],[/smart-tv.+(samsung)/i],[p,[u,E]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[p,R],[u,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,D],[u,E]],[/(apple) ?tv/i],[p,[c,A+" TV"],[u,E]],[/crkey/i],[[c,v+"cast"],[p,M],[u,E]],[/droid.+aft(\w+)( bui|\))/i],[c,[p,T],[u,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[p,k],[u,E]],[/(bravia[\w ]+)( bui|\))/i],[c,[p,j],[u,E]],[/(mitv-\w{5}) bui/i],[c,[p,P],[u,E]],[/Hbbtv.*(technisat) (.*);/i],[p,c,[u,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,V],[c,V],[u,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,c,[u,y]],[/droid.+; (shield) bui/i],[c,[p,"Nvidia"],[u,y]],[/(playstation [345portablevi]+)/i],[c,[p,j],[u,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[p,C],[u,y]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[c,[p,R],[u,_]],[/((pebble))app/i],[p,c,[u,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[p,A],[u,_]],[/droid.+; (glass) \d/i],[c,[p,M],[u,_]],[/droid.+; (wt63?0{2,3})\)/i],[c,[p,U],[u,_]],[/droid.+; (glass) \d/i],[c,[p,M],[u,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,c,[u,_]],[/; (quest( \d| pro)?)/i],[c,[p,B],[u,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[u,b]],[/(aeobc)\b/i],[c,[p,T],[u,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[u,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,h]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,f],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[f,q,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,q,Q],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,z],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,f],[/\(bb(10);/i],[f,[d,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[d,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[d,v+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,F],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,f],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,f]]},$=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof $))return new $(e,t).getResult();var y=typeof n!==i&&n.navigator?n.navigator:r,E=e||(y&&y.userAgent?y.userAgent:""),_=y&&y.userAgentData?y.userAgentData:r,b=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Z,t):Z,T=y&&y.userAgent==E;return this.getBrowser=function(){var e,t={};return t[d]=r,t[f]=r,H.call(t,E,b.browser),t[s]=typeof(e=t[f])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:r,T&&y&&y.brave&&typeof y.brave.isBrave==o&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[m]=r,H.call(e,E,b.cpu),e},this.getDevice=function(){var e={};return e[p]=r,e[c]=r,e[u]=r,H.call(e,E,b.device),T&&!e[u]&&_&&_.mobile&&(e[u]=h),T&&"Macintosh"==e[c]&&y&&typeof y.standalone!==i&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[c]="iPad",e[u]=g),e},this.getEngine=function(){var e={};return e[d]=r,e[f]=r,H.call(e,E,b.engine),e},this.getOS=function(){var e={};return e[d]=r,e[f]=r,H.call(e,E,b.os),T&&!e[d]&&_&&_.platform&&"Unknown"!=_.platform&&(e[d]=_.platform.replace(/chrome os/i,F).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return E},this.setUA=function(e){return E=typeof e===l&&e.length>500?V(e,500):e,this},this.setUA(E),this};$.VERSION="0.7.40",$.BROWSER=W([d,f,s]),$.CPU=W([m]),$.DEVICE=W([c,p,u,y,h,E,g,_,b]),$.ENGINE=$.OS=W([d,f]),e.exports&&(t=e.exports=$),t.UAParser=$;var J=typeof n!==i&&(n.jQuery||n.Zepto);if(J&&!J.ua){var X=new $;J.ua=X.getResult(),J.ua.get=function(){return X.getUA()},J.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var n in t)J.ua[n]=t[n]}}}("object"==typeof window?window:Hl)}(Vl,Vl.exports)),Vl.exports}function Ql(){if(Pi)return ji;Pi=1;var e=ql(),t="Unknown",n={"Mac OS":"Mac OS X"};var r,o=(new e).getResult(),i=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(o.browser.version),a={browserArchitecture:o.cpu.architecture||t,browserFullVersion:o.browser.version||t,browserMinorVersion:i.minor||t,browserName:o.browser.name||t,browserVersion:o.browser.major||t,deviceName:o.device.model||t,engineName:o.engine.name||t,engineVersion:o.engine.version||t,platformArchitecture:o.cpu.architecture||t,platformName:(r=o.os.name,n[r]||r||t),platformVersion:o.os.version||t,platformFullVersion:o.os.version||t};return ji=a}function Zl(){if(Bi)return Ui;Bi=1;var e=oi(),t=/\./,n=/\|\|/,r=/\s+\-\s+/,o=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,i=/^(\d*)(.*)/;function a(t,o){var i=t.split(n);return i.length>1?i.some((function(e){return g.contains(e,o)})):function(t,n){var o=t.split(r);if(o.length>0&&o.length<=2||("production"!==process.env.NODE_ENV?e(!1,'the "-" operator expects exactly 2 operands'):e(!1)),1===o.length)return l(o[0],n);var i=o[0],a=o[1];return p(i)&&p(a)||("production"!==process.env.NODE_ENV?e(!1,'operands to the "-" operator must be simple (no modifiers)'):e(!1)),l(">="+i,n)&&l("<="+a,n)}(t=i[0].trim(),o)}function l(e,n){if(""===(e=e.trim()))return!0;var r,o=n.split(t),i=d(e),a=i.modifier,l=i.rangeComponents;switch(a){case"<":return s(o,l);case"<=":return-1===(r=h(o,l))||0===r;case">=":return c(o,l);case">":return function(e,t){return 1===h(e,t)}(o,l);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);u(i)&&(r[o]=i+1+"");return c(e,n)&&s(e,r)}(o,l);default:return function(e,t){return 0===h(e,t)}(o,l)}}function s(e,t){return-1===h(e,t)}function c(e,t){var n=h(e,t);return 1===n||0===n}function d(n){var r=n.split(t),i=r[0].match(o);return i||("production"!==process.env.NODE_ENV?e(!1,"expected regex to match but it did not"):e(!1)),{modifier:i[1],rangeComponents:[i[2]].concat(r.slice(1))}}function u(e){return!isNaN(e)&&isFinite(e)}function p(e){return!d(e).modifier}function f(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function m(e,t){var n=e.match(i)[1],r=t.match(i)[1],o=parseInt(n,10),a=parseInt(r,10);return u(o)&&u(a)&&o!==a?y(o,a):y(e,t)}function y(t,n){return typeof t!=typeof n&&("production"!==process.env.NODE_ENV?e(!1,'"a" and "b" must be of the same type'):e(!1)),t>n?1:t<n?-1:0}function h(e,t){for(var n=function(e,t){f(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return f(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=m(r[i],o[i]);if(a)return a}return 0}var g={contains:function(e,t){return a(e.trim(),t.trim())}};return Ui=g}function $l(){if(Gi)return Ki;Gi=1;var e=Ql(),t=Zl(),n=function(){if(zi)return Fi;zi=1;var e=Object.prototype.hasOwnProperty;return Fi=function(t,n,r){if(!t)return null;var o={};for(var i in t)e.call(t,i)&&(o[i]=n.call(r,t[i],i,t));return o}}(),r=Wi?Yi:(Wi=1,Yi=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}});function o(e,n,r,o){if(e===r)return!0;if(!r.startsWith(e))return!1;var i=r.slice(e.length);return!!n&&(i=o?o(i):i,t.contains(i,n))}function i(t){return"Windows"===e.platformName?t.replace(/^\s*NT/,""):t}return Ki=n({isBrowser:function(t){return o(e.browserName,e.browserFullVersion,t)},isBrowserArchitecture:function(t){return o(e.browserArchitecture,null,t)},isDevice:function(t){return o(e.deviceName,null,t)},isEngine:function(t){return o(e.engineName,e.engineVersion,t)},isPlatform:function(t){return o(e.platformName,e.platformFullVersion,t,i)},isPlatformArchitecture:function(t){return o(e.platformArchitecture,null,t)}},r)}function Jl(){if(Hi)return Vi;return Hi=1,Vi=function(e){return e&&e.ownerDocument?e.ownerDocument:document}}function Xl(){if(Qi)return qi;return Qi=1,qi=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}}function es(){if($i)return Zi;$i=1;var e=Xl();return Zi=function t(n){if(e(n)){var r=n,o=r.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<r.childNodes.length;i++){var a=t(r.childNodes[i]);if(a)return a}}return null},Zi}function ts(){if(Xi)return Ji;Xi=1;var e=Jl(),t=es();return Ji=function(n){for(var r=n;r&&r!==e(n).documentElement;){var o=t(r);if(null!=o)return o;r=r.parentNode}return null}}function ns(){if(ta)return ea;return ta=1,ea=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}}function rs(){if(ia)return oa;ia=1;var e="-";return oa={encode:function(t,n,r){return t+e+n+e+r},decode:function(t){var n=t.split(e).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(e),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}}}function os(){return la?aa:(la=1,aa={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105})}function is(){return ca?sa:(ca=1,sa={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}})}function as(){if(ua)return da;return ua=1,da=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}}function ls(){if(fa)return pa;fa=1;var e=oi(),t=as();return pa=function(n){var r=n.editorContainer;return r||("production"!==process.env.NODE_ENV?e(!1,"Missing editorNode"):e(!1)),t(r.firstChild)||("production"!==process.env.NODE_ENV?e(!1,"editorNode.firstChild is not an HTMLElement"):e(!1)),r.firstChild}}function ss(){if(ya)return ma;ya=1;var e=rs(),t=Si();return ma=function(n,r,o,i,a){var l=t(n.getSelection());if(!r||!i)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var s=e.decode(r),c=s.blockKey,d=n.getBlockTree(c),u=d&&d.getIn([s.decoratorKey,"leaves",s.leafKey]),p=e.decode(i),f=p.blockKey,m=n.getBlockTree(f),y=m&&m.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!u||!y)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,n.toJS()),l;var h=u.get("start"),g=y.get("start"),E=u?h+o:null,_=y?g+a:null;if(l.getAnchorKey()===c&&l.getAnchorOffset()===E&&l.getFocusKey()===f&&l.getFocusOffset()===_)return l;var b=!1;if(c===f){var T=u.get("end"),A=y.get("end");b=g===h&&A===T?a<o:g<h}else{b=n.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===c||e===f})).first()===f}return l.merge({anchorKey:c,anchorOffset:E,focusKey:f,focusOffset:_,isBackward:b})},ma}function cs(){if(ga)return ha;ga=1;var e=ts(),t=es(),n=ss(),r=oi(),o=Xl(),i=Si();function a(n,a,s){var c=a,d=e(c);(null!=d||n&&(n===c||n.firstChild===c)||("production"!==process.env.NODE_ENV?r(!1,"Unknown node in selection range."):r(!1)),n===c)&&(c=c.firstChild,o(c)||("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents node."):r(!1)),"true"!==(c=c).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?r(!1,"Invalid DraftEditorContents structure."):r(!1)),s>0&&(s=c.childNodes.length));if(0===s){var u=null;if(null!=d)u=d;else{var p=function(e){for(;e.firstChild&&(o(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||t(e.firstChild));)e=e.firstChild;return e}(c);u=i(t(p))}return{key:u,offset:0}}var f=c.childNodes[s-1],m=null,y=null;if(t(f)){var h=function(e){for(;e.lastChild&&(o(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||t(e.lastChild));)e=e.lastChild;return e}(f);m=i(t(h)),y=l(h)}else m=i(d),y=l(f);return{key:m,offset:y}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}return ha=function(t,r,o,l,s,c){var d=o.nodeType===Node.TEXT_NODE,u=s.nodeType===Node.TEXT_NODE;if(d&&u)return{selectionState:n(t,i(e(o)),l,i(e(s)),c),needsRecovery:!1};var p=null,f=null,m=!0;return d?(p={key:i(e(o)),offset:l},f=a(r,s,c)):u?(f={key:i(e(s)),offset:c},p=a(r,o,l)):(p=a(r,o,l),f=a(r,s,c),o===s&&l===c&&(m=!!o.firstChild&&"BR"!==o.firstChild.nodeName)),{selectionState:n(t,p.key,p.offset,f.key,f.offset),needsRecovery:m}}}function ds(){if(_a)return Ea;_a=1;var e=cs();return Ea=function(t,n){var r=n.ownerDocument.defaultView.getSelection(),o=r.anchorNode,i=r.anchorOffset,a=r.focusNode,l=r.focusOffset;return 0===r.rangeCount||null==o||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:e(t,n,o,i,a,l)}}function us(){if(Ta)return ba;Ta=1;var e=is(),t=Li(),n=ls(),r=ds();return ba=function(o){if(o._blockSelectEvents||o._latestEditorState!==o.props.editorState){if(o._blockSelectEvents){var i=o.props.editorState.getSelection();e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(i.toJS())})}}else{var a=o.props.editorState,l=r(a,n(o)),s=l.selectionState;s!==a.getSelection()&&(a=l.needsRecovery?t.forceSelection(a,s):t.acceptSelection(a,s),o.update(a))}}}function ps(){if(Oa)return Aa;return Oa=1,Aa={notEmptyKey:function(e){return null!=e&&""!=e}}}function fs(){if(Na)return Ia;Na=1;var e=ps().notEmptyKey;function t(t,n){return e(n)&&"MUTABLE"===t.__get(n).getMutability()?n:null}return Ia=function(e,n){var r;if(n.isCollapsed()){var o=n.getAnchorKey(),i=n.getAnchorOffset();return i>0?(r=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:t(e.getEntityMap(),r):null}var a=n.getStartKey(),l=n.getStartOffset(),s=e.getBlockForKey(a);return r=l===s.getLength()?null:s.getEntityAt(l),t(e.getEntityMap(),r)}}function ms(){if(Sa)return va;Sa=1;var e=function(){if(ra)return na;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ra=1;var t=$l(),n=ts(),r=ns(),o=$o(),i=oi(),a=Si(),l=o.Map,s={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},c=t.isBrowser("IE <= 11");return na=function(){function t(t){var n=this;e(this,"observer",void 0),e(this,"container",void 0),e(this,"mutations",void 0),e(this,"onCharData",void 0),this.container=t,this.mutations=l();var o=r(t);o.MutationObserver&&!c?this.observer=new o.MutationObserver((function(e){return n.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?i(!1,"Expected target to be an instance of Node"):i(!1)),n.registerMutation({type:"characterData",target:e.target})}}var o=t.prototype;return o.start=function(){this.observer?this.observer.observe(this.container,s):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},o.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},o.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},o.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return c?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},o.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var r=a(n(e.target));this.mutations=this.mutations.set(r,t)}},t}()}(),t=hi(),n=rs(),r=Li(),o=os(),i=$l(),a=us(),l=ls(),s=ds(),c=fs(),d=Si(),u=i.isBrowser("IE"),p=!1,f=!1,m=null;var y={onCompositionStart:function(t){f=!0,function(t){m||(m=new e(l(t))).start()}(t)},onCompositionEnd:function(e){p=!1,f=!1,setTimeout((function(){p||y.resolveComposition(e)}),20)},onSelect:a,onKeyDown:function(e,t){if(!f)return y.resolveComposition(e),void e._onKeyDown(t);t.which!==o.RIGHT&&t.which!==o.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===o.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!f){var o=d(m).stopAndFlushMutations();m=null,p=!0;var i=r.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),o.size){var a=i.getCurrentContent();o.forEach((function(e,o){var l=n.decode(o),s=l.blockKey,d=l.decoratorKey,u=l.leafKey,p=i.getBlockTree(s).getIn([d,"leaves",u]),f=p.start,m=p.end,y=i.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:f,focusOffset:m,isBackward:!1}),h=c(a,y),g=a.getBlockForKey(s).getInlineStyleAt(f);a=t.replaceText(a,y,e,g,h),i=r.set(i,{currentContent:a})}));var y=s(i,l(e)).selectionState;e.restoreEditorDOM();var h=u?r.forceSelection(i,y):r.acceptSelection(i,y);e.update(r.push(h,a,"insert-characters"))}else e.update(i)}}};return va=y}function ys(){if(La)return Ma;La=1;var e=Lt();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=rs(),r=s,o=vi(),i=Ni(),a=function(e){var a,l;function s(){return e.apply(this,arguments)||this}return l=e,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l,s.prototype.render=function(){var e=this.props,a=e.block,l=e.children,s=e.contentState,c=e.decorator,d=e.decoratorKey,u=e.direction,p=e.leafSet,f=e.text,m=a.getKey(),y=p.get("leaves"),h=c.getComponentForKey(d),g=c.getPropsForKey(d),E=n.encode(m,parseInt(d,10),0),_=f.slice(y.first().get("start"),y.last().get("end")),b=i.getHTMLDirIfDifferent(o.getDirection(_),u);return r.createElement(h,t({},g,{contentState:s,decoratedText:_,dir:b,key:E,entityKey:a.getEntityAt(p.get("start")),offsetKey:E}),l)},s}(r.Component);return Ma=a}function hs(){if(Ca)return Da;function e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ca=1;var n=s,r=$l(),o=oi(),i=Xl(),a=r.isBrowser("IE <= 11");var l=function(r){var l,s;function c(n){var o;return t(e(o=r.call(this,n)||this),"_forceFlag",void 0),t(e(o),"_node",void 0),o._forceFlag=!1,o}s=r,(l=c).prototype=Object.create(s.prototype),l.prototype.constructor=l,l.__proto__=s;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;i(t)||("production"!==process.env.NODE_ENV?o(!1,"node is not an Element"):o(!1));var r=t;return n?!function(e){return a?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},d.componentDidMount=function(){this._forceFlag=!this._forceFlag},d.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},d.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},a?n.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):n.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return a?n.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):n.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):n.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},c}(n.Component);return Da=l}function gs(){if(xa)return wa;xa=1;var e=Xl();return wa=function(t){return!(!t||!t.ownerDocument)&&(e(t)&&"BR"===t.nodeName)}}function Es(){return ka?Ra:(ka=1,Ra={initODS:function(){},handleExtensionCausedError:function(){}})}function _s(){if(Ba)return Ua;Ba=1;var e=Pa?ja:(Pa=1,ja=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))});return Ua=function(t){return e(t)&&3==t.nodeType}}function bs(){if(za)return Fa;za=1;var e=_s();return Fa=function t(n,r){return!(!n||!r)&&(n===r||!e(n)&&(e(r)?t(n,r.parentNode):"contains"in n?n.contains(r):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(r))))},Fa}function Ts(){if(Wa)return Ya;return Wa=1,Ya=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}}function As(){if(Ga)return Ka;Ga=1;var e=Es(),t=is(),n=$l(),r=bs(),o=Ts(),i=Jl(),a=oi(),l=Xl(),s=n.isBrowser("IE");function c(e,t){if(!e)return"[empty]";var n=d(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||("production"!==process.env.NODE_ENV?a(!1,"Node must be an Element if it is not a text node."):a(!1)),n.outerHTML)}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return i(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,l=0;l<a.length;l++)o.appendChild(d(a[l],t));return o}function u(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return c(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function p(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function f(e,n,i,a){var l=o();if(e.extend&&null!=n&&r(l,n)){i>p(n)&&t.logSelectionStateFailure({anonymizedDom:u(n),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(a.toJS())});var s=n===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(n,i)}catch(r){throw t.logSelectionStateFailure({anonymizedDom:u(n,(function(t){var n=[];return t===l&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:l?l.nodeName:null,nodeIsFocus:n===e.focusNode,nodeWasFocus:s,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:r?""+r:null,offset:i},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),r}}else if(n&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(n,i),e.addRange(c.cloneRange())}}function m(n,r,o,a){var l=i(r).createRange();if(o>p(r)&&(t.logSelectionStateFailure({anonymizedDom:u(r),extraParams:JSON.stringify({offset:o}),selectionState:JSON.stringify(a.toJS())}),e.handleExtensionCausedError()),l.setStart(r,o),s)try{n.addRange(l)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else n.addRange(l)}return Ka={setDraftEditorSelection:function(e,t,n,o,a){var l=i(t);if(r(l.documentElement,t)){var s=l.defaultView.getSelection(),c=e.getAnchorKey(),d=e.getAnchorOffset(),u=e.getFocusKey(),p=e.getFocusOffset(),y=e.getIsBackward();if(!s.extend&&y){var h=c,g=d;c=u,d=p,u=h,p=g,y=!1}var E=c===n&&o<=d&&a>=d,_=u===n&&o<=p&&a>=p;if(E&&_)return s.removeAllRanges(),m(s,t,d-o,e),void f(s,t,p-o,e);if(y){if(_&&(s.removeAllRanges(),m(s,t,p-o,e)),E){var b=s.focusNode,T=s.focusOffset;s.removeAllRanges(),m(s,t,d-o,e),f(s,b,T,e)}}else E&&(s.removeAllRanges(),m(s,t,d-o,e)),_&&f(s,t,p-o,e)}},addFocusToSelection:f}}function Os(){if(Ha)return Va;Ha=1;var e=Lt();var t=hs(),n=s,r=oi(),o=gs(),i=As().setDraftEditorSelection,a=function(a){var l,s;function c(){for(var e,t,n,r,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return e=a.call.apply(a,[this].concat(i))||this,t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),r=void 0,(n="leaf")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}s=a,(l=c).prototype=Object.create(s.prototype),l.prototype.constructor=l,l.__proto__=s;var d=c.prototype;return d._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,a=t.start,l=t.text,s=n.getKey(),c=a+l.length;if(e.hasEdgeWithin(s,a,c)){var d=this.leaf;d||("production"!==process.env.NODE_ENV?r(!1,"Missing node"):r(!1));var u,p=d.firstChild;p||("production"!==process.env.NODE_ENV?r(!1,"Missing child"):r(!1)),p.nodeType===Node.TEXT_NODE?u=p:o(p)?u=d:(u=p.firstChild)||("production"!==process.env.NODE_ENV?r(!1,"Missing targetNode"):r(!1)),i(e,u,s,a,c)}}},d.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?r(!1,"Missing leafNode"):r(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},d.componentDidUpdate=function(){this._setSelection()},d.componentDidMount=function(){this._setSelection()},d.render=function(){var r=this,o=this.props.block,i=this.props.text;i.endsWith("\n")&&this.props.isLast&&(i+="\n");var a=this.props,l=a.customStyleMap,s=a.customStyleFn,c=a.offsetKey,d=a.styleSet,u=d.reduce((function(t,n){var r={},o=l[n];return void 0!==o&&t.textDecoration!==o.textDecoration&&(r.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),e(t,o,r)}),{});if(s){var p=s(d,o);u=e(u,p)}return n.createElement("span",{"data-offset-key":c,ref:function(e){return r.leaf=e},style:u},n.createElement(t,null,i))},c}(n.Component);return Va=a}function Is(){if(Qa)return qa;Qa=1;var e=ys(),t=Os(),n=rs(),r=$o(),o=s,i=wi();r.List;var a=function(r){var a,l;function s(){return r.apply(this,arguments)||this}return l=r,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l,s.prototype.render=function(){var r=this.props,a=r.block,l=r.contentState,s=r.customStyleFn,c=r.customStyleMap,d=r.decorator,u=r.direction,p=r.forceSelection,f=r.hasSelection,m=r.selection,y=r.tree,h=a.getKey(),g=a.getText(),E=y.size-1,_=this.props.children||y.map((function(r,i){var y=r.get("decoratorKey"),_=r.get("leaves"),b=_.size-1,T=_.map((function(e,r){var l=n.encode(h,i,r),d=e.get("start"),u=e.get("end");return o.createElement(t,{key:l,offsetKey:l,block:a,start:d,selection:f?m:null,forceSelection:p,text:g.slice(d,u),styleSet:a.getInlineStyleAt(d),customStyleMap:c,customStyleFn:s,isLast:y===E&&r===b})})).toArray();return y&&d?o.createElement(e,{block:a,children:T,contentState:l,decorator:d,decoratorKey:y,direction:u,leafSet:r,text:g,key:i}):T})).toArray();return o.createElement("div",{"data-offset-key":n.encode(h,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===u,"public/DraftStyleDefault/rtl":"RTL"===u})},_)},s}(o.Component);return qa=a}function Ns(){if($a)return Za;function e(e,t){return!!t&&(e===t.documentElement||e===t.body)}return $a=1,Za={getTop:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}}}function vs(){if(rl)return nl;rl=1;var e=function(){if(Xa)return Ja;Xa=1;var e=/-(.)/g;return Ja=function(t){return t.replace(e,(function(e,t){return t.toUpperCase()}))}}(),t=function(){if(tl)return el;tl=1;var e=/([A-Z])/g;return el=function(t){return t.replace(e,"-$1").toLowerCase()}}();function n(e){return null==e?e:String(e)}return nl=function(r,o){var i;if(window.getComputedStyle&&(i=window.getComputedStyle(r,null)))return n(i.getPropertyValue(t(o)));if(document.defaultView&&document.defaultView.getComputedStyle){if(i=document.defaultView.getComputedStyle(r,null))return n(i.getPropertyValue(t(o)));if("display"===o)return"none"}return r.currentStyle?n("float"===o?r.currentStyle.cssFloat||r.currentStyle.styleFloat:r.currentStyle[e(o)]):n(r.style&&r.style[e(o)])}}function Ss(){if(il)return ol;function e(e,n){var r=t.get(e,n);return"auto"===r||"scroll"===r}il=1;var t={get:vs(),getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(e(t,"overflow")||e(t,"overflowY")||e(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}};return ol=t}function Ms(){if(cl)return sl;cl=1;var e=function(){if(ll)return al;ll=1;var e=bs();return al=function(t){var n=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!e(n,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-n.clientLeft,right:Math.round(r.right)-n.clientLeft,top:Math.round(r.top)-n.clientTop,bottom:Math.round(r.bottom)-n.clientTop}}}();return sl=function(t){var n=e(t);return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}}function Ls(){if(yl)return ml;yl=1;var e=function(){if(ul)return dl;ul=1;var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;return dl=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}}(),t=fl?pl:(fl=1,pl=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}});return ml=function(n){var r=e(n.ownerDocument||n.document);n.Window&&n instanceof n.Window&&(n=r);var o=t(n),i=n===r?n.ownerDocument.documentElement:n,a=n.scrollWidth-i.clientWidth,l=n.scrollHeight-i.clientHeight;return o.x=Math.max(0,Math.min(o.x,a)),o.y=Math.max(0,Math.min(o.y,l)),o}}function Ds(){if(gl)return hl;function e(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function t(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||t()}}return gl=1,n.withoutScrollbars=function(){return{width:e(),height:t()}},hl=n}function Cs(){if(_l)return El;_l=1;var e=Lt();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Is(),i=rs(),a=s,l=Ns(),c=Ss(),d=Ms(),u=Ls(),p=Ds(),f=$o(),m=oi(),y=as();f.List;var h=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},g=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},E=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},_=function(e,t,r,o,i,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},s=o(e);return s&&(l.className=s),void 0!==i.customEditable&&(l=n({},l,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),l},b=function(e){var s,f;function b(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(o))||this),"wrapperRef",a.createRef()),t}f=e,(s=b).prototype=Object.create(f.prototype),s.prototype.constructor=s,s.__proto__=f;var T=b.prototype;return T.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||h(e.selection,e.block.getKey())&&e.forceSelection;return i||a},T.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=c.getScrollParent(n),i=u(o);if(o===window){var a=d(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{y(n)||("production"!==process.env.NODE_ENV?m(!1,"blockNode is not an HTMLElement"):m(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},T.render=function(){var e=this,r=this.props,l=r.block,s=r.blockRenderMap,c=r.blockRendererFn,d=r.blockStyleFn,u=r.contentState,p=r.decorator,f=r.editorKey,m=r.editorState,y=r.customStyleFn,T=r.customStyleMap,A=r.direction,O=r.forceSelection,I=r.selection,N=r.tree,v=null;l.children.size&&(v=l.children.reduce((function(t,r){var o=i.encode(r,0,0),l=u.getBlockForKey(r),p=E(l,c),y=p.CustomComponent||b,h=g(l,s),T=h.Element,A=h.wrapperTemplate,O=_(l,f,o,d,p,null),I=n({},e.props,{tree:m.getBlockTree(r),blockProps:p.customProps,offsetKey:o,block:l});return t.push(a.createElement(T,O,a.createElement(y,I))),!A||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(l,u)||function(e,t,n){var r=[],o=!0,l=!1,s=void 0;try{for(var c,d=n.reverse()[Symbol.iterator]();!(o=(c=d.next()).done);o=!0){var u=c.value;if(u.type!==t)break;r.push(u)}}catch(e){l=!0,s=e}finally{try{o||null==d.return||d.return()}finally{if(l)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),f=p[0].key;n.push(a.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":i.encode(f,0,0)},p))}(A,T,t),t}),[]));var S=l.getKey(),M=i.encode(S,0,0),L=E(l,c),D=L.CustomComponent,C=null!=D?a.createElement(D,t({},this.props,{tree:m.getBlockTree(S),blockProps:L.customProps,offsetKey:M,block:l})):a.createElement(o,{block:l,children:v,contentState:u,customStyleFn:y,customStyleMap:T,decorator:p,direction:A,forceSelection:O,hasSelection:h(I,S),selection:I,tree:N});if(l.getParentKey())return C;var w=g(l,s).Element,x=_(l,f,M,d,L,this.wrapperRef);return a.createElement(w,x,C)},b}(a.Component);return El=b}function ws(){if(Tl)return bl;Tl=1;var e=Lt();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=Cs(),r=rs(),o=s,i=Si(),a=function(e){var a,l;function s(){return e.apply(this,arguments)||this}l=e,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l;var c=s.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,a=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,c=e.customStyleMap,d=e.customStyleFn,u=e.editorState,p=e.editorKey,f=e.textDirectionality,m=u.getCurrentContent(),y=u.getSelection(),h=u.mustForceSelection(),g=u.getDecorator(),E=i(u.getDirectionMap()),_=[],b=m.getBlocksAsArray()[0];b;){var T=b.getKey(),A={blockRenderMap:a,blockRendererFn:l,blockStyleFn:s,contentState:m,customStyleFn:d,customStyleMap:c,decorator:g,editorKey:p,editorState:u,forceSelection:h,selection:y,block:b,direction:f||E.get(T),tree:u.getBlockTree(T)},O=(a.get(b.getType())||a.get("unstyled")).wrapper;_.push({block:o.createElement(n,t({key:T},A)),wrapperTemplate:O,key:T,offsetKey:r.encode(T,0,0)});var I=b.getNextSiblingKey();b=I?m.getBlockForKey(I):null}for(var N=[],v=0;v<_.length;){var S=_[v];if(S.wrapperTemplate){var M=[];do{M.push(_[v].block),v++}while(v<_.length&&_[v].wrapperTemplate===S.wrapperTemplate);var L=o.cloneElement(S.wrapperTemplate,{key:S.key+"-wrap","data-offset-key":S.offsetKey},M);N.push(L)}else N.push(S.block),v++}return o.createElement("div",{"data-contents":"true"},N)},s}(o.Component);return bl=a}function xs(){if(Ol)return Al;Ol=1;var e=Lt();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=Os(),r=rs(),o=s,i=Ns(),a=Ss(),l=vi(),c=Ni(),d=wi(),u=Ms(),p=Ls(),f=Ds(),m=oi(),y=as(),h=Si(),g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},E=function(e){var s,E;function _(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}E=e,(s=_).prototype=Object.create(E.prototype),s.prototype.constructor=s,s.__proto__=E;var b=_.prototype;return b.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection},b.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=a.getScrollParent(n),l=p(o);if(o===window){var s=u(n);(r=s.y+s.height-f().height)>0&&window.scrollTo(l.x,l.y+r+10)}else{y(n)||("production"!==process.env.NODE_ENV?m(!1,"blockNode is not an HTMLElement"):m(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+l.y))>0&&i.setTop(o,i.getTop(o)+r+10)}}}}},b._renderChildren=function(){var e=this,i=this.props.block,a=i.getKey(),s=i.getText(),d=this.props.tree.size-1,u=g(this.props.selection,a);return this.props.tree.map((function(p,f){var m=p.get("leaves");if(0===m.size)return null;var y=m.size-1,g=m.map((function(t,l){var c=r.encode(a,f,l),p=t.get("start"),m=t.get("end");return o.createElement(n,{key:c,offsetKey:c,block:i,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:s.slice(p,m),styleSet:i.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===d&&l===y})})).toArray(),E=p.get("decoratorKey");if(null==E)return g;if(!e.props.decorator)return g;var _=h(e.props.decorator),b=_.getComponentForKey(E);if(!b)return g;var T=_.getPropsForKey(E),A=r.encode(a,f,0),O=m.first().get("start"),I=m.last().get("end"),N=s.slice(O,I),v=i.getEntityAt(p.get("start")),S=c.getHTMLDirIfDifferent(l.getDirection(N),e.props.direction),M={contentState:e.props.contentState,decoratedText:N,dir:S,start:O,end:I,blockKey:a,entityKey:v,offsetKey:A};return o.createElement(b,t({},T,M,{key:A}),g)})).toArray()},b.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return o.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},_}(o.Component);return Al=E}function Rs(){if(Sl)return vl;Sl=1;var e=Lt();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=xs(),i=rs(),a=s,l=wi(),c=(Nl||(Nl=1,Il=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),Il),d=Si(),u=function(e,t,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},p=function(e){var r,l;function s(){return e.apply(this,arguments)||this}l=e,(r=s).prototype=Object.create(l.prototype),r.prototype.constructor=r,r.__proto__=l;var p=s.prototype;return p.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},p.render=function(){for(var e=this.props,r=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,p=e.customStyleMap,f=e.customStyleFn,m=e.editorState,y=e.editorKey,h=e.preventScroll,g=e.textDirectionality,E=m.getCurrentContent(),_=m.getSelection(),b=m.mustForceSelection(),T=m.getDecorator(),A=d(m.getDirectionMap()),O=E.getBlocksAsArray(),I=[],N=null,v=null,S=0;S<O.length;S++){var M=O[S],L=M.getKey(),D=M.getType(),C=l(M),w=void 0,x=void 0,R=void 0;C&&(w=C.component,x=C.props,R=C.editable);var k=g||A.get(L),j=i.encode(L,0,0),P={contentState:E,block:M,blockProps:x,blockStyleFn:s,customStyleMap:p,customStyleFn:f,decorator:T,direction:k,forceSelection:b,offsetKey:j,preventScroll:h,selection:_,tree:m.getBlockTree(L)},U=r.get(D)||r.get("unstyled"),B=U.wrapper,F=U.element||r.get("unstyled").element,z=M.getDepth(),Y="";if(s&&(Y=s(M)),"li"===F)Y=c(Y,u(D,z,v!==B||null===N||z>N,k));var W=w||o,K={className:Y,"data-block":!0,"data-editor":y,"data-offset-key":j,key:L};void 0!==R&&(K=n({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var G=a.createElement(F,K,a.createElement(W,t({},P,{key:L})));I.push({block:G,wrapperTemplate:B,key:L,offsetKey:j}),N=B?M.getDepth():null,v=B}for(var V=[],H=0;H<I.length;){var q=I[H];if(q.wrapperTemplate){var Q=[];do{Q.push(I[H].block),H++}while(H<I.length&&I[H].wrapperTemplate===q.wrapperTemplate);var Z=a.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},Q);V.push(Z)}else V.push(q.block),H++}return a.createElement("div",{"data-contents":"true"},V)},s}(a.Component);return vl=p}function ks(){if(xl)return wl;xl=1;var e=oi();return wl=function(t){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(t)?Array.isArray(t)?t.slice():function(t){var n=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Array-like object expected"):e(!1)),"number"!=typeof n&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Object needs a length property"):e(!1)),0===n||n-1 in t||("production"!==process.env.NODE_ENV?e(!1,"toArray: Object should have keys for indices"):e(!1)),"function"==typeof t.callee&&("production"!==process.env.NODE_ENV?e(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):e(!1)),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(e){}for(var r=Array(n),o=0;o<n;o++)r[o]=t[o];return r}(t):[t]}}function js(){if(kl)return Rl;function e(e){return function(){return e}}kl=1;var t=function(){};return t.thatReturns=e,t.thatReturnsFalse=e(!1),t.thatReturnsTrue=e(!0),t.thatReturnsNull=e(null),t.thatReturnsThis=function(){return this},t.thatReturnsArgument=function(e){return e},Rl=t}function Ps(){if(Pl)return jl;Pl=1;var e=function(){if(Cl)return Dl;Cl=1;var e={isImage:function(e){return"image"===t(e)[0]},isJpeg:function(n){var r=t(n);return e.isImage(n)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function t(e){return e.split("/")}return Dl=e}(),t=ks(),n=js(),r=new RegExp("\r\n","g"),o={"text/rtf":1,"text/html":1};function i(e){if("file"==e.kind)return e.getAsFile()}return jl=function(){function a(e){this.data=e,this.types=e.types?t(e.types):[]}var l=a.prototype;return l.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return o[e]}))},l.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(r,"\n"):null},l.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},l.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},l.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},l.isImage=function(){var t=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(t)return!0;for(var n=this.getFiles(),r=0;r<n.length;r++){var o=n[r].type;if(!e.isImage(o))return!1}return!0},l.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},l.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(i).filter(n.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},l.hasFiles=function(){return this.getFiles().length>0},a}()}function Us(){if(Bl)return Ul;Bl=1;var e=oi(),t=/\.textClipping$/,n={"text/plain":!0,"text/html":!0,"text/rtf":!0};return Ul=function(r,o){var i=0,a=[];r.forEach((function(l){!function(r,o){if(!at.FileReader||r.type&&!(r.type in n))return void o("");if(""===r.type){var i="";return t.test(r.name)&&(i=r.name.replace(t,"")),void o(i)}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&("production"!==process.env.NODE_ENV?e(!1,'We should be calling "FileReader.readAsText" which returns a string'):e(!1)),o(t)},a.onerror=function(){o("")},a.readAsText(r)}(l,(function(e){i++,e&&a.push(e.slice(0,5e3)),i==r.length&&o(a.join("\r"))}))}))}}function Bs(){if(zl)return Fl;return zl=1,Fl=function(e){return"handled"===e||!0===e}}function Fs(){if(Wl)return Yl;Wl=1;var e=Ps(),t=hi(),n=Li(),r=ts(),o=Jl(),i=Us(),a=ss(),l=ns(),s=Bs(),c=Si();function d(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function u(e,r,o){var i=t.insertText(e.getCurrentContent(),r,o,e.getCurrentInlineStyle());return n.push(e,i,"insert-fragment")}return Yl={onDragEnd:function(e){e.exitCurrentMode(),d(e)},onDrop:function(l,p){var f=new e(p.nativeEvent.dataTransfer),m=l._latestEditorState,y=function(e,t){var n=null,i=null,l=o(e.currentTarget);if("function"==typeof l.caretRangeFromPoint){var s=l.caretRangeFromPoint(e.x,e.y);n=s.startContainer,i=s.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,i=e.rangeOffset}n=c(n),i=c(i);var d=c(r(n));return a(t,d,i,d,i)}(p.nativeEvent,m);if(p.preventDefault(),l._dragCount=0,l.exitCurrentMode(),null!=y){var h=f.getFiles();if(h.length>0){if(l.props.handleDroppedFiles&&s(l.props.handleDroppedFiles(y,h)))return;i(h,(function(e){e&&l.update(u(m,y,e))}))}else{var g=l._internalDrag?"internal":"external";l.props.handleDrop&&s(l.props.handleDrop(y,f,g))||(l._internalDrag?l.update(function(e,r){var o=t.moveText(e.getCurrentContent(),e.getSelection(),r);return n.push(e,o,"insert-fragment")}(m,y)):l.update(u(m,y,f.getText()))),d(l)}}}}}var zs,Ys,Ws,Ks,Gs,Vs,Hs,qs,Qs,Zs,$s,Js,Xs,ec,tc,nc,rc,oc,ic,ac,lc,sc,cc,dc,uc,pc,fc,mc,yc,hc,gc,Ec,_c,bc,Tc,Ac,Oc,Ic,Nc,vc,Sc,Mc,Lc,Dc,Cc,wc,xc,Rc,kc,jc,Pc,Uc,Bc,Fc,zc,Yc,Wc,Kc,Gc,Vc,Hc,qc,Qc,Zc,$c,Jc,Xc,ed,td,nd,rd,od,id,ad,ld,sd,cd,dd,ud,pd,fd,md,yd,hd,gd,Ed,_d,bd,Td,Ad,Od,Id,Nd,vd,Sd,Md,Ld,Dd,Cd,wd,xd,Rd={};function kd(){return Ws?Ys:(Ws=1,zs||(zs=1,function(e){if(!e.setImmediate){var t,n,r,o,i,a=1,l={},s=!1,c=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},t=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,t=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(p,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:e,args:n};return l[a]=o,t(a),a++},d.clearImmediate=u}function u(e){delete l[e]}function p(e){if(s)setTimeout(p,0,e);else{var t=l[e];if(t){s=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{u(e),s=!1}}}}}("undefined"==typeof self?void 0===at?Rd:at:self)),Ys=at.setImmediate)}function jd(){if(Gs)return Ks;Gs=1;var e=hi(),t=Li(),n=$l(),r=fs(),o=Bs(),i=Gl?Kl:(Gl=1,Kl=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}),a=Si(),l=kd(),s=n.isBrowser("Firefox");function c(n,r,o,i,a){var l=e.replaceText(n.getCurrentContent(),n.getSelection(),r,o,i);return t.push(n,l,"insert-characters",a)}return Ks=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var d=e._latestEditorState,u=n.data;if(u)if(e.props.handleBeforeInput&&o(e.props.handleBeforeInput(u,d,n.timeStamp)))n.preventDefault();else{var p=d.getSelection(),f=p.getStartOffset(),m=p.getAnchorKey();if(!p.isCollapsed())return n.preventDefault(),void e.update(c(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!0));var y,h=c(d,u,d.getCurrentInlineStyle(),r(d.getCurrentContent(),d.getSelection()),!1),g=!1;if(g||(g=i(e._latestCommittedEditorState)),!g){var E=d.getBlockTree(m),_=h.getBlockTree(m);g=E.size!==_.size||E.zip(_).some((function(e){var t=e[0],n=e[1],r=t.get("start"),o=r+(r>=f?u.length:0),i=t.get("end"),a=i+(i>=f?u.length:0),l=n.get("start"),s=n.get("end"),c=n.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==n.get("leaves").size||o!==l||a!==s||null!=c&&s-l!==i-r}))}if(g||(y=u,g=s&&("'"==y||"/"==y)),g||(g=a(h.getDirectionMap()).get(m)!==a(d.getDirectionMap()).get(m)),g)return n.preventDefault(),h=t.set(h,{forceSelection:!0}),void e.update(h);h=t.set(h,{nativelyRenderedContent:h.getCurrentContent()}),e._pendingStateFromBeforeInput=h,l((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}}function Pd(){if($s)return Zs;$s=1;var e=ci();return Zs=function(t){var n=t.getSelection();return n.isCollapsed()?null:e(t.getCurrentContent(),n)}}function Ud(){if(rc)return nc;rc=1;var e=hi(),t=Li(),n=Ss(),r=Pd(),o=Ls(),i=tc?ec:(tc=1,ec=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1});return nc=function(a,l){var s,c=a._latestEditorState,d=c.getSelection(),u=l.target;if(d.isCollapsed())l.preventDefault();else{if(i(u)){var p=u;s=o(n.getScrollParent(p))}var f=r(c);a.setClipboard(f),a.setMode("cut"),setTimeout((function(){a.restoreEditorDOM(s),a.exitCurrentMode(),a.update(function(n){var r=e.removeRange(n.getCurrentContent(),n.getSelection(),"forward");return t.push(n,r,"remove-range")}(c))}),0)}}}function Bd(){if(uc)return dc;uc=1;var e=oi(),t=/[\uD800-\uDFFF]/;function n(e){return 55296<=e&&e<=57343}function r(e){return t.test(e)}function o(e,t){return 1+n(e.charCodeAt(t))}function i(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!r(e))return e.substr(t,n);var i=e.length;if(i<=0||t>i||n<=0)return"";var a=0;if(t>0){for(;t>0&&a<i;t--)a+=o(e,a);if(a>=i)return""}else if(t<0){for(a=i;t<0&&0<a;t++)a-=o(e,a-1);a<0&&(a=0)}var l=i;if(n<i)for(l=a;n>0&&l<i;n--)l+=o(e,l);return e.substring(a,l)}return dc={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=o(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:o,hasSurrogateUnit:r,isCodeUnitInSurrogateRange:n,isSurrogatePair:function(t,n){if(0<=n&&n<t.length||("production"!==process.env.NODE_ENV?e(!1,"isSurrogatePair: Invalid index %s for string length %s.",n,t.length):e(!1)),n+1===t.length)return!1;var r=t.charCodeAt(n),o=t.charCodeAt(n+1);return 55296<=r&&r<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!r(e))return e.length;for(var t=0,n=0;n<e.length;n+=o(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return i(e,t=t<n?t:n,r)},substr:i}}function Fd(){if(fc)return pc;fc=1;var e=js();function t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var n="production"!==process.env.NODE_ENV?function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.apply(void 0,[n].concat(o))}}:e;return pc=n}function zd(){if(yc)return mc;yc=1;var e=Fd();return mc=function(t,n){var r=t.getSelection();"production"!==process.env.NODE_ENV&&e(r.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var o=t.getCurrentContent(),i=r.getStartKey(),a=r.getStartOffset(),l=i,s=0;if(n>a){var c=o.getKeyBefore(i);if(null==c)l=i;else l=c,s=o.getBlockForKey(c).getText().length}else s=a-n;return r.merge({focusKey:l,focusOffset:s,isBackward:!0})}}function Yd(){if(gc)return hc;gc=1;var e=hi(),t=Ai()("draft_tree_data_support");return hc=function(n,r,o){var i=n.getSelection(),a=n.getCurrentContent(),l=i,s=i.getAnchorKey(),c=i.getFocusKey(),d=a.getBlockForKey(s);if(t&&"forward"===o&&s!==c)return a;if(i.isCollapsed()){if("forward"===o){if(n.isSelectionAtEndOfContent())return a;if(t)if(i.getAnchorOffset()===a.getBlockForKey(s).getLength()){var u=a.getBlockForKey(d.nextSibling);if(!u||0===u.getLength())return a}}else if(n.isSelectionAtStartOfContent())return a;if((l=r(n))===i)return a}return e.removeRange(a,l,o)}}function Wd(){if(_c)return Ec;_c=1;var e=Li(),t=Bd(),n=zd(),r=Yd();return Ec=function(o){var i=r(o,(function(e){var r=e.getSelection(),o=e.getCurrentContent(),i=r.getAnchorKey(),a=r.getAnchorOffset(),l=o.getBlockForKey(i).getText()[a-1];return n(e,l?t.getUTF16Length(l,0):1)}),"backward");if(i===o.getCurrentContent())return o;var a=o.getSelection();return e.push(o,i.set("selectionBefore",a),a.isCollapsed()?"backspace-character":"remove-range")}}function Kd(){if(Tc)return bc;Tc=1;var e=hi(),t=rs(),n=Li(),r=$l(),o=ps().notEmptyKey,i=ts(),a=Wd(),l=Si(),s=r.isEngine("Gecko");return bc=function(r,c){void 0!==r._pendingStateFromBeforeInput&&(r.update(r._pendingStateFromBeforeInput),r._pendingStateFromBeforeInput=void 0);var d=r.editor.ownerDocument.defaultView.getSelection(),u=d.anchorNode,p=d.isCollapsed,f=(null==u?void 0:u.nodeType)!==Node.TEXT_NODE&&(null==u?void 0:u.nodeType)!==Node.ELEMENT_NODE;if(null!=u&&!f){if(u.nodeType===Node.TEXT_NODE&&(null!==u.previousSibling||null!==u.nextSibling)){var m=u.parentNode;if(null==m)return;u.nodeValue=m.textContent;for(var y=m.firstChild;null!=y;y=y.nextSibling)y!==u&&m.removeChild(y)}var h=u.textContent,g=r._latestEditorState,E=l(i(u)),_=t.decode(E),b=_.blockKey,T=_.decoratorKey,A=_.leafKey,O=g.getBlockTree(b).getIn([T,"leaves",A]),I=O.start,N=O.end,v=g.getCurrentContent(),S=v.getBlockForKey(b),M=S.getText().slice(I,N);if(h.endsWith("\n\n")&&(h=h.slice(0,-1)),h!==M){var L,D,C,w,x=g.getSelection(),R=x.merge({anchorOffset:I,focusOffset:N,isBackward:!1}),k=S.getEntityAt(I),j=o(k)?v.getEntity(k):null,P="MUTABLE"===(null!=j?j.getMutability():null),U=P?"spellcheck-change":"apply-entity",B=e.replaceText(v,R,h,S.getInlineStyleAt(I),P?S.getEntityAt(I):null);if(s)L=d.anchorOffset,D=d.focusOffset,w=(C=I+Math.min(L,D))+Math.abs(L-D),L=C,D=w;else{var F=h.length-M.length;C=x.getStartOffset(),w=x.getEndOffset(),L=p?w+F:C,D=w+F}var z=B.merge({selectionBefore:v.getSelectionAfter(),selectionAfter:x.merge({anchorOffset:L,focusOffset:D})});r.update(n.push(g,z,U))}else{var Y=c.nativeEvent.inputType;if(Y){var W=function(e,t){return"deleteContentBackward"===e?a(t):t}(Y,g);if(W!==g)return r.restoreEditorDOM(),void r.update(W)}}}}}function Gd(){if(Nc)return Ic;Nc=1;var e=$l(),t=function(){if(Oc)return Ac;Oc=1;var e=os();return Ac=function(t){return t.which===e.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}}(),n=e.isPlatform("Mac OS X"),r={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},usesMacOSHeuristics:function(){return n},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:r.isCtrlKeyCommand(e)},isSoftNewlineEvent:t};return Ic=r}function Vd(){if(Lc)return Mc;Lc=1;var e=$l(),t=oi(),n=e.isBrowser("Chrome");return Mc=n?function(e){for(var n=e.cloneRange(),r=[],o=e.endContainer;null!=o;o=o.parentNode){var i=o===e.commonAncestorContainer;i?n.setStart(e.startContainer,e.startOffset):n.setStart(n.endContainer,0);var a,l=Array.from(n.getClientRects());if(r.push(l),i)return r.reverse(),(a=[]).concat.apply(a,r);n.setEndBefore(o)}"production"!==process.env.NODE_ENV?t(!1,"Found an unexpected detached subtree when getting range client rects."):t(!1)}:function(e){return Array.from(e.getClientRects())}}function Hd(){if(Cc)return Dc;Cc=1;var e=Bd(),t=Jl(),n=Vd(),r=oi();function o(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),o=Math.max(o,l.top),i=Math.max(i,l.bottom))}return o<=r&&o-n<t&&i-r<t}function i(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}return Dc=function(a){a.collapsed||("production"!==process.env.NODE_ENV?r(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):r(!1));var l=(a=a.cloneRange()).startContainer;1!==l.nodeType&&(l=l.parentNode);var s=function(e){var n=getComputedStyle(e),o=t(e),i=o.createElement("div");i.style.fontFamily=n.fontFamily,i.style.fontSize=n.fontSize,i.style.fontStyle=n.fontStyle,i.style.fontWeight=n.fontWeight,i.style.lineHeight=n.lineHeight,i.style.position="absolute",i.textContent="M";var a=o.body;a||("production"!==process.env.NODE_ENV?r(!1,"Missing document.body"):r(!1)),a.appendChild(i);var l=i.getBoundingClientRect();return a.removeChild(i),l.height}(l),c=a.endContainer,d=a.endOffset;for(a.setStart(a.startContainer,0);o(n(a),s)&&(c=a.startContainer,d=a.startOffset,c.parentNode||("production"!==process.env.NODE_ENV?r(!1,"Found unexpected detached subtree when traversing."):r(!1)),a.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var u=c,p=d-1;;){for(var f=u.nodeValue,m=p;m>=0;m--)if(!(null!=f&&m>0&&e.isSurrogatePair(f,m-1))){if(a.setStart(u,m),!o(n(a),s))break;c=u,d=m}if(-1===m||0===u.childNodes.length)break;p=i(u=u.childNodes[m])}return a.setStart(c,d),a}}function qd(){if(kc)return Rc;kc=1;return Rc={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}}function Qd(){if(Pc)return jc;Pc=1;var e="['‘’]",t="\\s|(?![_])"+qd().getPunctuation(),n=new RegExp("^(?:"+t+")*(?:"+e+"|(?!"+t+").)*(?:(?!"+t+").)"),r=new RegExp("(?:(?!"+t+").)(?:"+e+"|(?!"+t+").)*(?:"+t+")*$");function o(e,t){var o=t?r.exec(e):n.exec(e);return o?o[0]:e}return jc={getBackward:function(e){return o(e,!0)},getForward:function(e){return o(e,!1)}}}function Zd(){if(zc)return Fc;zc=1;var e=Fd();return Fc=function(t,n){var r=t.getSelection();"production"!==process.env.NODE_ENV&&e(r.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var o,i=r.getStartKey(),a=r.getStartOffset(),l=t.getCurrentContent(),s=i;return n>l.getBlockForKey(i).getText().length-a?(s=l.getKeyAfter(i),o=0):o=a+n,r.merge({focusKey:s,focusOffset:o})}}function $d(){if(rd)return nd;rd=1;var e=hi(),t=Li(),n=Gd(),r=os(),o=function(){if(Sc)return vc;Sc=1;var e=hi(),t=Li(),n=ci(),r=Si(),o=null;return vc={cut:function(i){var a=i.getCurrentContent(),l=i.getSelection(),s=null;if(l.isCollapsed()){var c=l.getAnchorKey(),d=a.getBlockForKey(c).getLength();if(d===l.getAnchorOffset()){var u=a.getKeyAfter(c);if(null==u)return i;s=l.set("focusKey",u).set("focusOffset",0)}else s=l.set("focusOffset",d)}else s=l;s=r(s),o=n(a,s);var p=e.removeRange(a,s,"forward");return p===a?i:t.push(i,p,"remove-range")},paste:function(n){if(!o)return n;var r=e.replaceWithFragment(n.getCurrentContent(),n.getSelection(),o);return t.push(n,r,"insert-fragment")}}}(),i=$l(),a=Bs(),l=function(){if(xc)return wc;xc=1;var e=Li(),t=Hd(),n=cs(),r=zd(),o=Yd();return wc=function(i,a){var l=o(i,(function(e){var o=e.getSelection();if(o.isCollapsed()&&0===o.getAnchorOffset())return r(e,1);var i=a.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return i=t(i),n(e,null,i.endContainer,i.endOffset,i.startContainer,i.startOffset).selectionState}),"backward");return l===i.getCurrentContent()?i:e.push(i,l,"remove-range")}}(),s=function(){if(Bc)return Uc;Bc=1;var e=Qd(),t=Li(),n=zd(),r=Yd();return Uc=function(o){var i=r(o,(function(t){var r=t.getSelection(),o=r.getStartOffset();if(0===o)return n(t,1);var i=r.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(0,o),l=e.getBackward(a);return n(t,l.length||1)}),"backward");return i===o.getCurrentContent()?o:t.push(o,i,"remove-range")}}(),c=function(){if(Wc)return Yc;Wc=1;var e=Qd(),t=Li(),n=Zd(),r=Yd();return Yc=function(o){var i=r(o,(function(t){var r=t.getSelection(),o=r.getStartOffset(),i=r.getStartKey(),a=t.getCurrentContent().getBlockForKey(i).getText().slice(o),l=e.getForward(a);return n(t,l.length||1)}),"forward");return i===o.getCurrentContent()?o:t.push(o,i,"remove-range")}}(),d=function(){if(Gc)return Kc;Gc=1;var e=hi(),t=Li();return Kc=function(n){var r=e.splitBlock(n.getCurrentContent(),n.getSelection());return t.push(n,r,"split-block")}}(),u=function(){if(Hc)return Vc;Hc=1;var e=Li();return Vc=function(t){var n=t.getSelection(),r=n.getEndKey(),o=t.getCurrentContent().getBlockForKey(r).getLength();return e.set(t,{selection:n.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}),forceSelection:!0})}}(),p=function(){if(Qc)return qc;Qc=1;var e=Li();return qc=function(t){var n=t.getSelection(),r=n.getStartKey();return e.set(t,{selection:n.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}}(),f=Wd(),m=function(){if($c)return Zc;$c=1;var e=Li(),t=Bd(),n=Zd(),r=Yd();return Zc=function(o){var i=r(o,(function(e){var r=e.getSelection(),o=e.getCurrentContent(),i=r.getAnchorKey(),a=r.getAnchorOffset(),l=o.getBlockForKey(i).getText()[a];return n(e,l?t.getUTF16Length(l,0):1)}),"forward");if(i===o.getCurrentContent())return o;var a=o.getSelection();return e.push(o,i.set("selectionBefore",a),a.isCollapsed()?"delete-character":"remove-range")}}(),y=function(){if(Xc)return Jc;Xc=1;var e=hi(),t=Li(),n=ci();return Jc=function(r){var o=r.getSelection();if(!o.isCollapsed())return r;var i=o.getAnchorOffset();if(0===i)return r;var a,l,s=o.getAnchorKey(),c=r.getCurrentContent(),d=c.getBlockForKey(s).getLength();if(d<=1)return r;i===d?(a=o.set("anchorOffset",i-1),l=o):l=(a=o.set("focusOffset",i+1)).set("anchorOffset",i+1);var u=n(c,a),p=e.removeRange(c,a,"backward"),f=p.getSelectionAfter(),m=f.getAnchorOffset()-1,y=f.merge({anchorOffset:m,focusOffset:m}),h=e.replaceWithFragment(p,y,u),g=t.push(r,h,"insert-fragment");return t.acceptSelection(g,l)}}(),h=function(){if(td)return ed;td=1;var e=Li();return ed=function(t,n,r){var o=e.undo(n);if("spellcheck-change"!==n.getLastChangeType())t.preventDefault(),n.getNativelyRenderedContent()?(r(e.set(n,{nativelyRenderedContent:null})),setTimeout((function(){r(o)}),0)):r(o);else{var i=o.getCurrentContent();r(e.set(o,{nativelyRenderedContent:i}))}}}(),g=n.isOptionKeyCommand,E=i.isBrowser("Chrome");return nd=function(n,i){var _=i.which,b=n._latestEditorState;function T(e){var t=n.props[e];return!!t&&(t(i),!0)}switch(_){case r.RETURN:if(i.preventDefault(),n.props.handleReturn&&a(n.props.handleReturn(i,b)))return;break;case r.ESC:if(i.preventDefault(),T("onEscape"))return;break;case r.TAB:if(T("onTab"))return;break;case r.UP:if(T("onUpArrow"))return;break;case r.RIGHT:if(T("onRightArrow"))return;break;case r.DOWN:if(T("onDownArrow"))return;break;case r.LEFT:if(T("onLeftArrow"))return;break;case r.SPACE:E&&g(i)&&i.preventDefault()}var A=n.props.keyBindingFn(i);if(null!=A&&""!==A)if("undo"!==A){if(i.preventDefault(),!n.props.handleKeyCommand||!a(n.props.handleKeyCommand(A,b,i.timeStamp))){var O=function(e,n,r){switch(e){case"redo":return t.redo(n);case"delete":return m(n);case"delete-word":return c(n);case"backspace":return f(n);case"backspace-word":return s(n);case"backspace-to-start-of-line":return l(n,r);case"split-block":return d(n);case"transpose-characters":return y(n);case"move-selection-to-start-of-block":return p(n);case"move-selection-to-end-of-block":return u(n);case"secondary-cut":return o.cut(n);case"secondary-paste":return o.paste(n);default:return n}}(A,b,i);O!==b&&n.update(O)}}else h(i,b,n.update);else if(_===r.SPACE&&E&&g(i)){var I=e.replaceText(b.getCurrentContent(),b.getSelection()," ");n.update(t.push(b,I,"insert-characters"))}}}function Jd(){if(id)return od;return id=1,od=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}()}function Xd(){if(ld)return ad;ld=1;var e=$l(),t=oi(),n=e.isBrowser("IE <= 9");return ad=function(e){var r,o=null;return!n&&document.implementation&&document.implementation.createHTMLDocument&&((r=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?t(!1,"Missing doc.documentElement"):t(!1)),r.documentElement.innerHTML=e,o=r.getElementsByTagName("body")[0]),o}}function eu(){if(fd)return pd;var e;function t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){n(e,t,r[t])}))}return e}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}fd=1;var r=Xo(),o=ti(),i=ni(),a=xi(),l=bi(),s=Jd(),c=wi(),d=ai(),u=Xd(),p=Ai(),f=$o(),m=f.List,y=f.Map,h=f.OrderedSet,g=function(){if(cd)return sd;cd=1;var e=Xl();return sd=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"A"===t.nodeName}}(),E=gs(),_=as(),b=function(){if(ud)return dd;ud=1;var e=Xl();return dd=function(t){return!(!t||!t.ownerDocument)&&e(t)&&"IMG"===t.nodeName}}(),T=p("draft_tree_data_support"),A=new RegExp("\r","g"),O=new RegExp("\n","g"),I=new RegExp("^\n","g"),N=new RegExp("&nbsp;","g"),v=new RegExp("&#13;?","g"),S=new RegExp("&#8203;?","g"),M=["bold","bolder","500","600","700","800","900"],L=["light","lighter","normal","100","200","300","400"],D=["className","href","rel","target","title"],C=["alt","className","height","src","width"],w=(n(e={},c("public/DraftStyleDefault/depth0"),0),n(e,c("public/DraftStyleDefault/depth1"),1),n(e,c("public/DraftStyleDefault/depth2"),2),n(e,c("public/DraftStyleDefault/depth3"),3),n(e,c("public/DraftStyleDefault/depth4"),4),e),x=y({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),R=function(e){if(_(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(w).some((function(n){e.classList.contains(n)&&(t=w[n])})),t},j=function(e){if(!g(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new s(t.href);return!0}catch(e){return!1}},P=function(e){if(!b(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!_(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){M.indexOf(r)>=0?e.add("BOLD"):L.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},B=function(e){return"ul"===e||"ol"===e},F=function(){function e(e,t){n(this,"characterList",m()),n(this,"currentBlockType","unstyled"),n(this,"currentDepth",0),n(this,"currentEntity",null),n(this,"currentText",""),n(this,"wrapper",null),n(this,"blockConfigs",[]),n(this,"contentBlocks",[]),n(this,"entityMap",l),n(this,"blockTypeMap",void 0),n(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var a=e.prototype;return a.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},a.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],h())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},a.getContentBlocks=function(){return 0===this.contentBlocks.length&&(T?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},a._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",n},a._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||B(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;B(i)&&(this.wrapper=i,B(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(P(o))this._addImgNode(o,t);else if(j(o))this._addAnchorNode(o,n,t);else{var c=t;x.has(i)&&(c=c.add(x.get(i))),c=U(o,c);var u=R(o);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var p=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!T&&_(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var m=o;this.currentDepth=k(m,this.currentDepth)}var y=d(),h=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:y,childConfigs:h,type:s})),this.currentDepth=p,this.wrapper=f}}}return n},a._appendText=function(e,t){var n;this.currentText+=e;var o=r.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(o))},a._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},a._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(I,"")).replace(O," ")),this._appendText(n,t)},a._addBreakNode=function(e,t){E(e)&&this._appendText("\n",t)},a._addImgNode=function(e,t){if(b(e)){var n=e,r={};C.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),p("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},a._addAnchorNode=function(e,t,n){if(g(e)){var r=e,o={};D.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new s(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},a._toContentBlocks=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.length-1,o=0;o<=r;o++){var a=e[o];a.parent=n,a.prevSibling=o>0?e[o-1].key:null,a.nextSibling=o<r?e[o+1].key:null,a.children=m(a.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new i(t({},a))),this._toContentBlocks(a.childConfigs,a.key)}},a._hoistContainersInBlockConfigs=function(e){var t=this;return m(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},a._toFlatContentBlocks=function(e){var n=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var r=n._extractTextFromBlockConfigs(e.childConfigs),i=r.text,a=r.characterList;n.contentBlocks.push(new o(t({},e,{text:e.text+i,characterList:e.characterList.concat(a)})))}))},a._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=m(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();return pd=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:u)(e=e.trim().replace(A,"").replace(N," ").replace(v,"").replace(S,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),y(t)}(t);return new F(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()},pd}function tu(){if(yd)return md;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}yd=1;var t=ti(),n=ni(),r=eu(),o=ai(),i=Xd(),a=Ai(),l=$o(),s=Oi(),c=l.List,d=l.Repeat,u=a("draft_tree_data_support"),p=u?n:t,f={processHTML:function(e,t){return r(e,i,t)},processText:function(t,n,r){return t.reduce((function(t,i,a){i=s(i);var l=o(),f={key:l,type:r,text:i,characterList:c(d(n,i.length))};if(u&&0!==a){var m=a-1;f=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){e(t,n,r[n])}))}return t}({},f,{prevSibling:(t[m]=t[m].merge({nextSibling:l})).getKey()})}return t.push(new p(f)),t}),[])}};return md=f}function nu(){if(_d)return Ed;_d=1;var e=hi(),t=Li(),n=gd?hd:(gd=1,hd=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}),r=Si(),o={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return o.toggleInlineStyle(e,"BOLD");case"italic":return o.toggleInlineStyle(e,"ITALIC");case"underline":return o.toggleInlineStyle(e,"UNDERLINE");case"code":return o.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return o.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return o.onDelete(e);default:return null}},insertSoftNewline:function(n){var r=e.insertText(n.getCurrentContent(),n.getSelection(),"\n",n.getCurrentInlineStyle(),null),o=t.push(n,r,"insert-characters");return t.forceSelection(o,r.getSelectionAfter())},onBackspace:function(e){var n=e.getSelection();if(!n.isCollapsed()||n.getAnchorOffset()||n.getFocusOffset())return null;var r=e.getCurrentContent(),i=n.getStartKey(),a=r.getBlockBefore(i);if(a&&"atomic"===a.getType()){var l=r.getBlockMap().delete(a.getKey()),s=r.merge({blockMap:l,selectionAfter:n});if(s!==r)return t.push(e,s,"remove-range")}var c=o.tryToRemoveBlockStyle(e);return c?t.push(e,c,"change-block-type"):null},onDelete:function(n){var r=n.getSelection();if(!r.isCollapsed())return null;var o=n.getCurrentContent(),i=r.getStartKey(),a=o.getBlockForKey(i).getLength();if(r.getStartOffset()<a)return null;var l=o.getBlockAfter(i);if(!l||"atomic"!==l.getType())return null;var s=r.merge({focusKey:l.getKey(),focusOffset:l.getLength()}),c=e.removeRange(o,s,"forward");return c!==o?t.push(n,c,"remove-range"):null},onTab:function(e,r,o){var i=r.getSelection(),a=i.getAnchorKey();if(a!==i.getFocusKey())return r;var l=r.getCurrentContent(),s=l.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return r;e.preventDefault();var d=s.getDepth();if(!e.shiftKey&&d===o)return r;var u=n(l,i,e.shiftKey?-1:1,o);return t.push(r,u,"adjust-depth")},toggleBlockType:function(n,o){var i=n.getSelection(),a=i.getStartKey(),l=i.getEndKey(),s=n.getCurrentContent(),c=i;if(a!==l&&0===i.getEndOffset()){var d=r(s.getBlockBefore(l));l=d.getKey(),c=c.merge({anchorKey:a,anchorOffset:i.getStartOffset(),focusKey:l,focusOffset:d.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile((function(e,t){return t!==a})).reverse().skipWhile((function(e,t){return t!==l})).some((function(e){return"atomic"===e.getType()})))return n;var u=s.getBlockForKey(a).getType()===o?"unstyled":o;return t.push(n,e.setBlockType(s,c,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?o.toggleBlockType(e,"code-block"):o.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(n,r){var o=n.getSelection(),i=n.getCurrentInlineStyle();if(o.isCollapsed())return t.setInlineStyleOverride(n,i.has(r)?i.remove(r):i.add(r));var a,l=n.getCurrentContent();return a=i.has(r)?e.removeInlineStyle(l,o,r):e.applyInlineStyle(l,o,r),t.push(n,a,"change-inline-style")},toggleLink:function(n,r,o){var i=e.applyEntity(n.getCurrentContent(),r,o);return t.push(n,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var n=t.getSelection(),r=n.getAnchorOffset();if(n.isCollapsed()&&0===r){var o=n.getAnchorKey(),i=t.getCurrentContent(),a=i.getBlockForKey(o).getType(),l=i.getBlockBefore(o);if("code-block"===a&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==a)return e.setBlockType(i,n,"unstyled")}return null}};return Ed=o}function ru(){if(Od)return Ad;Od=1;var e=Jo(),t=Xo(),n=Ps(),r=hi(),o=tu(),i=Li(),a=nu(),l=fs(),s=Us(),c=Bs(),d=function(){if(Td)return bd;Td=1;var e=/\r\n?|\n/g;return bd=function(t){return t.split(e)}}();function u(e,t,n){var o=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return i.push(e,o.set("entityMap",n),"insert-fragment")}return Ad=function(p,f){f.preventDefault();var m=new n(f.clipboardData);if(!m.isRichText()){var y=m.getFiles(),h=m.getText();if(y.length>0){if(p.props.handlePastedFiles&&c(p.props.handlePastedFiles(y)))return;return void s(y,(function(n){if(n=n||h){var s=p._latestEditorState,c=d(n),u=t.create({style:s.getCurrentInlineStyle(),entity:l(s.getCurrentContent(),s.getSelection())}),f=a.getCurrentBlockType(s),m=o.processText(c,u,f),y=e.createFromArray(m),g=r.replaceWithFragment(s.getCurrentContent(),s.getSelection(),y);p.update(i.push(s,g,"insert-fragment"))}}))}}var g=[],E=m.getText(),_=m.getHTML(),b=p._latestEditorState;if(p.props.formatPastedText){var T=p.props.formatPastedText(E,_);E=T.text,_=T.html}if(!p.props.handlePastedText||!c(p.props.handlePastedText(E,_,b))){if(E&&(g=d(E)),!p.props.stripPastedStyles){var A,O=p.getClipboard();if(!p.props.formatPastedText&&m.isRichText()&&O){if(-1!==(null===(A=_)||void 0===A?void 0:A.indexOf(p.getEditorKey()))||1===g.length&&1===O.size&&O.first().getText()===E)return void p.update(u(p._latestEditorState,O))}else if(O&&m.types.includes("com.apple.webarchive")&&!m.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(g,O))return void p.update(u(p._latestEditorState,O));if(_){var I=o.processHTML(_,p.props.blockRenderMap);if(I){var N=I.contentBlocks,v=I.entityMap;if(N){var S=e.createFromArray(N);return void p.update(u(p._latestEditorState,S,v))}}}p.setClipboard(null)}if(g.length){var M=t.create({style:b.getCurrentInlineStyle(),entity:l(b.getCurrentContent(),b.getSelection())}),L=a.getCurrentBlockType(b),D=o.processText(g,M,L),C=e.createFromArray(D);p.update(u(p._latestEditorState,C))}}}}function ou(){if(Nd)return Id;Nd=1;var e=$l(),t=jd(),n=function(){if(Hs)return Vs;Hs=1;var e=Li(),t=bs(),n=Ts();return Vs=function(r,o){var i=o.currentTarget.ownerDocument;if(!Boolean(r.props.preserveSelectionOnBlur)&&n(i)===i.body){var a=i.defaultView.getSelection(),l=r.editor;1===a.rangeCount&&t(l,a.anchorNode)&&t(l,a.focusNode)&&a.removeAllRanges()}var s=r._latestEditorState,c=s.getSelection();if(c.getHasFocus()){var d=c.set("hasFocus",!1);r.props.onBlur&&r.props.onBlur(o),r.update(e.acceptSelection(s,d))}}}(),r=function(){if(Qs)return qs;Qs=1;var e=Li();return qs=function(t,n){t.setMode("composite"),t.update(e.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(n)}}(),o=function(){if(Xs)return Js;Xs=1;var e=Pd();return Js=function(t,n){t._latestEditorState.getSelection().isCollapsed()?n.preventDefault():t.setClipboard(e(t._latestEditorState))}}(),i=Ud(),a=ic?oc:(ic=1,oc=function(e,t){e.setMode("drag"),t.preventDefault()}),l=lc?ac:(lc=1,ac=function(e){e._internalDrag=!0,e.setMode("drag")}),s=function(){if(cc)return sc;cc=1;var e=Li(),t=$l();return sc=function(n,r){var o=n._latestEditorState,i=o.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);n.props.onFocus&&n.props.onFocus(r),t.isBrowser("Chrome < 60.0.3081.0")?n.update(e.forceSelection(o,a)):n.update(e.acceptSelection(o,a))}}}(),c=Kd(),d=$d(),u=ru(),p=us(),f=e.isBrowser("Chrome"),m=e.isBrowser("Firefox"),y=f||m?p:function(e){};return Id={onBeforeInput:t,onBlur:n,onCompositionStart:r,onCopy:o,onCut:i,onDragOver:a,onDragStart:l,onFocus:s,onInput:c,onKeyDown:d,onPaste:u,onSelect:p,onMouseUp:y,onKeyUp:y}}function iu(){if(Ld)return Md;Ld=1;var e=s,t=wi(),n=function(n){var r,o;function i(){return n.apply(this,arguments)||this}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var n=this.props.editorState.getSelection().getHasFocus(),r=t({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":n});return e.createElement("div",{className:r},e.createElement("div",{className:t("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(e.Component);return Md=n}function au(){if(Cd)return Dd;Cd=1;var e=Gd(),t=os(),n=$l(),r=n.isPlatform("Mac OS X"),o=r&&n.isBrowser("Firefox < 29"),i=e.hasCommandModifier,a=e.isCtrlKeyCommand;function l(e){return r&&e.altKey||a(e)}return Dd=function(e){switch(e.keyCode){case 66:return i(e)?"bold":null;case 68:return a(e)?"delete":null;case 72:return a(e)?"backspace":null;case 73:return i(e)?"italic":null;case 74:return i(e)?"code":null;case 75:return r&&a(e)?"secondary-cut":null;case 77:case 79:return a(e)?"split-block":null;case 84:return r&&a(e)?"transpose-characters":null;case 85:return i(e)?"underline":null;case 87:return r&&a(e)?"backspace-word":null;case 89:return a(e)?r?"secondary-paste":"redo":null;case 90:return function(e){return i(e)?e.shiftKey?"redo":"undo":null}(e)||null;case t.RETURN:return"split-block";case t.DELETE:return function(e){return!r&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case t.BACKSPACE:return function(e){return i(e)&&r?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case t.LEFT:return o&&i(e)?"move-selection-to-start-of-block":null;case t.RIGHT:return o&&i(e)?"move-selection-to-end-of-block":null;default:return null}}}function lu(){if(xd)return wd;xd=1;var e=Lt();function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=xi(),l=Ri(),c=ms(),d=function(){if(Ll)return Ml;Ll=1;var e=Ai()("draft_tree_data_support");return Ml=e?ws():Rs()}(),u=Fs(),p=ou(),f=function(){if(Sd)return vd;Sd=1;var e=B.unstable_flushControlled;return vd=e}(),m=iu(),y=Es(),h=Li(),g=s,E=Ns(),_=Ss(),b=$l(),T=wi(),A=ai(),O=au(),I=Ls(),N=Ai(),v=oi(),S=as(),M=Si(),L=b.isBrowser("IE"),D=!L,C={edit:p,composite:c,drag:u,cut:null,render:null},w=!1,x=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(g.Component),R=function(e){function a(t){var i;return o(r(i=e.call(this,t)||this),"_blockSelectEvents",void 0),o(r(i),"_clipboard",void 0),o(r(i),"_handler",void 0),o(r(i),"_dragCount",void 0),o(r(i),"_internalDrag",void 0),o(r(i),"_editorKey",void 0),o(r(i),"_placeholderAccessibilityID",void 0),o(r(i),"_latestEditorState",void 0),o(r(i),"_latestCommittedEditorState",void 0),o(r(i),"_pendingStateFromBeforeInput",void 0),o(r(i),"_onBeforeInput",void 0),o(r(i),"_onBlur",void 0),o(r(i),"_onCharacterData",void 0),o(r(i),"_onCompositionEnd",void 0),o(r(i),"_onCompositionStart",void 0),o(r(i),"_onCopy",void 0),o(r(i),"_onCut",void 0),o(r(i),"_onDragEnd",void 0),o(r(i),"_onDragOver",void 0),o(r(i),"_onDragStart",void 0),o(r(i),"_onDrop",void 0),o(r(i),"_onInput",void 0),o(r(i),"_onFocus",void 0),o(r(i),"_onKeyDown",void 0),o(r(i),"_onKeyPress",void 0),o(r(i),"_onKeyUp",void 0),o(r(i),"_onMouseDown",void 0),o(r(i),"_onMouseUp",void 0),o(r(i),"_onPaste",void 0),o(r(i),"_onSelect",void 0),o(r(i),"editor",void 0),o(r(i),"editorContainer",void 0),o(r(i),"focus",void 0),o(r(i),"blur",void 0),o(r(i),"setMode",void 0),o(r(i),"exitCurrentMode",void 0),o(r(i),"restoreEditorDOM",void 0),o(r(i),"setClipboard",void 0),o(r(i),"getClipboard",void 0),o(r(i),"getEditorKey",void 0),o(r(i),"update",void 0),o(r(i),"onDragEnter",void 0),o(r(i),"onDragLeave",void 0),o(r(i),"_handleEditorContainerRef",(function(e){i.editorContainer=e,i.editor=null!==e?e.firstChild:null})),o(r(i),"focus",(function(e){var t=i.props.editorState,n=t.getSelection().getHasFocus(),r=i.editor;if(r){var o=_.getScrollParent(r),a=e||I(o),l=a.x,s=a.y;S(r)||("production"!==process.env.NODE_ENV?v(!1,"editorNode is not an HTMLElement"):v(!1)),r.focus(),o===window?window.scrollTo(l,s):E.setTop(o,s),n||i.update(h.forceSelection(t,t.getSelection()))}})),o(r(i),"blur",(function(){var e=i.editor;e&&(S(e)||("production"!==process.env.NODE_ENV?v(!1,"editorNode is not an HTMLElement"):v(!1)),e.blur())})),o(r(i),"setMode",(function(e){var t=i.props,r=t.onPaste,o=t.onCut,a=t.onCopy,l=n({},C.edit);r&&(l.onPaste=r),o&&(l.onCut=o),a&&(l.onCopy=a);var s=n({},C,{edit:l});i._handler=s[e]})),o(r(i),"exitCurrentMode",(function(){i.setMode("edit")})),o(r(i),"restoreEditorDOM",(function(e){i.setState({contentsKey:i.state.contentsKey+1},(function(){i.focus(e)}))})),o(r(i),"setClipboard",(function(e){i._clipboard=e})),o(r(i),"getClipboard",(function(){return i._clipboard})),o(r(i),"update",(function(e){i._latestEditorState=e,i.props.onChange(e)})),o(r(i),"onDragEnter",(function(){i._dragCount++})),o(r(i),"onDragLeave",(function(){i._dragCount--,0===i._dragCount&&i.exitCurrentMode()})),i._blockSelectEvents=!1,i._clipboard=null,i._handler=null,i._dragCount=0,i._editorKey=t.editorKey||A(),i._placeholderAccessibilityID="placeholder-"+i._editorKey,i._latestEditorState=t.editorState,i._latestCommittedEditorState=t.editorState,i._onBeforeInput=i._buildHandler("onBeforeInput"),i._onBlur=i._buildHandler("onBlur"),i._onCharacterData=i._buildHandler("onCharacterData"),i._onCompositionEnd=i._buildHandler("onCompositionEnd"),i._onCompositionStart=i._buildHandler("onCompositionStart"),i._onCopy=i._buildHandler("onCopy"),i._onCut=i._buildHandler("onCut"),i._onDragEnd=i._buildHandler("onDragEnd"),i._onDragOver=i._buildHandler("onDragOver"),i._onDragStart=i._buildHandler("onDragStart"),i._onDrop=i._buildHandler("onDrop"),i._onInput=i._buildHandler("onInput"),i._onFocus=i._buildHandler("onFocus"),i._onKeyDown=i._buildHandler("onKeyDown"),i._onKeyPress=i._buildHandler("onKeyPress"),i._onKeyUp=i._buildHandler("onKeyUp"),i._onMouseDown=i._buildHandler("onMouseDown"),i._onMouseUp=i._buildHandler("onMouseUp"),i._onPaste=i._buildHandler("onPaste"),i._onSelect=i._buildHandler("onSelect"),i.getEditorKey=function(){return i._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),i.state={contentsKey:0},i}i(a,e);var s=a.prototype;return s._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(f?f((function(){return r(t,n)})):r(t,n))}}},s._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},s._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:M(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return g.createElement(m,e)}return null},s._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},s.render=function(){var e=this.props,r=e.blockRenderMap,o=e.blockRendererFn,i=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,u=e.preventScroll,p=e.readOnly,f=e.textAlignment,m=e.textDirectionality,y=T({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===f,"DraftEditor/alignRight":"right"===f,"DraftEditor/alignCenter":"center"===f}),h=this.props.role||"textbox",E="combobox"===h?!!this.props.ariaExpanded:null,_={blockRenderMap:r,blockRendererFn:o,blockStyleFn:i,customStyleMap:n({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:m};return g.createElement("div",{className:y},this._renderPlaceholder(),g.createElement("div",{className:T("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},g.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:E,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:T({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:p?null:h,spellCheck:D&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},g.createElement(x,{editor:this,editorState:c}),g.createElement(d,t({},_,{key:"contents"+this.state.contentsKey})))))},s.componentDidMount=function(){this._blockSelectEvents=!1,!w&&N("draft_ods_enabled")&&(w=!0,y.initODS()),this.setMode("edit"),L&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):at.execCommand("AutoUrlDetect",!1,!1))},s.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},a}(g.Component);return o(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:a,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),wd=R}var su,cu,du,uu,pu,fu,mu,yu,hu,gu,Eu,_u,bu,Tu,Au,Ou,Iu,Nu,vu,Su,Mu,Lu,Du,Cu,wu,xu,Ru,ku={};function ju(){return su||(su=1),ku}function Pu(){return du?cu:(du=1,cu={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}})}function Uu(){if(mu)return fu;mu=1;var e=Bd(),t=ei(),n=function(e,t){return e===t},r=function(e){return!!e},o=[];return fu=function(i){var a=i.getCharacterList().map((function(e){return e.getStyle()})).toList(),l=a.flatten().toSet().map((function(o){return function(o,i,a){var l=[],s=i.map((function(e){return e.has(a)})).toList();return t(s,n,r,(function(t,n){var r=o.getText();l.push({offset:e.strlen(r.slice(0,t)),length:e.strlen(r.slice(t,n)),style:a})})),l}(i,a,o)}));return Array.prototype.concat.apply(o,l.toJS())},fu}function Bu(){if(hu)return yu;function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hu=1;var t=ti(),n=ni(),r=Pu(),o=function(){if(pu)return uu;pu=1;var e=Pu(),t=Bd().strlen;return uu=function(n,r){var o=[];return n.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var l=n.getText(),s=n.getEntityAt(i);o.push({offset:t(l.slice(0,i)),length:t(l.slice(i,a)),key:Number(r[e.stringify(s)])})})),o}}(),i=Uu(),a=oi(),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:i(e),entityRanges:o(e,t),data:e.getData().toObject()}},s=function(r,o,i,s){if(r instanceof t)i.push(l(r,o));else{r instanceof n||("production"!==process.env.NODE_ENV?a(!1,"block is not a BlockNode"):a(!1));var c=r.getParentKey(),d=s[r.getKey()]=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){e(t,n,r[n])}))}return t}({},l(r,o),{children:[]});c?s[c].children.push(d):i.push(d)}};return yu=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,o=[],i={},a={},l=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var o=e.getEntityAt(t),i=r.stringify(o);a[i]||(a[i]=o,n[i]="".concat(l),l++)})),s(e,n,o,i)})),{blocks:o,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,o=t.entityMap,i={};return Object.keys(o).forEach((function(t,n){var o=e.getEntity(r.unstringify(t));i[n]={type:o.getType(),mutability:o.getMutability(),data:o.getData()}})),{blocks:n,entityMap:i}}(e,t),t}}function Fu(){if(Eu)return gu;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){t(e,n,r[n])}))}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Eu=1;var n=ai(),r=oi(),o=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t};return gu={fromRawTreeStateToRawState:function(t){var n=t.blocks,i=[];return Array.isArray(n)||("production"!==process.env.NODE_ENV?r(!1,"Invalid raw state"):r(!1)),Array.isArray(n)&&n.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var o=n.pop();t(o);var i=o.children;Array.isArray(i)||("production"!==process.env.NODE_ENV?r(!1,"Invalid tree raw block"):r(!1)),n=n.concat([].concat(i.reverse()))}}(n,(function(t){var n=e({},t);o(t)&&(n.depth=n.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map((function(n){return n.type===t.type?e({},n,{depth:(t.depth||0)+1}):n})))}(t),null!=t.children&&t.children.length>0)||(delete n.children,i.push(n))})),t.blocks=i,e({},t,{blocks:i})):t},fromRawStateToRawTreeState:function(t){var r=[],i=[];return t.blocks.forEach((function(t){var a=o(t),l=t.depth||0,s=e({},t,{children:[]});if(a){var c=i[0];if(null==c&&0===l)r.push(s);else if(null==c||c.depth<l-1){var d={key:n(),text:"",depth:l-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};i.unshift(d),1===l?r.push(d):null!=c&&c.children.push(d),d.children.push(s)}else if(c.depth===l-1)c.children.push(s);else{for(;null!=c&&c.depth>=l;)i.shift(),c=i[0];l>0?c.children.push(s):r.push(s)}}else r.push(s)})),e({},t,{blocks:r})}}}function zu(){if(Mu)return Su;function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(n){t(e,n,r[n])}))}return e}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Mu=1;var n=ti(),r=ni(),o=Ii(),i=bi(),a=Fu(),l=function(){if(bu)return _u;bu=1;var e=Fd();return _u={isValidBlock:function(t,n){var r=t.getKey(),o=t.getParentKey();if(null!=o&&!n.get(o).getChildKeys().includes(r))return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing parent -> child pointer on %s",r),!1;if(!t.getChildKeys().map((function(e){return n.get(e)})).every((function(e){return e.getParentKey()===r})))return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing child -> parent pointer on %s",r),!1;var i=t.getPrevSiblingKey();if(null!=i&&n.get(i).getNextSiblingKey()!==r)return"production"!==process.env.NODE_ENV&&e(!0,"Tree is missing nextSibling pointer on %s's prevSibling",r),!1;var a=t.getNextSiblingKey();return null!=a&&n.get(a).getPrevSiblingKey()!==r?("production"!==process.env.NODE_ENV&&e(!0,"Tree is missing prevSibling pointer on %s's nextSibling",r),!1):null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&e(!0,"Tree has a two-node cycle at %s",r),!1):!(""!=t.text&&t.getChildKeys().size>0&&("production"!==process.env.NODE_ENV&&e(!0,"Leaf node %s has children",r),1))},isConnectedTree:function(t){var n=t.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==n.length)return"production"!==process.env.NODE_ENV&&e(!0,"Tree is not connected. More or less than one first node"),!1;for(var r=0,o=n.shift().getKey(),i=[];null!=o;){var a=t.get(o),l=a.getChildKeys(),s=a.getNextSiblingKey();if(l.size>0){null!=s&&i.unshift(s);var c=l.map((function(e){return t.get(e)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return"production"!==process.env.NODE_ENV&&e(!0,"%s has no first child",o),!1;o=c.getKey()}else o=null!=a.getNextSiblingKey()?a.getNextSiblingKey():i.shift();r++}return r===t.size||("production"!==process.env.NODE_ENV&&e(!0,"Tree is not connected. %s nodes were seen instead of %s",r,t.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}}(),s=Ti(),c=function(){if(Au)return Tu;Au=1;var e=Xo(),t=$o().List;return Tu=function(n,r){var o=n.map((function(t,n){var o=r[n];return e.create({style:t,entity:o})}));return t(o)},Tu}(),d=function(){if(Iu)return Ou;Iu=1;var e=Bd().substr;return Ou=function(t,n){var r=Array(t.length).fill(null);return n&&n.forEach((function(n){for(var o=e(t,0,n.offset).length,i=o+e(t,n.offset,n.length).length,a=o;a<i;a++)r[a]=n.key})),r}}(),u=function(){if(vu)return Nu;vu=1;var e=Bd(),t=$o().OrderedSet,n=e.substr,r=t();return Nu=function(e,t){var o=Array(e.length).fill(r);return t&&t.forEach((function(t){for(var r=n(e,0,t.offset).length,i=r+n(e,t.offset,t.length).length;r<i;)o[r]=o[r].add(t.style),r++})),o},Nu}(),p=ai(),f=Ai(),m=$o(),y=oi(),h=f("draft_tree_data_support"),g=m.List,E=m.Map,_=m.OrderedMap,b=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||p(),data:E(o),characterList:T(e,t)}},T=function(t,n){var r=t.text,o=t.entityRanges,i=t.inlineStyleRanges,a=o||[];return c(u(r,i||[]),d(r,a.filter((function(e){return n.hasOwnProperty(e.key)})).map((function(t){return e({},t,{key:n[t.key]})}))))},A=function(t){return e({},t,{key:t.key||p()})},O=function(t,n,r){var o=n.map((function(t){return e({},t,{parentRef:r})}));return t.concat(o.reverse())},I=function(t,o){var i=t.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),s=h&&!i?a.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!h)return function(e,t){return _(e.map((function(e){var r=new n(b(e,t));return[r.getKey(),r]})))}(i?a.fromRawTreeStateToRawState(t).blocks:s,o);var c=function(t,n){return t.map(A).reduce((function(o,i,a){Array.isArray(i.children)||("production"!==process.env.NODE_ENV?y(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):y(!1));var l=i.children.map(A),s=new r(e({},b(i,n),{prevSibling:0===a?null:t[a-1].key,nextSibling:a===t.length-1?null:t[a+1].key,children:g(l.map((function(e){return e.key})))}));o=o.set(s.getKey(),s);for(var c=O([],l,s);c.length>0;){var d=c.pop(),u=d.parentRef,p=u.getChildKeys(),f=p.indexOf(d.key),m=Array.isArray(d.children);if(!m){m||("production"!==process.env.NODE_ENV?y(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):y(!1));break}var h=d.children.map(A),E=new r(e({},b(d,n),{parent:u.getKey(),children:g(h.map((function(e){return e.key}))),prevSibling:0===f?null:p.get(f-1),nextSibling:f===p.size-1?null:p.get(f+1)}));o=o.set(E.getKey(),E),c=O(c,h,E)}return o}),_())}(s,o);return"production"!==process.env.NODE_ENV&&(l.isValidTree(c)||("production"!==process.env.NODE_ENV?y(!1,"Should be a valid tree"):y(!1))),c};return Su=function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?y(!1,"invalid RawDraftContentState"):y(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,a=r.mutability,l=r.data;n[e]=i.__create(o,a,l||{})})),n}(e),n=I(e,t),r=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new o({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}}function Yu(){if(wu)return Cu;wu=1;var e=function(){if(Du)return Lu;Du=1;var e=Vd();return Lu=function(t){var n=e(t),r=0,o=0,i=0,a=0;if(n.length){if(n.length>1&&0===n[0].width){var l=n[1];r=l.top,o=l.right,i=l.bottom,a=l.left}else{var s=n[0];r=s.top,o=s.right,i=s.bottom,a=s.left}for(var c=1;c<n.length;c++){var d=n[c];0!==d.height&&0!==d.width&&(r=Math.min(r,d.top),o=Math.max(o,d.right),i=Math.max(i,d.bottom),a=Math.min(a,d.left))}}return{top:r,right:o,bottom:i,left:a,width:o-a,height:i-r}}}();return Cu=function(t){var n=t.getSelection();if(!n.rangeCount)return null;var r=n.getRangeAt(0),o=e(r),i=o.top,a=o.right,l=o.bottom,s=o.left;return 0===i&&0===a&&0===l&&0===s?null:o}}function Wu(){if(Ru)return xu;Ru=1;var e=Di(),t=Jo(),n=Xo(),r=Ci(),o=ti(),i=Ii(),a=xi(),l=Ri(),s=lu(),c=xs(),d=bi(),u=hi(),p=_i(),f=Li(),m=Gd(),y=ju(),h=nu(),g=Ti(),E=Bu(),_=zu(),b=ai(),T=au(),A=Yu(),O=eu();return xu={Editor:s,EditorBlock:c,EditorState:f,CompositeDecorator:r,Entity:d,EntityInstance:p,BlockMapBuilder:t,CharacterMetadata:n,ContentBlock:o,ContentState:i,RawDraftContentState:y,SelectionState:g,AtomicBlockUtils:e,KeyBindingUtil:m,Modifier:u,RichUtils:h,DefaultDraftBlockRenderMap:a,DefaultDraftInlineStyle:l,convertFromHTML:O,convertFromRaw:_,convertToRaw:E,genKey:b,getDefaultKeyBinding:T,getVisibleSelectionRect:A}}var Ku,Gu=Wu(),Vu={exports:{}};var Hu,qu=(Ku||(Ku=1,window,Vu.exports=function(e,t,n){return i={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;
32
- /*!
33
- Copyright (c) 2017 Jed Watson.
34
- Licensed under the MIT License (MIT), see
35
- http://jedwatson.github.io/classnames
36
- */!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"==i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(l[e])return l[e].exports;var t=l[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,l;e.exports=(o=n(3),i=n(5),l={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(0),o=n(1);function i(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]])}function a(e){return i(e).toList()}function l(e){if(e)return a(e).get(0)}function s(e){if(e){var t=l(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function d(e){var t=a(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function u(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function p(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(e);if(0<i.size){if(n.getIsBackward()){var l=r;r=o,o=l}for(var s=0;s<i.size;s+=1){var c=0===s?r:0,d=s===i.size-1?o:i.get(s).getText().length;t+=i.get(s).getText().slice(c,d)}}return t}function f(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function m(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return u(r.EditorState.push(e,t,"split-block"))}function y(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function h(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function g(e){var t=new o.Map({}),n=a(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return t}var E=Object(o.Map)({code:{element:"pre"}}),_=r.DefaultDraftBlockRenderMap.merge(E);function b(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function T(e,t,n){var o,a=e.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var l=e.getCurrentContent(),s=l.getBlockForKey(o),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var d=l.getBlockBefore(o);if(!d)return e;if(d.getType()!==c)return e;var u=s.getDepth();if(1===t&&u===n)return e;var p,f,m,y,h,g,E,_=Math.min(d.getDepth()+1,n),b=(f=t,m=_,y=(p=e).getSelection(),g=(h=p.getCurrentContent()).getBlockMap(),E=i(p).map((function(e){var t=e.getDepth()+f;return t=Math.max(0,Math.min(t,m)),e.set("depth",t)})),g=g.merge(E),h.merge({blockMap:g,selectionBefore:y,selectionAfter:y}));return r.EditorState.push(e,b,"adjust-depth")}function A(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):f(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!b(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return m(e);if(b(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return u(e);if(0<i)return T(e,-1,i)}}}(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),i=t.getEndOffset(),l=a(e);if(0<l.size){var s=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<l.size;t+=1){var n=0===t?o:0,r=t===l.size-1?i:l.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=l.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},s=n;s<r;s+=1)a(s)}return{v:e}}();if("object"===N(s))return s.v}return{}}function S(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=l(e),a=r;a<o;a+=1){var s=i.getEntityAt(a);if(!s){t=void 0;break}if(a===r)t=s;else if(t!==s){t=void 0;break}}return t}function M(e,t){var n,r=l(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function L(e,t,n){C[e]["".concat(e.toLowerCase(),"-").concat(n)]=I({},"".concat(t),n)}function D(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},C.color,{},C.bgcolor,{},C.fontSize,{},C.fontFamily,{CODE:C.CODE,SUPERSCRIPT:C.SUPERSCRIPT,SUBSCRIPT:C.SUBSCRIPT})}var C={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function w(e,t,n){var o=e.getSelection(),i=Object.keys(C[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),a=r.EditorState.push(e,i,"changeinline-style"),l=e.getCurrentInlineStyle();if(o.isCollapsed()&&(a=l.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),a)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)l.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var s="bgcolor"===t?"backgroundColor":t;l.has("".concat(s,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(t.toLowerCase(),"-").concat(n)),L(t,s,n))}return a}function x(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?L("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?L("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?L("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&L("fontFamily","fontFamily",e.substr(11))}))}function R(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function k(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),l=a(e);if(0<l.size){for(var s=function(e){var n=0===e?o:0,a=e===l.size-1?i:l.get(e).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var s=function(o){o===n?t.forEach((function(t){r[t]=R(l.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==R(l.get(e),t,o)&&(r[t]=void 0)}))},c=n;c<a;c+=1)s(c)},c=0;c<l.size;c+=1)s(c);return{v:r}}}();if("object"===N(n))return n.v}return{}}function j(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return b})),n.d(t,"changeDepth",(function(){return T})),n.d(t,"handleNewLine",(function(){return A})),n.d(t,"getEntityRange",(function(){return M})),n.d(t,"getCustomStyleMap",(function(){return D})),n.d(t,"toggleCustomInlineStyle",(function(){return w})),n.d(t,"getSelectionEntity",(function(){return S})),n.d(t,"extractInlineStyle",(function(){return x})),n.d(t,"removeAllInlineStyles",(function(){return j})),n.d(t,"getSelectionInlineStyle",(function(){return v})),n.d(t,"getSelectionCustomInlineStyle",(function(){return k})),n.d(t,"getSelectedBlocksMap",(function(){return i})),n.d(t,"getSelectedBlocksList",(function(){return a})),n.d(t,"getSelectedBlock",(function(){return l})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return s})),n.d(t,"getAllBlocks",(function(){return c})),n.d(t,"getSelectedBlocksType",(function(){return d})),n.d(t,"removeSelectedBlocksStyle",(function(){return u})),n.d(t,"getSelectionText",(function(){return p})),n.d(t,"addLineBreakRemovingSelection",(function(){return f})),n.d(t,"insertNewUnstyledBlock",(function(){return m})),n.d(t,"clearEditorContent",(function(){return y})),n.d(t,"setBlockData",(function(){return h})),n.d(t,"getSelectedBlocksMetadata",(function(){return g})),n.d(t,"blockRenderMap",(function(){return _}))}],r.c=l,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(l[e])return l[e].exports;var t=l[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,l;e.exports=(o=n(5),i=n(3),l={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},l=function(){return{text:"",inlines:[],entities:[],blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},d=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},u=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function m(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var y=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return _}));var h=" ",g=new RegExp("&nbsp;","g"),E=!0;function _(e,t){var n,_,b=(n=t,(_=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(g,h)))?(E=!0,{chunk:function e(t,n,o,h,g,_){var b=t.nodeName.toLowerCase();if(_){var T=_(b,t);if(T){var A=r.Entity.__create(T.type,T.mutability,T.data||{});return{chunk:d(A)}}}if("#text"===b&&"\n"!==t.textContent)return i(t,n,g);if("br"===b)return{chunk:a()};if("img"===b&&t instanceof HTMLImageElement){var O={};O.src=t.getAttribute&&t.getAttribute("src")||t.src,O.alt=t.alt,O.height=t.style.height,O.width=t.style.width,t.style.float&&(O.alignment=t.style.float);var I=r.Entity.__create("IMAGE","MUTABLE",O);return{chunk:d(I)}}if("video"===b&&t instanceof HTMLVideoElement){var N={};N.src=t.getAttribute&&t.getAttribute("src")||t.src,N.alt=t.alt,N.height=t.style.height,N.width=t.style.width,t.style.float&&(N.alignment=t.style.float);var v=r.Entity.__create("VIDEO","MUTABLE",N);return{chunk:d(v)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var S={};S.src=t.getAttribute&&t.getAttribute("src")||t.src,S.height=t.height,S.width=t.width;var M=r.Entity.__create("EMBEDDED_LINK","MUTABLE",S);return{chunk:d(M)}}var L,D=function(e,t){var n=p.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,h);D&&("ul"===b||"ol"===b?(h=b,o+=1):("unordered-list-item"!==D&&"ordered-list-item"!==D&&(h="",o=-1),E?(L=s(D,m(t)),E=!1):L=c(D,o,m(t)))),L=L||l(),n=function(e,t,n){var r,o=f[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,l=i.style.textDecoration,s=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(f.strong),"underline"===l&&e.add(f.ins),"italic"===s&&e.add(f.em)})).toOrderedSet()}return r}(b,t,n);for(var C=t.firstChild;C;){var w=e(C,n,o,h,y(C)||g,_).chunk;L=u(L,w),C=C.nextSibling}return{chunk:L}}(_,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var T=b.chunk,A=new o.OrderedMap({});T.entities&&T.entities.forEach((function(e){e&&(A=A.set(e,r.Entity.__get(e)))}));var O=0;return{contentBlocks:T.text.split("\r").map((function(e,t){var n=O+e.length,i=T&&T.inlines.slice(O,n),a=T&&T.entities.slice(O,n),l=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return O=n,new r.ContentBlock({key:Object(r.genKey)(),type:T&&T.blocks[t]&&T.blocks[t].type||"unstyled",depth:T&&T.blocks[t]&&T.blocks[t].depth,data:T&&T.blocks[t]&&T.blocks[t].data||new o.Map({}),text:e,characterList:l})})),entityMap:A}}return null}}],r.c=l,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var l={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(){return function(e,t){t.normalize(e)}}function p(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function l(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var s=[];function d(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:d(t,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?d(t,n):a.normalize=u());"[object String]"!==o(n)?d(t,n):s.push(t)}})),s.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:u()};var p,f=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(p=e).__index__=-1,p.__text_cache__=""}function f(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function m(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function y(e,t){if(!(this instanceof y))return new y(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||l.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},l,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},p(this)}y.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},y.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},y.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,l,s;if(this.re.schema_test.test(e))for((l=this.re.schema_search).lastIndex=0;null!==(t=l.exec(e));)if(o=this.testSchemaAt(e,t[2],l.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(s=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},y.prototype.pretest=function(e){return this.re.pretest.test(e)},y.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},y.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(m(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(m(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},y.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),p(this),this},y.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},y.prototype.onCompile=function(){},e.exports=y},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){var r=n(11);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n.r(t),n.d(t,"Editor",(function(){return no}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),l=n(3),s=n(4),c=n(2),d=n.n(c);function u(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var p=u((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function f(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var m,y=f((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),h=[],g={onKeyDown:function(e){h.forEach((function(t){t(e)}))},registerCallBack:function(e){h.push(e)},deregisterCallBack:function(e){h=h.filter((function(t){return t!==e}))}},E=function(){m=!0},_=function(){m=!1},b=function(){return m};function T(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function A(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function O(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function I(e){e.stopPropagation()}function N(e){return e[e.options[0]].icon}function v(e,t){if(e&&void 0===t)return e;var n={};return A(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=v(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var S=n(6),M=n.n(S),L=n(5);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var j=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(i,r.Component);var e,t,n=R(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,i=t.activeClassName,a=t.active,l=t.disabled,s=t.title;return o.a.createElement("div",{className:d()("rdw-option-wrapper",r,(C(e={},"rdw-option-active ".concat(i),a),C(e,"rdw-option-disabled",l),e)),onClick:this.onClick,"aria-selected":a,title:s},n)}}])&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}j.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},j.defaultProps={activeClassName:""},n(12);var Y=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(i,r.Component);var e,t,n=F(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,i=t.className,a=t.optionWrapperClassName,l=t.ariaLabel,s=t.onExpandEvent,c=t.title,u=this.state.highlighted,p=r.slice(1,r.length);return o.a.createElement("div",{className:d()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":l||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:s,title:c},r[0],o.a.createElement("div",{className:d()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:d()("rdw-dropdown-optionwrapper",a),onClick:I},o.a.Children.map(p,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:u===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&U(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Y.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var Q=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(i,r.Component);var e,t,n=H(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,i=t.disabled,a=t.highlighted,l=t.className,s=t.activeClassName,c=t.disabledClassName,u=t.highlightedClassName,p=t.title;return o.a.createElement("li",{className:d()("rdw-dropdownoption-default",l,(K(e={},"rdw-dropdownoption-active ".concat(s),r),K(e,"rdw-dropdownoption-highlighted ".concat(u),a),K(e,"rdw-dropdownoption-disabled ".concat(c),i),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:p},n)}}])&&G(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return(J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Q.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},Q.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var te=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J(e,t)}(i,r.Component);var e,t,n=X(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,i=e.translations;return o.a.createElement("div",{className:d()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,a){return o.a.createElement(j,{key:a,value:e,onClick:r,className:d()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||i["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,l=e.currentState,s=e.onChange,c=e.translations,u=t.className,p=t.dropdownClassName,f=t.title;return o.a.createElement(Y,{className:d()("rdw-inline-dropdown",u),optionWrapperClassName:d()(p),onChange:s,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:f},o.a.createElement("img",{src:N(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(Q,{key:n,value:e,className:d()("rdw-inline-dropdownoption",t[e].className),active:!0===l[e]||"MONOSPACE"===e&&l.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}te.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var le=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(i,r.Component);var e,t,n=ie(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,i=r.onChange,a=l.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var s="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=l.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),s);a=l.EditorState.push(a,c,"change-inline-style")}a&&i(a)},t.changeKeys=function(e){if(e){var t={};return A(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(s.getSelectionInlineStyle)(o)):{}},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(s.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentStyles,l=t.component||te;return o.a.createElement(l,{config:t,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t){return(de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}le.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var fe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(i,r.Component);var e,t,n=ue(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,i=t.currentState.blockType;return o.a.createElement("div",{className:d()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(j,{key:t,value:e.label,active:i===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.title,l=t.currentState.blockType,s=t.expanded,c=t.doExpand,u=t.onExpandEvent,p=t.doCollapse,f=t.onChange,m=t.translations,y=this.state.blockTypes.filter((function(e){return e.label===l})),h=y&&y[0]&&y[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(Y,{className:d()("rdw-block-dropdown",r),optionWrapperClassName:d()(i),onChange:f,expanded:s,doExpand:c,doCollapse:p,onExpandEvent:u,title:a||m["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,h||m["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(Q,{active:l===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();fe.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var me=fe;function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return(ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ge(e,t)}(i,r.Component);var e,t,n=Ee(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,i=r.onChange,a=l.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(s.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(s.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentBlockType,l=t.component||me,s=this.blocksTypes.find((function(e){return e.style===a}));return o.a.createElement(l,{config:t,translations:n,currentState:{blockType:s&&s.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&he(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();be.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Te=be;function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var Se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(i,r.Component);var e,t,n=Ne(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.dropdownClassName,a=t.options,l=t.title,s=e.onChange,c=e.expanded,u=e.doCollapse,p=e.onExpandEvent,f=e.doExpand,m=e.translations,y=this.props.currentState.fontSize,h=this.state.defaultFontSize;return h=Number(h),y=y||a&&0<=a.indexOf(h)&&h,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(Y,{className:d()("rdw-fontsize-dropdown",r),optionWrapperClassName:d()(i),onChange:s,expanded:c,doExpand:f,doCollapse:u,onExpandEvent:p,title:l||m["components.controls.fontsize.fontsize"]},y?o.a.createElement("span",null,y):o.a.createElement("img",{src:n,alt:""}),a.map((function(e,t){return o.a.createElement(Q,{className:"rdw-fontsize-option",active:y===e,value:e,key:t},e)}))))}}])&&Oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return(De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=we(e);if(t){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Se.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var xe=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&De(e,t)}(i,r.Component);var e,t,n=Ce(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(s.toggleCustomInlineStyle)(r,"fontSize",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(s.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(s.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontSize,l=t.component||Se,s=a&&Number(a.substring(9));return o.a.createElement(l,{config:t,translations:n,currentState:{fontSize:s},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Le(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Re(e){return(Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return(je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ue(e);if(t){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Be=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(i,r.Component);var e,t,n=Pe(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.options,l=n.title,s=t.translations,c=t.onChange,u=t.expanded,p=t.doCollapse,f=t.onExpandEvent,m=t.doExpand,y=this.props.currentState.fontFamily;return y=y||a&&e&&a.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(Y,{className:d()("rdw-fontfamily-dropdown",r),optionWrapperClassName:d()("rdw-fontfamily-optionwrapper",i),onChange:c,expanded:u,doExpand:m,doCollapse:p,onExpandEvent:f,title:l||s["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},y||s["components.controls.fontfamily.fontfamily"]),a.map((function(e,t){return o.a.createElement(Q,{active:y===e,value:e,key:t},e)}))))}}])&&ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Be.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Fe=Be;function ze(e){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ve=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(i,r.Component);var e,t,n=Ke(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(s.toggleCustomInlineStyle)(r,"fontFamily",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(s.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(s.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,l=t.component||Fe,s=a&&a.substring(11);return o.a.createElement(l,{translations:n,config:t,currentState:{fontFamily:s},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qe(e,t){return(Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$e(e);if(t){var o=$e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ve.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var Je=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qe(e,t)}(i,r.Component);var e,t,n=Ze(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,i=e.indentDisabled,a=e.outdentDisabled,l=t.options,s=t.unordered,c=t.ordered,u=t.indent,p=t.outdent,f=t.className;return o.a.createElement("div",{className:d()("rdw-list-wrapper",f),"aria-label":"rdw-list-control"},0<=l.indexOf("unordered")&&o.a.createElement(j,{value:"unordered",onClick:this.toggleBlockType,className:d()(s.className),active:"unordered"===n,title:s.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:s.icon,alt:""})),0<=l.indexOf("ordered")&&o.a.createElement(j,{value:"ordered",onClick:this.toggleBlockType,className:d()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=l.indexOf("indent")&&o.a.createElement(j,{onClick:this.indent,disabled:i,className:d()(u.className),title:u.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=l.indexOf("outdent")&&o.a.createElement(j,{onClick:this.outdent,disabled:a,className:d()(p.className),title:p.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,i=t.doCollapse,a=t.doExpand,l=t.onExpandEvent,s=t.onChange,c=t.currentState.listType,u=t.translations,p=n.options,f=n.className,m=n.dropdownClassName,y=n.title;return o.a.createElement(Y,{className:d()("rdw-list-dropdown",f),optionWrapperClassName:d()(m),onChange:s,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:l,"aria-label":"rdw-list-control",title:y||u["components.controls.list.list"]},o.a.createElement("img",{src:N(n),alt:""}),this.options.filter((function(e){return 0<=p.indexOf(e)})).map((function(t,r){return o.a.createElement(Q,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:d()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||u["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t){return(tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Je.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var ot=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(i,r.Component);var e,t,n=nt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=l.RichUtils.toggleBlockType(o,e);i&&r(i)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=Object(s.changeDepth)(o,e,4);i&&r(i)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(s.getBlockBeforeSelectedBlock)(e);return!r||!Object(s.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(s.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(s.getSelectedBlock)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(s.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,i=this.state,a=i.expanded,l=i.currentBlock,s=n.component||Je;"unordered-list-item"===l.get("type")?e="unordered":"ordered-list-item"===l.get("type")&&(e="ordered");var c=this.isIndentDisabled(),d=this.isOutdentDisabled();return o.a.createElement(s,{config:n,translations:r,currentState:{listType:e},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:d})}}])&&et(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lt(e,t){return(lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===it(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ot.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var dt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lt(e,t)}(i,r.Component);var e,t,n=st(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,i=t.center,a=t.right,l=t.justify,s=t.className,c=e.onChange,u=e.currentState.textAlignment,p=e.translations;return o.a.createElement("div",{className:d()("rdw-text-align-wrapper",s),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(j,{value:"left",className:d()(r.className),active:"left"===u,onClick:c,title:r.title||p["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(j,{value:"center",className:d()(i.className),active:"center"===u,onClick:c,title:i.title||p["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(j,{value:"right",className:d()(a.className),active:"right"===u,onClick:c,title:a.title||p["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(j,{value:"justify",className:d()(l.className),active:"justify"===u,onClick:c,title:l.title||p["components.controls.textalign.justify"]},o.a.createElement("img",{src:l.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,l=e.currentState.textAlignment,s=e.onChange,c=e.translations,u=t.options,p=t.left,f=t.center,m=t.right,y=t.justify,h=t.className,g=t.dropdownClassName,E=t.title;return o.a.createElement(Y,{className:d()("rdw-text-align-dropdown",h),optionWrapperClassName:d()(g),onChange:s,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:E||c["components.controls.textalign.textalign"]},o.a.createElement("img",{src:l&&t[l]&&t[l].icon||N(t),alt:""}),0<=u.indexOf("left")&&o.a.createElement(Q,{value:"left",active:"left"===l,className:d()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.left"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=u.indexOf("center")&&o.a.createElement(Q,{value:"center",active:"center"===l,className:d()("rdw-text-align-dropdownOption",f.className),title:f.title||c["components.controls.textalign.center"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=u.indexOf("right")&&o.a.createElement(Q,{value:"right",active:"right"===l,className:d()("rdw-text-align-dropdownOption",m.className),title:m.title||c["components.controls.textalign.right"]},o.a.createElement("img",{src:m.icon,alt:""})),0<=u.indexOf("justify")&&o.a.createElement(Q,{value:"justify",active:"justify"===l,className:d()("rdw-text-align-dropdownOption",y.className),title:y.title||c["components.controls.textalign.justify"]},o.a.createElement("img",{src:y.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&at(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e,t){return(ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}dt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ht=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ft(e,t)}(i,r.Component);var e,t,n=mt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(s.setBlockData)(r,{"text-align":e}):Object(s.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(s.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,l=t.component||dt;return o.a.createElement(l,{config:t,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&pt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function gt(e){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _t(e,t){return(_t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tt(e);if(t){var o=Tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ht.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var At=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_t(e,t)}(i,r.Component);var e,t,n=bt(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,i=n.colors,a=t.currentState,l=a.color,s=a.bgColor,c=t.translations,u=e.state.currentStyle,p="color"===u?l:s;return o.a.createElement("div",{className:d()("rdw-colorpicker-modal",r),onClick:I},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:d()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===u}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),o.a.createElement("span",{className:d()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===u}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(t,n){return o.a.createElement(j,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:p===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,l=e.onExpandEvent,s=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||s["components.controls.colorpicker.colorpicker"]},o.a.createElement(j,{onClick:l,className:d()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&Et(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();At.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Ot=At;function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var o=Mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(i,r.Component);var e,t,n=St(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,o=r.editorState,i=r.onChange,a=Object(s.toggleCustomInlineStyle)(o,e,n);a&&i(a),t.doCollapse()};var r=e.editorState,o=e.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(s.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(s.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=a,o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(s.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(s.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,l=r.expanded,s=t.component||Ot,c=i&&i.substring(6),d=a&&a.substring(8);return o.a.createElement(s,{config:t,translations:n,onChange:this.toggleColor,expanded:l,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:d}})}}])&&Nt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Lt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Dt=Lt,Ct=n(7),wt=n.n(Ct);function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kt(e,t){return(kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pt(e);if(t){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var Ut=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(i,r.Component);var e,t,n=jt(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,i=this.state,a=i.linkTitle,l=i.linkTarget,s=i.linkTargetOption;return o.a.createElement("div",{className:d()("rdw-link-modal",t),onClick:I},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:l}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===s,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!l||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,i=t.unlink,a=t.className,l=e.currentState,s=e.expanded,c=e.translations,u=this.state.showModal;return o.a.createElement("div",{className:d()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(j,{value:"unordered-list-item",className:d()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":u,title:r.title||c["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(j,{disabled:!l.link,value:"ordered-list-item",className:d()(i.className),onClick:this.removeLink,title:i.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),s&&u?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,i=e.doExpand,a=e.onChange,l=e.config,s=e.currentState,c=e.translations,u=l.options,p=l.link,f=l.unlink,m=l.className,y=l.dropdownClassName,h=l.title,g=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:h},o.a.createElement(Y,{className:d()("rdw-link-dropdown",m),optionWrapperClassName:d()(y),onChange:a,expanded:t&&!g,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:N(l),alt:""}),0<=u.indexOf("link")&&o.a.createElement(Q,{onClick:this.forceExpandAndShowModal,className:d()("rdw-link-dropdownoption",p.className),title:p.title||c["components.controls.link.link"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=u.indexOf("unlink")&&o.a.createElement(Q,{onClick:this.removeLink,disabled:!s.link,className:d()("rdw-link-dropdownoption",f.className),title:f.title||c["components.controls.link.unlink"]},o.a.createElement("img",{src:f.icon,alt:""}))),t&&g?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Rt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Ut.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var Bt=Ut;function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e,t){return(Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(e){var t=Qt.match(e.target);return Vt(Vt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Qt=wt()(),Zt=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yt(e,t)}(i,r.Component);var e,t,n=Wt(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var i=t.props.config.linkCallback;if("link"===e){var a=(i||qt)({title:n,target:r,targetOption:o});t.addLink(a.title,a.target,a.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(s.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(s.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,i=n.getSelection();if(o){var a=Object(s.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(l.RichUtils.toggleLink(n,i,null))}},t.addLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,c=t.state.currentEntity,d=i.getSelection();if(c){var u=Object(s.getEntityRange)(i,c);d=d.getIsBackward()?d.merge({anchorOffset:u.end,focusOffset:u.start}):d.merge({anchorOffset:u.start,focusOffset:u.end})}var p=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),f=l.Modifier.replaceText(i.getCurrentContent(),d,"".concat(e),i.getCurrentInlineStyle(),p),m=l.EditorState.push(i,f,"insert-characters");d=m.getSelection().merge({anchorOffset:d.get("anchorOffset")+e.length,focusOffset:d.get("anchorOffset")+e.length}),m=l.EditorState.acceptSelection(m,d),f=l.Modifier.insertText(m.getCurrentContent(),d," ",m.getCurrentInlineStyle(),void 0),a(l.EditorState.push(m,f,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(s.getSelectionEntity)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(s.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,l=i.selectionText,s=t.component||Bt;return o.a.createElement(s,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:l},onChange:this.onChange})}}])&&zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Zt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var $t=Zt;function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function en(e,t){return(en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var rn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}(i,r.Component);var e,t,n=tn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,i=this.props,a=i.config.popupClassName,l=i.doCollapse,s=i.translations;return o.a.createElement("div",{className:d()("rdw-embedded-modal",a),onClick:I},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},s["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:s["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},s["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:l},s["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,l=e.onExpandEvent,s=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(j,{className:d()(r),value:"unordered-list-item",onClick:l,title:i||s["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&Xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();rn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var on=rn;function an(e){return(an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sn(e,t){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dn(e);if(t){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===an(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var un=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sn(e,t)}(i,r.Component);var e,t,n=cn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,s=o.config.embedCallback,c=s?s(t):t,d=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();a(l.AtomicBlockUtils.insertAtomicBlock(i,d," ")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||on;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ln(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();un.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var pn=un;function fn(e){return(fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(e,t){return(yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gn(e);if(t){var o=gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function gn(e){return(gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var En=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yn(e,t)}(i,r.Component);var e,t,n=hn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=i,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:d()("rdw-emoji-modal",n),onClick:I},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,l=e.onExpandEvent,s=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||s["components.controls.emoji.emoji"]},o.a.createElement(j,{className:d()(r),value:"unordered-list-item",onClick:l},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&mn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();En.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var _n=En;function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e,t){return(An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function On(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=In(e);if(t){var o=In(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(i,r.Component);var e,t,n=On(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=l.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(l.EditorState.push(r,i,"insert-characters")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||_n;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Tn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(e,t){return(Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Nn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var wn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ln(e,t)}(i,r.Component);var e,t,n=Dn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];e.uploadImage(i)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,i=o.height,a=o.width,l=e.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),l(n,i,a,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,i=e.dragEnter,a=e.height,l=e.width,s=e.alt,c=this.props,u=c.config,p=u.popupClassName,f=u.uploadCallback,m=u.uploadEnabled,y=u.urlEnabled,h=u.previewImage,g=u.inputAccept,E=u.alt,_=c.doCollapse,b=c.translations;return o.a.createElement("div",{className:d()("rdw-image-modal",p),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},m&&f&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},b["components.controls.image.fileUpload"],o.a.createElement("span",{className:d()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),y&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},b["components.controls.image.byURL"],o.a.createElement("span",{className:d()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:d()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},h&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||b["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:g,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:b["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),E.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},E.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!a||!l||E.mandatory&&!s},b["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:_},b["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(vn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,l=e.onExpandEvent,s=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(j,{className:d()(r),value:"unordered-list-item",onClick:l,title:i||s["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&Mn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var xn=wn;function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t){return(jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Un(e);if(t){var o=Un(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jn(e,t)}(i,r.Component);var e,t,n=Pn(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var i=t.props,a=i.editorState,s=i.onChange,c={src:e,height:n,width:r};i.config.alt.present&&(c.alt=o);var d=a.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();s(l.AtomicBlockUtils.insertAtomicBlock(a,d," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||xn;return o.a.createElement(i,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&kn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Fn(e){var t=e.config,n=e.onChange,r=e.translations,i=t.icon,a=t.className,l=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(j,{className:d()(a),onClick:n,title:l||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}Bn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var zn=Bn;n(31),Fn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var Yn=Fn;function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hn(e);if(t){var o=Hn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Hn(e){return(Hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qn=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(i,r.Component);var e,t,n=Vn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=l.Modifier.removeInlineStyle(t,e.getSelection(),n)})),A(Object(s.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=l.Modifier.removeInlineStyle(t,e.getSelection(),r))})),l.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Yn;return o.a.createElement(i,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&Kn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Qn(e){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return($n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Qn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}qn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var er=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$n(e,t)}(i,r.Component);var e,t,n=Jn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=i,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,l=e.currentState,s=l.undoDisabled,c=l.redoDisabled,u=e.translations,p=t.options,f=t.undo,m=t.redo,y=t.className,h=t.dropdownClassName,g=t.title;return o.a.createElement(Y,{className:d()("rdw-history-dropdown",y),optionWrapperClassName:d()(h),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:g||u["components.controls.history.history"]},o.a.createElement("img",{src:N(t),alt:""}),0<=p.indexOf("undo")&&o.a.createElement(Q,{value:"undo",onClick:this.onChange,disabled:s,className:d()("rdw-history-dropdownoption",f.className),title:f.title||u["components.controls.history.undo"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("redo")&&o.a.createElement(Q,{value:"redo",onClick:this.onChange,disabled:c,className:d()("rdw-history-dropdownoption",m.className),title:m.title||u["components.controls.history.redo"]},o.a.createElement("img",{src:m.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,i=t.redo,a=t.className,l=e.currentState,s=l.undoDisabled,c=l.redoDisabled,u=e.translations;return o.a.createElement("div",{className:d()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(j,{value:"undo",onClick:this.onChange,className:d()(r.className),disabled:s,title:r.title||u["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(j,{value:"redo",onClick:this.onChange,className:d()(i.className),disabled:c,title:i.title||u["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Zn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function tr(e){return(tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rr(e,t){return(rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ir(e);if(t){var o=ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function ir(e){return(ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}er.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ar=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}(i,r.Component);var e,t,n=or(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=l.EditorState[e](r);i&&o(i)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,a=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,l=r.expanded,s=t.component||er;return o.a.createElement(s,{config:t,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:l,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&nr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();ar.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var lr={inline:le,blockType:Te,fontSize:xe,fontFamily:Ve,list:ot,textAlign:ht,colorPicker:Dt,link:$t,embedded:pn,emoji:Nn,image:zn,remove:qn,history:ar},sr=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,cr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function dr(e){return String(e).replace(sr,"").match(cr)?e:"#"}function ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fr(e,t){return(fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yr(e);if(t){var o=yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function yr(e){return(yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hr(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function gr(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fr(e,t)}(a,r.Component);var e,t,i=mr(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(dr(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=a,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,i=e.contentState.getEntity(r).getData(),a=i.url,l=i.targetOption,s=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:dr(a),target:l},t),s&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&pr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},t}function Er(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}n(33),n(34);var _r=Er((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,i=e.contentState.getEntity(n).getData(),a=i.url,l=i.value;return o.a.createElement("a",{href:a||l,className:d()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));_r.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var br=_r;function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ar(e,t){return(Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ir(e);if(t){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t,n){return t&&Nr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Mr=vr((function e(t){var n=this;Sr(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,l=(0,r.getEditorState)().getSelection();if(l.get("anchorKey")===e.get("key")&&l.get("anchorKey")===l.get("focusKey")){var s=e.getText(),c=(s=s.substr(0,l.get("focusOffset")===s.length-1?s.length:l.get("focusOffset")+1)).lastIndexOf(o+i),d=o+i;if((void 0===c||c<0)&&s[0]===i&&(c=0,d=i),0<=c){var u=s.substr(c+d.length,s.length);a().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(u):0<=e.value.toLowerCase().indexOf(u&&u.toLowerCase()))}))&&t(0===c?0:c+1,s.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ar(e,t)}(n,r.Component);var e=Or(n);function n(){var r;Sr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=e.call.apply(e,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,_()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,i=t.separator,a=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,o){var i=o.value,a=o.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),d=Object(s.getSelectedBlock)(e).getText(),u=e.getSelection().focusOffset,p=(d.lastIndexOf(n+r,u)||0)+1,f=!1;d.length===p+1&&(u=d.length)," "===d[u]&&(f=!0);var m=e.getSelection().merge({anchorOffset:p,focusOffset:u}),y=l.EditorState.acceptSelection(e,m),h=l.Modifier.replaceText(y.getCurrentContent(),m,"".concat(r).concat(i),y.getCurrentInlineStyle(),c);y=l.EditorState.push(y,h,"insert-characters"),f||(m=y.getSelection().merge({anchorOffset:p+i.length+r.length,focusOffset:p+i.length+r.length}),y=l.EditorState.acceptSelection(y,m),h=l.Modifier.insertText(y.getCurrentContent(),m," ",y.getCurrentInlineStyle(),void 0)),t(l.EditorState.push(y,h,"insert-characters"))}(n,o,i,a,c)},r}return vr(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:e=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),g.registerCallBack(this.onEditorKeyDown),E(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){g.deregisterCallBack(this.onEditorKeyDown),_(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,l=t.dropdownClassName,s=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),a&&o.a.createElement("span",{className:d()("rdw-suggestion-dropdown",l),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:d()("rdw-suggestion-option",s,{"rdw-suggestion-option-active":n===i})},t.text)}))))}}]),n}()).propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=t.separator,c=t.trigger,u=t.getSuggestions,p=t.onChange,f=t.getEditorState,m=t.getWrapperRef,y=t.caseSensitive,h=t.dropdownClassName,b=t.optionClassName,T=t.modalHandler;this.config={separator:i,trigger:c,getSuggestions:u,onChange:p,getEditorState:f,getWrapperRef:m,caseSensitive:y,dropdownClassName:h,optionClassName:b,modalHandler:T}})),Lr=function(e){return[new br(e.mentionClassName).getMentionDecorator(),new Mr(e).getSuggestionDecorator()]};function Dr(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Cr(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var wr=Dr((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:d()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:a.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,l=r.substr(0,a);l&&0<l.length&&(t(i,i+l.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "})),xr=function(e){return new wr(e).getHashtagDecorator()};Cr.propTypes={block:a.a.object,contentState:a.a.object};var Rr=Cr;function kr(e){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pr(e,t){return(Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Br(e);if(t){var o=Br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function Br(e){return(Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var Fr=function(e){var t;return(t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pr(e,t)}(a,r.Component);var t,n,i=Ur(a);function a(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),e.onChange(l.EditorState.push(e.getEditorState(),i,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=a,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:d()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(j,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(j,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(j,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,i=this.state.hovered,a=e.isReadOnly,l=e.isImageAlignmentEnabled,s=r.getEntity(n.getEntityAt(0)).getData(),c=s.src,u=s.alignment,p=s.height,f=s.width,m=s.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:d()("rdw-image-alignment",{"rdw-image-left":"left"===u,"rdw-image-right":"right"===u,"rdw-image-center":!u||"none"===u})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:c,alt:m,style:{height:p,width:f}}),!a()&&i&&l()?this.renderAlignmentOptions(u):void 0))}}])&&jr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},t},zr=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Fr(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Rr,editable:!1}}}},Yr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Wr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gr(){return(Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e){return function(e){if(Array.isArray(e))return Zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jr(e,t){return(Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eo(e);if(t){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}function eo(e){return(eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var to=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jr(e,t)}(i,r.Component);var e,t,n=Xr(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||b()&&e.preventDefault(),Object(l.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(s.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(s.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),O(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(Qr(t.props.customDecorators),[{strategy:hr,component:gr({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,Qr(Lr(Hr(Hr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(xr(t.props.hashtag)),new l.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(l.convertToRaw)(e.getCurrentContent())),o&&o(Object(l.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(O(t.props,"editorState"))t.props.editorState&&(n=l.EditorState.set(t.props.editorState,{decorator:e}));else if(O(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=l.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(O(t.props,"contentState")){if(t.props.contentState){var r=Object(l.convertFromRaw)(t.props.contentState);n=l.EditorState.createWithContent(r,e),n=l.EditorState.moveSelectionToEnd(n)}}else if(O(t.props,"defaultContentState")||O(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(l.convertFromRaw)(o),n=l.EditorState.createWithContent(o,e),n=l.EditorState.moveSelectionToEnd(n))}return n||l.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return Hr(Hr({},Object(s.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(l.convertFromRaw)(e),r=t.state.editorState;return r=l.EditorState.push(r,n,"insert-characters"),l.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var i=l.RichUtils.handleKeyCommand(r,e);if(i)return t.onChange(i),!0}return!1},t.handleReturn=function(e){if(b())return!0;var n=t.state.editorState,r=Object(s.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(e,n,r,t.onChange):!a&&function(e,t,n,r){var o=Object(s.getSelectedBlock)(n);if(o&&"code"===o.type){var i=l.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(l.EditorState.push(n,i,"insert-characters")),!0}if(t){var a=M()(t),c=n.getCurrentContent();return a.entityMap.forEach((function(e,t){c=c.mergeEntityData(t,e)})),c=l.Modifier.replaceWithFragment(c,n.getSelection(),new L.List(a.contentBlocks)),r(l.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=v(Yr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new p,t.focusHandler=new y,t.blockRendererFn=zr({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var a=t.createEditorState(t.compositeDecorator);return Object(s.extractInlineStyle)(a),t.state={editorState:a,editorFocused:!1,toolbar:r},t}return e=i,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=v(Yr,i);t.toolbar=i}if(O(this.props,"editorState")&&r!==e.editorState)t.editorState=r?l.EditorState.set(r,{decorator:this.compositeDecorator}):l.EditorState.createEmpty(this.compositeDecorator);else if(O(this.props,"contentState")&&o!==e.contentState)if(o){var a=this.changeEditorState(o);a&&(t.editorState=a)}else t.editorState=l.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(s.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,i=this.props,a=i.locale,c=i.localization,u=c.locale,p=c.translations,f=i.toolbarCustomButtons,m=i.toolbarOnFocus,y=i.toolbarClassName,h=i.toolbarHidden,E=i.editorClassName,_=i.wrapperClassName,b=i.toolbarStyle,A=i.editorStyle,O=i.wrapperStyle,I=i.uploadCallback,N=i.ariaLabel,v={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:Hr(Hr({},Wr[a||u]),p)},S=n||this.focusHandler.isInputFocused()||!m;return o.a.createElement("div",{id:this.wrapperId,className:d()(_,"rdw-editor-wrapper"),style:O,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!h&&o.a.createElement("div",{className:d()("rdw-editor-toolbar",y),style:Hr({visibility:S?"visible":"hidden"},b),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&m).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=lr[e],i=r[e];return"image"===e&&I&&(i.uploadCallback=I),o.a.createElement(n,Gr({key:t},v,{config:i}))})),f&&f.map((function(e,t){return o.a.cloneElement(e,Hr({key:t},v))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:d()(E,"rdw-editor-main"),style:A,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:g.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(l.Editor,Gr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:T,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:N||"rdw-editor",blockRenderMap:s.blockRenderMap},this.editorProps))))}}])&&$r(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();to.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},to.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var no=to}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}(s,Wu(),$o())),Vu.exports),Qu={exports:{}};var Zu=(Hu||(Hu=1,Qu.exports=function(){function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}function t(e){return null==e||0===e.length||0===e.trim().length}var n={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function r(e){return e&&n[e]}function o(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function i(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",l=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(l+a))>=0&&(i=i.substr(o+(l+a).length),r+=o+l.length),o>=0){var s=i.indexOf(l)>=0?i.indexOf(l):i.length,c=i.substr(0,s);c&&c.length>0&&n.push({offset:r,length:c.length+a.length,type:"HASHTAG"}),r+=a.length}return n}function a(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(i(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r<e.text.length&&n.push({start:r,end:e.text.length}),n}function l(e){return!(!(e.entityRanges.length>0)||!t(e.text)&&"atomic"!==e.type)}function s(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o<n;o+=1)0===e.style.indexOf("color-")?r.COLOR[o]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[o]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[o]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=e.style.substring(11):r[e.style]&&(r[e.style][o]=!0)})),r}function c(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function d(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach((function(t){r=r&&e[t][n]===e[t][n-1]})):r=!1,r}function u(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}function p(e){return e&&e.length>0?e.map((function(e){switch(e){case"\n":return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return e}})).join(""):""}function f(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}function m(e,t,n,r){var o=e[t];if("function"==typeof r){var i=r(o,n);if(i)return i}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===o.type){var l=o.data.alignment;return l&&l.length?'<div style="text-align:'.concat(l,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function y(e,t,n,r){var o=[],i=Array.from(e.text);if(i.length>0)for(var a,l=s(e),u=n;u<r;u+=1)u!==n&&d(l,t,u)?(a.text.push(i[u]),a.end=u+1):(a={styles:c(l,u),text:[i[u]],start:u,end:u+1},o.push(a));return o}function h(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" ","&nbsp;");return t}return e}function g(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n),"&nbsp;").concat(t.substring(n+1));return t}return e}function E(t){var n=t.styles,r=p(t.text);return e(n,(function(e,t){r=u(e,r)})),r}function _(e,t){var n=y(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],t.start,t.end),r="";return n.forEach((function(e){r+=E(e)})),r=f(t.styles,r)}function b(e,t,n,r){var o=[];y(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(t){o.push(_(e,t))}));var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=m(t,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}function T(e,t,n,r){var o=[],i=a(e,n);return i.forEach((function(n,a){var l=b(e,t,n,r);0===a&&(l=h(l)),a===i.length-1&&(l=g(l)),o.push(l)})),o.join("")}function A(e,t,n,i,a){var s=[];if(l(e))s.push(m(t,e.entityRanges[0].key,void 0,a));else{var c=r(e.type);if(c){s.push("<".concat(c));var d=o(e.data);d&&s.push(' style="'.concat(d,'"')),i&&s.push(' dir = "auto"'),s.push(">"),s.push(T(e,t,n,a)),s.push("</".concat(c,">"))}}return s.push("\n"),s.join("")}function O(e){return"unordered-list-item"===e||"ordered-list-item"===e}function I(e,t,n,i,a){var l,s=[],c=[];return e.forEach((function(e){var d=!1;if(l?l.type!==e.type?(s.push("</".concat(r(l.type),">\n")),s.push("<".concat(r(e.type),">\n"))):l.depth===e.depth?c&&c.length>0&&(s.push(I(c,t,n,i,a)),c=[]):(d=!0,c.push(e)):s.push("<".concat(r(e.type),">\n")),!d){s.push("<li");var u=o(e.data);u&&s.push(' style="'.concat(u,'"')),i&&s.push(' dir = "auto"'),s.push(">"),s.push(T(e,t,n,a)),s.push("</li>\n"),l=e}})),c&&c.length>0&&s.push(I(c,t,n,i,a)),s.push("</".concat(r(l.type),">\n")),s.join("")}function N(e,t,n,r){var o=[];if(e){var i=e.blocks,a=e.entityMap;if(i&&i.length>0){var l=[];if(i.forEach((function(e){if(O(e.type))l.push(e);else{if(l.length>0){var i=I(l,a,t,r);o.push(i),l=[]}var s=A(e,a,t,n,r);o.push(s)}})),l.length>0){var s=I(l,a,t,n,r);o.push(s),l=[]}}}return o.join("")}return N}()),Qu.exports),$u=lt(Zu);function Ju(e,t,n){for(var r=e.text,o=e.characterMeta,i=t.length,a=n.length,l=[],s=o.slice(0,0),c=0,d=r.indexOf(t);-1!==d;)l.push(r.slice(c,d)+n),s=s.concat(o.slice(c,d),Xu(o.slice(d,d+1),a)),c=d+i,d=r.indexOf(t,c);return l.push(r.slice(c)),s=s.concat(o.slice(c)),{text:l.join(""),characterMeta:s}}function Xu(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}var ep=$o(),tp="unstyled",np="header-one",rp="header-two",op="header-three",ip="header-four",ap="header-five",lp="header-six",sp="unordered-list-item",cp="ordered-list-item",dp="blockquote",up="code-block",pp="atomic",fp="LINK",mp="IMAGE",yp="BOLD",hp="CODE",gp="ITALIC",Ep="STRIKETHROUGH",_p="UNDERLINE";new ep.OrderedSet;var bp={a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1,acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1},Tp={area:1,base:1,br:1,col:1,colgroup:1,command:1,dl:1,embed:1,head:1,hgroup:1,hr:1,iframe:1,img:1,input:1,keygen:1,link:1,meta:1,ol:1,optgroup:1,option:1,param:1,script:1,select:1,source:1,style:1,table:1,tbody:1,textarea:1,tfoot:1,thead:1,title:1,tr:1,track:1,ul:1,wbr:1,basefont:1,dialog:1,dir:1,isindex:1},Ap={img:1};function Op(e){return Op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Op(e)}function Ip(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function Np(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function vp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sp=/^data:/i,Mp=ep.OrderedSet(),Lp=new Gu.ContentBlock({key:Gu.genKey(),text:"",type:tp,characterList:ep.List(),depth:0}),Dp=/(\r\n|\r|\n)/g,Cp="\r",wp=/^data-([a-z0-9-]+)$/,xp={a:{href:"url",rel:"rel",target:"target",title:"title"},img:{src:"src",alt:"alt",width:"width",height:"height"}},Rp=function(e,t){var n={};if(xp.hasOwnProperty(e))for(var r=xp[e],o=0;o<t.attributes.length;o++){var i=t.attributes[o],a=i.name,l=i.value;if("string"==typeof l){var s=l;if(r.hasOwnProperty(a))n[r[a]]=s;else wp.test(a)&&(n[a]=s)}}return n},kp={a:function(e,t,n){var r,o=Rp(t,n);if(null!=(r=o.url)&&!r.match(Sp))return e.createEntity(fp,o)},img:function(e,t,n){var r=Rp(t,n);if(null!=r.src)return e.createEntity(mp,r)}},jp=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vp(this,"contentStateForEntities",void 0),vp(this,"blockStack",void 0),vp(this,"blockList",void 0),vp(this,"depth",void 0),vp(this,"options",void 0),vp(this,"inlineCreators",{Style:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return{type:"STYLE",style:e}})),Entity:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return{type:"ENTITY",entityKey:t.createEntity(e,Pp(n),r)}}}),this.options=n,this.contentStateForEntities=Gu.ContentState.createFromBlockArray([]),this.blockStack=[],this.blockList=[],this.depth=0}return Np(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach((function(e){var n=function(e){var t="",n=ep.Seq();return e.forEach((function(e){t+=e.text,n=n.concat(e.characterMeta)})),{text:t,characterMeta:n}}(e.textFragments),r=n.text,o=n.characterMeta,i=!1;if(r===Cp&&(i=!0,r=""),"pre"===e.tagName){var a=function(e,t){"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1));return{text:e,characterMeta:t}}(r,o);r=a.text,o=a.characterMeta}else{var l=function(e,t){e=e.replace(/[ \t\n]/g," ");var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e,t);e=n.text,t=n.characterMeta;var r=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e,t);e=r.text,t=r.characterMeta;var o=e.length;for(;o--;)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=Ju({text:e,characterMeta:t},"\r ",Cp);e=i.text,t=i.characterMeta;var a=Ju({text:e,characterMeta:t}," \r",Cp);return e=a.text,t=a.characterMeta,{text:e,characterMeta:t}}(r,o);r=l.text,o=l.characterMeta}((r=r.split(Cp).join("\n")).length||i)&&t.push(new Gu.ContentBlock({key:Gu.genKey(),text:r,type:e.type,characterList:o.toList(),depth:e.depth,data:e.data?ep.Map(e.data):ep.Map()}))})),t.length||(t=[Lp]),Gu.ContentState.createFromBlockArray(t,this.contentStateForEntities.getEntityMap())}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?cp:sp;case"blockquote":return dp;case"h1":return np;case"h2":return rp;case"h3":return op;case"h4":return ip;case"h5":return ap;case"h6":return lp;case"pre":return up;case"figure":return pp;default:return tp}}},{key:"processBlockElement",value:function(e){if(e){var t,n,r=this.options.customBlockFn,o=e.nodeName.toLowerCase();if(r){var i=r(e);null!=i&&(t=i.type,n=i.data)}var a=!0;if(null==t&&(a=!1,t=this.getBlockTypeFromTagName(o)),t===up){var l=e.getAttribute("data-language");l&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ip(n,!0).forEach((function(t){vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ip(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{language:l}))}var s=function(e){switch(e){case sp:case cp:return!0;default:return!1}}(t),c=!Tp.hasOwnProperty(o);if(!a&&t===tp){var d=this.blockStack.slice(-1)[0];d&&(t=d.type)}var u={tagName:o,textFragments:[],type:t,styleStack:[Mp],entityStack:[null],depth:s?this.depth:0,data:n};c&&(this.blockList.push(u),s&&(this.depth+=1)),this.blockStack.push(u),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),c&&s&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],o=n.entityStack.slice(-1)[0],i=this.options.customInlineFn,a=i?i(e,this.inlineCreators):null;if(null!=a)switch(a.type){case"STYLE":r=r.add(a.style);break;case"ENTITY":o=a.entityKey}else r=function(e,t,n){switch(t){case"b":case"strong":return e.add(yp);case"i":case"em":return e.add(gp);case"u":case"ins":return e.add(_p);case"code":return e.add(hp);case"s":case"del":return e.add(Ep);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),kp.hasOwnProperty(t)&&(o=kp[t](this,t,e)||o);n.styleStack.push(r),n.entityStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),Ap.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(Cp)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(Dp,"\n")).split("​").join(Cp),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],o=Gu.CharacterMetadata.create({style:n,entity:r}),i=ep.Repeat(o,e.length);t.textFragments.push({text:e,characterMeta:i})}},{key:"processNode",value:function(e){if(1===e.nodeType){var t=e,n=t.nodeName.toLowerCase();bp.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else 3===e.nodeType&&this.processTextNode(e)}},{key:"createEntity",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return this.contentStateForEntities=this.contentStateForEntities.createEntity(e,n,t),this.contentStateForEntities.getLastCreatedEntityKey()}}]),e}();function Pp(e){var t={};if(null!==e&&"object"===Op(e)&&!Array.isArray(e))for(var n=e,r=0,o=Object.keys(n);r<o.length;r++){var i=o[r],a=n[i];"string"==typeof a&&(t[i]=a)}return t}function Up(e){var t;"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement&&(t.documentElement.innerHTML=e);return t.body||t.createElement("body")}function Bp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fp={};function zp(e,t){var n=t||Fp,r=n.parser,o=Bp(n,["parser"]);return null==r&&(r=Up),function(e,t){return new jp(t).process(e)}(r(e),o)}se('.rdw-option-wrapper {\n border: 1px solid #F1F1F1;\n padding: 5px;\n min-width: 25px;\n height: 20px;\n border-radius: 2px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n.rdw-option-wrapper:hover {\n box-shadow: 1px 1px 0px #BFBDBD;\n}\n.rdw-option-wrapper:active {\n box-shadow: 1px 1px 0px #BFBDBD inset;\n}\n.rdw-option-active {\n box-shadow: 1px 1px 0px #BFBDBD inset;\n}\n.rdw-option-disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.rdw-dropdown-wrapper {\n height: 30px;\n background: white;\n cursor: pointer;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n margin: 0 3px;\n text-transform: capitalize;\n background: white;\n}\n.rdw-dropdown-wrapper:focus {\n outline: none;\n}\n.rdw-dropdown-wrapper:hover {\n box-shadow: 1px 1px 0px #BFBDBD;\n background-color: #FFFFFF;\n}\n.rdw-dropdown-wrapper:active {\n box-shadow: 1px 1px 0px #BFBDBD inset;\n}\n.rdw-dropdown-carettoopen {\n height: 0px;\n width: 0px;\n position: absolute;\n top: 35%;\n right: 10%;\n border-top: 6px solid black;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n}\n.rdw-dropdown-carettoclose {\n height: 0px;\n width: 0px;\n position: absolute;\n top: 35%;\n right: 10%;\n border-bottom: 6px solid black;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n}\n.rdw-dropdown-selectedtext {\n display: flex;\n position: relative;\n height: 100%;\n align-items: center;\n padding: 0 5px;\n}\n.rdw-dropdown-optionwrapper {\n z-index: 100;\n position: relative;\n border: 1px solid #F1F1F1;\n width: 98%;\n background: white;\n border-radius: 2px;\n margin: 0;\n padding: 0;\n max-height: 250px;\n overflow-y: scroll;\n}\n.rdw-dropdown-optionwrapper:hover {\n box-shadow: 1px 1px 0px #BFBDBD;\n background-color: #FFFFFF;\n}\n\n.rdw-dropdownoption-default {\n min-height: 25px;\n display: flex;\n align-items: center;\n padding: 0 5px;\n}\n.rdw-dropdownoption-highlighted {\n background: #F1F1F1;\n}\n.rdw-dropdownoption-active {\n background: #f5f5f5;\n}\n.rdw-dropdownoption-disabled {\n opacity: 0.3;\n cursor: default;\n}\n\n.rdw-inline-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-inline-dropdown {\n width: 50px;\n}\n.rdw-inline-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-block-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-block-dropdown {\n width: 110px;\n}\n\n.rdw-fontsize-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-fontsize-dropdown {\n min-width: 40px;\n}\n.rdw-fontsize-option {\n display: flex;\n justify-content: center;\n}\n\n.rdw-fontfamily-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-fontfamily-dropdown {\n width: 115px;\n}\n.rdw-fontfamily-placeholder {\n white-space: nowrap;\n max-width: 90px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.rdw-fontfamily-optionwrapper {\n width: 140px;\n}\n\n.rdw-list-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-list-dropdown {\n width: 50px;\n z-index: 90;\n}\n.rdw-list-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n\n.rdw-text-align-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-text-align-dropdown {\n width: 50px;\n z-index: 90;\n}\n.rdw-text-align-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n.rdw-right-aligned-block {\n text-align: right;\n}\n.rdw-left-aligned-block {\n text-align: left !important;\n}\n.rdw-center-aligned-block {\n text-align: center !important;\n}\n.rdw-justify-aligned-block {\n text-align: justify !important;\n}\n.rdw-right-aligned-block > div {\n display: inline-block;\n}\n.rdw-left-aligned-block > div {\n display: inline-block;\n}\n.rdw-center-aligned-block > div {\n display: inline-block;\n}\n.rdw-justify-aligned-block > div {\n display: inline-block;\n}\n\n.rdw-colorpicker-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap\n}\n.rdw-colorpicker-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 175px;\n height: 175px;\n border: 1px solid #F1F1F1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #BFBDBD;\n}\n.rdw-colorpicker-modal-header {\n display: flex;\n padding-bottom: 5px;\n}\n.rdw-colorpicker-modal-style-label {\n font-size: 15px;\n width: 50%;\n text-align: center;\n cursor: pointer;\n padding: 0 10px 5px;\n}\n.rdw-colorpicker-modal-style-label-active {\n border-bottom: 2px solid #0a66b7;\n}\n.rdw-colorpicker-modal-options {\n margin: 5px auto;\n display: flex;\n width: 100%;\n height: 100%;\n flex-wrap: wrap;\n overflow: scroll;\n}\n.rdw-colorpicker-cube {\n width: 22px;\n height: 22px;\n border: 1px solid #F1F1F1;\n}\n.rdw-colorpicker-option {\n margin: 3px;\n padding: 0;\n min-height: 20px;\n border: none;\n width: 22px;\n height: 22px;\n min-width: 22px;\n box-shadow: 1px 2px 1px #BFBDBD inset;\n}\n.rdw-colorpicker-option:hover {\n box-shadow: 1px 2px 1px #BFBDBD;\n}\n.rdw-colorpicker-option:active {\n box-shadow: -1px -2px 1px #BFBDBD;\n}\n.rdw-colorpicker-option-active {\n box-shadow: 0px 0px 2px 2px #BFBDBD;\n}\n\n.rdw-link-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap\n}\n.rdw-link-dropdown {\n width: 50px;\n}\n.rdw-link-dropdownOption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n.rdw-link-dropdownPlaceholder {\n margin-left: 8px;\n}\n.rdw-link-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n height: 205px;\n border: 1px solid #F1F1F1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #BFBDBD;\n}\n.rdw-link-modal-label {\n font-size: 15px;\n}\n.rdw-link-modal-input {\n margin-top: 5px;\n border-radius: 2px;\n border: 1px solid #F1F1F1;\n height: 25px;\n margin-bottom: 15px;\n padding: 0 5px;\n}\n.rdw-link-modal-input:focus {\n outline: none;\n}\n.rdw-link-modal-buttonsection {\n margin: 0 auto;\n}\n.rdw-link-modal-target-option {\n margin-bottom: 20px;\n}\n.rdw-link-modal-target-option > span {\n margin-left: 5px;\n}\n.rdw-link-modal-btn {\n margin-left: 10px;\n width: 75px;\n height: 30px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n.rdw-link-modal-btn:hover {\n box-shadow: 1px 1px 0px #BFBDBD;\n}\n.rdw-link-modal-btn:active {\n box-shadow: 1px 1px 0px #BFBDBD inset;\n}\n.rdw-link-modal-btn:focus {\n outline: none !important;\n}\n.rdw-link-modal-btn:disabled {\n background: #ece9e9;\n}\n.rdw-link-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n.rdw-history-dropdown {\n width: 50px;\n}\n\n.rdw-embedded-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap\n}\n.rdw-embedded-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n height: 180px;\n border: 1px solid #F1F1F1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n justify-content: space-between;\n box-shadow: 3px 3px 5px #BFBDBD;\n}\n.rdw-embedded-modal-header {\n font-size: 15px;\n display: flex;\n}\n.rdw-embedded-modal-header-option {\n width: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.rdw-embedded-modal-header-label {\n width: 95px;\n border: 1px solid #f1f1f1;\n margin-top: 5px;\n background: #6EB8D4;\n border-bottom: 2px solid #0a66b7;\n}\n.rdw-embedded-modal-link-section {\n display: flex;\n flex-direction: column;\n}\n.rdw-embedded-modal-link-input {\n width: 88%;\n height: 35px;\n margin: 10px 0;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n font-size: 15px;\n padding: 0 5px;\n}\n.rdw-embedded-modal-link-input-wrapper {\n display: flex;\n align-items: center;\n}\n.rdw-embedded-modal-link-input:focus {\n outline: none;\n}\n.rdw-embedded-modal-btn-section {\n display: flex;\n justify-content: center;\n}\n.rdw-embedded-modal-btn {\n margin: 0 3px;\n width: 75px;\n height: 30px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n.rdw-embedded-modal-btn:hover {\n box-shadow: 1px 1px 0px #BFBDBD;\n}\n.rdw-embedded-modal-btn:active {\n box-shadow: 1px 1px 0px #BFBDBD inset;\n}\n.rdw-embedded-modal-btn:focus {\n outline: none !important;\n}\n.rdw-embedded-modal-btn:disabled {\n background: #ece9e9;\n}\n.rdw-embedded-modal-size {\n align-items: center;\n display: flex;\n margin: 8px 0;\n justify-content: space-between;\n}\n.rdw-embedded-modal-size-input {\n width: 80%;\n height: 20px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n font-size: 12px;\n}\n.rdw-embedded-modal-size-input:focus {\n outline: none;\n}\n\n.rdw-emoji-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap\n}\n.rdw-emoji-modal {\n overflow: auto;\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-wrap: wrap;\n width: 235px;\n height: 180px;\n border: 1px solid #F1F1F1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #BFBDBD;\n}\n.rdw-emoji-icon {\n margin: 2.5px;\n height: 24px;\n width: 24px;\n cursor: pointer;\n font-size: 22px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.rdw-spinner {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.rdw-spinner > div {\n width: 12px;\n height: 12px;\n background-color: #333;\n\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n}\n.rdw-spinner .rdw-bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n.rdw-spinner .rdw-bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% { -webkit-transform: scale(0) }\n 40% { -webkit-transform: scale(1.0) }\n}\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1.0);\n transform: scale(1.0);\n }\n}\n\n.rdw-image-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap\n}\n.rdw-image-modal {\n position: absolute;\n top: 35px;\n left: 5px;\n display: flex;\n flex-direction: column;\n width: 235px;\n border: 1px solid #F1F1F1;\n padding: 15px;\n border-radius: 2px;\n z-index: 100;\n background: white;\n box-shadow: 3px 3px 5px #BFBDBD;\n}\n.rdw-image-modal-header {\n font-size: 15px;\n margin: 10px 0;\n display: flex;\n}\n.rdw-image-modal-header-option {\n width: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n.rdw-image-modal-header-label {\n width: 80px;\n background: #f1f1f1;\n border: 1px solid #f1f1f1;\n margin-top: 5px;\n}\n.rdw-image-modal-header-label-highlighted {\n background: #6EB8D4;\n border-bottom: 2px solid #0a66b7;\n}\n.rdw-image-modal-upload-option {\n width: 100%;\n color: gray;\n cursor: pointer;\n display: flex;\n border: none;\n font-size: 15px;\n align-items: center;\n justify-content: center;\n background-color: #f1f1f1;\n outline: 2px dashed gray;\n outline-offset: -10px;\n margin: 10px 0;\n padding: 9px 0;\n}\n.rdw-image-modal-upload-option-highlighted {\n outline: 2px dashed #0a66b7;\n}\n.rdw-image-modal-upload-option-label {\n cursor: pointer;\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 15px;\n}\n.rdw-image-modal-upload-option-label span{\n padding: 0 20px;\n}\n.rdw-image-modal-upload-option-image-preview {\n max-width: 100%;\n max-height: 200px;\n}\n.rdw-image-modal-upload-option-input {\n\twidth: 0.1px;\n\theight: 0.1px;\n\topacity: 0;\n\toverflow: hidden;\n\tposition: absolute;\n\tz-index: -1;\n}\n.rdw-image-modal-url-section {\n display: flex;\n align-items: center;\n}\n.rdw-image-modal-url-input {\n width: 90%;\n height: 35px;\n margin: 15px 0 12px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n font-size: 15px;\n padding: 0 5px;\n}\n.rdw-image-modal-btn-section {\n margin: 10px auto 0;\n}\n.rdw-image-modal-url-input:focus {\n outline: none;\n}\n.rdw-image-modal-btn {\n margin: 0 5px;\n width: 75px;\n height: 30px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n cursor: pointer;\n background: white;\n text-transform: capitalize;\n}\n.rdw-image-modal-btn:hover {\n box-shadow: 1px 1px 0px #BFBDBD;\n}\n.rdw-image-modal-btn:active {\n box-shadow: 1px 1px 0px #BFBDBD inset;\n}\n.rdw-image-modal-btn:focus {\n outline: none !important;\n}\n.rdw-image-modal-btn:disabled {\n background: #ece9e9;\n}\n.rdw-image-modal-spinner {\n position: absolute;\n top: -3px;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.5;\n}\n.rdw-image-modal-alt-input {\n width: 70%;\n height: 20px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n font-size: 12px;\n margin-left: 5px;\n}\n.rdw-image-modal-alt-input:focus {\n outline: none;\n}\n.rdw-image-modal-alt-lbl {\n font-size: 12px;\n}\n.rdw-image-modal-size {\n align-items: center;\n display: flex;\n margin: 8px 0;\n justify-content: space-between;\n}\n.rdw-image-modal-size-input {\n width: 40%;\n height: 20px;\n border: 1px solid #F1F1F1;\n border-radius: 2px;\n font-size: 12px;\n}\n.rdw-image-modal-size-input:focus {\n outline: none;\n}\n.rdw-image-mandatory-sign {\n color: red;\n margin-left: 3px;\n margin-right: 3px;\n}\n\n.rdw-remove-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n position: relative;\n flex-wrap: wrap\n}\n\n.rdw-history-wrapper {\n display: flex;\n align-items: center;\n margin-bottom: 6px;\n flex-wrap: wrap\n}\n.rdw-history-dropdownoption {\n height: 40px;\n display: flex;\n justify-content: center;\n}\n.rdw-history-dropdown {\n width: 50px;\n}\n\n.rdw-link-decorator-wrapper {\n position: relative;\n}\n.rdw-link-decorator-icon {\n position: absolute;\n left: 40%;\n top: 0;\n cursor: pointer;\n background-color: white;\n}\n\n.rdw-mention-link {\n text-decoration: none;\n color: #1236ff;\n background-color: #f0fbff;\n padding: 1px 2px;\n border-radius: 2px;\n}\n\n.rdw-suggestion-wrapper {\n position: relative;\n}\n.rdw-suggestion-dropdown {\n position: absolute;\n display: flex;\n flex-direction: column;\n border: 1px solid #F1F1F1;\n min-width: 100px;\n max-height: 150px;\n overflow: auto;\n background: white;\n z-index: 100;\n}\n.rdw-suggestion-option {\n padding: 7px 5px;\n border-bottom: 1px solid #f1f1f1;\n}\n.rdw-suggestion-option-active {\n background-color: #F1F1F1;\n}\n\n.rdw-hashtag-link {\n text-decoration: none;\n color: #1236ff;\n background-color: #f0fbff;\n padding: 1px 2px;\n border-radius: 2px;\n}\n\n.rdw-image-alignment-options-popup {\n position: absolute;\n background: white;\n display: flex;\n padding: 5px 2px;\n border-radius: 2px;\n border: 1px solid #F1F1F1;\n width: 105px;\n cursor: pointer;\n z-index: 100;\n}\n.rdw-alignment-option-left {\n justify-content: flex-start;\n}\n.rdw-image-alignment-option {\n height: 15px;\n width: 15px;\n min-width: 15px;\n}\n.rdw-image-alignment {\n position: relative;\n}\n.rdw-image-imagewrapper {\n position: relative;\n}\n.rdw-image-center {\n display: flex;\n justify-content: center;\n}\n.rdw-image-left {\n display: flex;\n}\n.rdw-image-right {\n display: flex;\n justify-content: flex-end;\n}\n.rdw-image-alignment-options-popup-right {\n right: 0;\n}\n\n.rdw-editor-main {\n height: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n.rdw-editor-toolbar {\n padding: 6px 5px 0;\n border-radius: 2px;\n border: 1px solid #F1F1F1;\n display: flex;\n justify-content: flex-start;\n background: white;\n flex-wrap: wrap;\n font-size: 15px;\n margin-bottom: 5px;\n user-select: none;\n}\n.public-DraftStyleDefault-block {\n margin: 1em 0;\n}\n.rdw-editor-wrapper:focus {\n outline: none;\n}\n.rdw-editor-wrapper {\n box-sizing: content-box;\n}\n.rdw-editor-main blockquote {\n border-left: 5px solid #f1f1f1;\n padding-left: 5px;\n}\n.rdw-editor-main pre {\n background: #f1f1f1;\n border-radius: 3px;\n padding: 1px 10px;\n}\n/**\n * Draft v0.9.1\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;z-index:0}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.DraftEditorPlaceholder-hidden{display:none}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.public-DraftStyleDefault-listLTR{direction:ltr}.public-DraftStyleDefault-listRTL{direction:rtl}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:16px 0;padding:0}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1) ". ";counter-increment:ol1}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2) ". ";counter-increment:ol2}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4) ". ";counter-increment:ol4}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}');const Yp=({label:t,errorMessage:n,value:r,setValue:o,maxLength:i})=>{const{t:l}=E.useTranslation(),c={customInlineFn:(e,{Style:t})=>{if(e.style.color)return t("color-"+e.style.color)}};let d=zp(r,c);const[u,p]=s.useState(Gu.EditorState.createWithContent(d));s.useEffect((()=>{r!=$u(Gu.convertToRaw(u.getCurrentContent()))&&p(Gu.EditorState.createWithContent(zp(r,c)))}),[r]);return e.jsxs(a.Paper,{sx:{display:"flex",flexDirection:"column",padding:1},children:[t?e.jsx(a.Box,{children:l(t)}):e.jsx(e.Fragment,{}),e.jsx(qu.Editor,{editorState:u,onEditorStateChange:e=>{let t=$u(Gu.convertToRaw(e.getCurrentContent()));if(console.log("Text Length "+t.length),t.length>i){let e=zp(t.substring(0,i),c);p(Gu.EditorState.createWithContent(e))}else p(e),o($u(Gu.convertToRaw(e.getCurrentContent())))},handlePastedText:e=>{const t=u.getCurrentContent().getPlainText("").length,n=(()=>{const e=u.getSelection();let t=0;if(!e.isCollapsed()){const n=u.getCurrentContent(),r=e.getStartKey(),o=e.getEndKey(),i=r===o,a=n.getBlockForKey(r).getLength()-e.getStartOffset(),l=e.getEndOffset(),s=n.getKeyAfter(o);if(i)t+=e.getEndOffset()-e.getStartOffset();else{let e=r;for(;e&&e!==s;)t+=e===r?a+1:e===o?l:n.getBlockForKey(e).getLength()+1,e=n.getKeyAfter(e)}}return t})();if(t+e.length-n>i)return alert("max text length is "+i),"handled"},editorStyle:{height:"200px",border:"1px solid #F1F1F1",padding:"10px",overflow:"auto"},wrapperStyle:{marginBottom:"1rem"},toolbarStyle:{border:"1px solid #ccc"}}),n?e.jsx(a.Box,{sx:{color:"red"},children:l(n)}):e.jsx(e.Fragment,{})]})},Wp=n=>{const r=t.useSelector((e=>e.AppLayout)),o=De(),[i,a]=s.useState([]),{handleGetRequest:l}=be();return s.useEffect((()=>{n.lookupType&&(async()=>{await l({endPointURI:"api/v1/dev/system/lookup",showMask:!0,parameters:{lookupType:n.lookupType},successCallBkFn:e=>{a(e.data)},failureCallBkFn:()=>{a([])}})})()}),[n.lookupType,o.UserSession]),e.jsx(Ze,{...n,options:i,displayField:"ltr"===r.appDirection?"lookupEnDisplay":"lookupArDisplay",valueField:"lookupValue"})},Kp=t=>{if(t?.fieldInfo){const n=t.fieldInfo,r=t?.formManager||null,o=t?.formActions||null,i=t?.formValues||null,l=t?.fieldInfo?.fieldName||null,s=t?.fieldInfo?.fieldType||null;return n&&r&&i&&l&&s?t.hiddenFields.includes(l)?e.jsx(e.Fragment,{}):e.jsx(a.Grid2,{size:n?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===s||"number"===s?e.jsx(Ue,{...n.muiTextFieldProps,fullWidth:!0,type:s,disabled:!(!n?.disabled&&!t.disabledFields.includes(l)),hidden:n?.hidden||!1,label:n?.fieldLabel,value:i[l],onChange:e=>{let t=null;""!=e.target.value&&(t="number"===s&&cr(e.target.value)?Number(e.target.value):e.target.value),r.setValue(l,t),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(t,r,o)},sx:{"& .MuiInputBase-root":{height:`${n?.formProps?.fieldHeight}px`||void 0},"& .MuiInputBase-input":{height:"100% !important"},...n?.formProps?.style},error:null!=r.formState.errors[l],helperText:r?.formState?.errors[l]?.message?.toString()}):"date"===n?.fieldType?e.jsx(rt,{format:n?.dateFormat||$e,sx:n?.formProps?.style||{width:"100%"},disabled:!(!n?.disabled&&!t.disabledFields.includes(l)),label:n?.fieldLabel,onChangeCallBack:e=>{r.setValue(l,e),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(e,r,o)},value:i[l],error:null!=r.formState.errors[l],errorMessage:r?.formState?.errors[l]?.message?.toString()}):"datetime"===n?.fieldType?e.jsx(ot,{format:n?.dateFormat||Je,sx:n?.formProps?.style||{width:"100%"},disabled:!(!n?.disabled&&!t.disabledFields.includes(l)),label:n?.fieldLabel,onChangeCallBack:e=>{r.setValue(l,e),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(e,r,o)},value:i[l],error:null!=r.formState.errors[l],errorMessage:r?.formState?.errors[l]?.message?.toString()}):"checkbox"===n?.fieldType?e.jsx(Qe,{label:n?.fieldLabel,onChangeCallBack:e=>{r.setValue(l,e),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(e,r,o)},value:i[l],checkedValue:n?.checkedValue||!0,unCheckedValue:n?.unCheckedValue||!1,disabled:!(!n?.disabled&&!t.disabledFields.includes(l)),sx:n?.formProps?.style}):"combobox"===n?.fieldType?e.jsx(Ze,{sx:n?.formProps?.style||{width:"100%"},label:n?.fieldLabel,disabled:!(!n?.disabled&&!t.disabledFields.includes(l)),onChangeCallBack:(e,t)=>{let i=null;e&&(i=e+""),r.setValue(l,i),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(i,r,o,t)},options:n?.options||[],displayField:n?.optionDisplayField||"",valueField:n?.optionValueField||"",value:i[l],errorMessage:r?.formState?.errors[l]?.message?.toString()}):"lookup"===n?.fieldType?e.jsx(Wp,{sx:n?.formProps?.style||{width:"100%"},label:n?.fieldLabel,disabled:!(!n?.disabled&&!t.disabledFields.includes(l)),onChangeCallBack:(e,t)=>{let i=null;e&&(i=e+""),r.setValue(l,i),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(i,r,o,t)},lookupType:n.lookupType,value:i[l],errorMessage:r?.formState?.errors[l]?.message?.toString()}):"html"===n?.fieldType?e.jsx(Yp,{label:n.fieldLabel,value:i[l]||"",errorMessage:r?.formState?.errors[l]?.message?.toString(),setValue:e=>{r.setValue(l,e),n?.formProps?.onValueChangeCallBack&&n?.formProps?.onValueChangeCallBack(e,r,o)},maxLength:4e3}):e.jsx(e.Fragment,{children:"Unknown field type"})}):e.jsx(e.Fragment,{})}return e.jsx(e.Fragment,{})},Gp=t=>{const n=De(),{ConfirmationWindow:r,setOpen:o}=Le({body:t?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{t?.actionFn(t?.record)}});return null==t?.authority||n.isUserAuthorized(t.authority)?e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs(a.Button,{variant:t?.formActionProps?.actionButtonVariant,color:t?.formActionProps?.actionButtonColor,onClick:()=>{if(t?.actionFn){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?o(!0):t?.actionFn(t.record)}},children:[t?.icon?e.jsx(f.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:t?.label})]})]}):e.jsx(e.Fragment,{})},Vp=t=>{const{t:n}=E.useTranslation();return e.jsx(e.Fragment,{children:e.jsxs(a.Grid2,{container:!0,sx:t?.style,alignItems:"flex-start",children:[t?.label?e.jsx(a.Grid2,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:t?.icon?e.jsxs(e.Fragment,{children:[e.jsx(f.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}),e.jsx("div",{children:n(t.label)})]}):e.jsx(e.Fragment,{children:n(t.label)})}):e.jsx(e.Fragment,{}),t?.elements?t.elements.map((n=>"group"===n.type?e.jsx(Vp,{...n.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===n.type&&"props"===n.mode?e.jsx(Kp,{fieldInfo:n.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===n.type&&"node"===n.mode?e.jsx(a.Grid2,{size:n?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e.jsx(n.node,{formManager:t.formManager,formValues:t.formValues,formActions:t.formActions})}):void 0)):null,t?.actions?e.jsx(a.Grid2,{size:{sm:12},sx:{padding:1},children:t.actions.map((n=>e.jsx(Gp,{...n,record:t.formValues})))}):e.jsx(e.Fragment,{})]})})},Hp=t=>({...t,type:"string",renderEditCell:t=>e.jsx(ot,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,n)=>{let r=null;return null!==e&&(r=R(e).format(Je)),r},valueFormatter:(e,t,n)=>t[n.field]}),qp=t=>({...t,type:"custom",valueGetter:e=>e?e+"":e,renderCell:t=>{let n=null;try{n=t.colDef.options.find((e=>e[t.colDef.valueField]==t.value))}catch(e){}return e.jsx("div",{children:null!=n?n[t.colDef.displayField]:t.value})},renderEditCell:t=>e.jsx(Ze,{...t,sx:{width:"100%"},options:t.colDef.options,valueField:t.colDef.valueField,displayField:t.colDef.displayField,onChangeCallBack:(e,n)=>{null===e&&t.api.setEditCellValue({id:t.id,field:t.field,value:null}),t.api.setEditCellValue({id:t.id,field:t.field,value:e+""})}})}),Qp=t=>({...t,type:"custom",valueGetter:e=>null==e||null==e?null:e,renderCell:n=>{const r=n?.value;return r===t.checkedValue||"true"===r||1===r||!0===r?e.jsx(f.FontAwesomeIcon,{icon:"check",color:"green"}):e.jsx(f.FontAwesomeIcon,{icon:"xmark",color:"red"})},renderEditCell:n=>e.jsx(Qe,{...n,checkedValue:t?.checkedValue||!0,unCheckedValue:t?.unCheckedValue||!1,onChangeCallBack:e=>{n.api.setEditCellValue({id:n.id,field:n.field,value:e})}})}),Zp=e=>{const t=[];if("field"===e.type&&"props"===e.mode&&e?.props)t.push(e.props);else if("group"===e.type&&e?.props&&e?.props?.elements)for(const n of e.props.elements)t.push(...Zp(n));return t},$p=e=>{const t=[];for(const n of e)t.push(...Zp(n));return t},Jp=e=>{const t={};for(const n of e)if(n?.fieldName){const e=n.fieldName;"number"===n.fieldType?t[e]=!0===n?.required?le.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):le.number().optional().nullable():"checkbox"===n.fieldType?t[e]=!0===n?.required?le.boolean({required_error:"This field is required"}):le.boolean().optional().nullable():t[e]=!0===n?.required?le.string({message:"This field is required"}).min(1,"This field is required"):le.string().optional().nullable()}return t},Xp=t=>{const{t:n}=E.useTranslation(),r=$p(t.elements),o=[];for(const e of r)e?.hidden&&o.push(e.fieldName);const[i,l]=s.useState(o),c={};for(const e of t.elements)"field"===e?.type&&"props"===e?.mode&&e?.props?.defaultValue&&(c[e.props.fieldName]=e.props.defaultValue);const[d,u]=s.useState([]),p=le.object(Jp(r)),m=j.useForm({resolver:P.zodResolver(p),defaultValues:c}),h=m.watch(),g=U.useParams(),_=t?.formRouteRecordIdParamName,b={setFieldValue:(e,t)=>{m.setValue(e,t)},hideField:e=>{l((t=>[...t,e]))},showField:e=>{l((t=>t.filter((t=>t!==e))))},disableField:e=>{u((t=>[...t,e]))},enableField:e=>{u((t=>t.filter((t=>t!==e))))}};return s.useEffect((()=>{(async()=>{let e=null;if(t?.recordIdToEdit?e=t.recordIdToEdit:_&&g[_]&&(e=g[_]),e){const n=await t.apiActions.loadRecordById(e);if(n){m.reset({...n}),t?.formLoadCallBk&&t?.formLoadCallBk(b,m,n);for(const e of r)"combobox"===e?.fieldType&&n[e.fieldName]&&m.setValue(e.fieldName,n[e.fieldName]+"")}}else m.reset({})})()}),[t?.recordIdToEdit]),e.jsxs(e.Fragment,{children:[e.jsx(lr,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e.jsx(a.Grid2,{sx:{width:"100%"},container:!0,children:t.elements.map(((t,n)=>"group"===t.type?e.jsx(Vp,{...t.props,formManager:m,formValues:h,formActions:b,hiddenFields:i,disabledFields:d},n):"field"===t.type&&"props"===t.mode?e.jsx(Kp,{fieldInfo:t.props,formManager:m,formValues:h,formActions:b,hiddenFields:i,disabledFields:d},n):"field"===t.type&&"node"===t.mode?e.jsx(a.Grid2,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e.jsx(t.node,{formManager:m,formValues:h})},n):void 0))})}),e.jsxs(lr,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[t?.actions?t.actions.map((t=>!0===t?.formActionProps?.enabled?e.jsx(Gp,{...t,record:h}):e.jsx(e.Fragment,{}))):e.jsx(e.Fragment,{}),e.jsx("div",{style:{flex:1}}),e.jsx(a.Button,{variant:t?.saveButtonSpecs?.actionButtonVariant?t.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:t?.saveButtonSpecs?.icon?e.jsx(f.FontAwesomeIcon,{icon:t.saveButtonSpecs.icon}):null,color:t?.saveButtonSpecs?.actionButtonColor?t.saveButtonSpecs.actionButtonColor:"primary",onClick:m.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!t?.preSaveValidation||t.preSaveValidation(e))&&e){const n=await t.apiActions.saveRecord(e);n&&(m.reset({...n}),t?.formSavedSuccessfullyCallBk&&t.formSavedSuccessfullyCallBk(n),t?.formCloseCallBk&&t.formCloseCallBk())}})(e)}),(e=>{y.toast.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:n(t?.saveButtonSpecs?.label||"SAVE_BTN_LABEL")}),e.jsx(a.Button,{variant:t?.cancelButtonSpecs?.actionButtonVariant?t.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:t?.cancelButtonSpecs?.icon?e.jsx(f.FontAwesomeIcon,{icon:t.cancelButtonSpecs.icon}):null,color:t?.cancelButtonSpecs?.actionButtonColor?t.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{t?.formCloseCallBk&&t.formCloseCallBk(),m.reset(c)},children:n(t?.cancelButtonSpecs?.label||"CANCEL_BTN_LABEL")})]})]})},ef=t=>{const{t:n}=E.useTranslation(),r=De(),{ConfirmationWindow:o,setOpen:i}=Le({body:n(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:n("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn)),t?.reloadData&&t.reloadData()}});let l=!0;if(t.authority&&(l=r.isUserAuthorized(t.authority)),l)return e.jsxs(e.Fragment,{children:[e.jsx(o,{}),e.jsxs(a.Button,{onClick:async()=>{if(t?.recordsToProcessActionOn&&t?.recordsToProcessActionOn.length>0){if(t?.preActionValidation)for(const e of t.recordsToProcessActionOn)if(!t.preActionValidation(e))return;!0===t?.isConfirmationRequired?i(!0):(await t.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn),t?.reloadData&&t.reloadData())}else y.toast.error(n("AT_LEAST_ONE_RECORD_SELECTED_MESSAGE"))},variant:t?.label?"outlined":t?.formActionProps?.actionButtonVariant?t.formActionProps.actionButtonVariant:"text",size:"small",color:t?.formActionProps?.actionButtonColor||"primary",children:[t?.icon?e.jsx(f.FontAwesomeIcon,{style:{marginRight:5,marginLeft:5},icon:t.icon}):e.jsx(e.Fragment,{}),t?.label?n(t.label):e.jsx(e.Fragment,{})]})]})},tf=a.styled(F.QuickFilter)({display:"grid",alignItems:"center"}),nf=a.styled(F.ToolbarButton)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:t.expanded?0:1,pointerEvents:t.expanded?"none":"auto",transition:e.transitions.create(["opacity"])}))),rf=a.styled(a.TextField)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",overflowX:"clip",width:t.expanded?260:"var(--trigger-width)",opacity:t.expanded?1:0,transition:e.transitions.create(["width","opacity"])}))),of=t=>{const{t:n}=E.useTranslation(),r=De(),o=!t?.templateProps?.editAction?.authority||r.isUserAuthorized(t.templateProps.editAction.authority),i=((e,t,n)=>{const r=[],o=[];if("exclude"===e.type&&0===e.ids.size)for(const e of t)r.push(e),o.push(e[n]);else if(e?.ids)for(const i of e.ids){const e=t.find((e=>e[n]===i));r.push(e),o.push(i)}return{selectedRecords:r,selectedRecordIds:o}})(t?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},t?.templateProps?.data||[],t?.templateProps?.keyColumnName||"id");return e.jsxs(F.Toolbar,{children:[o&&"none"!=t?.templateProps?.editMode?.editMode?e.jsxs(a.Button,{onClick:t?.handleCreateNewRecord,children:[e.jsx(f.FontAwesomeIcon,{icon:"add",style:{marginRight:5,marginLeft:5}}),n("ADD_BTN_LABEL")]}):e.jsx(e.Fragment,{}),t?.templateProps?.rowActions?t.templateProps.rowActions.map(((e,n)=>!0===e?.gridActionProps?.multiRecord?s.createElement(ef,{...e,key:n,reloadData:async()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:i.selectedRecordIds,recordsToProcessActionOn:i.selectedRecords}):null)):e.jsx(e.Fragment,{}),e.jsx(a.Box,{sx:{flex:1,mx:.5},children:t?.templateProps?.tBar}),e.jsx(a.Tooltip,{title:"Columns",children:e.jsx(F.ColumnsPanelTrigger,{render:e.jsx(F.ToolbarButton,{}),children:e.jsx(F.GridViewColumnIcon,{fontSize:"small"})})}),e.jsx(a.Tooltip,{title:"Filters",children:e.jsx(F.FilterPanelTrigger,{render:(t,n)=>e.jsx(F.ToolbarButton,{...t,color:"default",children:e.jsx(a.Badge,{badgeContent:n.filterCount,color:"primary",variant:"dot",children:e.jsx(F.GridFilterListIcon,{fontSize:"small"})})})})}),t?.templateProps?.gridStateKey?e.jsx(a.Tooltip,{title:n("RESET_GRID_STATE"),children:e.jsx(a.IconButton,{onClick:t?.clearGridState,children:e.jsx(f.FontAwesomeIcon,{icon:"eraser"})})}):e.jsx(e.Fragment,{}),e.jsx(a.Divider,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e.jsx(a.Tooltip,{title:n("EXPORT_EXECL_LABEL"),children:e.jsx(F.ExportExcel,{render:e.jsx(a.MenuItem,{}),children:e.jsx(f.FontAwesomeIcon,{icon:"file-excel",color:"green"})})}),e.jsxs(tf,{children:[e.jsx(F.QuickFilterTrigger,{render:(t,r)=>e.jsx(a.Tooltip,{title:n("SEARCH_BTN_LABEL"),enterDelay:0,children:e.jsx(nf,{...t,ownerState:{expanded:r.expanded},color:"default","aria-disabled":r.expanded,children:e.jsx(f.FontAwesomeIcon,{icon:"search"})})})}),e.jsx(F.QuickFilterControl,{render:({ref:t,...r},o)=>e.jsx(rf,{...r,ownerState:{expanded:o.expanded},inputRef:t,"aria-label":"Search",placeholder:`${n("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e.jsx(a.InputAdornment,{position:"start",children:e.jsx(f.FontAwesomeIcon,{icon:"search"})}),endAdornment:o.value?e.jsx(a.InputAdornment,{position:"end",children:e.jsx(F.QuickFilterClear,{edge:"end",size:"small","aria-label":"Clear search",children:e.jsx(f.FontAwesomeIcon,{icon:"xmark"})})}):null,...r.slotProps?.input},...r.slotProps}})})]}),e.jsx(a.IconButton,{onClick:()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},children:e.jsx(f.FontAwesomeIcon,{icon:"refresh"})})]})},af=t=>{const{t:n}=E.useTranslation(),r=De(),{ConfirmationWindow:o,setOpen:i}=Le({body:n(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:n("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.record)),t?.reloadData&&t.reloadData()}});let l=!0;t.authority&&(l=r.isUserAuthorized(t.authority));let s={};t?.getActionIconStyleForRecord&&(s=t.getActionIconStyleForRecord(t.record));let c=!0;t?.isActionVisibleForRecord&&(c=t?.isActionVisibleForRecord(t.record));let d=!1;if(t?.isActionDisabledForRecord&&(d=t.isActionDisabledForRecord(t.record)),l&&c)return e.jsxs(e.Fragment,{children:[e.jsx(o,{}),e.jsx(F.GridActionsCellItem,{disabled:d,icon:e.jsx(a.Tooltip,{title:t?.label?n(t.label):"",children:e.jsx(f.FontAwesomeIcon,{icon:t.icon,style:{...s,color:d?"gray":null!=s?.color?s.color:void 0}})}),showInMenu:t?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!d){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?i(!0):(await t.actionFn(t.record),!0===t?.gridActionProps?.reloadGridAfterAction&&t?.reloadData&&t.reloadData())}}})]})};let lf=-1;const sf=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},cf=(e,t)=>{const n=sf(e);localStorage.setItem(e,JSON.stringify({...n,...t}))},df=["__check__","actions"],uf=n=>{const r=t.useSelector((e=>e.AppLayout)),{getLookupOptions:o}=(()=>{const{handleGetRequest:e}=be(),n=t.useSelector((e=>e.AppLayout)),r=async t=>{let n=[];return await e({endPointURI:"api/v1/dev/system/lookup",showMask:!0,parameters:{lookupType:t},successCallBkFn:e=>{n=e.data}}),n};return{generateLookupGridColumn:async e=>{let t=await r(e.lookupType);return{...e,options:t,displayField:"ltr"===n.appDirection?"lookupEnDisplay":"lookupArDisplay",valueField:"lookupValue"}},getLookupOptions:r}})(),[i,l]=s.useState([]),{t:c}=E.useTranslation(),d=$p(n.formElements),u=[],p=s.useMemo((()=>n?.gridStateKey?sf(n.gridStateKey):{}),[]);for(const e of d)!0===e?.gridProps?.hidden&&u.push(e.fieldName);let m={};if(p?.columnVisibilityModel){m=p.columnVisibilityModel;const e=Object.keys(m);for(const t of u)e.includes(t)||(m[t]=!1)}else for(const e of u)m[e]=!1;const h=t.useSelector((e=>e.AppLayout.appDirection)),[g,_]=s.useState(m),[b,T]=s.useState(p.columnOrder||[]),[A,O]=s.useState(p.columnWidths||{}),[I,N]=s.useState(p.columnGroupingModel||[]);let v=p?.pinnedColumns?.left||[];v=v.filter((e=>!df.includes(e)));let S=p?.pinnedColumns?.right||[]||[];S=S.filter((e=>!df.includes(e)));const[M,L]=s.useState({left:[..."ltr"===h?df:[],...v],right:[..."rtl"===h?df:[],...S]}),D=De(),C=U.useNavigate(),[w,x]=s.useState(null),[j,P]=s.useState(null),[B,z]=s.useState({}),Y=async()=>{let t=((t,n,r)=>{const o=[];for(const a of t)if("text"===a?.fieldType||"number"===a?.fieldType){const e={...a?.gridProps?.muiProps,editable:null!=a?.gridProps?.muiProps?.editable?a?.gridProps?.muiProps?.editable:n,type:"number"==a?.fieldType?"number":"string",field:a?.fieldName,headerName:r(a?.fieldLabel||a?.fieldName),headerAlign:"center",align:"center",hidden:a?.hidden,searchable:a?.gridProps?.searchable,flex:1,minWidth:200};o.push(e)}else if("date"===a?.fieldType){const t=(i={...a?.gridProps?.muiProps,editable:null!=a?.gridProps?.muiProps?.editable?a?.gridProps?.muiProps?.editable:n,field:a?.fieldName,headerName:r(a?.fieldLabel||a?.fieldName),headerAlign:"center",align:"center",hidden:a?.hidden,searchable:a?.gridProps?.searchable,flex:1,minWidth:200},{...i,type:"string",renderEditCell:t=>e.jsx(rt,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,n)=>{let r=null;return null!==e&&(r=R(e).format($e)),r},valueFormatter:(e,t,n)=>t[n.field]});o.push(t)}else if("datetime"===a?.fieldType){const e=Hp({...a?.gridProps?.muiProps,editable:null!=a?.gridProps?.muiProps?.editable?a?.gridProps?.muiProps?.editable:n,field:a?.fieldName,headerName:r(a?.fieldLabel||a?.fieldName),headerAlign:"center",align:"center",hidden:a?.hidden,searchable:a?.gridProps?.searchable,flex:1,minWidth:200});o.push(e)}else if("checkbox"===a?.fieldType){const e=Qp({...a?.gridProps?.muiProps,editable:null!=a?.gridProps?.muiProps?.editable?a?.gridProps?.muiProps?.editable:n,field:a?.fieldName,headerName:r(a?.fieldLabel||a?.fieldName),headerAlign:"center",align:"center",hidden:a?.hidden,searchable:a?.gridProps?.searchable,checkedValue:a?.checkedValue,unCheckedValue:a?.unCheckedValue,width:150});o.push(e)}else if("combobox"===a?.fieldType){const e=qp({...a?.gridProps?.muiProps,editable:null!=a?.gridProps?.muiProps?.editable?a?.gridProps?.muiProps?.editable:n,field:a?.fieldName,headerName:r(a?.fieldLabel||a?.fieldName),headerAlign:"center",align:"center",hidden:a?.hidden,searchable:a?.gridProps?.searchable,valueField:a?.optionValueField||"value",displayField:a?.optionDisplayField||"display",options:a?.options||[],flex:1,minWidth:200});o.push(e)}else if("lookup"===a?.fieldType){const e=qp({...a?.gridProps?.muiProps,editable:null!=a?.gridProps?.muiProps?.editable?a?.gridProps?.muiProps?.editable:n,lookupType:a?.lookupType,field:a?.fieldName,headerName:r(a?.fieldLabel||a?.fieldName),headerAlign:"center",align:"center",hidden:a?.hidden,searchable:a?.gridProps?.searchable,valueField:a?.optionValueField||"value",displayField:a?.optionDisplayField||"display",options:a?.options||[],flex:1,minWidth:200});o.push(e)}var i;return o})(d,"row"===n?.editMode?.editMode||!1,c);for(let e of t)e?.lookupType&&(e.displayField="ltr"===r.appDirection?"lookupEnDisplay":"lookupArDisplay",e.options=await o(e.lookupType),e.valueField="lookupValue");l(t)},[W,K]=s.useState({ids:new Set,type:"include"});let G="id";n?.keyColumnName&&(G=n?.keyColumnName);const V=n.setData,H=k.z.object(Jp(d));let q=!0;n?.editAction?.authority&&(q=D.isUserAuthorized(n.editAction.authority));let Q=!0;n?.deleteAction?.authority&&(Q=D.isUserAuthorized(n.deleteAction.authority));const{ConfirmationWindow:Z,setOpen:$}=Le({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;w&&!0===w?.isNew||(e=await n.apiActions.deleteRecordById(w[G])),e&&(n?.deleteAction?.postActionCallBack&&await n.deleteAction.postActionCallBack(w),V((e=>e.filter((e=>e[G]!=w[G])))))}});let J,X,ee,te,ne,re;"modal"===n?.editMode?.editMode&&(J=n?.editMode?.specs?.modalHeight||"fit-content",X=n?.editMode?.specs?.modalWidth||"300",ee=n?.editMode?.specs?.modalMinHeight,te=n?.editMode?.specs?.modalMinWidth,ne=n?.editMode?.specs?.modalIcon||"window",re=n?.editMode?.specs?.modalTitle||"Record Form");const{Window:oe,setWindowState:ie}=Ce({height:J,minHeight:ee,minWidth:te,onCloseCallBack:()=>{n.apiActions.reloadData(n?.gridLoadParametersValues)},width:X,windowIcon:ne,windowTitle:re}),ae={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(n?.rowActions?30*n.rowActions.length:0)+(n?.editAction&&n?.editAction?.isEnabled?30:0)+(n?.deleteAction&&n?.deleteAction?.isEnabled?30:0),getActions:t=>{const r=t.row,o=[];if("none"!=n?.editMode?.editMode&&(void 0===n?.disableDefaultAction||!n.disableDefaultAction)){const t=B[r[G]]?.mode===F.GridRowModes.Edit;if("row"===n.editMode.editMode&&t)q&&(o.push(e.jsx(F.GridActionsCellItem,{icon:e.jsx(f.FontAwesomeIcon,{icon:"save"}),label:c("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[G];z({...B,[t]:{mode:F.GridRowModes.View}})})(r)}})),o.push(e.jsx(F.GridActionsCellItem,{icon:e.jsx(f.FontAwesomeIcon,{icon:"cancel"}),label:c("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[G];t&&sr(t)&&t<0?(z({...B,[t]:{mode:F.GridRowModes.View,ignoreModifications:!0}}),V((e=>{const n=e.filter((e=>e[G]!=t));return n}))):z({...B,[t]:{mode:F.GridRowModes.View,ignoreModifications:!0}})})(r)},color:"inherit"})));else{if(n?.editAction&&!0===n?.editAction?.isEnabled){let t=!0;n?.editAction?.isActionVisibleForRecord&&(t=n?.editAction?.isActionVisibleForRecord(r));let i=!1;n?.editAction?.isActionDisabledForRecord&&(i=n?.editAction?.isActionDisabledForRecord(r)),q&&t&&o.push(e.jsx(F.GridActionsCellItem,{disabled:i,icon:e.jsx(a.Tooltip,{title:c("EDIT_BTN_LABEL"),children:e.jsx(f.FontAwesomeIcon,{icon:"edit",style:{color:i?"gray":void 0}})}),showInMenu:n?.editAction?.gridActionProps?.showInMenu||!1,label:c("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{q&&!i&&(async e=>{if(e)if(P(e),"form"===n.editMode.editMode)C(n.editMode.specs.formRoute+"/"+e[G]);else if("modal"===n.editMode.editMode)ie(!0);else if("row"===n?.editMode?.editMode){const t=e[G];z({...B,[t]:{mode:F.GridRowModes.Edit}})}})(r)}}))}if(n?.deleteAction&&!0===n?.deleteAction?.isEnabled){let t=!0;n?.deleteAction?.isActionVisibleForRecord&&(t=n?.deleteAction?.isActionVisibleForRecord(r));let i=!1;n?.deleteAction?.isActionDisabledForRecord&&(i=n?.deleteAction?.isActionDisabledForRecord(r)),Q&&t&&o.push(e.jsx(F.GridActionsCellItem,{disabled:i,icon:e.jsx(a.Tooltip,{title:c("DELETE_BTN_LABEL"),children:e.jsx(f.FontAwesomeIcon,{icon:"trash",style:{color:i?"gray":void 0}})}),showInMenu:n?.deleteAction?.gridActionProps?.showInMenu||!1,label:c("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(Q&&!i){if(n?.deleteAction?.preActionValidation&&!n.deleteAction.preActionValidation(r))return;x(r),$(!0)}}}))}}}if(n?.rowActions)for(const t of n.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||o.push(e.jsx(af,{...t,record:r,reloadData:async()=>{n.apiActions.reloadData(n?.gridLoadParametersValues)}}));return o}};let le=[];(void 0===n?.disableDefaultAction||!n.disableDefaultAction||n?.rowActions&&n?.rowActions.length>0)&&le.push(ae),le=[...le,...i];s.useEffect((()=>{void 0!==n?.autoLoad&&!0!==n.autoLoad||n.apiActions.reloadData(n?.gridLoadParametersValues),Y()}),[]),s.useEffect((()=>{Y()}),[h,n.formElements]);const se=s.useMemo((()=>{const e=le.map((e=>({...e,width:A[e.field]||e.width})));if(b.length){const t=new Map(e.map((e=>[e.field,e])));return b.map((e=>t.get(e))).filter(Boolean)}return e}),[b,A,le]);return e.jsxs(e.Fragment,{children:[e.jsx(Z,{}),"modal"===n?.editMode?.editMode?e.jsx(oe,{children:n?.editMode?.specs?.formComponent?e.jsx(n.editMode.specs.formComponent,{recordIdToEdit:j?j[G]:void 0,formCloseCallBk:()=>{ie(!1),n.apiActions.reloadData(n?.gridLoadParametersValues)}}):e.jsx(Xp,{formLoadCallBk:n.formLoadCallBk,recordIdToEdit:j?j[G]:void 0,formCloseCallBk:()=>{ie(!1),n.apiActions.reloadData(n?.gridLoadParametersValues)},elements:n.formElements,apiActions:n.apiActions,editAuthorityKey:n?.editAction?.authority,formSavedSuccessfullyCallBk:n?.editAction?.postActionCallBack,preSaveValidation:n?.editAction?.preActionValidation,actions:n?.rowActions})}):e.jsx(e.Fragment,{}),void 0!==n?.hideInfoBar||n?.hideInfoBar?e.jsx(e.Fragment,{}):e.jsxs(a.Box,{sx:{display:"flex"},children:[void 0!==n?.hideBackButton||n?.hideBackButton?e.jsx(e.Fragment,{}):e.jsx(a.IconButton,{onClick:()=>{C(-1,{replace:!0})},children:e.jsx(f.FontAwesomeIcon,{icon:"arrow-left"})}),e.jsxs(a.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[n?.girdIcon?e.jsx(f.FontAwesomeIcon,{icon:n.girdIcon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx(a.Typography,{variant:"h5",children:n?.gridTitle?dr(c(n?.gridTitle)):""})]})]}),n?.gridLoadParameters&&n?.gridLoadParameters.length>0&&n?.gridLoadParametersValues&&n?.setGridLoadParametersValues?e.jsxs(a.Accordion,{defaultExpanded:!0,sx:{width:"100%"},children:[e.jsx(a.AccordionSummary,{expandIcon:e.jsx(F.GridExpandMoreIcon,{}),children:e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(f.FontAwesomeIcon,{style:{marginLeft:5,marginRight:5},icon:"search"}),e.jsx(a.Typography,{component:"span",children:"Filters"})]})}),e.jsx(a.AccordionDetails,{children:e.jsx(a.Box,{children:e.jsx(Xp,{saveButtonSpecs:{label:c("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:c("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?n.setGridLoadParametersValues(e):n.setGridLoadParametersValues({}),n.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:n.gridLoadParameters})})})]}):e.jsx(e.Fragment,{}),e.jsx(F.DataGridPremium,{...n?.muiProps,slots:{toolbar:of},slotProps:{toolbar:{templateProps:{...n,rowSelectionModel:W,data:n?.data},handleCreateNewRecord:()=>{if("form"===n?.editMode?.editMode)C(n.editMode.specs.formRoute);else if("modal"===n?.editMode?.editMode)P(null),ie(!0);else if("row"===n?.editMode?.editMode){lf-=1;const e={};e[G]=lf,e.isNew=!0;for(const t of i)"actions"!=t?.type&&t?.field!=G&&t?.field&&(e[t.field]=null);V((t=>[e,...t])),z((e=>({...e,[lf]:{mode:F.GridRowModes.Edit}})))}},clearGridState:()=>{n?.gridStateKey&&localStorage.removeItem(n.gridStateKey),_({}),T([]),O({}),N([]),L({left:[..."ltr"===h?df:[]],right:[..."rtl"===h?df:[]]})}}},getRowId:e=>e[G],showToolbar:!0,rows:n?.data,columns:se,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==n.editMode.editMode?B:void 0,onRowModesModelChange:"row"==n.editMode.editMode?e=>{z(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async t=>{if("row"===n.editMode.editMode){let r=null;const o=(e=>{try{H.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof k.z.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(t);if(o){const t=o.split(",");throw y.toast.error(e.jsx("div",{style:{},children:t.map((t=>e.jsxs(e.Fragment,{children:[e.jsx("div",{children:t}),e.jsx(a.Divider,{})]})))})),new Error(o)}if(n?.editAction?.preActionValidation&&!n.editAction.preActionValidation(t))throw new Error("error on the configured presave validation");const i={...t};if(t[G]&&sr(t[G])&&Number(t[G])<0&&(i[G]=null),r=await n.apiActions.saveRecord(i),null==r)throw new Error("Failed to process your request, contact your administrator");return n?.editAction?.postActionCallBack&&await n.editAction.postActionCallBack(t),!0===t?.isNew&&V((e=>{const n=e.filter((e=>e[G]!==t[G]));return[r,...n]})),!0===n?.editMode?.reloadAfterSave&&n?.apiActions?.reloadData&&n?.apiActions?.reloadData(n?.gridLoadParametersValues),r}},rowSelectionModel:W,onRowSelectionModelChange:e=>{K(e)},columnVisibilityModel:g,onColumnVisibilityModelChange:e=>{_(e),n?.gridStateKey&&cf(n.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:r}=e;T((e=>{const o=e.length?[...e]:le.map((e=>e.field)),i=o.indexOf(t.field);return-1===i||(o.splice(i,1),o.splice(r,0,t.field),n?.gridStateKey&&cf(n.gridStateKey,{columnOrder:o})),o}))},onColumnWidthChange:e=>{const t={...A,[e.colDef.field]:e.width};O(t),n?.gridStateKey&&cf(n.gridStateKey,{columnWidths:t})},rowGroupingModel:I,onRowGroupingModelChange:e=>{(e=>{N(e),n?.gridStateKey&&cf(n.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:M,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!df.includes(e)));let r=e?.right||[];r=r.filter((e=>!df.includes(e)));const o={left:[..."ltr"===h?df:[],...t],right:[..."rtl"===h?df:[],...r]};L(o),n?.gridStateKey&&cf(n.gridStateKey,{pinnedColumns:o})},sx:{width:"100%"}})]})},pf=n=>{const{UserSession:r}=De(),o=t.useSelector((e=>e.AppLayout)),i=t.useDispatch(),{handlePostRequest:l}=be(),[c,d]=s.useState(r.value.currentOrganization.id);return e.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",padding:1},children:[e.jsx(Ze,{sx:{width:"100%"},displayField:"ltr"===o.appDirection?"organizationEnName":"organizationArName",valueField:"id",label:"",options:r.value.userOrganizations,value:c,onChangeCallBack:e=>{d(e)}}),e.jsx(a.Button,{sx:{m:1},variant:"contained",disabled:null==c||c===r.value.currentOrganization.id,onClick:async()=>{await l({endPointURI:"api/auth/changeCurrentOrg",showMask:!0,parameters:{username:r.value.username,orgId:c},data:{},successCallBkFn:e=>{const t={...e.data,isAuthenticated:!0};i(Ae.setAuthenticated(t)),n.successChangeCallBackFn&&n.successChangeCallBackFn()}})},children:"Change Organization"})]})},ff=m.createSlice({name:"SideBar",initialState:{isOpened:!1},reducers:{toggleSideBarState:e=>{e.isOpened=!e.isOpened},setSideBarState:(e,t)=>{e.isOpened=t.payload}}}),{toggleSideBarState:mf,setSideBarState:yf}=ff.actions;var hf=ff.reducer;const gf=a.styled(u,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const n=t.useSelector((e=>e.AppLayout)),r=ce();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:r?void 0:"calc(100% - 350px)",marginLeft:r||"ltr"!==n.appDirection?void 0:"350px",marginRight:r||"rtl"!==n.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),Ef=()=>{const{Window:n,setWindowState:r}=Ce({windowTitle:"Change Current Organization",windowIcon:"globe",width:"fit-content",height:"fit-content"}),o=t.useSelector((e=>e.AppInfo.value)),i=t.useSelector((e=>e.AppLayout)),l=t.useSelector((e=>e.SideBar)),{UserSession:s}=De(),c=s.value.currentOrganization,{handleGetRequest:d}=be(),u=ce(),m=t.useDispatch();return e.jsxs(e.Fragment,{children:[e.jsx(n,{children:e.jsx(pf,{successChangeCallBackFn:()=>{r(!1)}})}),e.jsx(gf,{position:"fixed",open:l.isOpened,children:e.jsxs(p,{children:[e.jsx(a.IconButton,{color:"inherit","aria-label":"open drawer",onClick:()=>{m(mf())},edge:"start",sx:[{mr:"ltr"===i.appDirection?2:void 0,ml:"rtl"===i.appDirection?2:void 0},l.isOpened&&{display:"none"}],children:e.jsx(f.FontAwesomeIcon,{icon:"bars"})}),e.jsx(a.Avatar,{src:o.appLogo,sx:{marginRight:1,marginLeft:1}}),e.jsx(a.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:u?"":`${o.appName} - ${"ltr"===i.appDirection?c?.organizationEnName:c?.organizationArName}`}),e.jsx(a.Tooltip,{title:"light"===i.themeMode?"Switch Theme to Dark":"Switch Theme to Light",children:e.jsx(a.IconButton,{color:"inherit",onClick:()=>{m(fe.setThemeMode("light"===i.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===i.themeMode?"dark":"light")},children:"light"===i.themeMode?e.jsx(f.FontAwesomeIcon,{icon:"moon"}):e.jsx(f.FontAwesomeIcon,{icon:{prefix:"far",iconName:"sun"}})})}),e.jsx(a.Tooltip,{title:"ar"===g.language?"Change Language To English":"Change Language To Arabic",children:e.jsx(a.IconButton,{color:"inherit",onClick:()=>{let e="ar"===g.language?"en":"ar";var t;t=e,g.changeLanguage(t),localStorage.setItem("language",t),m(fe.setAppDirection("ar"===e?"rtl":"ltr"))},children:e.jsx(f.FontAwesomeIcon,{icon:"language"})})}),s.value?.userOrganizations&&s.value?.userOrganizations.length>1?e.jsx(a.Tooltip,{title:"Change Current Organization",children:e.jsx(a.IconButton,{color:"inherit",onClick:()=>{r(!0)},children:e.jsx(f.FontAwesomeIcon,{icon:"globe"})})}):e.jsx(e.Fragment,{}),e.jsx(a.Avatar,{}),e.jsx("div",{style:{marginLeft:5,marginRight:5},children:u?"":s.value?.username}),e.jsx(a.IconButton,{color:"inherit",onClick:async()=>{try{await d({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}m(Ae.setUnAuthenticated())},children:e.jsx(f.FontAwesomeIcon,{rotation:"rtl"===i.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})]})},_f=a.styled("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"}))),bf=(e,t)=>{for(const n of t){if(n.id===e)return n;if(n.children){const t=bf(e,n.children);if(t)return t}}},Tf=[...[{id:"home",icon:"home",label:"Home",action:"NAVIGATION",actionPayload:{path:"/"}},{id:"system_admin",label:"System Administration",authority:"SYSTEM_ADMIN",icon:"cog",children:[{id:"development_admin.organization",label:"ORGANIZATION_PLURAL",authority:"DEVELOPMENT_ADMIN",icon:"globe",action:"NAVIGATION",actionPayload:{path:"admin/organizations"}},{id:"development_admin.SystemApplication",label:"SYSTEM_APPLICATION_PLURAL",authority:"DEVELOPMENT_ADMIN",icon:"window-restore",action:"NAVIGATION",actionPayload:{path:"admin/systemapplications"}},{id:"system_admin.Person",label:"PERSON_PLURAL",icon:"users",action:"NAVIGATION",actionPayload:{path:"admin/persons"}},{id:"system_admin.devtools",label:"DEVELOPMENT_TOOLS",icon:"code",children:[{id:"system_admin.devtools.DatasourceConnection",label:"DATASOURCE_CONNECTION_PLURAL",icon:"plug",action:"NAVIGATION",actionPayload:{path:"dev/datasourceconnections"}},{id:"system_admin.devtools.EntityParameter",label:"ENTITY_PARAMETER_PLURAL",icon:"p",action:"NAVIGATION",actionPayload:{path:"dev/entityparameters"}},{id:"system_admin.devtools.DataQuery",label:"DATA_QUERY_PLURAL",icon:"file-code",action:"NAVIGATION",actionPayload:{path:"dev/dataqueries"}},{id:"system_admin.devtools.Report",label:"REPORT_PLURAL",icon:"file",action:"NAVIGATION",actionPayload:{path:"dev/reports"}},{id:"system_admin.devtools.MailConfig",label:"Mail Sender Config",icon:{iconName:"paper-plane",prefix:"fas"},action:"NAVIGATION",actionPayload:{path:"dev/mailsender/config"}},{id:"system_admin.devtools.MailTemplate",label:"MAIL_TEMPLATE_PLURAL",icon:"envelope",action:"NAVIGATION",actionPayload:{path:"dev/mailtemplates"}},{id:"system_admin.devtools.WorkflowDocument",label:"WORKFLOW_DOCUMENT_PLURAL",icon:"chart-diagram",action:"NAVIGATION",actionPayload:{path:"dev/workflowdocuments"}},{id:"system_admin.devtools.Widget",label:"WIDGET_PLURAL",icon:"chart-pie",action:"NAVIGATION",actionPayload:{path:"dev/widgets"}},{id:"system_admin.devtools.Dashboard",label:"DASHBOARD_PLURAL",icon:"square-poll-vertical",action:"NAVIGATION",actionPayload:{path:"dev/dashboards"}},{id:"system_admin.devtools.BluePrint",label:"BLUE_PRINT_PLURAL",icon:"fingerprint",action:"NAVIGATION",actionPayload:{path:"dev/blueprints"}},{id:"system_admin.devtools.Notification",label:"NOTIFICATION_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"dev/notifications"}}]},{id:"system_admin.followup",label:"SYSTEM_MONITORING",icon:"tv",children:[{id:"system_admin.WorkflowDocumentMailLog",label:"Action Mail Logs",icon:"envelopes-bulk",action:"NAVIGATION",actionPayload:{path:"dev/workflowdocumentmaillogs"}},{id:"system_admin.MailNotificationQueue",label:"Mail Notification Queue",icon:"envelope-open-text",action:"NAVIGATION",actionPayload:{path:"dev/mailnotificationqueues"}},{id:"system_admin.NotificationQueue",label:"NOTIFICATION_QUEUE_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"dev/notificationqueues"}}]}]}]];function Af(){return e.jsx(D,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const Of=c.styled(q.TreeItem2Root)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${V.treeItemClasses.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),If=c.styled(q.TreeItem2Content)((({theme:e})=>({flexDirection:"row-reverse",borderRadius:e.spacing(.7),marginBottom:e.spacing(.5),marginTop:e.spacing(.5),padding:e.spacing(.5),paddingRight:e.spacing(1),"&.Mui-expanded ":{"&:not(.Mui-focused, .Mui-selected, .Mui-selected.Mui-focused) .labelIcon":{color:e.palette.primary.dark,...e.applyStyles("light",{color:e.palette.primary.main})},"&::before":{content:'""',display:"block",position:"absolute",left:"16px",top:"44px",height:"calc(100% - 48px)",width:"1.5px",backgroundColor:e.palette.grey[700],...e.applyStyles("light",{backgroundColor:e.palette.grey[300]})}},"&:hover":{backgroundColor:c.alpha(e.palette.primary.main,.1),color:"white",...e.applyStyles("light",{color:e.palette.primary.main})},"&.Mui-focused, &.Mui-selected, &.Mui-selected.Mui-focused":{backgroundColor:e.palette.primary.dark,color:e.palette.primary.contrastText,...e.applyStyles("light",{backgroundColor:e.palette.primary.main})}}))),Nf=W.animated(K);function vf(t){const n=W.useSpring({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e.jsx(Nf,{style:n,...t})}const Sf=c.styled(L)({color:"inherit",fontWeight:500});function Mf({icon:n,expandable:r,children:o,...i}){const{t:a}=E.useTranslation(),l=t.useSelector((e=>e.AppLayout));return e.jsxs(q.TreeItem2Label,{...i,sx:{display:"flex",alignItems:"center",padding:1},children:[e.jsx(f.FontAwesomeIcon,{style:{marginRight:"ltr"===l.appDirection?7:void 0,marginLeft:"rtl"===l.appDirection?7:void 0,fontSize:"1.2rem"},icon:n}),e.jsx(Sf,{variant:"body2",sx:{fontSize:16},children:a(o)}),r&&e.jsx(Af,{})]})}const Lf=e=>Array.isArray(e)?e.length>0&&e.some(Lf):Boolean(e),Df=ae.forwardRef((function(t,n){const{id:r,itemId:o,label:i,disabled:a,children:l,...s}=t,{getRootProps:c,getContentProps:d,getIconContainerProps:u,getCheckboxProps:p,getLabelProps:f,getGroupTransitionProps:m,getDragAndDropOverlayProps:y,status:h,publicAPI:g}=H.useTreeItem2({id:r,itemId:o,children:l,label:i,disabled:a,rootRef:n}),E=g.getItem(o),_=Lf(l);return e.jsx(Z.TreeItem2Provider,{itemId:o,children:e.jsxs(Of,{...c(s),children:[e.jsxs(If,{...d({className:ir("content",{"Mui-expanded":h.expanded,"Mui-selected":h.selected,"Mui-focused":h.focused,"Mui-disabled":h.disabled})}),children:[e.jsx(q.TreeItem2IconContainer,{...u(),children:e.jsx(Q.TreeItem2Icon,{status:h})}),e.jsx(q.TreeItem2Checkbox,{...p()}),e.jsx(Mf,{...f({icon:E?.icon||"book",expandable:_&&h.expanded})}),e.jsx($.TreeItem2DragAndDropOverlay,{...y()})]}),l&&e.jsx(vf,{...m()})]})})}));function Cf(){const n=U.useNavigate(),r=t.useSelector((e=>e.AppLayout)),o=t.useSelector((e=>e.AppInfo.value));t.useDispatch();const i=ce(),{isUserAuthorized:a}=De(),l=e=>e.filter((e=>void 0===e.authority||null==e.authority||a(e.authority))).map((e=>(e.children&&(e.children=l(e.children)),e))),s=[];o.enableAdministrationModule&&s.push(...Tf),s.push(...o.businessNavigationItems);const c=l(s);return e.jsx(G.RichTreeView,{items:c,onItemClick:(e,t)=>{const r=bf(t,s);"NAVIGATION"!==r?.action||null==r?.actionPayload||void 0!==r.children&&null!==r.children&&0!=r.children.length||n(r?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:de,direction:r.appDirection,maxHeight:i?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:Df}})}const wf=()=>{const n=t.useSelector((e=>e.AppInfo.value)),{UserSession:r}=De(),o=r.value.currentOrganization,i=a.useTheme(),l=t.useSelector((e=>e.AppLayout)),s=t.useSelector((e=>e.SideBar)),c=t.useDispatch();return e.jsxs(Y,{sx:{width:de,flexShrink:0,"& .MuiDrawer-paper":{width:de,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===l.appDirection?"left":"right",open:s.isOpened,children:[e.jsxs(_f,{children:[e.jsxs(a.Box,{sx:{width:"100%"},children:[e.jsx(a.Typography,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e.jsx(a.Typography,{sx:{fontSize:12},color:"textDisabled",children:`${n.appName} - ${"ltr"===l.appDirection?o?.organizationEnName:o?.organizationArName}`}),e.jsxs(a.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",n.appVersion]})]})]}),e.jsx(z,{onClick:()=>{c(mf())},children:"ltr"===i.direction?e.jsx(f.FontAwesomeIcon,{icon:"angle-left"}):e.jsx(f.FontAwesomeIcon,{icon:"angle-right"})})]}),e.jsx(v,{}),e.jsx(Cf,{})]})},xf=ee({key:"muirtl",stylisPlugins:[X.prefixer,J]}),Rf=ee({key:"mui"}),kf=t=>{const[n,r]=s.useState(!0),[o,i]=s.useState([]),{handleGetRequest:l}=be();s.useEffect((()=>{(async()=>{r(!0),await l({endPointURI:"api/v1/dev/query/result",showMask:!1,parameters:{queryId:t.dataQueryId,...t.parameterValues},successCallBkFn:e=>{r(!1),i(e.data)},failureCallBkFn:()=>{r(!1),i(null)}})})()}),[t.parameterValues]);let c=0;if(1==o.length&&(c=100),"CircularProgress"===t.widgetType||"LinearProgress"===t.widgetType)for(const e of o)c+=e[t.verticalAxisField];return e.jsxs(e.Fragment,{children:["LineChart"===t.widgetType||"PieChart"===t.widgetType||"ColumnChart"===t.widgetType?e.jsxs(a.Box,{children:[e.jsx(f.FontAwesomeIcon,{style:{marginRight:10,marginLeft:10},icon:t?.icon||"chart-pie"}),t?.title]}):e.jsx(e.Fragment,{}),e.jsx(a.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:n?e.jsxs(e.Fragment,{children:[e.jsx(f.FontAwesomeIcon,{icon:{prefix:"fas",iconName:"arrows-spin"},style:{marginRight:10,marginLeft:10},spin:!0,size:"2x"}),e.jsx("div",{children:"Loading"})]}):"ColumnChart"===t.widgetType?e.jsx(Ye,{data:o,widgetTitle:t.title,labelField:t.verticalAxisField,valueField:t.horizontalAxisField,valueLabel:t.horizontalAxisLabel,widgetType:"Line"}):"LineChart"===t.widgetType?e.jsx(Ge,{data:o,widgetTitle:t.title,labelField:t.verticalAxisField,valueField:t.horizontalAxisField,valueLabel:t.horizontalAxisLabel,widgetType:"Line"}):"PieChart"===t.widgetType?e.jsx(qe,{data:o,widgetTitle:t.title,labelField:t.horizontalAxisField,valueField:t.verticalAxisField,widgetType:"Line"}):e.jsxs(a.Grid2,{container:!0,sx:{width:"100%",alignItems:"flex-start",justifyContent:"flex-start"},spacing:2,size:{xs:12},children:[e.jsx(a.Grid2,{size:{xs:12},sx:{textAlign:"center"},children:t.title}),o.map(((n,r)=>"Card"===t.widgetType?e.jsx(a.Grid2,{size:{md:3,xs:12},children:e.jsx(We,{widgetTitle:"",record:n,labelField:t.verticalAxisField,valueField:t.horizontalAxisField},r)}):"CircularProgress"===t.widgetType?e.jsx(a.Grid2,{size:{md:3,xs:12},children:e.jsx(Ke,{widgetTitle:"",record:n,labelField:t.horizontalAxisField,valueField:t.verticalAxisField,total:c},r)}):"LinearProgress"===t.widgetType?e.jsx(a.Grid2,{size:{md:3,xs:12},children:e.jsx(He,{widgetTitle:"",record:n,labelField:t.horizontalAxisField,valueField:t.verticalAxisField,total:c},r)}):void 0))]})})]})},jf=t=>{const[n,r]=s.useState({dashboardCode:"",dashboardName:"",dashboardTitle:"",dashboardParameters:[],widgets:[]}),[o,i]=s.useState(t?.parameters||{}),l=U.useNavigate(),{handleGetRequest:c,handlePostRequest:d}=be();return s.useEffect((()=>{t.dashboardCode&&(async()=>{await c({endPointURI:"api/v1/dev/dashboard/metadata",showMask:!0,parameters:{dashboardCode:t.dashboardCode},successCallBkFn:e=>{r(e.data)},failureCallBkFn:()=>{r(null)}})})()}),[t.dashboardCode,t.parameters]),e.jsx(e.Fragment,{children:n?e.jsxs(e.Fragment,{children:[e.jsxs(a.Box,{sx:{fontSize:20,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(a.IconButton,{onClick:()=>{l(-1,{replace:!0})},children:e.jsx(f.FontAwesomeIcon,{icon:"arrow-left"})}),e.jsx(a.Box,{sx:{flex:1}}),e.jsx(f.FontAwesomeIcon,{style:{marginLeft:10,marginRight:10},icon:"square-poll-vertical"}),e.jsx(a.Box,{children:n?.dashboardTitle}),e.jsx(a.Box,{sx:{flex:1}})]}),e.jsx(a.Grid2,{container:!0,spacing:1,sx:{flexGrow:1,overflowY:"auto",padding:1},children:n?.widgets.map(((t,n)=>e.jsx(a.Grid2,{sx:{alignItems:"center",justifyContent:"center",padding:1,display:"flex",overflow:"auto",flexDirection:"Card"!=t.widgetType?"column":void 0,height:t?.height||300},size:{md:t?.width,sm:12},children:e.jsx(kf,{...t})},n)))})]}):e.jsx(a.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold"},children:"No Dashboard Found"})})},Pf=t=>{const{t:n}=E.useTranslation(),{handleGetRequest:r}=be(),[o,i]=s.useState([]),a=Pe({findAll:"api/v1/admin/organizationapplicationmodule/all",deleteById:"api/v1/admin/organizationapplicationmodule",save:"api/v1/admin/organizationapplicationmodule",findById:"api/v1/admin/organizationapplicationmodule",setData:i}),[l,c]=s.useState([]);s.useEffect((()=>{(async()=>{await r({endPointURI:"api/v1/admin/systemapplicationmodule/all",showMask:!0,successCallBkFn:e=>{c(e.data)}})})()}),[]);const d=[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID",fieldName:"systemApplicationModuleId",required:!1,fieldType:"combobox",options:l,optionDisplayField:"moduleName",optionValueField:"id"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE",fieldName:"subscriptionDate",required:!0,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE",fieldName:"expirationDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:a,data:o,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},hideInfoBar:!0,setData:i,editMode:{editMode:"row"},formElements:d,keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_MODULE_PLURAL",girdIcon:"layer-group",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_MODULE_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_MODULE_DELETE"}})},Uf=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/admin/organizationunittype/all",deleteById:"api/v1/admin/organizationunittype",save:"api/v1/admin/organizationunittype",findById:"api/v1/admin/organizationunittype",setData:o});return e.jsx(uf,{apiActions:i,data:r,hideInfoBar:!0,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID",hidden:!0,gridProps:{hidden:!0},fieldName:"organizationId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER",fieldName:"organizationUnitTypeOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE",fieldName:"unitTypeCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME",fieldName:"unitTypeArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME",fieldName:"unitTypeEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_TYPE_PLURAL",girdIcon:"tags",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_TYPE_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_TYPE_DELETE"}})},Bf=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:o}),[a,l]=s.useState([]),{handleGetRequest:c}=be();s.useEffect((()=>{(async()=>{await c({endPointURI:"api/v1/admin/organizationunittype/all",showMask:!0,parameters:{organizationId:t.selectedOrganization.id},successCallBkFn:e=>{l(e.data)}})})()}),[]);const d=[{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID",fieldName:"organizationUnitTypeId",required:!0,fieldType:"combobox",options:a,optionValueField:"id",optionDisplayField:"unitTypeEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"combobox",options:r,optionValueField:"id",optionDisplayField:"organizationUnitEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:i,data:r,hideInfoBar:!0,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},setData:o,editMode:{editMode:"row"},formElements:d,keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"folder-tree",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},Ff=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:o});return e.jsx(uf,{apiActions:i,data:r,hideInfoBar:!0,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_AR_NAME",fieldName:"rankArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_EN_NAME",fieldName:"rankEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"street-view",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},zf=t=>{const[n,r]=s.useState([]),[o,i]=s.useState([]),{handlePostRequest:l,handleGetRequest:c}=be();s.useEffect((()=>{t.selectedRecord&&(async()=>{await c({endPointURI:"api/v1/admin/organization/member/roles",showMask:!0,parameters:{orgMemberId:t.selectedRecord.id,organizationId:t.selectedRecord.organizationId},successCallBkFn:e=>{r(e.data.currentRoles),i(e.data.availableRoles)}})})()}),[t.selectedRecord]);return e.jsxs(e.Fragment,{children:[e.jsx(ze,{displayField:"appRoleDisplay",options:o,valueField:"id",selectedOptions:n,setSelection:r}),e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[e.jsx(a.Button,{variant:"contained",onClick:async()=>{await l({endPointURI:"api/v1/admin/organization/member/roles",showMask:!0,parameters:{orgMemberId:t.selectedRecord.id},data:n,successCallBkFn:()=>{y.toast.success("Your request has been proccesed successfully"),t.closeModalFn&&t.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),e.jsx(a.Button,{variant:"contained",color:"error",onClick:t.closeModalFn,children:"Cancel"})]})]})},Yf=n=>{const[r,o]=s.useState(null),{Window:i,setWindowState:a}=Ce({windowIcon:"tag",windowTitle:"Organization Member Roles",width:"50%"}),l=t.useSelector((e=>e.commonStores.stores.SystemOrganizations.data)),c=t.useSelector((e=>e.commonStores.stores.SystemOrganizationRanks.data)),d=t.useSelector((e=>e.commonStores.stores.SystemOrganizationUnits.data)),{t:u}=E.useTranslation(),[p,f]=s.useState([]),m=Pe({findAll:"api/v1/admin/organizationmember/all",deleteById:"api/v1/admin/organizationmember",save:"api/v1/admin/organizationmember",findById:"api/v1/admin/organizationmember",setData:f}),y=[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_ID",fieldName:"organizationId",required:!0,fieldType:"combobox",options:l,optionValueField:"id",optionDisplayField:"organizationEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"combobox",options:c,optionValueField:"id",optionDisplayField:"rankDisplay"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"fullPath"}},{type:"field",mode:"props",props:{fieldLabel:"Membership number",fieldName:"organizationMembershipNumber",fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_MEMBER_PERSON_ID",fieldName:"personId",required:!1,fieldType:"number"}}];return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx(zf,{selectedRecord:r,closeModalFn:()=>{a(!1)}})}),e.jsx(uf,{apiActions:m,hideInfoBar:!0,data:p,setData:f,editMode:{editMode:"row"},formElements:y,rowActions:[{icon:"tag",label:"Roles",actionFn:async e=>{o(e),a(!0)}}],gridLoadParametersValues:{personId:n.selectedPerson.id},keyColumnName:"id",gridTitle:"ORGANIZATION_MEMBER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_EDIT",preActionValidation:async e=>(e.personId=n.selectedPerson.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_DELETE"}})]})},Wf=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/admin/systemapplicationmodule/application/all",deleteById:"api/v1/admin/systemapplicationmodule",save:"api/v1/admin/systemapplicationmodule",findById:"api/v1/admin/systemapplicationmodule",setData:o});return e.jsx(uf,{apiActions:i,data:r,gridLoadParametersValues:{applicationId:t?.selectedApplication?.id},setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_CODE",fieldName:"moduleCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_NAME",fieldName:"moduleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION",fieldName:"moduleDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}}],keyColumnName:"id",hideInfoBar:!0,gridTitle:"SYSTEM_APPLICATION_MODULE_PLURAL",girdIcon:"layer-group",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_MODULE_EDIT",preActionValidation:async e=>(e.systemApplicationId=t?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_MODULE_DELETE"}})},Kf=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/admin/systemapplicationauthority/all",deleteById:"api/v1/admin/systemapplicationauthority",save:"api/v1/admin/systemapplicationauthority",findById:"api/v1/admin/systemapplicationauthority",setData:o}),[a,l]=s.useState([]),{handleGetRequest:c}=be();s.useEffect((()=>{(async()=>{await c({endPointURI:"api/v1/admin/systemapplicationmodule/application/all",showMask:!0,parameters:{applicationId:t.selectedApplication.id},successCallBkFn:e=>{l(e.data)}})})()}),[]);const d=[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID",fieldName:"systemModuleId",required:!1,fieldType:"combobox",options:a,optionValueField:"id",optionDisplayField:"moduleName"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:i,data:r,hideInfoBar:!0,gridLoadParametersValues:{applicationId:t?.selectedApplication?.id},setData:o,editMode:{editMode:"row"},formElements:d,keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_AUTHORITY_PLURAL",girdIcon:"key",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_AUTHORITY_EDIT",preActionValidation:async e=>(e.systemApplicationId=t?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_AUTHORITY_DELETE"}})},Gf=t=>{const[n,r]=s.useState([]),[o,i]=s.useState([]),{handlePostRequest:l,handleGetRequest:c}=be();s.useEffect((()=>{t.roleId&&t.appId&&(async()=>{await c({endPointURI:"api/v1/admin/systemApplicationRoleAuthorities",showMask:!0,parameters:{appId:t.appId,roleId:t.roleId},successCallBkFn:e=>{r(e.data.selectedAuthorities),i(e.data.availableAuthorities)}})})()}),[t.roleId,t.appId]);return e.jsxs(e.Fragment,{children:[e.jsx(ze,{displayField:"authorityName",options:o,valueField:"id",selectedOptions:n,setSelection:r}),e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[e.jsx(a.Button,{variant:"contained",onClick:async()=>{await l({endPointURI:"api/v1/admin/systemApplicationRoleAuthorities",showMask:!0,parameters:{roleId:t.roleId},data:n,successCallBkFn:()=>{y.toast.success("Your request has been proccesed successfully"),t.closeModalFn&&t.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),e.jsx(a.Button,{variant:"contained",color:"error",onClick:t.closeModalFn,children:"Cancel"})]})]})},Vf=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),[i,a]=s.useState(null),{Window:l,setWindowState:c}=Ce({windowTitle:"System Application Role Authorities",windowIcon:"key",width:"50%"}),d=Pe({findAll:"api/v1/admin/systemapplicationrole/all",deleteById:"api/v1/admin/systemapplicationrole",save:"api/v1/admin/systemapplicationrole",findById:"api/v1/admin/systemapplicationrole",setData:o});return e.jsxs(e.Fragment,{children:[e.jsx(l,{children:e.jsx(Gf,{appId:t.selectedApplication.id,roleId:i?.id,closeModalFn:()=>{c(!1)}})}),e.jsx(uf,{apiActions:d,data:r,hideInfoBar:!0,gridLoadParametersValues:{applicationId:t?.selectedApplication?.id},setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION",fieldName:"roleDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_ROLE_PLURAL",girdIcon:"tag",rowActions:[{icon:"key",actionFn:async e=>{a(e),c(!0)},label:"Authorities"}],editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_EDIT",preActionValidation:async e=>(e.systemApplicationId=t?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_DELETE"}})]})},Hf=n=>{const r=t.useSelector((e=>e.commonStores.stores.SystemOrganizations.data)),{t:o}=E.useTranslation(),[i,a]=s.useState([]),l=Pe({findAll:"api/v1/dev/lookup/all",deleteById:"api/v1/dev/lookup",save:"api/v1/dev/lookup",findById:"api/v1/dev/lookup",setData:a}),c=[{type:"field",mode:"props",props:{fieldLabel:"Organization",fieldName:"organizationId",options:r,optionDisplayField:"organizationEnName",optionValueField:"id",required:!1,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_AR_DISPLAY",fieldName:"lookupArDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_EN_DISPLAY",fieldName:"lookupEnDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"System Application",fieldName:"systemApplicationId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}}];return e.jsx(uf,{apiActions:l,data:i,setData:a,hideInfoBar:!0,gridLoadParametersValues:{systemApplicationId:n.selectedApplication.id},editMode:{editMode:"row"},formElements:c,keyColumnName:"id",gridTitle:o("LOOKUP_PLURAL"),girdIcon:"list-check",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT",preActionValidation:e=>(e.systemApplicationId=n.selectedApplication.id,!0)},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},qf=n=>{const r=t.useSelector((e=>e.commonStores.stores.SystemEntityParameters.data)),{t:o}=E.useTranslation(),[i,a]=s.useState([]),l=Pe({findAll:"api/v1/dev/dataqueryparameter/all",deleteById:"api/v1/dev/dataqueryparameter",save:"api/v1/dev/dataqueryparameter",findById:"api/v1/dev/dataqueryparameter",setData:a}),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!0,fieldType:"combobox",options:r,optionValueField:"id",optionDisplayField:"parameterCode"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:l,data:i,setData:a,editMode:{editMode:"row"},hideInfoBar:!0,formElements:c,keyColumnName:"id",gridLoadParametersValues:{dataQueryId:n.selectedRecord.id},gridTitle:o("DATA_QUERY_PARAMETER_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT",preActionValidation:async e=>(e.dataQueryId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},Qf=n=>{const{t:r}=E.useTranslation(),o=t.useSelector((e=>e.commonStores.stores.SystemEntityParameters.data)),[i,a]=s.useState([]),l=Pe({findAll:"api/v1/dev/reportparameter/all",deleteById:"api/v1/dev/reportparameter",save:"api/v1/dev/reportparameter",findById:"api/v1/dev/reportparameter",setData:a}),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!0,fieldType:"combobox",options:o,optionValueField:"id",optionDisplayField:"parameterCode"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_REPORT_ID",fieldName:"reportId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}}];return e.jsx(uf,{apiActions:l,data:i,hideInfoBar:!0,setData:a,gridLoadParametersValues:{reportId:n.selectedRecord.id},editMode:{editMode:"row"},formElements:c,keyColumnName:"id",gridTitle:r("REPORT_PARAMETER_PLURAL"),girdIcon:"p",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT",preActionValidation:async e=>(e.reportId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},Zf=e=>{if(0===e.length)return[];const t=[];for(const n of Object.keys(e[0])){const e={type:"field",mode:"props",props:{fieldLabel:n,fieldName:n,fieldType:"text"}};t.push(e)}return console.log("formElements",t),t},$f=t=>(console.log("reportdata",t.reportData),e.jsx(uf,{data:t.reportData,disableDefaultAction:!0,setData:t.setReportData,formElements:Zf(t.reportData),gridLoadParameters:t.gridLoadParameters,gridLoadParametersValues:t.gridLoadParametersValues,setGridLoadParametersValues:t.setGridLoadParametersValues,editMode:{editMode:"none"},girdIcon:"file-excel",gridTitle:"Report",autoLoad:!0,hideInfoBar:!0,apiActions:{deleteRecordById:async()=>!0,loadRecordById:async()=>{},reloadData:async()=>{t.reloadReport()},saveRecord:async()=>{}}})),Jf=t=>{const[n,r]=s.useState(null),[o,i]=s.useState(null),[l,c]=s.useState([]),[d,u]=s.useState("WAITING_REPORT_CODE"),{handleGetRequest:p,handlePostRequest:m,HandleDownloadHTTPPostPDF:y}=be(),[h,g]=s.useState(null),[_,b]=s.useState({...t?.reportParametersValues}),[T,A]=s.useState([]),{t:O}=E.useTranslation(),I=e=>{const t=[];for(const n of e){const e={type:"field",mode:"props",props:{fieldLabel:n?.parameterLabel,fieldName:n?.parameterCode,fieldType:n?.parameterType,hidden:n?.hidden,formProps:{fieldSize:{lg:4,md:6,sm:12}},required:n?.mandatory,defaultValue:_[n?.parameterCode]||n?.defaultValue}};t.push(e)}return t},N=async(e,n)=>{u("WAITING_RESULT"),"Excel"===e?.reportType?await m({endPointURI:"api/v1/dev/report/run",showMask:!0,data:{reportCode:t.reportCode,parameters:n,resultMode:t.resultMode,jasperOutPutFileType:t.jasperOutPutFileType},successCallBkFn:e=>{u("SHOWING_RESULT"),c(e.data)}}):e?.reportType&&await y({endPointURI:"api/v1/dev/report/run",showMask:!0,data:{reportCode:t.reportCode,parameters:n,resultMode:t.resultMode,jasperOutPutFileType:t.jasperOutPutFileType},successCallBkFn:e=>{u("SHOWING_RESULT");const t=e.headers["content-disposition"];let n="downloaded_file";if(t&&-1!==t.indexOf("filename=")){const e=t.match(/filename="?([^"]+)"?/);e&&e[1]&&(n=e[1])}if(n.includes("pdf")){const t=new Blob([e.data],{type:"application/pdf"}),n=URL.createObjectURL(t);r(n)}else{const t=new Blob([e.data],{type:e.headers["content-type"]}),r=window.URL.createObjectURL(t),o=document.createElement("a");o.href=r,o.download=n,document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(r)}console.log(e)},failureCallBkFn:e=>{i("Failed To run report ... contact your administrator"),u("ERROR")}})};return s.useEffect((()=>{t?.reportCode&&(async()=>{u("LOADING_METADATA"),await p({endPointURI:"api/v1/dev/report/metadata",showMask:!0,parameters:{reportCode:t.reportCode},successCallBkFn:e=>{g(e.data),A(I(e.data.reportParameters)),!0===t?.byPassParameterEntry||0==e.data.reportParameters.length?(N(e.data,_),u("WAITING_RESULT")):u("WAITING_PARAMETER_INPUT")},failureCallBkFn:e=>{i("Failed loading report metadata ... contact your administrator"),u("ERROR")}})})()}),[t.reportCode,t.byPassParameterEntry,t.reportParametersValues,t.jasperOutPutFileType,t.resultMode]),e.jsxs(e.Fragment,{children:[e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:[e.jsxs(a.Box,{sx:{flex:1,textAlign:"center",marginBottom:1},children:[e.jsx(f.FontAwesomeIcon,{icon:"Excel"===h?.reportType?"file-excel":"file-pdf",color:"Excel"===h?.reportType?"darkgreen":"darkred",style:{marginRight:10,marginLeft:10}}),h?.reportName]}),"Excel"!=h?.reportType&&"SHOWING_RESULT"===d?e.jsxs(e.Fragment,{children:[!0===t?.byPassParameterEntry?e.jsx(e.Fragment,{}):T.length>0?e.jsx(a.IconButton,{onClick:()=>{A(I(h.reportParameters)),u("WAITING_PARAMETER_INPUT")},children:e.jsx(f.FontAwesomeIcon,{icon:"filter"})}):e.jsx(e.Fragment,{}),e.jsx(a.IconButton,{children:e.jsx(f.FontAwesomeIcon,{icon:"refresh",onClick:()=>{N(h,_)}})})]}):e.jsx(e.Fragment,{})]}),e.jsx(a.Box,{sx:{flexGrow:1,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:"WAITING_PARAMETER_INPUT"===d&&"Excel"!=h?.reportType?e.jsxs(a.Accordion,{defaultExpanded:!0,sx:{width:"100%"},expanded:!0,children:[e.jsx(a.AccordionSummary,{children:e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(f.FontAwesomeIcon,{style:{marginLeft:5,marginRight:5},icon:"search"}),e.jsx(a.Typography,{component:"span",children:"Filters"})]})}),e.jsx(a.AccordionDetails,{children:e.jsx(a.Box,{children:e.jsx(Xp,{saveButtonSpecs:{label:O("SHOW_REPORT_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success",hidden:!0},cancelButtonSpecs:{label:O("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{b(null!=e?e:{}),N(h,e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:T})})})]}):"SHOWING_RESULT"===d||("WAITING_PARAMETER_INPUT"===d||"WAITING_RESULT"===d)&&"Excel"===h?.reportType?"Excel"===h?.reportType?e.jsx($f,{reportData:l,setReportData:c,reloadReport:async()=>{N(h,_)},gridLoadParameters:T,gridLoadParametersValues:_,setGridLoadParametersValues:b}):e.jsx("iframe",{src:n,width:"100%",height:"100%",title:"PDF Preview",style:{border:"1px solid #ccc",marginTop:"20px"}}):"ERROR"===d?e.jsxs(a.Box,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:[e.jsx(f.FontAwesomeIcon,{icon:"circle-exclamation",color:"darkred",style:{marginRight:10,marginLeft:10}}),o]}):e.jsx(e.Fragment,{})})]})},Xf={Blueprint:{useSysDatasource:{isMandatory:!1,isVisible:!1},datasourceConId:{isMandatory:!1,isVisible:!1},reportBluePrintId:{isMandatory:!0,isVisible:!0},reportExcelDataQueryId:{isMandatory:!1,isVisible:!1},reportJasperName:{isMandatory:!1,isVisible:!1},reportJasperPath:{isMandatory:!1,isVisible:!1}},Jasper:{useSysDatasource:{isMandatory:!1,isVisible:!0},datasourceConId:{isMandatory:!1,isVisible:!0},reportBluePrintId:{isMandatory:!1,isVisible:!1},reportExcelDataQueryId:{isMandatory:!1,isVisible:!1},reportJasperName:{isMandatory:!0,isVisible:!0},reportJasperPath:{isMandatory:!0,isVisible:!0}},Excel:{useSysDatasource:{isMandatory:!1,isVisible:!1},datasourceConId:{isMandatory:!1,isVisible:!1},reportBluePrintId:{isMandatory:!1,isVisible:!1},reportExcelDataQueryId:{isMandatory:!0,isVisible:!0},reportJasperName:{isMandatory:!1,isVisible:!1},reportJasperPath:{isMandatory:!1,isVisible:!1}}},em=(e,t,n)=>{if(e&&Xf[e]){const r=Xf[e],o=Object.keys(r);for(const e of o){r[e].isVisible?t.showField(e):(t.hideField(e),n.setValue(e,null))}}else t.hideField("useSysDatasource"),t.hideField("datasourceConId"),t.hideField("reportBluePrintId"),t.hideField("reportExcelDataQueryId"),t.hideField("reportJasperName"),t.hideField("reportJasperPath"),n.setValue("useSysDatasource",null),n.setValue("datasourceConId",null),n.setValue("reportBluePrintId",null),n.setValue("reportExcelDataQueryId",null),n.setValue("reportJasperName",null),n.setValue("reportJasperPath",null)},tm=t=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/dev/mailrecipient/all",deleteById:"api/v1/dev/mailrecipient",save:"api/v1/dev/mailrecipient",findById:"api/v1/dev/mailrecipient",setData:o});return e.jsx(uf,{apiActions:i,data:r,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:t.selectedRecord.id},setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!0,fieldType:"combobox",options:[{value:"To"},{value:"CC"}],optionDisplayField:"value",optionValueField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:n("MAIL_RECIPIENT_PLURAL"),girdIcon:"users",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT",preActionValidation:e=>e?.recipientMail&&!ur(e.recipientMail)?(y.toast.error("You must enter a valid email address"),!1):(e.mailTemplateId=t.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},nm=n=>{const{t:r}=E.useTranslation(),[o,i]=s.useState([]),a=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),l=Pe({findAll:"api/v1/dev/mailbody/all",deleteById:"api/v1/dev/mailbody",save:"api/v1/dev/mailbody",findById:"api/v1/dev/mailbody",setData:i}),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_NAME",fieldName:"bodyName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!0,fieldType:"html"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"combobox",options:a,optionDisplayField:"queryName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_IS_MAIN",fieldName:"isMain",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}}];return e.jsx(uf,{apiActions:l,data:o,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:n.selectedRecord.id},setData:i,editMode:{editMode:"modal",specs:{modalIcon:{prefix:"fas",iconName:"envelope-open-text"},modalTitle:"Mail Body",modalWidth:"50%"}},formElements:c,keyColumnName:"id",gridTitle:r("MAIL_BODY_PLURAL"),girdIcon:{prefix:"fas",iconName:"envelope-open-text"},editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT",preActionValidation:async e=>(e.mailTemplateId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},rm=n=>{const r=t.useSelector((e=>e.commonStores.stores.SystemReports.data)),{t:o}=E.useTranslation(),[i,a]=s.useState([]),l=Pe({findAll:"api/v1/dev/mailattachment/all",deleteById:"api/v1/dev/mailattachment",save:"api/v1/dev/mailattachment",findById:"api/v1/dev/mailattachment",setData:a}),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{options:r,optionValueField:"id",optionDisplayField:"reportName",fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportId",required:!0,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}}];return e.jsx(uf,{apiActions:l,data:i,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:n.selectedRecord.id},setData:a,editMode:{editMode:"row"},formElements:c,keyColumnName:"id",gridTitle:o("MAIL_ATTACHMENT_PLURAL"),girdIcon:"paperclip",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT",preActionValidation:e=>(e.mailTemplateId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},om={Gmail:{mailHost:{isMandatory:!0,isVisible:!0},mailPort:{isMandatory:!0,isVisible:!0},mailUsername:{isMandatory:!0,isVisible:!0},mailPassword:{isMandatory:!0,isVisible:!0},mailProtocol:{isMandatory:!0,isVisible:!0},isMailSmtpAuthEnabled:{isMandatory:!0,isVisible:!0},isMailStarttlsEnabled:{isMandatory:!0,isVisible:!0},isSmtpSSlEnabled:{isMandatory:!0,isVisible:!0},azureGraphApiClientId:{isMandatory:!1,isVisible:!1},azureGraphApiClientSecret:{isMandatory:!1,isVisible:!1},azureGraphApiTenantId:{isMandatory:!1,isVisible:!1},azureGraphApiScope:{isMandatory:!1,isVisible:!1},azureGraphApiEmailId:{isMandatory:!1,isVisible:!1}},Azure:{mailHost:{isMandatory:!1,isVisible:!1},mailPort:{isMandatory:!1,isVisible:!1},mailUsername:{isMandatory:!1,isVisible:!1},mailPassword:{isMandatory:!1,isVisible:!1},mailProtocol:{isMandatory:!1,isVisible:!1},isMailSmtpAuthEnabled:{isMandatory:!1,isVisible:!1},isMailStarttlsEnabled:{isMandatory:!1,isVisible:!1},isSmtpSSlEnabled:{isMandatory:!1,isVisible:!1},azureGraphApiClientId:{isMandatory:!0,isVisible:!0},azureGraphApiClientSecret:{isMandatory:!0,isVisible:!0},azureGraphApiTenantId:{isMandatory:!0,isVisible:!0},azureGraphApiScope:{isMandatory:!0,isVisible:!0},azureGraphApiEmailId:{isMandatory:!0,isVisible:!0}}},im=(e,t,n)=>{if(e&&om[e]){const r=om[e],o=Object.keys(r);for(const e of o){r[e].isVisible?t.showField(e):(t.hideField(e),n.setValue(e,null))}}else t.hideField("mailHost"),n.setValue("mailHost",null),t.hideField("mailPort"),n.setValue("mailPort",null),t.hideField("mailUsername"),n.setValue("mailUsername",null),t.hideField("mailPassword"),n.setValue("mailPassword",null),t.hideField("mailProtocol"),n.setValue("mailProtocol",null),t.hideField("isMailSmtpAuthEnabled"),n.setValue("isMailSmtpAuthEnabled",null),t.hideField("isMailStarttlsEnabled"),n.setValue("isMailStarttlsEnabled",null),t.hideField("isSmtpSSlEnabled"),n.setValue("isSmtpSSlEnabled",null),t.hideField("azureGraphApiClientId"),n.setValue("azureGraphApiClientId",null),t.hideField("azureGraphApiClientSecret"),n.setValue("azureGraphApiClientSecret",null),t.hideField("azureGraphApiTenantId"),n.setValue("azureGraphApiTenantId",null),t.hideField("azureGraphApiScope"),n.setValue("azureGraphApiScope",null),t.hideField("azureGraphApiEmailId"),n.setValue("azureGraphApiEmailId",null)},am=n=>{const{t:r}=E.useTranslation(),[o,i]=s.useState([]),a=Pe({findAll:"api/v1/dev/workflowdocumentstatus/all",deleteById:"api/v1/dev/workflowdocumentstatus",save:"api/v1/dev/workflowdocumentstatus",findById:"api/v1/dev/workflowdocumentstatus",setData:i}),l=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Status Arabic Name",fieldName:"documentStatusArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Status English Name",fieldName:"documentStatusEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Next Actions Query (must return array of actions in table named workflow_document_action)",fieldName:"nextActionsQueryId",required:!1,fieldType:"combobox",options:l,optionValueField:"id",optionDisplayField:"queryName",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Next Action Takers Query (must return array of persons in table named person)",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"combobox",options:l,optionValueField:"id",optionDisplayField:"queryName",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Next Action Takers Authority",fieldName:"nextActionTakersAuthority",fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:a,data:o,setData:i,hideInfoBar:!0,gridLoadParametersValues:{workflowDocumentId:n.selectedRecord.id},editMode:{editMode:"modal",specs:{modalIcon:"tag",modalTitle:"Workflow Document Status",modalWidth:600}},formElements:c,keyColumnName:"id",gridTitle:r("WORKFLOW_DOCUMENT_STATUS_PLURAL"),girdIcon:"tags",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT",preActionValidation:e=>(e.workflowDocumentId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},lm=n=>{const{t:r}=E.useTranslation(),[o,i]=s.useState([]),a=Pe({findAll:"api/v1/dev/workflowdocumentactionmail/all",deleteById:"api/v1/dev/workflowdocumentactionmail",save:"api/v1/dev/workflowdocumentactionmail",findById:"api/v1/dev/workflowdocumentactionmail",setData:i}),l=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!0,fieldType:"combobox",options:t.useSelector((e=>e.commonStores.stores.SystemMailTemplates.data)),optionDisplayField:"mailTemplateName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:a,data:o,hideInfoBar:!0,gridLoadParametersValues:{actionId:n.selectedRecord.id},setData:i,editMode:{editMode:"row"},formElements:l,keyColumnName:"id",gridTitle:r("WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT",preActionValidation:e=>(e.documentActionId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},sm=t=>{const[n,r]=s.useState(null),{Window:o,setWindowState:i}=Ce({windowTitle:"Action Mail Notification",windowIcon:"envelope",width:"50%"}),{t:a}=E.useTranslation(),{handleGetRequest:l}=be(),[c,d]=s.useState([]);s.useEffect((()=>{(async()=>{await l({endPointURI:"api/v1/dev/workflowdocumentstatus/all",showMask:!0,parameters:{workflowDocumentId:t.selectedRecord.id},successCallBkFn:e=>{d(e.data)}})})()}),[t.selectedRecord]);const[u,p]=s.useState([]),f=Pe({findAll:"api/v1/dev/workflowdocumentaction/all",deleteById:"api/v1/dev/workflowdocumentaction",save:"api/v1/dev/workflowdocumentaction",findById:"api/v1/dev/workflowdocumentaction",setData:p}),m=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Action Arabic Name",fieldName:"documentActionArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Action English Name",fieldName:"documentActionEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!0,fieldType:"combobox",options:c,optionDisplayField:"documentStatusCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"Post Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)",fieldName:"postActionEndpoint",required:!1,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Pre Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)",fieldName:"preActionEndpoint",required:!1,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT",fieldName:"requireComment",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}}];return e.jsxs(e.Fragment,{children:[e.jsx(o,{children:e.jsx(lm,{selectedRecord:n})}),e.jsx(uf,{apiActions:f,data:u,hideInfoBar:!0,gridLoadParametersValues:{workflowDocumentId:t.selectedRecord.id},setData:p,editMode:{editMode:"modal",specs:{modalIcon:"stamp",modalTitle:"Workflow Document Action",modalWidth:700}},rowActions:[{label:"Action Mail Notifications",icon:"envelope",actionFn:async e=>{r(e),i(!0)}}],formElements:m,keyColumnName:"id",gridTitle:a("WORKFLOW_DOCUMENT_ACTION_PLURAL"),girdIcon:"stamp",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT",preActionValidation:e=>(e.workflowDocumentId=t.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})]})},cm={LineChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!0,isVisible:!0},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!0,isVisible:!0}},ColumnChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!0,isVisible:!0},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!0,isVisible:!0}},PieChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},Card:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},CircularProgress:{height:{isMandatory:!1,isVisible:!1},width:{isMandatory:!1,isVisible:!1},horizontalAxisField:{isMandatory:!1,isVisible:!1},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!1,isVisible:!1},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},LinearProgress:{height:{isMandatory:!1,isVisible:!1},width:{isMandatory:!1,isVisible:!1},horizontalAxisField:{isMandatory:!1,isVisible:!1},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!1,isVisible:!1},verticalAxisLabel:{isMandatory:!1,isVisible:!1}}},dm=(e,t,n)=>{if(e&&cm[e]){const r=cm[e],o=Object.keys(r);for(const e of o){r[e].isVisible?t.showField(e):(t.hideField(e),n.setValue(e,null))}}else t.hideField("height"),n.setValue("height",null),t.hideField("width"),n.setValue("width",null),t.hideField("horizontalAxisField"),n.setValue("horizontalAxisField",null),t.hideField("horizontalAxisLabel"),n.setValue("horizontalAxisLabel",null),t.hideField("seriesKeys"),n.setValue("seriesKeys",null),t.hideField("verticalAxisField"),n.setValue("verticalAxisField",null),t.hideField("verticalAxisLabel"),n.setValue("verticalAxisLabel",null)},um=n=>{const{t:r}=E.useTranslation(),[o,i]=s.useState([]),a=t.useSelector((e=>e.commonStores.stores.SystemWidgets.data)),l=Pe({findAll:"api/v1/dev/dashboardwidget/all",deleteById:"api/v1/dev/dashboardwidget",save:"api/v1/dev/dashboardwidget",findById:"api/v1/dev/dashboardwidget",setData:i}),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!0,fieldType:"combobox",options:a,optionValueField:"id",optionDisplayField:"widgetName"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:l,data:o,setData:i,editMode:{editMode:"row"},hideInfoBar:!0,formElements:c,gridLoadParametersValues:{dashboardId:n.selectedRecord.id},keyColumnName:"id",gridTitle:r("DASHBOARD_WIDGET_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT",preActionValidation:async e=>(e.dashboardId=n.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},pm=[{path:"/",component:()=>e.jsx(jf,{dashboardCode:"XX_TEMPLATE_DASHBOARD"})},...[...[{path:"admin/organizations",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState([]),o=Pe({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:r}),{Window:i,setWindowState:a}=Ce({windowTitle:"Organization Subscriped Application Modules",windowIcon:"layer-group"}),{Window:l,setWindowState:c}=Ce({windowTitle:"Organization Unit Types",windowIcon:"tags"}),{Window:d,setWindowState:u}=Ce({windowTitle:"Organization Units",windowIcon:"folder-tree"}),{Window:p,setWindowState:f}=Ce({windowTitle:"Organization Ranks",windowIcon:"street-view"}),[m,y]=s.useState(null);return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx(Pf,{selectedOrganization:m})}),e.jsx(l,{children:e.jsx(Uf,{selectedOrganization:m})}),e.jsx(d,{children:e.jsx(Bf,{selectedOrganization:m})}),e.jsx(p,{children:e.jsx(Ff,{selectedOrganization:m})}),e.jsx(uf,{apiActions:o,data:n,setData:r,editMode:{editMode:"row"},rowActions:[{icon:"layer-group",actionFn:async e=>{y(e),a(!0)},label:"modules"},{icon:"tags",actionFn:async e=>{y(e),c(!0)},label:"Organization Unit Types"},{icon:"folder-tree",actionFn:async e=>{y(e),u(!0)},label:"Organization Units"},{icon:"street-view",actionFn:async e=>{y(e),f(!0)},label:"Organization Ranks"}],formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_AR_NAME",fieldName:"organizationArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_EN_NAME",fieldName:"organizationEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Status",fieldName:"status",fieldType:"lookup",lookupType:"STATUS"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"globe",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})]})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationmembers",component:Yf,authority:"ORGANIZATION_MEMBER_VIEW"},{path:"admin/organizationmemberroles",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState([]),o=Pe({findAll:"api/v1/admin/organizationmemberrole/all",deleteById:"api/v1/admin/organizationmemberrole",save:"api/v1/admin/organizationmemberrole",findById:"api/v1/admin/organizationmemberrole",setData:r});return e.jsx(uf,{apiActions:o,data:n,setData:r,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID",fieldName:"organizationMemberId",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID",fieldName:"systemApplicationRoleId",required:!0,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_MEMBER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_ROLE_DELETE"}})},authority:"ORGANIZATION_MEMBER_ROLE_VIEW"},{path:"admin/organizationranks",component:Ff,authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:Bf,authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationunittypes",component:Uf,authority:"ORGANIZATION_UNIT_TYPE_VIEW"},{path:"admin/persons",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState(null),[o,i]=s.useState([]),a=Pe({findAll:"api/v1/admin/person/all",deleteById:"api/v1/admin/person",save:"api/v1/admin/person",findById:"api/v1/admin/person",setData:i}),{Window:l,setWindowState:c}=Ce({windowTitle:"Organizations Membership",windowIcon:"globe"});return e.jsxs(e.Fragment,{children:[e.jsx(l,{children:e.jsx(Yf,{selectedPerson:n})}),e.jsx(uf,{apiActions:a,data:o,setData:i,editMode:{editMode:"modal",specs:{modalIcon:"user",modalTitle:"Person Profile",modalWidth:300}},formElements:[{type:"field",mode:"props",props:{hidden:!0,fieldLabel:"Ref Source",fieldName:"refSource",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,fieldLabel:"PERSON_EMPLOYEE_NUMBER",fieldName:"refSyncNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMPLOYEE_AR_NAME",fieldName:"employeeArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMPLOYEE_EN_NAME",fieldName:"employeeEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"PERSON_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_USERNAME",fieldName:"username",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"PERSON_PLURAL",rowActions:[{icon:"globe",label:"User Organizations",actionFn:async e=>{r(e),c(!0)}}],girdIcon:"users",editAction:{isEnabled:!0,authority:"PERSON_EDIT",preActionValidation:e=>null==e.refSource||null==e.refSource||""==e.refSource||(y.toast.error("This Person Was synced from other system therefore you can't modify this record"),!1)},deleteAction:{isEnabled:!0,authority:"PERSON_DELETE",preActionValidation:e=>null==e.refSource||null==e.refSource||""==e.refSource||(y.toast.error("This Person Was synced from other system therefore you can't modify this record"),!1)}})]})},authority:"PERSON_VIEW"},{path:"admin/systemapplications",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState([]),o=Pe({findAll:"api/v1/admin/systemapplication/all",deleteById:"api/v1/admin/systemapplication",save:"api/v1/admin/systemapplication",findById:"api/v1/admin/systemapplication",setData:r}),{Window:i,setWindowState:a}=Ce({windowTitle:"System Application Modules",windowIcon:"layer-group"}),{Window:l,setWindowState:c}=Ce({windowTitle:"System Application Authorities",windowIcon:"key"}),{Window:d,setWindowState:u}=Ce({windowTitle:"System Application Roles",windowIcon:"tag"}),{Window:p,setWindowState:f}=Ce({windowTitle:"System Application Lookups",windowIcon:"list-check"}),[m,y]=s.useState(null);return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx(Wf,{selectedApplication:m})}),e.jsx(l,{children:e.jsx(Kf,{selectedApplication:m})}),e.jsx(d,{children:e.jsx(Vf,{selectedApplication:m})}),e.jsx(p,{children:e.jsx(Hf,{selectedApplication:m})}),e.jsx(uf,{apiActions:o,rowActions:[{icon:"layer-group",actionFn:async e=>{y(e),a(!0)},label:"modules"},{icon:"key",actionFn:async e=>{y(e),c(!0)},label:"Authorities"},{icon:"tag",actionFn:async e=>{y(e),u(!0)},label:"Roles"},{icon:"list-check",actionFn:async e=>{y(e),f(!0)},label:"Lookups"}],data:n,setData:r,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_PLURAL",girdIcon:"window-restore",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_DELETE"}})]})},authority:"SYSTEM_APPLICATION_VIEW"},{path:"admin/systemapplicationauthorities",component:Kf,authority:"SYSTEM_APPLICATION_AUTHORITY_VIEW"},{path:"admin/systemapplicationmodules",component:Wf,authority:"SYSTEM_APPLICATION_MODULE_VIEW"},{path:"admin/systemapplicationroles",component:Vf,authority:"SYSTEM_APPLICATION_ROLE_VIEW"},{path:"admin/systemapplicationroleauthorities",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState([]),o=Pe({findAll:"api/v1/admin/systemapplicationroleauthority/all",deleteById:"api/v1/admin/systemapplicationroleauthority",save:"api/v1/admin/systemapplicationroleauthority",findById:"api/v1/admin/systemapplicationroleauthority",setData:r});return e.jsx(uf,{apiActions:o,data:n,setData:r,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID",fieldName:"systemApplicationAuthorityId",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID",fieldName:"systemApplicationRoleId",required:!0,fieldType:"text"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_DELETE"}})},authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_VIEW"}],...[{path:"dev/blueprints",component:()=>{const{t:n}=E.useTranslation(),r=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),[o,i]=s.useState([]),a=Pe({commonStoreKey:"SystemBluePrints",deleteById:"api/v1/dev/blueprint",save:"api/v1/dev/blueprint",findById:"api/v1/dev/blueprint",setData:i}),l=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!0,fieldType:"combobox",options:r,optionDisplayField:"queryName",optionValueField:"id"}}];return e.jsx(uf,{apiActions:a,data:o,setData:i,editMode:{editMode:"row",reloadAfterSave:!0},formElements:l,keyColumnName:"id",gridTitle:n("BLUE_PRINT_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_DELETE"}})},authority:"BLUE_PRINT_VIEW"},{path:"dev/dataqueries",component:()=>{const[n,r]=s.useState(null),{Window:o,setWindowState:i}=Ce({width:"50%",windowTitle:"Data query parameters",windowIcon:"p"}),a=t.useSelector((e=>e.commonStores.stores.SystemDataSources.data)),{t:l}=E.useTranslation(),[c,d]=s.useState([]),u=Pe({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/dev/dataquery",save:"api/v1/dev/dataquery",findById:"api/v1/dev/dataquery",setData:d}),p=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox",formProps:{onValueChangeCallBack(e,t,n,r){e?(n.hideField("datasourceConId"),t.setValue("datasourceConId",null)):n.showField("datasourceConId")}}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,options:a,optionDisplayField:"connectionName",optionValueField:"id",fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",formProps:{fieldHeight:400},gridProps:{hidden:!0},muiTextFieldProps:{multiline:!0,rows:4},required:!1,fieldType:"text"}}];return e.jsxs(e.Fragment,{children:[e.jsx(o,{children:e.jsx(qf,{selectedRecord:n})}),e.jsx(uf,{apiActions:u,rowActions:[{label:"Query Parameters",actionFn:async e=>{r(e),i(!0)},icon:"p"}],data:c,setData:d,editMode:{editMode:"modal",specs:{modalTitle:"System Query",modalWidth:600,modalIcon:"file-code"}},formElements:p,keyColumnName:"id",gridTitle:l("DATA_QUERY_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_DELETE"}})]})},authority:"DATA_QUERY_VIEW"},{path:"dev/datasourceconnections",component:()=>{const{handleGetRequest:n}=be(),r=t.useSelector((e=>e.commonStores.stores.SystemDataSourceType.data)),{t:o}=E.useTranslation(),[i,a]=s.useState([]),l=Pe({deleteById:"api/v1/dev/datasourceconnection",save:"api/v1/dev/datasourceconnection",findById:"api/v1/dev/datasourceconnection",setData:a,commonStoreKey:"SystemDataSources"}),c=[{type:"field",mode:"props",props:{fieldLabel:"ID",fieldName:"id",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!0,fieldType:"combobox",options:r,optionValueField:"value",optionDisplayField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:l,data:i,setData:a,editMode:{editMode:"modal",specs:{modalTitle:"Datasource Connection",modalIcon:"plug",modalWidth:300}},formElements:c,keyColumnName:"id",gridTitle:o("DATASOURCE_CONNECTION_PLURAL"),girdIcon:"plug",rowActions:[{icon:"plug",label:"test connection",actionFn:async e=>{await n({endPointURI:"api/v1/dev/datasourceConnection/test",showMask:!0,parameters:{id:e.id},successCallBkFn:e=>{y.toast.success(e.data)}})}}],editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"dev/entityparameters",component:()=>{const{t:n}=E.useTranslation(),r=t.useSelector((e=>e.commonStores.stores.SystemParameterTypes.data)),[o,i]=s.useState([]),a=Pe({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/dev/entityparameter",save:"api/v1/dev/entityparameter",findById:"api/v1/dev/entityparameter",setData:i}),l=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!0,fieldType:"combobox",options:r,optionDisplayField:"value",optionValueField:"value",formProps:{onValueChangeCallBack(e,t,n,r){"combobox"===e?(t.setValue("parameterValueFormat",null),n.showField("parameterDataQueryId"),n.showField("parameterDataset"),n.showField("parameterDisplayField"),n.showField("parameterValueField"),n.hideField("parameterValueFormat")):"date"===e||"datetime"===e?("date"===e?t.setValue("parameterValueFormat",$e):"datetime"===e&&t.setValue("parameterValueFormat",Je),n.hideField("parameterDataQueryId"),n.hideField("parameterDataset"),n.hideField("parameterDisplayField"),n.hideField("parameterValueField"),n.showField("parameterValueFormat")):(t.setValue("parameterValueFormat",null),n.hideField("parameterDataQueryId"),n.hideField("parameterDataset"),n.hideField("parameterDisplayField"),n.hideField("parameterValueField"),n.hideField("parameterValueFormat"))}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",hidden:!0,required:!1,fieldType:"text",formProps:{onValueChangeCallBack(e,t,n,r){null!=e&&""!=e?(t.setValue("parameterDataset",null),n.hideField("parameterDataset")):n.showField("parameterDataset")}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",hidden:!0,required:!1,fieldType:"text",formProps:{onValueChangeCallBack(e,t,n,r){null!=e&&""!=e?(t.setValue("parameterDataQueryId",null),n.hideField("parameterDataQueryId")):n.showField("parameterDataQueryId")}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",hidden:!0,required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",hidden:!0,required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,hidden:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:a,data:o,setData:i,editMode:{editMode:"modal",specs:{modalTitle:"Entity Parameter",modalIcon:"p",modalWidth:300}},formElements:l,keyColumnName:"id",gridTitle:n("ENTITY_PARAMETER_PLURAL"),girdIcon:"p",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"dev/lookups",component:Hf,authority:"LOOKUP_VIEW"},{path:"dev/reports",component:()=>{const{t:n}=E.useTranslation(),[r,o]=s.useState(null),{Window:i,setWindowState:a}=Ce({windowTitle:"Report View",windowIcon:"eye",width:"80%"}),{Window:l,setWindowState:c}=Ce({windowTitle:"Report Parameters",windowIcon:"p",width:"80%"}),[d,u]=s.useState([]),p=t.useSelector((e=>e.commonStores.stores.SystemDataSources.data)),f=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),m=t.useSelector((e=>e.commonStores.stores.SystemBluePrints.data)),h=Pe({findAll:"api/v1/dev/report/all",deleteById:"api/v1/dev/report",save:"api/v1/dev/report",findById:"api/v1/dev/report",setData:u}),g=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",options:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}],optionDisplayField:"value",optionValueField:"value",required:!0,fieldType:"combobox",formProps:{onValueChangeCallBack(e,t,n,r){em(e,n,t)}}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Authority Code",fieldName:"reportAuthorityCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXPORT_NAME",fieldName:"reportExportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",hidden:!0,gridProps:{hidden:!0},formProps:{onValueChangeCallBack(e,t,n,r){e?(n.hideField("datasourceConId"),t.setValue("datasourceConId",null)):n.showField("datasourceConId")}},required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:p,optionValueField:"id",optionDisplayField:"connectionName"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:m,optionDisplayField:"bluePrintCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:f,optionValueField:"id",optionDisplayField:"queryName"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Active",fieldName:"isActive",fieldType:"checkbox"}}];return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx(Jf,{reportCode:r?.reportCode,resultMode:"App"})}),e.jsx(l,{children:e.jsx(Qf,{selectedRecord:r})}),e.jsx(uf,{apiActions:h,data:d,setData:u,editMode:{editMode:"modal",specs:{modalTitle:"Report",modalIcon:"file",modalWidth:300}},rowActions:[{icon:"p",label:"Report Parameters",isActionVisibleForRecord:e=>"Jasper"===e.reportType,actionFn:async(e,t)=>{o(e),c(!0)}},{icon:"eye",label:"View Report",actionFn:async(e,t)=>{o(e),a(!0)}}],formLoadCallBk:(e,t,n)=>{em(n.reportType,e,t),!0===n?.useSysDatasource&&e.hideField("datasourceConId")},formElements:g,keyColumnName:"id",gridTitle:n("REPORT_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT",preActionValidation:e=>"Jasper"!==e?.reportType||!1!==e?.useSysDatasource||e?.datasourceConId?"Jasper"!==e?.reportType||e?.reportJasperName?"Jasper"!==e?.reportType||e?.reportJasperPath?"Blueprint"!==e?.reportType||e?.reportBluePrintId?!("Excel"===e?.reportType&&!e?.reportExcelDataQueryId)||(y.toast.error("You must choose the report query"),!1):(y.toast.error("You must choose the report blueprint"),!1):(y.toast.error("You must enter the jasper report path"),!1):(y.toast.error("You must enter the jasper report name"),!1):(y.toast.error("You must choose the datasource"),!1)},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})]})},authority:"REPORT_VIEW"},{path:"dev/mailtemplates",component:()=>{const n=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),[r,o]=s.useState(null),{Window:i,setWindowState:a}=Ce({windowTitle:"Mail Receipents",windowIcon:"users"}),{Window:l,setWindowState:c}=Ce({windowTitle:"Mail Bodies",windowIcon:{prefix:"fas",iconName:"envelope-open-text"}}),{Window:d,setWindowState:u}=Ce({windowTitle:"Mail Attachment",windowIcon:"paperclip",width:500}),{t:p}=E.useTranslation(),[f,m]=s.useState([]),h=Pe({commonStoreKey:"SystemMailTemplates",deleteById:"api/v1/dev/mailtemplate",save:"api/v1/dev/mailtemplate",findById:"api/v1/dev/mailtemplate",setData:m}),g=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"group",props:{label:"subject",icon:"users",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!0,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"combobox",options:n,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}}]}},{type:"group",props:{label:"Recipients",icon:"users",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"To Recipient Query (must return list of objects with property email)",fieldName:"mailToDataQueryId",required:!1,fieldType:"combobox",options:n,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"CC Recipient Query (must return list of objects with property email)",fieldName:"mailCcDataQueryId",required:!1,fieldType:"combobox",options:n,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}}]}},{type:"group",props:{label:"Periodical Configuration",icon:"history",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",options:[{value:"Year"},{value:"Month"},{value:"Day"},{value:"Hour"},{value:"Minute"},{value:"Second"}],optionDisplayField:"value",optionValueField:"value",required:!1,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}}]}}];return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx(tm,{selectedRecord:r,callBkFn:()=>{a(!1)}})}),e.jsx(l,{children:e.jsx(nm,{selectedRecord:r,callBkFn:()=>{a(!1)}})}),e.jsx(d,{children:e.jsx(rm,{selectedRecord:r,callBkFn:()=>{u(!1)}})}),e.jsx(uf,{apiActions:h,data:f,setData:m,editMode:{editMode:"modal",specs:{modalWidth:300,modalTitle:"Mail Template",modalIcon:"envelope"}},formElements:g,keyColumnName:"id",gridTitle:p("MAIL_TEMPLATE_PLURAL"),girdIcon:"envelope",rowActions:[{icon:"users",label:"Recipients",actionFn:async e=>{o(e),a(!0)}},{icon:{prefix:"fas",iconName:"envelope-open-text"},label:"Mail Body",actionFn:async e=>{o(e),c(!0)}},{icon:"paperclip",label:"Mail Attachments",actionFn:async e=>{o(e),u(!0)}}],editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT",preActionValidation:e=>!0!==e?.periodical||e?.periodType?!0!==e?.periodical||e?.periodValue?!(!0===e?.periodical&&!e?.startSendingAt)||(y.toast.error("You must specifiy the start sending time since this email is periodical"),!1):(y.toast.error("You must specifiy the period value since this email is periodical"),!1):(y.toast.error("You must specifiy the period type since this email is periodical"),!1)},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})]})},authority:"MAILTEMPLATE_VIEW"},{path:"dev/mailsender/config",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState([]),o=Pe({findAll:"api/v1/dev/mailsenderconfig/all",deleteById:"api/v1/dev/mailsenderconfig",save:"api/v1/dev/mailsenderconfig",findById:"api/v1/dev/mailsenderconfig",setData:r}),i=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Name",fieldName:"configName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Engine",fieldName:"mailEngine",required:!0,fieldType:"combobox",options:[{value:"Gmail"},{value:"Azure"}],optionDisplayField:"value",optionValueField:"value",formProps:{onValueChangeCallBack(e,t,n,r){im(e,n,t)}}}},{type:"field",mode:"props",props:{fieldLabel:"Hostname",fieldName:"mailHost",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"port",fieldName:"mailPort",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"username",fieldName:"mailUsername",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"password",fieldName:"mailPassword",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Approval Receive Email",fieldName:"workFlowApprovalReceiveEmail",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Protocol",fieldName:"mailProtocol",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable Smtp Auth",fieldName:"isMailSmtpAuthEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable Start TLS",fieldName:"isMailStarttlsEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable SSL",fieldName:"isSmtpSSlEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Client Id",fieldName:"azureGraphApiClientId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Secret",fieldName:"azureGraphApiClientSecret",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Tenant Id",fieldName:"azureGraphApiTenantId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Scope",fieldName:"azureGraphApiScope",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Email Id",fieldName:"azureGraphApiEmailId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Default",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Active",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return e.jsx(uf,{apiActions:o,data:n,setData:r,editMode:{editMode:"modal",specs:{modalIcon:{iconName:"paper-plane",prefix:"fas"},modalTitle:"Mail Sender Configuration",modalWidth:300}},formElements:i,keyColumnName:"id",gridTitle:t("Mail Sender Configuration"),girdIcon:{iconName:"paper-plane",prefix:"fas"},editAction:{isEnabled:!0,authority:"MAIL_SENDER_CONFIG_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_SENDER_CONFIG_DELETE"},formLoadCallBk:(e,t,n)=>{im(n.mailEngine,e,t)}})},authority:"MAILTEMPLATE_VIEW"},{path:"dev/workflowdocuments",component:()=>{const[n,r]=s.useState(null),{Window:o,setWindowState:i}=Ce({windowTitle:"Document Status",windowIcon:"tag"}),{Window:a,setWindowState:l}=Ce({windowTitle:"Document Action",windowIcon:"stamp"}),c=t.useSelector((e=>e.commonStores.stores.SystemOrganizations.data)),d=t.useSelector((e=>e.commonStores.stores.SystemReports.data)),u=t.useSelector((e=>e.commonStores.stores.SystemDataSources.data)),{t:p}=E.useTranslation(),[f,m]=s.useState([]),y=Pe({findAll:"api/v1/dev/workflowdocument/all",deleteById:"api/v1/dev/workflowdocument",save:"api/v1/dev/workflowdocument",findById:"api/v1/dev/workflowdocument",setData:m}),h=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"combobox",options:c,optionDisplayField:"organizationCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Document En Display Name",fieldName:"documentEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Document Ar Display Name",fieldName:"documentArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Report To be Attached For The Document ( will be passed a parameter called doc_id)",fieldName:"documentReportId",required:!1,fieldType:"combobox",options:d,optionDisplayField:"reportName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"group",props:{icon:"bell",style:{border:"1px dashed black",padding:1,marginBottom:1},label:"App Visual Notifications",elements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON",fieldName:"appNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE",fieldName:"appNotificationStyle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE",fieldName:"appViewRoute",required:!1,fieldType:"text"}}]}},{type:"group",props:{icon:"database",style:{border:"1px dashed black",padding:1,marginBottom:1},label:"Related Document Database",elements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox",formProps:{onValueChangeCallBack(e,t,n,r){e?(n.hideField("documentConId"),t.setValue("documentConId",null)):n.showField("documentConId")}}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"combobox",options:u,optionDisplayField:"connectionName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!0,fieldType:"text"}}]}}];return e.jsxs(e.Fragment,{children:[e.jsx(o,{children:e.jsx(am,{selectedRecord:n})}),e.jsx(a,{children:e.jsx(sm,{selectedRecord:n})}),e.jsx(uf,{apiActions:y,formLoadCallBk:(e,t,n)=>{!0===n.useSystemCon?e.hideField("documentConId"):e.showField("documentConId")},data:f,setData:m,rowActions:[{icon:"tag",label:"Document States",actionFn:async e=>{r(e),i(!0)}},{icon:"stamp",label:"Document Actions",actionFn:async e=>{r(e),l(!0)}}],editMode:{editMode:"modal",specs:{modalIcon:"chart-diagram",modalTitle:p("WORKFLOW_DOCUMENT_SINGULAR")}},formElements:h,keyColumnName:"id",gridTitle:p("WORKFLOW_DOCUMENT_PLURAL"),girdIcon:"chart-diagram",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})]})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"dev/widgets",component:()=>{const{t:n}=E.useTranslation(),r=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),o=t.useSelector((e=>e.commonStores.stores.SystemWidgetTypes.data)),[i,a]=s.useState([]),l=Pe({commonStoreKey:"SystemWidgets",deleteById:"api/v1/dev/widget",save:"api/v1/dev/widget",findById:"api/v1/dev/widget",setData:a}),c=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!0,fieldType:"combobox",options:o,optionDisplayField:"name",optionValueField:"name",formProps:{onValueChangeCallBack(e,t,n,r){dm(e,n,t)}}}},{type:"field",mode:"props",props:{fieldLabel:"Query",fieldName:"dataQueryId",required:!0,fieldType:"combobox",options:r,optionDisplayField:"queryName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"combobox",options:[{value:1},{value:2},{value:3},{value:4},{value:5},{value:6},{value:7},{value:8},{value:9},{value:10},{value:11},{value:12}],optionDisplayField:"value",optionValueField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"group",props:{style:{padding:1,border:"1px solid black",width:"100%"},label:"Data Specs",elements:[{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_FIELD",fieldName:"horizontalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_LABEL",fieldName:"horizontalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_SERIES_KEYS",fieldName:"seriesKeys",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_FIELD",fieldName:"verticalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_LABEL",fieldName:"verticalAxisLabel",required:!1,fieldType:"text"}}]}}];return e.jsx(uf,{apiActions:l,data:i,setData:a,editMode:{editMode:"modal",specs:{modalIcon:"chart-pie",modalTitle:"Widget"}},formElements:c,keyColumnName:"id",gridTitle:n("WIDGET_PLURAL"),girdIcon:"chart-pie",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"},formLoadCallBk:(e,t,n)=>{dm(n.widgetType,e,t)}})},authority:"WIDGET_VIEW"},{path:"dev/dashboards",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState(null),{Window:o,setWindowState:i}=Ce({windowTitle:"Dashboard Widgets",windowIcon:"chart-pie"}),[a,l]=s.useState([]),c=U.useNavigate(),d=Pe({findAll:"api/v1/dev/dashboard/all",deleteById:"api/v1/dev/dashboard",save:"api/v1/dev/dashboard",findById:"api/v1/dev/dashboard",setData:l});return e.jsxs(e.Fragment,{children:[e.jsx(o,{children:e.jsx(um,{selectedRecord:n})}),e.jsx(uf,{apiActions:d,data:a,setData:l,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",rowActions:[{label:"Widgets",icon:"chart-pie",actionFn:async e=>{r(e),i(!0)}},{label:"View",icon:"eye",actionFn:async e=>{c("/dashboard/"+e.dashboardCode)}}],gridTitle:t("DASHBOARD_PLURAL"),girdIcon:"square-poll-vertical",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})]})},authority:"DASHBOARD_VIEW"},{path:"dashboard/:dashboardCode",component:()=>{const{dashboardCode:t}=U.useParams();return e.jsx(jf,{dashboardCode:t})}},{path:"dev/workflowdocumentmaillogs",component:()=>{const{t:t}=E.useTranslation(),[n,r]=s.useState([]),o=Pe({findAll:"api/v1/dev/workflowdocumentmaillog/all",deleteById:"api/v1/dev/workflowdocumentmaillog",save:"api/v1/dev/workflowdocumentmaillog",findById:"api/v1/dev/workflowdocumentmaillog",setData:r});return e.jsx(uf,{apiActions:o,data:n,setData:r,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID",fieldName:"graphApiMsgId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED",fieldName:"isProcessed",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE",fieldName:"mailActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT",fieldName:"mailBodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM",fieldName:"mailFrom",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE",fieldName:"processMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME",fieldName:"processTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID",fieldName:"refDocId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_RECEIVE_TIME",fieldName:"mailReceiveTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:t("WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE"}})}},{path:"dev/mailnotificationqueues",component:()=>{const{t:n}=E.useTranslation(),[r,o]=s.useState([]),i=Pe({findAll:"api/v1/dev/mailnotificationqueue/all",deleteById:"api/v1/dev/mailnotificationqueue",save:"api/v1/dev/mailnotificationqueue",findById:"api/v1/dev/mailnotificationqueue",setData:o}),a=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"combobox",options:t.useSelector((e=>e.commonStores.stores.SystemMailTemplates.data)),optionDisplayField:"mailTemplateName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,hidden:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",fieldName:"customRecipients",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",fieldName:"mailParameters",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}}];return e.jsx(uf,{apiActions:i,disableDefaultAction:!0,data:r,setData:o,editMode:{editMode:"none"},formElements:a,keyColumnName:"id",gridTitle:n("MAIL_NOTIFICATION_QUEUE_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})}}]]],fm=t=>{const{isUserAuthorized:n}=De();return t?.authority&&!n(t.authority)?e.jsx(a.Box,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"red"},children:e.jsxs("h2",{children:[e.jsx(f.FontAwesomeIcon,{style:{marginRight:10,marginLeft:10},icon:"cancel"}),"You aren't authorized to access this page"]})}):e.jsx(e.Fragment,{children:t.children})},mm=()=>{const n=t.useSelector((e=>e.AppLayout)),r=t.useSelector((e=>e.AppInfo.value)),o=t.useSelector((e=>e.AppInfo.value.businessRoutes)),i=t.useDispatch(),{show:c,hide:d}=_e(),u=t.useSelector((e=>e.commonStores)),[p,f]=s.useState(!1),{isUserAuthorized:m}=De(),{handleGetRequest:y}=be();return s.useEffect((()=>{u?.storeKeys&&(async()=>{c("Loading ... please wait");const e=u.stores,t=u.storeKeys;for(let n of t)void 0!==e[n]?.authority&&null!==e[n]?.authority&&!m(e[n]?.authority)||""==e[n]?.url||!0!==e[n].autoLoad||await y({endPointURI:e[n].url,showMask:!1,successCallBkFn:e=>{i(xe({storeKey:n,data:e.data}))},failureCallBkFn:()=>{i(xe({storeKey:n,data:[]}))}});d()})()}),[u.storeKeys]),e.jsx(l.CacheProvider,{value:"ltr"===n.appDirection?Rf:xf,children:e.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e.jsxs(U.Routes,{children:[r.enableAdministrationModule?pm.map(((t,n)=>e.jsx(U.Route,{path:t.path,element:e.jsx(fm,{authority:t.authority,children:e.jsx(t.component,{})})},"adm"+n))):null,o.map(((t,n)=>e.jsx(U.Route,{path:t.path,element:e.jsx(fm,{authority:t.authority,children:e.jsx(t.component,{})})},"bs"+n)))]})})})},ym=c.styled("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:ne.grey[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:ne.grey[900]})})));function hm(n){const{window:r}=n,o=t.useSelector((e=>e.SideBar)),i=t.useSelector((e=>e.AppInfo.value)),l=t.useDispatch(),s=e=>{l(yf(e))},c=void 0!==r?()=>r().document.body:void 0;return e.jsx(re,{container:c,anchor:"bottom",open:o.isOpened,onClose:()=>{s(!1)},onOpen:()=>{s(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:e.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e.jsx(ym,{}),e.jsx(a.Box,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e.jsx(Cf,{})}),e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e.jsx(a.Typography,{sx:{fontSize:12},color:"textDisabled",children:i.appName}),e.jsxs(a.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]})})}const gm=()=>{const{t:n}=E.useTranslation(),r=t.useSelector((e=>e.loadingMask.value)),o=t.useSelector((e=>e.AppLayout));return e.jsxs(a.Backdrop,{dir:o.appDirection,sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:r.isOpened,children:[e.jsx(a.CircularProgress,{color:"inherit"}),e.jsx("div",{style:{marginRight:10,marginLeft:10},children:r?.message||n("DEFAULT_LOADING_MESSAGE")})]})},Em=()=>{const n=t.useSelector((e=>e.AppInfo.value)),[r,o]=s.useState(""),[i,c]=s.useState(""),[d,u]=s.useState(!1),p=t.useSelector((e=>e.UserSession.value)),f=t.useDispatch(),m=async()=>{if(null==r||""==r)return void y.toast.error("username is required to proceed");if(null==i||""==i)return void y.toast.error("password is required to proceed");u(!0);let e=null;try{if(e=await h.post(`${n.apiBaseUrl}/api/auth/login`,{username:r,password:i},{withCredentials:!0}),null!=e.data&&""!==e.data){u(!1);const t={...e.data,isAuthenticated:!0};f(Ae.setAuthenticated(t))}}catch(e){u(!1),y.toast.error(e?.response?.data||"failed to authenticate, contact your administrator")}},g=t.useSelector((e=>e.UserSession.value)),E=a.createTheme({components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${n.appTheme?.dark?.primaryColor||tt} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:n.appTheme?.dark?.primaryColor||tt},secondary:{main:n.appTheme?.dark?.secondaryColor||nt}}});return s.useEffect((()=>{(async()=>{if(n?.apiBaseUrl&&null==g.isAuthenticated)try{let e=await h.get(`${n.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={...e.data,isAuthenticated:!0};f(Ae.setAuthenticated(t))}else f(Ae.setUnAuthenticated())}catch(e){f(Ae.setUnAuthenticated())}})()}),[n]),e.jsx(l.ThemeProvider,{theme:E,children:e.jsx(a.Paper,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==p.isAuthenticated?e.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e.jsx("img",{src:n?.appLogo,width:150,height:150}),e.jsx(a.Typography,{sx:{m:1},variant:"h4",color:"textSecondary",children:n?.appName}),e.jsxs(a.Typography,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",n.appVersion]}),e.jsx(a.TextField,{label:"username",sx:{width:300,m:1},value:r,onChange:e=>{o(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&m()}}),e.jsx(a.TextField,{label:"password",sx:{width:300,m:1},value:i,type:"password",onChange:e=>{c(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&m()}}),e.jsx(a.Button,{loading:d,onClick:m,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):e.jsxs(e.Fragment,{children:[e.jsx(a.CircularProgress,{sx:{marginRight:1}}),e.jsx("div",{children:"You will be redirected shortly ... please wait"})]})})})},_m=c.styled("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:n})=>{const r=t.useSelector((e=>e.AppLayout)),o=c.useTheme(),i=ce();return{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!i&&n?"calc(100% - 350px)":"100%",direction:r.appDirection,justifyContent:"flex-start",transition:!0===n?o.transitions.create(["margin","width"],{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen}):o.transitions.create(["margin","width"],{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen}),marginLeft:i||"ltr"!==r.appDirection||!0!==n?0:de+"px",marginRight:i||"rtl"!==r.appDirection||!0!==n?0:de+"px"}}));function bm(){const n=t.useSelector((e=>e.SideBar)),r=ce(),o=t.useSelector((e=>e.UserSession));return e.jsxs(U.BrowserRouter,{children:[e.jsx(y.ToastContainer,{draggable:!0,position:"bottom-center"}),e.jsx(gm,{}),!0===o.value.isAuthenticated?e.jsxs(_m,{open:n.isOpened,children:[e.jsx(d,{}),e.jsx(Ef,{}),r?null:e.jsx(wf,{}),r?e.jsx(hm,{}):null,e.jsx(_f,{}),e.jsx(mm,{})]}):e.jsx(Em,{})]})}const Tm=m.createSlice({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,muiPremiumKey:null,enableAdministrationModule:!1,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{},appTheme:{light:{primaryColor:"#37505C",secondaryColor:"#ff6d00"},dark:{primaryColor:"#ea690e",secondaryColor:"#74776B"}}}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Am=Tm.actions;var Om=Tm.reducer;const Im={SystemDataSourceType:{autoLoad:!1,data:[{value:"Mysql"},{value:"Oracle"},{value:"DB2"}],url:""},SystemParameterTypes:{autoLoad:!1,url:"",data:[{value:"text"},{value:"number"},{value:"date"},{value:"datetime"},{value:"combobox"},{value:"checkbox"},{value:"html"},{value:"lookup"}]},SystemReportTypes:{autoLoad:!1,url:"",data:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}]},SystemWidgetTypes:{autoLoad:!1,url:"",data:[{name:"LineChart"},{name:"ColumnChart"},{name:"PieChart"},{name:"Card"},{name:"CircularProgress"},{name:"LinearProgress"}]},SystemMailRecipientTypes:{autoLoad:!1,url:"",data:[{name:"To"},{name:"CC"}]},SystemOrganizations:{autoLoad:!0,url:"api/v1/admin/organization/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemOrganizationRanks:{autoLoad:!0,url:"api/v1/admin/organization/ranks/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemOrganizationUnits:{autoLoad:!0,url:"api/v1/admin/organization/units/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemDataSources:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/datasourceconnection/all"},SystemDataQueries:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/dataquery/all"},SystemBluePrints:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/blueprint/all"},SystemReports:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/report/all"},SystemEntityParameters:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/entityparameter/all"},SystemMailTemplates:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/mailtemplate/all"},SystemWidgets:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/widget/all"}},Nm=n=>{const r=t.useDispatch();oe.LicenseInfo.setLicenseKey(n.muiPremiumKey);const o={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${n.appTheme?.light?.primaryColor||Xe} #ffffff;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"light",primary:{main:n.appTheme?.light?.primaryColor||Xe},secondary:{main:n.appTheme?.light?.secondaryColor||et},background:{default:"#f5f5f5",paper:"#f5f5f5"}}},i={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${n.appTheme?.dark?.primaryColor||tt} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:n.appTheme?.dark?.primaryColor||tt},secondary:{main:n.appTheme?.dark?.secondaryColor||nt}}};let c={};n.enableAdministrationModule&&(c={...Im}),n.businessCommonStoresMetaData&&(c={...c,...n.businessCommonStoresMetaData}),r(Re(c));const d=t.useSelector((e=>e.AppLayout));let u={...o};"dark"===d.themeMode&&(u={...i});const p=a.createTheme({direction:d.appDirection,...u});return s.useEffect((()=>{document.title=n.documentTitle,r(Am.setAppInfo(n))}),[]),e.jsx(l.ThemeProvider,{theme:p,children:e.jsx(bm,{})})};n.library.add(r.fab),n.library.add(o.far),n.library.add(i.fas);Object.defineProperty(exports,"FontAwesomeIcon",{enumerable:!0,get:function(){return f.FontAwesomeIcon}}),Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return y.toast}}),exports.BaseApp=n=>{const r={AppLayout:me,UserSession:Oe,loadingMask:Ee,commonStores:je,SideBar:hf,AppInfo:Om,...n.businessReduxReducers},o=m.configureStore({reducer:r});return e.jsx(t.Provider,{store:o,children:e.jsx(Nm,{...n})})},exports.CheckBox=Qe,exports.ComboBox=Ze,exports.DARK_THEME_INITIAL_MAIN_COLOR=tt,exports.DARK_THEME_INITIAL_SECANDARY_COLOR=nt,exports.DATE_FORMAT=$e,exports.DATE_TIME_FORMAT=Je,exports.Datefield=rt,exports.DatetimeField=ot,exports.LIGHT_THEME_INITIAL_MAIN_COLOR=Xe,exports.LIGHT_THEME_INITIAL_SECANDARY_COLOR=et,exports.TemplateBarChart=Ye,exports.TemplateDataCard=We,exports.TemplateForm=Xp,exports.TemplateGauge=Ke,exports.TemplateGrid=uf,exports.TemplateLineChart=Ge,exports.TemplateLineProgress=He,exports.TemplatePieChart=qe,exports.TemplateTextField=Ue,exports.TransferList=ze,exports.capitalizeFirstLetter=dr,exports.hasDigitsOnly=function(e){return/^\d+$/.test(e)},exports.isNumber=sr,exports.isNumeric=cr,exports.isValidEmail=ur,exports.useApiActions=Pe,exports.useAxios=be,exports.useConfirmationWindow=Le,exports.useIsMobile=ce,exports.useLoadingMask=_e,exports.useSession=De,exports.useWindow=Ce,Object.keys(a).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})})),Object.keys(k).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return k[e]}})}));
31
+ function(e,t){const i=ae(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o=`"${e}"`;return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),i(...t)}:i}("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})($i),n=se.forwardRef((function(t,n){const l=function(e=eo){return Ji(e)}(o),{className:s,component:p="div",...c}=to(t);return e.jsx(d,{as:p,ref:n,className:ro(s,r?r(a):a),theme:i&&l[i]||l,...c})}));return n}({defaultClassName:function(e,t,i="Mui"){const o={};return t.forEach((t=>{o[t]=function(e,t,i="Mui"){const o=no[t];return o?`${i}-${o}`:`${oo.generate(e)}-${t}`}(e,t,i)})),o}("MuiBox",["root"]).root,generateClassName:oo.generate});function so(e){return"number"==typeof e&&!isNaN(e)}function po(e){return"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e))}function co(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function uo(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}"production"!==process.env.NODE_ENV&&(lo.propTypes={children:wt.node,component:wt.elementType,sx:wt.oneOfType([wt.arrayOf(wt.oneOfType([wt.func,wt.object,wt.bool])),wt.func,wt.object])});const mo=({label:t,errorMessage:i,value:o,setValue:a,maxLength:r})=>{const{t:n}=f.useTranslation(),s={customInlineFn:(e,{Style:t})=>{if(e.style.color)return t("color-"+e.style.color)}};let p=j.stateFromHTML(o,s);const[c,u]=l.useState(k.EditorState.createWithContent(p));l.useEffect((()=>{o!=G(k.convertToRaw(c.getCurrentContent()))&&u(k.EditorState.createWithContent(j.stateFromHTML(o,s)))}),[o]);return e.jsxs(d.Paper,{sx:{display:"flex",flexDirection:"column",padding:1},children:[t?e.jsx(d.Box,{children:n(t)}):e.jsx(e.Fragment,{}),e.jsx(W.Editor,{editorState:c,onEditorStateChange:e=>{let t=G(k.convertToRaw(e.getCurrentContent()));if(console.log("Text Length "+t.length),t.length>r){let e=j.stateFromHTML(t.substring(0,r),s);u(k.EditorState.createWithContent(e))}else u(e),a(G(k.convertToRaw(e.getCurrentContent())))},handlePastedText:e=>{const t=c.getCurrentContent().getPlainText("").length,i=(()=>{const e=c.getSelection();let t=0;if(!e.isCollapsed()){const i=c.getCurrentContent(),o=e.getStartKey(),a=e.getEndKey(),r=o===a,d=i.getBlockForKey(o).getLength()-e.getStartOffset(),n=e.getEndOffset(),l=i.getKeyAfter(a);if(r)t+=e.getEndOffset()-e.getStartOffset();else{let e=o;for(;e&&e!==l;)t+=e===o?d+1:e===a?n:i.getBlockForKey(e).getLength()+1,e=i.getKeyAfter(e)}}return t})();if(t+e.length-i>r)return alert("max text length is "+r),"handled"},editorStyle:{height:"200px",border:"1px solid #F1F1F1",padding:"10px",overflow:"auto"},wrapperStyle:{marginBottom:"1rem"},toolbarStyle:{border:"1px solid #ccc"}}),i?e.jsx(d.Box,{sx:{color:"red"},children:n(i)}):e.jsx(e.Fragment,{})]})},To=i=>{const o=t.useSelector((e=>e.AppLayout)),a=ge(),[r,d]=l.useState([]),{handleGetRequest:n}=ye();return l.useEffect((()=>{i.lookupType&&(async()=>{await n({endPointURI:"api/v1/dev/system/lookup",showMask:!0,parameters:{lookupType:i.lookupType},successCallBkFn:e=>{d(e.data)},failureCallBkFn:()=>{d([])}})})()}),[i.lookupType,a.UserSession]),e.jsx(Xe,{...i,options:r,displayField:"ltr"===o.appDirection?"lookupEnDisplay":"lookupArDisplay",valueField:"lookupValue"})},Ao=t=>{if(t?.fieldInfo){const i=t.fieldInfo,o=t?.formManager||null,a=t?.formActions||null,r=t?.formValues||null,n=t?.fieldInfo?.fieldName||null,l=t?.fieldInfo?.fieldType||null;return i&&o&&r&&n&&l?t.hiddenFields.includes(n)?e.jsx(e.Fragment,{}):e.jsx(d.Grid2,{size:i?.formProps?.fieldSize||{lg:12,md:12,sm:12},sx:{padding:1,width:"100%"},children:"text"===l||"number"===l?e.jsx(We,{...i.muiTextFieldProps,fullWidth:!0,type:l,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),hidden:i?.hidden||!1,label:i?.fieldLabel,value:r[n],onChange:e=>{let t=null;""!=e.target.value&&(t="number"===l&&po(e.target.value)?Number(e.target.value):e.target.value),o.setValue(n,t),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(t,o,a)},sx:{"& .MuiInputBase-root":{height:`${i?.formProps?.fieldHeight}px`||void 0},"& .MuiInputBase-input":{height:"100% !important"},...i?.formProps?.style},error:null!=o.formState.errors[n],helperText:o?.formState?.errors[n]?.message?.toString()}):"date"===i?.fieldType?e.jsx(rt,{format:i?.dateFormat||Je,sx:i?.formProps?.style||{width:"100%"},disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,a)},value:r[n],error:null!=o.formState.errors[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"datetime"===i?.fieldType?e.jsx(dt,{format:i?.dateFormat||et,sx:i?.formProps?.style||{width:"100%"},disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,a)},value:r[n],error:null!=o.formState.errors[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"checkbox"===i?.fieldType?e.jsx($e,{label:i?.fieldLabel,onChangeCallBack:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,a)},value:r[n],checkedValue:i?.checkedValue||!0,unCheckedValue:i?.unCheckedValue||!1,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),sx:i?.formProps?.style}):"combobox"===i?.fieldType?e.jsx(Xe,{sx:i?.formProps?.style||{width:"100%"},label:i?.fieldLabel,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),onChangeCallBack:(e,t)=>{let r=null;e&&(r=e+""),o.setValue(n,r),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(r,o,a,t)},options:i?.options||[],displayField:i?.optionDisplayField||"",valueField:i?.optionValueField||"",value:r[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"lookup"===i?.fieldType?e.jsx(To,{sx:i?.formProps?.style||{width:"100%"},label:i?.fieldLabel,disabled:!(!i?.disabled&&!t.disabledFields.includes(n)),onChangeCallBack:(e,t)=>{let r=null;e&&(r=e+""),o.setValue(n,r),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(r,o,a,t)},lookupType:i.lookupType,value:r[n],errorMessage:o?.formState?.errors[n]?.message?.toString()}):"html"===i?.fieldType?e.jsx(mo,{label:i.fieldLabel,value:r[n]||"",errorMessage:o?.formState?.errors[n]?.message?.toString(),setValue:e=>{o.setValue(n,e),i?.formProps?.onValueChangeCallBack&&i?.formProps?.onValueChangeCallBack(e,o,a)},maxLength:4e3}):e.jsx(e.Fragment,{children:"Unknown field type"})}):e.jsx(e.Fragment,{})}return e.jsx(e.Fragment,{})},_o=t=>{const i=ge(),{ConfirmationWindow:o,setOpen:a}=be({body:t?.confirmationMessage||"",title:"Confirmation",onConfirmationCallBk:()=>{t?.actionFn(t?.record)}});return null==t?.authority||i.isUserAuthorized(t.authority)?e.jsxs(e.Fragment,{children:[e.jsx(o,{}),e.jsxs(d.Button,{variant:t?.formActionProps?.actionButtonVariant,color:t?.formActionProps?.actionButtonColor,onClick:()=>{if(t?.actionFn){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?a(!0):t?.actionFn(t.record)}},children:[t?.icon?e.jsx(m.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:t?.label})]})]}):e.jsx(e.Fragment,{})},Eo=t=>{const{t:i}=f.useTranslation();return e.jsx(e.Fragment,{children:e.jsxs(d.Grid2,{container:!0,sx:t?.style,alignItems:"flex-start",children:[t?.label?e.jsx(d.Grid2,{size:12,sx:{padding:1,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:t?.icon?e.jsxs(e.Fragment,{children:[e.jsx(m.FontAwesomeIcon,{icon:t.icon,style:{marginRight:5,marginLeft:5}}),e.jsx("div",{children:i(t.label)})]}):e.jsx(e.Fragment,{children:i(t.label)})}):e.jsx(e.Fragment,{}),t?.elements?t.elements.map((i=>"group"===i.type?e.jsx(Eo,{...i.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===i.type&&"props"===i.mode?e.jsx(Ao,{fieldInfo:i.props,formManager:t.formManager,formValues:t.formValues,formActions:t.formActions,hiddenFields:t.hiddenFields,disabledFields:t.disabledFields}):"field"===i.type&&"node"===i.mode?e.jsx(d.Grid2,{size:i?.props?.formProps?.fieldSize||{lg:3,md:6,sm:12},sx:{padding:1,width:"100%"},children:e.jsx(i.node,{formManager:t.formManager,formValues:t.formValues,formActions:t.formActions})}):void 0)):null,t?.actions?e.jsx(d.Grid2,{size:{sm:12},sx:{padding:1},children:t.actions.map((i=>e.jsx(_o,{...i,record:t.formValues})))}):e.jsx(e.Fragment,{})]})})},fo=t=>({...t,type:"string",renderEditCell:t=>e.jsx(dt,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=U(e).format(et)),o},valueFormatter:(e,t,i)=>t[i.field]}),Io=t=>({...t,type:"custom",valueGetter:e=>e?e+"":e,renderCell:t=>{let i=null;try{i=t.colDef.options.find((e=>e[t.colDef.valueField]==t.value))}catch(e){}return e.jsx("div",{children:null!=i?i[t.colDef.displayField]:t.value})},renderEditCell:t=>e.jsx(Xe,{...t,sx:{width:"100%"},options:t.colDef.options,valueField:t.colDef.valueField,displayField:t.colDef.displayField,onChangeCallBack:(e,i)=>{null===e&&t.api.setEditCellValue({id:t.id,field:t.field,value:null}),t.api.setEditCellValue({id:t.id,field:t.field,value:e+""})}})}),Oo=t=>({...t,type:"custom",valueGetter:e=>null==e||null==e?null:e,renderCell:i=>{const o=i?.value;return o===t.checkedValue||"true"===o||1===o||!0===o?e.jsx(m.FontAwesomeIcon,{icon:"check",color:"green"}):e.jsx(m.FontAwesomeIcon,{icon:"xmark",color:"red"})},renderEditCell:i=>e.jsx($e,{...i,checkedValue:t?.checkedValue||!0,unCheckedValue:t?.unCheckedValue||!1,onChangeCallBack:e=>{i.api.setEditCellValue({id:i.id,field:i.field,value:e})}})}),No=e=>{const t=[];if("field"===e.type&&"props"===e.mode&&e?.props)t.push(e.props);else if("group"===e.type&&e?.props&&e?.props?.elements)for(const i of e.props.elements)t.push(...No(i));return t},yo=e=>{const t=[];for(const i of e)t.push(...No(i));return t},Ro=e=>{const t={};for(const i of e)if(i?.fieldName){const e=i.fieldName;"number"===i.fieldType?t[e]=!0===i?.required?pe.number({required_error:"This field is required",invalid_type_error:"This field must be a number"}):pe.number().optional().nullable():"checkbox"===i.fieldType?t[e]=!0===i?.required?pe.boolean({required_error:"This field is required"}):pe.boolean().optional().nullable():t[e]=!0===i?.required?pe.string({message:"This field is required"}).min(1,"This field is required"):pe.string().optional().nullable()}return t},Lo=t=>{const{t:i}=f.useTranslation(),o=yo(t.elements),a=[];for(const e of o)e?.hidden&&a.push(e.fieldName);const[r,n]=l.useState(a),s={};for(const e of t.elements)"field"===e?.type&&"props"===e?.mode&&e?.props?.defaultValue&&(s[e.props.fieldName]=e.props.defaultValue);const[p,c]=l.useState([]),u=pe.object(Ro(o)),T=F.useForm({resolver:w.zodResolver(u),defaultValues:s}),_=T.watch(),E=B.useParams(),I=t?.formRouteRecordIdParamName,O={setFieldValue:(e,t)=>{T.setValue(e,t)},hideField:e=>{n((t=>[...t,e]))},showField:e=>{n((t=>t.filter((t=>t!==e))))},disableField:e=>{c((t=>[...t,e]))},enableField:e=>{c((t=>t.filter((t=>t!==e))))}};return l.useEffect((()=>{(async()=>{let e=null;if(t?.recordIdToEdit?e=t.recordIdToEdit:I&&E[I]&&(e=E[I]),e){const i=await t.apiActions.loadRecordById(e);if(i){T.reset({...i}),t?.formLoadCallBk&&t?.formLoadCallBk(O,T,i);for(const e of o)"combobox"===e?.fieldType&&i[e.fieldName]&&T.setValue(e.fieldName,i[e.fieldName]+"")}}else T.reset({})})()}),[t?.recordIdToEdit]),e.jsxs(e.Fragment,{children:[e.jsx(lo,{sx:{display:"flex",flex:1,width:"100%",height:"fit-content",flexDirection:"column",alignItems:"center",overflow:"auto"},children:e.jsx(d.Grid2,{sx:{width:"100%"},container:!0,children:t.elements.map(((t,i)=>"group"===t.type?e.jsx(Eo,{...t.props,formManager:T,formValues:_,formActions:O,hiddenFields:r,disabledFields:p},i):"field"===t.type&&"props"===t.mode?e.jsx(Ao,{fieldInfo:t.props,formManager:T,formValues:_,formActions:O,hiddenFields:r,disabledFields:p},i):"field"===t.type&&"node"===t.mode?e.jsx(d.Grid2,{size:t?.props?.formProps?.fieldSize||{lg:3,md:6,xs:12},sx:{padding:1,width:"100%"},children:e.jsx(t.node,{formManager:T,formValues:_})},i):void 0))})}),e.jsxs(lo,{sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"flex-start"},children:[t?.actions?t.actions.map((t=>!0===t?.formActionProps?.enabled?e.jsx(_o,{...t,record:_}):e.jsx(e.Fragment,{}))):e.jsx(e.Fragment,{}),e.jsx("div",{style:{flex:1}}),e.jsx(d.Button,{variant:t?.saveButtonSpecs?.actionButtonVariant?t.saveButtonSpecs.actionButtonVariant:"contained",sx:{m:1},startIcon:t?.saveButtonSpecs?.icon?e.jsx(m.FontAwesomeIcon,{icon:t.saveButtonSpecs.icon}):null,color:t?.saveButtonSpecs?.actionButtonColor?t.saveButtonSpecs.actionButtonColor:"primary",onClick:T.handleSubmit((e=>{console.log("form values",e),(async e=>{if((!t?.preSaveValidation||t.preSaveValidation(e))&&e){const i=await t.apiActions.saveRecord(e);i&&(T.reset({...i}),t?.formSavedSuccessfullyCallBk&&t.formSavedSuccessfullyCallBk(i),t?.formCloseCallBk&&t.formCloseCallBk())}})(e)}),(e=>{A.toast.error("Form Data is not valid, make sure you have all field with valid data"),console.log("form validation error",e)})),children:i(t?.saveButtonSpecs?.label||"SAVE_BTN_LABEL")}),e.jsx(d.Button,{variant:t?.cancelButtonSpecs?.actionButtonVariant?t.cancelButtonSpecs.actionButtonVariant:"contained",startIcon:t?.cancelButtonSpecs?.icon?e.jsx(m.FontAwesomeIcon,{icon:t.cancelButtonSpecs.icon}):null,color:t?.cancelButtonSpecs?.actionButtonColor?t.cancelButtonSpecs.actionButtonColor:"error",sx:{m:1},onClick:()=>{t?.formCloseCallBk&&t.formCloseCallBk(),T.reset(s)},children:i(t?.cancelButtonSpecs?.label||"CANCEL_BTN_LABEL")})]})]})},ho=t=>{const{t:i}=f.useTranslation(),o=ge(),{ConfirmationWindow:a,setOpen:r}=be({body:i(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:i("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn)),t?.reloadData&&t.reloadData()}});let n=!0;if(t.authority&&(n=o.isUserAuthorized(t.authority)),n)return e.jsxs(e.Fragment,{children:[e.jsx(a,{}),e.jsxs(d.Button,{onClick:async()=>{if(t?.recordsToProcessActionOn&&t?.recordsToProcessActionOn.length>0){if(t?.preActionValidation)for(const e of t.recordsToProcessActionOn)if(!t.preActionValidation(e))return;!0===t?.isConfirmationRequired?r(!0):(await t.actionFn(t.recordsToProcessActionOn,t.recordIdsToProcessActionOn),t?.reloadData&&t.reloadData())}else A.toast.error(i("AT_LEAST_ONE_RECORD_SELECTED_MESSAGE"))},variant:t?.label?"outlined":t?.formActionProps?.actionButtonVariant?t.formActionProps.actionButtonVariant:"text",size:"small",color:t?.formActionProps?.actionButtonColor||"primary",children:[t?.icon?e.jsx(m.FontAwesomeIcon,{style:{marginRight:5,marginLeft:5},icon:t.icon}):e.jsx(e.Fragment,{}),t?.label?i(t.label):e.jsx(e.Fragment,{})]})]})},Po=d.styled(V.QuickFilter)({display:"grid",alignItems:"center"}),Mo=d.styled(V.ToolbarButton)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:t.expanded?0:1,pointerEvents:t.expanded?"none":"auto",transition:e.transitions.create(["opacity"])}))),Co=d.styled(d.TextField)((({theme:e,ownerState:t})=>({gridArea:"1 / 1",overflowX:"clip",width:t.expanded?260:"var(--trigger-width)",opacity:t.expanded?1:0,transition:e.transitions.create(["width","opacity"])}))),Do=t=>{const{t:i}=f.useTranslation(),o=ge(),a=!t?.templateProps?.editAction?.authority||o.isUserAuthorized(t.templateProps.editAction.authority),r=((e,t,i)=>{const o=[],a=[];if("exclude"===e.type&&0===e.ids.size)for(const e of t)o.push(e),a.push(e[i]);else if(e?.ids)for(const r of e.ids){const e=t.find((e=>e[i]===r));o.push(e),a.push(r)}return{selectedRecords:o,selectedRecordIds:a}})(t?.templateProps?.rowSelectionModel||{ids:new Set,type:"include"},t?.templateProps?.data||[],t?.templateProps?.keyColumnName||"id");return e.jsxs(V.Toolbar,{children:[a&&"none"!=t?.templateProps?.editMode?.editMode?e.jsxs(d.Button,{onClick:t?.handleCreateNewRecord,children:[e.jsx(m.FontAwesomeIcon,{icon:"add",style:{marginRight:5,marginLeft:5}}),i("ADD_BTN_LABEL")]}):e.jsx(e.Fragment,{}),t?.templateProps?.rowActions?t.templateProps.rowActions.map(((e,i)=>!0===e?.gridActionProps?.multiRecord?l.createElement(ho,{...e,key:i,reloadData:async()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},recordIdsToProcessActionOn:r.selectedRecordIds,recordsToProcessActionOn:r.selectedRecords}):null)):e.jsx(e.Fragment,{}),e.jsx(d.Box,{sx:{flex:1,mx:.5},children:t?.templateProps?.tBar}),e.jsx(d.Tooltip,{title:"Columns",children:e.jsx(V.ColumnsPanelTrigger,{render:e.jsx(V.ToolbarButton,{}),children:e.jsx(V.GridViewColumnIcon,{fontSize:"small"})})}),e.jsx(d.Tooltip,{title:"Filters",children:e.jsx(V.FilterPanelTrigger,{render:(t,i)=>e.jsx(V.ToolbarButton,{...t,color:"default",children:e.jsx(d.Badge,{badgeContent:i.filterCount,color:"primary",variant:"dot",children:e.jsx(V.GridFilterListIcon,{fontSize:"small"})})})})}),t?.templateProps?.gridStateKey?e.jsx(d.Tooltip,{title:i("RESET_GRID_STATE"),children:e.jsx(d.IconButton,{onClick:t?.clearGridState,children:e.jsx(m.FontAwesomeIcon,{icon:"eraser"})})}):e.jsx(e.Fragment,{}),e.jsx(d.Divider,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{mx:.5}}),e.jsx(d.Tooltip,{title:i("EXPORT_EXECL_LABEL"),children:e.jsx(V.ExportExcel,{render:e.jsx(d.MenuItem,{}),children:e.jsx(m.FontAwesomeIcon,{icon:"file-excel",color:"green"})})}),e.jsxs(Po,{children:[e.jsx(V.QuickFilterTrigger,{render:(t,o)=>e.jsx(d.Tooltip,{title:i("SEARCH_BTN_LABEL"),enterDelay:0,children:e.jsx(Mo,{...t,ownerState:{expanded:o.expanded},color:"default","aria-disabled":o.expanded,children:e.jsx(m.FontAwesomeIcon,{icon:"search"})})})}),e.jsx(V.QuickFilterControl,{render:({ref:t,...o},a)=>e.jsx(Co,{...o,ownerState:{expanded:a.expanded},inputRef:t,"aria-label":"Search",placeholder:`${i("SEARCH_BTN_LABEL")}...`,size:"small",slotProps:{input:{startAdornment:e.jsx(d.InputAdornment,{position:"start",children:e.jsx(m.FontAwesomeIcon,{icon:"search"})}),endAdornment:a.value?e.jsx(d.InputAdornment,{position:"end",children:e.jsx(V.QuickFilterClear,{edge:"end",size:"small","aria-label":"Clear search",children:e.jsx(m.FontAwesomeIcon,{icon:"xmark"})})}):null,...o.slotProps?.input},...o.slotProps}})})]}),e.jsx(d.IconButton,{onClick:()=>{t.templateProps.apiActions.reloadData(t?.templateProps?.gridLoadParametersValues)},children:e.jsx(m.FontAwesomeIcon,{icon:"refresh"})})]})},So=t=>{const{t:i}=f.useTranslation(),o=ge(),{ConfirmationWindow:a,setOpen:r}=be({body:i(t?.confirmationMessage||"ACTION_CONFIRMATION"),title:i("CONFIRMATION"),onConfirmationCallBk:async()=>{await(t?.actionFn(t.record)),t?.reloadData&&t.reloadData()}});let n=!0;t.authority&&(n=o.isUserAuthorized(t.authority));let l={};t?.getActionIconStyleForRecord&&(l=t.getActionIconStyleForRecord(t.record));let s=!0;t?.isActionVisibleForRecord&&(s=t?.isActionVisibleForRecord(t.record));let p=!1;if(t?.isActionDisabledForRecord&&(p=t.isActionDisabledForRecord(t.record)),n&&s)return e.jsxs(e.Fragment,{children:[e.jsx(a,{}),e.jsx(V.GridActionsCellItem,{disabled:p,icon:e.jsx(d.Tooltip,{title:t?.label?i(t.label):"",children:e.jsx(m.FontAwesomeIcon,{icon:t.icon,style:{...l,color:p?"gray":null!=l?.color?l.color:void 0}})}),showInMenu:t?.gridActionProps?.showInMenu||!1,label:"",className:"textPrimary",color:"inherit",onClick:async()=>{if(!p){if(t?.preActionValidation&&!t.preActionValidation(t.record))return;!0===t?.isConfirmationRequired?r(!0):(await t.actionFn(t.record),!0===t?.gridActionProps?.reloadGridAfterAction&&t?.reloadData&&t.reloadData())}}})]})};let bo=-1;const go=e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):{}}catch(e){return console.error("Failed to load grid state",e),{}}},xo=(e,t)=>{const i=go(e);localStorage.setItem(e,JSON.stringify({...i,...t}))},Uo=["__check__","actions"],vo=i=>{const o=t.useSelector((e=>e.AppLayout)),{getLookupOptions:a}=(()=>{const{handleGetRequest:e}=ye(),i=t.useSelector((e=>e.AppLayout)),o=async t=>{let i=[];return await e({endPointURI:"api/v1/dev/system/lookup",showMask:!0,parameters:{lookupType:t},successCallBkFn:e=>{i=e.data}}),i};return{generateLookupGridColumn:async e=>{let t=await o(e.lookupType);return{...e,options:t,displayField:"ltr"===i.appDirection?"lookupEnDisplay":"lookupArDisplay",valueField:"lookupValue"}},getLookupOptions:o}})(),[r,n]=l.useState([]),{t:s}=f.useTranslation(),p=yo(i.formElements),c=[],u=l.useMemo((()=>i?.gridStateKey?go(i.gridStateKey):{}),[]);for(const e of p)!0===e?.gridProps?.hidden&&c.push(e.fieldName);let T={};if(u?.columnVisibilityModel){T=u.columnVisibilityModel;const e=Object.keys(T);for(const t of c)e.includes(t)||(T[t]=!1)}else for(const e of c)T[e]=!1;const _=t.useSelector((e=>e.AppLayout.appDirection)),[E,I]=l.useState(T),[O,N]=l.useState(u.columnOrder||[]),[y,R]=l.useState(u.columnWidths||{}),[L,h]=l.useState(u.columnGroupingModel||[]);let P=u?.pinnedColumns?.left||[];P=P.filter((e=>!Uo.includes(e)));let M=u?.pinnedColumns?.right||[]||[];M=M.filter((e=>!Uo.includes(e)));const[C,D]=l.useState({left:[..."ltr"===_?Uo:[],...P],right:[..."rtl"===_?Uo:[],...M]}),S=ge(),b=B.useNavigate(),[g,x]=l.useState(null),[F,w]=l.useState(null),[k,W]=l.useState({}),G=async()=>{let t=((t,i,o)=>{const a=[];for(const d of t)if("text"===d?.fieldType||"number"===d?.fieldType){const e={...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:i,type:"number"==d?.fieldType?"number":"string",field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,flex:1,minWidth:200};a.push(e)}else if("date"===d?.fieldType){const t=(r={...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:i,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,flex:1,minWidth:200},{...r,type:"string",renderEditCell:t=>e.jsx(rt,{sx:{width:"100%"},label:"",value:t.value,onChangeCallBack:e=>{t.api.setEditCellValue({id:t.id,field:t.field,value:e})}}),valueParser:(e,t,i)=>{let o=null;return null!==e&&(o=U(e).format(Je)),o},valueFormatter:(e,t,i)=>t[i.field]});a.push(t)}else if("datetime"===d?.fieldType){const e=fo({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:i,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,flex:1,minWidth:200});a.push(e)}else if("checkbox"===d?.fieldType){const e=Oo({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:i,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,checkedValue:d?.checkedValue,unCheckedValue:d?.unCheckedValue,width:150});a.push(e)}else if("combobox"===d?.fieldType){const e=Io({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:i,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,valueField:d?.optionValueField||"value",displayField:d?.optionDisplayField||"display",options:d?.options||[],flex:1,minWidth:200});a.push(e)}else if("lookup"===d?.fieldType){const e=Io({...d?.gridProps?.muiProps,editable:null!=d?.gridProps?.muiProps?.editable?d?.gridProps?.muiProps?.editable:i,lookupType:d?.lookupType,field:d?.fieldName,headerName:o(d?.fieldLabel||d?.fieldName),headerAlign:"center",align:"center",hidden:d?.hidden,searchable:d?.gridProps?.searchable,valueField:d?.optionValueField||"value",displayField:d?.optionDisplayField||"display",options:d?.options||[],flex:1,minWidth:200});a.push(e)}var r;return a})(p,"row"===i?.editMode?.editMode||!1,s);for(let e of t)e?.lookupType&&(e.displayField="ltr"===o.appDirection?"lookupEnDisplay":"lookupArDisplay",e.options=await a(e.lookupType),e.valueField="lookupValue");n(t)},[j,Y]=l.useState({ids:new Set,type:"include"});let q="id";i?.keyColumnName&&(q=i?.keyColumnName);const K=i.setData,z=v.z.object(Ro(p));let H=!0;i?.editAction?.authority&&(H=S.isUserAuthorized(i.editAction.authority));let Q=!0;i?.deleteAction?.authority&&(Q=S.isUserAuthorized(i.deleteAction.authority));const{ConfirmationWindow:Z,setOpen:$}=be({title:"Confirmation",body:"Are you sure you want to delete this record ?",onConfirmationCallBk:async()=>{let e=!0;g&&!0===g?.isNew||(e=await i.apiActions.deleteRecordById(g[q])),e&&(i?.deleteAction?.postActionCallBack&&await i.deleteAction.postActionCallBack(g),K((e=>e.filter((e=>e[q]!=g[q])))))}});let X,J,ee,te,ie,oe;"modal"===i?.editMode?.editMode&&(X=i?.editMode?.specs?.modalHeight||"fit-content",J=i?.editMode?.specs?.modalWidth||"300",ee=i?.editMode?.specs?.modalMinHeight,te=i?.editMode?.specs?.modalMinWidth,ie=i?.editMode?.specs?.modalIcon||"window",oe=i?.editMode?.specs?.modalTitle||"Record Form");const{Window:ae,setWindowState:re}=xe({height:X,minHeight:ee,minWidth:te,onCloseCallBack:()=>{i.apiActions.reloadData(i?.gridLoadParametersValues)},width:J,windowIcon:ie,windowTitle:oe}),de={type:"actions",field:"actions",headerName:"",headerAlign:"center",width:(i?.rowActions?30*i.rowActions.length:0)+(i?.editAction&&i?.editAction?.isEnabled?30:0)+(i?.deleteAction&&i?.deleteAction?.isEnabled?30:0),getActions:t=>{const o=t.row,a=[];if("none"!=i?.editMode?.editMode&&(void 0===i?.disableDefaultAction||!i.disableDefaultAction)){const t=k[o[q]]?.mode===V.GridRowModes.Edit;if("row"===i.editMode.editMode&&t)H&&(a.push(e.jsx(V.GridActionsCellItem,{icon:e.jsx(m.FontAwesomeIcon,{icon:"save"}),label:s("SAVE_BTN_LABEL"),onClick:()=>{(e=>{const t=e[q];W({...k,[t]:{mode:V.GridRowModes.View}})})(o)}})),a.push(e.jsx(V.GridActionsCellItem,{icon:e.jsx(m.FontAwesomeIcon,{icon:"cancel"}),label:s("CANCEL_BTN_LABEL"),onClick:()=>{(e=>{const t=e[q];t&&so(t)&&t<0?(W({...k,[t]:{mode:V.GridRowModes.View,ignoreModifications:!0}}),K((e=>{const i=e.filter((e=>e[q]!=t));return i}))):W({...k,[t]:{mode:V.GridRowModes.View,ignoreModifications:!0}})})(o)},color:"inherit"})));else{if(i?.editAction&&!0===i?.editAction?.isEnabled){let t=!0;i?.editAction?.isActionVisibleForRecord&&(t=i?.editAction?.isActionVisibleForRecord(o));let r=!1;i?.editAction?.isActionDisabledForRecord&&(r=i?.editAction?.isActionDisabledForRecord(o)),H&&t&&a.push(e.jsx(V.GridActionsCellItem,{disabled:r,icon:e.jsx(d.Tooltip,{title:s("EDIT_BTN_LABEL"),children:e.jsx(m.FontAwesomeIcon,{icon:"edit",style:{color:r?"gray":void 0}})}),showInMenu:i?.editAction?.gridActionProps?.showInMenu||!1,label:s("EDIT_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{H&&!r&&(async e=>{if(e)if(w(e),"form"===i.editMode.editMode)b(i.editMode.specs.formRoute+"/"+e[q]);else if("modal"===i.editMode.editMode)re(!0);else if("row"===i?.editMode?.editMode){const t=e[q];W({...k,[t]:{mode:V.GridRowModes.Edit}})}})(o)}}))}if(i?.deleteAction&&!0===i?.deleteAction?.isEnabled){let t=!0;i?.deleteAction?.isActionVisibleForRecord&&(t=i?.deleteAction?.isActionVisibleForRecord(o));let r=!1;i?.deleteAction?.isActionDisabledForRecord&&(r=i?.deleteAction?.isActionDisabledForRecord(o)),Q&&t&&a.push(e.jsx(V.GridActionsCellItem,{disabled:r,icon:e.jsx(d.Tooltip,{title:s("DELETE_BTN_LABEL"),children:e.jsx(m.FontAwesomeIcon,{icon:"trash",style:{color:r?"gray":void 0}})}),showInMenu:i?.deleteAction?.gridActionProps?.showInMenu||!1,label:s("DELETE_BTN_LABEL"),className:"textPrimary",color:"inherit",onClick:()=>{if(Q&&!r){if(i?.deleteAction?.preActionValidation&&!i.deleteAction.preActionValidation(o))return;x(o),$(!0)}}}))}}}if(i?.rowActions)for(const t of i.rowActions)t?.gridActionProps?.multiRecord&&!0===t?.gridActionProps?.multiRecord||a.push(e.jsx(So,{...t,record:o,reloadData:async()=>{i.apiActions.reloadData(i?.gridLoadParametersValues)}}));return a}};let ne=[];(void 0===i?.disableDefaultAction||!i.disableDefaultAction||i?.rowActions&&i?.rowActions.length>0)&&ne.push(de),ne=[...ne,...r];l.useEffect((()=>{void 0!==i?.autoLoad&&!0!==i.autoLoad||i.apiActions.reloadData(i?.gridLoadParametersValues),G()}),[]),l.useEffect((()=>{G()}),[_,i.formElements]);const le=l.useMemo((()=>{const e=ne.map((e=>({...e,width:y[e.field]||e.width})));if(O.length){const t=new Map(e.map((e=>[e.field,e])));return O.map((e=>t.get(e))).filter(Boolean)}return e}),[O,y,ne]);return e.jsxs(e.Fragment,{children:[e.jsx(Z,{}),"modal"===i?.editMode?.editMode?e.jsx(ae,{children:i?.editMode?.specs?.formComponent?e.jsx(i.editMode.specs.formComponent,{recordIdToEdit:F?F[q]:void 0,formCloseCallBk:()=>{re(!1),i.apiActions.reloadData(i?.gridLoadParametersValues)}}):e.jsx(Lo,{formLoadCallBk:i.formLoadCallBk,recordIdToEdit:F?F[q]:void 0,formCloseCallBk:()=>{re(!1),i.apiActions.reloadData(i?.gridLoadParametersValues)},elements:i.formElements,apiActions:i.apiActions,editAuthorityKey:i?.editAction?.authority,formSavedSuccessfullyCallBk:i?.editAction?.postActionCallBack,preSaveValidation:i?.editAction?.preActionValidation,actions:i?.rowActions})}):e.jsx(e.Fragment,{}),void 0!==i?.hideInfoBar||i?.hideInfoBar?e.jsx(e.Fragment,{}):e.jsxs(d.Box,{sx:{display:"flex"},children:[void 0!==i?.hideBackButton||i?.hideBackButton?e.jsx(e.Fragment,{}):e.jsx(d.IconButton,{onClick:()=>{b(-1,{replace:!0})},children:e.jsx(m.FontAwesomeIcon,{icon:"arrow-left"})}),e.jsxs(d.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:[i?.girdIcon?e.jsx(m.FontAwesomeIcon,{icon:i.girdIcon,style:{marginRight:5,marginLeft:5}}):e.jsx(e.Fragment,{}),e.jsx(d.Typography,{variant:"h5",children:i?.gridTitle?co(s(i?.gridTitle)):""})]})]}),i?.gridLoadParameters&&i?.gridLoadParameters.length>0&&i?.gridLoadParametersValues&&i?.setGridLoadParametersValues?e.jsxs(d.Accordion,{defaultExpanded:!0,sx:{width:"100%"},children:[e.jsx(d.AccordionSummary,{expandIcon:e.jsx(V.GridExpandMoreIcon,{}),children:e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(m.FontAwesomeIcon,{style:{marginLeft:5,marginRight:5},icon:"search"}),e.jsx(d.Typography,{component:"span",children:"Filters"})]})}),e.jsx(d.AccordionDetails,{children:e.jsx(d.Box,{children:e.jsx(Lo,{saveButtonSpecs:{label:s("SEARCH_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success"},cancelButtonSpecs:{label:s("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{null!=e?i.setGridLoadParametersValues(e):i.setGridLoadParametersValues({}),i.apiActions.reloadData(e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:i.gridLoadParameters})})})]}):e.jsx(e.Fragment,{}),e.jsx(V.DataGridPremium,{...i?.muiProps,slots:{toolbar:Do},slotProps:{toolbar:{templateProps:{...i,rowSelectionModel:j,data:i?.data},handleCreateNewRecord:()=>{if("form"===i?.editMode?.editMode)b(i.editMode.specs.formRoute);else if("modal"===i?.editMode?.editMode)w(null),re(!0);else if("row"===i?.editMode?.editMode){bo-=1;const e={};e[q]=bo,e.isNew=!0;for(const t of r)"actions"!=t?.type&&t?.field!=q&&t?.field&&(e[t.field]=null);K((t=>[e,...t])),W((e=>({...e,[bo]:{mode:V.GridRowModes.Edit}})))}},clearGridState:()=>{i?.gridStateKey&&localStorage.removeItem(i.gridStateKey),I({}),N([]),R({}),h([]),D({left:[..."ltr"===_?Uo:[]],right:[..."rtl"===_?Uo:[]]})}}},getRowId:e=>e[q],showToolbar:!0,rows:i?.data,columns:le,checkboxSelection:!0,editMode:"row",rowModesModel:"row"==i.editMode.editMode?k:void 0,onRowModesModelChange:"row"==i.editMode.editMode?e=>{W(e)}:void 0,rowGroupingColumnMode:"multiple",processRowUpdate:async t=>{if("row"===i.editMode.editMode){let o=null;const a=(e=>{try{z.parse(e)}catch(e){console.log("validateRecord err",e);let t=null;return t=e instanceof v.z.ZodError?e.errors.map((e=>"Error in field ("+e.path+") : "+e.message)).join(","):"invalid record data",t}})(t);if(a){const t=a.split(",");throw A.toast.error(e.jsx("div",{style:{},children:t.map((t=>e.jsxs(e.Fragment,{children:[e.jsx("div",{children:t}),e.jsx(d.Divider,{})]})))})),new Error(a)}if(i?.editAction?.preActionValidation&&!i.editAction.preActionValidation(t))throw new Error("error on the configured presave validation");const r={...t};if(t[q]&&so(t[q])&&Number(t[q])<0&&(r[q]=null),o=await i.apiActions.saveRecord(r),null==o)throw new Error("Failed to process your request, contact your administrator");return i?.editAction?.postActionCallBack&&await i.editAction.postActionCallBack(t),!0===t?.isNew&&K((e=>{const i=e.filter((e=>e[q]!==t[q]));return[o,...i]})),!0===i?.editMode?.reloadAfterSave&&i?.apiActions?.reloadData&&i?.apiActions?.reloadData(i?.gridLoadParametersValues),o}},rowSelectionModel:j,onRowSelectionModelChange:e=>{Y(e)},columnVisibilityModel:E,onColumnVisibilityModelChange:e=>{I(e),i?.gridStateKey&&xo(i.gridStateKey,{columnVisibilityModel:e})},onColumnOrderChange:e=>{const{column:t,targetIndex:o}=e;N((e=>{const a=e.length?[...e]:ne.map((e=>e.field)),r=a.indexOf(t.field);return-1===r||(a.splice(r,1),a.splice(o,0,t.field),i?.gridStateKey&&xo(i.gridStateKey,{columnOrder:a})),a}))},onColumnWidthChange:e=>{const t={...y,[e.colDef.field]:e.width};R(t),i?.gridStateKey&&xo(i.gridStateKey,{columnWidths:t})},rowGroupingModel:L,onRowGroupingModelChange:e=>{(e=>{h(e),i?.gridStateKey&&xo(i.gridStateKey,{columnGroupingModel:e})})(e)},pinnedColumns:C,onPinnedColumnsChange:e=>{let t=e?.left||[];t=t.filter((e=>!Uo.includes(e)));let o=e?.right||[];o=o.filter((e=>!Uo.includes(e)));const a={left:[..."ltr"===_?Uo:[],...t],right:[..."rtl"===_?Uo:[],...o]};D(a),i?.gridStateKey&&xo(i.gridStateKey,{pinnedColumns:a})},sx:{width:"100%"}})]})},Fo=i=>{const{UserSession:o}=ge(),a=t.useSelector((e=>e.AppLayout)),r=t.useDispatch(),{handlePostRequest:n}=ye(),[s,p]=l.useState(o.value.currentOrganization.id);return e.jsxs(d.Box,{sx:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",padding:1},children:[e.jsx(Xe,{sx:{width:"100%"},displayField:"ltr"===a.appDirection?"organizationEnName":"organizationArName",valueField:"id",label:"",options:o.value.userOrganizations,value:s,onChangeCallBack:e=>{p(e)}}),e.jsx(d.Button,{sx:{m:1},variant:"contained",disabled:null==s||s===o.value.currentOrganization.id,onClick:async()=>{await n({endPointURI:"api/auth/changeCurrentOrg",showMask:!0,parameters:{username:o.value.username,orgId:s},data:{},successCallBkFn:e=>{const t={...e.data,isAuthenticated:!0};r(Le.setAuthenticated(t)),i.successChangeCallBackFn&&i.successChangeCallBackFn()}})},children:"Change Organization"})]})},wo=T.createSlice({name:"SideBar",initialState:{isOpened:!1},reducers:{toggleSideBarState:e=>{e.isOpened=!e.isOpened},setSideBarState:(e,t)=>{e.isOpened=t.payload}}}),{toggleSideBarState:Bo,setSideBarState:ko}=wo.actions;var Wo=wo.reducer;const Go=d.styled(c,{shouldForwardProp:e=>"open"!==e})((({theme:e})=>{const i=t.useSelector((e=>e.AppLayout)),o=ce();return{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),variants:[{props:({open:e})=>e,style:{width:o?void 0:"calc(100% - 350px)",marginLeft:o||"ltr"!==i.appDirection?void 0:"350px",marginRight:o||"rtl"!==i.appDirection?void 0:"350px",transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}]}})),jo=()=>{const{Window:i,setWindowState:o}=xe({windowTitle:"Change Current Organization",windowIcon:"globe",width:"fit-content",height:"fit-content"}),a=t.useSelector((e=>e.AppInfo.value)),r=t.useSelector((e=>e.AppLayout)),n=t.useSelector((e=>e.SideBar)),{UserSession:l}=ge(),s=l.value.currentOrganization,{handleGetRequest:p}=ye(),c=ce(),T=t.useDispatch();return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx(Fo,{successChangeCallBackFn:()=>{o(!1)}})}),e.jsx(Go,{position:"fixed",open:n.isOpened,children:e.jsxs(u,{children:[e.jsx(d.IconButton,{color:"inherit","aria-label":"open drawer",onClick:()=>{T(Bo())},edge:"start",sx:[{mr:"ltr"===r.appDirection?2:void 0,ml:"rtl"===r.appDirection?2:void 0},n.isOpened&&{display:"none"}],children:e.jsx(m.FontAwesomeIcon,{icon:"bars"})}),e.jsx(d.Avatar,{src:a.appLogo,sx:{marginRight:1,marginLeft:1}}),e.jsx(d.Typography,{variant:"h6",noWrap:!0,component:"div",sx:{flex:1},children:c?"":`${a.appName} - ${"ltr"===r.appDirection?s?.organizationEnName:s?.organizationArName}`}),e.jsx(d.Tooltip,{title:"light"===r.themeMode?"Switch Theme to Dark":"Switch Theme to Light",children:e.jsx(d.IconButton,{color:"inherit",onClick:()=>{T(Ae.setThemeMode("light"===r.themeMode?"dark":"light")),localStorage.setItem("themeMode","light"===r.themeMode?"dark":"light")},children:"light"===r.themeMode?e.jsx(m.FontAwesomeIcon,{icon:"moon"}):e.jsx(m.FontAwesomeIcon,{icon:{prefix:"far",iconName:"sun"}})})}),e.jsx(d.Tooltip,{title:"ar"===E.language?"Change Language To English":"Change Language To Arabic",children:e.jsx(d.IconButton,{color:"inherit",onClick:()=>{let e="ar"===E.language?"en":"ar";var t;t=e,E.changeLanguage(t),localStorage.setItem("language",t),T(Ae.setAppDirection("ar"===e?"rtl":"ltr"))},children:e.jsx(m.FontAwesomeIcon,{icon:"language"})})}),l.value?.userOrganizations&&l.value?.userOrganizations.length>1?e.jsx(d.Tooltip,{title:"Change Current Organization",children:e.jsx(d.IconButton,{color:"inherit",onClick:()=>{o(!0)},children:e.jsx(m.FontAwesomeIcon,{icon:"globe"})})}):e.jsx(e.Fragment,{}),e.jsx(d.Avatar,{}),e.jsx("div",{style:{marginLeft:5,marginRight:5},children:c?"":l.value?.username}),e.jsx(d.IconButton,{color:"inherit",onClick:async()=>{try{await p({endPointURI:"api/auth/logout"})}catch(e){console.log("logout error",e)}T(Le.setUnAuthenticated())},children:e.jsx(m.FontAwesomeIcon,{rotation:"rtl"===r.appDirection?180:void 0,icon:"arrow-right-from-bracket"})})]})})]})},Vo=d.styled("div")((({theme:e})=>({display:"flex",alignItems:"center",...e.mixins.toolbar,justifyContent:"flex-end"}))),Yo=(e,t)=>{for(const i of t){if(i.id===e)return i;if(i.children){const t=Yo(e,i.children);if(t)return t}}},qo=[...[{id:"home",icon:"home",label:"Home",action:"NAVIGATION",actionPayload:{path:"/"}},{id:"system_admin",label:"System Administration",authority:"SYSTEM_ADMIN",icon:"cog",children:[{id:"development_admin.organization",label:"ORGANIZATION_PLURAL",authority:"DEVELOPMENT_ADMIN",icon:"globe",action:"NAVIGATION",actionPayload:{path:"admin/organizations"}},{id:"development_admin.SystemApplication",label:"SYSTEM_APPLICATION_PLURAL",authority:"DEVELOPMENT_ADMIN",icon:"window-restore",action:"NAVIGATION",actionPayload:{path:"admin/systemapplications"}},{id:"system_admin.Person",label:"PERSON_PLURAL",icon:"users",action:"NAVIGATION",actionPayload:{path:"admin/persons"}},{id:"system_admin.devtools",label:"DEVELOPMENT_TOOLS",icon:"code",children:[{id:"system_admin.devtools.DatasourceConnection",label:"DATASOURCE_CONNECTION_PLURAL",icon:"plug",action:"NAVIGATION",actionPayload:{path:"dev/datasourceconnections"}},{id:"system_admin.devtools.EntityParameter",label:"ENTITY_PARAMETER_PLURAL",icon:"p",action:"NAVIGATION",actionPayload:{path:"dev/entityparameters"}},{id:"system_admin.devtools.DataQuery",label:"DATA_QUERY_PLURAL",icon:"file-code",action:"NAVIGATION",actionPayload:{path:"dev/dataqueries"}},{id:"system_admin.devtools.Report",label:"REPORT_PLURAL",icon:"file",action:"NAVIGATION",actionPayload:{path:"dev/reports"}},{id:"system_admin.devtools.MailConfig",label:"Mail Sender Config",icon:{iconName:"paper-plane",prefix:"fas"},action:"NAVIGATION",actionPayload:{path:"dev/mailsender/config"}},{id:"system_admin.devtools.MailTemplate",label:"MAIL_TEMPLATE_PLURAL",icon:"envelope",action:"NAVIGATION",actionPayload:{path:"dev/mailtemplates"}},{id:"system_admin.devtools.WorkflowDocument",label:"WORKFLOW_DOCUMENT_PLURAL",icon:"chart-diagram",action:"NAVIGATION",actionPayload:{path:"dev/workflowdocuments"}},{id:"system_admin.devtools.Widget",label:"WIDGET_PLURAL",icon:"chart-pie",action:"NAVIGATION",actionPayload:{path:"dev/widgets"}},{id:"system_admin.devtools.Dashboard",label:"DASHBOARD_PLURAL",icon:"square-poll-vertical",action:"NAVIGATION",actionPayload:{path:"dev/dashboards"}},{id:"system_admin.devtools.BluePrint",label:"BLUE_PRINT_PLURAL",icon:"fingerprint",action:"NAVIGATION",actionPayload:{path:"dev/blueprints"}},{id:"system_admin.devtools.Notification",label:"NOTIFICATION_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"dev/notifications"}}]},{id:"system_admin.followup",label:"SYSTEM_MONITORING",icon:"tv",children:[{id:"system_admin.WorkflowDocumentMailLog",label:"Action Mail Logs",icon:"envelopes-bulk",action:"NAVIGATION",actionPayload:{path:"dev/workflowdocumentmaillogs"}},{id:"system_admin.MailNotificationQueue",label:"Mail Notification Queue",icon:"envelope-open-text",action:"NAVIGATION",actionPayload:{path:"dev/mailnotificationqueues"}},{id:"system_admin.NotificationQueue",label:"NOTIFICATION_QUEUE_PLURAL",icon:"bell",action:"NAVIGATION",actionPayload:{path:"dev/notificationqueues"}}]}]}]];function Ko(){return e.jsx(S,{sx:{width:6,height:6,borderRadius:"70%",bgcolor:"warning.main",display:"inline-block",verticalAlign:"middle",zIndex:1,mx:1}})}const zo=s.styled($.TreeItem2Root)((({theme:e})=>({color:e.palette.grey[400],position:"relative",[`& .${Q.treeItemClasses.groupTransition}`]:{marginLeft:e.spacing(2.5)},...e.applyStyles("light",{color:e.palette.grey[800]})}))),Ho=s.styled($.TreeItem2Content)((({theme:e})=>({flexDirection:"row-reverse",borderRadius:e.spacing(.7),marginBottom:e.spacing(.5),marginTop:e.spacing(.5),padding:e.spacing(.5),paddingRight:e.spacing(1),"&.Mui-expanded ":{"&:not(.Mui-focused, .Mui-selected, .Mui-selected.Mui-focused) .labelIcon":{color:e.palette.primary.dark,...e.applyStyles("light",{color:e.palette.primary.main})},"&::before":{content:'""',display:"block",position:"absolute",left:"16px",top:"44px",height:"calc(100% - 48px)",width:"1.5px",backgroundColor:e.palette.grey[700],...e.applyStyles("light",{backgroundColor:e.palette.grey[300]})}},"&:hover":{backgroundColor:s.alpha(e.palette.primary.main,.1),color:"white",...e.applyStyles("light",{color:e.palette.primary.main})},"&.Mui-focused, &.Mui-selected, &.Mui-selected.Mui-focused":{backgroundColor:e.palette.primary.dark,color:e.palette.primary.contrastText,...e.applyStyles("light",{backgroundColor:e.palette.primary.main})}}))),Qo=K.animated(z);function Zo(t){const i=K.useSpring({to:{opacity:t.in?1:0,transform:`translate3d(0,${t.in?0:20}px,0)`}});return e.jsx(Qo,{style:i,...t})}const $o=s.styled(D)({color:"inherit",fontWeight:500});function Xo({icon:i,expandable:o,children:a,...r}){const{t:d}=f.useTranslation(),n=t.useSelector((e=>e.AppLayout));return e.jsxs($.TreeItem2Label,{...r,sx:{display:"flex",alignItems:"center",padding:1},children:[e.jsx(m.FontAwesomeIcon,{style:{marginRight:"ltr"===n.appDirection?7:void 0,marginLeft:"rtl"===n.appDirection?7:void 0,fontSize:"1.2rem"},icon:i}),e.jsx($o,{variant:"body2",sx:{fontSize:16},children:d(a)}),o&&e.jsx(Ko,{})]})}const Jo=e=>Array.isArray(e)?e.length>0&&e.some(Jo):Boolean(e),ea=se.forwardRef((function(t,i){const{id:o,itemId:a,label:r,disabled:d,children:n,...l}=t,{getRootProps:s,getContentProps:p,getIconContainerProps:c,getCheckboxProps:u,getLabelProps:m,getGroupTransitionProps:T,getDragAndDropOverlayProps:A,status:_,publicAPI:E}=Z.useTreeItem2({id:o,itemId:a,children:n,label:r,disabled:d,rootRef:i}),f=E.getItem(a),I=Jo(n);return e.jsx(J.TreeItem2Provider,{itemId:a,children:e.jsxs(zo,{...s(l),children:[e.jsxs(Ho,{...p({className:ro("content",{"Mui-expanded":_.expanded,"Mui-selected":_.selected,"Mui-focused":_.focused,"Mui-disabled":_.disabled})}),children:[e.jsx($.TreeItem2IconContainer,{...c(),children:e.jsx(X.TreeItem2Icon,{status:_})}),e.jsx($.TreeItem2Checkbox,{...u()}),e.jsx(Xo,{...m({icon:f?.icon||"book",expandable:I&&_.expanded})}),e.jsx(ee.TreeItem2DragAndDropOverlay,{...A()})]}),n&&e.jsx(Zo,{...T()})]})})}));function ta(){const i=B.useNavigate(),o=t.useSelector((e=>e.AppLayout)),a=t.useSelector((e=>e.AppInfo.value));t.useDispatch();const r=ce(),{isUserAuthorized:d}=ge(),n=e=>e.filter((e=>void 0===e.authority||null==e.authority||d(e.authority))).map((e=>(e.children&&(e.children=n(e.children)),e))),l=[];a.enableAdministrationModule&&l.push(...qo),l.push(...a.businessNavigationItems);const s=n(l);return e.jsx(H.RichTreeView,{items:s,onItemClick:(e,t)=>{const o=Yo(t,l);"NAVIGATION"!==o?.action||null==o?.actionPayload||void 0!==o.children&&null!==o.children&&0!=o.children.length||i(o?.actionPayload?.path||"")},sx:{height:"fit-content",flexGrow:1,maxWidth:ue,direction:o.appDirection,maxHeight:r?300:void 0,overflowY:"auto",overflowX:"auto"},slots:{item:ea}})}const ia=()=>{const i=t.useSelector((e=>e.AppInfo.value)),{UserSession:o}=ge(),a=o.value.currentOrganization,r=d.useTheme(),n=t.useSelector((e=>e.AppLayout)),l=t.useSelector((e=>e.SideBar)),s=t.useDispatch();return e.jsxs(q,{sx:{width:ue,flexShrink:0,"& .MuiDrawer-paper":{width:ue,boxSizing:"border-box"}},variant:"persistent",anchor:"ltr"===n.appDirection?"left":"right",open:l.isOpened,children:[e.jsxs(Vo,{children:[e.jsxs(d.Box,{sx:{width:"100%"},children:[e.jsx(d.Typography,{color:"primary",sx:{width:"100%",textAlign:"center",fontSize:18,fontWeight:"bold"},children:"System Content"}),e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1},children:[e.jsx(d.Typography,{sx:{fontSize:12},color:"textDisabled",children:`${i.appName} - ${"ltr"===n.appDirection?a?.organizationEnName:a?.organizationArName}`}),e.jsxs(d.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",i.appVersion]})]})]}),e.jsx(Y,{onClick:()=>{s(Bo())},children:"ltr"===r.direction?e.jsx(m.FontAwesomeIcon,{icon:"angle-left"}):e.jsx(m.FontAwesomeIcon,{icon:"angle-right"})})]}),e.jsx(P,{}),e.jsx(ta,{})]})},oa=oe({key:"muirtl",stylisPlugins:[ie.prefixer,te]}),aa=oe({key:"mui"}),ra=t=>{const[i,o]=l.useState(!0),[a,r]=l.useState([]),{handleGetRequest:n}=ye();l.useEffect((()=>{(async()=>{o(!0),await n({endPointURI:"api/v1/dev/query/result",showMask:!1,parameters:{queryId:t.dataQueryId,...t.parameterValues},successCallBkFn:e=>{o(!1),r(e.data)},failureCallBkFn:()=>{o(!1),r(null)}})})()}),[t.parameterValues]);let s=0;if(1==a.length&&(s=100),"CircularProgress"===t.widgetType||"LinearProgress"===t.widgetType)for(const e of a)s+=e[t.verticalAxisField];return e.jsxs(e.Fragment,{children:["LineChart"===t.widgetType||"PieChart"===t.widgetType||"ColumnChart"===t.widgetType?e.jsxs(d.Box,{children:[e.jsx(m.FontAwesomeIcon,{style:{marginRight:10,marginLeft:10},icon:t?.icon||"chart-pie"}),t?.title]}):e.jsx(e.Fragment,{}),e.jsx(d.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:i?e.jsxs(e.Fragment,{children:[e.jsx(m.FontAwesomeIcon,{icon:{prefix:"fas",iconName:"arrows-spin"},style:{marginRight:10,marginLeft:10},spin:!0,size:"2x"}),e.jsx("div",{children:"Loading"})]}):"ColumnChart"===t.widgetType?e.jsx(Ye,{data:a,widgetTitle:t.title,labelField:t.verticalAxisField,valueField:t.horizontalAxisField,valueLabel:t.horizontalAxisLabel,widgetType:"Line"}):"LineChart"===t.widgetType?e.jsx(ze,{data:a,widgetTitle:t.title,labelField:t.verticalAxisField,valueField:t.horizontalAxisField,valueLabel:t.horizontalAxisLabel,widgetType:"Line"}):"PieChart"===t.widgetType?e.jsx(Ze,{data:a,widgetTitle:t.title,labelField:t.horizontalAxisField,valueField:t.verticalAxisField,widgetType:"Line"}):e.jsxs(d.Grid2,{container:!0,sx:{width:"100%",alignItems:"flex-start",justifyContent:"flex-start"},spacing:2,size:{xs:12},children:[e.jsx(d.Grid2,{size:{xs:12},sx:{textAlign:"center"},children:t.title}),a.map(((i,o)=>"Card"===t.widgetType?e.jsx(d.Grid2,{size:{md:3,xs:12},children:e.jsx(qe,{widgetTitle:"",record:i,labelField:t.verticalAxisField,valueField:t.horizontalAxisField},o)}):"CircularProgress"===t.widgetType?e.jsx(d.Grid2,{size:{md:3,xs:12},children:e.jsx(Ke,{widgetTitle:"",record:i,labelField:t.horizontalAxisField,valueField:t.verticalAxisField,total:s},o)}):"LinearProgress"===t.widgetType?e.jsx(d.Grid2,{size:{md:3,xs:12},children:e.jsx(Qe,{widgetTitle:"",record:i,labelField:t.horizontalAxisField,valueField:t.verticalAxisField,total:s},o)}):void 0))]})})]})},da=t=>{const[i,o]=l.useState({dashboardCode:"",dashboardName:"",dashboardTitle:"",dashboardParameters:[],widgets:[]}),[a,r]=l.useState(t?.parameters||{}),n=B.useNavigate(),{handleGetRequest:s,handlePostRequest:p}=ye();return l.useEffect((()=>{t.dashboardCode&&(async()=>{await s({endPointURI:"api/v1/dev/dashboard/metadata",showMask:!0,parameters:{dashboardCode:t.dashboardCode},successCallBkFn:e=>{o(e.data)},failureCallBkFn:()=>{o(null)}})})()}),[t.dashboardCode,t.parameters]),e.jsx(e.Fragment,{children:i?e.jsxs(e.Fragment,{children:[e.jsxs(d.Box,{sx:{fontSize:20,fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(d.IconButton,{onClick:()=>{n(-1,{replace:!0})},children:e.jsx(m.FontAwesomeIcon,{icon:"arrow-left"})}),e.jsx(d.Box,{sx:{flex:1}}),e.jsx(m.FontAwesomeIcon,{style:{marginLeft:10,marginRight:10},icon:"square-poll-vertical"}),e.jsx(d.Box,{children:i?.dashboardTitle}),e.jsx(d.Box,{sx:{flex:1}})]}),e.jsx(d.Grid2,{container:!0,spacing:1,sx:{flexGrow:1,overflowY:"auto",padding:1},children:i?.widgets.map(((t,i)=>e.jsx(d.Grid2,{sx:{alignItems:"center",justifyContent:"center",padding:1,display:"flex",overflow:"auto",flexDirection:"Card"!=t.widgetType?"column":void 0,height:t?.height||300},size:{md:t?.width,sm:12},children:e.jsx(ra,{...t})},i)))})]}):e.jsx(d.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold"},children:"No Dashboard Found"})})},na=t=>{const{t:i}=f.useTranslation(),{handleGetRequest:o}=ye(),[a,r]=l.useState([]),d=ke({findAll:"api/v1/admin/organizationapplicationmodule/all",deleteById:"api/v1/admin/organizationapplicationmodule",save:"api/v1/admin/organizationapplicationmodule",findById:"api/v1/admin/organizationapplicationmodule",setData:r}),[n,s]=l.useState([]);l.useEffect((()=>{(async()=>{await o({endPointURI:"api/v1/admin/systemapplicationmodule/all",showMask:!0,successCallBkFn:e=>{s(e.data)}})})()}),[]);const p=[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_SYSTEM_APPLICATION_MODULE_ID",fieldName:"systemApplicationModuleId",required:!1,fieldType:"combobox",options:n,optionDisplayField:"moduleName",optionValueField:"id"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_APPLICATION_MODULE_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_SUBSCRIPTION_DATE",fieldName:"subscriptionDate",required:!0,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_EXPIRATION_DATE",fieldName:"expirationDate",required:!1,fieldType:"date"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_APPLICATION_MODULE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:d,data:a,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},hideInfoBar:!0,setData:r,editMode:{editMode:"row"},formElements:p,keyColumnName:"id",gridTitle:"ORGANIZATION_APPLICATION_MODULE_PLURAL",girdIcon:"layer-group",editAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_MODULE_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_APPLICATION_MODULE_DELETE"}})},la=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/admin/organizationunittype/all",deleteById:"api/v1/admin/organizationunittype",save:"api/v1/admin/organizationunittype",findById:"api/v1/admin/organizationunittype",setData:a});return e.jsx(vo,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_ORGANIZATION_ID",hidden:!0,gridProps:{hidden:!0},fieldName:"organizationId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_ORGANIZATION_UNIT_TYPE_ORDER",fieldName:"organizationUnitTypeOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_CODE",fieldName:"unitTypeCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_AR_NAME",fieldName:"unitTypeArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_UNIT_TYPE_EN_NAME",fieldName:"unitTypeEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_TYPE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_TYPE_PLURAL",girdIcon:"tags",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_TYPE_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_TYPE_DELETE"}})},sa=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/admin/organizationunit/all",deleteById:"api/v1/admin/organizationunit",save:"api/v1/admin/organizationunit",findById:"api/v1/admin/organizationunit",setData:a}),[d,n]=l.useState([]),{handleGetRequest:s}=ye();l.useEffect((()=>{(async()=>{await s({endPointURI:"api/v1/admin/organizationunittype/all",showMask:!0,parameters:{organizationId:t.selectedOrganization.id},successCallBkFn:e=>{n(e.data)}})})()}),[]);const p=[{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_TYPE_ID",fieldName:"organizationUnitTypeId",required:!0,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"unitTypeEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",fieldName:"organizationUnitArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",fieldName:"organizationUnitEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",fieldName:"organizationUnitParentId",required:!1,fieldType:"combobox",options:o,optionValueField:"id",optionDisplayField:"organizationUnitEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_UNIT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},setData:a,editMode:{editMode:"row"},formElements:p,keyColumnName:"id",gridTitle:"ORGANIZATION_UNIT_PLURAL",girdIcon:"folder-tree",editAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_UNIT_DELETE"}})},pa=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/admin/organizationrank/all",deleteById:"api/v1/admin/organizationrank",save:"api/v1/admin/organizationrank",findById:"api/v1/admin/organizationrank",setData:a});return e.jsx(vo,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{organizationId:t?.selectedOrganization?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_RANK_ORGANIZATION_ID",fieldName:"organizationId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_ORDER",fieldName:"rankOrder",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_CODE",fieldName:"rankCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_AR_NAME",fieldName:"rankArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_RANK_EN_NAME",fieldName:"rankEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_RANK_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_RANK_PLURAL",girdIcon:"street-view",editAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_EDIT",preActionValidation:async e=>(e.organizationId=t?.selectedOrganization?.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_RANK_DELETE"}})},ca=t=>{const[i,o]=l.useState([]),[a,r]=l.useState([]),{handlePostRequest:n,handleGetRequest:s}=ye();l.useEffect((()=>{t.selectedRecord&&(async()=>{await s({endPointURI:"api/v1/admin/organization/member/roles",showMask:!0,parameters:{orgMemberId:t.selectedRecord.id,organizationId:t.selectedRecord.organizationId},successCallBkFn:e=>{o(e.data.currentRoles),r(e.data.availableRoles)}})})()}),[t.selectedRecord]);return e.jsxs(e.Fragment,{children:[e.jsx(Ve,{displayField:"appRoleDisplay",options:a,valueField:"id",selectedOptions:i,setSelection:o}),e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[e.jsx(d.Button,{variant:"contained",onClick:async()=>{await n({endPointURI:"api/v1/admin/organization/member/roles",showMask:!0,parameters:{orgMemberId:t.selectedRecord.id},data:i,successCallBkFn:()=>{A.toast.success("Your request has been proccesed successfully"),t.closeModalFn&&t.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),e.jsx(d.Button,{variant:"contained",color:"error",onClick:t.closeModalFn,children:"Cancel"})]})]})},ua=i=>{const[o,a]=l.useState(null),{Window:r,setWindowState:d}=xe({windowIcon:"tag",windowTitle:"Organization Member Roles",width:"50%"}),n=t.useSelector((e=>e.commonStores.stores.SystemOrganizations.data)),s=t.useSelector((e=>e.commonStores.stores.SystemOrganizationRanks.data)),p=t.useSelector((e=>e.commonStores.stores.SystemOrganizationUnits.data)),{t:c}=f.useTranslation(),[u,m]=l.useState([]),T=ke({findAll:"api/v1/admin/organizationmember/all",deleteById:"api/v1/admin/organizationmember",save:"api/v1/admin/organizationmember",findById:"api/v1/admin/organizationmember",setData:m}),A=[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_IS_DEFAULT",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_ID",fieldName:"organizationId",required:!0,fieldType:"combobox",options:n,optionValueField:"id",optionDisplayField:"organizationEnName"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_RANK_ID",fieldName:"organizationRankId",required:!1,fieldType:"combobox",options:s,optionValueField:"id",optionDisplayField:"rankDisplay"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ORGANIZATION_UNIT_ID",fieldName:"organizationUnitId",required:!1,fieldType:"combobox",options:p,optionValueField:"id",optionDisplayField:"fullPath"}},{type:"field",mode:"props",props:{fieldLabel:"Membership number",fieldName:"organizationMembershipNumber",fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"ORGANIZATION_MEMBER_PERSON_ID",fieldName:"personId",required:!1,fieldType:"number"}}];return e.jsxs(e.Fragment,{children:[e.jsx(r,{children:e.jsx(ca,{selectedRecord:o,closeModalFn:()=>{d(!1)}})}),e.jsx(vo,{apiActions:T,hideInfoBar:!0,data:u,setData:m,editMode:{editMode:"row"},formElements:A,rowActions:[{icon:"tag",label:"Roles",actionFn:async e=>{a(e),d(!0)}}],gridLoadParametersValues:{personId:i.selectedPerson.id},keyColumnName:"id",gridTitle:"ORGANIZATION_MEMBER_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_EDIT",preActionValidation:async e=>(e.personId=i.selectedPerson.id,!0)},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_DELETE"}})]})},ma=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/admin/systemapplicationmodule/application/all",deleteById:"api/v1/admin/systemapplicationmodule",save:"api/v1/admin/systemapplicationmodule",findById:"api/v1/admin/systemapplicationmodule",setData:a});return e.jsx(vo,{apiActions:r,data:o,gridLoadParametersValues:{applicationId:t?.selectedApplication?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_CODE",fieldName:"moduleCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_NAME",fieldName:"moduleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_MODULE_DESCRIPTION",fieldName:"moduleDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_MODULE_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}}],keyColumnName:"id",hideInfoBar:!0,gridTitle:"SYSTEM_APPLICATION_MODULE_PLURAL",girdIcon:"layer-group",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_MODULE_EDIT",preActionValidation:async e=>(e.systemApplicationId=t?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_MODULE_DELETE"}})},Ta=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/admin/systemapplicationauthority/all",deleteById:"api/v1/admin/systemapplicationauthority",save:"api/v1/admin/systemapplicationauthority",findById:"api/v1/admin/systemapplicationauthority",setData:a}),[d,n]=l.useState([]),{handleGetRequest:s}=ye();l.useEffect((()=>{(async()=>{await s({endPointURI:"api/v1/admin/systemapplicationmodule/application/all",showMask:!0,parameters:{applicationId:t.selectedApplication.id},successCallBkFn:e=>{n(e.data)}})})()}),[]);const p=[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_SYSTEM_MODULE_ID",fieldName:"systemModuleId",required:!1,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"moduleName"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_NAME",fieldName:"authorityName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_CODE",fieldName:"authorityCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_AUTHORITY_DESCRIPTION",fieldName:"authorityDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{applicationId:t?.selectedApplication?.id},setData:a,editMode:{editMode:"row"},formElements:p,keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_AUTHORITY_PLURAL",girdIcon:"key",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_AUTHORITY_EDIT",preActionValidation:async e=>(e.systemApplicationId=t?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_AUTHORITY_DELETE"}})},Aa=t=>{const[i,o]=l.useState([]),[a,r]=l.useState([]),{handlePostRequest:n,handleGetRequest:s}=ye();l.useEffect((()=>{t.roleId&&t.appId&&(async()=>{await s({endPointURI:"api/v1/admin/systemApplicationRoleAuthorities",showMask:!0,parameters:{appId:t.appId,roleId:t.roleId},successCallBkFn:e=>{o(e.data.selectedAuthorities),r(e.data.availableAuthorities)}})})()}),[t.roleId,t.appId]);return e.jsxs(e.Fragment,{children:[e.jsx(Ve,{displayField:"authorityName",options:a,valueField:"id",selectedOptions:i,setSelection:o}),e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:"100%"},children:[e.jsx(d.Button,{variant:"contained",onClick:async()=>{await n({endPointURI:"api/v1/admin/systemApplicationRoleAuthorities",showMask:!0,parameters:{roleId:t.roleId},data:i,successCallBkFn:()=>{A.toast.success("Your request has been proccesed successfully"),t.closeModalFn&&t.closeModalFn()}})},sx:{marginRight:1,marginLeft:1},children:"Save"}),e.jsx(d.Button,{variant:"contained",color:"error",onClick:t.closeModalFn,children:"Cancel"})]})]})},_a=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),[r,d]=l.useState(null),{Window:n,setWindowState:s}=xe({windowTitle:"System Application Role Authorities",windowIcon:"key",width:"50%"}),p=ke({findAll:"api/v1/admin/systemapplicationrole/all",deleteById:"api/v1/admin/systemapplicationrole",save:"api/v1/admin/systemapplicationrole",findById:"api/v1/admin/systemapplicationrole",setData:a});return e.jsxs(e.Fragment,{children:[e.jsx(n,{children:e.jsx(Aa,{appId:t.selectedApplication.id,roleId:r?.id,closeModalFn:()=>{s(!1)}})}),e.jsx(vo,{apiActions:p,data:o,hideInfoBar:!0,gridLoadParametersValues:{applicationId:t?.selectedApplication?.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_SYSTEM_APPLICATION_ID",fieldName:"systemApplicationId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_ROLE_NAME",fieldName:"roleName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_ROLE_DESCRIPTION",fieldName:"roleDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_ROLE_PLURAL",girdIcon:"tag",rowActions:[{icon:"key",actionFn:async e=>{d(e),s(!0)},label:"Authorities"}],editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_EDIT",preActionValidation:async e=>(e.systemApplicationId=t?.selectedApplication?.id,!0)},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_DELETE"}})]})},Ea=i=>{const o=t.useSelector((e=>e.commonStores.stores.SystemOrganizations.data)),{t:a}=f.useTranslation(),[r,d]=l.useState([]),n=ke({findAll:"api/v1/dev/lookup/all",deleteById:"api/v1/dev/lookup",save:"api/v1/dev/lookup",findById:"api/v1/dev/lookup",setData:d}),s=[{type:"field",mode:"props",props:{fieldLabel:"Organization",fieldName:"organizationId",options:o,optionDisplayField:"organizationEnName",optionValueField:"id",required:!1,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_TYPE",fieldName:"lookupType",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_AR_DISPLAY",fieldName:"lookupArDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_EN_DISPLAY",fieldName:"lookupEnDisplay",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_LOOKUP_VALUE",fieldName:"lookupValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"LOOKUP_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"System Application",fieldName:"systemApplicationId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}}];return e.jsx(vo,{apiActions:n,data:r,setData:d,hideInfoBar:!0,gridLoadParametersValues:{systemApplicationId:i.selectedApplication.id},editMode:{editMode:"row"},formElements:s,keyColumnName:"id",gridTitle:a("LOOKUP_PLURAL"),girdIcon:"list-check",editAction:{isEnabled:!0,authority:"LOOKUP_EDIT",preActionValidation:e=>(e.systemApplicationId=i.selectedApplication.id,!0)},deleteAction:{isEnabled:!0,authority:"LOOKUP_DELETE"}})},fa=i=>{const o=t.useSelector((e=>e.commonStores.stores.SystemEntityParameters.data)),{t:a}=f.useTranslation(),[r,d]=l.useState([]),n=ke({findAll:"api/v1/dev/dataqueryparameter/all",deleteById:"api/v1/dev/dataqueryparameter",save:"api/v1/dev/dataqueryparameter",findById:"api/v1/dev/dataqueryparameter",setData:d}),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DATA_QUERY_ID",fieldName:"dataQueryId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!0,fieldType:"combobox",options:o,optionValueField:"id",optionDisplayField:"parameterCode"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:n,data:r,setData:d,editMode:{editMode:"row"},hideInfoBar:!0,formElements:s,keyColumnName:"id",gridLoadParametersValues:{dataQueryId:i.selectedRecord.id},gridTitle:a("DATA_QUERY_PARAMETER_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_EDIT",preActionValidation:async e=>(e.dataQueryId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_PARAMETER_DELETE"}})},Ia=i=>{const{t:o}=f.useTranslation(),a=t.useSelector((e=>e.commonStores.stores.SystemEntityParameters.data)),[r,d]=l.useState([]),n=ke({findAll:"api/v1/dev/reportparameter/all",deleteById:"api/v1/dev/reportparameter",save:"api/v1/dev/reportparameter",findById:"api/v1/dev/reportparameter",setData:d}),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENTITY_PARAMETER_ID",fieldName:"entityParameterId",required:!0,fieldType:"combobox",options:a,optionValueField:"id",optionDisplayField:"parameterCode"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_DEFAULT_VALUE",fieldName:"defaultValue",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_HIDDEN",fieldName:"hidden",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_MANDATORY",fieldName:"mandatory",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_PARAMETER_REPORT_ID",fieldName:"reportId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}}];return e.jsx(vo,{apiActions:n,data:r,hideInfoBar:!0,setData:d,gridLoadParametersValues:{reportId:i.selectedRecord.id},editMode:{editMode:"row"},formElements:s,keyColumnName:"id",gridTitle:o("REPORT_PARAMETER_PLURAL"),girdIcon:"p",editAction:{isEnabled:!0,authority:"REPORT_PARAMETER_EDIT",preActionValidation:async e=>(e.reportId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"REPORT_PARAMETER_DELETE"}})},Oa=e=>{if(0===e.length)return[];const t=[];for(const i of Object.keys(e[0])){const e={type:"field",mode:"props",props:{fieldLabel:i,fieldName:i,fieldType:"text"}};t.push(e)}return console.log("formElements",t),t},Na=t=>(console.log("reportdata",t.reportData),e.jsx(vo,{data:t.reportData,disableDefaultAction:!0,setData:t.setReportData,formElements:Oa(t.reportData),gridLoadParameters:t.gridLoadParameters,gridLoadParametersValues:t.gridLoadParametersValues,setGridLoadParametersValues:t.setGridLoadParametersValues,editMode:{editMode:"none"},girdIcon:"file-excel",gridTitle:"Report",autoLoad:!0,hideInfoBar:!0,apiActions:{deleteRecordById:async()=>!0,loadRecordById:async()=>{},reloadData:async()=>{t.reloadReport()},saveRecord:async()=>{}}})),ya=t=>{const[i,o]=l.useState(null),[a,r]=l.useState(null),[n,s]=l.useState([]),[p,c]=l.useState("WAITING_REPORT_CODE"),{handleGetRequest:u,handlePostRequest:T,HandleDownloadHTTPPostPDF:A}=ye(),[_,E]=l.useState(null),[I,O]=l.useState({...t?.reportParametersValues}),[N,y]=l.useState([]),{t:R}=f.useTranslation(),L=e=>{const t=[];for(const i of e){const e={type:"field",mode:"props",props:{fieldLabel:i?.parameterLabel,fieldName:i?.parameterCode,fieldType:i?.parameterType,hidden:i?.hidden,formProps:{fieldSize:{lg:4,md:6,sm:12}},required:i?.mandatory,defaultValue:I[i?.parameterCode]||i?.defaultValue}};t.push(e)}return t},h=async(e,i)=>{c("WAITING_RESULT"),"Excel"===e?.reportType?await T({endPointURI:"api/v1/dev/report/run",showMask:!0,data:{reportCode:t.reportCode,parameters:i,resultMode:t.resultMode,jasperOutPutFileType:t.jasperOutPutFileType},successCallBkFn:e=>{c("SHOWING_RESULT"),s(e.data)}}):e?.reportType&&await A({endPointURI:"api/v1/dev/report/run",showMask:!0,data:{reportCode:t.reportCode,parameters:i,resultMode:t.resultMode,jasperOutPutFileType:t.jasperOutPutFileType},successCallBkFn:e=>{c("SHOWING_RESULT");const t=e.headers["content-disposition"];let i="downloaded_file";if(t&&-1!==t.indexOf("filename=")){const e=t.match(/filename="?([^"]+)"?/);e&&e[1]&&(i=e[1])}if(i.includes("pdf")){const t=new Blob([e.data],{type:"application/pdf"}),i=URL.createObjectURL(t);o(i)}else{const t=new Blob([e.data],{type:e.headers["content-type"]}),o=window.URL.createObjectURL(t),a=document.createElement("a");a.href=o,a.download=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)}console.log(e)},failureCallBkFn:e=>{r("Failed To run report ... contact your administrator"),c("ERROR")}})};return l.useEffect((()=>{t?.reportCode&&(async()=>{c("LOADING_METADATA"),await u({endPointURI:"api/v1/dev/report/metadata",showMask:!0,parameters:{reportCode:t.reportCode},successCallBkFn:e=>{E(e.data),y(L(e.data.reportParameters)),!0===t?.byPassParameterEntry||0==e.data.reportParameters.length?(h(e.data,I),c("WAITING_RESULT")):c("WAITING_PARAMETER_INPUT")},failureCallBkFn:e=>{r("Failed loading report metadata ... contact your administrator"),c("ERROR")}})})()}),[t.reportCode,t.byPassParameterEntry,t.reportParametersValues,t.jasperOutPutFileType,t.resultMode]),e.jsxs(e.Fragment,{children:[e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:[e.jsxs(d.Box,{sx:{flex:1,textAlign:"center",marginBottom:1},children:[e.jsx(m.FontAwesomeIcon,{icon:"Excel"===_?.reportType?"file-excel":"file-pdf",color:"Excel"===_?.reportType?"darkgreen":"darkred",style:{marginRight:10,marginLeft:10}}),_?.reportName]}),"Excel"!=_?.reportType&&"SHOWING_RESULT"===p?e.jsxs(e.Fragment,{children:[!0===t?.byPassParameterEntry?e.jsx(e.Fragment,{}):N.length>0?e.jsx(d.IconButton,{onClick:()=>{y(L(_.reportParameters)),c("WAITING_PARAMETER_INPUT")},children:e.jsx(m.FontAwesomeIcon,{icon:"filter"})}):e.jsx(e.Fragment,{}),e.jsx(d.IconButton,{children:e.jsx(m.FontAwesomeIcon,{icon:"refresh",onClick:()=>{h(_,I)}})})]}):e.jsx(e.Fragment,{})]}),e.jsx(d.Box,{sx:{flexGrow:1,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"},children:"WAITING_PARAMETER_INPUT"===p&&"Excel"!=_?.reportType?e.jsxs(d.Accordion,{defaultExpanded:!0,sx:{width:"100%"},expanded:!0,children:[e.jsx(d.AccordionSummary,{children:e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(m.FontAwesomeIcon,{style:{marginLeft:5,marginRight:5},icon:"search"}),e.jsx(d.Typography,{component:"span",children:"Filters"})]})}),e.jsx(d.AccordionDetails,{children:e.jsx(d.Box,{children:e.jsx(Lo,{saveButtonSpecs:{label:R("SHOW_REPORT_BTN_LABEL"),icon:"search",actionButtonVariant:"outlined",actionButtonColor:"success",hidden:!0},cancelButtonSpecs:{label:R("RESET_BTN_LABEL"),icon:"eraser",actionButtonVariant:"outlined",actionButtonColor:"error"},apiActions:{deleteRecordById:async()=>!0,saveRecord:async e=>{O(null!=e?e:{}),h(_,e)},reloadData:async()=>{},loadRecordById:async()=>{}},elements:N})})})]}):"SHOWING_RESULT"===p||("WAITING_PARAMETER_INPUT"===p||"WAITING_RESULT"===p)&&"Excel"===_?.reportType?"Excel"===_?.reportType?e.jsx(Na,{reportData:n,setReportData:s,reloadReport:async()=>{h(_,I)},gridLoadParameters:N,gridLoadParametersValues:I,setGridLoadParametersValues:O}):e.jsx("iframe",{src:i,width:"100%",height:"100%",title:"PDF Preview",style:{border:"1px solid #ccc",marginTop:"20px"}}):"ERROR"===p?e.jsxs(d.Box,{sx:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:[e.jsx(m.FontAwesomeIcon,{icon:"circle-exclamation",color:"darkred",style:{marginRight:10,marginLeft:10}}),a]}):e.jsx(e.Fragment,{})})]})},Ra={Blueprint:{useSysDatasource:{isMandatory:!1,isVisible:!1},datasourceConId:{isMandatory:!1,isVisible:!1},reportBluePrintId:{isMandatory:!0,isVisible:!0},reportExcelDataQueryId:{isMandatory:!1,isVisible:!1},reportJasperName:{isMandatory:!1,isVisible:!1},reportJasperPath:{isMandatory:!1,isVisible:!1}},Jasper:{useSysDatasource:{isMandatory:!1,isVisible:!0},datasourceConId:{isMandatory:!1,isVisible:!0},reportBluePrintId:{isMandatory:!1,isVisible:!1},reportExcelDataQueryId:{isMandatory:!1,isVisible:!1},reportJasperName:{isMandatory:!0,isVisible:!0},reportJasperPath:{isMandatory:!0,isVisible:!0}},Excel:{useSysDatasource:{isMandatory:!1,isVisible:!1},datasourceConId:{isMandatory:!1,isVisible:!1},reportBluePrintId:{isMandatory:!1,isVisible:!1},reportExcelDataQueryId:{isMandatory:!0,isVisible:!0},reportJasperName:{isMandatory:!1,isVisible:!1},reportJasperPath:{isMandatory:!1,isVisible:!1}}},La=(e,t,i)=>{if(e&&Ra[e]){const o=Ra[e],a=Object.keys(o);for(const e of a){o[e].isVisible?t.showField(e):(t.hideField(e),i.setValue(e,null))}}else t.hideField("useSysDatasource"),t.hideField("datasourceConId"),t.hideField("reportBluePrintId"),t.hideField("reportExcelDataQueryId"),t.hideField("reportJasperName"),t.hideField("reportJasperPath"),i.setValue("useSysDatasource",null),i.setValue("datasourceConId",null),i.setValue("reportBluePrintId",null),i.setValue("reportExcelDataQueryId",null),i.setValue("reportJasperName",null),i.setValue("reportJasperPath",null)},ha=t=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/dev/mailrecipient/all",deleteById:"api/v1/dev/mailrecipient",save:"api/v1/dev/mailrecipient",findById:"api/v1/dev/mailrecipient",setData:a});return e.jsx(vo,{apiActions:r,data:o,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:t.selectedRecord.id},setData:a,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_TYPE",fieldName:"recipientType",required:!0,fieldType:"combobox",options:[{value:"To"},{value:"CC"}],optionDisplayField:"value",optionValueField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_RECIPIENT_MAIL",fieldName:"recipientMail",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_RECIPIENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:i("MAIL_RECIPIENT_PLURAL"),girdIcon:"users",editAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_EDIT",preActionValidation:e=>e?.recipientMail&&!uo(e.recipientMail)?(A.toast.error("You must enter a valid email address"),!1):(e.mailTemplateId=t.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_RECIPIENT_DELETE"}})},Pa=i=>{const{t:o}=f.useTranslation(),[a,r]=l.useState([]),d=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),n=ke({findAll:"api/v1/dev/mailbody/all",deleteById:"api/v1/dev/mailbody",save:"api/v1/dev/mailbody",findById:"api/v1/dev/mailbody",setData:r}),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_NAME",fieldName:"bodyName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_ORDER",fieldName:"bodyOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT",fieldName:"bodyContent",required:!0,fieldType:"html"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",fieldName:"bodyContentDataQueryId",required:!1,fieldType:"combobox",options:d,optionDisplayField:"queryName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_PRINT_FOR_EACH_RECORD",fieldName:"printForEachRecord",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_IS_MAIN",fieldName:"isMain",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_BODY_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}}];return e.jsx(vo,{apiActions:n,data:a,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:i.selectedRecord.id},setData:r,editMode:{editMode:"modal",specs:{modalIcon:{prefix:"fas",iconName:"envelope-open-text"},modalTitle:"Mail Body",modalWidth:"50%"}},formElements:s,keyColumnName:"id",gridTitle:o("MAIL_BODY_PLURAL"),girdIcon:{prefix:"fas",iconName:"envelope-open-text"},editAction:{isEnabled:!0,authority:"MAIL_BODY_EDIT",preActionValidation:async e=>(e.mailTemplateId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_BODY_DELETE"}})},Ma=i=>{const o=t.useSelector((e=>e.commonStores.stores.SystemReports.data)),{t:a}=f.useTranslation(),[r,d]=l.useState([]),n=ke({findAll:"api/v1/dev/mailattachment/all",deleteById:"api/v1/dev/mailattachment",save:"api/v1/dev/mailattachment",findById:"api/v1/dev/mailattachment",setData:d}),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{options:o,optionValueField:"id",optionDisplayField:"reportName",fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportId",required:!0,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}}];return e.jsx(vo,{apiActions:n,data:r,hideInfoBar:!0,gridLoadParametersValues:{mailTemplateId:i.selectedRecord.id},setData:d,editMode:{editMode:"row"},formElements:s,keyColumnName:"id",gridTitle:a("MAIL_ATTACHMENT_PLURAL"),girdIcon:"paperclip",editAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_EDIT",preActionValidation:e=>(e.mailTemplateId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"MAIL_ATTACHMENT_DELETE"}})},Ca={Gmail:{mailHost:{isMandatory:!0,isVisible:!0},mailPort:{isMandatory:!0,isVisible:!0},mailUsername:{isMandatory:!0,isVisible:!0},mailPassword:{isMandatory:!0,isVisible:!0},mailProtocol:{isMandatory:!0,isVisible:!0},isMailSmtpAuthEnabled:{isMandatory:!0,isVisible:!0},isMailStarttlsEnabled:{isMandatory:!0,isVisible:!0},isSmtpSSlEnabled:{isMandatory:!0,isVisible:!0},azureGraphApiClientId:{isMandatory:!1,isVisible:!1},azureGraphApiClientSecret:{isMandatory:!1,isVisible:!1},azureGraphApiTenantId:{isMandatory:!1,isVisible:!1},azureGraphApiScope:{isMandatory:!1,isVisible:!1},azureGraphApiEmailId:{isMandatory:!1,isVisible:!1}},Azure:{mailHost:{isMandatory:!1,isVisible:!1},mailPort:{isMandatory:!1,isVisible:!1},mailUsername:{isMandatory:!1,isVisible:!1},mailPassword:{isMandatory:!1,isVisible:!1},mailProtocol:{isMandatory:!1,isVisible:!1},isMailSmtpAuthEnabled:{isMandatory:!1,isVisible:!1},isMailStarttlsEnabled:{isMandatory:!1,isVisible:!1},isSmtpSSlEnabled:{isMandatory:!1,isVisible:!1},azureGraphApiClientId:{isMandatory:!0,isVisible:!0},azureGraphApiClientSecret:{isMandatory:!0,isVisible:!0},azureGraphApiTenantId:{isMandatory:!0,isVisible:!0},azureGraphApiScope:{isMandatory:!0,isVisible:!0},azureGraphApiEmailId:{isMandatory:!0,isVisible:!0}}},Da=(e,t,i)=>{if(e&&Ca[e]){const o=Ca[e],a=Object.keys(o);for(const e of a){o[e].isVisible?t.showField(e):(t.hideField(e),i.setValue(e,null))}}else t.hideField("mailHost"),i.setValue("mailHost",null),t.hideField("mailPort"),i.setValue("mailPort",null),t.hideField("mailUsername"),i.setValue("mailUsername",null),t.hideField("mailPassword"),i.setValue("mailPassword",null),t.hideField("mailProtocol"),i.setValue("mailProtocol",null),t.hideField("isMailSmtpAuthEnabled"),i.setValue("isMailSmtpAuthEnabled",null),t.hideField("isMailStarttlsEnabled"),i.setValue("isMailStarttlsEnabled",null),t.hideField("isSmtpSSlEnabled"),i.setValue("isSmtpSSlEnabled",null),t.hideField("azureGraphApiClientId"),i.setValue("azureGraphApiClientId",null),t.hideField("azureGraphApiClientSecret"),i.setValue("azureGraphApiClientSecret",null),t.hideField("azureGraphApiTenantId"),i.setValue("azureGraphApiTenantId",null),t.hideField("azureGraphApiScope"),i.setValue("azureGraphApiScope",null),t.hideField("azureGraphApiEmailId"),i.setValue("azureGraphApiEmailId",null)},Sa=i=>{const{t:o}=f.useTranslation(),[a,r]=l.useState([]),d=ke({findAll:"api/v1/dev/workflowdocumentstatus/all",deleteById:"api/v1/dev/workflowdocumentstatus",save:"api/v1/dev/workflowdocumentstatus",findById:"api/v1/dev/workflowdocumentstatus",setData:r}),n=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_CODE",fieldName:"documentStatusCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Status Arabic Name",fieldName:"documentStatusArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Status English Name",fieldName:"documentStatusEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_DOCUMENT_STATUS_ORDER",fieldName:"documentStatusOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_IS_ZERO_STATE",fieldName:"isZeroState",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Next Actions Query (must return array of actions in table named workflow_document_action)",fieldName:"nextActionsQueryId",required:!1,fieldType:"combobox",options:n,optionValueField:"id",optionDisplayField:"queryName",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Next Action Takers Query (must return array of persons in table named person)",fieldName:"nextActionTakersQueryId",required:!1,fieldType:"combobox",options:n,optionValueField:"id",optionDisplayField:"queryName",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Next Action Takers Authority",fieldName:"nextActionTakersAuthority",fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_STATUS_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:d,data:a,setData:r,hideInfoBar:!0,gridLoadParametersValues:{workflowDocumentId:i.selectedRecord.id},editMode:{editMode:"modal",specs:{modalIcon:"tag",modalTitle:"Workflow Document Status",modalWidth:600}},formElements:s,keyColumnName:"id",gridTitle:o("WORKFLOW_DOCUMENT_STATUS_PLURAL"),girdIcon:"tags",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_EDIT",preActionValidation:e=>(e.workflowDocumentId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_STATUS_DELETE"}})},ba=i=>{const{t:o}=f.useTranslation(),[a,r]=l.useState([]),d=ke({findAll:"api/v1/dev/workflowdocumentactionmail/all",deleteById:"api/v1/dev/workflowdocumentactionmail",save:"api/v1/dev/workflowdocumentactionmail",findById:"api/v1/dev/workflowdocumentactionmail",setData:r}),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_DOCUMENT_ACTION_ID",fieldName:"documentActionId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!0,fieldType:"combobox",options:t.useSelector((e=>e.commonStores.stores.SystemMailTemplates.data)),optionDisplayField:"mailTemplateName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_MAIL_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:d,data:a,hideInfoBar:!0,gridLoadParametersValues:{actionId:i.selectedRecord.id},setData:r,editMode:{editMode:"row"},formElements:n,keyColumnName:"id",gridTitle:o("WORKFLOW_DOCUMENT_ACTION_MAIL_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_EDIT",preActionValidation:e=>(e.documentActionId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_MAIL_DELETE"}})},ga=t=>{const[i,o]=l.useState(null),{Window:a,setWindowState:r}=xe({windowTitle:"Action Mail Notification",windowIcon:"envelope",width:"50%"}),{t:d}=f.useTranslation(),{handleGetRequest:n}=ye(),[s,p]=l.useState([]);l.useEffect((()=>{(async()=>{await n({endPointURI:"api/v1/dev/workflowdocumentstatus/all",showMask:!0,parameters:{workflowDocumentId:t.selectedRecord.id},successCallBkFn:e=>{p(e.data)}})})()}),[t.selectedRecord]);const[c,u]=l.useState([]),m=ke({findAll:"api/v1/dev/workflowdocumentaction/all",deleteById:"api/v1/dev/workflowdocumentaction",save:"api/v1/dev/workflowdocumentaction",findById:"api/v1/dev/workflowdocumentaction",setData:u}),T=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_DOCUMENT_ACTION_CODE",fieldName:"documentActionCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Action Arabic Name",fieldName:"documentActionArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Action English Name",fieldName:"documentActionEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_NEXT_DOCUMENT_STATUS_ID",fieldName:"nextDocumentStatusId",required:!0,fieldType:"combobox",options:s,optionDisplayField:"documentStatusCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"Post Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)",fieldName:"postActionEndpoint",required:!1,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Pre Action Endpoint ( system will call it with post method and parameters refDocumentId , workflowActionId)",fieldName:"preActionEndpoint",required:!1,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_REQUIRE_COMMENT",fieldName:"requireComment",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ACTION_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}}];return e.jsxs(e.Fragment,{children:[e.jsx(a,{children:e.jsx(ba,{selectedRecord:i})}),e.jsx(vo,{apiActions:m,data:c,hideInfoBar:!0,gridLoadParametersValues:{workflowDocumentId:t.selectedRecord.id},setData:u,editMode:{editMode:"modal",specs:{modalIcon:"stamp",modalTitle:"Workflow Document Action",modalWidth:700}},rowActions:[{label:"Action Mail Notifications",icon:"envelope",actionFn:async e=>{o(e),r(!0)}}],formElements:T,keyColumnName:"id",gridTitle:d("WORKFLOW_DOCUMENT_ACTION_PLURAL"),girdIcon:"stamp",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_EDIT",preActionValidation:e=>(e.workflowDocumentId=t.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_ACTION_DELETE"}})]})},xa={LineChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!0,isVisible:!0},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!0,isVisible:!0}},ColumnChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!0,isVisible:!0},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!0,isVisible:!0}},PieChart:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},Card:{height:{isMandatory:!0,isVisible:!0},width:{isMandatory:!0,isVisible:!0},horizontalAxisField:{isMandatory:!0,isVisible:!0},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!0,isVisible:!0},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},CircularProgress:{height:{isMandatory:!1,isVisible:!1},width:{isMandatory:!1,isVisible:!1},horizontalAxisField:{isMandatory:!1,isVisible:!1},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!1,isVisible:!1},verticalAxisLabel:{isMandatory:!1,isVisible:!1}},LinearProgress:{height:{isMandatory:!1,isVisible:!1},width:{isMandatory:!1,isVisible:!1},horizontalAxisField:{isMandatory:!1,isVisible:!1},horizontalAxisLabel:{isMandatory:!1,isVisible:!1},seriesKeys:{isMandatory:!1,isVisible:!1},verticalAxisField:{isMandatory:!1,isVisible:!1},verticalAxisLabel:{isMandatory:!1,isVisible:!1}}},Ua=(e,t,i)=>{if(e&&xa[e]){const o=xa[e],a=Object.keys(o);for(const e of a){o[e].isVisible?t.showField(e):(t.hideField(e),i.setValue(e,null))}}else t.hideField("height"),i.setValue("height",null),t.hideField("width"),i.setValue("width",null),t.hideField("horizontalAxisField"),i.setValue("horizontalAxisField",null),t.hideField("horizontalAxisLabel"),i.setValue("horizontalAxisLabel",null),t.hideField("seriesKeys"),i.setValue("seriesKeys",null),t.hideField("verticalAxisField"),i.setValue("verticalAxisField",null),t.hideField("verticalAxisLabel"),i.setValue("verticalAxisLabel",null)},va=i=>{const{t:o}=f.useTranslation(),[a,r]=l.useState([]),d=t.useSelector((e=>e.commonStores.stores.SystemWidgets.data)),n=ke({findAll:"api/v1/dev/dashboardwidget/all",deleteById:"api/v1/dev/dashboardwidget",save:"api/v1/dev/dashboardwidget",findById:"api/v1/dev/dashboardwidget",setData:r}),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_DASHBOARD_ID",fieldName:"dashboardId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ID",fieldName:"widgetId",required:!0,fieldType:"combobox",options:d,optionValueField:"id",optionDisplayField:"widgetName"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_WIDGET_ORDER",fieldName:"widgetOrder",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:n,data:a,setData:r,editMode:{editMode:"row"},hideInfoBar:!0,formElements:s,gridLoadParametersValues:{dashboardId:i.selectedRecord.id},keyColumnName:"id",gridTitle:o("DASHBOARD_WIDGET_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_EDIT",preActionValidation:async e=>(e.dashboardId=i.selectedRecord.id,!0)},deleteAction:{isEnabled:!0,authority:"DASHBOARD_WIDGET_DELETE"}})},Fa=[{path:"/",component:()=>e.jsx(da,{dashboardCode:"XX_TEMPLATE_DASHBOARD"})},...[...[{path:"admin/organizations",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState([]),a=ke({findAll:"api/v1/admin/organization/all",deleteById:"api/v1/admin/organization",save:"api/v1/admin/organization",findById:"api/v1/admin/organization",setData:o}),{Window:r,setWindowState:d}=xe({windowTitle:"Organization Subscriped Application Modules",windowIcon:"layer-group"}),{Window:n,setWindowState:s}=xe({windowTitle:"Organization Unit Types",windowIcon:"tags"}),{Window:p,setWindowState:c}=xe({windowTitle:"Organization Units",windowIcon:"folder-tree"}),{Window:u,setWindowState:m}=xe({windowTitle:"Organization Ranks",windowIcon:"street-view"}),[T,A]=l.useState(null);return e.jsxs(e.Fragment,{children:[e.jsx(r,{children:e.jsx(na,{selectedOrganization:T})}),e.jsx(n,{children:e.jsx(la,{selectedOrganization:T})}),e.jsx(p,{children:e.jsx(sa,{selectedOrganization:T})}),e.jsx(u,{children:e.jsx(pa,{selectedOrganization:T})}),e.jsx(vo,{apiActions:a,data:i,setData:o,editMode:{editMode:"row"},rowActions:[{icon:"layer-group",actionFn:async e=>{A(e),d(!0)},label:"modules"},{icon:"tags",actionFn:async e=>{A(e),s(!0)},label:"Organization Unit Types"},{icon:"folder-tree",actionFn:async e=>{A(e),c(!0)},label:"Organization Units"},{icon:"street-view",actionFn:async e=>{A(e),m(!0)},label:"Organization Ranks"}],formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_CODE",fieldName:"organizationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_AR_NAME",fieldName:"organizationArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_ORGANIZATION_EN_NAME",fieldName:"organizationEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Status",fieldName:"status",fieldType:"lookup",lookupType:"STATUS"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_PLURAL",girdIcon:"globe",editAction:{isEnabled:!0,authority:"ORGANIZATION_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_DELETE"}})]})},authority:"ORGANIZATION_VIEW"},{path:"admin/organizationmembers",component:ua,authority:"ORGANIZATION_MEMBER_VIEW"},{path:"admin/organizationmemberroles",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState([]),a=ke({findAll:"api/v1/admin/organizationmemberrole/all",deleteById:"api/v1/admin/organizationmemberrole",save:"api/v1/admin/organizationmemberrole",findById:"api/v1/admin/organizationmemberrole",setData:o});return e.jsx(vo,{apiActions:a,data:i,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_END_DATE",fieldName:"endDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_ORGANIZATION_MEMBER_ID",fieldName:"organizationMemberId",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_START_DATE",fieldName:"startDate",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"ORGANIZATION_MEMBER_ROLE_SYSTEM_APPLICATION_ROLE_ID",fieldName:"systemApplicationRoleId",required:!0,fieldType:"text"}}],keyColumnName:"id",gridTitle:"ORGANIZATION_MEMBER_ROLE_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_ROLE_EDIT"},deleteAction:{isEnabled:!0,authority:"ORGANIZATION_MEMBER_ROLE_DELETE"}})},authority:"ORGANIZATION_MEMBER_ROLE_VIEW"},{path:"admin/organizationranks",component:pa,authority:"ORGANIZATION_RANK_VIEW"},{path:"admin/organizationunits",component:sa,authority:"ORGANIZATION_UNIT_VIEW"},{path:"admin/organizationunittypes",component:la,authority:"ORGANIZATION_UNIT_TYPE_VIEW"},{path:"admin/persons",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState(null),[a,r]=l.useState([]),d=ke({findAll:"api/v1/admin/person/all",deleteById:"api/v1/admin/person",save:"api/v1/admin/person",findById:"api/v1/admin/person",setData:r}),{Window:n,setWindowState:s}=xe({windowTitle:"Organizations Membership",windowIcon:"globe"});return e.jsxs(e.Fragment,{children:[e.jsx(n,{children:e.jsx(ua,{selectedPerson:i})}),e.jsx(vo,{apiActions:d,data:a,setData:r,editMode:{editMode:"modal",specs:{modalIcon:"user",modalTitle:"Person Profile",modalWidth:300}},formElements:[{type:"field",mode:"props",props:{hidden:!0,fieldLabel:"Ref Source",fieldName:"refSource",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,fieldLabel:"PERSON_EMPLOYEE_NUMBER",fieldName:"refSyncNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMPLOYEE_AR_NAME",fieldName:"employeeArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMPLOYEE_EN_NAME",fieldName:"employeeEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_EMAIL",fieldName:"email",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_MOBILE_NUMBER",fieldName:"mobileNumber",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{hidden:!0,gridProps:{hidden:!0},fieldLabel:"PERSON_PASSWORD",fieldName:"password",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_USERNAME",fieldName:"username",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"PERSON_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"PERSON_PLURAL",rowActions:[{icon:"globe",label:"User Organizations",actionFn:async e=>{o(e),s(!0)}}],girdIcon:"users",editAction:{isEnabled:!0,authority:"PERSON_EDIT",preActionValidation:e=>null==e.refSource||null==e.refSource||""==e.refSource||(A.toast.error("This Person Was synced from other system therefore you can't modify this record"),!1)},deleteAction:{isEnabled:!0,authority:"PERSON_DELETE",preActionValidation:e=>null==e.refSource||null==e.refSource||""==e.refSource||(A.toast.error("This Person Was synced from other system therefore you can't modify this record"),!1)}})]})},authority:"PERSON_VIEW"},{path:"admin/systemapplications",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState([]),a=ke({findAll:"api/v1/admin/systemapplication/all",deleteById:"api/v1/admin/systemapplication",save:"api/v1/admin/systemapplication",findById:"api/v1/admin/systemapplication",setData:o}),{Window:r,setWindowState:d}=xe({windowTitle:"System Application Modules",windowIcon:"layer-group"}),{Window:n,setWindowState:s}=xe({windowTitle:"System Application Authorities",windowIcon:"key"}),{Window:p,setWindowState:c}=xe({windowTitle:"System Application Roles",windowIcon:"tag"}),{Window:u,setWindowState:m}=xe({windowTitle:"System Application Lookups",windowIcon:"list-check"}),[T,A]=l.useState(null);return e.jsxs(e.Fragment,{children:[e.jsx(r,{children:e.jsx(ma,{selectedApplication:T})}),e.jsx(n,{children:e.jsx(Ta,{selectedApplication:T})}),e.jsx(p,{children:e.jsx(_a,{selectedApplication:T})}),e.jsx(u,{children:e.jsx(Ea,{selectedApplication:T})}),e.jsx(vo,{apiActions:a,rowActions:[{icon:"layer-group",actionFn:async e=>{A(e),d(!0)},label:"modules"},{icon:"key",actionFn:async e=>{A(e),s(!0)},label:"Authorities"},{icon:"tag",actionFn:async e=>{A(e),c(!0)},label:"Roles"},{icon:"list-check",actionFn:async e=>{A(e),m(!0)},label:"Lookups"}],data:i,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_CODE",fieldName:"applicationCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_NAME",fieldName:"applicationName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_APPLICATION_DESCRIPTION",fieldName:"applicationDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_PLURAL",girdIcon:"window-restore",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_EDIT"},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_DELETE"}})]})},authority:"SYSTEM_APPLICATION_VIEW"},{path:"admin/systemapplicationauthorities",component:Ta,authority:"SYSTEM_APPLICATION_AUTHORITY_VIEW"},{path:"admin/systemapplicationmodules",component:ma,authority:"SYSTEM_APPLICATION_MODULE_VIEW"},{path:"admin/systemapplicationroles",component:_a,authority:"SYSTEM_APPLICATION_ROLE_VIEW"},{path:"admin/systemapplicationroleauthorities",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState([]),a=ke({findAll:"api/v1/admin/systemapplicationroleauthority/all",deleteById:"api/v1/admin/systemapplicationroleauthority",save:"api/v1/admin/systemapplicationroleauthority",findById:"api/v1/admin/systemapplicationroleauthority",setData:o});return e.jsx(vo,{apiActions:a,data:i,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_IS_ACTIVE",fieldName:"isActive",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_AUTHORITY_ID",fieldName:"systemApplicationAuthorityId",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"SYSTEM_APPLICATION_ROLE_AUTHORITY_SYSTEM_APPLICATION_ROLE_ID",fieldName:"systemApplicationRoleId",required:!0,fieldType:"text"}}],keyColumnName:"id",gridTitle:"SYSTEM_APPLICATION_ROLE_AUTHORITY_PLURAL",girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_EDIT"},deleteAction:{isEnabled:!0,authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_DELETE"}})},authority:"SYSTEM_APPLICATION_ROLE_AUTHORITY_VIEW"}],...[{path:"dev/blueprints",component:()=>{const{t:i}=f.useTranslation(),o=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),[a,r]=l.useState([]),d=ke({commonStoreKey:"SystemBluePrints",deleteById:"api/v1/dev/blueprint",save:"api/v1/dev/blueprint",findById:"api/v1/dev/blueprint",setData:r}),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_BLUE_PRINT_CODE",fieldName:"bluePrintCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"BLUE_PRINT_QUERY_ID",fieldName:"queryId",required:!0,fieldType:"combobox",options:o,optionDisplayField:"queryName",optionValueField:"id"}}];return e.jsx(vo,{apiActions:d,data:a,setData:r,editMode:{editMode:"row",reloadAfterSave:!0},formElements:n,keyColumnName:"id",gridTitle:i("BLUE_PRINT_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"BLUE_PRINT_EDIT"},deleteAction:{isEnabled:!0,authority:"BLUE_PRINT_DELETE"}})},authority:"BLUE_PRINT_VIEW"},{path:"dev/dataqueries",component:()=>{const[i,o]=l.useState(null),{Window:a,setWindowState:r}=xe({width:"50%",windowTitle:"Data query parameters",windowIcon:"p"}),d=t.useSelector((e=>e.commonStores.stores.SystemDataSources.data)),{t:n}=f.useTranslation(),[s,p]=l.useState([]),c=ke({commonStoreKey:"SystemDataQueries",deleteById:"api/v1/dev/dataquery",save:"api/v1/dev/dataquery",findById:"api/v1/dev/dataquery",setData:p}),u=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_NAME",fieldName:"queryName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_USE_SYS_CON",fieldName:"useSysCon",required:!1,fieldType:"checkbox",formProps:{onValueChangeCallBack(e,t,i,o){e?(i.hideField("datasourceConId"),t.setValue("datasourceConId",null)):i.showField("datasourceConId")}}}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_DATASOURCE_CON_ID",fieldName:"datasourceConId",required:!1,options:d,optionDisplayField:"connectionName",optionValueField:"id",fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"DATA_QUERY_QUERY_STR",fieldName:"queryStr",formProps:{fieldHeight:400},gridProps:{hidden:!0},muiTextFieldProps:{multiline:!0,rows:4},required:!1,fieldType:"text"}}];return e.jsxs(e.Fragment,{children:[e.jsx(a,{children:e.jsx(fa,{selectedRecord:i})}),e.jsx(vo,{apiActions:c,rowActions:[{label:"Query Parameters",actionFn:async e=>{o(e),r(!0)},icon:"p"}],data:s,setData:p,editMode:{editMode:"modal",specs:{modalTitle:"System Query",modalWidth:600,modalIcon:"file-code"}},formElements:u,keyColumnName:"id",gridTitle:n("DATA_QUERY_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"DATA_QUERY_EDIT"},deleteAction:{isEnabled:!0,authority:"DATA_QUERY_DELETE"}})]})},authority:"DATA_QUERY_VIEW"},{path:"dev/datasourceconnections",component:()=>{const{handleGetRequest:i}=ye(),o=t.useSelector((e=>e.commonStores.stores.SystemDataSourceType.data)),{t:a}=f.useTranslation(),[r,d]=l.useState([]),n=ke({deleteById:"api/v1/dev/datasourceconnection",save:"api/v1/dev/datasourceconnection",findById:"api/v1/dev/datasourceconnection",setData:d,commonStoreKey:"SystemDataSources"}),s=[{type:"field",mode:"props",props:{fieldLabel:"ID",fieldName:"id",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_CONNECTION_NAME",fieldName:"connectionName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_TYPE",fieldName:"datasourceType",required:!0,fieldType:"combobox",options:o,optionValueField:"value",optionDisplayField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_URL",fieldName:"datasourceUrl",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_USERNAME",fieldName:"datasourceUsername",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",fieldName:"datasourcePassword",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DATASOURCE_CONNECTION_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:n,data:r,setData:d,editMode:{editMode:"modal",specs:{modalTitle:"Datasource Connection",modalIcon:"plug",modalWidth:300}},formElements:s,keyColumnName:"id",gridTitle:a("DATASOURCE_CONNECTION_PLURAL"),girdIcon:"plug",rowActions:[{icon:"plug",label:"test connection",actionFn:async e=>{await i({endPointURI:"api/v1/dev/datasourceConnection/test",showMask:!0,parameters:{id:e.id},successCallBkFn:e=>{A.toast.success(e.data)}})}}],editAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_EDIT"},deleteAction:{isEnabled:!0,authority:"DATASOURCE_CONNECTION_DELETE"}})},authority:"DATASOURCE_CONNECTION_VIEW"},{path:"dev/entityparameters",component:()=>{const{t:i}=f.useTranslation(),o=t.useSelector((e=>e.commonStores.stores.SystemParameterTypes.data)),[a,r]=l.useState([]),d=ke({commonStoreKey:"SystemEntityParameters",deleteById:"api/v1/dev/entityparameter",save:"api/v1/dev/entityparameter",findById:"api/v1/dev/entityparameter",setData:r}),n=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_CODE",fieldName:"parameterCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_LABEL",fieldName:"parameterLabel",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_TYPE",fieldName:"parameterType",required:!0,fieldType:"combobox",options:o,optionDisplayField:"value",optionValueField:"value",formProps:{onValueChangeCallBack(e,t,i,o){"combobox"===e?(t.setValue("parameterValueFormat",null),i.showField("parameterDataQueryId"),i.showField("parameterDataset"),i.showField("parameterDisplayField"),i.showField("parameterValueField"),i.hideField("parameterValueFormat")):"date"===e||"datetime"===e?("date"===e?t.setValue("parameterValueFormat",Je):"datetime"===e&&t.setValue("parameterValueFormat",et),i.hideField("parameterDataQueryId"),i.hideField("parameterDataset"),i.hideField("parameterDisplayField"),i.hideField("parameterValueField"),i.showField("parameterValueFormat")):(t.setValue("parameterValueFormat",null),i.hideField("parameterDataQueryId"),i.hideField("parameterDataset"),i.hideField("parameterDisplayField"),i.hideField("parameterValueField"),i.hideField("parameterValueFormat"))}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",fieldName:"parameterDataQueryId",hidden:!0,required:!1,fieldType:"text",formProps:{onValueChangeCallBack(e,t,i,o){null!=e&&""!=e?(t.setValue("parameterDataset",null),i.hideField("parameterDataset")):i.showField("parameterDataset")}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DATASET",fieldName:"parameterDataset",hidden:!0,required:!1,fieldType:"text",formProps:{onValueChangeCallBack(e,t,i,o){null!=e&&""!=e?(t.setValue("parameterDataQueryId",null),i.hideField("parameterDataQueryId")):i.showField("parameterDataQueryId")}}}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",fieldName:"parameterDisplayField",hidden:!0,required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",fieldName:"parameterValueField",hidden:!0,required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",fieldName:"parameterValueFormat",required:!1,hidden:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"ENTITY_PARAMETER_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:d,data:a,setData:r,editMode:{editMode:"modal",specs:{modalTitle:"Entity Parameter",modalIcon:"p",modalWidth:300}},formElements:n,keyColumnName:"id",gridTitle:i("ENTITY_PARAMETER_PLURAL"),girdIcon:"p",editAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_EDIT"},deleteAction:{isEnabled:!0,authority:"ENTITY_PARAMETER_DELETE"}})},authority:"ENTITY_PARAMETER_VIEW"},{path:"dev/lookups",component:Ea,authority:"LOOKUP_VIEW"},{path:"dev/reports",component:()=>{const{t:i}=f.useTranslation(),[o,a]=l.useState(null),{Window:r,setWindowState:d}=xe({windowTitle:"Report View",windowIcon:"eye",width:"80%"}),{Window:n,setWindowState:s}=xe({windowTitle:"Report Parameters",windowIcon:"p",width:"80%"}),[p,c]=l.useState([]),u=t.useSelector((e=>e.commonStores.stores.SystemDataSources.data)),m=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),T=t.useSelector((e=>e.commonStores.stores.SystemBluePrints.data)),_=ke({findAll:"api/v1/dev/report/all",deleteById:"api/v1/dev/report",save:"api/v1/dev/report",findById:"api/v1/dev/report",setData:c}),E=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_TYPE",fieldName:"reportType",options:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}],optionDisplayField:"value",optionValueField:"value",required:!0,fieldType:"combobox",formProps:{onValueChangeCallBack(e,t,i,o){La(e,i,t)}}}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CODE",fieldName:"reportCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_NAME",fieldName:"reportName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_CATEGORY",fieldName:"reportCategory",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Authority Code",fieldName:"reportAuthorityCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXPORT_NAME",fieldName:"reportExportName",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_USE_SYS_DATASOURCE",fieldName:"useSysDatasource",hidden:!0,gridProps:{hidden:!0},formProps:{onValueChangeCallBack(e,t,i,o){e?(i.hideField("datasourceConId"),t.setValue("datasourceConId",null)):i.showField("datasourceConId")}},required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_DATASOURCE_CON_ID",fieldName:"datasourceConId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:u,optionValueField:"id",optionDisplayField:"connectionName"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_BLUE_PRINT_ID",fieldName:"reportBluePrintId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:T,optionDisplayField:"bluePrintCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_EXCEL_DATA_QUERY_ID",fieldName:"reportExcelDataQueryId",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"combobox",options:m,optionValueField:"id",optionDisplayField:"queryName"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_NAME",fieldName:"reportJasperName",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"REPORT_REPORT_JASPER_PATH",fieldName:"reportJasperPath",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Active",fieldName:"isActive",fieldType:"checkbox"}}];return e.jsxs(e.Fragment,{children:[e.jsx(r,{children:e.jsx(ya,{reportCode:o?.reportCode,resultMode:"App"})}),e.jsx(n,{children:e.jsx(Ia,{selectedRecord:o})}),e.jsx(vo,{apiActions:_,data:p,setData:c,editMode:{editMode:"modal",specs:{modalTitle:"Report",modalIcon:"file",modalWidth:300}},rowActions:[{icon:"p",label:"Report Parameters",isActionVisibleForRecord:e=>"Jasper"===e.reportType,actionFn:async(e,t)=>{a(e),s(!0)}},{icon:"eye",label:"View Report",actionFn:async(e,t)=>{a(e),d(!0)}}],formLoadCallBk:(e,t,i)=>{La(i.reportType,e,t),!0===i?.useSysDatasource&&e.hideField("datasourceConId")},formElements:E,keyColumnName:"id",gridTitle:i("REPORT_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"REPORT_EDIT",preActionValidation:e=>"Jasper"!==e?.reportType||!1!==e?.useSysDatasource||e?.datasourceConId?"Jasper"!==e?.reportType||e?.reportJasperName?"Jasper"!==e?.reportType||e?.reportJasperPath?"Blueprint"!==e?.reportType||e?.reportBluePrintId?!("Excel"===e?.reportType&&!e?.reportExcelDataQueryId)||(A.toast.error("You must choose the report query"),!1):(A.toast.error("You must choose the report blueprint"),!1):(A.toast.error("You must enter the jasper report path"),!1):(A.toast.error("You must enter the jasper report name"),!1):(A.toast.error("You must choose the datasource"),!1)},deleteAction:{isEnabled:!0,authority:"REPORT_DELETE"}})]})},authority:"REPORT_VIEW"},{path:"dev/mailtemplates",component:()=>{const i=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),[o,a]=l.useState(null),{Window:r,setWindowState:d}=xe({windowTitle:"Mail Receipents",windowIcon:"users"}),{Window:n,setWindowState:s}=xe({windowTitle:"Mail Bodies",windowIcon:{prefix:"fas",iconName:"envelope-open-text"}}),{Window:p,setWindowState:c}=xe({windowTitle:"Mail Attachment",windowIcon:"paperclip",width:500}),{t:u}=f.useTranslation(),[m,T]=l.useState([]),_=ke({commonStoreKey:"SystemMailTemplates",deleteById:"api/v1/dev/mailtemplate",save:"api/v1/dev/mailtemplate",findById:"api/v1/dev/mailtemplate",setData:T}),E=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",fieldName:"mailTemplateCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",fieldName:"mailTemplateName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"group",props:{label:"subject",icon:"users",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_MAIL_SUBJECT",fieldName:"mailSubject",required:!0,fieldType:"text",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",fieldName:"subjectDataQueryId",required:!1,fieldType:"combobox",options:i,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}}]}},{type:"group",props:{label:"Recipients",icon:"users",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"To Recipient Query (must return list of objects with property email)",fieldName:"mailToDataQueryId",required:!1,fieldType:"combobox",options:i,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"CC Recipient Query (must return list of objects with property email)",fieldName:"mailCcDataQueryId",required:!1,fieldType:"combobox",options:i,optionDisplayField:"queryName",optionValueField:"id",gridProps:{hidden:!0}}}]}},{type:"group",props:{label:"Periodical Configuration",icon:"history",style:{padding:1,border:"0.5px dashed black",margin:1},elements:[{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIODICAL",fieldName:"periodical",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_TYPE",fieldName:"periodType",options:[{value:"Year"},{value:"Month"},{value:"Day"},{value:"Hour"},{value:"Minute"},{value:"Second"}],optionDisplayField:"value",optionValueField:"value",required:!1,fieldType:"combobox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_PERIOD_VALUE",fieldName:"periodValue",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_TEMPLATE_START_SENDING_AT",fieldName:"startSendingAt",required:!1,fieldType:"datetime"}}]}}];return e.jsxs(e.Fragment,{children:[e.jsx(r,{children:e.jsx(ha,{selectedRecord:o,callBkFn:()=>{d(!1)}})}),e.jsx(n,{children:e.jsx(Pa,{selectedRecord:o,callBkFn:()=>{d(!1)}})}),e.jsx(p,{children:e.jsx(Ma,{selectedRecord:o,callBkFn:()=>{c(!1)}})}),e.jsx(vo,{apiActions:_,data:m,setData:T,editMode:{editMode:"modal",specs:{modalWidth:300,modalTitle:"Mail Template",modalIcon:"envelope"}},formElements:E,keyColumnName:"id",gridTitle:u("MAIL_TEMPLATE_PLURAL"),girdIcon:"envelope",rowActions:[{icon:"users",label:"Recipients",actionFn:async e=>{a(e),d(!0)}},{icon:{prefix:"fas",iconName:"envelope-open-text"},label:"Mail Body",actionFn:async e=>{a(e),s(!0)}},{icon:"paperclip",label:"Mail Attachments",actionFn:async e=>{a(e),c(!0)}}],editAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_EDIT",preActionValidation:e=>!0!==e?.periodical||e?.periodType?!0!==e?.periodical||e?.periodValue?!(!0===e?.periodical&&!e?.startSendingAt)||(A.toast.error("You must specifiy the start sending time since this email is periodical"),!1):(A.toast.error("You must specifiy the period value since this email is periodical"),!1):(A.toast.error("You must specifiy the period type since this email is periodical"),!1)},deleteAction:{isEnabled:!0,authority:"MAIL_TEMPLATE_DELETE"}})]})},authority:"MAILTEMPLATE_VIEW"},{path:"dev/mailsender/config",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState([]),a=ke({findAll:"api/v1/dev/mailsenderconfig/all",deleteById:"api/v1/dev/mailsenderconfig",save:"api/v1/dev/mailsenderconfig",findById:"api/v1/dev/mailsenderconfig",setData:o}),r=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Name",fieldName:"configName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Engine",fieldName:"mailEngine",required:!0,fieldType:"combobox",options:[{value:"Gmail"},{value:"Azure"}],optionDisplayField:"value",optionValueField:"value",formProps:{onValueChangeCallBack(e,t,i,o){Da(e,i,t)}}}},{type:"field",mode:"props",props:{fieldLabel:"Hostname",fieldName:"mailHost",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"port",fieldName:"mailPort",required:!1,fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"username",fieldName:"mailUsername",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"password",fieldName:"mailPassword",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Approval Receive Email",fieldName:"workFlowApprovalReceiveEmail",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Protocol",fieldName:"mailProtocol",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable Smtp Auth",fieldName:"isMailSmtpAuthEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable Start TLS",fieldName:"isMailStarttlsEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Enable SSL",fieldName:"isSmtpSSlEnabled",required:!1,fieldType:"checkbox",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Client Id",fieldName:"azureGraphApiClientId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Secret",fieldName:"azureGraphApiClientSecret",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Tenant Id",fieldName:"azureGraphApiTenantId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Scope",fieldName:"azureGraphApiScope",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Azure Graph API Email Id",fieldName:"azureGraphApiEmailId",required:!1,fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"Default",fieldName:"isDefault",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"Active",fieldName:"isActive",required:!1,fieldType:"checkbox"}}];return e.jsx(vo,{apiActions:a,data:i,setData:o,editMode:{editMode:"modal",specs:{modalIcon:{iconName:"paper-plane",prefix:"fas"},modalTitle:"Mail Sender Configuration",modalWidth:300}},formElements:r,keyColumnName:"id",gridTitle:t("Mail Sender Configuration"),girdIcon:{iconName:"paper-plane",prefix:"fas"},editAction:{isEnabled:!0,authority:"MAIL_SENDER_CONFIG_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_SENDER_CONFIG_DELETE"},formLoadCallBk:(e,t,i)=>{Da(i.mailEngine,e,t)}})},authority:"MAILTEMPLATE_VIEW"},{path:"dev/workflowdocuments",component:()=>{const[i,o]=l.useState(null),{Window:a,setWindowState:r}=xe({windowTitle:"Document Status",windowIcon:"tag"}),{Window:d,setWindowState:n}=xe({windowTitle:"Document Action",windowIcon:"stamp"}),s=t.useSelector((e=>e.commonStores.stores.SystemOrganizations.data)),p=t.useSelector((e=>e.commonStores.stores.SystemReports.data)),c=t.useSelector((e=>e.commonStores.stores.SystemDataSources.data)),{t:u}=f.useTranslation(),[m,T]=l.useState([]),A=ke({findAll:"api/v1/dev/workflowdocument/all",deleteById:"api/v1/dev/workflowdocument",save:"api/v1/dev/workflowdocument",findById:"api/v1/dev/workflowdocument",setData:T}),_=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_ORG_CODE",fieldName:"orgCode",required:!1,fieldType:"combobox",options:s,optionDisplayField:"organizationCode",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CODE",fieldName:"documentCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Document En Display Name",fieldName:"documentEnName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Workflow Document Ar Display Name",fieldName:"documentArName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"Report To be Attached For The Document ( will be passed a parameter called doc_id)",fieldName:"documentReportId",required:!1,fieldType:"combobox",options:p,optionDisplayField:"reportName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_APPROVAL_ALLOWED",fieldName:"mailApprovalAllowed",required:!1,fieldType:"checkbox"}},{type:"group",props:{icon:"bell",style:{border:"1px dashed black",padding:1,marginBottom:1},label:"App Visual Notifications",elements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_ICON",fieldName:"appNotificationIcon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_NOTIFICATION_STYLE",fieldName:"appNotificationStyle",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_APP_VIEW_ROUTE",fieldName:"appViewRoute",required:!1,fieldType:"text"}}]}},{type:"group",props:{icon:"database",style:{border:"1px dashed black",padding:1,marginBottom:1},label:"Related Document Database",elements:[{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_USE_SYSTEM_CON",fieldName:"useSystemCon",required:!1,fieldType:"checkbox",formProps:{onValueChangeCallBack(e,t,i,o){e?(i.hideField("documentConId"),t.setValue("documentConId",null)):i.showField("documentConId")}}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_CON_ID",fieldName:"documentConId",required:!1,fieldType:"combobox",options:c,optionDisplayField:"connectionName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_NAME",fieldName:"documentDatabaseName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_DATABASE_TABLE",fieldName:"documentDatabaseTable",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_ID_FIELD",fieldName:"documentIdField",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_STATUS_FIELD",fieldName:"documentStatusField",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_DOCUMENT_NUMBER_FIELD",fieldName:"documentNumberField",required:!0,fieldType:"text"}}]}}];return e.jsxs(e.Fragment,{children:[e.jsx(a,{children:e.jsx(Sa,{selectedRecord:i})}),e.jsx(d,{children:e.jsx(ga,{selectedRecord:i})}),e.jsx(vo,{apiActions:A,formLoadCallBk:(e,t,i)=>{!0===i.useSystemCon?e.hideField("documentConId"):e.showField("documentConId")},data:m,setData:T,rowActions:[{icon:"tag",label:"Document States",actionFn:async e=>{o(e),r(!0)}},{icon:"stamp",label:"Document Actions",actionFn:async e=>{o(e),n(!0)}}],editMode:{editMode:"modal",specs:{modalIcon:"chart-diagram",modalTitle:u("WORKFLOW_DOCUMENT_SINGULAR")}},formElements:_,keyColumnName:"id",gridTitle:u("WORKFLOW_DOCUMENT_PLURAL"),girdIcon:"chart-diagram",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_DELETE"}})]})},authority:"WORKFLOW_DOCUMENT_VIEW"},{path:"dev/widgets",component:()=>{const{t:i}=f.useTranslation(),o=t.useSelector((e=>e.commonStores.stores.SystemDataQueries.data)),a=t.useSelector((e=>e.commonStores.stores.SystemWidgetTypes.data)),[r,d]=l.useState([]),n=ke({commonStoreKey:"SystemWidgets",deleteById:"api/v1/dev/widget",save:"api/v1/dev/widget",findById:"api/v1/dev/widget",setData:d}),s=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_TYPE",fieldName:"widgetType",required:!0,fieldType:"combobox",options:a,optionDisplayField:"name",optionValueField:"name",formProps:{onValueChangeCallBack(e,t,i,o){Ua(e,i,t)}}}},{type:"field",mode:"props",props:{fieldLabel:"Query",fieldName:"dataQueryId",required:!0,fieldType:"combobox",options:o,optionDisplayField:"queryName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_NAME",fieldName:"widgetName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ICON",fieldName:"icon",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_TITLE",fieldName:"title",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDGET_DESCRIPTION",fieldName:"widgetDescription",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HEIGHT",fieldName:"height",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_WIDTH",fieldName:"width",required:!1,fieldType:"combobox",options:[{value:1},{value:2},{value:3},{value:4},{value:5},{value:6},{value:7},{value:8},{value:9},{value:10},{value:11},{value:12}],optionDisplayField:"value",optionValueField:"value"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}},{type:"group",props:{style:{padding:1,border:"1px solid black",width:"100%"},label:"Data Specs",elements:[{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_FIELD",fieldName:"horizontalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_HORIZONTAL_AXIS_LABEL",fieldName:"horizontalAxisLabel",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_SERIES_KEYS",fieldName:"seriesKeys",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_FIELD",fieldName:"verticalAxisField",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WIDGET_VERTICAL_AXIS_LABEL",fieldName:"verticalAxisLabel",required:!1,fieldType:"text"}}]}}];return e.jsx(vo,{apiActions:n,data:r,setData:d,editMode:{editMode:"modal",specs:{modalIcon:"chart-pie",modalTitle:"Widget"}},formElements:s,keyColumnName:"id",gridTitle:i("WIDGET_PLURAL"),girdIcon:"chart-pie",editAction:{isEnabled:!0,authority:"WIDGET_EDIT"},deleteAction:{isEnabled:!0,authority:"WIDGET_DELETE"},formLoadCallBk:(e,t,i)=>{Ua(i.widgetType,e,t)}})},authority:"WIDGET_VIEW"},{path:"dev/dashboards",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState(null),{Window:a,setWindowState:r}=xe({windowTitle:"Dashboard Widgets",windowIcon:"chart-pie"}),[d,n]=l.useState([]),s=B.useNavigate(),p=ke({findAll:"api/v1/dev/dashboard/all",deleteById:"api/v1/dev/dashboard",save:"api/v1/dev/dashboard",findById:"api/v1/dev/dashboard",setData:n});return e.jsxs(e.Fragment,{children:[e.jsx(a,{children:e.jsx(va,{selectedRecord:i})}),e.jsx(vo,{apiActions:p,data:d,setData:n,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_CODE",fieldName:"dashboardCode",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_NAME",fieldName:"dashboardName",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_DASHBOARD_TITLE",fieldName:"dashboardTitle",required:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"DASHBOARD_ENABLED",fieldName:"enabled",required:!1,fieldType:"checkbox"}}],keyColumnName:"id",rowActions:[{label:"Widgets",icon:"chart-pie",actionFn:async e=>{o(e),r(!0)}},{label:"View",icon:"eye",actionFn:async e=>{s("/dashboard/"+e.dashboardCode)}}],gridTitle:t("DASHBOARD_PLURAL"),girdIcon:"square-poll-vertical",editAction:{isEnabled:!0,authority:"DASHBOARD_EDIT"},deleteAction:{isEnabled:!0,authority:"DASHBOARD_DELETE"}})]})},authority:"DASHBOARD_VIEW"},{path:"dashboard/:dashboardCode",component:()=>{const{dashboardCode:t}=B.useParams();return e.jsx(da,{dashboardCode:t})}},{path:"dev/workflowdocumentmaillogs",component:()=>{const{t:t}=f.useTranslation(),[i,o]=l.useState([]),a=ke({findAll:"api/v1/dev/workflowdocumentmaillog/all",deleteById:"api/v1/dev/workflowdocumentmaillog",save:"api/v1/dev/workflowdocumentmaillog",findById:"api/v1/dev/workflowdocumentmaillog",setData:o});return e.jsx(vo,{apiActions:a,data:i,setData:o,editMode:{editMode:"row"},formElements:[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_GRAPH_API_MSG_ID",fieldName:"graphApiMsgId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_IS_PROCESSED",fieldName:"isProcessed",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_ACTION_CODE",fieldName:"mailActionCode",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_BODY_CONTENT",fieldName:"mailBodyContent",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_FROM",fieldName:"mailFrom",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_SUBJECT",fieldName:"mailSubject",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_MESSAGE",fieldName:"processMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_PROCESS_TIME",fieldName:"processTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_REF_DOC_ID",fieldName:"refDocId",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_WORKFLOW_DOCUMENT_ID",fieldName:"workflowDocumentId",required:!1,fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"WORKFLOW_DOCUMENT_MAIL_LOG_MAIL_RECEIVE_TIME",fieldName:"mailReceiveTime",required:!1,fieldType:"datetime"}}],keyColumnName:"id",gridTitle:t("WORKFLOW_DOCUMENT_MAIL_LOG_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_EDIT"},deleteAction:{isEnabled:!0,authority:"WORKFLOW_DOCUMENT_MAIL_LOG_DELETE"}})}},{path:"dev/mailnotificationqueues",component:()=>{const{t:i}=f.useTranslation(),[o,a]=l.useState([]),r=ke({findAll:"api/v1/dev/mailnotificationqueue/all",deleteById:"api/v1/dev/mailnotificationqueue",save:"api/v1/dev/mailnotificationqueue",findById:"api/v1/dev/mailnotificationqueue",setData:a}),d=[{type:"field",mode:"props",props:{fieldLabel:"id",fieldName:"id",fieldType:"number",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createTime",fieldName:"createTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"createdBy",fieldName:"createdBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateBy",fieldName:"lastUpdateBy",fieldType:"text",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"lastUpdateTime",fieldName:"lastUpdateTime",fieldType:"datetime",hidden:!0,gridProps:{hidden:!0}}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",fieldName:"mailTemplateId",required:!1,fieldType:"combobox",options:t.useSelector((e=>e.commonStores.stores.SystemMailTemplates.data)),optionDisplayField:"mailTemplateName",optionValueField:"id"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",fieldName:"customMailAttachedReportId",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"number"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",fieldName:"customMailBody",required:!1,hidden:!0,gridProps:{hidden:!0},fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",fieldName:"customMailSubject",required:!1,hidden:!0,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",fieldName:"customRecipients",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_IS_NOTIFIED",fieldName:"isNotified",required:!1,fieldType:"checkbox"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",fieldName:"notificationTime",required:!1,fieldType:"datetime"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",fieldName:"notificationMessage",required:!1,fieldType:"text"}},{type:"field",mode:"props",props:{fieldLabel:"MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",fieldName:"mailParameters",hidden:!0,gridProps:{hidden:!0},required:!1,fieldType:"text"}}];return e.jsx(vo,{apiActions:r,disableDefaultAction:!0,data:o,setData:a,editMode:{editMode:"none"},formElements:d,keyColumnName:"id",gridTitle:i("MAIL_NOTIFICATION_QUEUE_PLURAL"),girdIcon:"table-cells",editAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_EDIT"},deleteAction:{isEnabled:!0,authority:"MAIL_NOTIFICATION_QUEUE_DELETE"}})}}]]],wa=t=>{const{isUserAuthorized:i}=ge();return t?.authority&&!i(t.authority)?e.jsx(d.Box,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"red"},children:e.jsxs("h2",{children:[e.jsx(m.FontAwesomeIcon,{style:{marginRight:10,marginLeft:10},icon:"cancel"}),"You aren't authorized to access this page"]})}):e.jsx(e.Fragment,{children:t.children})},Ba=()=>{const i=t.useSelector((e=>e.AppLayout)),o=t.useSelector((e=>e.AppInfo.value)),a=t.useSelector((e=>e.AppInfo.value.businessRoutes)),r=t.useDispatch(),{show:s,hide:p}=Ne(),c=t.useSelector((e=>e.commonStores)),[u,m]=l.useState(!1),{isUserAuthorized:T}=ge(),{handleGetRequest:A}=ye();return l.useEffect((()=>{c?.storeKeys&&(async()=>{s("Loading ... please wait");const e=c.stores,t=c.storeKeys;for(let i of t)void 0!==e[i]?.authority&&null!==e[i]?.authority&&!T(e[i]?.authority)||""==e[i]?.url||!0!==e[i].autoLoad||await A({endPointURI:e[i].url,showMask:!1,successCallBkFn:e=>{r(ve({storeKey:i,data:e.data}))},failureCallBkFn:()=>{r(ve({storeKey:i,data:[]}))}});p()})()}),[c.storeKeys]),e.jsx(n.CacheProvider,{value:"ltr"===i.appDirection?aa:oa,children:e.jsx(d.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",flex:1,overflow:"hidden",padding:3},children:e.jsxs(B.Routes,{children:[o.enableAdministrationModule?Fa.map(((t,i)=>e.jsx(B.Route,{path:t.path,element:e.jsx(wa,{authority:t.authority,children:e.jsx(t.component,{})})},"adm"+i))):null,a.map(((t,i)=>e.jsx(B.Route,{path:t.path,element:e.jsx(wa,{authority:t.authority,children:e.jsx(t.component,{})})},"bs"+i)))]})})})},ka=s.styled("div")((({theme:e})=>({width:30,height:6,margin:10,backgroundColor:re.grey[300],borderRadius:3,top:8,...e.applyStyles("dark",{backgroundColor:re.grey[900]})})));function Wa(i){const{window:o}=i,a=t.useSelector((e=>e.SideBar)),r=t.useSelector((e=>e.AppInfo.value)),n=t.useDispatch(),l=e=>{n(ko(e))},s=void 0!==o?()=>o().document.body:void 0;return e.jsx(de,{container:s,anchor:"bottom",open:a.isOpened,onClose:()=>{l(!1)},onOpen:()=>{l(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},children:e.jsxs(d.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",overflow:"hidden"},children:[e.jsx(ka,{}),e.jsx(d.Box,{sx:{flexGrow:1,display:"flex",justifyContent:"center",width:"99%",overflowY:"auto"},children:e.jsx(ta,{})}),e.jsxs(d.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-around",marginTop:1,width:"100%"},children:[e.jsx(d.Typography,{sx:{fontSize:12},color:"textDisabled",children:r.appName}),e.jsxs(d.Typography,{sx:{fontSize:12},color:"textDisabled",children:["V.",r.appVersion]})]})]})})}const Ga=()=>{const{t:i}=f.useTranslation(),o=t.useSelector((e=>e.loadingMask.value)),a=t.useSelector((e=>e.AppLayout));return e.jsxs(d.Backdrop,{dir:a.appDirection,sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:o.isOpened,children:[e.jsx(d.CircularProgress,{color:"inherit"}),e.jsx("div",{style:{marginRight:10,marginLeft:10},children:o?.message||i("DEFAULT_LOADING_MESSAGE")})]})},ja=()=>{const i=t.useSelector((e=>e.AppInfo.value)),[o,a]=l.useState(""),[r,s]=l.useState(""),[p,c]=l.useState(!1),u=t.useSelector((e=>e.UserSession.value)),m=t.useDispatch(),T=async()=>{if(null==o||""==o)return void A.toast.error("username is required to proceed");if(null==r||""==r)return void A.toast.error("password is required to proceed");c(!0);let e=null;try{if(e=await _.post(`${i.apiBaseUrl}/api/auth/login`,{username:o,password:r},{withCredentials:!0}),null!=e.data&&""!==e.data){c(!1);const t={...e.data,isAuthenticated:!0};m(Le.setAuthenticated(t))}}catch(e){c(!1),A.toast.error(e?.response?.data||"failed to authenticate, contact your administrator")}},E=t.useSelector((e=>e.UserSession.value)),f=d.createTheme({components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${i.appTheme?.dark?.primaryColor||ot} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:i.appTheme?.dark?.primaryColor||ot},secondary:{main:i.appTheme?.dark?.secondaryColor||at}}});return l.useEffect((()=>{(async()=>{if(i?.apiBaseUrl&&null==E.isAuthenticated)try{let e=await _.get(`${i.apiBaseUrl}/api/auth/userInfo`,{withCredentials:!0});if(null!=e&&null!=e.data){const t={...e.data,isAuthenticated:!0};m(Le.setAuthenticated(t))}else m(Le.setUnAuthenticated())}catch(e){m(Le.setUnAuthenticated())}})()}),[i]),e.jsx(n.ThemeProvider,{theme:f,children:e.jsx(d.Paper,{sx:{display:"flex",height:"100vh",width:"100%",borderRadius:0,alignItems:"center",justifyContent:"center"},children:0==u.isAuthenticated?e.jsxs(d.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e.jsx("img",{src:i?.appLogo,width:150,height:150}),e.jsx(d.Typography,{sx:{m:1},variant:"h4",color:"textSecondary",children:i?.appName}),e.jsxs(d.Typography,{sx:{paddingRight:1,width:"100%",textAlign:"right",fontSize:10},variant:"caption",color:"textSecondary",children:["V.",i.appVersion]}),e.jsx(d.TextField,{label:"username",sx:{width:300,m:1},value:o,onChange:e=>{a(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&T()}}),e.jsx(d.TextField,{label:"password",sx:{width:300,m:1},value:r,type:"password",onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&T()}}),e.jsx(d.Button,{loading:p,onClick:T,variant:"contained",color:"primary",sx:{m:1},children:"login"})]}):e.jsxs(e.Fragment,{children:[e.jsx(d.CircularProgress,{sx:{marginRight:1}}),e.jsx("div",{children:"You will be redirected shortly ... please wait"})]})})})},Va=s.styled("main",{shouldForwardProp:e=>"open"!==e})((({theme:e,open:i})=>{const o=t.useSelector((e=>e.AppLayout)),a=s.useTheme(),r=ce();return{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1,width:!r&&i?"calc(100% - 350px)":"100%",direction:o.appDirection,justifyContent:"flex-start",transition:!0===i?a.transitions.create(["margin","width"],{easing:a.transitions.easing.easeOut,duration:a.transitions.duration.enteringScreen}):a.transitions.create(["margin","width"],{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),marginLeft:r||"ltr"!==o.appDirection||!0!==i?0:ue+"px",marginRight:r||"rtl"!==o.appDirection||!0!==i?0:ue+"px"}}));function Ya(){const i=t.useSelector((e=>e.SideBar)),o=ce(),a=t.useSelector((e=>e.UserSession));return e.jsxs(B.BrowserRouter,{children:[e.jsx(A.ToastContainer,{draggable:!0,position:"bottom-center"}),e.jsx(Ga,{}),!0===a.value.isAuthenticated?e.jsxs(Va,{open:i.isOpened,children:[e.jsx(p,{}),e.jsx(jo,{}),o?null:e.jsx(ia,{}),o?e.jsx(Wa,{}):null,e.jsx(Vo,{}),e.jsx(Ba,{})]}):e.jsx(ja,{})]})}const qa=T.createSlice({name:"AppInfo",initialState:{value:{documentTitle:null,apiBaseUrl:null,appName:null,appVersion:null,appLogo:null,muiPremiumKey:null,enableAdministrationModule:!1,businessRoutes:[],businessNavigationItems:[],businessReduxReducers:{},businessCommonStoresMetaData:{},appTheme:{light:{primaryColor:"#37505C",secondaryColor:"#ff6d00"},dark:{primaryColor:"#ea690e",secondaryColor:"#74776B"}}}},reducers:{setAppInfo:(e,t)=>{e.value=t.payload}}}),Ka=qa.actions;var za=qa.reducer;const Ha={SystemDataSourceType:{autoLoad:!1,data:[{value:"Mysql"},{value:"Oracle"},{value:"DB2"}],url:""},SystemParameterTypes:{autoLoad:!1,url:"",data:[{value:"text"},{value:"number"},{value:"date"},{value:"datetime"},{value:"combobox"},{value:"checkbox"},{value:"html"},{value:"lookup"}]},SystemReportTypes:{autoLoad:!1,url:"",data:[{value:"Excel"},{value:"Jasper"},{value:"Blueprint"}]},SystemWidgetTypes:{autoLoad:!1,url:"",data:[{name:"LineChart"},{name:"ColumnChart"},{name:"PieChart"},{name:"Card"},{name:"CircularProgress"},{name:"LinearProgress"}]},SystemMailRecipientTypes:{autoLoad:!1,url:"",data:[{name:"To"},{name:"CC"}]},SystemOrganizations:{autoLoad:!0,url:"api/v1/admin/organization/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemOrganizationRanks:{autoLoad:!0,url:"api/v1/admin/organization/ranks/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemOrganizationUnits:{autoLoad:!0,url:"api/v1/admin/organization/units/all",authority:"DEVELOPMENT_ADMIN",data:[]},SystemDataSources:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/datasourceconnection/all"},SystemDataQueries:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/dataquery/all"},SystemBluePrints:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/blueprint/all"},SystemReports:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/report/all"},SystemEntityParameters:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/entityparameter/all"},SystemMailTemplates:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/mailtemplate/all"},SystemWidgets:{autoLoad:!0,data:[],authority:"DEVELOPMENT_ADMIN",url:"api/v1/dev/widget/all"}},Qa=i=>{const o=t.useDispatch();ne.LicenseInfo.setLicenseKey(i.muiPremiumKey);const a={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${i.appTheme?.light?.primaryColor||tt} #ffffff;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"light",primary:{main:i.appTheme?.light?.primaryColor||tt},secondary:{main:i.appTheme?.light?.secondaryColor||it},background:{default:"#f5f5f5",paper:"#f5f5f5"}}},r={components:{MuiCssBaseline:{styleOverrides:`\n /* Custom Scrollbar */\n * {\n scrollbar-width: thin;\n scrollbar-color: ${i.appTheme?.dark?.primaryColor||ot} #121212;\n }\n \n /* Webkit Browsers */\n *::-webkit-scrollbar {\n width: 12px;\n height: 10px;\n } \n `}},palette:{mode:"dark",primary:{main:i.appTheme?.dark?.primaryColor||ot},secondary:{main:i.appTheme?.dark?.secondaryColor||at}}};let s={};i.enableAdministrationModule&&(s={...Ha}),i.businessCommonStoresMetaData&&(s={...s,...i.businessCommonStoresMetaData}),o(Fe(s));const p=t.useSelector((e=>e.AppLayout));let c={...a};"dark"===p.themeMode&&(c={...r});const u=d.createTheme({direction:p.appDirection,...c});return l.useEffect((()=>{document.title=i.documentTitle,o(Ka.setAppInfo(i))}),[]),e.jsx(n.ThemeProvider,{theme:u,children:e.jsx(Ya,{})})};i.library.add(o.fab),i.library.add(a.far),i.library.add(r.fas);Object.defineProperty(exports,"FontAwesomeIcon",{enumerable:!0,get:function(){return m.FontAwesomeIcon}}),Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return A.toast}}),exports.BaseApp=i=>{const o={AppLayout:_e,UserSession:he,loadingMask:Oe,commonStores:Be,SideBar:Wo,AppInfo:za,...i.businessReduxReducers},a=T.configureStore({reducer:o});return e.jsx(t.Provider,{store:a,children:e.jsx(Qa,{...i})})},exports.CheckBox=$e,exports.ComboBox=Xe,exports.DARK_THEME_INITIAL_MAIN_COLOR=ot,exports.DARK_THEME_INITIAL_SECANDARY_COLOR=at,exports.DATE_FORMAT=Je,exports.DATE_TIME_FORMAT=et,exports.Datefield=rt,exports.DatetimeField=dt,exports.LIGHT_THEME_INITIAL_MAIN_COLOR=tt,exports.LIGHT_THEME_INITIAL_SECANDARY_COLOR=it,exports.TemplateBarChart=Ye,exports.TemplateDataCard=qe,exports.TemplateForm=Lo,exports.TemplateGauge=Ke,exports.TemplateGrid=vo,exports.TemplateLineChart=ze,exports.TemplateLineProgress=Qe,exports.TemplatePieChart=Ze,exports.TemplateTextField=We,exports.TransferList=Ve,exports.capitalizeFirstLetter=co,exports.hasDigitsOnly=function(e){return/^\d+$/.test(e)},exports.isNumber=so,exports.isNumeric=po,exports.isValidEmail=uo,exports.useApiActions=ke,exports.useAxios=ye,exports.useConfirmationWindow=be,exports.useIsMobile=ce,exports.useLoadingMask=Ne,exports.useSession=ge,exports.useWindow=xe,Object.keys(d).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return d[e]}})})),Object.keys(v).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return v[e]}})}));
37
32
  //# sourceMappingURL=index.js.map