{ "version": 3, "sources": ["../../src/js/modules/sticky-sidebar/init.js"], "sourcesContent": ["(function ($) {\n function moveSearch() {\n $(\".page-template-landing-directory .site__title--mobile \").append(\n $(\"#directory-search\")\n );\n }\n\n function restoreSearch() {\n if (\n $(\n \".page-template-landing-directory .widget_secondary_nav #directory-search\"\n ).length < 1\n ) {\n $(\n \".page-template-landing-directory .widget_secondary_nav \"\n ).prepend($(\"#directory-search\"));\n }\n }\n\n $(document).ready(function () {\n if ($(\".menu--secondary\") || $(\".widget_secondary_nav\")) {\n $(\".content-container\").addClass(\"include-sticky-sidebar\");\n }\n });\n\n // Laptop/Desktop:\n // Restructure header to include brand bar and site bar\n enquire.register(\"screen and (min-width: 960px)\", {\n // =====================================================\n // Triggered when a media query matches\n // =====================================================\n match: function () {\n restoreSearch();\n },\n\n // =====================================================\n // Triggered when a media query transitions from a\n // matched state to an unmatched state\n // =====================================================\n unmatch: function () {\n moveSearch();\n },\n\n // =====================================================\n // Triggered once, when the handler is registered\n // =====================================================\n setup: function () {\n moveSearch();\n },\n });\n})(jQuery);\n"], "mappings": "OAAC,SAAUA,EAAG,CACV,SAASC,GAAa,CAClBD,EAAE,wDAAwD,EAAE,OACxDA,EAAE,mBAAmB,CACzB,CACJ,CAEA,SAASE,GAAgB,CAEjBF,EACI,0EACJ,EAAE,OAAS,GAEXA,EACI,yDACJ,EAAE,QAAQA,EAAE,mBAAmB,CAAC,CAExC,CAEAA,EAAE,QAAQ,EAAE,MAAM,UAAY,EACtBA,EAAE,kBAAkB,GAAKA,EAAE,uBAAuB,IAClDA,EAAE,oBAAoB,EAAE,SAAS,wBAAwB,CAEjE,CAAC,EAID,QAAQ,SAAS,gCAAiC,CAI9C,MAAO,UAAY,CACfE,EAAc,CAClB,EAMA,QAAS,UAAY,CACjBD,EAAW,CACf,EAKA,MAAO,UAAY,CACfA,EAAW,CACf,CACJ,CAAC,CACL,GAAG,MAAM", "names": ["$", "moveSearch", "restoreSearch"] }