PageSourceSearch

https://robotmaker.ai/assets/s1/vta/scripts/background-bokeh.69d6f94a4199b79eb903.js

js robotmaker.ai collected 2026-10-05 13:44:03 UTC 4,820 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunknew_bedford_framework=globalThis.webpackChunknew_bedford_framework||[]).push([[9983],{46418:(t,e,o)=>{o.d(e,{A:()=>c});o(94226);var s=o(21339),n=o(24911),r=o(86320),i=o(73864),l=o(52748);const a="squarespace-bgfx-prefer-paused",u=["startColor","endColor","baseColor","backgroundColor","imageTint","patternColor","color1","color2","color3","color4"];class c extends n.A{isDestroyed=!1;constructor(t,e){super(),this.node=t,this.section=t.closest("section");const{currentStyles:o}=this.section.dataset;this.currentStyles=JSON.parse(o),this.currentGenerative=this.currentStyles.generative||{},this.initComponent(t,e),this.component.isSupported&&(this.initButtons(),this.bindListeners(),l._.activeControllers.push(this))}initComponent(t,e){const o=t.querySelector(".background-fx-canvas"),n=this.getResolvedGenerativeContext({pixelRatio:Math.min(1.5,devicePixelRatio),...this.currentGenerative});if(l._.componentCache)return this.component=l._.componentCache,this.component.unbindListeners(),this.component.attach(o),this.component.setProps(n),void this.component.refresh();this.component=new s.A(e,o,n,{reduceMotion:i.oZ||!!localStorage.getItem(a)})}initButtons(){const[t,e]=this.section.querySelectorAll(".background-pause-button");this.pauseButton=t,this.playButton=e,this.pauseButton.addEventListener("click",this.onPauseButtonClick),this.playButton.addEventListener("click",this.onPauseButtonClick),this.updateButtons()}onPauseButtonClick=()=>{var t;this.component.togglePaused(),(t=this.component.isPaused)?localStorage.setItem(a,t):localStorage.removeItem(a),this.component.isPaused&&l._.activeControllers.forEach(t=>{t!==this&&t.forcePaused()}),this.updateButtons()};forcePaused(){this.component.setPaused(!0),this.updateButtons()}updateButtons(){const{autoUpdate:t,isPaused:e}=this.component,o=this.pauseButton===document.activeElement,s=this.playButton===document.activeElement,n=t&&!e,r=t&&e;this.pauseButton.classList.toggle("visible",n),this.playButton.classList.toggle("visible",r),o&&r?this.playButton.focus():s&&n&&this.pauseButton.focus()}resolveColorProperties(t,e){return Object.fromEntries(Object.entries(t).filter(t=>{let[o]=t;return e.includes(o)}).map(t=>{let[e,o]=t;return[e,(0,r.jz)(o)]}))}getResolvedGenerativeContext=t=>{const e=this.resolveColorProperties(t,u);return{...t,...e}};handleUpdateThemeStyles=()=>{this.component.setProps(this.getResolvedGenerativeContext(this.currentGenerative))};bindListeners(){window.Y?.Global?.on("colors:updateThemeStyles",this.handleUpdateThemeStyles)}unbindListeners(){window.Y?.Global?.detach("colors:updateThemeStyles",this.handleUpdateThemeStyles)}unbindButtons(){this.playButton&&(this.pauseButton.removeEventListener("click",this.onPauseButtonClick),this.playButton.removeEventListener("click",this.onPauseButtonClick))}destroyComponent(){this.component&&this.component.destroy()}destroy(){this.isDestroyed||(this.isDestroyed=!0,this.unbindButtons(),this.unbindListeners(),this.destroyComponent(),l._.activeControllers.splice(l._.activeControllers.indexOf(this),1))}}},51988:(t,e,o)=>{o.r(e),o.d(e,{default:()=>i});var s=o(9025),n=o(46418);class r extends n.A{constructor(t){super(t,s.A)}}const i=t=>new r(t)},52748:(t,e,o)=>{o.d(e,{_:()=>s});const s={activeControllers:[],componentCache:null}},86320:(t,e,o)=>{o.d(e,{jz:()=>p,ww:()=>m});var s=o(37706);const n="SITE_PALETTE_COLOR",r="CUSTOM_COLOR",i="THEME_COLOR";const l=t=>t&&t.type===i,a=t=>t&&t.type===n,u=t=>t&&t.type===r,c=t=>{const e=function(t){let{saturation:e,lightness:o}=t;return e*=100,o*=100,{...t,saturation:e,lightness:o}}(t.customColor.hslaValue),o={userFormat:t.customColor.userFormat,values:e},n=(0,s.e)(o);return{type:r,customColor:n}},h=t=>({colorName:t.id??t.colorName,alphaModifier:t.alpha??t.alphaModifier??1}),d=new WeakMap;function p(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.documentElement;if(!t||!o)return null;const{customColor:s,sitePaletteColor:n}=t,r=function(t){if(d.has(t))return d.get(t);const e=getComputedStyle(t);return d.set(t,e),e}(o);if(l(t)&&e)return r.getPropertyValue(e);if(a(t)){const{colorName:t,alphaModifier:e}=h(n);return`hsla(${r.getPropertyValue(`--${t}-hsl`)},${e})`}if(u(t)){return(s?.hslaValue?c(t):t).customColor}return null}function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;const{customColor:o,sitePaletteColor:s}=t;if(l(t)&&e)return`var(${e})`;if(a(t)){const{colorName:t,alphaModifier:e}=h(s);return`hsla(var(--${t}-hsl),${e})`}if(u(t)){return(o?.hslaValue?c(t):t).customColor}return null}}}]);
2//# sourceMappingURL=https://sourcemaps.squarespace.net/new-bedford-framework/sourcemaps/2682b5e45e3422a77472bbbea670f6a2/scripts/background-bokeh.69d6f94a4199b79eb903.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.