{"version":3,"file":"Diagram.Accordions.e69c3b14.js","sources":["../src/current/js/modules/Diagram.Accordions.js"],"sourcesContent":["import '@wearediagram/wsol.accordion';\r\n\r\nexport async function DiagramAccordions() {\r\n // accordions with the first item open\r\n $('.js-accordion').each(function () {\r\n $(this).wsol_accordion({\r\n headerSelector: '.js-accordion-header',\r\n bodySelector: '.js-accordion-more',\r\n itemSelector: '.js-accordion-item',\r\n spriteContainer: '.js-accordion-header',\r\n customSprite: function (item) {\r\n return '';\r\n },\r\n startFirstOpen: $(this).data('StartFirstOpen') || false\r\n });\r\n });\r\n\r\n // special \"panel\" accordions that are fullscreen on narrow\r\n $('.js-panel').each(function () {\r\n $(this).wsol_accordion({\r\n headerSelector: '.js-panel-header',\r\n bodySelector: '.js-panel-more',\r\n itemSelector: '.js-panel-item',\r\n spriteContainer: '.js-panel-header',\r\n customSprite: function (item) {\r\n return '';\r\n },\r\n startFirstOpen: false,\r\n toggleSpeed: 0,\r\n beforeOpen: function () {\r\n $('body').addClass('panel-lock');\r\n $('.js-panel-results').addClass('js-panel-open');\r\n $('.js-filter-utilities').addClass('open');\r\n },\r\n beforeClose: function () {\r\n $('body').removeClass('panel-lock');\r\n $('.js-panel-results').removeClass('js-panel-open');\r\n $('.js-filter-utilities').removeClass('open');\r\n }\r\n });\r\n });\r\n};"],"names":["DiagramAccordions","item"],"mappings":"mEAEO,eAAeA,GAAoB,CAEtC,EAAE,eAAe,EAAE,KAAK,UAAY,CAChC,EAAE,IAAI,EAAE,eAAe,CACnB,eAAgB,uBAChB,aAAc,qBACd,aAAc,qBACd,gBAAiB,uBACjB,aAAc,SAAUC,EAAM,CAC1B,MAAO,uFACV,EACD,eAAgB,EAAE,IAAI,EAAE,KAAK,gBAAgB,GAAK,EAC9D,CAAS,CACT,CAAK,EAGD,EAAE,WAAW,EAAE,KAAK,UAAY,CAC5B,EAAE,IAAI,EAAE,eAAe,CACnB,eAAgB,mBAChB,aAAc,iBACd,aAAc,iBACd,gBAAiB,mBACjB,aAAc,SAAUA,EAAM,CAC1B,MAAO,uFACV,EACD,eAAgB,GAChB,YAAa,EACb,WAAY,UAAY,CACpB,EAAE,MAAM,EAAE,SAAS,YAAY,EAC/B,EAAE,mBAAmB,EAAE,SAAS,eAAe,EAC/C,EAAE,sBAAsB,EAAE,SAAS,MAAM,CAC5C,EACD,YAAa,UAAY,CACrB,EAAE,MAAM,EAAE,YAAY,YAAY,EAClC,EAAE,mBAAmB,EAAE,YAAY,eAAe,EAClD,EAAE,sBAAsB,EAAE,YAAY,MAAM,CAC/C,CACb,CAAS,CACT,CAAK,CACL"}