({666:function(){learndash.views=learndash.views||{},learndash.views.breakpoints=learndash.views.breakpoints||{},((e,s,t)=>{"use strict";t.selectors={container:'[data-js="learndash-view"]',breakpointClassPrefix:"ld-breakpoint--"},t.breakpoints={},t.debounce=(e,s)=>{let t;return(...n)=>{clearTimeout(t),t=setTimeout((()=>e.apply(this,n)),s)}},t.setContainerClasses=(e,s)=>{const n=Object.keys(s.breakpoints);e.classList.add(`${t.selectors.breakpointClassPrefix}initialized`),n.forEach((n=>{const a=t.selectors.breakpointClassPrefix+n;t.breakpoints[n]=s.breakpoints[n],e.offsetWidth<s.breakpoints[n]?e.classList.remove(a):e.classList.add(a)}))},t.handleResize=e=>{t.setContainerClasses(e.data.container,e.data.data)},t.unbindEvents=s=>{e.removeEventListener("resize",t.handleResize),s.removeEventListener("beforeAjaxSuccess",t.deinit)},t.bindEvents=(s,n)=>{const a=t.debounce((()=>{t.handleResize({data:{container:s,data:n}})}),100);e.addEventListener("resize",a),s.addEventListener("beforeAjaxSuccess",(()=>{t.deinit({data:{container:s}})}))},t.deinit=e=>{t.unbindEvents(e.data.container)},t.initTasks=function(e){const s=JSON.parse(e.dataset.learndashBreakpoints||"{}");t.bindEvents(e,s),t.setContainerClasses(e,s),s.initialized=!0,e.dataset.learndashBreakpoints=JSON.stringify(s)},t.init=function(e){const s=JSON.parse(e.dataset.learndashBreakpoints||"{}");s&&s.initialized||t.initTasks(e)},t.setup=function(e){e.matches(t.selectors.container)&&t.initTasks(e)},t.ready=function(){s.querySelectorAll(t.selectors.container).forEach((e=>{t.init(e)}))},s.addEventListener("DOMContentLoaded",t.ready)})(window,document,learndash.views.breakpoints)}})[666]();