!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt_popup",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt_popup"]=t(require("react")):e["rb_wixui.thunderbolt_popup"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={5329:function(t){"use strict";t.exports=e},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.entries(e).reduce(((e,[t,i])=>(t.includes("data-")&&(e[t]=i),e)),{});const d="wixui-",h=(e,...t)=>{const i=[];return e&&i.push(`${d}${e}`),t.forEach((e=>{e&&(i.push(`${d}${e}`),i.push(e))})),i.join(" ")};var u="jhxvbR";const g="v1",m=2,p=1920,_=1920,f=1e3,T=1e3,I={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},E={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},L={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},b={[L.CENTER]:{x:.5,y:.5},[L.TOP_LEFT]:{x:0,y:0},[L.TOP_RIGHT]:{x:1,y:0},[L.TOP]:{x:.5,y:0},[L.BOTTOM_LEFT]:{x:0,y:1},[L.BOTTOM_RIGHT]:{x:1,y:1},[L.BOTTOM]:{x:.5,y:1},[L.RIGHT]:{x:1,y:.5},[L.LEFT]:{x:0,y:.5}},A={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},O={BG:"bg",IMG:"img",SVG:"svg"},w={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},y={classic:1,super:2},M={radius:"0.66",amount:"1.00",threshold:"0.01"},v={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},R=25e6,C=[1.5,2,4],G={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},S={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},P={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},N={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",AVIF:"avif",UNRECOGNIZED:"unrecognized"},F={AVIF:"AVIF",PAVIF:"PAVIF"};N.JPG,N.JPEG,N.JPE,N.PNG,N.GIF,N.WEBP;function x(e,...t){return function(...i){const a=i[i.length-1]||{},n=[e[0]];return t.forEach((function(t,r){const o=Number.isInteger(t)?i[t]:a[t];n.push(o,e[r+1])})),n.join("")}}function k(e){return e[e.length-1]}const H=[N.PNG,N.JPEG,N.JPG,N.JPE,N.WIX_ICO_MP,N.WIX_MP,N.WEBP,N.AVIF],$=[N.JPEG,N.JPG,N.JPE];function B(e,t,i){return i&&t&&!(!(a=t.id)||!a.trim()||"none"===a.toLowerCase())&&Object.values(I).includes(e);var a}function Y(e,t,i){return function(e,t,i=!1){return!((j(e)||D(e))&&t&&!i)}(e,t,i)&&(function(e){return H.includes(J(e))}(e)||function(e,t=!1){return z(e)&&t}(e,i))&&!/(^https?)|(^data)|(^\/\/)/.test(e)}function U(e){return J(e)===N.PNG}function j(e){return J(e)===N.WEBP}function z(e){return J(e)===N.GIF}function D(e){return J(e)===N.AVIF}const V=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),W=["\\.","\\*"],Z="_";function q(e){return function(e){return $.includes(J(e))}(e)?N.JPG:U(e)?N.PNG:j(e)?N.WEBP:z(e)?N.GIF:D(e)?N.AVIF:N.UNRECOGNIZED}function J(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function K(e,t,i,a,n){let r;return r=n===E.FILL?function(e,t,i,a){return Math.max(i/e,a/t)}(e,t,i,a):n===E.FIT?function(e,t,i,a){return Math.min(i/e,a/t)}(e,t,i,a):1,r}function X(e,t,i,a,n,r){e=e||a.width,t=t||a.height;const{scaleFactor:o,width:c,height:s}=function(e,t,i,a,n){let r,o=i,c=a;if(r=K(e,t,i,a,n),n===E.FIT&&(o=e*r,c=t*r),o&&c&&o*c>R){const i=Math.sqrt(R/(o*c));o*=i,c*=i,r=K(e,t,o,c,n)}return{scaleFactor:r,width:o,height:c}}(e,t,a.width*n,a.height*n,i);return function(e,t,i,a,n,r,o){const{optimizedScaleFactor:c,upscaleMethodValue:s,forceUSM:l}=function(e,t,i,a){if("auto"===a)return function(e,t){const i=ie(e,t);return{optimizedScaleFactor:G[i].maxUpscale,upscaleMethodValue:y.classic,forceUSM:!1}}(e,t);if("super"===a)return function(e){return{optimizedScaleFactor:k(C),upscaleMethodValue:y.super,forceUSM:!(C.includes(e)||e>k(C))}}(i);return function(e,t){const i=ie(e,t);return{optimizedScaleFactor:G[i].maxUpscale,upscaleMethodValue:y.classic,forceUSM:!1}}(e,t)}(e,t,r,n);let d=i,h=a;if(r<=c)return{width:d,height:h,scaleFactor:r,upscaleMethodValue:s,forceUSM:l,cssUpscaleNeeded:!1};switch(o){case E.FILL:d=i*(c/r),h=a*(c/r);break;case E.FIT:d=e*c,h=t*c}return{width:d,height:h,scaleFactor:c,upscaleMethodValue:s,forceUSM:l,cssUpscaleNeeded:!0}}(e,t,c,s,r,o,i)}function Q(e,t,i,a){const n=te(i)||function(e=L.CENTER){return b[e]}(a);return{x:Math.max(0,Math.min(e.width-t.width,n.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,n.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function ee(e){return e.alignment&&A[e.alignment]||A[L.CENTER]}function te(e){let t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:ae(Math.max(0,Math.min(100,e.x))/100,2),y:ae(Math.max(0,Math.min(100,e.y))/100,2)}),t}function ie(e,t){const i=e*t;return i>G[S.HIGH].size?S.HIGH:i>G[S.MEDIUM].size?S.MEDIUM:i>G[S.LOW].size?S.LOW:S.TINY}function ae(e,t){const i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function ne(e){return e&&e.upscaleMethod&&w[e.upscaleMethod.toUpperCase()]||w.AUTO}function re(e,t){const i=j(e)||D(e);return J(e)===N.GIF||i&&t}const oe={isMobile:!1},ce=function(e){return oe[e]};function se(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e=t&&i,oe["isMobile"]=e}var e}function le(e,t){const i={css:{container:{}}},{css:a}=i,{fittingType:n}=e;switch(n){case I.ORIGINAL_SIZE:case I.LEGACY_ORIGINAL_SIZE:case I.LEGACY_STRIP_ORIGINAL_SIZE:a.container.backgroundSize="auto",a.container.backgroundRepeat="no-repeat";break;case I.SCALE_TO_FIT:case I.LEGACY_STRIP_SCALE_TO_FIT:a.container.backgroundSize="contain",a.container.backgroundRepeat="no-repeat";break;case I.STRETCH:a.container.backgroundSize="100% 100%",a.container.backgroundRepeat="no-repeat";break;case I.SCALE_TO_FILL:case I.LEGACY_STRIP_SCALE_TO_FILL:a.container.backgroundSize="cover",a.container.backgroundRepeat="no-repeat";break;case I.TILE_HORIZONTAL:case I.LEGACY_STRIP_TILE_HORIZONTAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-x";break;case I.TILE_VERTICAL:case I.LEGACY_STRIP_TILE_VERTICAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-y";break;case I.TILE:case I.LEGACY_STRIP_TILE:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat";break;case I.LEGACY_STRIP_FIT_AND_TILE:a.container.backgroundSize="contain",a.container.backgroundRepeat="repeat";break;case I.FIT_AND_TILE:case I.LEGACY_BG_FIT_AND_TILE:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat";break;case I.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-x";break;case I.LEGACY_BG_FIT_AND_TILE_VERTICAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-y";break;case I.LEGACY_BG_NORMAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="no-repeat"}switch(t.alignment){case L.CENTER:a.container.backgroundPosition="center center";break;case L.LEFT:a.container.backgroundPosition="left center";break;case L.RIGHT:a.container.backgroundPosition="right center";break;case L.TOP:a.container.backgroundPosition="center top";break;case L.BOTTOM:a.container.backgroundPosition="center bottom";break;case L.TOP_RIGHT:a.container.backgroundPosition="right top";break;case L.TOP_LEFT:a.container.backgroundPosition="left top";break;case L.BOTTOM_RIGHT:a.container.backgroundPosition="right bottom";break;case L.BOTTOM_LEFT:a.container.backgroundPosition="left bottom"}return i}const de={[L.CENTER]:"center",[L.TOP]:"top",[L.TOP_LEFT]:"top left",[L.TOP_RIGHT]:"top right",[L.BOTTOM]:"bottom",[L.BOTTOM_LEFT]:"bottom left",[L.BOTTOM_RIGHT]:"bottom right",[L.LEFT]:"left",[L.RIGHT]:"right"},he={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function ue(e,t){const i={css:{container:{},img:{}}},{css:a}=i,{fittingType:n}=e,r=t.alignment;switch(a.container.position="relative",n){case I.ORIGINAL_SIZE:case I.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(a.img.width=e.parts[0].width,a.img.height=e.parts[0].height):(a.img.width=e.src.width,a.img.height=e.src.height);break;case I.SCALE_TO_FIT:case I.LEGACY_FIT_WIDTH:case I.LEGACY_FIT_HEIGHT:case I.LEGACY_FULL:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="contain",a.img.objectPosition=de[r]||"unset";break;case I.LEGACY_BG_NORMAL:a.img.width="100%",a.img.height="100%",a.img.objectFit="none",a.img.objectPosition=de[r]||"unset";break;case I.STRETCH:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="fill";break;case I.SCALE_TO_FILL:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="cover"}if("number"==typeof a.img.width&&"number"==typeof a.img.height&&(a.img.width!==t.width||a.img.height!==t.height)){const e=Math.round((t.height-a.img.height)/2),i=Math.round((t.width-a.img.width)/2);Object.assign(a.img,he,function(e,t,i){return{[L.TOP_LEFT]:{top:0,left:0},[L.TOP_RIGHT]:{top:0,right:0},[L.TOP]:{top:0,left:t},[L.BOTTOM_LEFT]:{bottom:0,left:0},[L.BOTTOM_RIGHT]:{bottom:0,right:0},[L.BOTTOM]:{bottom:0,left:t},[L.RIGHT]:{top:e,right:0},[L.LEFT]:{top:e,left:0},[L.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(e,i,t)[r])}return i}function ge(e,t){const i={css:{container:{}},attr:{container:{},img:{}}},{css:a,attr:n}=i,{fittingType:r}=e,o=t.alignment,{width:c,height:s}=e.src;let l;switch(a.container.position="relative",r){case I.ORIGINAL_SIZE:case I.LEGACY_ORIGINAL_SIZE:case I.TILE:e.parts&&e.parts.length?(n.img.width=e.parts[0].width,n.img.height=e.parts[0].height):(n.img.width=c,n.img.height=s),n.img.preserveAspectRatio="xMidYMid slice";break;case I.SCALE_TO_FIT:case I.LEGACY_FIT_WIDTH:case I.LEGACY_FIT_HEIGHT:case I.LEGACY_FULL:n.img.width="100%",n.img.height="100%",n.img.transform="",n.img.preserveAspectRatio="";break;case I.STRETCH:n.img.width=t.width,n.img.height=t.height,n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="none";break;case I.SCALE_TO_FILL:Y(e.src.id)?(n.img.width=t.width,n.img.height=t.height):(l=function(e,t,i,a,n){const r=K(e,t,i,a,n);return{width:Math.round(e*r),height:Math.round(t*r)}}(c,s,t.width,t.height,E.FILL),n.img.width=l.width,n.img.height=l.height),n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==t.width||n.img.height!==t.height)){let e,i,a=0,c=0;r===I.TILE?(e=t.width%n.img.width,i=t.height%n.img.height):(e=t.width-n.img.width,i=t.height-n.img.height);const s=Math.round(e/2),l=Math.round(i/2);switch(o){case L.TOP_LEFT:a=0,c=0;break;case L.TOP:a=s,c=0;break;case L.TOP_RIGHT:a=e,c=0;break;case L.LEFT:a=0,c=l;break;case L.CENTER:a=s,c=l;break;case L.RIGHT:a=e,c=l;break;case L.BOTTOM_LEFT:a=0,c=i;break;case L.BOTTOM:a=s,c=i;break;case L.BOTTOM_RIGHT:a=e,c=i}n.img.x=a,n.img.y=c}return n.container.width=t.width,n.container.height=t.height,n.container.viewBox=[0,0,t.width,t.height].join(" "),i}function me(e,t,i){let a;switch(t.crop&&(a=function(e,t){const i=Math.max(0,Math.min(e.width,t.x+t.width)-Math.max(0,t.x)),a=Math.max(0,Math.min(e.height,t.y+t.height)-Math.max(0,t.y));return i&&a&&(e.width!==i||e.height!==a)?{x:Math.max(0,t.x),y:Math.max(0,t.y),width:i,height:a}:null}(t,t.crop),a&&(e.src.width=a.width,e.src.height=a.height,e.src.isCropped=!0,e.parts.push(_e(a)))),e.fittingType){case I.SCALE_TO_FIT:case I.LEGACY_FIT_WIDTH:case I.LEGACY_FIT_HEIGHT:case I.LEGACY_FULL:case I.FIT_AND_TILE:case I.LEGACY_BG_FIT_AND_TILE:case I.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case I.LEGACY_BG_FIT_AND_TILE_VERTICAL:case I.LEGACY_BG_NORMAL:e.parts.push(pe(e,i));break;case I.SCALE_TO_FILL:e.parts.push(function(e,t){const i=X(e.src.width,e.src.height,E.FILL,t,e.devicePixelRatio,e.upscaleMethod),a=te(e.focalPoint);return{transformType:a?E.FILL_FOCAL:E.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:ee(t),focalPointX:a&&a.x,focalPointY:a&&a.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case I.STRETCH:e.parts.push(function(e,t){const i=K(e.src.width,e.src.height,t.width,t.height,E.FILL),a={...t};return a.width=e.src.width*i,a.height=e.src.height*i,pe(e,a)}(e,i));break;case I.TILE_HORIZONTAL:case I.TILE_VERTICAL:case I.TILE:case I.LEGACY_ORIGINAL_SIZE:case I.ORIGINAL_SIZE:a=Q(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],a),e.src.width=a.width,e.src.height=a.height):e.parts.push(_e(a));break;case I.LEGACY_STRIP_TILE_HORIZONTAL:case I.LEGACY_STRIP_TILE_VERTICAL:case I.LEGACY_STRIP_TILE:case I.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:E.LEGACY_CROP,width:Math.round(e.width),height:Math.round(e.height),alignment:ee(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case I.LEGACY_STRIP_SCALE_TO_FIT:case I.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:E.FIT,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case I.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:E.LEGACY_FILL,width:Math.round(e.width),height:Math.round(e.height),alignment:ee(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function pe(e,t){const i=X(e.src.width,e.src.height,E.FIT,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:!e.src.width||!e.src.height?E.FIT:E.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:A.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function _e(e){return{transformType:E.CROP,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function fe(e,t){t=t||{},e.quality=function(e,t){const i=e.fileType===N.PNG,a=e.fileType===N.JPG,n=e.fileType===N.WEBP,r=e.fileType===N.AVIF,o=a||i||n||r;if(o){const a=k(e.parts),n=(c=a.width,s=a.height,G[ie(c,s)].quality);let r=t.quality&&t.quality>=5&&t.quality<=90?t.quality:n;return r=i?r+5:r,r}var c,s;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=t.autoEncode??!0,e.encoding=t?.encoding,e.unsharpMask=function(e,t){if(function(e){const t="number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&e.radius>=.1&&e.radius<=500,i="number"==typeof e.amount&&!isNaN(e.amount)&&e.amount>=0&&e.amount<=10,a="number"==typeof e.threshold&&!isNaN(e.threshold)&&e.threshold>=0&&e.threshold<=255;return t&&i&&a}(t.unsharpMask))return{radius:ae(t.unsharpMask?.radius,2),amount:ae(t.unsharpMask?.amount,2),threshold:ae(t.unsharpMask?.threshold,2)};if(("number"!=typeof(i=(i=t.unsharpMask)||{}).radius||isNaN(i.radius)||0!==i.radius||"number"!=typeof i.amount||isNaN(i.amount)||0!==i.amount||"number"!=typeof i.threshold||isNaN(i.threshold)||0!==i.threshold)&&function(e){const t=k(e.parts);return!(t.scaleFactor>=1)||t.forceUSM||t.transformType===E.FIT}(e))return M;var i;return}(e,t),e.filters=function(e){const t=e.filters||{},i={};Te(t[P.CONTRAST],-100,100)&&(i[P.CONTRAST]=t[P.CONTRAST]);Te(t[P.BRIGHTNESS],-100,100)&&(i[P.BRIGHTNESS]=t[P.BRIGHTNESS]);Te(t[P.SATURATION],-100,100)&&(i[P.SATURATION]=t[P.SATURATION]);Te(t[P.HUE],-180,180)&&(i[P.HUE]=t[P.HUE]);Te(t[P.BLUR],0,100)&&(i[P.BLUR]=t[P.BLUR]);return i}(t)}function Te(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function Ie(e,t,i,a){const n=function(e){return e?.isSEOBot??!1}(a),r=q(t.id),o=function(e,t){const i=/\.([^.]*)$/,a=new RegExp(`(${V.concat(W).join("|")})`,"g");if(t&&t.length){let e=t;const n=t.match(i);return n&&H.includes(n[1])&&(e=t.replace(i,"")),encodeURIComponent(e).replace(a,Z)}const n=e.match(/\/(.*?)$/);return(n?n[1]:e).replace(i,"")}(t.id,t.name),c=n?1:function(e){return Math.min(e.pixelAspectRatio||1,m)}(i),s=J(t.id),l=s,d=Y(t.id,a?.hasAnimation,a?.allowAnimatedTransform),h={fileName:o,fileExtension:s,fileType:r,fittingType:e,preferredExtension:l,src:{id:t.id,width:t.width,height:t.height,isCropped:!1,isAnimated:re(t.id,a?.hasAnimation)},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:c,quality:0,upscaleMethod:ne(a),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:d};return d&&(me(h,t,i),fe(h,a)),h}function Ee(e,t,i){const a={...i},n=ce("isMobile");switch(e){case I.LEGACY_BG_FIT_AND_TILE:case I.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case I.LEGACY_BG_FIT_AND_TILE_VERTICAL:case I.LEGACY_BG_NORMAL:const e=n?f:p,i=n?T:_;a.width=Math.min(e,t.width),a.height=Math.min(i,Math.round(a.width/(t.width/t.height))),a.pixelAspectRatio=1}return a}const Le=x`fit/w_${"width"},h_${"height"}`,be=x`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Ae=x`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,Oe=x`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,we=x`crop/w_${"width"},h_${"height"},al_${"alignment"}`,ye=x`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Me=x`,lg_${"upscaleMethodValue"}`,ve=x`,q_${"quality"}`,Re=x`,quality_auto`,Ce=x`,usm_${"radius"}_${"amount"}_${"threshold"}`,Ge=x`,bl`,Se=x`,wm_${"watermark"}`,Pe={[P.CONTRAST]:x`,con_${"contrast"}`,[P.BRIGHTNESS]:x`,br_${"brightness"}`,[P.SATURATION]:x`,sat_${"saturation"}`,[P.HUE]:x`,hue_${"hue"}`,[P.BLUR]:x`,blur_${"blur"}`},Ne=x`,enc_auto`,Fe=x`,enc_avif`,xe=x`,enc_pavif`,ke=x`,pstr`;function He(e,t,i,a={},n){if(Y(t.id,a?.hasAnimation,a?.allowAnimatedTransform)){if(j(t.id)||D(t.id)){const{alignment:r,...o}=i;t.focalPoint={x:void 0,y:void 0},delete t?.crop,n=Ie(e,t,o,a)}else n=n||Ie(e,t,i,a);return function(e){const t=[];e.parts.forEach((e=>{switch(e.transformType){case E.CROP:t.push(Oe(e));break;case E.LEGACY_CROP:t.push(we(e));break;case E.LEGACY_FILL:let i=ye(e);e.upscale&&(i+=Me(e)),t.push(i);break;case E.FIT:let a=Le(e);e.upscale&&(a+=Me(e)),t.push(a);break;case E.FILL:let n=be(e);e.upscale&&(n+=Me(e)),t.push(n);break;case E.FILL_FOCAL:let r=Ae(e);e.upscale&&(r+=Me(e)),t.push(r)}}));let i=t.join("/");return e.quality&&(i+=ve(e)),e.unsharpMask&&(i+=Ce(e.unsharpMask)),e.progressive||(i+=Ge(e)),e.watermark&&(i+=Se(e)),e.filters&&(i+=Object.keys(e.filters).map((t=>Pe[t](e.filters))).join("")),e.fileType!==N.GIF&&(e.encoding===F.AVIF?(i+=Fe(e),i+=Re(e)):e.encoding===F.PAVIF?(i+=xe(e),i+=Re(e)):e.autoEncode&&(i+=Ne(e))),e.src?.isAnimated&&e.transformed&&(i+=ke(e)),`${e.src.id}/${g}/${i}/${e.fileName}.${e.preferredExtension}`}(n)}return t.id}const $e={[L.CENTER]:"50% 50%",[L.TOP_LEFT]:"0% 0%",[L.TOP_RIGHT]:"100% 0%",[L.TOP]:"50% 0%",[L.BOTTOM_LEFT]:"0% 100%",[L.BOTTOM_RIGHT]:"100% 100%",[L.BOTTOM]:"50% 100%",[L.RIGHT]:"100% 50%",[L.LEFT]:"0% 50%"},Be=Object.entries($e).reduce(((e,[t,i])=>(e[i]=t,e)),{}),Ye=[I.TILE,I.TILE_HORIZONTAL,I.TILE_VERTICAL,I.LEGACY_BG_FIT_AND_TILE,I.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,I.LEGACY_BG_FIT_AND_TILE_VERTICAL],Ue=[I.LEGACY_ORIGINAL_SIZE,I.ORIGINAL_SIZE,I.LEGACY_BG_NORMAL];function je(e,t,{width:i,height:a}){return e===I.TILE&&t.width>i&&t.height>a}function ze(e,{width:t,height:i}){if(!t||!i){const a=t||Math.min(980,e.width),n=a/e.width;return{width:a,height:i||e.height*n}}return{width:t,height:i}}function De(e,t,i,a="center"){const n={img:{},container:{}};if(e===I.SCALE_TO_FILL){const e=t.focalPoint&&function(e){const t=`${e.x}% ${e.y}%`;return Be[t]||""}(t.focalPoint),r=e||a;t.focalPoint&&!e?n.img={objectPosition:Ve(t,i,t.focalPoint)}:n.img={objectPosition:$e[r]}}else[I.LEGACY_ORIGINAL_SIZE,I.ORIGINAL_SIZE].includes(e)?n.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:Ye.includes(e)&&(n.container={backgroundSize:`${t.width}px ${t.height}px`});return n}function Ve(e,t,i){const{width:a,height:n}=e,{width:r,height:o}=t,{x:c,y:s}=i;if(!r||!o)return`${c}% ${s}%`;const l=Math.max(r/a,o/n),d=a*l,h=n*l,u=Math.max(0,Math.min(d-r,d*(c/100)-r/2)),g=Math.max(0,Math.min(h-o,h*(s/100)-o/2));return`${u&&Math.floor(u/(d-r)*100)}% ${g&&Math.floor(g/(h-o)*100)}%`}const We={width:"100%",height:"100%"};function Ze(e,t,i,a={}){const{autoEncode:n=!0,isSEOBot:r,shouldLoadHQImage:o,hasAnimation:c,allowAnimatedTransform:s,encoding:l}=a;if(!B(e,t,i))return v;const d=void 0===s||s,h=Y(t.id,c,d);if(!h||o)return qe(e,t,i,{...a,autoEncode:n,useSrcset:h});const u={...i,...ze(t,i)},{alignment:g,htmlTag:m}=u,p=je(e,t,u),_=function(e,t,{width:i,height:a},n=!1){if(n)return{width:i,height:a};const r=!Ue.includes(e),o=je(e,t,{width:i,height:a}),c=!o&&Ye.includes(e),s=c?t.width:i,l=c?t.height:a,d=r?function(e,t){return e>900?t?.05:.15:e>500?t?.1:.18:e>200?.25:1}(s,U(t.id)):1;return{width:o?1920:s*d,height:l*d}}(e,t,u,r),f=function(e,t,i){return i?0:Ye.includes(t)?1:e>200?2:3}(u.width,e,r),T=function(e,t){const i=Ye.includes(e)&&!t;return e===I.SCALE_TO_FILL||i?I.SCALE_TO_FIT:e}(e,p),E=De(e,t,i,g),{uri:L}=qe(T,t,{..._,alignment:g,htmlTag:m},{autoEncode:n,filters:f?{blur:f}:{},hasAnimation:c,allowAnimatedTransform:d,encoding:l}),{attr:b={},css:A}=qe(e,t,{...u,alignment:g,htmlTag:m},{});return A.img=A.img||{},A.container=A.container||{},Object.assign(A.img,E.img,We),Object.assign(A.container,E.container),{uri:L,css:A,attr:b,transformed:!0}}function qe(e,t,i,a){let n={};if(B(e,t,i)){const r=Ee(e,t,i),o=Ie(e,t,r,a);n.uri=He(e,t,r,a,o),a?.useSrcset&&(n.srcset=function(e,t,i,a,n){const r=i.pixelAspectRatio||1;return{dpr:[`${1===r?n.uri:He(e,t,{...i,pixelAspectRatio:1},a)} 1x`,`${2===r?n.uri:He(e,t,{...i,pixelAspectRatio:2},a)} 2x`]}}(e,t,r,a,n)),Object.assign(n,function(e,t){let i;return i=t.htmlTag===O.BG?le:t.htmlTag===O.SVG?ge:ue,i(e,t)}(o,r),{transformed:o.transformed})}else n=v;return n}const Je="https://static.wixstatic.com/media/";"undefined"!=typeof window&&window.devicePixelRatio;se();se();const Ke=Je,{STATIC_MEDIA_URL:Xe}=e,Qe=({fittingType:e,src:t,target:i,options:a})=>{const n=Ze(e,t,i,{...a,autoEncode:!0});return n?.uri&&!/^[a-z]+:/.test(n.uri)&&(n.uri=`${Xe}${n.uri}`),n},et=/^[a-z]+:/,tt=e=>{const{id:t,containerId:i,uri:a,alt:n,name:o="",role:c,width:s,height:l,displayMode:d,devicePixelRatio:h,quality:g,alignType:m,bgEffectName:p="",focalPoint:_,upscaleMethod:f,className:T="",crop:I,imageStyles:E={},targetWidth:L,targetHeight:b,targetScale:A,onLoad:O=()=>{},onError:w=()=>{},shouldUseLQIP:y,containerWidth:M,containerHeight:v,getPlaceholder:R,isInFirstFold:C,placeholderTransition:G,socialAttrs:S,isSEOBot:P,skipMeasure:N,hasAnimation:F,encoding:x}=e,k=r.useRef(null);let H="";const $="blur"===G,B=r.useRef(null);if(!B.current)if(R||y||C||P){const e={upscaleMethod:f,...g||{},shouldLoadHQImage:C,isSEOBot:P,hasAnimation:F,encoding:x};B.current=(R||Qe)({fittingType:d,src:{id:a,width:s,height:l,crop:I,name:o,focalPoint:_},target:{width:M,height:v,alignment:m,htmlTag:"img"},options:e}),H=!B.current.transformed||C||P?"":"true"}else B.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const Y=!P&&(R||y)&&!C&&B.current.transformed,U=r.useMemo((()=>JSON.stringify({containerId:i,...i&&{containerId:i},...m&&{alignType:m},...N&&{skipMeasure:!0},displayMode:d,...M&&{targetWidth:M},...v&&{targetHeight:v},...L&&{targetWidth:L},...b&&{targetHeight:b},...A&&{targetScale:A},isLQIP:Y,isSEOBot:P,lqipTransition:G,encoding:x,imageData:{width:s,height:l,uri:a,name:o,displayMode:d,hasAnimation:F,...g&&{quality:g},...h&&{devicePixelRatio:h},..._&&{focalPoint:_},...I&&{crop:I},...f&&{upscaleMethod:f}}})),[i,m,N,d,M,v,L,b,A,Y,P,G,x,s,l,a,o,F,g,h,_,I,f]),j=B.current,z=j?.uri,D=j?.srcset,V=j.css?.img,W=`${u} ${T}`;r.useEffect((()=>{const e=k.current;O&&e?.currentSrc&&e?.complete&&O({target:e})}),[]);const Z=j&&!j?.transformed?`max(${s}px, 100%)`:L?`${L}px`:null;return r.createElement("wow-image",{id:t,class:W,"data-image-info":U,"data-motion-part":`BG_IMG ${i}`,"data-bg-effect-name":p,"data-has-ssr-src":H,"data-animate-blur":!P&&Y&&$?"":void 0,style:Z?{"--wix-img-max-width":Z}:{}},r.createElement("img",{src:z,ref:k,alt:n||"",role:c,style:{...V,...E},onLoad:O,onError:w,width:M||void 0,height:v||void 0,...S,srcSet:C?D?.dpr?.map((e=>et.test(e)?e:`${Xe}${e}`)).join(", "):void 0,fetchpriority:C?"high":void 0,loading:!1===C?"lazy":void 0,suppressHydrationWarning:!0}))};var it="mtrorN";var at=e=>{const{id:t,alt:i,role:a,className:n,imageStyles:o={},targetWidth:c,targetHeight:l,onLoad:d,onError:h,containerWidth:u,containerHeight:g,isInFirstFold:m,socialAttrs:p,skipMeasure:_,responsiveImageProps:f,zoomedImageResponsiveOverride:T,displayMode:I}=e,E=c||u,L=l||g,{fallbackSrc:b,srcset:A,sources:O,css:w}=f||{},{width:y,height:M,...v}=f?.css?.img||{},R="original_size"===I?f?.css?.img:v;return b&&A&&w?r.createElement("img",{fetchpriority:m?"high":void 0,loading:!1===m?"lazy":void 0,sizes:`${E}px`,srcSet:_?T?.srcset:f?.srcset,id:t,src:b,alt:i||"",role:a,style:{...o,..._?{...T?.css?.img}:{...R}},onLoad:d,onError:h,className:s(n,it),width:E,height:L,...p}):b&&O&&w?r.createElement("picture",null,O.map((({srcset:e,media:t,sizes:i})=>r.createElement("source",{key:t,srcSet:e,media:t,sizes:i}))),r.createElement("img",{fetchpriority:m?"high":void 0,loading:!1===m?"lazy":void 0,id:t,src:O[0].fallbackSrc,alt:i||"",role:a,style:{...o,objectFit:O[0].imgStyle.objectFit,objectPosition:O[0].imgStyle.objectPosition},onLoad:d,onError:h,className:s(n,it),width:E,height:L,...p})):r.createElement(tt,{...e})};var nt=e=>{const{className:t,customIdPrefix:i,getPlaceholder:a,hasAnimation:n,...o}=e,c=r.useMemo((()=>JSON.stringify({containerId:o.containerId,alignType:o.alignType,fittingType:o.displayMode,hasAnimation:n,imageData:{width:o.width,height:o.height,uri:o.uri,name:o.name,...o.quality&&{quality:o.quality},displayMode:o.displayMode}})),[o,n]),s=r.useRef(null);s.current||(s.current=a?a({fittingType:o.displayMode,src:{id:o.uri,width:o.width,height:o.height,name:o.name},target:{width:o.containerWidth,height:o.containerHeight,alignment:o.alignType,htmlTag:"bg"},options:{hasAnimation:n,allowAnimatedTransform:!1}}):{uri:void 0,css:{img:{}},attr:{img:{},container:{}}});const l=s.current,d=l?.uri??"",h=l.css?.container??{},u=Object.assign(d?{backgroundImage:`url(${d})`}:{},h);return r.createElement("wix-bg-image",{id:`${i||"bgImg_"}${o.containerId}`,class:t,style:u,"data-tiled-image-info":c,"data-has-bg-scroll-effect":o.hasBgScrollEffect||"","data-bg-effect-name":o.bgEffectName||"","data-motion-part":`BG_IMG ${o.containerId}`})};const rt=new RegExp("<%= compId %>","g"),ot=(e,t)=>e.replace(rt,t);var ct=e=>e?.replace(":hover",""),st="_uqPqy",lt="eKyYhK",dt="x0mqQS",ht="pnCr6P",ut="blf7sp";const gt={quality:{unsharpMask:{radius:.33,amount:1,threshold:0}},devicePixelRatio:1};var mt=e=>{const{id:t,videoRef:i,videoInfo:a,posterImageInfo:n,muted:o,preload:c,loop:l,alt:d,isVideoEnabled:h,getPlaceholder:u,extraClassName:g=""}=e;a.containerId=ct(a.containerId);const m=r.useMemo((()=>JSON.stringify(a)),[a]),p=r.createElement(r.Fragment,null,n.filterEffectSvgString&&r.createElement("svg",{id:`svg_${a.containerId}`,className:ut},r.createElement("defs",{dangerouslySetInnerHTML:{__html:ot(n.filterEffectSvgString,a.containerId)}})),r.createElement(at,{key:`${a.videoId}_img`,id:`${n.containerId}_img`,className:s(lt,dt,"bgVideoposter",g),imageStyles:{width:"100%",height:"100%"},...n,...gt,getPlaceholder:u}));return h?r.createElement("wix-video",{id:t,"data-video-info":m,"data-motion-part":`BG_IMG ${a.containerId}`,class:s(st,"bgVideo",g)},r.createElement("video",{key:`${a.videoId}_video`,ref:i,id:`${a.containerId}_video`,className:ht,crossOrigin:"anonymous","aria-label":d,playsInline:!0,preload:c,muted:o,loop:l}),p):p},pt="rWP3Gv";var _t=e=>{const{id:t,containerId:i,pageId:a,children:n,bgEffectName:o="",containerSize:c}=e;return r.createElement("wix-bg-media",{id:t,class:pt,"data-container-id":i,"data-container-size":`${c?.width||0}, ${c?.height||0}`,"data-page-id":a,"data-bg-effect-name":o,"data-motion-part":`BG_MEDIA ${i}`},n)};const ft="bgOverlay";var Tt="Tr4n3d",It="wRqk6s";var Et=e=>{const{imageOverlay:t}=e;return r.createElement("div",{"data-testid":ft,className:Tt},t&&r.createElement(nt,{customIdPrefix:"bgImgOverlay_",className:It,...t}))};const Lt="bgLayers",bt="colorUnderlay",At="mediaPadding",Ot="canvas";var wt="if7Vw2",yt="f0uTJH",Mt="i1tH8h",vt="DXi4PB",Rt="wG8dni",Ct="tcElKx",Gt="Ybjs9b",St="ImALHf",Pt="UWmm3w",Nt="Yjj1af",Ft="KCM6zk";const xt="bgImage";var kt=e=>{const{videoRef:t,canvasRef:i,hasBgFullscreenScrollEffect:a,image:n,backgroundImage:o,backgroundMedia:c,video:l,backgroundOverlay:d,shouldPadMedia:h,extraClass:u="",shouldRenderUnderlay:g=!l,reducedMotion:m=!1,getPlaceholder:p,hasCanvasAnimation:_,useWixMediaCanvas:f,onClick:T}=e,{onImageLoad:I}=(({onReady:e,image:t})=>((0,r.useEffect)((()=>{e&&!t&&e()}),[e,t]),{onImageLoad:i=>{t?.onLoad&&t.onLoad(i),e&&e()}}))(e),E=ct(e.containerId),L=`img_${ct(E)}`,b=n&&r.createElement(at,{id:L,className:s(Mt,vt,Nt,xt),imageStyles:{width:"100%",height:"100%"},getPlaceholder:p,...n,onLoad:I}),A=o&&r.createElement(nt,{...o,containerId:E,className:s(Mt,vt,Nt,xt),getPlaceholder:p}),O=l&&r.createElement(mt,{id:`videoContainer_${E}`,...l,extraClassName:Gt,reducedMotion:m,videoRef:t,getPlaceholder:p}),w=f&&i||_?r.createElement("wix-media-canvas",{"data-container-id":E,class:_?Ft:""},b,A,O,r.createElement("canvas",{id:`${E}webglcanvas`,className:s(St,"webglcanvas"),"aria-label":l?.alt||"",role:"presentation","data-testid":Ot})):r.createElement(r.Fragment,null,b,A,O,i&&r.createElement("canvas",{id:`${E}webglcanvas`,ref:i,className:s(St,"webglcanvas"),"aria-label":l?.alt||"",role:"presentation","data-testid":Ot})),y=c?r.createElement(_t,{id:`bgMedia_${E}`,...c},w):r.createElement("div",{id:`bgMedia_${E}`,"data-motion-part":`BG_MEDIA ${E}`,className:Rt},w),M=d&&r.createElement(Et,{...d});return r.createElement("div",{id:`${Lt}_${E}`,"data-hook":Lt,"data-motion-part":`BG_LAYER ${E}`,className:s(wt,u,{[yt]:a}),onClick:T},g&&r.createElement("div",{"data-testid":bt,className:s(Ct,Mt)}),h?r.createElement("div",{"data-testid":At,className:Pt},y,M):r.createElement(r.Fragment,null,y,M))};var Ht={root:"lightbox"};var $t=e=>{const{id:t,fillLayers:a,children:n,className:o,customClassNames:c=[],setSiteScrollingBlocked:d,isDisableDocumentScrollWhenLightBoxOpenExperimentOpen:u,lang:g}=e,m={onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave};return(0,r.useEffect)((()=>(u&&d(!0,t),()=>{u&&d(!1,t)})),[d,u,t]),r.createElement("div",i()({id:t},l(e),{className:s(o,h(Ht.root,...c))},m,{"data-block-level-container":"PopupContainer",lang:g}),r.createElement(kt,a),n())};const Bt=e=>e.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)),Yt=e=>({useComponentProps:(t,i,a)=>{const n=(e=>({...e,updateStyles:t=>{const i=Object.entries(t).reduce(((e,[t,i])=>{return{...e,[(a=t,a.startsWith("--")?t:Bt(t))]:void 0===i?null:i};var a}),{});e.updateStyles(i)}}))(a);return e({mapperProps:t,stateValues:i,controllerUtils:n})}});var Ut=Yt((e=>{let{mapperProps:t,stateValues:i}=e;const{pageId:a,setSiteScrollingBlocked:n}=i;return{...t,pageId:a,setSiteScrollingBlocked:n}})),jt="OGxUWl",zt="UOVk9r",Dt="zaJxo_";var Vt=e=>{const{id:t,className:a,pageDidMount:n,fillLayers:o,isPositionFixedAllowed:c=!0,onClick:d,children:h}=e;return r.createElement("div",i()({id:t},l(e),{className:s(a,jt),ref:n}),r.createElement("div",d&&{onClick:d},r.createElement(kt,i()({},o,{extraClass:c?zt:""}))),r.createElement("div",{className:Dt},h()))},Wt="zw1OqY",Zt="ZzUbyt",qt="mrPP2R",Jt="H2KnpH";const Kt=13,Xt=27;function Qt(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}Qt(32),Qt(Kt),Qt(Xt);const ei=["aria-id","aria-metadata","aria-type"],ti=(e,t)=>Object.entries(e).reduce(((e,i)=>{let[a,n]=i;return t.includes(a)||(e[a]=n),e}),{}),ii=function(e){let{role:t,tabIndex:i,tabindex:a,...n}=void 0===e?{}:e;const r=Object.entries(n).reduce(((e,t)=>{let[i,a]=t;return{...e,[("aria-"+i).toLowerCase()]:a}}),{role:t,tabIndex:null!=i?i:a});return Object.keys(r).forEach((e=>{void 0!==r[e]&&null!==r[e]||delete r[e]})),ti(r,ei)},ai="responsive-container-overflow",ni="responsive-container-content";var ri="gNqkn3";const oi=o().forwardRef((({children:e,className:t},i)=>o().createElement("div",{className:s(t,ri),"data-testid":ai,ref:i},e)));var ci=o().forwardRef((({containerLayoutClassName:e,overlowWrapperClassName:t,hasOverflow:i,hasScrollOverflow:a,shouldOmitWrapperLayers:n,children:c,role:l,label:d,extraRootClass:h="",ariaLive:u,ariaAttributes:g,tabIndex:m,tagName:p="div"},_)=>{const f=!n&&i,T=f?a?m||0:-1:void 0,I=(0,r.useCallback)((e=>f?o().createElement(oi,{className:s(t,h)},e):e),[f,t,h]),E=i?e:s(e,h),L={ref:_,"data-testid":ni,tabIndex:T,...l?{role:l}:{},...d?{"aria-label":d}:{},...u?{"aria-live":u}:{},...ii(g)};return"multi-column-layouter"===p?(L.class=E,L.style={visibility:"hidden"}):L.className=E,I(n?o().createElement(o().Fragment,null,c()):o().createElement(p||"div",L,c()))}));const si="responsivePopupContainerBg",li="responsivePopupContainerOverlay";var di=Ht;const hi=r.createContext({});var ui=e=>{const{id:t,className:a,customClassNames:n=[],containerProps:o,containerRootClassName:c,children:d,onClick:u,onMouseEnter:g,onMouseLeave:m,setSiteScrollingBlocked:p,isDisableDocumentScrollWhenLightBoxOpenExperimentOpen:_,lang:f,withOverlay:T=!1}=e,{onOverlayClick:I}=r.useContext(hi);return(0,r.useEffect)((()=>(_&&p(!0,t),()=>{_&&p(!1,t)})),[p,_,t]),r.createElement("div",i()({id:t},l(e),{className:s(a,c,Wt,{[Zt]:T}),onClick:u,onMouseEnter:g,onMouseLeave:m,"data-block-level-container":"PopupContainer",lang:f}),T&&r.createElement("div",{className:Jt,onClick:I,"data-testid":li}),r.createElement("div",{className:s(qt,h(di.root,...n)),"data-testid":si}),r.createElement(ci,o,d))},gi=Yt((e=>{let{mapperProps:t,stateValues:i}=e;const{setSiteScrollingBlocked:a}=i;return{...t,setSiteScrollingBlocked:a}}));const mi="ResponsivePopupPageOverlay";var pi="_6rK0h",_i="v_sFOS",fi="wEzP_D",Ti="QN18GJ",Ii="SHhFKf";var Ei=e=>{const{id:t,className:a,pageDidMount:n,onClick:o,children:c,containerProps:d,overlayCssVars:h,withOverlay:u=!0}=e;return r.createElement("div",i()({id:t},l(e),{className:s(a,pi,{[fi]:o}),ref:n,"data-block-level-container":"PopupPage",style:h}),u&&r.createElement("div",{className:Ti,onClick:o,"data-testid":mi}),r.createElement(ci,i()({},d,{extraRootClass:_i}),(()=>r.createElement("div",{className:Ii},r.createElement(hi.Provider,{value:{onOverlayClick:o}},c())))))};const Li={PopupContainer:{component:$t,controller:Ut},PopupPage:{component:Vt},ResponsivePopupContainer:{component:ui,controller:gi},ResponsivePopupContainer_WithOverlay:{component:e=>r.createElement(ui,i()({},e,{withOverlay:!0})),controller:gi},ResponsivePopupPage:{component:Ei},ResponsivePopupPage_WithoutOverlay:{component:e=>r.createElement(Ei,i()({},e,{overlayCssVars:{"--page-bg":"var(--bg)","--page-alpha-bg":"var(--alpha-bg)"},withOverlay:!1}))}}}(),n}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt_popup.31dfd2e4.bundle.min.js.map