PageSourceSearch

https://www.dacbeachcroft.com/scripts/Tabbed-chunk.js?05590aad34502e55dbc0

js dacbeachcroft.com collected 2026-09-25 03:51:44 UTC 5,458 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9998],{3767:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});n(5374),n(3238),n(5849),n(5699),n(5610),n(7460),n(9785);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$el=e,console.log("tabbed"),this.tabs=this.$el.querySelectorAll(".tab-btn"),this.panels=this.$el.querySelectorAll(".tab-panel"),this.tabContainer=this.$el.querySelector(".tabs"),this.prevArrow=this.$el.querySelector(".tab-arrow.left"),this.nextArrow=this.$el.querySelector(".tab-arrow.right"),this.SCROLL_AMOUNT=200,this.activeTabIndex=0,this.init()}var e,n,a;return e=t,(n=[{key:"init",value:function(){var t=this;console.log("init"),this.tabs.length&&(console.log("after init"),this.bindEvents(),this.updateArrows(),this.switchTab(0),window.addEventListener("resize",(function(){t.updateArrows()})))}},{key:"switchTab",value:function(t){t<0||t>
1=this.tabs.length||(this.tabs.forEach((function(e,n){n===t?(e.classList.add("active"),e.setAttribute("aria-selected","true")):(e.classList.remove("active"),e.setAttribute("aria-selected","false"))})),this.panels.forEach((function(e,n){e.classList.toggle("active",n===t)})),this.activeTabIndex=t)}},{key:"changeTab",value:function(t){var e=this.$el.querySelectorAll('input[name="tabs"]'),n=this.$el.querySelectorAll(".tabs label"),i=Array.from(e).findIndex((function(t){return t.checked}));n[i="next"===t?Math.min(i+1,e.length-1):Math.max(i-1,0)].click()}},{key:"updateArrows",value:function(){if(this.tabContainer){var t,e,n,i,a,r,s=this.tabContainer.scrollWidth-this.tabContainer.clientWidth;if(s<=0)return null===(t=this.prevArrow)||void 0===t||t.classList.add("hidden"),void(null===(e=this.nextArrow)||void 0===e||e.classList.add("hidden"));this.tabContainer.scrollLeft<=5?null===(n=this.prevArrow)||void 0===n||n.classList.add("hidden"):null===(i=this.prevArrow)||void 0===i||i.classList.remove("hidden"),this.tabContainer.scrollLeft>=s-5?null===(a=this.nextArrow)||void 0===a||a.classList.add("hidden"):null===(r=this.nextArrow)||void 0===r||r.classList.remove("hidden")}}},{key:"scrollLeft",value:function(){this.tabContainer&&this.tabContainer.scrollBy({left:-this.SCROLL_AMOUNT,behavior:"smooth"})}},{key:"scrollRight",value:function(){this.tabContainer&&this.tabContainer.scrollBy({left:this.SCROLL_AMOUNT,behavior:"smooth"})}},{key:"startDrag",value:function(t){"mousedown"===t.type&&t.preventDefault();var e="touchstart"===t.type?t.touches[0].clientX:t.clientX;this.isDragging=!0,this.startX=e-this.tabContainer.offsetLeft,this.startScroll=this.tabContainer.scrollLeft,this.tabContainer.classList.add("grabbing")}},{key:"stopDrag",value:function(){this.isDragging&&(this.isDragging=!1,this.tabContainer.classList.remove("grabbing"))}},{key:"onDrag",value:function(t){if(this.isDragging){t.preventDefault();var e=2*(("touchmove"===t.type?t.touches[0].clientX:t.clientX)-this.tabContainer.offsetLeft-this.startX);this.tabContainer.scrollLeft=this.startScroll-e}}},{key:"bindEvents",value:function(){var t,e,n,i,a,r,s,o,l,c,h,u,d=this;
1console.log("bind evn"),this.tabs.forEach((function(t,e){t.addEventListener("click",(function(n){n.preventDefault(),d.switchTab(e);var i=t.offsetWidth,a=d.tabContainer.clientWidth,r=t.offsetLeft-a/2+i/2;d.tabContainer.scrollTo({left:Math.max(0,r),behavior:"smooth"})}))})),null===(t=this.nextArrow)||void 0===t||t.addEventListener("click",(function(){var t=d.activeTabIndex+1;if(t<d.tabs.length){d.switchTab(t);var e=d.tabs[t],n=e.offsetWidth,i=d.tabContainer.clientWidth,a=e.offsetLeft-i/2+n/2;d.tabContainer.scrollTo({left:Math.max(0,a),behavior:"smooth"})}})),null===(e=this.prevArrow)||void 0===e||e.addEventListener("click",(function(){var t=d.activeTabIndex-1;if(t>=0){d.switchTab(t);var e=d.tabs[t],n=e.offsetWidth,i=d.tabContainer.clientWidth,a=e.offsetLeft-i/2+n/2;d.tabContainer.scrollTo({left:Math.max(0,a),behavior:"smooth"})}})),null===(n=this.tabContainer)||void 0===n||n.addEventListener("scroll",(function(){d.updateArrows()})),null===(i=this.tabContainer)||void 0===i||i.addEventListener("mousedown",(function(t){return d.startDrag(t)})),null===(a=this.tabContainer)||void 0===a||a.addEventListener("mouseleave",(function(){return d.stopDrag(
1)})),null===(r=this.tabContainer)||void 0===r||r.addEventListener("mouseup",(function(){return d.stopDrag()})),null===(s=this.tabContainer)||void 0===s||s.addEventListener("mousemove",(function(t){return d.onDrag(t)})),null===(o=this.tabContainer)||void 0===o||o.addEventListener("touchstart",(function(t){return d.startDrag(t)}),{passive:!1}),null===(l=this.tabContainer)||void 0===l||l.addEventListener("touchmove",(function(t){return d.onDrag(t)}),{passive:!1}),null===(c=this.tabContainer)||void 0===c||c.addEventListener("touchend",(function(){return d.stopDrag()})),null===(h=this.tabContainer)||void 0===h||h.addEventListener("touchcancel",(function(){return d.stopDrag()})),null===(u=this.tabContainer)||void 0===u||u.addEventListener("dragstart",(function(t){return t.preventDefault()}))}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".tabbed").forEach((function(t){return new a(t)}))}));const r=a}}]);

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.