1"use strict";(self.webpackChunkabem=self.webpackChunkabem||[]).push([[323],{30323(w,a,o){o.r(a),o.d(a,{ion_segment_view:()=>c});var m=o(10467),s=o(48225),d=o(4594);const c=class{constructor(t){(0,s.r)(this,t),this.ionSegmentViewScroll=(0,s.c)(this,"ionSegmentViewScroll",7),this.scrollEndTimeout=null,this.isTouching=!1,this.disabled=!1,this.swipeGesture=!0}handleScroll(t){var e;const{scrollLeft:l,scrollWidth:i,clientWidth:h}=t.target,n=i-h,r=((0,d.i)(this.el)?-1:1)*(l/n);this.ionSegmentViewScroll.emit({scrollRatio:r,isManualScroll:null===(e=this.isManualScroll)||void 0===e||e}),this.resetScrollEndTimeout()}handleScrollStart(){this.scrollEndTimeout&&(clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=null),this.isTouching=!0}handleTouchEnd(){this.isTouching=!1}resetScrollEndTimeout(){this.scrollEndTimeout&&(clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=null),this.scrollEndTimeout=setTimeout(()=>{this.checkForScrollEnd()},100)}checkForScrollEnd(){this.isTouching||(this.isManualScroll=void 0)}setContent(t){var e=this;return(0,m.A)(function*(l,i=!0){const n=e.getSegmentContents().findIndex(g=>g.id===l);if(-1===n)return;e.isManualScroll=!1,e.resetScrollEndTimeout();const b=n*e.el.offsetWidth;e.el.scrollTo({top:0,left:((0,d.i)(e.el)?-1:1)*b,behavior:i?"smooth":"instant"})}).apply(this,arguments)}getSegmentContents(){return Array.from(this.el.querySelectorAll("ion-segment-content"))}render(){const{disabled:t,isManualScroll:e,swipeGesture:l}=this;return(0,s.h)(s.d,{key:"2a6e0a1046af75b1fa0eed20a5fbbb4634480297",class:{"segment-view-disabled":t,"segment-view-scroll-disabled":!1===e,"segment-view-swipe-disabled":!1===l}},(0,s.h)("slot",{key:"644b60d179d0de3fa204e3bef26a3503ceeaf1d6"}))}get el(){return(0,s.g)(this)}};c.style={ios:":host{display:-ms-flexbox;display:flex;height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled),:host(.segment-view-swipe-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}",md:":host{display:-ms-flexbox;display:flex;height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled),:host(.segment-view-swipe-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}"}}}]);
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.