PageSourceSearch

https://ccxa.ca/wp-content/themes/ccxa/dist/js/src_js_modules_pb-r…abs_index_js.c8f7997b6edced41aa21.bundle.js

js ccxa.ca collected 2026-10-02 09:56:23 UTC 5,194 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkccxa=self.webpackChunkccxa||[]).push([["src_js_modules_pb-row-tabs_index_js"],{
1"./src/js/modules/pb-row-tabs/index.js":(t,e,n)=>{n.r(e),n.d(e,{default:()=>_});var i=n("./node_modules/eventemitter2/lib/eventemitter2.js"),r=n.n(i),s=n("./src/js/utils/dom.js"),o=n("./src/js/utils/listener.js");function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(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)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function f(t,e){return!e||"object"!=((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof e?a(t):e;var n}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function b(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}const y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(u,t);var e,n,i,r=d(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=r.call(this)).el=t,e.buttons=b((0,s.$$)('[role*="tab"]',e.el)),e._selectedItem=null,e._value=null,e._onClick=e._onClick.bind(a(e)),e.init(),e}return e=u,(n=[{key:"init",value:function(){this._selectedItem=this.buttons.find((function(t){return"true"===t.getAttribute("aria-selected")})),this._selectedItem&&(this._value=this._selectedItem.getAttribute("aria-controls")),this._bindEvents()}},{key:"destroy",value:function(){this._unbindEvents(),this.el=null,this.buttons=null,this._selectedItem=null,this._value=null,this._onClick=null}},{key:"_bindEvents",value:function(){this.buttons&&(0,o.on)(this.buttons,"click",this._onClick)}},{key:"_unbindEvents",value:function(){this.buttons&&(0,o.S1)(this.buttons,"click",this._onClick)}},{key:"_onClick",value:function(t){t&&(t.preventDefault(),t.stopImmediatePropagation());var e=t.currentTarget;if(e!==this._selectedItem){if(this._selectedItem&&this._selectedItem.setAttribute("aria-selected",!1),this._value){var n=(0,s.$)("#".concat(this._value));n&&n.setAttribute("aria-hidden",!0)}this._selectedItem=e,this._selectedItem.setAttribute("aria-selected",!0),this._value=this._selectedItem.getAttribute("aria-controls");var i=(0,s.$)("#".concat(this._value));i&&i.setAttribute("aria-hidden",!1),this.emit("change",this._value)}}},{key:"selectedItem",get:function(){return this._selectedItem}},{key:"value",get:function(){return this._value}}])&&l(e.prototype,n),i&&l(e,i),u}(r());function v(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)}}const _=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.emitter=n,this.tablist=(0,s.$)(".pb-row-tabs__tablist",this.el),this._onTabListChange=this._onTabListChange.bind(this)}var e,n,i;return e=t,(n=[{key:"init",value:function(){this.tablist&&(this.tablist=new y(this.tablist))}},{key:"destroy",value:function(){this.tablist&&this.tablist.destroy(),this.el=null,this.emitter=null,this.tablist=null,this._onTabListChange=null}},{key:"start",value:function(){this._bindEvents()}},{key:"stop",value:function(){this._unbindEvents()}},{key:"_bindEvents",value:function(){this.tabs&&this.tabs.on("change",this._onTabListChange)}},{key:"_unbindEvents",value:function(){this.tabs&&this.tabs.on("change",this._onTabListChange)}},{key:"_onTabListChange",value:function(){this.emitter.emit("SiteScroll.update")}}])&&v(e.prototype,n),i&&v(e,i),t}()}
1}]);
2//# sourceMappingURL=src_js_modules_pb-row-tabs_index_js.c8f7997b6edced41aa21.bundle.js.map

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.