1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[1512],{55260(){},7247(e,t,o){o.d(t,{A:()=>a});var n=o(74848),i=o(96540),l=o(40961),r=o(67247);let a=({children:e,wrapperElement:t="div",wrapperElementId:o="divId",inputRef:a,type:d,DropdownDirection:s="auto",wrapperName:c="",openInCenter:u=!1,glassDesign:p=!1})=>{let[h,m]=(0,i.useState)(null),[w,g]=(0,i.useState)(0),[f,v]=(0,i.useState)(0),y=(0,i.useRef)(null),[b,C]=(0,i.useState)({top:0,left:0}),x=r.Wp.CheckIsProApp(),[B,k]=(0,i.useState)(e?.props?.children?.length);return((0,i.useLayoutEffect)(()=>{if(!h||!h.firstElementChild)return;let e=h.firstElementChild,t=e?.getBoundingClientRect(),o=0,n=h.children;for(let e=0;e<n.length;e++)o+=n[e].scrollHeight;g(o),v(t?.width||700)},[h,o,e]),(0,i.useLayoutEffect)(()=>{C((()=>{let t,n,l;if(!a?.current)return{top:0,left:0};let h=a?.current?.getBoundingClientRect();if(!h||!h?.width&&!h.height)return{top:0,left:0};let m=85*!!p,g=window.innerHeight-h.bottom-(("threedotmenu"===o||"NestedDropdownPortal"===o)&&x?85:0)-m,v=h.top-m;if("ColorPicker"===o)t=420;else if("threedotmenu"===o||"threedotmenu"===c)t=36*(B||0)+10;else if("daterpicker"===o)t=340;else if("timepicker"===o||o.startsWith("timepicker-"))t=160;else if("dropdownmenu"===o)t=36*(e?.props?.children[0].length||0)+32;else if("NestedDropdownPortal"===o)t=38*(B||0)+8;else if("phonecountry"===o)t=257;else if("inputtogglemenu"===o){let o=e?.props?.children?.[1],n=(o?i.Children.toArray(o.props?.children).filter(Boolean):[]).length;t=n>0?41.8*n+53.6:179}else t="dotphrase-portal"===o?38*(B||0)+60:"gif-picker-portal"===o?370:"emoji-picker-portal"===o?369:u&&"daterangepicker"===o?490:258;let y=w||t,b=h.left,C=window.innerWidth-h.right,k=f||700,T=h.left+window.scrollX,I=!1;if(d===r.IU.addressSuggestions){let e=window.innerHeight,t=e/3,o=2*e/3,i=h.top<t,l=h.top>=t&&h.top<=o;n=h.top>o?h.top+window.scrollY-y:l||i||g>=y?h.bottom+window.scrollY:v>=y?h.top+window.scrollY-y:h.bottom+window.scrollY}else d===r.IU.timePickerRight?n=g<y&&v>=y?h.top+window.scrollY-y:h.bottom+window.scrollY:g>=y?n=h.bottom+window.scrollY:v>=y?n=h.top+window.scrollY-y:u&&("daterangepicker"===o||"daterpicker"===o)?(n=window.scrollY+Math.max(0,(window.innerHeight-y)/2),I=!0):n=h.bottom+window.scrollY;if("dotphrase-portal"===o){let e=w||38*(B||0)+20,t=f||320,o=window.innerWidth-h.left;h.right;let n=window.innerHeight-h.bottom;h.top;let i=n>=e?h.bottom+window.scrollY:h.top+window.scrollY-e-16,l=o>=t?h.left+window.scrollX:h.right+window.scrollX-t;return l=Math.max(window.scrollX+8,Math.min(l,window.scrollX+window.innerWidth-t-8)),{top:i=Math.max(window.scrollY+8,Math.min(i,window.scrollY+window.innerHeight-e-8)),left:l}}if(("daterangepicker"===o||"daterpicker"===o||"phonecountry"===o)&&d===r.IU.dateRangePickerAutoPosition)if(u&&I)T=window.scrollX+Math.max(0,(window.innerWidth-k)/2),l=void 0;else if(C+h?.width>=k)T=h.left+window.scrollX,l=void 0;else if(b+h?.width>=k)l=window.innerWidth-(h.right+window.scrollX),T=void 0;else{let e=window.innerWidth;h.left<e/2?(T=window.scrollX,l=void 0):"phonecountry"===o?l=void 0:(l=0,T=void 0)}else if("phonecountry"===o&&d===r.IU.phonecountry)C>=328?(T=h.left+window.scrollX,l=void 0):b>=328?(l=window.innerWidth-(h.right+window.scrollX),T=void 0):C>=b?(T=h.left+window.scrollX,l=void 0):(l=window.innerWidth-(h.right+window.scrollX),T=void 0);else switch(d){case r.IU.action:T=b<C?h.left+window.scrollX:window.innerWidth-C-(h?.width||328);break;case r.IU.timePickerRight:h?.width;let L=window.innerWidth,j=navigator.userAgent,E=/^((?!chrome|android).)*safari/i.test(j),P=navigator.platform.toUpperCase().indexOf("MAC")>=0;l=L-(h.right+window.scrollX+(E||P?0:10));break;case r.IU.threeDotmenu:n=g<y&&v>=y?h.top+window.scrollY-y:h.bottom+window.scrollY;let W=window.visualViewport?.width??document.documentElement.clientWidth??window.innerWidth,N=f||0,F=h.right>=N,M=W-h.left>=N;("left"===s?!N||M||!F:N&&!F&&M)?(T=h.left+window.scrollX,l=void 0):(l=Math.round(W-h.right),T=void 0);break;case r.IU.smileyPicker:T=h.right+window.scrollX-240;break;case r.IU.tableGrid:{let e=window.scrollX+8,t=window.scrollX+window.innerWidth-8,o=window.visualVie
1wport,i=o?window.innerHeight-o.height:0;n=null!=o&&i>80?h.top+window.scrollY-y:g>=y?h.bottom+window.scrollY:v>=y?h.top+window.scrollY-y:g>=v?h.bottom+window.scrollY:h.top+window.scrollY-y,T=C>=k?h.left+window.scrollX:b>=k?h.right+window.scrollX-k:Math.max(e,Math.min(h.left+window.scrollX,t-k));break}case r.IU.dateRangePickerRight:l=window.innerWidth-(h.right+window.scrollX);break;case r.IU.gifPicker:{let e=window.innerWidth-h.left,t=h.right;T=e>=343?h.left+window.scrollX:t>=343?h.right+window.scrollX-335:window.scrollX+Math.max(8,Math.min(h.left,window.innerWidth-335-8));break}case r.IU.emojiPicker:{let e=y||369;n=g>=e+4?h.bottom+window.scrollY+4:v>=e+4?h.top+window.scrollY-e-4:g>v?h.bottom+window.scrollY+4:h.top+window.scrollY-e-4;let t=h.left+window.scrollX;t+360>window.innerWidth+window.scrollX-8&&(t=window.innerWidth+window.scrollX-360-8),t<window.scrollX+8&&(t=window.scrollX+8),T=t;break}default:T=h.left+window.scrollX}if("dropdownmenu"===o&&s&&"auto"!==s){let e,t=window.innerHeight-h.bottom,o=h.top;return"right"===s?e=h.right+window.scrollX:"left"===s&&(e=h.left-h.width+window.scrollX),{top:t>=y?h.top+window.scrollY:o>=y?h.bottom+window.scrollY-y:h.top+window.scrollY,left:e}}return void 0!==l?{top:n,right:l}:{top:n,left:T}})())},[a,w,d,o,e]),(0,i.useEffect)(()=>{let e=y.current;if(!e||!e.firstElementChild)return;let t=()=>{let t=e.firstElementChild,o=t?.getBoundingClientRect(),n=0,i=e.children;for(let e=0;e<i.length;e++)n+=i[e].offsetHeight;g(n),v(o?.width||700)};t();let o=new ResizeObserver(t),n=new MutationObserver(t);return o.observe(e),n.observe(e,{childList:!0,subtree:!0}),()=>{o.disconnect(),n.disconnect()}},[e,o,d]),(0,i.useEffect)(()=>{let e,n=document.getElementById(o);n||((e=document.createElement(t)).setAttribute("id",o),""!==o&&("Popup-change-log-popup"===o&&e.setAttribute("data-identity","history"),"Popup-renter-popup"===o&&e.setAttribute("data-identity","sub-history")),document.body.appendChild(e),n=e),y.current=n,m(n);try{let e=a?.current??null,t=e?e.closest("[data-popup-id]"):null,o=t?.getAttribute("data-popup-id");o?n.setAttribute("data-parent-popup-id",o):n.removeAttribute("data-parent-popup-id")}catch{}return()=>{n&&document.body.contains(n)&&document.body.removeChild(n)}},[o,t]),null===h)?null:(0,l.createPortal)((0,n.jsx)("div",{style:{position:"absolute",...b,..."dropdownmenu"===o||"table-grid-portal"===o||"threedotmenu"===o||"threedotmenu"===c||"emoji-picker-portal"===o||"gif-picker-portal"===o?{zIndex:9999}:{}},children:e}),h)}},84955(e,t,o){o.r(t),o.d(t,{default:()=>g});var n=o(74848),i=o(96540);o(55260);var l=o(65195),r=o(67247),a=o(7247),d=o(94089),s=o(27142);let c=null,u=null,p=()=>c?Promise.resolve(c):(u||(u=Promise.all([o.e(3799),o.e(2058)]).then(o.bind(o,44762)).then(e=>(c=e.default,e.default),e=>{throw u=null,e})),u),h=[],m=0,w=0,g=({PopupTitle:e,ScreenTitle:t,PopupSubTitle:o,EnableBody:u,Popupopen:g=!1,TextDescription:f,PopupBody:v,CloseButton:y=!0,NativeAction:b=0,Footer:C=0,OpenFooter:x=1,TimerCount:B=0,IsFullLength:k=!1,Size:T="medium",CloseOnOutsideClick:I=!1,PopupId:L="",FooterButton:j="none",ButtonPrimary:E,ButtonSecondary:P,ButtonThird:W,FormValid:N,FormValidation:F={},CloseBackTitle:M,OnClickPrimary:S=(e,t)=>{},OnClickSecondary:A=()=>{},OnClickThird:R=()=>{},ButtonFourth:$,FourthButtonVariant:V="primary",OnClickFourth:D=()=>{},onClose:X=()=>{},VagaroToolkit:O=0,customClassName:Y="",SecondaryButtonVariant:H="secondary",PrimaryButtonVariant:U="primary",ThirdButtonVariant:z="primary",MobileView:J=!1,TitleIsShow:_=!0,PopupImage:G,DescriptionType:Z="plain",FullWidthButtons:K=!0,BottomSheet:q=!1,PopupType:Q="default",BodyClass:ee="",BodyCustomClass:et="",DoNotSetTitle:eo=!0,FooterButtonDisabled:en,headerImage:ei,FooterButtonOptions:el,ButtonCallbackAllow:er={PrimaryBtnCallBackAllow:!0,SecondaryBtnCallBackAllow:!0,ThirdBtnCallBackAllow:!0,FourthBtnCallBackAllow:!0},VimeoVideoID:ea="",FooterLeftTemplate:ed,PreventInternalClose:es=!1,FooterleftAlignment:ec=!1,ButtonIcons:eu={primary:"",secondary:"",third:"",fourth:""},ZIndex:ep,EnterKeyTriggerPrimary:eh=!1,AllowCallback:em=!0,TabIndexObj:ew={},GlassDesign:eg=!1,HiddenBodyScroll:ef=!1,OpenInPortal:ev=!0,BottomSheetDefault:ey=!1,HideHeader:eb=!1,OpenCloseCallbackAllow:eC={OpenCallBackAllow:!0,CloseCallBackAllow:!0},InfoTooltipMessage:ex=""})=>{let[eB,ek]=(0,i.useState)(g),[eT,eI]=(0,i.useState)(!1),[eL,ej]=(0,i.useState)(()=>c),eE=(0,i.useRef)(null),eP="premium"===Q&&!(G&&""===ea);(0,i.useEffect)(()=>
1{if(!eP||eL)return;let e=!0;return p().catch(()=>p()).then(t=>{e&&ej(()=>t)}).catch(()=>{}),()=>{e=!1}},[eP,eL]);let eW=r.Wp.CheckIsFromProAppWithoutState(),eN=r.Wp.CheckIsFromIpadAndroidTabWithoutParm(),eF=r.Wp.CheckIsFromPaydeskWithoutParm(),eM=r.Wp.CheckIsPayProDevice(),eS=r.Wp.CheckIsFromIpadAndroidPayproWithoutParm(),[eA,eR]=(0,i.useState)(null),e$=(0,i.useRef)(null),eV=(0,i.useRef)(null),eD=(0,i.useRef)(null),eX=(0,i.useRef)(null),eO=(0,i.useRef)(null),eY=()=>{if(eW&&eC?.CloseCallBackAllow){r.Wp.CallBackGivenToMobileApp(b,M,C,B,k);var e={};e.message="",e.messageType=0,e.screenTitle=M,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:b,Footer:C,TimerCount:B,callFromLocation:L,VagaroToolkit:O,IsFullLength:k}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}},eH="u">typeof window&&window.innerWidth<768;(ey||q&&eH)&&(I=!0,y=!1);let eU=()=>{let e=ey||q&&eH;es?e?setTimeout(()=>{eY(),X()},800):(eY(),X()):e?(eI(!0),setTimeout(()=>{ek(!1),eY(),X()},800)):(eI(!0),ek(!1),eY(),X())},ez=(e,t)=>{if(eR("primary"===eA?null:"primary"),er.PrimaryBtnCallBackAllow&&eW&&em){r.Wp.CallBackGivenToMobileApp(b,M,C,B,k);var o={};o.message="",o.messageType=0,o.screenTitle=M,o.screenType=0,o.navType=0,o.action="53|~|"+JSON.stringify({NativeAction:b,Footer:C,TimerCount:B,callFromLocation:L,VagaroToolkit:O,IsFullLength:k}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(o))}S&&S(e,t)},eJ=()=>{if(eR("secondary"===eA?null:"secondary"),er.SecondaryBtnCallBackAllow&&eW&&em){r.Wp.CallBackGivenToMobileApp(b,M,C,B,k);var e={};e.message="",e.messageType=0,e.screenTitle=M,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:b,Footer:C,TimerCount:B,callFromLocation:L,VagaroToolkit:O,IsFullLength:k}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}A&&A()},e_=()=>{if(eR("third"===eA?null:"third"),er.ThirdBtnCallBackAllow&&eW&&em){r.Wp.CallBackGivenToMobileApp(b,M,C,B,k);var e={};e.message="",e.messageType=0,e.screenTitle=M,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:b,Footer:C,TimerCount:B,callFromLocation:L,VagaroToolkit:O,IsFullLength:k}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}R&&R()},eG=()=>{if(eR("fourth"===eA?null:"fourth"),er.FourthBtnCallBackAllow&&eW&&em){r.Wp.CallBackGivenToMobileApp(b,M,C,B,k);var e={};e.message="",e.messageType=0,e.screenTitle=M,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:b,Footer:C,TimerCount:B,callFromLocation:L,VagaroToolkit:O,IsFullLength:k}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}D&&D()},eZ=i.useCallback(e=>{let t=h.length>0&&h[h.length-1].current===eE.current;if(!I||!t||!eE.current)return;let o=e.composedPath?.()||[];if(o.length?o.includes(eE.current):eE.current.contains(e.target))return;let n=o.find(e=>e instanceof HTMLElement&&e.hasAttribute("data-parent-popup-id"));n?.getAttribute("data-parent-popup-id")!==String(L)&&eU()},[I,eU]);(0,i.useEffect)(()=>{eB&&eI(!1)},[eB]),(0,i.useEffect)(()=>{ek(g)},[g]),(0,i.useEffect)(()=>{if(eB){if(h.includes(eE)||h.push(eE),document.addEventListener("mousedown",eZ),eW&&J&&!q&&eC?.OpenCallBackAllow){var o={};o.message="",o.messageType=0,o.screenTitle=eo?t||e:"",o.screenType=0,o.navType=0,o.action="53|~|"+JSON.stringify({NativeAction:b,Footer:x,IsFullLength:k,callFromLocation:L,VagaroToolkit:O}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(o))}}else{let e=h.indexOf(eE);-1!==e&&h.splice(e,1),document.removeEventListener("mousedown",eZ)}return()=>{let e=h.indexOf(eE);-1!==e&&h.splice(e,1),document.removeEventListener("mousedown",eZ)}},[eB,I]),(0,i.useEffect)(()=>{let e=ee?.split(" ").filter(Boolean);return eB&&e?.length?document.body.classList.add(...e):e?.length&&document.body.classList.remove(...e),()=>{e?.length&&document.body.classList.remove(...e)}},[eB,ee]),(0,i.useEffect)(()=>{let e=()=>{eA&&(eR(null),setTimeout(()=>{eR(eA)},100))};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[eA]),(0,i.useEffect)(()=>{let e=e=>{eh&&eB&&"Enter"===e.key&&en?.primary!==!0&&(e.preventDefault(),ez())};return eB&&eh&&en?.primary!==!0&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[eB,eh,en?.primary]),(0,i.useLayoutEffect)(()=>
1{if(!eB||!ef)return;let e=document.documentElement,t=document.body,o=/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return 1==++m&&(e.classList.add("popup-open"),o&&(w=window.scrollY,t.style.position="fixed",t.style.top=`-${w}px`,t.style.width="100%",t.style.overflow="hidden")),()=>{0==--m&&(e.classList.remove("popup-open"),o&&(t.style.position="",t.style.top="",t.style.width="",t.style.overflow="",window.scrollTo(0,w)))}},[eB,ef]);let eK=()=>(0,n.jsxs)(n.Fragment,{children:["default"===Q&&(0,n.jsx)("div",{className:`modal-overlay ${ev?"vg-popup-withportal":"vg-popup-withoutportal"} ${ep?"vg-modal-overlay-zindex":""} ${"fullscreen"===T?"fullscreenoverlay":""} ${eT?"closing":""}`,"data-popup-id":L,"data-identity":J?"full-popup":"",style:{"--popup-z-index":ep},children:(0,n.jsx)("div",{className:`vg-modal-dialog ${eN||eM||eF||eW||eS?"vg-pro-ipad":""} ${eg?"Popup-glassdesign":""} ${ey?"vg-popup-bottomsheet-default":""} ${eH&&q?"vg-popup-bottomsheet":""} ${J?"mobilefullScreen":""} vg-modalsummary modal-dialog-scrollable modal-dialog-centered ${T} 2 ${Y}`,children:(0,n.jsxs)("div",{className:"vg-modal-content",ref:eE,children:[!eb&&(0,n.jsxs)("div",{className:`vg-modal-header ${ei?.url?"vg-popup-header-img":""} ${ei?.customImageClass&&""}`,style:ei?.url&&!e?{backgroundImage:`url(${ei?.url})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",height:ei?.height||"250px"}:void 0,children:[(e||ex)&&(0,n.jsxs)("div",{className:"vg-modal-title",children:[e,ex&&""!==ex&&(0,n.jsx)("span",{className:"vg-input-lbl-infochip",children:(0,n.jsx)(d.default,{BeakPoint:"Up",BeakPosition:"Middle",Children:(0,n.jsx)("div",{className:"vg-tooltiptext",children:(0,n.jsx)(s.default,{name:"info_circle"})}),TextAlign:"center",TooltipText:ex,Html:!0,TooltipRender:"portal"})})]}),o&&(0,n.jsx)("div",{className:"vg-modal-subtitle",children:o}),y&&(0,n.jsx)("div",{className:"vg-btn-close",onClick:eU,id:"close",children:(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M12.3945 11.4805C12.7754 11.832 12.7754 12.4473 12.3945 12.7988C12.2188 12.9746 11.9844 13.0625 11.75 13.0625C11.4863 13.0625 11.252 12.9746 11.0762 12.7988L8 9.72266L4.89453 12.7988C4.71875 12.9746 4.48438 13.0625 4.25 13.0625C3.98633 13.0625 3.75195 12.9746 3.57617 12.7988C3.19531 12.4473 3.19531 11.832 3.57617 11.4805L6.65234 8.375L3.57617 5.29883C3.19531 4.94727 3.19531 4.33203 3.57617 3.98047C3.92773 3.59961 4.54297 3.59961 4.89453 3.98047L8 7.05664L11.0762 3.98047C11.4277 3.59961 12.043 3.59961 12.3945 3.98047C12.7754 4.33203 12.7754 4.94727 12.3945 5.29883L9.31836 8.4043L12.3945 11.4805Z"})})})]}),(0,n.jsxs)("div",{className:`vg-modal-body ${et||""}`,children:[v?v():null,f]}),"none"!==j&&(0,n.jsxs)("div",{className:`vg-modal-footer ${ec?"left-alignment":""} ${ed?"vg-modal-footer-with-left-template":""}`,children:[ed&&ed?.(),ed?(0,n.jsxs)("div",{className:"vg-modal-footer-buttons",children:["fourthButton"===j&&(0,n.jsx)(l.default,{ref:eX,ButtonVariant:V,ButtononClick:eG,IconPlacement:"prefix",ValidForm:N,FormValidations:F,ButtonDisabled:en?.fourth??!1,ButtonIcon:eu.fourth,TabIndex:ew?.fourth,children:$}),("thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(l.default,{ref:eD,ButtonVariant:z,ButtononClick:e_,IconPlacement:"prefix",ValidForm:N,FormValidations:F,ButtonDisabled:en?.third??!1,ButtonIcon:eu.third,TabIndex:ew?.third,children:W}),("secondaryButton"===j||"both"===j||"thirdButton"===j)&&(0,n.jsx)(l.default,{ref:eV,ButtonVariant:H,ButtononClick:eJ,IconPlacement:"prefix",ButtonDisabled:en?.secondary??!1,ButtonIcon:eu.secondary,TabIndex:ew?.secondary,children:P}),("primaryButton"===j||"both"===j||"thirdButton"===j)&&(0,n.jsx)(l.default,{ref:e$,ButtonVariant:U,ButtononClick:ez,IconPlacement:"prefix",ButtonIcon:eu.primary,ValidForm:N,FormValidations:F,ButtonDisabled:en?.primary??!1,TabIndex:ew?.primary,children:E})]}):(0,n.jsxs)(n.Fragment,{children:["fourthButton"===j&&(0,n.jsx)(l.default,{ref:eX,ButtonVariant:V,ButtononClick:eG,IconPlacement:"prefix",ValidForm:N,FormV
2alidations:F,ButtonDisabled:en?.fourth??!1,ButtonIcon:eu.fourth,TabIndex:ew?.fourth,children:$}),("thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(l.default,{ref:eD,ButtonVariant:z,ButtononClick:e_,IconPlacement:"prefix",ValidForm:N,FormValidations:F,ButtonDisabled:en?.third??!1,ButtonIcon:eu.third,TabIndex:ew?.third,children:W}),("secondaryButton"===j||"both"===j||"thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(l.default,{ref:eV,ButtonVariant:H,ButtononClick:eJ,IconPlacement:"prefix",ButtonIcon:eu.secondary,ButtonDisabled:en?.secondary??!1,TabIndex:ew?.secondary,children:P}),("primaryButton"===j||"both"===j||"thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(l.default,{ref:e$,ButtonVariant:U,ButtononClick:ez,IconPlacement:"prefix",ButtonIcon:eu.primary,ValidForm:N,FormValidations:F,ButtonDisabled:en?.primary??!1,TabIndex:ew?.primary,children:E})]}),eA&&el?.[eA]?.visible&&el?.[eA]?.options&&el[eA].options.length>0&&(0,n.jsx)(a.A,{inputRef:"primary"===eA?e$:"secondary"===eA?eV:"third"===eA?eD:eX,type:r.IU.timePickerRight,wrapperElementId:"threedotmenu",children:(0,n.jsx)("div",{ref:eO,className:"vg-dropdown-menu-action",children:el[eA].options.map((e,t)=>(0,n.jsx)("div",{className:"vg-dropdown-menu-link",onClick:t=>{eR(null),e.onClick?.(t)},onMouseDown:e=>e.preventDefault(),children:e.label},e.label+t))})})]}),(0,n.jsx)("input",{type:"hidden",onClick:()=>eU(),id:"close-full-popup"})]})})}),"custom"===Q&&(0,n.jsx)("div",{className:`modal-overlay ${ep?"vg-modal-overlay-zindex":""}`,"data-popup-id":L,style:{"--popup-z-index":ep},children:(0,n.jsxs)("div",{className:`vg-modal-dialog vg-custom-dialog ${eg?"Popup-glassdesign":""} ${J?"mobilefullScreen":""} vg-modalsummary modal-dialog-scrollable modal-dialog-centered ${T} 3 ${Y}`,children:[(0,n.jsxs)("div",{className:"vg-modal-content",ref:eE,children:[y&&(0,n.jsx)("div",{className:"custom-close",onClick:eU,children:(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M12.3945 11.4805C12.7754 11.832 12.7754 12.4473 12.3945 12.7988C12.2188 12.9746 11.9844 13.0625 11.75 13.0625C11.4863 13.0625 11.252 12.9746 11.0762 12.7988L8 9.72266L4.89453 12.7988C4.71875 12.9746 4.48438 13.0625 4.25 13.0625C3.98633 13.0625 3.75195 12.9746 3.57617 12.7988C3.19531 12.4473 3.19531 11.832 3.57617 11.4805L6.65234 8.375L3.57617 5.29883C3.19531 4.94727 3.19531 4.33203 3.57617 3.98047C3.92773 3.59961 4.54297 3.59961 4.89453 3.98047L8 7.05664L11.0762 3.98047C11.4277 3.59961 12.043 3.59961 12.3945 3.98047C12.7754 4.33203 12.7754 4.94727 12.3945 5.29883L9.31836 8.4043L12.3945 11.4805Z"})})}),(0,n.jsx)("div",{className:`vg-modal-body ${et||""}`,children:v?v():null})]}),(0,n.jsx)("input",{type:"hidden",onClick:()=>eU(),id:"close-full-popup"})]})}),"premium"===Q&&(0,n.jsxs)("div",{className:`modal-overlay ${ep?"vg-modal-overlay-zindex":""}`,"data-popup-id":L,style:{"--popup-z-index":ep},children:[(0,n.jsx)("div",{className:`vg-modal-dialog vg-modalsummary vg-premium-dialog vg-modalsummary modal-dialog-scrollable modal-dialog-centered ${eg?"Popup-glassdesign":""} ${Y} ${"large"===T?"vg-premium-large-popup":""}`,children:(0,n.jsxs)("div",{className:"vg-modal-content",ref:eE,children:[G&&""===ea?(0,n.jsx)("div",{className:"popup-image",children:(0,n.jsx)("img",{src:G,alt:"Gift card",className:"popup-image"})}):(0,n.jsx)("div",{className:"popup-vimeovideo",children:eL&&(0,n.jsx)(eL,{Html:"",HtmlBackground:"",VideoID:ea})}),y&&(0,n.jsx)("div",{className:"vg-btn-close",onClick:eU,children:(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M12.3945 11.4805C12.7754 11.832 12.7754 12.4473 12.3945 12.7988C12.2188 12.9746 11.9844 13.0625 11.75 13.0625C11.4863 13.0625 11.252 12.9746 11.0762 12.7988L8 9.72266L4.89453 12.7988C4.71875 12.9746 4.48438 13.0625 4.25 13.0625C3.98633 13.0625 3.75195 12.9746 3.57617 12.7988C3.19531 12.4473 3.19531 11.832 3.57617 11.4805L6.65234 8.375L3.57617 5.29883C3.19531 4.94727 3.19531 4.33203 3.57617 3.98047C3.92773 3.59961 4.54297 3.59961 4.89453 3.98047L8 7.05664L11.0762 3.98047C11.4277 3.59961 12.043 3.59961 12.3945 3.98047C12.7754 4.33203 12.7754 4.94727 12.3945 5.29883L9.31836 8.4043L12.3945 11.4805Z"})})}),(0,n.jsxs)("div",{className:`vg-modal-body ${et||""}`,children:[_&&(0,n.jsx)("div",{className:"vg-modal-header",children:e&&(0,n.jsx)("div",{className:"vg-modal-title",children:e})}),f&&(0,n.jsx)("div",{className:`popup-description ${Z}`,children:"bullet"===Z&&"string"==typeof f?(0,n.jsx)("ul",{children:f.split("\n").map((e,t)=>(0,n.jsx)("li",{children:e.trim()},t))}):"number"===Z&&"string"==typeof f?(0,n.jsx)("ol",{children:f.split("\n").map((e,t)=>(0,n.jsx)("li",{children:e.trim()},t))}):"string"==typeof f?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:f}}):(0,n.jsx)("div",{children:f})})]}),"none"!==j&&(0,n.jsxs)("div",{className:`vg-modal-footer ${K?"full-width-buttons":"auto-width-buttons"}`,children:["primaryButton"===j||"both"===j?(0,n.jsx)(l.default,{ButtonVariant:U,ButtononClick:S,ButtonDisabled:en?.primary??!1,ButtonIcon:eu.primary,children:E}
3):null,"secondaryButton"===j||"both"===j?(0,n.jsx)(l.default,{ButtonVariant:H,ButtononClick:A,ButtonDisabled:en?.secondary??!1,ButtonIcon:eu.secondary,children:P}):null,"thirdButton"===j||"fourthButton"===j?(0,n.jsx)(l.default,{ButtonVariant:z,ButtononClick:R,ButtonDisabled:en?.third??!1,ButtonIcon:eu.third,children:W}):null,"fourthButton"===j?(0,n.jsx)(l.default,{ButtonVariant:V,ButtononClick:D,ButtonDisabled:en?.fourth??!1,ButtonIcon:eu.fourth,children:$}):null]})]})}),(0,n.jsx)("input",{type:"hidden",onClick:()=>eU(),id:"close-full-popup"})]})]});return(0,n.jsxs)(i.Fragment,{children:[eB&&(ev?(0,n.jsx)(a.A,{wrapperElementId:`Popup-${L}`,children:eK()}):eK()),(0,n.jsx)("input",{type:"hidden",onClick:()=>eU(),id:`close-${L}`})," "]})}},94089(e,t,o){o.r(t),o.d(t,{default:()=>a});var n=o(74848),i=o(96540),l=o(40961),r=o(67247);let a=({TooltipText:e,Children:t,ScreenTitleForMobile:o,IsEmptyScreenTitle:a=!1,Html:d=!0,TextAlign:s="center",BeakPoint:c="Down",BeakPosition:u="Middle",Duration:p=2e3,ShowHover:h=!0,TriggerTooltip:m=!1,OnTooltipClose:w,FullWidth:g=!1,TooltipRender:f="inline",MaxWidth:v,FullHeight:y=!1,ForceWebRender:b=!1})=>{let[C,x]=(0,i.useState)("top-center"),[B,k]=(0,i.useState)(!1),T=(0,i.useRef)(null),I=(0,i.useRef)(null),L=(0,i.useRef)(null),j=(0,i.useRef)(null),E=(0,i.useRef)(!1),[P,W]=(0,i.useState)({top:0,left:0}),N=r.Wp.CheckIsFromProAppWithoutState()&&!b,F=r.Wp.CheckIsFromIpadAndroidTabWithoutParm(),M=h&&!F,S=(0,i.useRef)([]),A=e=>{let t=getComputedStyle(e),o=t.overflowY,n=t.overflowX;return/(auto|scroll|overlay)/.test(o)||/(auto|scroll|overlay)/.test(n)},R=(0,i.useCallback)(e=>{let t=[],o=e?.parentElement||null;for(;o;)A(o)&&t.push(o),o=o.parentElement;return t.push(document.scrollingElement||document.documentElement),t},[]);(0,i.useEffect)(()=>(L.current&&(clearTimeout(L.current),L.current=null),!h&&m?(k(!0),p>0&&(L.current=setTimeout(()=>{k(!1),w&&w()},p))):k(!1),()=>{L.current&&(clearTimeout(L.current),L.current=null)}),[m,p,w,h]),(0,i.useEffect)(()=>{if("portal"!==f&&B&&T.current&&I.current){let e=T.current.getBoundingClientRect(),t=I.current.getBoundingClientRect(),o=window.innerWidth,n=window.innerHeight,i=t.top>=e.height,l=n-t.bottom>=e.height,r=t.left>=e.width,a=o-t.right>=e.width;i?x("top-center"):l?x("bottom-center"):r?x("left"):a?x("right"):x("bottom-center")}},[B,f]),(0,i.useEffect)(()=>{if("inline"!==f&&B&&I.current){let e=I.current.getBoundingClientRect(),t=T.current?.getBoundingClientRect().width??200,o=T.current?.getBoundingClientRect().height??40,n=window.innerWidth,i=window.innerHeight,l=e.top>=o+8,r=i-e.bottom>=o+8,a=e.left>=t+8,d=n-e.right>=t+8;l?x("top-center"):r?x("bottom-center"):a?x("left"):d?x("right"):x("bottom-center")}},[B,f]);let $=()=>{if(!I.current||!T.current)return"Middle";let e=I.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),o=window.innerWidth,n=t.width||200,i=e.left+e.width/2,l=i-n/2,r=o-(i+n/2);return l>=20&&r>=20?"Middle":l<20?"Left":r<20?"Right":"Middle"};(0,i.useEffect)(()=>{let e=u;"Auto"===u&&(e=$()),"Down"===c&&"Middle"===e?x("bottom-center"):"Down"===c&&"Left"===e?x("bottom-left"):"Down"===c&&"Right"===e?x("bottom-right"):"Up"===c&&"Left"===e?x("top-left"):"Up"===c&&"Right"===e&&x("top-right")},[c,u,C,B]),(0,i.useEffect)(()=>{if("Auto"!==u)return;let e=()=>{if(B){let e=$();"Down"===c&&"Middle"===e?x("bottom-center"):"Down"===c&&"Left"===e?x("bottom-left"):"Down"===c&&"Right"===e?x("bottom-right"):"Up"===c&&"Left"===e?x("top-left"):"Up"===c&&"Right"===e&&x("top-right")}};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[u,c,B,window.innerWidth]);let V=(0,i.useCallback)(()=>{if("inline"===f||!B||"Auto"!==u||!T.current||!I.current)return;let e=T.current.getBoundingClientRect(),t=I.current.getBoundingClientRect(),o=window.innerWidth,n=t.left,i=o-t.right,l=e.width;return i<l&&i<n?`${n+30}px`:n<l&&n<i?`${i+30}px`:void 0},[f,B,u]),D=(0,i.useCallback)(()=>{if("inline"===f||!B||!T.current||!I.current)return;let e=T.current.getBoundingClientRect(),t=I.current.getBoundingClientRect(),o=0,n=0,i=t.left+t.width/2,l=t.top+t.height/2;switch(C){case"top-center":o=t.top-e.height-8,n=i-e.width/2;break;case"bottom-center":o=t.bottom+8,n=i-e.width/2;break;case"left":o=l-e.height/2,n=t.left-e.width-8;break;case"right":o=l-e.height/2,n=t.right+8;break;case"top-left":o=t.top-e.height-8,n=t.left-10;break;case"top-right":o=t.top-e.height-8,n=t.right-e.width+10;break;case"bottom-left":o=t.bottom+8,n=t.left-10;break;case"bottom-right":o=t.bottom+8,n=t.right-e.width+10}let r=window.innerWidth,a=window.innerHeight,d=Math.max(8,Math.min(n,r-e.width-8)),s=Math.max(8,Math.min(o,a-e.height-8)),c=`${i-d}px`;W({top:s,left:d,maxWidth:V(),beakLeft:c})},[f,B,C,V]);(0,i.useLayoutEffect)(()=>{"portal"===f&&D()},[B,C,u,f,D]),(0,i.useEffect)(()=>
3{if("inline"===f||!B)return;let e=R(I.current);S.current=e;let t=()=>D();return e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),window.addEventListener("resize",t),t(),()=>{e.forEach(e=>e.removeEventListener("scroll",t)),window.removeEventListener("resize",t)}},[B,C,u,f,D,R]),(0,i.useEffect)(()=>{if(!B)return;let e=R(I.current),t=()=>{E.current=!0,k(!1),w&&w()};return e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),window.addEventListener("scroll",t,{passive:!0}),()=>{e.forEach(e=>e.removeEventListener("scroll",t)),window.removeEventListener("scroll",t)}},[B,R,w]);let X=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"";(0,i.useEffect)(()=>{let e=e=>{F&&I.current&&!I.current.contains(e.target)&&k(!1)};if(F)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[F]),(0,i.useEffect)(()=>{if("portal"!==f&&!v&&B&&T.current&&I.current&&"Auto"===u){let e=T.current,t=e.getBoundingClientRect(),o=I.current.getBoundingClientRect(),n=window.innerWidth,i=o.left,l=n-o.right;e.style.maxWidth="none";let r=t.width;l<r&&l<i?e.style.maxWidth=`${i+30}px`:i<r&&i<l&&(e.style.maxWidth=`${l+30}px`)}},[B,C,f,v]);let O=()=>{j.current&&(window.clearTimeout(j.current),j.current=null)},Y=()=>{M&&"inline"!==f&&(O(),k(!0))},H=()=>{M&&"inline"!==f&&(O(),j.current=window.setTimeout(()=>k(!1),10))};(0,i.useEffect)(()=>()=>O(),[]);let U=()=>{!F&&h&&(E.current=!1,k(!0))},z="portal"===f&&M?{onMouseEnter:Y,onMouseLeave:H,onMouseMove:()=>{E.current&&Y()}}:{onMouseEnter:U,onMouseLeave:()=>{!F&&h&&(E.current=!1,k(!1))},onMouseMove:()=>{E.current&&U()}};return(0,n.jsxs)("div",{className:`vg-group vg-tooltip-group ${y?"vg-tooltip-fullheight":""}`,children:[(0,n.jsxs)("div",{className:`vg-tooltip vg-tooltip-${C} ${g?"vg-tooltip-fullwidth":""} ${"portal"===f?"vg-tooltip-portal-trigger":""}`,ref:I,...z,onPointerUp:n=>{if(n.preventDefault(),n.stopPropagation(),h&&(F&&!N&&k(!0),N&&e)){var l={};l.message=e,l.messageType=0,l.screenTitle=i.isValidElement(t)?a?"":o||"Info":X(e),l.screenType=0,l.navType=51,l.action="",r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(l))}},children:["inline"===f&&e&&B&&(0,n.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}`,ref:T,style:v?{maxWidth:v}:void 0,children:d?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&X(e)}),t]}),"portal"===f&&e&&B&&(0,l.createPortal)((0,n.jsx)("div",{className:`vg-tooltip vg-tooltip-portal vg-tooltip-${C} ${g?"vg-tooltip-fullwidth":""}`,children:(0,n.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}`,ref:T,style:{position:"fixed",top:P.top,left:P.left,maxWidth:v||P.maxWidth,zIndex:9999,visibility:0===P.left&&0===P.top?"hidden":"visible","--beak-left":P.beakLeft||"50%"},onMouseEnter:Y,onMouseLeave:H,children:d?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&X(e)})}),document.body)]})}}}]);
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.