1"use strict";(self.webpackChunkcox_cms_react=self.webpackChunkcox_cms_react||[]).push([[3179,5560],{35560:function(e,s,a){a.r(s),a.d(s,{default:function(){return p}});var t=a(21239),i=a(40595),c=a(54559),d=a(21103),l=a(56646),n=a(42539),r=a(2642),o=a(2479),m=a(67099),u=(0,m.A)(e=>{var s;const{community:a}=e,{property_name_display:t="",address_line1:i="",address_line2:c="",address_city:m="",address_state:u="",address_zip:_="",slug:p=""}=a,x=(e,s)=>null!==e?`${e}${s||""}`:"",v="NULL"==x(c)||null==x(c)?"":x(c),y=`${x(m,", ")}${x(u,", ")}${x(_)}`,h=`${x(i," ")}${x(c," ")}${x(y)}`,N=`${l.ai}${encodeURI(h)}`,j=`${null!==(s=window.location.pathname.replace(".html","/"))&&void 0!==s?s:""}${p}.html`;return(0,o.jsxs)("div",{className:"community-card h-100",children:[(0,o.jsxs)("div",{className:"community-card__body",children:[t&&(0,o.jsx)(r.default,{text:t,className:"community-card-body__title cox-text-heading4",isParsed:!0}),(0,o.jsxs)("div",{className:"community-card__address",children:[i&&(0,o.jsx)(r.default,{text:i,className:"community-card__address-text"}),c&&(0,o.jsx)(r.default,{text:v,className:"community-card__address-text"}),y&&(0,o.jsx)(r.default,{text:y,className:"community-card__address-text"}),(0,o.jsx)("a",{className:"community-card__address-link",href:N,target:"_blank",children:"Get directions"})]})]}),(0,o.jsx)("div",{className:"community-card__footer",children:(0,o.jsx)(n.default,{className:"community-card__footer-button",text:"View Community",buttonTypes:d.EY.PRIMARY,openInNewTab:!1,linkUrl:j})})]})},{compName:"React CommunityCard"}),_=(0,m.A)(e=>{const{items:s}=e;return(0,o.jsx)("div",{className:"grid-container",children:(0,o.jsx)("div",{className:"grid-container__row",children:s.map((e,s)=>(0,o.jsx)("div",{className:"grid-container__column container-fluid col-lg-4 col-md-6 col-sm-12",children:(0,o.jsx)(u,{community:e})},`community-card-${s}`))})})},{compName:"React Grid"}),p=(0,m.A)(e=>{var s;const{gridItems:a=[]}=e,d=(0,c.$)()||a,l=globalThis.location.href,n=null!==l&&void 0!==l&&l.split("/").slice(6,7)[0]?null===l||void 0===l||null===(s=l.split("/").slice(6,7)[0].replace(".html",""))||void 0===s?void 0:s.toUpperCase():"",r=null===d||void 0===d?void 0:d.filter(e=>{var s;return(null===(s=e.address_state)||void 0===s?void 0:s.toUpperCase())===n}).sort((e,s)=>(e.property_name_display||"").localeCompare(s.property_name_display||"",void 0,{sensitivity:"base"})),[m,u]=(0,t.useState)(1),[p]=(0,t.useState)(12),x=m*p,v=x-p,y=null===r||void 0===r?void 0:r.slice(v,x),h=Math.ceil((null===r||void 0===r?void 0:r.length)/p);return(0,o.jsxs)("div",{className:"communities container",children:[(0,o.jsx)(_,{items:y}),(0,o.jsx)(i.d,{totalPages:h,pageClick:e=>{u(e)}})]})},{compName:"React Communities"})}}]);
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.