{"version":3,"sources":["layouts.js"],"names":["$","drupalSettings","Drupal","behaviors","headerContactButton","attach","context","click","e","preventDefault","removeClass","addClass","keltyBreadcrumb","hasBreadcrumb","length","css","jQuery","headerMenu","checkStickyMenu","window","scroll","scrollTop","offset","top"],"mappings":"CAuCA,SAAWA,EAAGC,EAAgBC,GAC1BA,EAAOC,UAAUC,qBACbC,OAAQ,SAAUC,GACdN,EAAE,gCAAiCM,GAASC,MAAM,SAAUC,GACxDA,EAAEC,iBAEFT,EAAE,cAAcU,YAAY,qBAGhCV,EAAE,0BAA2BM,GAASC,MAAM,SAAUC,GAClDA,EAAEC,iBAEFT,EAAE,cAAcW,SAAS,uBAKrCT,EAAOC,UAAUS,iBACbP,OAAQ,SAAUC,GACd,GAAIO,GAAgBb,EAAE,iBAAkBM,GAASQ,MAC7CD,GAAgB,IAEhBb,EAAE,4BAA4Be,IAAI,cAAe,GACjDf,EAAE,4BAA4Be,IAAI,aAAc,OAI7DC,OAAQf,eAAgBC,QAE3B,SAAWF,EAAGC,EAAgBC,GAC1BA,EAAOC,UAAUc,YACbZ,OAAQ,SAAUC,GACdJ,EAAOgB,kBACPlB,EAAEmB,QAAQC,OAAO,WACblB,EAAOgB,sBAKnBhB,EAAOgB,gBAAkB,WACjBlB,EAAE,qBAAqBc,OAAS,IAC5Bd,EAAEmB,QAAQE,YAAcrB,EAAE,qBAAqBsB,SAASC,IACxDvB,EAAE,QAAQW,SAAS,oBAGnBX,EAAE,QAAQU,YAAY,uBAInCM,OAAQf,eAAgBC","file":"../layouts.js","sourcesContent":["// (function ($, drupalSettings, Drupal) {\n// \tDrupal.behaviors.footerMap = {\n// \t\tattach: function (context) {\n// \t\t\t$('body').append('');\n// \t\t\t// var pos = { lat: 49.2442269, lng: -123.1211935 };\n// \t\t\t// var map = new google.maps.Map(document.getElementById('footer-map'), {\n// \t\t\t// \tcenter: pos,\n// \t\t\t// \tscrollwheel: false,\n// \t\t\t// \tzoom: 15,\n// \t\t\t// \tstyles: [{\"featureType\":\"administrative\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#444444\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#f2f2f2\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"elementType\":\"labels.text\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":45}]},{\"featureType\":\"road.highway\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#dbdbdb\"},{\"visibility\":\"on\"}]}]\n// \t\t\t// });\n\n// \t\t\t// var infowindow = new google.maps.InfoWindow({\n// \t\t\t// \tcontent: '

BC Childrens Hospital Healthy Minds Building

Get Directions

'\n// \t\t\t// });\n\n// \t\t\t// var x_mark = {\n// \t\t\t// \tpath: 'M35.412,40.409c0-5.588-4.53-10.118-10.118-10.118c-5.588,0-10.118,4.53-10.118,10.118 c0,1.172,0.21,2.293,0.576,3.34H15.72l9.948,26.93l9.2-26.93h-0.032C35.202,42.702,35.412,41.581,35.412,40.409z M25.205,44.667 c-2.28,0-4.128-1.848-4.128-4.128c0-2.28,1.848-4.128,4.128-4.128c2.28,0,4.128,1.848,4.128,4.128 C29.333,42.819,27.485,44.667,25.205,44.667z',\n// \t// \t\tfillColor: '#f98421',\n// \t\t\t// \tfillOpacity: 1,\n// \t\t\t// \tscale: 1,\n// \t\t\t// \tstrokeWeight: 0,\n// \t\t\t// \tanchor: new google.maps.Point(15, 65),\n// \t\t\t// };\n\n// \t\t\t// var marker = new google.maps.Marker({\n// \t\t\t// \ticon: x_mark,\n// \t\t\t// \tposition: pos,\n// \t\t\t// \tmap: map,\n// \t\t\t// \ttitle: 'Kelty Mental Health Resource Centre'\n// \t\t\t// });\n// \t\t\t// marker.addListener('click', function () {\n// \t\t\t// \tinfowindow.open(map, marker);\n// \t\t\t// });\n// \t\t\t// map.setCenter(pos);\n// \t\t}\n// \t};\n// })(jQuery, drupalSettings, Drupal);\n\n(function ($, drupalSettings, Drupal) {\n Drupal.behaviors.headerContactButton = {\n attach: function (context) {\n $('#find-help .modal--cls__close', context).click(function (e) {\n e.preventDefault();\n\n $('#find-help').removeClass('js-modal-active');\n });\n\n $('.header-contact .button', context).click(function (e) {\n e.preventDefault();\n\n $('#find-help').addClass('js-modal-active');\n });\n }\n };\n\n Drupal.behaviors.keltyBreadcrumb = {\n attach: function (context) {\n var hasBreadcrumb = $('nav.breadcrumb', context).length;\n if (hasBreadcrumb > 0) {\n // If the page has a breadcrumb, remove the padding since the breadcrumb already has spacing.\n $('.node--layout-page--full').css('padding-top', 0);\n $('.node--layout-page--full').css('margin-top', 0);\n }\n }\n };\n})(jQuery, drupalSettings, Drupal);\n\n(function ($, drupalSettings, Drupal) {\n Drupal.behaviors.headerMenu = {\n attach: function (context) {\n Drupal.checkStickyMenu();\n $(window).scroll(function() {\n Drupal.checkStickyMenu();\n });\n }\n };\n\n Drupal.checkStickyMenu = function() {\n if ($('.block.menu--main').length > 0) {\n if ($(window).scrollTop() > $('.block.menu--main').offset().top) {\n $('body').addClass('js-sticky-header');\n }\n else {\n $('body').removeClass('js-sticky-header');\n }\n }\n }\n})(jQuery, drupalSettings, Drupal);"]}