{"version":3,"file":"header.min.js","sources":["header.ts"],"sourcesContent":["namespace eXpress.web.header {\r\n\t$(function () {\r\n\t\tconst openLeadTimesPopupAsync = () => {\r\n\t\t\tlet dialog: core.StyleguideViewPopup;\r\n\r\n\t\t\treturn eXpress.core.StyleguideViewPopup.createDialogAsync (\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tview: \"StyleguideLeadTimesDialog\",\r\n\t\t\t\t\t\tdialogId: \"lead-times-dialog\",\r\n\t\t\t\t\t\tforceRefresh: true\r\n\t\t\t\t\t}\r\n\t\t\t\t)\r\n\t\t\t\t.then($popup => {\r\n\t\t\t\t\t// hide maindialog cover for non ux pages\r\n\t\t\t\t\tconst mainDialogCoverEl = html.querySelector(document, \"#maindialogcover\");\r\n\t\t\t\t\tmainDialogCoverEl && mainDialogCoverEl.classList.add('u-hide');\r\n\r\n\t\t\t\t\tdialog = new core.StyleguideViewPopup($popup);\r\n\t\t\t\t\treturn dialog.openAsync()\r\n\t\t\t\t\t\t.then(() => {\r\n\t\t\t\t\t\t\treturn undefined;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t};\r\n\r\n\t\tconst mainNavigation = new components.main.MainNavigation\r\n\t\t\t(\r\n\t\t\t\thtml.querySelector(document, \".technical-header\", true),\r\n\t\t\t\t{\r\n\t\t\t\t\tgetIconsAsync: urls => utils.getInlineSvgsAsync(urls),\r\n\t\t\t\t\topenLeadTimesPopupAsync\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t});\r\n}\r\n"],"names":["eXpress","web","header","$","components","main","MainNavigation","html","querySelector","document","getIconsAsync","urls","utils","getInlineSvgsAsync","openLeadTimesPopupAsync","core","StyleguideViewPopup","createDialogAsync","view","dialogId","forceRefresh","then","$popup","mainDialogCoverEl","classList","add","openAsync"],"mappings":"AAAA,IAAUA,SAAV,SAAUA,SAAQ,IAAAC,SAAAD,QAAGC,MAAHD,YAkCjB,CAAA,IAlC2BE,SAAND,WAkCrB,CAAA,GAjCAE,GAAE,WAwBsB,IAAIH,QAAAI,WAAWC,KAAKC,eAEzCN,QAAAO,KAAKC,cAA2BC,SAAU,qBAAqB,GAC/D,CACCC,cAAe,SAAAC,MAAQ,OAAAX,QAAAY,MAAMC,mBAAmBF,KAAK,EACrDG,wBA5B6B,WAG/B,OAAOd,QAAQe,KAAKC,oBAAoBC,kBACtC,CACCC,KAAM,4BACNC,SAAU,oBACVC,cAAc,IAGfC,MAAK,SAAAC,QAEL,IAAMC,kBAAoBvB,QAAAO,KAAKC,cAA2BC,SAAU,oBAIpE,OAHAc,mBAAqBA,kBAAkBC,UAAUC,IAAI,UAE5C,IAAIzB,QAAAe,KAAKC,oBAAoBM,QACxBI,YACZL,MAAK,WAEN,GACF,GACF,GAUD,GACA,CAlCD,CAAUrB,UAAAA,QAkCT,CAAA"}