PageSourceSearch

https://sportland.ee/static/frontend/Scandiweb/pwa/en_GB/Magento_Theme/static/js/88.87707b01.chunk.js

js sportland.ee collected 2026-09-24 20:52:57 UTC 6,085 bytes, 1 lines download raw bytes

1(this["webpackJsonpsportland-theme"]=this["webpackJsonpsportland-theme"]||[]).push([[88],{1265:function(t,e,n){"use strict";var a=n(206);e.a=a.a},1879:function(t,e,n){"use strict";(function(t,a){var i=n(3),r=n(4),s=n(5),o=n(6),l=n(1),c=n(19),h=n(1265),u=n(2331),p=t.middleware((function(t){return{device:t.ConfigReducer.device}}),"SportlandTheme/Component/PageBuilderTabs/Container/mapStateToProps"),d=n(17).checkBEMProps,b=t.middleware(function(t){Object(s.a)(n,t);var e=Object(o.a)(n);function n(){var t;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return(t=e.call.apply(e,[this].concat(r))).containerProps=function(){var e=t.props;return{device:e.device,location:e.location}},t}return Object(r.a)(n,[{key:"render",value:function(){return d(a,u.a,Object.assign({},this.props,this.containerProps()))}}]),n}(t.Extensible(l.PureComponent)),"SportlandTheme/Component/PageBuilderTabs/Container");e.a=Object(h.a)(Object(c.b)(p,null)(b))}).call(this,n(11).default,n(1))},2331:function(t,e,n){"use strict";(function(t,a){var i=n(133),r=n(14),s=n(3),o=n(4),l=n(23),c=n(21),h=n(5),u=n(6),p=n(51),d=(n(912),n(17).checkBEMProps),b=t.middleware(function(t){Object(h.a)(n,t);var e=Object(u.a)(n);function n(){return Object(s.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"__construct",value:function(t){Object(l.a)(Object(c.a)(n.prototype),"__construct",this).call(this,t),this.state={tabIndex:0,tabList:{},tabsContent:{}},this.classTabActive="ui-state-active",this.tabs=this.props,this.handleTabClick=this.handleTabClick.bind(this),this.handlePopState=this.handlePopState.bind(this),this.contentRef=a.createRef()}},{key:"findToProp",value:function(t){if(t&&t.props&&t.props.to)return t.props.to;if(t&&t.to)return t.to;if(t&&t.children){var e=t.children;return this.findToProp(e)}if(t&&t.props&&t.props.children){var n=t.props.children;return this.findToProp(n)}return""}},{key:"getToAttribute",value:function(t){var e="A"===t.tagName?t:"A"===t.parentElement.tagName?t.parentElement:t;return"tab-header"===t.className&&t.childElementCount&&(e=t.children[0]),e.getAttribute("to")?this.stripLeadingSlash(e.getAttribute("to")):e.getAttribute("href")?this.stripLeadingSlash(e.getAttribute("href")):(e.childElementCount&&(e=e.children[0]),e.getAttribute("to")?this.stripLeadingSlash(e.getAttribute("to")):e.getAttribute("href")?this.stripLeadingSlash(e.getAttribute("href")):"")}},{key:"handlePopState",value:function(){this.setActiveTabAndUpdateUrl()}},{key:"setActiveTabAndUpdateUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.state.tabList.children,a=n;Array.isArray(n)||(a=[n]);var s=t;if(null===s){var o,l=/#tab-\d+/.test(location.hash)?location.hash.split("-"):[],c=Object(r.a)(l,2)[1],h=1,u=Object(i.a)(a);try{for(u.s();!(o=u.n()).done;){var p=o.value;if(Object.keys(p.props).length){if(!c||h===parseInt(c,10)){var d=p.props.children;s=this.stripLeadingSlash(this.findToProp(d));break}h++}}}catch(A){u.e(A)}finally{u.f()}}this.setState({tabIndex:s});var b,v=1,f=Object(i.a)(a);try{for(f.s();!(b=f.n()).done;){var y=b.value;if(Object.keys(y.props).length){var g=y.props.children,k=this.findToProp(g);if(this.stripLeadingSlash(k)===s){var m="#tab-".concat(v);window.location.hash!==m&&(e?window.history.pushState(null,null,m):window.history.replaceState(null,null,m));break}v++}}}catch(A){f.e(A)}finally{f.f()}}},{key:"handleTabClick",value:function(t){var e=this.props.device.isMobile;t.preventDefault();var n=this.getToAttribute(t.target);if(this.setActiveTabAndUpdateUrl(n,!0),e){var a=document.querySelector(".NavigationTabs"),i=document.querySelector(".Header"),r=(a?a.clientHeight:0)+(i?i.clientHeight:0),s=this.contentRef.current.getBoundingClientRect();window.scrollTo({top:window.scrollY+s.y-r,behavior:"smooth"})}}},{key:"componentDidMount",value:function(){var t=this,e=this.props.children;window.addEventListener("popstate",this.handlePopState),Object.entries(e).reduce((function(e,n){var a=Object(r.a)(n,2),i=(a[0],a[1]),s=i.props,o=i.props.className;return"tabs-navigation"===o&&t.setState({tabList:s},(function(){this.setActiveTabAndUpdateUrl()})),"tabs-content"===o&&t.setState({tabsContent:s}),e}),{})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("popstate",this.handlePopState)}},{key:"componentDidUpdate",value:function(t){var e=this.props.location,n=t.location;e.hash!==n.hash&&this.setActiveTabAndUpdateUrl()}},{key:"renderTabMenu",value:function(){var t=this,e=this.state,n=e.tabList,i=e.tabIndex;if(!Object.keys(n).length)return null;var r=n.children,s=r;return Array.isArray(r)||(s=[r]),s.map((function(e){var n;if(!Object.keys(e.props).length)return null;var r=e.key,s=e.props,o=e.props.children.props,l=e.props.className,c=null!==(n=o.to)&&void 0!==n?n:t.findToProp(o);return t.stripLeadingSlash(c)===i&&(l+=" ".concat(t.classTabActive)),d(a,"li",Object.assign({},t.noChildren(s),{className:l,key:r,onClick:function(e){return t.handleTabClick(e,r)}}),d(a,"h2",null,d(a,"a",Object.assign({},o,{key:r}))))}))}},{key:"renderTabItems",value:function(){var t=this.state,e=t.tabsContent,n=t.tabIndex;if(!Object.keys(e).length)return null;var i=e.children,r=i;return Array.isArray(i)||(r=[i]),r.map((function(t){var e=t.key,i=t.props,r=t.props,s=r["data-pb-style"],o=void 0===s?"":s,l=r.id,c="none";return"#".concat(l)===n&&(c="block"),d(a,"div",Object.assign({},i,{key:e,"data-pb-style":o,style:{display:c}}))}))}},{key:"stripLeadingSlash",value:function(t){return"/"===t.charAt(0)?t.substring(1):t}},{key:"render",value:function(){var t=this.state,e=t.tabsContent,n=t.tabList;return d(a,"div",this.noChildren(this.tabs),d(a,"ul",this.noChildren(n),this.renderTabMenu()),d(a,"div",Object.assign({ref:this.contentRef}
1,this.noChildren(e)),this.renderTabItems()))}}]),n}(t.Extensible(p.a)),"SportlandTheme/Component/PageBuilderTabs/Component");e.a=b}).call(this,n(11).default,n(1))},911:function(t,e,n){"use strict";n.r(e);var a=n(1879);n.d(e,"default",(function(){return a.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.