{"version":3,"file":"Diagram.SelectNav.0f44f458.js","sources":["../src/current/js/modules/Diagram.SelectNav.js"],"sourcesContent":["export async function DiagramSelectNav() {\r\n $('.js-select-nav').on('change', function () {\r\n var $option = $(this).find('option:selected')\r\n , newUrl = $(this).val()\r\n ;\r\n\r\n if ($option.data('target') === \"_blank\") {\r\n window.open(newUrl);\r\n } else {\r\n switch (newUrl) {\r\n // relative\r\n case (newUrl.substr(0, 1) === \"/\"):\r\n window.location.pathname = newUrl;\r\n break;\r\n // anchor\r\n case (newUrl.substr(0, 1) === \"#\"):\r\n window.location.hash = newUrl;\r\n break;\r\n // none of the above, assume absolute path\r\n default:\r\n window.location = newUrl;\r\n break;\r\n }\r\n }\r\n });\r\n}"],"names":["DiagramSelectNav","$option","newUrl"],"mappings":"AAAQ,eAAeA,GAAmB,CACtC,EAAE,gBAAgB,EAAE,GAAG,SAAU,UAAY,CACzC,IAAIC,EAAU,EAAE,IAAI,EAAE,KAAK,iBAAiB,EACtCC,EAAS,EAAE,IAAI,EAAE,IAAK,EAG5B,GAAID,EAAQ,KAAK,QAAQ,IAAM,SAC3B,OAAO,KAAKC,CAAM,MAElB,QAAQA,QAEEA,EAAO,OAAO,EAAG,CAAC,IAAM,IAC1B,OAAO,SAAS,SAAWA,EAC3B,WAEEA,EAAO,OAAO,EAAG,CAAC,IAAM,IAC1B,OAAO,SAAS,KAAOA,EACvB,cAGA,OAAO,SAAWA,EAClB,MAGpB,CAAK,CACL"}