PageSourceSearch

https://www.pasadenabusinessassociation.com/assets/loadWebsiteStyles-C8H1kIZH.js

js pasadenabusinessassociation.com collected 2026-10-07 06:56:16 UTC 4,575 bytes, 1 lines download raw bytes

1import{r as v,y as N,z as S,A as E}from"./index-B_8I8yFc.js";const x="ACCOUNT_WEBSITE",I="BUSINESS_PAGE",y="businessPages",B=e=>{const r=localStorage.getItem(y);if(!r)return null;const n=JSON.parse(r).find(s=>s.subdomain===e);return n?{businessPageSettings:n.data,rowVersion:n.rowVersion}:null},T=(e,r)=>{const a=localStorage.getItem(y)||"[]";let n=JSON.parse(a);if(!r){n=n.filter(s=>s.subdomain===e),localStorage.setItem(y,n);return}n.some(s=>s.subdomain===e)?n.forEach(s=>{s.subdomain===e&&(s.data=r.businessPage,s.rowVersion=r.rowVersion)}):n.push({subdomain:e,data:r.businessPage,rowVersion:r.rowVersion});try{localStorage.setItem(y,JSON.stringify(n))}catch(s){console.error(`There was an error while caching Public Access Info (${JSON.stringify(r).length} chars long):`,s.message)}},O=()=>{localStorage.removeItem(y)},H=()=>(v.useEffect(()=>{(async()=>{await N(),O(),S("Success!"),window.location.href=window.location.origin})()},[]),null),z=({templateAndColors:e,defaults:r})=>{var b,m,h,p;const a=document.createElement("link");if(a.rel="stylesheet",a.href=`/css/tenantWebsite/sharedStyle.css?v=${"1.0.137.07-release".replaceAll(".","_")}`,document.head.appendChild(a),e){const t=document.createElement("link");t.rel="stylesheet",t.href=`/css/tenantWebsite/${e.websiteTemplate}.css?v=${"1.0.137.07-release".replaceAll(".","_")}`,document.head.appendChild(t)}const n=E.find(t=>e.websiteTemplate===t.value),s=n.value==="personalPortfolio"?"personal-portfolio":n.value;e.colors.forEach(t=>{if(n){const o=n.colors.find(i=>t.colorOptionName===i.colorOptionName);o&&(o.colorOptionName==="Navbar Thickness"?document.body.style.setProperty(o.varName,`${t.value}px`):o.colorOptionName==="Hover Border Radius"||o.colorOptionName==="Hover Text Underline"?o.colorOptionName==="Hover Border Radius"&&t.value!==null?(document.body.style.setProperty(`--tenant-website-${s}-navbar-primary-hover-radius`,`${t.value}px`),document.body.style.setProperty(`--tenant-website-${s}-navbar-primary-hover-text-underline`,"none")):o.colorOptionName==="Hover Text Underline"&&t.value!==null&&(document.body.style.setProperty(`--tenant-website-${s}-navbar-primary-hover-text-underline`,`${t.value}`),document.body.style.setProperty(`--tenant-website-${s}-navbar-primary-hover-radius`,"0px"),document.body.style.setProperty(`--tenant-website-${s}-header-bg-color-hover`,"none"),document.body.style.setProperty(`--tenant-website-${s}-secondary-bg-color-hover`,"none")):document.body.style.setProperty(o.varName,t.color))}}),(b=e.buttons)==null||b.forEach(t=>{var o;if(n){const i=(o=n.buttons)==null?void 0:o.find(w=>t.colorOptionName===w.colorOptionName);i&&document.body.style.setProperty(i.varName,t.color)}}),(m=e==null?void 0:e.font)==null||m.forEach(t=>{if(n){const o=n.font.find(i=>t.fontOptionName===i.fontOptionName);o&&(o.fontOptionName==="Font Size"||o.fontOptionName==="Secondary Font Size"?document.body.style.setProperty(o.varName,`${t.value}px`):document.body.style.setProperty(o.varName,t.value))}});const l=e.autoAdjustHeaderFont,f=(h=e==null?void 0:e.font)==null?void 0:h.find(t=>t.fontOptionName==="Font Size").value,g=(parseFloat(f)*.9).toFixed(2);l===!0||l===void 0?document.body.style.setProperty(`--tenant-website-${s}-font-size-small`,`${g}px`):document.body.style.setProperty(`--tenant-website-${s}-font-size-small`,`${f}px`),e.pageLayout==="boxed"?(document.body.style.setProperty("--tenant-website-page-layout-width","1200px"),document.body.style.setProperty("--tenant-website-page-layout-margin","0 auto")):(document.body.style.setProperty("--tenant-website-page-layout-width","none"),document.body.style.setProperty("--tenant-website-page-layout-margin","none"));const d=e==null?void 0:e.websiteFontFamily;d&&document.body.style.setProperty("--tenant-website-font-family",d);const u=e==null?void 0:e.headingFontFamilies;["h1","h2","h3","h4","h5","h6"].forEach(t=>{const o=u==null?void 0:u[t];o&&o!=="inherit"?document.body.style.setProperty(`--tenant-website-font-family-${t}`,o):document.body.style.removeProperty(`--tenant-website-font-family-${t}`)});const c=e==null?void 0:e.buttonFontSettings;c!=null&&c.fontFamily&&c.fontFamily!=="inherit"?document.body.style.setProperty("--tenant-website-button-font-family",c.fontFamily):document.body.style.removeProperty("--tenant-website-button-font-family");
1const P=r.mobileHeaderBackgroundColor||((p=e.colors.find(t=>t.colorOptionName==="Header Background Color"))==null?void 0:p.color);document.body.style.setProperty("--tenant-website-mobile-header-background-color",P)};export{x as A,I as B,H as R,B as g,z as l,T as s};

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.