{"version":3,"sources":["app/capabilitieslanding.js"],"names":["define","$","keyword","sString","queryString","window","location","hash","search","undefined","indexOf","params","substring","split","i","length","temp","decodeURI","val","History","getState","Adapter","bind","click","url","protocol","host","pathname","join","term","href","encodeURIComponent","keypress","e","which","path","this","attr","pushState","text","lastIndexOf"],"mappings":"AAAAA,QAAQ,SAAU,kBAAmB,SAAUC,GAC3C,IAOIC,EANAC,EAAU,EACVC,EAAcC,OAAOC,SAASC,KAMlC,GALmB,IAAfH,IACAA,EAAcC,OAAOC,SAASE,OAC9BL,EAAU,QAGKM,GAAfL,GAA4BA,EAAYM,QAAQ,YAAc,EAAG,CAGjE,IAAIC,GADJP,EAAcA,EAAYQ,UAAUT,IACXU,MAAM,KAE/B,IAAKC,EAAI,EAAGA,EAAIH,EAAOI,OAAQD,IAC3B,GAAIH,EAAOG,GAAGJ,QAAQ,YAAc,EAAG,CACnC,IAAIM,EAAOL,EAAOG,GAAGD,MAAM,KAC3BX,EAAUe,UAAUD,EAAK,IACzBf,EAAE,wBAAwBiB,IAAIhB,KAM1C,SAAWG,EAAQI,GAEf,IAAIU,EAAUd,EAAOc,QACbA,EAAQC,WAGhBD,EAAQE,QAAQC,KAAKjB,EAAQ,cAAe,WAC5Bc,EAAQC,aAP5B,CAWGf,QAGHJ,EAAE,4BAA4BsB,MAAM,WAChC,IAAIC,GAAOlB,SAASmB,SAAU,KAAMnB,SAASoB,KAAMpB,SAASqB,UAAUC,KAAK,IACvEC,EAAO5B,EAAE,iCAAiCiB,MAClC,IAARW,IAGAxB,OAAOC,SAASwB,KAAON,EAAM,YAAcO,mBAAmBF,MAItE5B,EAAE,iCAAiC+B,SAAS,SAAUC,GAClD,GAAe,IAAXA,EAAEC,MAAa,CACf,IAAIV,GAAOlB,SAASmB,SAAU,KAAMnB,SAASoB,KAAMpB,SAASqB,UAAUC,KAAK,IACvEC,EAAO5B,EAAE,iCAAiCiB,MAO9C,MANY,IAARW,IAGAxB,OAAOC,SAASwB,KAAON,EAAM,YAAcO,mBAAmBF,KAG3D,KAGf5B,EAAE,+BAA+BsB,MAAM,WACnC,IAAIY,EAAOlC,EAAEmC,MAAMC,KAAK,kBACpBb,GAAOlB,SAASmB,SAAU,KAAMnB,SAASoB,KAAMS,GAAMP,KAAK,IAC1DC,EAAO5B,EAAE,wBAAwBiB,MACzB,IAARW,IAEAV,QAAQmB,WAAYpC,QAAS2B,GAAQ5B,EAAE,SAASsC,OAAQ,YAAcV,GACtExB,OAAOC,SAASwB,KAAON,EAAM,YAAcO,mBAAmBF,MAItE5B,EAAE,wBAAwB+B,SAAS,SAAUC,GACzC,GAAe,IAAXA,EAAEC,MAAa,CACf,IAAIC,EAAOlC,EAAE,+BAA+BoC,KAAK,kBAC7Cb,GAAOlB,SAASmB,SAAU,KAAMnB,SAASoB,KAAMS,GAAMP,KAAK,IAC1DC,EAAO5B,EAAE,wBAAwBiB,MAOrC,MANY,IAARW,IAEAV,QAAQmB,WAAYpC,QAAS2B,GAAQ5B,EAAE,SAASsC,OAAQ,YAAcV,GACtExB,OAAOC,SAASwB,KAAON,EAAM,YAAcO,mBAAmBF,KAG3D,KAGf5B,EAAE,wCAAwCsB,MAAM,WAC5C,IAAIC,GAAOlB,SAASmB,SAAU,KAAMnB,SAASoB,KAAMpB,SAASqB,UAAUC,KAAK,IAC3EJ,EAAMA,EAAIZ,UAAU,EAAGY,EAAIgB,YAAY,MACvCnC,OAAOC,SAASwB,KAAON","file":"capabilitieslanding.js","sourcesContent":["define(['jquery', 'jquery.history'], function ($) {\r\n var manualStateChange = true;\r\n var sString = 2;\r\n var queryString = window.location.hash;\r\n if (queryString == \"\") {\r\n queryString = window.location.search;\r\n sString = 1;\r\n }\r\n var keyword;\r\n if (queryString != undefined && queryString.indexOf(\"keyword\") > -1) {\r\n\r\n queryString = queryString.substring(sString);\r\n var params = queryString.split(\"&\");\r\n var tab;\r\n for (i = 0; i < params.length; i++) {\r\n if (params[i].indexOf(\"keyword\") > -1) {\r\n var temp = params[i].split(\"=\");\r\n keyword = decodeURI(temp[1]);\r\n $(\".search-form #search\").val(keyword);\r\n\r\n }\r\n\r\n }\r\n }\r\n (function (window, undefined) {\r\n // Define variables\r\n var History = window.History,\r\n State = History.getState();\r\n\r\n // Bind statechange event\r\n History.Adapter.bind(window, 'statechange', function () {\r\n var State = History.getState();\r\n\r\n });\r\n\r\n })(window)\r\n\r\n\r\n $(\".search-form #searchPage\").click(function () {\r\n var url = [location.protocol, '//', location.host, location.pathname].join('');\r\n var term = $(\".search-form #searchpageinput\").val();\r\n if (term != \"\") {\r\n\r\n\r\n window.location.href = url + \"?keyword=\" + encodeURIComponent(term);\r\n }\r\n\r\n })\r\n $(\".search-form #searchpageinput\").keypress(function (e) {\r\n if (e.which == 13) {\r\n var url = [location.protocol, '//', location.host, location.pathname].join('');\r\n var term = $(\".search-form #searchpageinput\").val();\r\n if (term != \"\") {\r\n\r\n\r\n window.location.href = url + \"?keyword=\" + encodeURIComponent(term);\r\n }\r\n\r\n return false;\r\n }\r\n })\r\n $(\".search-form #landingSearch\").click(function () {\r\n var path = $(this).attr(\"data-searchurl\");\r\n var url = [location.protocol, '//', location.host, path].join('');\r\n var term = $(\".search-form #search\").val();\r\n if (term != \"\") {\r\n\r\n History.pushState({ keyword: term }, $(\"title\").text(), \"?keyword=\" + term);\r\n window.location.href = url + \"?keyword=\" + encodeURIComponent(term);\r\n }\r\n })\r\n\r\n $(\".search-form #search\").keypress(function (e) {\r\n if (e.which == 13) {\r\n var path = $(\".search-form #landingSearch\").attr(\"data-searchurl\");\r\n var url = [location.protocol, '//', location.host, path].join('');\r\n var term = $(\".search-form #search\").val();\r\n if (term != \"\") {\r\n\r\n History.pushState({ keyword: term }, $(\"title\").text(), \"?keyword=\" + term);\r\n window.location.href = url + \"?keyword=\" + encodeURIComponent(term);\r\n }\r\n\r\n return false;\r\n }\r\n })\r\n $(\".form-results__keyword.keyword-field\").click(function () {\r\n var url = [location.protocol, '//', location.host, location.pathname].join('');\r\n url = url.substring(0, url.lastIndexOf('/'));\r\n window.location.href = url;\r\n })\r\n});"]}