PageSourceSearch

https://www.kingsville.org/assets/BusinessLandingLayout-C048BWuq.js

js kingsville.org collected 2026-10-02 18:06:08 UTC 19,856 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/styles-mpRU3QBU.js","assets/index-ClmBgQw8.js"])))=>i.map(i=>d[i]);
2var ce=Object.defineProperty;var le=(s,t,n)=>t in s?ce(s,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[t]=n;var A=(s,t,n)=>le(s,typeof t!="symbol"?t+"":t,n);import{B as de,E as ue,r as x,j as e,D as k,G as Y,H as me,I as S,n as B,J as c,K as o,M as he,N as ge,O as U,P as xe,Q as pe,U as je,V as _e,L as z,W as be,X as we,Y as ye,Z as fe,a0 as ve,a1 as Ne,a2 as Se,a3 as ke,a4 as De,a5 as Ce,a6 as _,a7 as T,a8 as v,a9 as Pe,aa as $e,ab as Ae,ac as Te,S as Ie,a as O,_ as Ee,R as Fe,ad as V,ae as Re,af as Le,ag as Ue,ah as Be}from"./index-ClmBgQw8.js";import{R as He,g as Me,B as Oe,s as Ve,l as qe}from"./loadWebsiteStyles-BHJM90_g.js";import{g as W,M as G,T as J,W as Z,a as X,F as Q,S as ee,b as se}from"./getDayName-BlYa9-_H.js";const Ke=async s=>{const t=await de(s,{letterRendering:1,useCORS:!0}),n=t.toDataURL(),a=new ue,r=a.internal.pageSize.getWidth(),l=a.internal.pageSize.getHeight(),u=r/t.width,d=l/t.height,i=u>d?d:u;return a.addImage(n,"JPEG",0,0,t.width*i,t.height*i),a},te=x.createContext({settings:{},router:{}}),Ye=({settings:s,router:t,children:n})=>{const a=x.useMemo(()=>({settings:s,router:t}),[s,t]);return e.jsx(te.Provider,{value:a,children:n})},p=()=>x.useContext(te),ze=()=>{const{settings:s}=p();let t=null;if(s.descriptionBody){const l=document.createElement("span");l.innerHTML=s.descriptionBody,t=l.textContent||l.innerText}const n=s.websiteName?`${s.ownerData.name} | ${s.websiteName}`:s.ownerData.name,a=s.ownerData.avatarStorageKey?k({storageKey:s.ownerData.avatarStorageKey}):void 0,r=s.subdomain?`${window.location.origin}/businessPage/${s.subdomain}`:window.location.origin+window.location.pathname;return e.jsxs(Y,{children:[e.jsx("title",{children:n}),a&&e.jsx("link",{id:"favicon",rel:"icon",href:a}),e.jsx("link",{rel:"canonical",href:r}),t&&e.jsx("meta",{name:"description",content:t}),e.jsx("meta",{property:"og:type",content:"profile"}),s.websiteName&&e.jsx("meta",{property:"og:site_name",content:s.websiteName}),e.jsx("meta",{property:"og:title",content:n}),a&&e.jsx("meta",{property:"og:image",content:a}),e.jsx("meta",{property:"og:url",content:r}),t&&e.jsx("meta",{property:"og:description",content:t}),e.jsx("meta",{name:"twitter:card",content:"summary"}),e.jsx("meta",{name:"twitter:title",content:n}),t&&e.jsx("meta",{name:"twitter:description",content:t}),a&&e.jsx("meta",{name:"twitter:image",content:a})]})},We="_container_2ke4q_1",Ge="_divider_2ke4q_7",Je="_column_2ke4q_13",Ze="_left_2ke4q_20",Xe="_right_2ke4q_25",w={container:We,divider:Ge,column:Je,left:Ze,right:Xe},Qe="_button_1yce4_1",es={button:Qe},E=({children:s,className:t,icon:n,...a})=>e.jsxs(me,{className:S(es.button,t),...a,"data-testid":a["data-testid"],children:[n&&e.jsx(B,{className:"mr-2",icon:n,size:"sm"}),s]}),ss="_icon_sjeju_1",ts={icon:ss},g=({icon:s,className:t})=>e.jsx(B,{className:S(ts.icon,t),icon:s}),ns="_text_11ywn_1",as={text:ns},D=({children:s})=>e.jsx("h6",{className:as.text,children:s}),rs="_connect_button_1s7hw_1",os={connect_button:rs},is=()=>{var r;const s=x.useRef(null),{settings:t}=p(),n=()=>{s.current.open({entity:t.ownerData})},{ownerData:a}=t;return e.jsxs("div",{children:[a.websiteIncludePrimaryContactName&&a.primaryContactFullName&&e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(g,{icon:he,className:"margin-right-10"}),e.jsx("span",{children:a.primaryContactFullName}),e.jsx("br",{})]})}),a.address&&!a.suppressEntireAddress&&e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(g,{icon:ge,className:a.suppressAddressLines?"margin-right-14":"margin-right-10"}),!a.suppressAddressLines&&e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:[`${a.address.street1}`,a.address.street2&&e.jsxs("span",{children:[","," ",a.address.street2]})]}),e.jsx("p",{className:"ml-4",children:`${a.address.city}, ${a.address.stateName||a.address.province}, ${a.address.zip}`})]}),a.suppressAddressLines&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:`${a.address.city}, ${a.address.stateName||a.address.province}, ${a.address.zip}`}),e.jsx("br",{})]}),e.jsx("br",{})]})}),a.phone&&!a.suppressPhone&&e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(g,{icon:U,className:"margin-right-10"}),e.jsx("span",{children:(r=a.phone)==null?void 0:r.number}),e.jsx("br",{})]})}),a.website&&e.jsx(c,{className:"mt-3 mb-3",children:e.jsxs(o,{className:"text-truncate",children:[e.jsx(g,{icon:xe,className:"margin-right-10"}),e.jsx("a",{href:pe(a.website),target:"_blank",rel:"noopener noreferrer",children:"Visit Website"})]})}),!a.websiteSuppressConnectButton&&e.jsx(c,{className:"buttons-row mb-3",children:e.jsx(o,{children:e.jsx(E,{className:os.connect_button,icon:je,onClick:n,children:"Connect"})})}),e.jsx(_e,{ref:s})]})},cs="_description_body_container_1p6yq_1",ls="_buttons_container_1p6yq_5",q={description_body_container:cs,buttons_container:ls},ds={ADD_TAGS:["iframe"],ADD_ATTR:["src","allow","allowFullScreen","frameborder","scrolling","width","height"],KEEP_CONTENT:!1},us=()=>{const{settings:s}=p(),[t,n]=x.useState(!1),a=async()=>{n(!0);const i=document.querySelectorAll(".buttons-row");
2i.forEach(m=>m.style.display="none");const h=await Ke(document.getElementById("full-page-membership"));return i.forEach(m=>m.style.display="block"),n(!1),h},r=async()=>{const i=await a();i.autoPrint();const h=i.output("bloburl");window.open(h)},l=async()=>{(await a()).save(`${s.ownerData.name} Description.pdf`)},{descriptionHeader:u,descriptionBody:d}=s;return!u&&!d?null:t?e.jsx(z,{}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{id:"description-container",children:[u&&e.jsx("h6",{children:u}),d&&e.jsx("div",{className:q.description_body_container,dangerouslySetInnerHTML:{__html:be.sanitize(d,ds)}})]}),e.jsx(c,{className:"buttons-row",children:e.jsxs(o,{className:q.buttons_container,children:[e.jsx(E,{icon:we,onClick:r,children:"Print listing"}),e.jsx(E,{icon:ye,onClick:l,children:"Save listing in PDF"})]})})]})},ms="_container_nnjh3_1",hs="_icon_nnjh3_9",gs="_facebook_nnjh3_15",xs="_twitter_nnjh3_18",ps="_instagram_nnjh3_21",js="_linkedin_nnjh3_27",_s="_tiktok_nnjh3_30",F={container:ms,icon:hs,facebook:gs,twitter:xs,instagram:ps,linkedin:js,tiktok:_s},bs=(s,t)=>{switch(s){case"facebook":return`https://www.facebook.com/${t}`;case"twitter":return`https://www.twitter.com/${t}`;case"instagram":return`https://www.instagram.com/${t}`;case"linkedin":return`https://www.linkedin.com/${t}`;case"tiktok":return`https://www.tiktok.com/@${t}`;default:return null}},ws=s=>{switch(s){case"facebook":return ke;case"twitter":return Se;case"instagram":return Ne;case"linkedin":return ve;case"tiktok":return fe;default:return null}},N=({socialNetwork:s,identifier:t})=>e.jsx("a",{className:F.container,href:bs(s,t),target:"_blank",rel:"noopener noreferrer",children:e.jsx(B,{className:S(F.icon,F[s]),icon:ws(s)})}),ys="_logo_1p7lq_1",fs="_socials_1p7lq_6",K={logo:ys,socials:fs},vs=()=>{const{settings:s}=p(),{ownerData:t}=s;return e.jsxs(c,{children:[e.jsxs(o,{md:8,sm:7,xs:6,children:[e.jsx("h1",{style:De,children:t.name}),s.ownerData.avatarStorageKey&&e.jsx("img",{className:K.logo,alt:t.name?`${t.name} logo`:"Logo",src:k({storageKey:s.ownerData.avatarStorageKey})})]}),e.jsxs(o,{className:K.socials,children:[t.facebook&&e.jsx(N,{socialNetwork:"facebook",identifier:t.facebook}),t.twitter&&e.jsx(N,{socialNetwork:"twitter",identifier:t.twitter}),t.instagram&&e.jsx(N,{socialNetwork:"instagram",identifier:t.instagram}),t.linkedIn&&e.jsx(N,{socialNetwork:"linkedin",identifier:t.linkedIn}),t.tikTok&&e.jsx(N,{socialNetwork:"tiktok",identifier:t.tikTok})]})]})},Ns="_react_carousel_gallery_we5i1_1",Ss="_carousel_background_overlay_we5i1_9",ks="_carousel_background_image_we5i1_22",Ds="_carousel_overlay_we5i1_37",I={react_carousel_gallery:Ns,carousel_background_overlay:Ss,carousel_background_image:ks,carousel_overlay:Ds},Cs=({bgImageUrl:s})=>e.jsxs("div",{className:I.carousel_background_overlay,children:[e.jsx("div",{className:I.carousel_background_image,style:{backgroundImage:`url(${s})`}}),e.jsx("div",{className:I.carousel_overlay})]}),Ps=()=>{var d;const{settings:s}=p(),t=x.useMemo(()=>s.businessMediaItems.map(({storageKey:i},h)=>({src:k({storageKey:i}),alt:`${s.ownerData.name} - image ${h+1}`})),[s.businessMediaItems,s.ownerData.name]),[n,a]=x.useState(0),[r,l]=x.useState(((d=t[0])==null?void 0:d.src)||0),u=({curIndex:i})=>{const h=t[i].src;l(h),a(i)};return e.jsx(c,{children:s.businessMediaItems.length===0?e.jsx(e.Fragment,{}):e.jsxs(o,{className:"d-flex justify-content-center p-0",style:{position:"relative",height:500},children:[e.jsx(Cs,{bgImageUrl:r}),e.jsx(Ce,{style:{height:"100%",zIndex:3},images:t,index:n,canAutoPlay:!0,isAutoPlaying:!0,hasMediaButton:!1,hasSizeButton:"topRight",objectFit:"contain",hasIndexBoard:!0,shouldLazyLoad:!1,hasLeftButton:t.length>1?"centerLeft":!1,hasRightButton:t.length>1?"centerRight":!1,hasThumbnails:!1,className:I.react_carousel_gallery,onIndexChange:u})]})})},$s="_day_hours_container_cnwgg_1",As="_day_hours_item_even_cnwgg_9",ne={day_hours_container:$s,day_hours_item_even:As},Ts=({dayCode:s,startTime:t,endTime:n})=>{const a=!t&&!n,l=["MONDAY","WEDNESDAY","FRIDAY","SUNDAY"].includes(s);return e.jsxs(c,{className:`p-1 ${l?ne.day_hours_item_even:""}`,children:[e.jsx(o,{children:e.jsx("span",{className:"text-truncate",children:W(s)})}),e.jsx(o,{className:"text-center text-nowrap",children:e.jsx("span",{children:a?e.jsx("span",{className:"text-muted",children:"CLOSED"}):e.jsxs(e.Fragment,{children:[_(t)," ",e.jsx("small",{children:"-"})," ",_(n)]})})})]})},Is=()=>{const{settings:s}=p(),t=n=>{const a=s.businessOpeningHours[n];return e.jsx(Ts,{dayCode:a.dayCode,startTime:a.startTime,endTime:a.endTime})};return s.businessOpeningHours?e.jsxs(e.Fragment,{children:[e.jsx(D,{children:"Opening Hours"}),e.jsx(c,{children:e.jsxs(o,{className:ne.day_hours_container,children:[t(G),t(J),t(Z),t(X),t(Q),t(ee),t(se)]})})]}):null},Es="_list_w5ph3_1",Fs={list:Es},Rs=()=>{const{settings:s}=p();return s.spotlights.length===0?null:e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(D,{children:"Spotlights"}),e.jsx("ul",{className:Fs.list,children:s.spotlights.map((t,n)=>e.jsx("li",{children:e.jsx("span",{children:t})},n))})]})})}
2,Ls="_container_hpqx8_1",Us="_avatar_hpqx8_6",Bs="_view_details_container_hpqx8_14",R={container:Ls,avatar:Us,view_details_container:Bs},Hs=({eventInfo:s,onViewDetails:t})=>{const{avatarStorageKey:n,eventName:a,eventDescription:r,multiDay:l,startDateTime:u,endDateTime:d,noEndTime:i,noTimes:h,phone:m,daySchedules:j}=s,b=T(u),C=_(u),y=T(d),P=_(d);return e.jsxs(c,{className:R.container,children:[e.jsx(o,{xl:3,lg:3,md:3,sm:4,xs:5,children:e.jsx("img",{className:R.avatar,src:k({storageKey:n}),alt:"",loading:"lazy"})}),e.jsxs(o,{xl:3,lg:3,md:3,sm:8,xs:7,children:[e.jsx("p",{children:a}),e.jsx("p",{className:"text-truncate",children:(r==null?void 0:r.length)>100?`${r.substring(0,100)}...`:r})]}),e.jsx(o,{xl:4,lg:4,md:4,sm:12,xs:12,children:l&&b!==y?e.jsxs(e.Fragment,{children:[j!=null&&j.length?(()=>{const $=j[0],f=j[j.length-1];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx(g,{icon:v,className:"margin-right-10"}),T($.startDateTime),e.jsx("span",{className:"margin-right-5"}),_($.startDateTime)]}),e.jsxs("div",{children:[e.jsx(g,{icon:v,className:"margin-right-10"}),T(f.startDateTime),e.jsx("span",{className:"margin-right-5"}),f.endDateTime&&_(f.endDateTime)]})]})})():e.jsxs(e.Fragment,{children:[e.jsx(g,{icon:v,className:"margin-right-10"}),b,!h&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"margin-right-5"}),C]}),e.jsx("br",{}),e.jsx(g,{icon:v,className:"margin-right-10"}),y,!h&&!i&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"margin-right-5"}),P]}),e.jsx("br",{})]}),(m==null?void 0:m.number)&&e.jsxs(e.Fragment,{children:[e.jsx(g,{icon:U}),e.jsx("span",{children:m==null?void 0:m.number})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(g,{icon:v,className:"margin-right-10"}),b,!h&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"margin-right-5"}),C,!i&&e.jsxs(e.Fragment,{children:[" ","-"," ",P]})]}),e.jsx("br",{}),e.jsx("br",{}),(m==null?void 0:m.number)&&e.jsxs(e.Fragment,{children:[e.jsx(g,{icon:U}),e.jsx("span",{children:m==null?void 0:m.number})]})]})}),e.jsx(o,{xl:2,lg:2,md:2,sm:12,xs:12,className:R.view_details_container,children:e.jsx(E,{onClick:t,children:"View Details"})})]})},Ms="_events_modal_24lva_1",Os={events_modal:Ms},Vs=()=>{const{settings:s}=p(),t=x.useRef(null),n=r=>{Ae(r,s.websiteSettings.sitePages.pages,null,"_blank")||t.current.open({visible:!0,event:r,timeFormatCode:s.timeFormatCode,dateFormat:"dddd, MMM D, yyyy",timeZoneIANAId:s.timeZoneIANAId,onCloseExtraModal:n})},a=(r,l)=>{const u=l.eventRegistrationsSettings.find(d=>d.eventRegistrationSettingsId===r);window.open(u.registrationUrl,"_blank","noopener,noreferrer")};return s.ownerData.events.length===0?null:e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(D,{children:"Events"}),e.jsx(Pe,{className:"modal-scrollbar",children:s.ownerData.events.map(r=>e.jsx(Hs,{eventInfo:r,onViewDetails:()=>n(r)},r.activityKey))}),e.jsx($e,{ref:t,className:Os.events_modal,onRegister:a})]})})},qs=()=>{const{settings:s}=p();return s.ownerData.businessCategories.length===0?null:e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(D,{children:"Categories"}),s.ownerData.businessCategories.map((t,n)=>e.jsx("p",{children:t},n))]})})},Ks="_tags_container_1hmad_1",Ys="_tag_1hmad_1",zs="_tag_text_1hmad_34",L={tags_container:Ks,tag:Ys,tag_text:zs},Ws=()=>{const{settings:s}=p();return s.seoTags.length===0?null:e.jsx(c,{children:e.jsxs(o,{children:[e.jsx(D,{children:"Tags"}),e.jsx("div",{className:L.tags_container,children:s.seoTags.map((t,n)=>e.jsx("div",{className:L.tag,children:e.jsx("span",{className:L.tag_text,children:t})},n))})]})})},Gs=()=>{const{settings:s}=p(),[t,n]=x.useState([]);return x.useEffect(()=>{(async()=>{let r=[];if(s.videoURLs&&s.videoURLs.length>0&&(r=s.videoURLs),r.length===0)return;const l=await Promise.all(r.map(u=>Te(u)));n(l.filter(u=>u!==null))})()},[s.videoURL,s.videoURLs]),t.length===0?null:e.jsx(e.Fragment,{children:t.map((a,r)=>e.jsx(c,{children:e.jsx(o,{className:"text-center",children:e.jsx("iframe",{title:`Video ${r+1}`,className:"border-0",allowFullScreen:!0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",width:"100%",height:"500",src:a.src})})},a.src))})},Js=()=>e.jsxs("div",{className:w.container,id:"full-page-membership",children:[e.jsx(ze,{}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(vs,{})})}),e.jsx("hr",{className:w.divider}),e.jsxs(c,{children:[e.jsxs(o,{md:12,lg:9,className:S(w.column,w.left),children:[e.jsx(c,{children:e.jsx(o,{children:e.jsx(us,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(Ps,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(Vs,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(Gs,{})})})]}),e.jsxs(o,{className:S(w.column,w.right),children:[e.jsx(c,{children:e.jsx(o,{children:e.jsx(is,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(Is,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(Rs,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(qs,{})})}),e.jsx(c,{children:e.jsx(o,{children:e.jsx(Ws,{})})})]})]})]}),Zs=()=>e.jsxs(Ie,{"data-testid":"switch-businessLanding",children:[e.jsx(O,{exact:!0,path:"/reset-cache",component:He},"route-reset-cache"),e.jsx(O,{path:"*",component:Js},"route-error")]}),Xs=[G,J,Z,X,Q,ee,se],Qs=({address:s,suppressEntireAddress:t,suppressAddressLines:n})=>!s||t?void 0:{"@type":"PostalAddress",streetAddress:n?void 0:`${s.street1||""} ${s.street2||""}`.trim()||void 0,addressLocality:s.city,addressRegion:s.stateCode,postalCode:s.zip,addressCountry:s.countryCode==="USA"?"US":s.countryCode||"US"},et=s=>{if(!s)return;const t=Xs.map(n=>s[n]).filter(n=>n&&n.startTime&&n.endTime).map(n=>({"@type":"OpeningHoursSpecification",dayOfWeek:W(n.dayCode),opens:_(n.startTime,{outputFormat:"HH:mm"}),closes:_(n.endTime,{outputFormat:"HH:mm"})}));return t.length?t:void 0},st=({company:s})=>{if(!s)return null;const{companyName:t,email:n,website:a,phone:r,address:l,linkedIn:u,facebook:d,twitter:i,instagram:h,tikTok:m,primaryContactFullName:j,avatarStorageKey:b,pageUrl:C,subdomain:y,businessOpeningHours:P,suppressEntireAddress:$,suppressAddressLines:f,suppressPhone:ae}=s,re=b?k({storageKey:b}):void 0,H=y?`${window.location.origin}/businessPage/${y}`:a||C||window.location.origin+window.location.pathname,oe=!ae&&(r!=null&&r.number)?`+1${r.number.replace(/\D/g,"")}`:void 0,M=[a||null,d?`https://facebook.com/${d}`:null,i?`https://twitter.com/${i}`:null,u?`https://linkedin.com/in/${u}`:null,h?`https://instagram.com/${h}`:null,m?`https://www.tiktok.com/@${m}
2`:null].filter(Boolean),ie={"@context":"https://schema.org","@type":"LocalBusiness","@id":`${H}#business`,name:t,url:H,telephone:oe,email:n||void 0,image:re,address:Qs({address:l,suppressEntireAddress:$,suppressAddressLines:f}),openingHoursSpecification:et(P),sameAs:M.length?M:void 0,founder:j||void 0};return e.jsx(Y,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify(ie)})})},tt=s=>{const t=s==null?void 0:s.ownerData;return t?{companyName:t.companyName||t.name,email:t.email,website:t.website||null,phone:t.phone||null,address:t.address||null,linkedIn:t.linkedIn||null,facebook:t.facebook||null,twitter:t.twitter||null,instagram:t.instagram||null,tikTok:t.tikTok||null,primaryContactFullName:t.fullName||null,avatarStorageKey:t.avatarStorageKey||null,pageUrl:(s==null?void 0:s.businessPageUrl)||null,subdomain:(s==null?void 0:s.subdomain)||null,businessOpeningHours:(s==null?void 0:s.businessOpeningHours)||null,suppressEntireAddress:t.suppressEntireAddress||!1,suppressAddressLines:t.suppressAddressLines||!1,suppressPhone:t.suppressPhone||!1}:null};window.__isPrerender||Ee(()=>import("./styles-mpRU3QBU.js"),__vite__mapDeps([0,1]));class it extends Fe.Component{constructor(n){super(n);A(this,"initialState",(n={})=>({settings:{...n.businessPage?{...n.businessPage,websiteSettings:JSON.parse(n.businessPage.websiteSettings)}:{websiteSettings:null}},error:null,errorStatusCode:404,loading:!n.businessPage}));A(this,"loadCSS",()=>{window.__isPrerender||(qe(this.state.settings.websiteSettings),document.body.style.setProperty("--business-directory-template-color",this.state.settings.templateColor),document.body.style.setProperty("--business-directory-button-font-color",this.state.settings.buttonFontColor))});A(this,"unloadCSS",()=>{document.body.style.removeProperty("--business-directory-template-color"),document.body.style.removeProperty("--business-directory-button-font-color")});this.state=this.initialState(n)}componentDidMount(){if(this.props.businessPage){this.loadCSS(),V();return}const n=Re(),{websiteShorthand:a,websiteDomain:r}=Le(),l=Me(n),u={websiteShorthand:a,websiteDomain:r,businessPageSubdomain:n,publicPageCode:Oe,rowVersion:(l==null?void 0:l.rowVersion)??null};Ue.get("/publicAccess/getPublicPage",u,{success:d=>{let i=d.data.businessPage;d.data.isCacheValid?i={...i,...l.businessPageSettings,ownerData:i.ownerData}:Ve(n,{businessPage:i,rowVersion:d.data.rowVersion}),this.setState(h=>({settings:{...h.settings,...i,websiteSettings:JSON.parse(i.websiteSettings)},loading:!1}),()=>{this.loadCSS()})},error:d=>{this.setState({loading:!1,error:d.error,errorStatusCode:404})},exception:()=>{this.setState({loading:!1,error:{},errorStatusCode:503})}})}componentDidUpdate(n,a){a.loading&&!this.state.loading&&V()}componentWillUnmount(){this.unloadCSS()}render(){if(this.state.error)return e.jsx(Be,{error:this.state.error,statusCode:this.state.errorStatusCode});if(this.state.loading)return e.jsx(z,{fullscreen:!0});const n=tt(this.state.settings);return e.jsxs(Ye,{settings:this.state.settings,router:this.props,children:[e.jsx(st,{company:n}),this.state.settings&&e.jsx(Zs,{})]})}}export{it as default};

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.