"use strict";(self.webpackChunkcliq_store_locator_dist_source=self.webpackChunkcliq_store_locator_dist_source||[]).push([[522],{549:function(e,t,r){const l="cliq-sl-print-sheet",s="cliq-sl-is-printing",i=["--cliq-results-cols","--cliq-results-gap","--cliq-results-card-w"];r.d(t,["printStoreList",0,async(e,t=document,r=window)=>{const o=((e,t=document)=>{const r=e?.closest?.(".cliq-sl");if(!r)return null;const s=e.closest(".cliq-sl-w--results")||r.querySelector(".cliq-sl-w--results");if(!s)return null;t.querySelectorAll(`.${l}`).forEach(e=>e.remove());const o=t.createElement("div"),c=Array.from(r.classList).filter(e=>!["is-map-only","has-map-transition"].includes(e));o.className=[...c,l].join(" "),o.setAttribute("aria-hidden","true");const a=s.cloneNode(!0);return a.classList.add("cliq-sl-print-content"),a.removeAttribute("aria-busy"),(e=>{e.querySelectorAll?.(".cliq-widget-reveal, .cliq-sl-acc").forEach(e=>{e.classList?.add?.("is-open"),e.hasAttribute?.("aria-expanded")&&e.setAttribute("aria-expanded","true")}),e.querySelectorAll?.('[aria-expanded="false"]').forEach(e=>e.setAttribute("aria-expanded","true")),e.querySelectorAll?.("[hidden]").forEach(e=>e.removeAttribute("hidden"))})(a),(e=>{e.querySelectorAll([".cliq-sl-count__print",".cliq-sl-results-tools",".cliq-sl-filter-drawer",".cliq-sl-loadmore",".cliq-sl-loadmore-sentinel",".cliq-sl-results-progress",".cliq-sl-directions-host"].join(",")).forEach(e=>e.remove())})(a),((e,t)=>{const r=Array.from(e.querySelectorAll("img"));Array.from(t.querySelectorAll("img")).forEach((e,t)=>{const l=r[t],s=l?.currentSrc||l?.src||l?.getAttribute?.("src");e.removeAttribute("loading"),e.loading="eager",s&&(e.removeAttribute("srcset"),e.removeAttribute("sizes"),e.src=s)})})(s,a),((e,t,r)=>{const l=e.querySelector?.(".cliq-widget-results"),s=t.querySelector?.(".cliq-widget-results"),o=r.defaultView?.getComputedStyle;if(!l||!s?.style||!o)return;const c=o(l);i.forEach(e=>{const t=c.getPropertyValue(e).trim();t&&s.style.setProperty(e,t)})})(s,a,t),a.querySelectorAll("[tabindex]").forEach(e=>e.removeAttribute("tabindex")),o.appendChild(a),o})(e,t);if(!o)return!1;let c;t.body.appendChild(o),t.body.classList.add(s),await((e,t=window)=>Promise.all(Array.from(e.querySelectorAll("img")).map(e=>e.complete?Promise.resolve():new Promise(r=>{let l;const s=()=>{t.clearTimeout?.(l),r()};e.addEventListener("load",s,{once:!0}),e.addEventListener("error",s,{once:!0}),l=t.setTimeout?.(s,4e3),e.decode?.().then(s).catch(()=>{})}))))(o,r);const a=()=>{r.clearTimeout?.(c),t.body.classList.remove(s),o.remove()};r.addEventListener?.("afterprint",a,{once:!0}),c=r.setTimeout?.(a,6e4);try{r.print()}catch(e){throw a(),e}return!0}])}}]);