{"version":3,"file":"main~7beb73fb.1a258a58f752dffd9923.js","mappings":"yKAmHaA,EAAO,WAAkC,IAAxBC,EAAIC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,KAAMG,EAASH,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EAClD,MAAa,OAATH,EAzGqB,SAACI,GAC1B,OAAQA,GACN,IAAK,UACH,OAAO,2CACT,IAAK,SACH,OAAO,6CACT,IAAK,aACH,OAAO,4CACT,IAAK,SACH,OAAO,6CACT,IAAK,iBACH,OAAO,6CACT,IAAK,UACH,OAAO,6CACT,IAAK,SACH,OAAO,6CACT,IAAK,cACH,OAAO,6CACT,IAAK,aACH,OAAO,6CACT,IAAK,OACH,OAAO,6CACT,IAAK,cACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,IAAK,WACH,OAAO,6CACT,IAAK,QACH,OAAO,6CACT,IAAK,aACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,IAAK,mBACH,OAAO,6CACT,IAAK,SACH,OAAO,6CACT,IAAK,cACH,OAAO,6CACT,IAAK,oBACH,OAAO,6CACT,IAAK,UACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,QACE,OAAO,KAEb,CAuDWC,CAAmBD,GAEf,OAATJ,EAvDoB,SAACI,GACzB,OAAQA,GACN,IAAK,SACH,OAAO,6CACT,IAAK,aACH,OAAO,6CACT,IAAK,SACH,OAAO,4CACT,IAAK,iBACH,OAAO,6CACT,IAAK,UACH,OAAO,6CACT,IAAK,SACH,OAAO,6CACT,IAAK,cACH,OAAO,6CACT,IAAK,aACH,OAAO,6CACT,IAAK,OACH,OAAO,6CACT,IAAK,cACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,IAAK,WACH,OAAO,6CACT,IAAK,QACH,OAAO,6CACT,IAAK,aACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,IAAK,mBACH,OAAO,6CACT,IAAK,SACH,OAAO,6CACT,IAAK,cACH,OAAO,6CACT,IAAK,oBACH,OAAO,6CACT,IAAK,UACH,OAAO,2CACT,IAAK,YACH,OAAO,6CACT,IAAK,YACH,OAAO,6CACT,QACE,OAAO,KAEb,CAOWE,CAAkBF,GAEpB,IACT,EAEaG,EAAe,SAAUP,GACpC,OAAQA,GACN,IAAK,KACH,OAAOQ,EAAAA,EACT,IAAK,KACH,OAAOC,EAAAA,EACT,QACE,OAAO,KAEb,C","sources":["webpack://rearchitect/./src/app/assets/literals/index.js"],"sourcesContent":["// Loads the json literal (resource strings) file dynamically\r\n\r\n/* Ideally, we could have used expressions and dynamic imports to get this.\r\n * However, it was not working and after spending more than half a day, I had to give up as\r\n * we have deadlines to meet.\r\n * In future, we can update this to use dynamic imports with expressions\r\n */\r\n\r\nimport { englishConstants } from \"./en/constants\";\r\nimport { arabicConstants } from \"./ar/constants\";\r\n\r\nconst getEnglishLiterals = (routeName) => {\r\n switch (routeName) {\r\n case \"billing\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/billing.json\");\r\n case \"common\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/common.json\");\r\n case \"unauthRoot\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/unauthRoot.json\");\r\n case \"signIn\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/signIn.json\");\r\n case \"forgotPassword\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/forgotPassword.json\");\r\n case \"flights\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/flights.json\");\r\n case \"signUp\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/signUp.json\");\r\n case \"setPassword\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/setPassword.json\");\r\n case \"travellers\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/travellers.json\");\r\n case \"tags\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/tags.json\");\r\n case \"signInIntro\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/signInIntro.json\");\r\n case \"myaccount\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/myaccount.json\");\r\n case \"policies\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/policies.json\");\r\n case \"trips\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/trips.json\");\r\n case \"components\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/components.json\");\r\n case \"approvals\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/approvals.json\");\r\n case \"suspendedAccount\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/suspendedAccount.json\");\r\n case \"hotels\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/hotels.json\");\r\n case \"requestForm\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/requestForm.json\");\r\n case \"expenseManagement\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/expenseManagement.json\");\r\n case \"seatMap\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/seatMap.json\");\r\n case \"dashboard\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/dashboard.json\");\r\n case \"quotation\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/quotation.json\");\r\n default:\r\n return null;\r\n }\r\n};\r\n\r\nconst getArabicLiterals = (routeName) => {\r\n switch (routeName) {\r\n case \"common\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/common.json\");\r\n case \"unauthRoot\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/unauthRoot.json\");\r\n case \"signIn\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/signIn.json\");\r\n case \"forgotPassword\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/forgotPassword.json\");\r\n case \"flights\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/flights.json\");\r\n case \"signUp\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/signUp.json\");\r\n case \"setPassword\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/setPassword.json\");\r\n case \"travellers\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/travellers.json\");\r\n case \"tags\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/tags.json\");\r\n case \"signInIntro\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/signInIntro.json\");\r\n case \"myaccount\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/myaccount.json\");\r\n case \"policies\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/policies.json\");\r\n case \"trips\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/trips.json\");\r\n case \"components\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/components.json\");\r\n case \"approvals\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/approvals.json\");\r\n case \"suspendedAccount\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/suspendedAccount.json\");\r\n case \"hotels\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/hotels.json\");\r\n case \"requestForm\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/requestForm.json\");\r\n case \"expenseManagement\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/expenseManagement.json\");\r\n case \"seatMap\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/seatMap.json\");\r\n case \"dashboard\":\r\n return import(/* webpackMode: \"eager\" */ \"./ar/dashboard.json\");\r\n case \"quotation\":\r\n return import(/* webpackMode: \"eager\" */ \"./en/quotation.json\");\r\n default:\r\n return null;\r\n }\r\n};\r\n\r\nexport const load = function (lang = \"en\", routeName) {\r\n if (lang === \"en\") {\r\n return getEnglishLiterals(routeName);\r\n }\r\n if (lang === \"ar\") {\r\n return getArabicLiterals(routeName);\r\n }\r\n return null;\r\n};\r\n\r\nexport const getConstants = function (lang) {\r\n switch (lang) {\r\n case \"en\":\r\n return englishConstants;\r\n case \"ar\":\r\n return arabicConstants;\r\n default:\r\n return null;\r\n }\r\n};\r\n"],"names":["load","lang","arguments","length","undefined","routeName","getEnglishLiterals","getArabicLiterals","getConstants","englishConstants","arabicConstants"],"sourceRoot":""}