PageSourceSearch

https://www.fitnessfirst.com/Assets/fitness-first/assets/offcanvas-0e438159.js

js fitnessfirst.com collected 2026-10-01 14:02:05 UTC 4,114 bytes, 5 lines download raw bytes

1import{z as M,a1 as x}from"./forms-8750289c.js";import{r as z,a as B,b as F,c as R}from"./selector-engine-8d5ee953.js";import{r as W,a as Y,b as j}from"./scrollbar-a436c1dd.js";import{r as G}from"./component-functions-3ad114e1.js";function Q(c,h){for(var n=0;n<h.length;n++){const e=h[n];if(typeof e!="string"&&!Array.isArray(e)){for(const i in e)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(e,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>e[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};/*!
2  * Bootstrap offcanvas.js v5.3.2 (https://getbootstrap.com/)
3  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5  */(function(c,h){(function(n,e){c.exports=e(z(),B(),F(),W(),G(),Y(),R(),j())})(x,function(n,e,i,l,N,D,f,_){const S="offcanvas",o=".bs.offcanvas",u=".data-api",T=`load${o}${u}`,C="Escape",d="show",m="showing",p="hiding",v="offcanvas-backdrop",E=".offcanvas.show",O=`show${o}`,y=`shown${o}`,I=`hide${o}`,g=`hidePrevented${o}`,b=`hidden${o}`,L=`resize${o}`,$=`click${o}${u}`,P=`keydown.dismiss${o}`,V='[data-bs-toggle="offcanvas"]',q={backdrop:!0,keyboard:!0,scroll:!1},K={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class r extends n{constructor(t,s){super(t,s),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return q}static get DefaultType(){return K}static get NAME(){return S}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||e.trigger(this._element,O,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new _().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(m);const A=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(d),this._element.classList.remove(m),e.trigger(this._element,y,{relatedTarget:t})};this._queueCallback(A,this._element,!0)}hide(){if(!this._isShown||e.trigger(this._element,I).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(p),this._backdrop.hide();const s=()=>{this._element.classList.remove(d,p),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new _().reset(),e.trigger(this._element,b)};this._queueCallback(s,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){e.trigger(this._element,g);return}this.hide()},s=!!this._config.backdrop;return new l({className:v,isVisible:s,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:s?t:null})}_initializeFocusTrap(){return new D({trapElement:this._element})}_addEventListeners(){e.on(this._element,P,t=>{if(t.key===C){if(this._config.keyboard){this.hide();return}e.trigger(this._element,g)}})}static jQueryInterface(t){return this.each(function(){const s=r.getOrCreateInstance(this,t);if(typeof t=="string"){if(s[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);s[t](this)}})}}return e.on(document,$,V,function(a){const t=i.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),f.isDisabled(this))return;e.one(t,b,()=>{f.isVisible(this)&&this.focus()});const s=i.findOne(E);s&&s!==t&&r.getInstance(s).hide(),r.getOrCreateInstance(t).toggle(this)}),e.on(window,T,()=>{for(const a of i.find(E))r.getOrCreateInstance(a).show()}),e.on(window,L,()=>{for(const a of i.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(a).position!=="fixed"&&r.getOrCreateInstance(a).hide()}),N.enableDismissTrigger(r),f.defineJQueryPlugin(r),r})})(w);var k=w.exports;const J=M(k),et=Q({__proto__:null,default:J},[k]);export{et as o};

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.