PageSourceSearch

https://www.insighthomeandmold.com/_next/static/chunks/modern-social-feed.31cad2e903dec442.js

js insighthomeandmold.com collected 2026-10-07 19:57:34 UTC 5,654 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16167],{38787:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(55729),n=a(54426),o=a(57e3);let r=(e,t)=>{let[a,r]=(0,i.useState)(null),[s,l]=(0,i.useState)(""),[d,c]=(0,i.useState)(!1),p=(0,i.useCallback)(async()=>{c(!0);let e=await (0,n.V)(t);null!=e&&(r(e.recentPosts.reduce((e,t)=>(t.media.forEach(a=>{e.push({...t,media:a})}),e),[]).slice(0,12)),l(e.username)),c(!1)},[t]);return(0,i.useEffect)(()=>{e&&t?p():r(null)},[e,t,p]),(0,i.useEffect)(()=>{function t(t){o.Ay.REFETCH_SOCIAL_MEDIA_RECENT_POSTS===t.data.type&&e&&p()}return window.addEventListener("message",t),()=>window.removeEventListener("message",t)},[e,p]),{instagramUsername:s,instagramRecentPosts:a,isFetchingInstagram:d}}},55359:(e,t,a)=>{a.r(t),a.d(t,{dataSyncKeyChains:()=>f,default:()=>b});var i=a(6029);a(55729);var n=a(7703),o=a(4558),r=a(97018),s=a(81553),l=a(27011);let d=(0,n.n9)({uniqId:"mSTleC"})((e,t,a)=>({socialTile:{position:"relative",height:"auto",paddingBottom:"50%",width:"50%",[e.breakpoints.up("md")]:{width:"calc(33.333% - 64px / 3)",paddingBottom:"calc(33.333% - 64px / 3)","&:hover":{[`& .${a.caption}`]:{opacity:1,visibility:"visible"}}}},caption:{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",background:"rgba(0,0,0,0.5)",padding:24,transition:"all .3s ease-in-out",color:"white",zIndex:1,[e.breakpoints.up("md")]:{opacity:0,visibility:"hidden"}},iconContainer:{color:e.palette.secondary.main,backgroundColor:e.palette.primary.main,position:"absolute",bottom:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",height:48,width:48,[e.breakpoints.up("md")]:{bottom:-1,right:-1},[e.breakpoints.up("lg")]:{height:56,width:56},[e.breakpoints.up("xl")]:{height:64,width:64}},icon:{width:"auto",height:"auto",fontSize:"20px !important",[e.breakpoints.up("lg")]:{fontSize:"24px !important"},[e.breakpoints.up("xl")]:{fontSize:"28px !important"}}}));function c(e){let{src:t,caption:a,link:n,type:o}=e,{classes:c,cx:p}=d();return t?(0,i.jsxs)("a",{href:n,target:"_blank",className:c.socialTile,rel:"noopener noreferrer",children:[(0,i.jsx)(l.A,{media:t,isBackground:!0,controls:!0,customPlayButton:!0,title:a||"Social media photo",sizes:"(min-width: 900px) 17vw, 50vw"}),a&&(0,i.jsx)("div",{className:c.caption,children:(0,i.jsx)(r.default,{variant:"body1",align:"center",color:"primary",children:a})}),(0,i.jsx)("div",{className:c.iconContainer,children:(0,i.jsx)(s.A,{className:p(c.icon,"Facebook"===o?"fab fa-facebook-f":"fab fa-instagram")})})]}):null}var p=a(61200),u=a(7333),m=a(87504);let h=(0,n.n9)()(e=>({container:{margin:"0 16px",[e.breakpoints.up("md")]:{display:"flex",justifyContent:"space-between",margin:"auto",maxWidth:e.appWidth.md},[e.breakpoints.up("lg")]:{maxWidth:e.appWidth.lg},[e.breakpoints.up("xl")]:{maxWidth:e.appWidth.xl}},leftColumn:{[e.breakpoints.up("md")]:{marginTop:56,width:"50%"}},title:{paddingBottom:16,[e.breakpoints.up("md")]:{paddingBottom:24}},body:{paddingBottom:16,[e.breakpoints.up("md")]:{paddingBottom:32}},button:{marginBottom:32},tiles:{display:"flex",minWidth:"50%",flexWrap:"wrap",[e.breakpoints.up("md")]:{width:"50%"}}})),f=[["title"],["body"],["button","link"],["button","text"]];function b(e){let{title:t,body:a,button:n,facebookEnabled:s,instagramEnabled:l}=e,{classes:d}=h(),f=(0,p.A)({facebookEnabled:s,instagramEnabled:l});return(0,i.jsx)(o.A,{children:(0,i.jsxs)("div",{className:d.container,children:[(0,i.jsxs)("div",{className:d.leftColumn,children:[t&&(0,i.jsx)(r.default,{className:d.title,variant:"h2",children:t}),a&&(0,i.jsx)(r.default,{className:d.body,variant:"body1",color:"textSecondary",children:a}),n&&(0,u.A)(n)&&(0,i.jsx)("div",{style:{width:"100%"},children:(0,i.jsx)(m.default,{className:d.button,variant:"contained",color:"secondary",showArrow:!0,...n})})]}),(0,i.jsx)("div",{className:d.tiles,children:f.map(e=>(0,i.jsx)(c,{...e}))})]})})}},61200:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(55729),n=a(80125),o=a(38787),r=a(21425),s=a(84447),l=a(69937);function d(e){let{facebookEnabled:t,instagramEnabled:a,collapseAlbums:d}=e,{config:{id:c}}=(0,i.useContext)(r.QO),{facebookRecentPosts:p}=(0,n.A)(t,c),{instagramRecentPosts:u,instagramUsername:m}=(0,o.A)(a,c),h=[...p?.recentPosts?.map(e=>({id:e.id,key:e.id,src:(e=>{if(!e?.media)return"";let t=e.media.find(e=>{let{src:t}=e;return(0,l.md)(t)||(0,l.s5)(t)});return t?t.type===s.A.IMAGE?t.src:t.thumbnail:""})(e),link:e.link,caption:e.message,createdAt:e.created,name:p.pageName,thumbnail:p.pageThumbnail,type:"Facebook"}))||[],...u?.map(e=>({id:e.id,key:e.media.src,src:e.media.type===s.A.IMAGE?e.media.src:e.media.thumbnail,link:e.link,caption:e.caption,createdAt:e.timestamp,username:m,type:"Instagram"}))||[]].sort((e,t)=>
1new Date(t?.createdAt||0).getTime()-new Date(e?.createdAt||0).getTime());return d?function(e,t){let a=new Set;return e.reduce((e,i)=>{let n=t(i);return void 0!==n&&a.has(n)||(e.push(i),void 0!==n&&a.add(n)),e},[])}(h,e=>e.id):h}},80125:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(55729),n=a(54426),o=a(57e3);let r=(e,t)=>{let[a,r]=(0,i.useState)(null),[s,l]=(0,i.useState)(!1),d=(0,i.useCallback)(async()=>{l(!0),r(await (0,n.$6)(t)),l(!1)},[t]);return(0,i.useEffect)(()=>{e&&t?d():r(null)},[e,t,d]),(0,i.useEffect)(()=>{function t(t){o.Ay.REFETCH_SOCIAL_MEDIA_RECENT_POSTS===t.data.type&&e&&d()}return window.addEventListener("message",t),()=>window.removeEventListener("message",t)},[e,d]),{facebookRecentPosts:a,isFetchingFacebook:s}}},84447:(e,t,a)=>{a.d(t,{A:()=>i});var i=function(e){return e.IMAGE="IMAGE",e.VIDEO="VIDEO",e}({})}}]);

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.