PageSourceSearch

https://niagararealtor.ca/_next/static/chunks/1305.76375514c2880636.js

js niagararealtor.ca collected 2026-10-07 03:07:36 UTC 18,902 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1305],{11305:function(n,e,t){t.r(e),t.d(e,{default:function(){return nb}});var i=t(85893),l=t(67294),o=t(22546),r=t(50067);t(40570);var d=t(1852),a=t(32692),s=t(52015),u=t(25935),c=t(31114),f=t(10977),h=t(29215);function p(){let n=(0,a.Z)(["\n  position: relative;\n  width: 100%;\n  height: ",";\n  min-height: ",";\n  /* border-radius: 8px; */\n  background: var(--bg-white);\n  flex: ",";\n  display: ",";\n  flex-direction: ",";\n\n  .slider-card-controls {\n    position: absolute;\n    top: 10px;\n    right: 10px;\n    opacity: 0;\n    visibility: hidden;\n    transition: all 0.2s ease-in-out;\n    z-index: 5;\n    background: var(--bg-white);\n    border: 1px solid var(--border-color);\n    border-radius: 6px;\n    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n    &.active {\n      opacity: 1;\n      visibility: visible;\n    }\n  }\n\n  &:hover .slider-card-controls {\n    opacity: 1;\n    visibility: visible;\n  }\n\n  ","\n"]);return p=function(){return n},n}function g(){let n=(0,a.Z)(["\n  padding: 6px 12px;\n"]);return g=function(){return n},n}function v(){let n=(0,a.Z)(["\n  button.act-button {\n    width: max-content;\n    padding: 4px 8px;\n  }\n  button {\n    &.removeLinkButton {\n      .ab-icons {\n        margin: 0 !important;\n      }\n    }\n    &:not(:last-child),\n    &.opener-button {\n      border-right: 1px solid var(--border-color);\n      border-left: none !important;\n    }\n  }\n  li {\n    display: none;\n  }\n\n  button:not(.act-button),\n  .opener-button {\n    padding: 4px 8px;\n    width: 36px;\n    height: 32px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    border-left: 1px solid var(--border-color);\n    color: var(--text-color-60);\n    background: transparent;\n\n    &:first-child {\n      border-left: none;\n    }\n  }\n\n  .edit-btn {\n    padding: 4px 8px;\n    width: 36px;\n    height: 32px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    border-left: 1px solid var(--border-color);\n    color: var(--text-color-60);\n    background: transparent;\n  }\n\n  > *:first-child button,\n  > *:first-child .opener-button,\n  > *:first-child .edit-btn {\n    border-left: none;\n  }\n"]);return v=function(){return n},n}function m(){let n=(0,a.Z)(["\n  width: 100%;\n  height: ",";\n  flex: ",";\n  overflow: hidden;\n  border-radius: 6px;\n  /* pointer-events: none; */\n  &:hover {\n    .HoverText {\n      opacity: 1;\n      visibility: visible;\n    }\n  }\n  .swiper-container {\n    z-index: 1;\n  }\n  .EditableRef,\n  img,\n  iframe {\n    max-width: 100%;\n  }\n\n  .image-container,\n  .image-content-container {\n    width: 100%;\n    height: 100%;\n  }\n"]);return m=function(){return n},n}function y(){let n=(0,a.Z)(["\n  padding: 8px;\n"]);return y=function(){return n},n}let b=s.default.div.withConfig({displayName:"SliderElementCards.styles__SliderCardWrapper",componentId:"sc-698b627e-0"})(p(),n=>{let{$fillContent:e}=n;return e?"100%":"auto"},n=>{let{$fillContent:e}=n;return e?"200px":"auto"},n=>{let{$fillContent:e}=n;return e?"1":"initial"},n=>{let{$fillContent:e}=n;return e?"flex":"block"},n=>{let{$fillContent:e}=n;return e?"column":"initial"},n=>{let{$isReadOnly:e}=n;return e&&"\n    .slider-card-controls {\n      display: none;\n    }\n  "});(0,s.default)(h.Z).withConfig({displayName:"SliderElementCards.styles__AreYouSure",componentId:"sc-698b627e-1"})(g()),(0,s.default)(h.Z).withConfig({displayName:"SliderElementCards.styles__SliderCardControls",componentId:"sc-698b627e-2"})(v());let x=s.default.div.withConfig({displayName:"SliderElementCards.styles__SliderCardPreview",componentId:"sc-698b627e-3"})(m(),n=>{let{$fillContent:e}=n;return e?"100%":"auto"},n=>{let{$fillContent:e}=n;return e?"1":"initial"});function w(){let n=(0,a.Z)(["\n          padding: 10px;\n          box-sizing: border-box;\n          width: 100%;\n          height: 100%;\n          display: flex;\n          align-items: ",";\n        "]);return w=function(){return n},n}s.default.div.withConfig({displayName:"SliderElementCards.styles__SliderCardContentHolder",componentId:"sc-698b627e-4"})(y());var S=function(n){var e,t;let{card:l}=n,o=l.attrs||{},r="object"==typeof o.alignment?null===(e=o.alignment)||void 0===e?void 0:e.value:o.alignment||"flex-start",d={background:o.background||"",borderRadius:o.borderRadius||"0px",padding:o.padding||"10px",boxShadow:(null===(t=o.shadowStyles)||void 0===t?void 0:t.isShadow)?(0,c.t)(o.shadowStyles,!1):"none",borderWidth:o.borderWidth||"0px",borderStyle:o.borderStyle||"solid",borderColor:o.borderColor||"#000",boxSizing:"border-box",width:"100%",height:"100%"};return(0,i.jsx)(b,{$isReadOnly:!0,$fillContent:!0,children:(0,i.jsx)(C,{style:d,$_css:r,children:(0,i.jsx)(f.Z,{className:"w-100 h-100",isRelativeLinks:!1,defaultTableBorder:1,children:(0,u.ZP)(o.content||"")})})})},C=(0,s.default)(x).withConfig({displayName:"SliderTextCard___StyledSliderCardPreview",componentId:"sc-1a29fae2-0"})(w(),n=>n.$_css),_=t(4366),j=t(71982);function N(){let n=(0,a.Z)(["\n            > div {\n              width: fit-content;\n              height: fit-content;\n              flex-shrink: 0;\n            }\n          "]);return N=function(){return n},n}function k(){let n=(0,a.Z)(["\n          padding: 8px;\n          width: 100%;\n          height: 100%;\n          box-sizing: border-box;\n          overflow: auto;\n          display: flex;\n          align-items: ",";\n        "]);return k=function(){return n},n}var Z=function(n){let{card:e}=n,t=e.attrs||{},l=t.buttons||(t.button?[t.button]:[]),o=t.buttonAlignment||j.My,r=t.verticalAlignment||j.fR,d=Array.isArray(l)&&l.length>0?l:[j.Q5],a="object"==typeof o?(null==o?void 0:o.value)||"flex-start":o||"flex-start",s="object"==typeof r?(null==r?void 0:r.value)||"flex-start":r||"flex-start",u=n=>{let e=(null==n?void 0:n.styles)||{}
1,t=e&&Object.keys(e).length>0;return{buttonStyles:{objectFit:"fill",...t?{...e}:{minWidth:"150px",background:"var(--primary)",padding:"0px 15px",textStyles:{fontSize:"14px",color:"#fff"},borderRadius:{topRight:6,bottomRight:6,topLeft:6,bottomLeft:6}},height:"fit-content",width:(null==e?void 0:e.width)?"".concat(e.width):"fit-content"},buttonPadding:(null==e?void 0:e.buttonPadding)?Array.isArray(e.buttonPadding)?e.buttonPadding:Object.values(e.buttonPadding).map(n=>parseInt(n,10)):[12,22],buttonContainerWidth:(null==e?void 0:e.isAutoWidth)&&(null==e?void 0:e.isAutoWidth)!=="auto"&&(null==e?void 0:e.width)?"".concat(e.width,"%"):"fit-content"}},c=(n,e)=>{var t;let l=u(n);return(0,i.jsx)(_.Z,{buttonStyles:l.buttonStyles,buttonText:(null==n?void 0:n.text)||"Button",icon:(null==n?void 0:n.icon)||"",headerButton:!0,buttonPadding:l.buttonPadding,buttonContainerWidth:l.buttonContainerWidth},"".concat((null==n?void 0:n.text)||"button","-").concat(e,"-").concat((null===(t=l.buttonStyles)||void 0===t?void 0:t.background)||""))};return(0,i.jsx)(b,{$isReadOnly:!0,$fillContent:!0,children:(0,i.jsx)(I,{$_css:s,children:(0,i.jsx)($,{align:"center",justify:a,gap:8,wrap:!0,className:"w-100",children:d.map(c)})})})},$=(0,s.default)(h.Z).withConfig({displayName:"SliderButtonCard___StyledFlex",componentId:"sc-2b259911-0"})(N()),I=(0,s.default)(x).withConfig({displayName:"SliderButtonCard___StyledSliderCardPreview",componentId:"sc-2b259911-1"})(k(),n=>n.$_css),R=t(25490),E=t(18785),A=t(72564),P=t.n(A),W=t(90130),O=t(61273);function D(){let n=(0,a.Z)(["\n          .hover-text {\n            padding: 0 !important;\n          }\n          ","\n        "]);return D=function(){return n},n}var z=function(n){var e,t,o,r,d,a,s,u,f;let{card:p,colWidth:g,rowHeight:v,sliderElement:m,elementHeight:y}=n,{ImageElements:w,ImageGalleryElements:S}=(0,R.H)(),[C,_]=(0,l.useState)((null==p?void 0:null===(e=p.attrs)||void 0===e?void 0:e.gallery)||[]),N=p.attrs||{},{libraryID:k}=N,Z=N.contentType||"image",$="image"!==Z,I=null!==(u=N.styles)&&void 0!==u?u:j.K$,A=n=>{var e;return(null==n?void 0:null===(e=n.customElements)||void 0===e?void 0:e.length)?{...n,customElements:n.customElements.map(n=>({...n,attrs:{...n.attrs||{},hideElement:!1}}))}:n},D=(n,e)=>{if(!(null==n?void 0:n.images)||!Array.isArray(n.images))return e;let t=new Map;e&&e.length>0&&e.forEach(n=>{n.id&&t.set(n.id,n)});let i=n.images.map((n,e)=>{if(t.has(n.id)){var i,l;let o=t.get(n.id);return A({...o,...n,index:e,customElements:o.customElements||n.customElements||[],design:o.design||n.design,keepSameAs:null!==(i=o.keepSameAs)&&void 0!==i?i:n.keepSameAs,keepSameOnAllSlides:null!==(l=o.keepSameOnAllSlides)&&void 0!==l?l:n.keepSameOnAllSlides})}return A({...n,index:e})});return i},z=(null==S?void 0:S.find(n=>n.id.toString()===(null==k?void 0:k.toString())))||[],B=()=>{let n=(null==N?void 0:N.gallery)||[],e=D(z,n);_(e)};(0,l.useEffect)(()=>{z.length!==C.length&&B()},[S]),(0,l.useEffect)(()=>{$&&B()},[null==N?void 0:N.gallery,k]);let L=(0,l.useMemo)(()=>{var n;return{id:p.id,type:p.type,height:null!=y?y:6,width:(null!==(f=null==m?void 0:null===(n=m.attrs)||void 0===n?void 0:n.itemsWidth)&&void 0!==f?f:300)/((null==m?void 0:m.width)||1),attrs:{...N,styles:I}}},[p.id,p.type,null==m?void 0:m.height,null==m?void 0:null===(t=m.attrs)||void 0===t?void 0:t.itemsWidth,null==m?void 0:m.width,N,I]),T=!$&&k&&(null==w?void 0:w.find(n=>{var e;return(null===(e=n.id)||void 0===e?void 0:e.toString())===(null==k?void 0:k.toString())}))||null;return k?(0,i.jsx)(b,{$fillContent:!0,$isReadOnly:!0,children:(0,i.jsx)(H,{$fillContent:!0,$_css:P()({background:L.attrs.hideElement?"none":(null==I?void 0:I.containerBG)||"transparent",pointerEvents:L.attrs.hideElement?"none":"all",borderRadius:I&&I.backgroundRadius?"".concat(null===(o=I.backgroundRadius)||void 0===o?void 0:o.topLeft," ").concat(null===(r=I.backgroundRadius)||void 0===r?void 0:r.topRight," ").concat(null===(d=I.backgroundRadius)||void 0===d?void 0:d.bottomRight," ").concat(null===(a=I.backgroundRadius)||void 0===a?void 0:a.bottomLeft):0,boxShadow:(null==I?void 0:null===(s=I.shadowStyles)||void 0===s?void 0:s.isShadow)?(0,c.t)(null==I?void 0:I.shadowStyles,!1):"none"}),children:$?(0,i.jsx)(W.default,{styles:I,gallery:(null==C?void 0:C.images)||C,colWidth:null!=g?g:40,rowHeight:null!=v?v:40}):T?(0,i.jsx)(O.Z,{image:T,styles:I,element:L}):(0,i.jsx)(h.Z,{align:"center",justify:"center",className:"w-100 h-100",children:(0,i.jsx)(E.Z,{className:"font-s-13 color-text-50",children:"Image unavailable"})})})}):(0,i.jsx)(b,{$fillContent:!0,$isReadOnly:!0,children:(0,i.jsx)(x,{$fillContent:!0,children:(0,i.jsx)(h.Z,{align:"center",justify:"center",className:"w-100 h-100",children:(0,i.jsx)(E.Z,{className:"font-s-13 color-text-50",children:"No image selected"})})})})},H=(0,s.default)(x).withConfig({displayName:"SliderImageCard___StyledSliderCardPreview",componentId:"sc-961207e7-0"})(D(),n=>n.$_css),B=t(99275),L=t(74283);function T(){let n=(0,a.Z)(["\n          display: flex;\n          justify-content: ",";\n          align-items: ",";\n        "]);return T=function(){return n},n}function G(){let n=(0,a.Z)([void 0]);return G=function(){return n},n}var V=function(n){var e,t,l;let{card:o}
1=n,r=(null===(e=o.attrs)||void 0===e?void 0:e.video)||{libraryID:null,styles:{}};return(0,i.jsx)(b,{$isReadOnly:!0,$fillContent:!0,children:(0,i.jsx)(M,{$fillContent:!0,$_css:(null==r?void 0:null===(t=r.styles)||void 0===t?void 0:t.align)||"center",$_css2:(null==r?void 0:null===(l=r.styles)||void 0===l?void 0:l.vAlign)||"flex-start",children:(null==r?void 0:r.libraryID)?(0,i.jsx)(B.Z,{section:{contentType:"Thumbnail",isShow:!0,video:r},styles:null==r?void 0:r.styles,heightUnit:"%"}):(0,i.jsx)(F,{align:"center",justify:"center",gap:8,children:(0,i.jsx)(E.Z,{className:"font-s-13 color-text-50",children:"No video selected"})})})})},M=(0,s.default)(x).withConfig({displayName:"SliderVideoCard___StyledSliderCardPreview",componentId:"sc-674425ff-0"})(T(),n=>n.$_css,n=>n.$_css2),F=(0,s.default)(L.zC).withConfig({displayName:"SliderVideoCard___StyledUploadImageHolder",componentId:"sc-674425ff-1"})(G()),U=t(21390),q=t(65346),Q=t(31309);function K(){let n=(0,a.Z)([void 0]);return K=function(){return n},n}function Y(){let n=(0,a.Z)(["\n          display: flex;\n          align-items: ",";\n          justify-content: ",";\n        "]);return Y=function(){return n},n}function J(){let n=(0,a.Z)(["\n                width: 100%;\n                height: 100%;\n                overflow: hidden;\n                pointer-events: none;\n\n                iframe {\n                  width: 100% !important;\n                  height: 100% !important;\n                  border: none;\n                }\n              "]);return J=function(){return n},n}var X=function(n){var e,t,l,o,r;let{card:d}=n,a=(null===(e=d.attrs)||void 0===e?void 0:e.link)||"",s=(0,j.zb)(d.attrs);return(0,i.jsx)(b,{$isReadOnly:!0,$fillContent:!0,children:(0,i.jsx)(ne,{className:"w-100 h-100",$fillContent:!0,$_css:(null===(t=s.sectionStyles)||void 0===t?void 0:t.vAlign)||"flex-start",$_css2:(null===(l=s.sectionStyles)||void 0===l?void 0:l.align)||"flex-start",children:(0,i.jsx)(U.Z,{attrs:s,contentCSS:"\n            width: ".concat(null===(o=s.sectionStyles)||void 0===o?void 0:o.width,"%;\n            height: ").concat(null===(r=s.sectionStyles)||void 0===r?void 0:r.height,"%;\n            overflow: hidden;\n            display: flex;\n            flex-direction: column;\n          "),children:a?(0,i.jsx)(nt,{children:(0,i.jsx)(Q.V,{children:(0,i.jsx)(q.Z,{url:a})})}):(0,i.jsx)(nn,{align:"center",justify:"center",className:"w-100 h-100",children:(0,i.jsx)(E.Z,{className:"font-s-13 color-text-50",children:"No iframe URL"})})})})})},nn=(0,s.default)(h.Z).withConfig({displayName:"SliderIframeCard___StyledFlex",componentId:"sc-7d551c53-0"})(K()),ne=(0,s.default)(x).withConfig({displayName:"SliderIframeCard___StyledSliderCardPreview",componentId:"sc-7d551c53-1"})(Y(),n=>n.$_css,n=>n.$_css2),nt=(0,s.default)("div").withConfig({displayName:"SliderIframeCard___StyledDiv",componentId:"sc-7d551c53-2"})(J());function ni(){let n=(0,a.Z)(["\n  width: 100%;\n  height: 100%;\n"]);return ni=function(){return n},n}function nl(){let n=(0,a.Z)(["\n  width: 100%;\n  height: 100%;\n  position: relative;\n\n  .swiper {\n    width: 100%;\n    user-select: none;\n    height: 100%;\n\n    .swiper-slide {\n      display: flex;\n      justify-content: center;\n      align-items: stretch;\n      height: auto;\n    }\n\n    .swiper-button-prev::after,\n    .swiper-button-next::after {\n      content: 'chevron_left';\n      font-family: var(--font-icon);\n      font-size: 20px;\n      color: ",";\n    }\n\n    .swiper-button-next::after {\n      content: 'chevron_right';\n    }\n\n    .swiper-pagination-bullet {\n      background-color: rgba(0, 0, 0, 0.5);\n      opacity: 1;\n    }\n\n    .swiper-pagination-bullet-active {\n      background-color: ",";\n    }\n  }\n"]);return nl=function(){return n},n}function no(){let n=(0,a.Z)(["\n  width: 100%;\n  height: 100%;\n  min-height: 0;\n"]);return no=function(){return n},n}function nr(){let n=(0,a.Z)(["\n  width: 100%;\n  height: 100%;\n  background: ",";\n"]);return nr=function(){return n},n}function nd(){let n=(0,a.Z)(["\n  display: grid;\n  width: 100%;\n  height: 100%;\n  grid-template-columns: repeat(",", 1fr);\n  grid-gap: ","px;\n"]);return nd=function(){return n},n}function na(){let n=(0,a.Z)(["\n  width: 100%;\n  height: 100%;\n  min-height: 0;\n"]);return na=function(){return n},n}let ns=s.default.div.withConfig({displayName:"SliderDisplay.styles__SliderDisplayWrapper",componentId:"sc-5e64f7de-0"})(ni()),nu=s.default.div.withConfig({displayName:"SliderDisplay.styles__SwiperContainer",componentId:"sc-5e64f7de-1"})(nl(),n=>{let{$navigationColors:e}=n;return e||"#ffffff"},n=>{let{$paginationColors:e}=n;return e||"#007aff"}),nc=s.default.div.withConfig({displayName:"SliderDisplay.styles__SliderSlideItem",componentId:"sc-5e64f7de-2"})(no()),nf=s.default.div.withConfig({displayName:"SliderDisplay.styles__SliderGridContainer",componentId:"sc-5e64f7de-3"})(nr(),n=>{let{$background:e}=n;return e||"transparent"}),nh=s.default.div.withConfig({displayName:"SliderDisplay.styles__SliderGrid",componentId:"sc-5e64f7de-4"})(nd(),n=>{let{$gridCols:e}=n;return e||2},n=>{let{$gap:e}=n;return Number(e)||0}),np=s.default.div.withConfig({displayName:"SliderDisplay.styles__SliderGridItem",componentId:"sc-5e64f7de-5"})(na());r.ZP.use([r.tl,r.W_,r.s5,r.pt,r.xW]);let ng=()=>{};function nv(n,e){let{colWidth:t,rowHeight:l,element:o,isReadOnly:r}=e,d={card:n,onUpdate:ng,onDelete:ng,isReadOnly:r};switch(n.type){case"text":return(0,i.jsx)(S,{...d},n.id);case"button":return(0,i.jsx)(Z,{...d},n.id);case"image":return(0,i.jsx)(z,{...d,colWidth:t,rowHeight:l,sliderElement:o,elementHeight:null==o?void 0:o.height},n.id);case"video":return(0,i.jsx)(V,{...d},n.id);case"iframe":return(0,i.jsx)(X,{...d},n.id);default:return null}}function nm(n){let{slides:e,settings:t,element:l,colWidth:r,rowHeight:a,isReadOnly:s}=n,u=Number(null==t?void 0:t.scrollingSpeed)>0&&1e3*Number(t.scrollingSpeed),c=(0,d.useMediaQuery)({query:"(max-width: 767px)"}),f=(null==t?void 0:t.slidesPerView)||1;return f=!0===c?1:(null==t?void 0:t.slidesPerView)||1,(0,i.jsx)(nu,{$paginationColors:null==t?void 0:t.paginationColor,$navigationColors:null==t?void 0:t.navigationColor,className:"swiper-container",style:{background:null==t?void 0:t.background,padding:Number(null==t?void 0:t.padding)||0},children:(0,i.jsx)(o.tq,{autoplay:!!u&&{delay:u},effect:(null==t?void 0:t.animation)==="dissolve"||(null==t?void 0:t.animation)==="fade"?"fade":"",fadeEffect:(null==t?void 0:t.animation)==="dissolve"&&{crossFade:!0,duration:1e3},spaceBetween:Number(null==t?void 0:t.itemsGap)||16,slidesPerView:Number(f),easing:null==t?void 0:t.slidesEasing,navigation:null==t?void 0:t.navigation,pagination:null!=t&&!!t.pagination&&{clickable:!0},children:e.map(n=>(0,i.jsx)(o.o5,{children:(0,i.jsx)(nc,{children:nv(n,{colWidth:r,rowHeight:a,element:l,isReadOnly:s})})},n.id))})})}function ny(n){var e,t;let{slides:l,settings:o,element:r,colWidth:d,rowHeight:a,isReadOnly:s}=n;return(0,i.jsx)(nf,{$background:null==o?void 0:o.background,children:(0,i.jsx)(n
1h,{$gridCols:(null==o?void 0:o.gridCols)||2,$gap:null!==(t=null!==(e=null==o?void 0:o.padding)&&void 0!==e?e:null==o?void 0:o.itemsGap)&&void 0!==t?t:16,children:l.map(n=>(0,i.jsx)(np,{children:nv(n,{colWidth:d,rowHeight:a,element:r,isReadOnly:s})},n.id))})})}var nb=(0,l.memo)(function(n){let{slides:e=[],settings:t={},element:o,colWidth:r,rowHeight:d,isReadOnly:a=!0}=n,s=(0,l.useMemo)(()=>(0,j.L1)(e).filter(n=>!(0,j.fD)(n)),[e]);return s.length?(0,i.jsx)(ns,{children:(null==t?void 0:t.galleryType)==="Grid"?(0,i.jsx)(ny,{slides:s,settings:t,element:o,colWidth:r,rowHeight:d,isReadOnly:a}):(0,i.jsx)(nm,{slides:s,settings:t,element:o,colWidth:r,rowHeight:d,isReadOnly:a})}):null})}}]);

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.