(("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[]).push([[8132],{38132:(e,t,i)=>{"use strict";i.d(t,{A:()=>C});var o=i(4452),r=i.n(o),s=i(60751),n=i.n(s),a=i(43425),c=i(14179),l=i.n(c),d={},{STATIC_MEDIA_URL:u}=a,h=({fittingType:e,src:t,target:i,options:o})=>{const r=a.getPlaceholder(e,t,i,{...o,autoEncode:!0});return r?.uri&&!/^[a-z]+:/.test(r.uri)&&(r.uri=`${u}${r.uri}`),r},m=/^[a-z]+:/,p=e=>{const{id:t,containerId:i,uri:o,alt:r,name:n="",role:a,width:c,height:l,displayMode:p,devicePixelRatio:f,quality:g,alignType:v,bgEffectName:y="",focalPoint:b,upscaleMethod:w,className:E="",crop:x,imageStyles:S={},targetWidth:T,targetHeight:I,targetScale:P,onLoad:A=(()=>{}),onError:M=(()=>{}),shouldUseLQIP:_,containerWidth:O,containerHeight:L,getPlaceholder:C,isInFirstFold:R,placeholderTransition:U,socialAttrs:H,isSEOBot:z,skipMeasure:k,hasAnimation:F,encoding:N}=e,D=s.useRef(null);let W="";const q="blur"===U,Q=s.useRef(null);if(!Q.current)if(C||_||R||z){const e={upscaleMethod:w,...g||{},shouldLoadHQImage:R,isSEOBot:z,hasAnimation:F,encoding:N};Q.current=(C||h)({fittingType:p,src:{id:o,width:c,height:l,crop:x,name:n,focalPoint:b},target:{width:O,height:L,alignment:v,htmlTag:"img"},options:e}),W=!Q.current.transformed||R||z?"":"true"}else Q.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const G=!z&&(C||_)&&!R&&Q.current.transformed,V=s.useMemo((()=>JSON.stringify({containerId:i,...i&&{containerId:i},...v&&{alignType:v},...k&&{skipMeasure:!0},displayMode:p,...O&&{targetWidth:O},...L&&{targetHeight:L},...T&&{targetWidth:T},...I&&{targetHeight:I},...P&&{targetScale:P},isLQIP:G,isSEOBot:z,lqipTransition:U,encoding:N,imageData:{width:c,height:l,uri:o,name:n,displayMode:p,hasAnimation:F,...g&&{quality:g},...f&&{devicePixelRatio:f},...b&&{focalPoint:b},...x&&{crop:x},...w&&{upscaleMethod:w}}})),[i,v,k,p,O,L,T,I,P,G,z,U,N,c,l,o,n,F,g,f,b,x,w]),$=Q.current,j=$?.uri,B=$?.srcset,K=$.css?.img,Y=`${d.image} ${E}`;s.useEffect((()=>{const e=D.current;A&&e?.currentSrc&&e?.complete&&A({target:e})}),[]);const J=$&&!$?.transformed?`max(${c}px, 100%)`:T?`${T}px`:null;return s.createElement("wow-image",{id:t,class:Y,"data-image-info":V,"data-motion-part":"BG_IMG","data-bg-effect-name":y,"data-has-ssr-src":W,"data-animate-blur":!z&&G&&q?"":void 0,style:J?{"--wix-img-max-width":J}:{}},s.createElement("img",{src:j,ref:D,alt:r||"",role:a,style:{...K,...S},onLoad:A,onError:M,width:O||void 0,height:L||void 0,...H,srcSet:R?B?.dpr?.map((e=>m.test(e)?e:`${u}${e}`)).join(", "):void 0,fetchpriority:R?"high":void 0,loading:!1===R?"lazy":void 0,suppressHydrationWarning:!0}))},f={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},g=(e,t)=>(Array.isArray(t)?t:[t]).reduce(((t,i)=>{const o=e[i];return void 0!==o?Object.assign(t,{[i]:o}):t}),{}),v=(e,t)=>e&&t&&Object.keys(t).forEach((i=>{const o=i,r=t[o];void 0!==r?e.style[o]=((e,t)=>"number"!=typeof t||f[e]?t.toString():`${t}px`)(o,r):e.style.removeProperty(o)})),y=(e,t,i)=>{if(!e.targetWidth||!e.targetHeight||!e.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:o}=e,r=e.displayMode||a.fittingTypes.SCALE_TO_FILL,s=Object.assign(g(o,["upscaleMethod"]),g(e,["filters","encoding"]),e.quality||o.quality,{hasAnimation:e?.hasAnimation||o?.hasAnimation}),n=e.imageData.devicePixelRatio||t.devicePixelRatio,c=w(n),l=Object.assign(g(o,["width","height","crop","name","focalPoint"]),{id:o.uri}),d={width:e.targetWidth,height:e.targetHeight,htmlTag:i||"img",pixelAspectRatio:c,alignment:e.alignType||a.alignTypes.CENTER},u=(0,a.getData)(r,l,d,s);return u.uri=b(u.uri,t.staticMediaUrl,t.mediaRootUrl),u},b=(e,t,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;let o=`${t}/`;return e&&(/^micons\//.test(e)?o=i:"ico"===/[^.]+$/.exec(e)?.[0]&&(o=o.replace("media","ficons"))),o+e},w=e=>{const t=window.location.search.split("&").map((e=>e.split("="))).find((e=>e[0]?.toLowerCase().includes("devicepixelratio")));return(t?.[1]?Number(t[1]):null)||e||1},E=e=>e.getAttribute("src"),x=80;var S={measure:function(e,t,i,{containerElm:o,bgEffect:r="none",sourceSets:s},n){const a=i.image,c=i[e],l=(d=n.getScreenHeightOverride?.(),d||document.documentElement.clientHeight||window.innerHeight||0);var d;const u=o?.dataset.mediaHeightOverrideType,h=r&&"none"!==r||s&&s.some((e=>e.scrollEffect)),m=o&&h?o:c,p=window.getComputedStyle(c).getPropertyValue("--bg-scrub-effect"),{width:f,height:g}=n.getMediaDimensionsByEffect?.(p||r,m.offsetWidth,m.offsetHeight,l)||{width:c.offsetWidth,height:c.offsetHeight};if(s&&(t.sourceSetsTargetHeights=function(e,t,i,o,r){const s={};return e.forEach((({mediaQuery:e,scrollEffect:n})=>{s[e]=r.getMediaDimensionsByEffect(n,t,i,o).height})),s}(s,m.offsetWidth,m.offsetHeight,l,n)),!a)return;const v=E(a);p&&(t.top=.5*(c.offsetHeight-g),t.left=.5*(c.offsetWidth-f)),t.width=f,t.height=function(e,t){return"fixed"===t||"viewport"===t?document.documentElement.clientHeight+x:e}(g,u),t.screenHeight=l,t.imgSrc=v,t.boundingRect=c.getBoundingClientRect(),t.mediaHeightOverrideType=u,t.srcset=a.srcset},patch:function(e,t,i,o,r,s,n,c,l){if(!Object.keys(t).length)return;const{imageData:d}=o,u=i[e],h=i.image;c&&(d.devicePixelRatio=1);const m=o.targetScale||1,p={...o,...!o.skipMeasure&&{targetWidth:(t.width||0)*m,targetHeight:(t.height||0)*m},displayMode:d.displayMode},f=y(p,r,"img"),g=f?.css?.img||{},b=function(e,t,i,o,r){const s=function(e,t=1){return 1!==t?{...e,width:"100%",height:"100%"}:e}(t,o);if(r&&(delete s.height,s.width="100%"),!e)return s;const n={...s};return"fill"===i?(n.position="absolute",n.top="0"):"fit"===i&&(n.height="100%"),"fixed"===e&&(n["will-change"]="transform"),n.objectPosition&&(n.objectPosition=t.objectPosition.replace(/(center|bottom)$/,"top")),n}(t.mediaHeightOverrideType,g,d.displayMode,m,n);v(h,b),(t.top||t.left)&&v(u,{top:`${t.top}px`,left:`${t.left}px`});const w=f?.uri||"",E=d?.hasAnimation||o?.hasAnimation,x=function(e,t,i){const{sourceSets:o}=t;if(!o||!o.length)return;const r={};return o.forEach((({mediaQuery:o,crop:s,focalPoint:n})=>{const a={...t,targetHeight:(e.sourceSetsTargetHeights||{})[o]||0,imageData:{...t.imageData,crop:s,focalPoint:n}},c=y(a,i,"img");r[o]=c.uri||""})),r}(t,p,r);if(l&&(h.dataset.ssrSrcDone="true"),o.isLQIP&&o.lqipTransition&&!("transitioned"in u.dataset)&&(u.dataset.transitioned="",h.complete?h.onload=function(){h.dataset.loadDone=""}:h.onload=function(){h.complete?h.dataset.loadDone="":h.onload=function(){h.dataset.loadDone=""}}),s){((e,t)=>(0,a.getFileExtension)(e)===a.fileType.GIF||(0,a.getFileExtension)(e)===a.fileType.WEBP&&t)(d.uri,E)?(h.setAttribute("fetchpriority","low"),h.setAttribute("loading","lazy"),h.setAttribute("decoding","async")):h.setAttribute("fetchpriority","high"),h.currentSrc!==w&&h.setAttribute("src",w);t.srcset&&!t.srcset.split(", ").some((e=>e.split(" ")[0]===w))&&h.setAttribute("srcset",w),i.picture&&p.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((e=>{const t=e.media||"",i=x?.[t];e.srcset!==i&&e.setAttribute("srcset",i||"")}))}}},T={parallax:"ImageParallax",fixed:"ImageReveal"};var I=function(e,t,i){return class extends i.HTMLElement{constructor(){super(),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(e,t){t&&this.reLayout()}connectedCallback(){t.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const o={},r={},s=this.getAttribute("id"),n=JSON.parse(this.dataset.imageInfo||""),a="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:l}=n.imageData,{sourceSets:d}=n,u=c||l&&T[l];d&&d.length&&d.forEach((e=>{e.scrollEffect&&(e.scrollEffect=T[e.scrollEffect])})),o[s]=this,n.containerId&&(o[n.containerId]=i.document.getElementById(`${n.containerId}`));const h=n.containerId?o[n.containerId]:void 0;if(o.image=this.querySelector("img"),o.picture=this.querySelector("picture"),!o.image){const e=this;return void this.observeChildren(e)}this.unobserveChildren(),this.observeChildren(this),e.mutationService.measure((()=>{S.measure(s,r,o,{containerElm:h,bgEffect:u,sourceSets:d},e)}));const m=(i,c)=>{e.mutationService.mutate((()=>{S.patch(s,r,o,n,t,i,a,u,c)}))},p=o.image,f=this.dataset.hasSsrSrc&&!p.dataset.ssrSrcDone;!E(p)||f?m(!0,!0):this.debounceImageLoad(m)}debounceImageLoad(e){clearTimeout(this.timeoutId),this.timeoutId=i.setTimeout((()=>{e(!0)}),250),e(!1)}observeResize(){e.resizeService?.observe(this)}unobserveResize(){e.resizeService?.unobserve(this)}observeIntersect(){e.intersectionService?.observe(this)}unobserveIntersect(){e.intersectionService?.unobserve(this)}observeChildren(e){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(e,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};function P(e={},t=null,i={}){if("undefined"==typeof window)return;const o={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,...i},r=function(e,t){const i="wow-image";if(void 0===(e=e||window).customElements.get(i)){let o,r;return e.ResizeObserver&&(o=new e.ResizeObserver((e=>e.map((e=>e.target.reLayout()))))),e.IntersectionObserver&&(r=new IntersectionObserver((e=>e.map((e=>{if(e.isIntersecting){const t=e.target;t.unobserveIntersect(),t.observeResize()}return e}))),{rootMargin:"150% 100%"})),function(s){const n=I({resizeService:o,intersectionService:r,mutationService:l(),...t},s,e);e.customElements.define(i,n)}}}(t,e);r&&r(o)}var A=i(88538),M="f5beaf6a";(()=>{var e=".UQr3P{display:block;height:100%;width:100%}.UQr3P img{max-width:var(--wix-img-max-width,100%)}.UQr3P[data-animate-blur] img{filter:blur(9px);transition:filter .8s ease-in}.UQr3P[data-animate-blur] img[data-load-done]{filter:none}";if(!(void 0!==A&&A.env,"undefined"==typeof document||document.querySelector('style[data-ricos-style-hash="'+M+'"]'))){var t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.setAttribute("data-ricos-style-hash",M),i.type="text/css",t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})();var _="UQr3P",O=i(98290);let L=!1;var C=e=>{L||(P(),L=!0);const{containerProps:t,error:i,...o}=e,[a,c]=n().useState(!0);return(0,s.useEffect)((()=>{const e=()=>{c(!1)};return window.addEventListener("beforeprint",e),()=>{window.removeEventListener("beforeprint",e)}}),[]),n().createElement("div",{style:t?.style,id:t?.containerId,className:t?.className,"data-hook":t?.dataHook},n().createElement(p,{...o,className:r()(_,o.className),shouldUseLQIP:a}),i&&n().createElement(O.A,{error:i.message,t:i.t}))}},98290:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var o=i(4452),r=i.n(o),s=i(60751),n=i.n(s),a=i(80134),c=i(87626),l=i(2348),d=i(88538),u="07a9d01e";(()=>{var e=".dSGoY{align-items:center;color:#fff;display:flex;height:100%;justify-content:center;position:absolute;top:0;width:100%}[dir] .dSGoY{background:rgba(0,0,0,.5);text-align:center}.ah7Uh{height:20px;width:20px}[dir] .kF1vf{margin-bottom:56px}.cLEV3{font-size:16px;line-height:24px;position:absolute}";if(!(void 0!==d&&d.env,"undefined"==typeof document||document.querySelector('style[data-ricos-style-hash="'+u+'"]'))){var t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.setAttribute("data-ricos-style-hash",u),i.type="text/css",t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})();var h="dSGoY",m="ah7Uh",p="kF1vf",f="cLEV3";const g={[a.MediaUploadErrorKey.GENERIC]:"UploadFile_Error_Generic_Item",[a.MediaUploadErrorKey.QUOTA_STORAGE_VISITOR]:"UploadFile_Error_Generic_Item",[a.MediaUploadErrorKey.QUOTA_STORAGE_OWNER]:"UploadFile_Error_Generic_Item",[a.MediaUploadErrorKey.QUOTA_VIDEO_VISITOR]:"UploadFile_Error_Generic_Item",[a.MediaUploadErrorKey.QUOTA_VIDEO_OWNER]:"UploadFile_Error_Generic_Item",[a.MediaUploadErrorKey.SIZE_LIMIT]:"UploadFile_Error_Size_Item"};var v=e=>{const{error:t,t:i,isTooltip:o}=e,s=t.key&&i?.(g[t.key])||t.msg||i?.("UploadFile_Error_Generic_Item"),a=r()(m,!o&&p);return n().createElement("div",{className:h},o?n().createElement(c.A,{content:s,isError:!0},n().createElement(l.A,{className:a})):n().createElement(n().Fragment,null,n().createElement(l.A,{className:a}),n().createElement("div",{className:f},s)))}},2348:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var o=i(60751),r=i.n(o);var s=e=>r().createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",...e},r().createElement("path",{fill:"currentColor",d:"M6.5 13a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13zm0-.867A5.633 5.633 0 1 0 6.5.867a5.633 5.633 0 0 0 0 11.266zm-.3-3.132h.599c.11 0 .2.09.2.2V9.8a.2.2 0 0 1-.2.2H6.2a.2.2 0 0 1-.2-.2v-.599c0-.11.09-.2.2-.2zM6.2 3h.6c.11 0 .2.09.2.2v4.6a.2.2 0 0 1-.2.2h-.6a.2.2 0 0 1-.2-.2V3.2c0-.11.09-.2.2-.2z"}))},87626:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var o=i(60751),r=i.n(o),s=i(94726);const n=(e=>{const t=r().lazy(e);return t.preload=e,t})((async()=>{const e=await i.e(6813).then(i.bind(i,97879));return e.default?.default?e.default:e}));class a extends r().Component{constructor(){super(...arguments),this.disabled=!1,this.mousePosition={x:0,y:0},this.state={tooltipVisible:!1},this.showTooltip=e=>{n.preload(),e.target.disabled||(this.mousePosition={x:e.pageX,y:e.pageY},this.timeoutId=setTimeout((()=>{this.setState({tooltipVisible:!0},(()=>{this.forceUpdate(),setTimeout((()=>this.props.followMouse&&this.updateTooltipPosition()))}))}),300))},this.onMouseMove=e=>{this.props.followMouse&&(this.mousePosition={x:e.pageX,y:e.pageY},this.updateTooltipPosition())},this.updateTooltipPosition=()=>{const{x:e,y:t}=this.mousePosition,i=document.querySelector(".ToolTipPortal > div");if(i){const{offsetWidth:o,offsetHeight:r}=i;i.style.left=e-o/2+"px",i.style.top=t-r-25+"px"}},this.hideTooltip=()=>{clearTimeout(this.timeoutId),this.setState({tooltipVisible:!1})},this.wrappChildrenProp=(e,t)=>({[e]:i=>{t(i),this.props.children.props[e]?.(i)}}),this.wrapperProps={...this.wrappChildrenProp("onMouseEnter",this.showTooltip),...this.wrappChildrenProp("onMouseLeave",this.hideTooltip),...this.wrappChildrenProp("onClick",this.hideTooltip),...this.wrappChildrenProp("onMouseMove",this.onMouseMove)}}componentDidUpdate(){this.disabled=window.richContentHideTooltips}componentWillUnmount(){clearTimeout(this.timeoutId)}render(){const{children:e,content:t,isError:i,place:s,tooltipOffset:a,followMouse:c,hideArrow:l,forceVisibility:d}=this.props,{tooltipVisible:u}=this.state,{isMobile:h}=this.context,m=((e,t,i,o)=>({style:{background:e?"#F64D43":"rgb(0,0,0)",color:"white",padding:"8px 12px",fontFamily:(()=>{let e="Helvetica Neue";if("undefined"!=typeof window){const t=document.querySelector("[data-hook=root-editor]")||document.body;e=window.getComputedStyle(t).getPropertyValue("--ricos-settings-text-font-family")||"Helvetica Neue"}return e})(),border:"solid 1px rgba(255,255,255,0.38)",maxWidth:"180px",position:t?"relative":"absolute",fontSize:"14px",marginTop:"top"===o&&i?Math.abs(i.y):i?.y,pointerEvents:"none",transition:"none",fontWeight:"300",zIndex:1e6},arrowStyle:{color:e?"#F64D43":"rgb(0,0,0)",borderColor:"rgba(255,255,255,0.38)",pointerEvents:"none",transition:"none"}}))(i,c,a,s),p=d||u?{...this.wrapperProps,"data-tooltipid":!0}:this.wrapperProps,f=l?null:"center";return h||this.disabled||!t?e:r().createElement(r().Fragment,null,r().cloneElement(r().Children.only(e),p),d||u?r().createElement(o.Suspense,{fallback:null},r().createElement(n,{active:d||u,parent:"[data-tooltipid=true]",position:s,arrow:f,style:m,tooltipTimeout:10,group:"ricos"},t)):null)}}a.defaultProps={isError:!1,place:"top",tooltipOffset:{x:0,y:0}},a.contextType=s.F;var c=a},14179:function(e,t,i){var o;!function(t){"use strict";var r=function(){},s=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function n(){var e=this;e.reads=[],e.writes=[],e.raf=s.bind(t),r("initialized",e)}function a(e){e.scheduled||(e.scheduled=!0,e.raf(c.bind(null,e)),r("flush scheduled"))}function c(e){r("flush");var t,i=e.writes,o=e.reads;try{r("flushing reads",o.length),e.runTasks(o),r("flushing writes",i.length),e.runTasks(i)}catch(e){t=e}if(e.scheduled=!1,(o.length||i.length)&&a(e),t){if(r("task errored",t.message),!e.catch)throw t;e.catch(t)}}function l(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}n.prototype={constructor:n,runTasks:function(e){var t;for(r("run tasks");t=e.shift();)t()},measure:function(e,t){r("measure");var i=t?e.bind(t):e;return this.reads.push(i),a(this),i},mutate:function(e,t){r("mutate");var i=t?e.bind(t):e;return this.writes.push(i),a(this),i},clear:function(e){return r("clear",e),l(this.reads,e)||l(this.writes,e)},extend:function(e){if(r("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var d=t.fastdom=t.fastdom||new n;void 0===(o=function(){return d}.call(d,i,d,e))||(e.exports=o)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)}}]); //# sourceMappingURL=8132.chunk.min.js.map