{ "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

\n \n {Texts.Forms.SiteTitle}\n \n

\n\n SetIstanza();"], "mappings": "wHAGA,IAAMA,EAAaC,EAAA,IAAM,CACrB,EAAE,KAAK,CACH,IAAK,WACL,KAAM,MACN,QAAS,SAAUC,EAAS,CACxB,IAAIC,EAAO,SAAS,uBAAuB,mBAAmB,EAC1DC,EAAW,SAAS,uBAAuB,cAAc,EACzDC,EAAe,GACfC,EAAe,GAEnB,OAAQJ,EAAS,CACb,IAAK,WACDG,EAAO,wBACPC,EAAO,UACP,MACJ,IAAK,WACDD,EAAO,wBACPC,EAAO,gBACP,MACJ,IAAK,WACDD,EAAO,wBACPC,EAAO,iBACP,MACJ,IAAK,WACDD,EAAO,wBACPC,EAAO,cACP,MACJ,QACID,EAAO,0CACf,CAEAF,EAAK,CAAC,EAAE,aAAa,MAAOE,CAAI,EAC5BC,GAAQ,KAAIF,EAAS,CAAC,EAAE,UAAY,IAAME,EAClD,EACA,MAAO,SAAUC,EAAO,CACpB,QAAQ,MAAM,yCAA0CA,CAAK,EAC7D,IAAIJ,EAAO,SAAS,uBAAuB,mBAAmB,EAC9DA,EAAK,CAAC,EAAE,aAAa,MAAO,0CAA0C,CAC1E,CACJ,CAAC,CACL,EAxCmB,cA0CNK,EAAoBP,EAAA,IAE7BQ,EAAC,MAAG,MAAM,kBACN,UAAAA,EAAC,OAAI,MAAM,oBAAoB,EAC/BA,EAAC,QAAK,MAAM,uBAAwB,SAAAC,EAAM,MAAM,UAAU,EAC1DD,EAAC,QAAK,MAAM,0BAA0B,GAC1C,EAN6B,qBAQ7BT,EAAW", "names": ["SetIstanza", "__name", "istanza", "logo", "subtitle", "flag", "site", "error", "AccountPanelTitle", "jsx", "Texts"] }