PageSourceSearch

https://capman.com/wp-content/plugins/capman-blocks/build/blocks/a…/view.js?ver=2926205b7b842161e0ec

js capman.com collected 2026-10-02 07:59:55 UTC 18,161 bytes, 1 lines download raw bytes

1(()=>{"use strict";function t(e,n=1){const o=`${e}-${n}`;return document.getElementById(o)?t(e,n+1):o}function e(t){if(0===t.children.length)return 0;const e=t.children[0],n=getComputedStyle(e),o=parseFloat(n.marginLeft),i=t.children[t.children.length-1],r=getComputedStyle(i);return o+parseFloat(r.marginRight)}function n(n,o,i){let r,l={},a=null;function s(t=!1){const e=r.details,n=function(t){var e;let n,o=!1,i=0,r=0,l=0,a=0,s=0,c=0;if(Math.floor(t.getInclusiveScrollWidth())>Math.floor(t.getInclusiveClientWidth())&&(o=!0),i=null!==(e=t.slides.length)&&void 0!==e?e:0,r=t.container.offsetWidth,l=t.container.offsetHeight,a=t.getInclusiveScrollWidth(),s=Math.ceil(a/r),Math.floor(t.getScrollLeft())>=0){c=Math.floor(t.getScrollLeft()/r);const e=a-r-2*t.getLeftOffset();t.getScrollLeft()>=e-1&&(c=s-1)}return n={hasOverflow:o,slideCount:i,containerWidth:r,containerHeight:l,scrollableAreaWidth:a,amountOfPages:s,currentPage:c},n}(r);r.details=n,t||function(t,e){const n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let o of n)if(!Object.prototype.hasOwnProperty.call(e,o)||t[o]!==e[o])return!1;return!0}(e,n)?t&&r.emit("detailsChanged"):r.emit("detailsChanged")}function c(){r.slides=Array.from(r.container.querySelectorAll(r.options.slidesSelector))}function d(){r.options.cssVariableContainer.style.setProperty("--slider-container-height",`${r.details.containerHeight}px`),r.options.cssVariableContainer.style.setProperty("--slider-container-width",`${r.details.containerWidth}px`),r.options.cssVariableContainer.style.setProperty("--slider-scrollable-width",`${r.details.scrollableAreaWidth}px`),r.options.cssVariableContainer.style.setProperty("--slider-slides-count",`${r.details.slideCount}`),r.options.cssVariableContainer.style.setProperty("--slider-x-offset",`${m()}px`),"function"==typeof r.options.targetWidth&&r.options.cssVariableContainer.style.setProperty("--slider-container-target-width",`${r.options.targetWidth(r)}px`)}function u(){r.container.setAttribute("data-has-overflow",r.details.hasOverflow?"true":"false"),r.options.rtl&&r.container.setAttribute("dir","rtl")}function h(){const t=r.container.getBoundingClientRect(),e=r.getScrollLeft(),n=r.slides;let o=0,i=!1;if(r.options.rtl){const i=r.getInclusiveScrollWidth()-e-r.getInclusiveClientWidth(),l=[];for(let e=n.length-1;e>=0;e--){const o=n[e].getBoundingClientRect(),r=Math.abs(o.left)-Math.abs(t.left)+i;l.push({slide:n[e],slideEnd:r})}let a=null,s=null;for(let t=0;t<l.length;t++){const e=Math.abs(l[t].slideEnd-i);(null===s||e<s)&&(s=e,a=l[t].slide)}o=a?n.indexOf(a):n.length-1}else{const l=Math.max(0,r.getInclusiveScrollWidth()-r.container.offsetWidth);if(n.length>0&&Math.floor(e)>=Math.floor(l)-1)o=n.length-1,i=!1;else for(let r=0;r<n.length;r++){const l=n[r].getBoundingClientRect().left-t.left+e+v();if(Math.floor(l)>=Math.floor(e)){o=r;break}r===n.length-1&&(i=!0)}}i&&(o=n.length-1);const l=r.activeSlideIdx;r.activeSlideIdx=o,l!==o&&r.emit("activeSlideChanged")}function f(t){const e=r.slides[t];e&&(a=t,function(t,e=null){const n=e||r.options.scrollBehavior,o=t.getBoundingClientRect(),i=r.container.getBoundingClientRect(),l=r.container.offsetWidth,a=r.container.scrollLeft,s=o.left-i.left+a,c=s+o.width,d=m();let u=null;u=Math.floor(s)<Math.floor(a)?Math.max(0,s-d):Math.floor(c)>Math.floor(a)+Math.floor(l)?c-l+d:0===Math.floor(s)?0:Math.max(0,s-d);const h=Math.max(0,r.getInclusiveScrollWidth()-l);r.slides.length>0&&t===r.slides[r.slides.length-1]?u=h:null!==u&&(u=Math.min(u,h)),null!==u&&setTimeout(t=>{r.emit("programmaticScrollStart"),r.container.scrollTo({left:t,behavior:n})},50,u)}(e))}function g(){return r.options.rtl?Math.abs(r.container.scrollLeft):r.container.scrollLeft}function v(){let t=0;if(r.slides.length>1){const e=r.slides[0].getBoundingClientRect(),n=r.slides[1].getBoundingClientRect();t=r.options.rtl?Math.abs(Math.floor(n.right-e.left)):Math.floor(n.left-e.right)}return t}function m(){let t=0;const e=r.container.getAttribute("data-full-width-offset");return e&&(t=parseInt(e)),Math.floor(t)}return r={emit:function(t){var e;l&&l[t]&&l[t].forEach(t=>{t(r)});const n=null===(e=null==r?void 0:r.options)||void 0===e?void 0:e[t];"function"==typeof n&&n(r)},moveToDirection:function(t="prev"){const e=r.options.scrollStrategy,n=r.container.scrollLeft,o=r.container.getBoundingClientRect(),i=r.container.offsetWidth;let l=n;const a=r.options.rtl?"prev"===t?"next":"prev":t;if("prev"===a?l=Math.max(0,n-r.container.offsetWidth):"next"===a&&(l=Math.min(r.getInclusiveScrollWidth(),n+r.container.offsetWidth)),"fullSlide"===e){let t=null;if(t="prev"===a?Math.max(0,l-v()):Math.min(r.getInclusiveScrollWidth(),l+v()),"next"===a){let e=!1;for(let i of r.slides){const r=i.getBoundingClientRect(),a=r.left-o.left+n,s=a+r.width;if(Math.floor(a)<Math.floor(l)&&Math.floor(s)>Math.floor(l)){t=a,e=!0;break}}if(e||(t=Math.min(l,r.getInclusiveScrollWidth()-r.container.offsetWidth)),t)if(Math.floor(t)>Math.floor(n)){const e=Math.floor(r.getInclusiveScrollWidth())-Math.floor(i);l=Math.min(t,e)}else l=Math.min(r.getInclusiveScrollWidth(),n+i)}else{let e=!1;for(let l of r.slides){const r=l.getBoundingClientRect(),a=r.left-o.left+n,s=a+r.width;if(Math.floor(a)<Math.floor(n)&&Math.floor(s)>Math.floor(n)){t=s-i,e=!0;break}}e||(t=Math.max(0,n-i)),t&&Math.floor(t)<Math.floor(n)&&(l=t)}}const s=l-m();Math.floor(s)>=0&&(l=s),r.emit("programmaticScrollStart"),r.container.style.scrollBehavior=r.options.scrollBehavior,r.container.scrollLeft=l,setTimeout(()=>r.container.style.scrollBehavior="",50)},canMoveToSlide:function(t){if(t<0||t>=r.slides.length)return!1;if(t===r.activeSlideIdx)return!1;const e=(r.options.rtl,t<r.activeSlideIdx?"backwards":"forwards"),n=r.container.getBoundingClientRect(),o=r.getScrollLeft(),i=r.details.containerWidth;return r.slides.some((t,l)=>{if(l===r.activeSlideIdx)return!1;const a=t.getBoundingClientRect(),s=a.left-n.left+o,c=s+a.width;return r.options.rtl?!(0!==o||!r.details.hasOverflow)||"forwards"===e&&l>r.activeSlideIdx&&Math.floor(s)<Math.floor(o)||"backwards"===e&&l<r.activeSlideIdx&&Math.floor(c)>Math.floor(o+i):"forwards"===e&&l>r.activeSlideIdx&&Math.floor(c)>Math.floor(o+i)||"backwards"===e&&l<r.activeSlideIdx&&Math.floor(s)<Math.floor(o)})},moveToSlide:f,moveToSlideInDirection:function(t){null===a&&h();const e=null!=a?a:r.activeSlideIdx;"prev"===t?e>0&&f(e-1):"next"===t&&e<r.slides.length-1&&f(e+1)},snapToClosestSlide:function(t="prev"){var e,n,o,i;const{slides:l,options:s,container:c}=r,{rtl:d,emulateScrollSnapMaxThreshold:u=10,scrollBehavior:h="smooth"}=s,f=d?"prev"===t:"next"===t,v=g(),p=c.getBoundingClientRect(),S=d?-1:1,b=m(),M=[...l].map((t,e)=>{const{width:n}=t.getBoundingClientRect(),o=t.getBoundingClientRect().left-p.left+v,i=o-b,r=Math.min(i+n/2,i+u);return{index:e,start:o-b,trigger:r}});let x=null,w=null;if(f){const t=M.find(t=>v<=t.trigger);x=null!==(e=null==t?void 0:t.start)&&void 0!==e?e:null,w=null!==(n=null==t?void 0:t.index)&&void 0!==n?n:null}else{const t=[...M].reverse().find(t=>v>=t.trigger);x=null!==(o=null==t?void 0:t.start)&&void 0!==o?o:null,w=null!==(i=null==t?void 0:t.index)&&void 0!==i?i:null}if(null==x)return;null!==w&&(a=w);let y=Math.max(0,Math.floor(x))*S;const C=Math.max(0,r.getInclusiveScrollWidth()-c.offsetWidth);y=d?Math.max(y,-C):Math.min(y,C),c.scrollTo({left:y,behavior:h})},getInclusiveScrollWidth:function(){return r.container.scrollWidth+e(r.container)},getInclusiveClientWidth:function(){return r.container.clientWidth+e(r.container)},getLeftOffset:m,getGapSize:v,getScrollLeft:g,setScrollLeft:function(t){r.container.scrollLeft=r.options.rtl?-t:t},setActiveSlideIdx:h,on:function(t,e){l[t]||(l[t]=[]),l[t].push(e)},options:o},function(){r.container=n;let e=n.getAttribute("id");null===e&&(e=t("overflow-slider"),n.setAttribute("id",e)),c(),r.slides.forEac
1h(t=>{t.style.transition="none"}),s(!0),h(),r.on("contentsChanged",()=>{c(),s(),h()}),r.on("containerSizeChanged",()=>s());let o=0;if(r.on("scroll",()=>{o&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(()=>{s(),h()})}),r.on("nativeScrollStart",()=>{a=null}),function(){let t,e,n;new MutationObserver(()=>r.emit("contentsChanged")).observe(r.container,{childList:!0}),new ResizeObserver(()=>r.emit("containerSizeChanged")).observe(r.container);let o=r.container.scrollLeft,i=r.container.scrollLeft,l=r.container.scrollLeft,s=!1,c=!1,d=!1;r.container.addEventListener("scroll",()=>{const e=r.container.scrollLeft;Math.floor(o)!==Math.floor(e)&&(s||(s=!0,r.emit("scrollStart")),o=e,clearTimeout(t),t=setTimeout(()=>{s=!1,r.emit("scrollEnd")},50),r.emit("scroll")),c&&u()});const u=()=>{const t=r.container.scrollLeft;Math.floor(i)===Math.floor(t)||d||(c||(r.emit("nativeScrollStart"),c=!0),r.emit("nativeScroll"),i=t,clearTimeout(e),e=setTimeout(()=>{c=!1,r.emit("nativeScrollEnd"),l=i},50))};r.container.addEventListener("touchmove",u),r.container.addEventListener("mousewheel",u),r.container.addEventListener("wheel",u),r.on("programmaticScrollStart",()=>{d=!0}),r.container.addEventListener("scroll",()=>{const t=r.container.scrollLeft;Math.floor(l)!==Math.floor(t)&&!c&&d&&(l=t,clearTimeout(n),n=setTimeout(()=>{d=!1,r.emit("programmaticScrollEnd"),i=l},50),r.emit("programmaticScroll"))}),r.on("programmaticScrollStart",()=>{r.container.style.scrollSnapType="none"}),r.on("nativeScrollStart",()=>{r.container.style.scrollSnapType=""});let h=!1;r.container.addEventListener("mousedown",()=>{h=!0,a=null}),r.container.addEventListener("touchstart",()=>{h=!0,a=null},{passive:!0}),r.container.addEventListener("focusin",t=>{if(h)return void(h=!1);if(h=!1,!r.details.hasOverflow)return;const e=t.target;let n=e;for(;n.parentElement!==r.container;){if(!n.parentElement)return;n=n.parentElement}r.emit("programmaticScrollStart"),setTimeout(()=>{!function(t,e){const n=r.options.rtl,o=r.container.getBoundingClientRect(),i=r.container.offsetWidth,l=t.getBoundingClientRect(),a=r.container.scrollLeft,s=l.left-o.left,c=l.right-o.right;if(s>=-1&&c<=1)return r.container.style.scrollSnapType="",void r.emit("programmaticScrollEnd");let d;if(l.width<=i)d=n?a+c:a+s;else if(e!==t){const t=e.getBoundingClientRect(),i=t.left-o.left,l=t.right-o.right;if(i>=-1&&l<=1)return r.container.style.scrollSnapType="",void r.emit("programmaticScrollEnd");t.width,d=n?a+l:a+i}else d=n?a+c:a+s;r.emit("programmaticScrollStart"),r.container.scrollTo({left:d,behavior:"auto"})}(n,e),r.emit("focusScroll")},50)})}(),u(),d(),i){for(const t of i)t(r);s(),h(),d(),r.emit("pluginsLoaded")}r.on("detailsChanged",()=>{u(),d()}),r.emit("created"),r.slides.forEach(t=>{t.style.removeProperty("transition")}),r.container.setAttribute("data-ready","true")}(),r}function o(t,e,o){try{if(!(t instanceof Element))throw new Error("Container must be HTML element, found "+typeof t);const i={cssVariableContainer:t,scrollBehavior:"smooth",scrollStrategy:"fullSlide",slidesSelector:":scope > *",emulateScrollSnap:!1,emulateScrollSnapMaxThreshold:64,rtl:!1},r=Object.assign(Object.assign({},i),e);return window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(r.scrollBehavior="auto"),n(t,r,o)}catch(t){console.error(t)}}function i(t){var e;const n=null!==(e=null==t?void 0:t.draggedDistanceThatPreventsClick)&&void 0!==e?e:20;return t=>{let e=!1,o=0,i=0,r=!1,l=!1,a=!1;if(t.container.setAttribute("data-has-drag-scrolling","true"),window.addEventListener("mousedown",n=>{l=!1,t.details.hasOverflow&&t.container.contains(n.target)&&(e=!0,o=n.pageX-t.container.getBoundingClientRect().left,i=t.container.scrollLeft,t.container.style.cursor="grabbing",t.container.style.scrollBehavior="auto",n.preventDefault(),n.stopPropagation())}),window.addEventListener("mousemove",s=>{if(!t.details.hasOverflow)return void(l=!1);if(!e)return void(l=!1);s.preventDefault(),l||(l=!0,t.emit("programmaticScrollStart"));const c=s.pageX-t.container.getBoundingClientRect().left-o,d=i-c;a=!0,Math.floor(t.container.scrollLeft)!==Math.floor(d)&&(r=t.container.scrollLeft<d),t.container.scrollLeft=d;const u=Math.abs(c),h=t.container.querySelectorAll(t.options.slidesSelector),f=u>n?"none":"";h.forEach(t=>{t.style.pointerEvents=f})}),window.addEventListener("mouseup",()=>{t.details.hasOverflow?(e=!1,t.container.style.cursor="",setTimeout(()=>{l=!1,t.container.style.scrollBehavior="",t.container.querySelectorAll(t.options.slidesSelector).forEach(t=>{t.style.pointerEvents=""})},50)):l=!1}),t.options.emulateScrollSnap){const n=()=>{a&&!e&&(a=!1,t.snapToClosestSlide(r?"next":"prev"))};t.on("programmaticScrollEnd",n),window.addEventListener("mouseup",n)}}}const r={buttonPrevious:"Previous items",buttonNext:"Next items"},l={prev:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1<path d="M8.6 3.4l-7.6 7.6 7.6 7.6 1.4-1.4-5-5h12.6v-2h-12.6l5-5z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 3.4l-1.4 1.4 5 5h-12.6v2h12.6l-5 5 1.4 1.4 7.6-7.6z"/></svg>'},a={navContainer:"overflow-slider__arrows",prevButton:"overflow-slider__arrows-button overflow-slider__arrows-button--prev",nextButton:"overflow-slider__arrows-button overflow-slider__arrows-button--next"};!function(){document.addEventListener("DOMContentLoaded",()=>{t()});const t=()=>{e(),n(),s(),c()},e=()=>{const t=document.querySelector(".js-anchor-navigation-desktop-menu");if(t){const n=document.querySelector(".js-anchor-navigation-desktop-prev"),s=document.querySelector(".js-anchor-navigation-desktop-next");new o(t,{},[i(),(e={icons:{prev:'<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6zm-6 0L13 16.59 8.42 12 13 7.41 11.59 6l-6 6z"/></svg>',next:'<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6zm6 0L11 7.41 15.58 12 11 16.59 12.41 18l6-6z"/></svg>'},texts:{buttonPrevious:"Scroll navigation left",buttonNext:"Scroll navigation right"},containerPrev:n,containerNext:s},t=>{var n,o,i,s,c,d,u;const h={texts:Object.assign(Object.assign({},r),(null==e?void 0:e.texts)||[]),icons:Object.assign(Object.assign({},l),(null==e?void 0:e.icons)||[]),classNames:Object.assign(Object.assign({},a),(null==e?void 0:e.classNames)||[]),container:null!==(n=null==e?void 0:e.container)&&void 0!==n?n:null,containerPrev:null!==(o=null==e?void 0:e.containerPrev)&&void 0!==o?o:null,containerNext:null!==(i=null==e?void 0:e.containerNext)&&void 0!==i?i:null,movementType:null!==(s=null==e?void 0:e.movementType)&&void 0!==s?s:"view"},f=document.createElement("div");f.classList.add(h.classNames.navContainer);const g=document.createElement("button");g.setAttribute("class",h.classNames.prevButton),g.setAttribute("type","button"),g.setAttribute("aria-label",h.texts.buttonPrevious),g.setAttribute("aria-controls",null!==(c=t.container.getAttribute("id"))&&void 0!==c?c:""),g.setAttribute("data-type","prev"),g.innerHTML=t.options.rtl?h.icons.next:h.icons.prev,g.addEventListener("click",()=>{"true"===g.getAttribute("data-has-content")&&("slide"===h.movementType?t.moveToSlideInDirection("prev"):t.moveToDirection("prev"))});const v=document.createElement("button");v.setAttribute("class",h.classNames.nextButton),v.setAttribute("type","button"),v.setAttribute("aria-label",h.texts.buttonNext),v.setAttribute("aria-controls",null!==(d=t.container.getAttribute("id"))&&void 0!==d?d:""),v.setAttribute("data-type","next"),v.innerHTML=t.options.rtl?h.icons.prev:h.icons.next,v.addEventListener("click",()=>{"true"===v.getAttribute("data-has-content")&&("slide"===h.movementType?t.moveToSlideInDirection("next"):t.moveToDirection("next"))}),f.appendChild(g),f.appendChild(v);const m=()=>{const e=t.getScrollLeft(),n=t.getInclusiveScrollWidth(),o=t.getInclusiveClientWidth();0===Math.floor(e)?g.setAttribute("data-has-content","false"):g.setAttribute("data-has-content","true"),Math.abs(Math.floor(e+o)-Math.floor(n))<=1?v.setAttribute("data-has-content","false"):v.setAttribute("data-has-content","true")};
1h.containerNext&&h.containerPrev?(h.containerPrev.appendChild(g),h.containerNext.appendChild(v)):h.container?h.container.appendChild(f):null===(u=t.container.parentNode)||void 0===u||u.insertBefore(f,t.container.nextSibling),m(),t.on("scrollEnd",m),t.on("contentsChanged",m),t.on("containerSizeChanged",m)})])}var e},n=()=>{const t=document.querySelector(".js-anchor-navigation-mobile-toggle"),e=document.querySelector(".js-anchor-navigation-mobile-menu"),n=e.querySelectorAll(".em-block-anchor-navigation-item");t&&e&&t.addEventListener("click",()=>{const n="true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",!n),e.classList.toggle("is-open",!n)}),n.forEach(n=>{n.addEventListener("click",()=>{t.setAttribute("aria-expanded","false"),e.classList.remove("is-open")})})},s=()=>{const t=document.querySelector(".js-anchor-navigation"),e=document.querySelector(".js-anchor-navigation-sticker"),n=e.parentElement;t.parentElement.style.zIndex=5;const o=document.createElement("div");o.style.height="0px",n.insertBefore(o,e),new IntersectionObserver(([t])=>{e.classList.toggle("stickied",!t.isIntersecting)},{threshold:[0],rootMargin:"0px 0px 0px 0px"}).observe(o)},c=()=>{const t=document.querySelector(".js-anchor-navigation-desktop-menu"),e=document.querySelector(".js-anchor-navigation-mobile-menu"),n=t=>{const e=[],n=document.querySelector(".js-anchor-navigation-mobile-toggle");t.forEach(t=>{const n=t.getAttribute("href");if(n&&n.startsWith("#")&&n.length>1){const o=document.querySelector(n);o&&e.push({anchor:t,section:o})}});const o=new IntersectionObserver(t=>{t.forEach(t=>{const o=e.find(e=>e.section===t.target)?.anchor;o&&t.isIntersecting&&(e.forEach(({anchor:t})=>{t.classList.remove("is-active")}),o.classList.add("is-active"),n)&&(n.querySelector(".js-anchor-navigation-mobile-toggle-text").innerText=o.innerText.replace(/\s+/g," ").trim())})},{rootMargin:"-40% 0px -40% 0px",threshold:0});e.forEach(({section:t})=>{o.observe(t)})},o=t.querySelectorAll(".em-block-anchor-navigation-item"),i=e.querySelectorAll(".em-block-anchor-navigation-item");n(o),n(i)}}()})();

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.