{ "version": 3, "sources": ["../../../Modules/Membership/Account/AccountPanelTitle.tsx"], "sourcesContent": ["/** @jsxImportSource jsx-dom */\nimport { Texts } from \"@/ServerTypes/Texts\";\n\nconst SetIstanza = () => {\n $.ajax({\n url: \"/Istanza\",\n type: \"GET\",\n success: function (istanza) {\n var logo = document.getElementsByClassName(\"s-form-title-logo\");\n var subtitle = document.getElementsByClassName(\"app-subtitle\");\n var flag: string = \"\";\n var site: string = \"\";\n\n switch (istanza) {\n case 190199996:\n flag = \"/Content/Flags/al.png\";\n site = \"Algeria\";\n break;\n case 190199997:\n flag = \"/Content/Flags/na.png\";\n site = \"North America\";\n break;\n case 190199998:\n flag = \"/Content/Flags/uk.png\";\n site = \"United Kingdom\";\n break;\n case 190199999:\n flag = \"/Content/Flags/me.png\";\n site = \"Middle East\";\n break;\n default:\n flag = \"../../Serenity.Assets/logo/white-128.png\";\n }\n\n logo[0].setAttribute(\"src\", flag);\n if (site != \"\") subtitle[0].innerHTML = \" \" + site;\n },\n error: function (error) {\n console.error(\"Errore nell'ottenimento dell'istanza: \", error);\n var logo = document.getElementsByClassName(\"s-form-title-logo\");\n logo[0].setAttribute(\"src\", \"../../Serenity.Assets/logo/white-128.png\");\n }\n });\n}\n\nexport const AccountPanelTitle = () =>\n\n