1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4870],{54870:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});var i=s(92180);class o{constructor(t){t&&("true"===t?.dataset?.linkedPostsInited||(t?.dataset?t.dataset.linkedPostsInited="true":t.setAttribute("data-linked-posts-inited","true"),this.container=t,this.list=this.container?.querySelector?.('.ds-card__linked__list[data-display="slideshow"]')||null,this.dotNav=this.container?.querySelector?.(".ds-dot-nav")||null,this.dotNavInstance=null,this.list&&this.dotNav&&this.init()))}init(){this.initDotNavigation()}initDotNavigation(){this.list&&this.dotNav&&(this.dotNavInstance=new i.A(this.list,this.dotNav,{dotSelector:".ds-dot-nav__dot",itemSelector:".ds-card__linked__post",defaultGap:32}))}}},92180:(t,e,s)=>{s.d(e,{A:()=>i}),s(8380),s(23057);class i{constructor(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.slideshow=t,this.dotNav=e,this.options={dotSelector:s.dotSelector||".dot",itemSelector:s.itemSelector||".item",defaultGap:s.defaultGap||10,customItemWidth:s.customItemWidth||null},this.slideshow&&this.dotNav&&this.init()}init(){this.updateDotNav(),this.slideshow.addEventListener("scroll",(()=>this.updateDotNav()),{passive:!0}),window.addEventListener("resize",(()=>this.updateDotNav()),{passive:!0})}updateDotNav(){const t=this.slideshow.querySelectorAll(this.options.itemSelector),e=this.dotNav.querySelectorAll(this.options.dotSelector);if(!t.length||!e.length)return;const s=this.slideshow.scrollLeft,i=this.slideshow.scrollWidth,o=this.slideshow.clientWidth;let a;if(0===s){const e=this.slideshow.querySelector(`${this.options.itemSelector}[data-active="true"]`);if(e){const s=e.getAttribute("data-index");if(s)a=parseInt(s,10);else{const s=Array.from(t);a=s.indexOf(e)+1}}}if(void 0===a){let d;d=this.options.customItemWidth?this.options.customItemWidth:t[0].offsetWidth;const r=getComputedStyle(this.slideshow),l=d+(parseFloat(r.gap)||parseFloat(r.columnGap
1)||parseFloat(r.gridColumnGap)||this.options.defaultGap);s+o>=i-1?a=e.length:(a=Math.round(s/l)+1,a=Math.max(1,Math.min(a,e.length)))}e.forEach(((t,e)=>{t.setAttribute("data-active",e+1===a?"true":"false")})),this.updateDotWindow(e,a)}updateDotWindow(t,e){if(!t||0===t.length)return;const s=t.length,i=parseInt(e,10);if(Number.isNaN(i))return;if(s<=5)return void t.forEach((t=>{t.setAttribute("data-show","true"),t.setAttribute("data-reduced","false")}));const o=Math.max(1,s-5+1);let a=i-Math.floor(2.5);a<1&&(a=1),a>o&&(a=o);const d=a+5-1,r=a>1,l=d<s;t.forEach((t=>{const e=parseInt(t.getAttribute("data-index"),10);if(Number.isNaN(e))return;const s=r&&e===a-1,i=l&&e===d+1;e>=a&&e<=d?(t.setAttribute("data-show","true"),t.setAttribute("data-reduced","false")):s||i?(t.setAttribute("data-show","true"),t.setAttribute("data-reduced","true")):(t.setAttribute("data-show","false"),t.setAttribute("data-reduced","false"))}))}reset(){this.slideshow&&(this.slideshow.scrollLeft=0),this.updateDotNav()}setActiveByIndex(t){const e=this.dotNav.querySelectorAll(this.options.dotSelector);if(!e.length)return;const s=parseInt(t,10);Number.isNaN(s)||(e.forEach(((t,e)=>{t.setAttribute("data-active",e+1===s?"true":"false")})),this.updateDotWindow(e,s))}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.