PageSourceSearch

https://111cuts.com/static/js/async/5292.1d51e8d476.js

js 111cuts.com collected 2026-09-24 12:48:27 UTC 23,076 bytes, 3 lines download raw bytes

1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[5292],{80726(){},85345(e,t,o){o.r(t),o.d(t,{default:()=>h});var n=o(74848),l=o(96540);o(80726);var i=o(80401),r=o(98232),a=o(59189),s=o(21062),d=o(2390),u=o(66380);let c=[],p=0,m=0,h=({PopupTitle:e,ScreenTitle:t,PopupSubTitle:o,EnableBody:h,Popupopen:g=!1,TextDescription:f,PopupBody:v,CloseButton:y=!0,NativeAction:B=0,Footer:x=0,OpenFooter:C=1,TimerCount:w=0,IsFullLength:b=!1,Size:k="medium",CloseOnOutsideClick:T=!1,PopupId:L="",FooterButton:j="none",ButtonPrimary:I,ButtonSecondary:F,ButtonThird:E,FormValid:N,FormValidation:P={},CloseBackTitle:S,OnClickPrimary:M=(e,t)=>{},OnClickSecondary:$=()=>{},OnClickThird:A=()=>{},ButtonFourth:W,FourthButtonVariant:V="primary",OnClickFourth:R=()=>{},onClose:D=()=>{},VagaroToolkit:O=0,customClassName:H="",SecondaryButtonVariant:z="secondary",PrimaryButtonVariant:J="primary",ThirdButtonVariant:_="primary",MobileView:G=!1,TitleIsShow:U=!0,PopupImage:Z,DescriptionType:Y="plain",FullWidthButtons:K=!0,BottomSheet:X=!1,PopupType:q="default",BodyClass:Q="",BodyCustomClass:ee="",DoNotSetTitle:et=!0,FooterButtonDisabled:eo,headerImage:en,FooterButtonOptions:el,ButtonCallbackAllow:ei={PrimaryBtnCallBackAllow:!0,SecondaryBtnCallBackAllow:!0,ThirdBtnCallBackAllow:!0,FourthBtnCallBackAllow:!0},VimeoVideoID:er="",FooterLeftTemplate:ea,PreventInternalClose:es=!1,FooterleftAlignment:ed=!1,ButtonIcons:eu={primary:"",secondary:"",third:"",fourth:""},ZIndex:ec,EnterKeyTriggerPrimary:ep=!1,AllowCallback:em=!0,TabIndexObj:eh={},GlassDesign:eg=!1,HiddenBodyScroll:ef=!1,OpenInPortal:ev=!0,BottomSheetDefault:ey=!1,HideHeader:eB=!1,OpenCloseCallbackAllow:ex={OpenCallBackAllow:!0,CloseCallBackAllow:!0},InfoTooltipMessage:eC=""})=>{let[ew,eb]=(0,l.useState)(g),[ek,eT]=(0,l.useState)(!1),eL=(0,l.useRef)(null),ej=r.Wp.CheckIsFromProAppWithoutState(),eI=r.Wp.CheckIsFromIpadAndroidTabWithoutParm(),eF=r.Wp.CheckIsFromPaydeskWithoutParm(),eE=r.Wp.CheckIsPayProDevice(),eN=r.Wp.CheckIsFromIpadAndroidPayproWithoutParm(),[eP,eS]=(0,l.useState)(null),eM=(0,l.useRef)(null),e$=(0,l.useRef)(null),eA=(0,l.useRef)(null),eW=(0,l.useRef)(null),eV=(0,l.useRef)(null),eR=()=>{if(ej&&ex?.CloseCallBackAllow){r.Wp.CallBackGivenToMobileApp(B,S,x,w,b);var e={};e.message="",e.messageType=0,e.screenTitle=S,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:B,Footer:x,TimerCount:w,callFromLocation:L,VagaroToolkit:O,IsFullLength:b}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}},eD="u">typeof window&&window.innerWidth<768;(ey||X&&eD)&&(T=!0,y=!1);let eO=()=>{let e=ey||X&&eD;es?e?setTimeout(()=>{eR(),D()},800):(eR(),D()):e?(eT(!0),setTimeout(()=>{eb(!1),eR(),D()},800)):(eT(!0),eb(!1),eR(),D())},eH=(e,t)=>{if(eS("primary"===eP?null:"primary"),ei.PrimaryBtnCallBackAllow&&ej&&em){r.Wp.CallBackGivenToMobileApp(B,S,x,w,b);var o={};o.message="",o.messageType=0,o.screenTitle=S,o.screenType=0,o.navType=0,o.action="53|~|"+JSON.stringify({NativeAction:B,Footer:x,TimerCount:w,callFromLocation:L,VagaroToolkit:O,IsFullLength:b}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(o))}M&&M(e,t)},ez=()=>{if(eS("secondary"===eP?null:"secondary"),ei.SecondaryBtnCallBackAllow&&ej&&em){r.Wp.CallBackGivenToMobileApp(B,S,x,w,b);var e={};e.message="",e.messageType=0,e.screenTitle=S,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:B,Footer:x,TimerCount:w,callFromLocation:L,VagaroToolkit:O,IsFullLength:b}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}$&&$()},eJ=()=>{if(eS("third"===eP?null:"third"),ei.ThirdBtnCallBackAllow&&ej&&em){r.Wp.CallBackGivenToMobileApp(B,S,x,w,b);var e={};e.message="",e.messageType=0,e.screenTitle=S,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:B,Footer:x,TimerCount:w,callFromLocation:L,VagaroToolkit:O,IsFullLength:b}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}A&&A()},e_=()=>{if(eS("fourth"===eP?null:"fourth"),ei.FourthBtnCallBackAllow&&ej&&em){r.Wp.CallBackGivenToMobileApp(B,S,x,w,b);var e={};e.message="",e.messageType=0,e.screenTitle=S,e.screenType=0,e.navType=0,e.action="53|~|"+JSON.stringify({NativeAction:B,Footer:x,TimerCount:w,callFromLocation:L,VagaroToolkit:O,IsFullLength:b}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(e))}R&&R()},eG=l.useCallback(e=>{let t=c.length>0&&c[c.length-1].current===eL.current;if(!T||!t||!eL.current)return;let o=e.composedPath?.()||[];if(o.length?o.includes(eL.current):eL.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)&&eO()},[T,eO]);(0,l.useEffect)(()=>{ew&&eT(!1)},[ew]),(0,l.useEffect)(()=>{eb(g)},[g]),(0,l.useEffect)(()=>
1{if(ew){if(c.includes(eL)||c.push(eL),document.addEventListener("mousedown",eG),ej&&G&&!X&&ex?.OpenCallBackAllow){var o={};o.message="",o.messageType=0,o.screenTitle=et?t||e:"",o.screenType=0,o.navType=0,o.action="53|~|"+JSON.stringify({NativeAction:B,Footer:C,IsFullLength:b,callFromLocation:L,VagaroToolkit:O}),r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(o))}}else{let e=c.indexOf(eL);-1!==e&&c.splice(e,1),document.removeEventListener("mousedown",eG)}return()=>{let e=c.indexOf(eL);-1!==e&&c.splice(e,1),document.removeEventListener("mousedown",eG)}},[ew,T]),(0,l.useEffect)(()=>{let e=Q?.split(" ").filter(Boolean);return ew&&e?.length?document.body.classList.add(...e):e?.length&&document.body.classList.remove(...e),()=>{e?.length&&document.body.classList.remove(...e)}},[ew,Q]),(0,l.useEffect)(()=>{let e=()=>{eP&&(eS(null),setTimeout(()=>{eS(eP)},100))};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[eP]),(0,l.useEffect)(()=>{let e=e=>{ep&&ew&&"Enter"===e.key&&eo?.primary!==!0&&(e.preventDefault(),eH())};return ew&&ep&&eo?.primary!==!0&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[ew,ep,eo?.primary]),(0,l.useLayoutEffect)(()=>{if(!ew||!ef)return;let e=document.documentElement,t=document.body,o=/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return 1==++p&&(e.classList.add("popup-open"),o&&(m=window.scrollY,t.style.position="fixed",t.style.top=`-${m}px`,t.style.width="100%",t.style.overflow="hidden")),()=>{0==--p&&(e.classList.remove("popup-open"),o&&(t.style.position="",t.style.top="",t.style.width="",t.style.overflow="",window.scrollTo(0,m)))}},[ew,ef]);let eU=()=>(0,n.jsxs)(n.Fragment,{children:["default"===q&&(0,n.jsx)("div",{className:`modal-overlay ${ev?"vg-popup-withportal":"vg-popup-withoutportal"} ${ec?"vg-modal-overlay-zindex":""} ${"fullscreen"===k?"fullscreenoverlay":""}  ${ek?"closing":""}`,"data-popup-id":L,"data-identity":G?"full-popup":"",style:{"--popup-z-index":ec},children:(0,n.jsx)("div",{className:`vg-modal-dialog ${eI||eE||eF||ej||eN?"vg-pro-ipad":""} ${eg?"Popup-glassdesign":""} ${ey?"vg-popup-bottomsheet-default":""} ${eD&&X?"vg-popup-bottomsheet":""} ${G?"mobilefullScreen":""} vg-modalsummary modal-dialog-scrollable modal-dialog-centered ${k} 
2                  ${H}`,children:(0,n.jsxs)("div",{className:"vg-modal-content",ref:eL,children:[!eB&&(0,n.jsxs)("div",{className:`vg-modal-header ${en?.url?"vg-popup-header-img":""} ${en?.customImageClass&&""}`,style:en?.url&&!e?{backgroundImage:`url(${en?.url})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",height:en?.height||"250px"}:void 0,children:[(e||eC)&&(0,n.jsxs)("div",{className:"vg-modal-title",children:[e,eC&&""!==eC&&(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)(u.default,{name:"info_circle"})}),TextAlign:"center",TooltipText:eC,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:eO,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 ${ee||""}`,children:[v?v():null,f]}),"none"!==j&&(0,n.jsxs)("div",{className:`vg-modal-footer ${ed?"left-alignment":""} ${ea?"vg-modal-footer-with-left-template":""}`,children:[ea&&ea?.(),ea?(0,n.jsxs)("div",{className:"vg-modal-footer-buttons",children:["fourthButton"===j&&(0,n.jsx)(i.default,{ref:eW,ButtonVariant:V,ButtononClick:e_,IconPlacement:"prefix",ValidForm:N,FormV
2alidations:P,ButtonDisabled:eo?.fourth??!1,ButtonIcon:eu.fourth,TabIndex:eh?.fourth,children:W}),("thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(i.default,{ref:eA,ButtonVariant:_,ButtononClick:eJ,IconPlacement:"prefix",ValidForm:N,FormValidations:P,ButtonDisabled:eo?.third??!1,ButtonIcon:eu.third,TabIndex:eh?.third,children:E}),("secondaryButton"===j||"both"===j||"thirdButton"===j)&&(0,n.jsx)(i.default,{ref:e$,ButtonVariant:z,ButtononClick:ez,IconPlacement:"prefix",ButtonDisabled:eo?.secondary??!1,ButtonIcon:eu.secondary,TabIndex:eh?.secondary,children:F}),("primaryButton"===j||"both"===j||"thirdButton"===j)&&(0,n.jsx)(i.default,{ref:eM,ButtonVariant:J,ButtononClick:eH,IconPlacement:"prefix",ButtonIcon:eu.primary,ValidForm:N,FormValidations:P,ButtonDisabled:eo?.primary??!1,TabIndex:eh?.primary,children:I})]}):(0,n.jsxs)(n.Fragment,{children:["fourthButton"===j&&(0,n.jsx)(i.default,{ref:eW,ButtonVariant:V,ButtononClick:e_,IconPlacement:"prefix",ValidForm:N,FormValidations:P,ButtonDisabled:eo?.fourth??!1,ButtonIcon:eu.fourth,TabIndex:eh?.fourth,children:W}),("thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(i.default,{ref:eA,ButtonVariant:_,ButtononClick:eJ,IconPlacement:"prefix",ValidForm:N,FormValidations:P,ButtonDisabled:eo?.third??!1,ButtonIcon:eu.third,TabIndex:eh?.third,children:E}),("secondaryButton"===j||"both"===j||"thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(i.default,{ref:e$,ButtonVariant:z,ButtononClick:ez,IconPlacement:"prefix",ButtonIcon:eu.secondary,ButtonDisabled:eo?.secondary??!1,TabIndex:eh?.secondary,children:F}),("primaryButton"===j||"both"===j||"thirdButton"===j||"fourthButton"===j)&&(0,n.jsx)(i.default,{ref:eM,ButtonVariant:J,ButtononClick:eH,IconPlacement:"prefix",ButtonIcon:eu.primary,ValidForm:N,FormValidations:P,ButtonDisabled:eo?.primary??!1,TabIndex:eh?.primary,children:I})]}),eP&&el?.[eP]?.visible&&el?.[eP]?.options&&el[eP].options.length>0&&(0,n.jsx)(a.A,{inputRef:"primary"===eP?eM:"secondary"===eP?e$:"third"===eP?eA:eW,type:r.IU.timePickerRight,wrapperElementId:"threedotmenu",children:(0,n.jsx)("div",{ref:eV,className:"vg-dropdown-menu-action",children:el[eP].options.map((e,t)=>(0,n.jsx)("div",{className:"vg-dropdown-menu-link",onClick:t=>{eS(null),e.onClick?.(t)},onMouseDown:e=>e.preventDefault(),children:e.label},e.label+t))})})]}),(0,n.jsx)("input",{type:"hidden",onClick:()=>eO(),id:"close-full-popup"})]})})}),"custom"===q&&(0,n.jsx)("div",{className:`modal-overlay ${ec?"vg-modal-overlay-zindex":""}`,"data-popup-id":L,style:{"--popup-z-index":ec},children:(0,n.jsxs)("div",{className:`vg-modal-dialog  vg-custom-dialog ${eg?"Popup-glassdesign":""} ${G?"mobilefullScreen":""} vg-modalsummary modal-dialog-scrollable modal-dialog-centered ${k} 
3                  ${H}`,children:[(0,n.jsxs)("div",{className:"vg-modal-content",ref:eL,children:[y&&(0,n.jsx)("div",{className:"custom-close",onClick:eO,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 ${ee||""}`,children:v?v():null})]}),(0,n.jsx)("input",{type:"hidden",onClick:()=>eO(),id:"close-full-popup"})]})}),"premium"===q&&(0,n.jsxs)("div",{className:`modal-overlay ${ec?"vg-modal-overlay-zindex":""}`,"data-popup-id":L,style:{"--popup-z-index":ec},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":""} ${H} ${"large"===k?"vg-premium-large-popup":""}`,children:(0,n.jsxs)("div",{className:"vg-modal-content",ref:eL,children:[Z&&""===er?(0,n.jsx)("div",{className:"popup-image",children:(0,n.jsx)("img",{src:Z,alt:"Gift card",className:"popup-image"})}):(0,n.jsx)("div",{className:"popup-vimeovideo",children:(0,n.jsx)(s.default,{Html:"",HtmlBackgroun
3d:"",VideoID:er})}),y&&(0,n.jsx)("div",{className:"vg-btn-close",onClick:eO,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 ${ee||""}`,children:[U&&(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 ${Y}`,children:"bullet"===Y&&"string"==typeof f?(0,n.jsx)("ul",{children:f.split("\n").map((e,t)=>(0,n.jsx)("li",{children:e.trim()},t))}):"number"===Y&&"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)(i.default,{ButtonVariant:J,ButtononClick:M,ButtonDisabled:eo?.primary??!1,ButtonIcon:eu.primary,children:I}):null,"secondaryButton"===j||"both"===j?(0,n.jsx)(i.default,{ButtonVariant:z,ButtononClick:$,ButtonDisabled:eo?.secondary??!1,ButtonIcon:eu.secondary,children:F}):null,"thirdButton"===j||"fourthButton"===j?(0,n.jsx)(i.default,{ButtonVariant:_,ButtononClick:A,ButtonDisabled:eo?.third??!1,ButtonIcon:eu.third,children:E}):null,"fourthButton"===j?(0,n.jsx)(i.default,{ButtonVariant:V,ButtononClick:R,ButtonDisabled:eo?.fourth??!1,ButtonIcon:eu.fourth,children:W}):null]})]})}),(0,n.jsx)("input",{type:"hidden",onClick:()=>eO(),id:"close-full-popup"})]})]});return(0,n.jsxs)(l.Fragment,{children:[ew&&(ev?(0,n.jsx)(a.A,{wrapperElementId:`Popup-${L}`,children:eU()}):eU()),(0,n.jsx)("input",{type:"hidden",onClick:()=>eO(),id:`close-${L}`})," "]})}},2390(e,t,o){o.r(t),o.d(t,{default:()=>a});var n=o(74848),l=o(96540),i=o(40961),r=o(98232);let a=({TooltipText:e,Children:t,ScreenTitleForMobile:o,Html:a=!0,TextAlign:s="center",BeakPoint:d="Down",BeakPosition:u="Middle",Duration:c=2e3,ShowHover:p=!0,TriggerTooltip:m=!1,OnTooltipClose:h,FullWidth:g=!1,TooltipRender:f="inline",MaxWidth:v,FullHeight:y=!1,ForceWebRender:B=!1})=>{let[x,C]=(0,l.useState)("top-center"),[w,b]=(0,l.useState)(!1),k=(0,l.useRef)(null),T=(0,l.useRef)(null),L=(0,l.useRef)(null),j=(0,l.useRef)(null),I=(0,l.useRef)(!1),[F,E]=(0,l.useState)({top:0,left:0}),N=r.Wp.CheckIsFromProAppWithoutState()&&!B,P=r.Wp.CheckIsFromIpadAndroidTabWithoutParm(),S=p&&!P,M=(0,l.useRef)([]),$=e=>{let t=getComputedStyle(e),o=t.overflowY,n=t.overflowX;return/(auto|scroll|overlay)/.test(o)||/(auto|scroll|overlay)/.test(n)},A=(0,l.useCallback)(e=>{let t=[],o=e?.parentElement||null;for(;o;
3)$(o)&&t.push(o),o=o.parentElement;return t.push(document.scrollingElement||document.documentElement),t},[]);(0,l.useEffect)(()=>(L.current&&(clearTimeout(L.current),L.current=null),!p&&m?(b(!0),c>0&&(L.current=setTimeout(()=>{b(!1),h&&h()},c))):b(!1),()=>{L.current&&(clearTimeout(L.current),L.current=null)}),[m,c,h,p]),(0,l.useEffect)(()=>{if("portal"!==f&&w&&k.current&&T.current){let e=k.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),o=window.innerWidth,n=window.innerHeight,l=t.top>=e.height,i=n-t.bottom>=e.height,r=t.left>=e.width,a=o-t.right>=e.width;l?C("top-center"):i?C("bottom-center"):r?C("left"):a?C("right"):C("bottom-center")}},[w,f]),(0,l.useEffect)(()=>{if("inline"!==f&&w&&T.current){let e=T.current.getBoundingClientRect(),t=k.current?.getBoundingClientRect().width??200,o=k.current?.getBoundingClientRect().height??40,n=window.innerWidth,l=window.innerHeight,i=e.top>=o+8,r=l-e.bottom>=o+8,a=e.left>=t+8,s=n-e.right>=t+8;i?C("top-center"):r?C("bottom-center"):a?C("left"):s?C("right"):C("bottom-center")}},[w,f]);let W=()=>{if(!T.current||!k.current)return"Middle";let e=T.current.getBoundingClientRect(),t=k.current.getBoundingClientRect(),o=window.innerWidth,n=t.width||200,l=e.left+e.width/2,i=l-n/2,r=o-(l+n/2);return i>=20&&r>=20?"Middle":i<20?"Left":r<20?"Right":"Middle"};(0,l.useEffect)(()=>{let e=u;"Auto"===u&&(e=W()),"Down"===d&&"Middle"===e?C("bottom-center"):"Down"===d&&"Left"===e?C("bottom-left"):"Down"===d&&"Right"===e?C("bottom-right"):"Up"===d&&"Left"===e?C("top-left"):"Up"===d&&"Right"===e&&C("top-right")},[d,u,x,w]),(0,l.useEffect)(()=>{if("Auto"!==u)return;let e=()=>{if(w){let e=W();"Down"===d&&"Middle"===e?C("bottom-center"):"Down"===d&&"Left"===e?C("bottom-left"):"Down"===d&&"Right"===e?C("bottom-right"):"Up"===d&&"Left"===e?C("top-left"):"Up"===d&&"Right"===e&&C("top-right")}};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[u,d,w,window.innerWidth]);let V=(0,l.useCallback)(()=>{if("inline"===f||!w||"Auto"!==u||!k.current||!T.current)return;let e=k.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),o=window.innerWidth,n=t.left,l=o-t.right,i=e.width;return l<i&&l<n?`${n+30}px`:n<i&&n<l?`${l+30}px`:void 0},[f,w,u]),R=(0,l.useCallback)(()=>{if("inline"===f||!w||!k.current||!T.current)return;let e=k.current.getBoundingClientRect(),t=T.current.getBoundingClientRect(),o=0,n=0,l=t.left+t.width/2,i=t.top+t.height/2;switch(x){case"top-center":o=t.top-e.height-8,n=l-e.width/2;break;case"bottom-center":o=t.bottom+8,n=l-e.width/2;break;case"left":o=i-e.height/2,n=t.left-e.width-8;break;case"right":o=i-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,s=Math.max(8,Math.min(n,r-e.width-8)),d=Math.max(8,Math.min(o,a-e.height-8)),u=`${l-s}px`;E({top:d,left:s,maxWidth:V(),beakLeft:u})},[f,w,x,V]);(0,l.useLayoutEffect)(()=>{"portal"===f&&R()},[w,x,u,f,R]),(0,l.useEffect)(()=>{if("inline"===f||!w)return;let e=A(T.current);M.current=e;let t=()=>R();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)}},[w,x,u,f,R,A]),(0,l.useEffect)(()=>{if(!w)return;let e=A(T.current),t=()=>{I.current=!0,b(!1),h&&h()};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)}},[w,A,h]);let D=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"";(0,l.useEffect)(()=>{let e=e=>{P&&T.current&&!T.current.contains(e.target)&&b(!1)};if(P)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[P]),(0,l.useEffect)(()=>{if("portal"!==f&&!v&&w&&k.current&&T.current&&"Auto"===u){let e=k.current,t=e.getBoundingClientRect(),o=T.current.getBoundingClientRect(),n=window.innerWidth,l=o.left,i=n-o.right;e.style.maxWidth="none";let r=t.width;i<r&&i<l?e.style.maxWidth=`${l+30}px`:l<r&&l<i&&(e.style.maxWidth=`${i+30}px`)}},[w,x,f,v]);let O=()=>{j.current&&(window.clearTimeout(j.current),j.current=null)},H=()=>{S&&"inline"!==f&&(O(),b(!0))},z=()=>{S&&"inline"!==f&&(O(),j.current=window.setTimeout(()=>b(!1),10))};(0,l.useEffect)(()=>()=>O(),[]);let J=()=>{!P&&p&&(I.current=!1,b(!0))},_="portal"===f&&S?{onMouseEnter:H,onMouseLeave:z,onMouseMove:()=>{I.current&&H()}}:{onMouseEnter:J,onMouseLeave:()=>{!P&&p&&(I.current=!1,b(!1))},onMouseMove:()=>{I.current&&J()}};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-${x} ${g?"vg-tooltip-fullwidth":""} ${"portal"===f?"vg-tooltip-portal-trigger":""}`,ref:T,..._,onPointerUp:n=>{if(n.preventDefault(),n.stopPropagation(),p&&(P&&!N&&b(!0),N&&e)){var i={};i.message=e,i.messageType=0,i.screenTitle=l.isValidElement(t)?o||"Info":D(e),i.screenType=0,i.navType=51,i.action="",r.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(i))}},children:["inline"===f&&e&&w&&(0,n.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}`,ref:k,style:v?{maxWidth:v}:void 0,children:a?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&D(e)}),t]}),"portal"===f&&e&&w&&(0,i.createPortal)((0,n.jsx)("div",{className:`vg-tooltip vg-tooltip-portal vg-tooltip-${x} ${g?"vg-tooltip-fullwidth":""}`,children:(0,n.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}
3`,ref:k,style:{position:"fixed",top:F.top,left:F.left,maxWidth:v||F.maxWidth,zIndex:9999,visibility:0===F.left&&0===F.top?"hidden":"visible","--beak-left":F.beakLeft||"50%"},onMouseEnter:H,onMouseLeave:z,children:a?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&D(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.