PageSourceSearch

https://inbalancelifeandparentcoaching.com/static/js/async/2509.fb846bde7d.js

js inbalancelifeandparentcoaching.com collected 2026-10-04 20:33:51 UTC 23,132 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[2509],{49545(e,t,r){r.r(t),r.d(t,{default:()=>l});var n=r(74848),i=r(96540);let l=({NoProfile:e="",AvatarSize:t="",ProfileUrl:r="",HoverOverlayText:l=""})=>{let o=e?(e=>{let t=e.split(" ").filter(Boolean);if(2===t.length)return t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase();let r=t.filter(e=>e.charAt(0)===e.charAt(0).toUpperCase());return r.length>=2?r[0].charAt(0).toUpperCase()+r[1].charAt(0).toUpperCase():t.length>=2?t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase():t[0]?.charAt(0).toUpperCase()||""})(e):"",[a,s]=(0,i.useState)(!1),[d,c]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(r){let e=setTimeout(()=>{c(!1)},3e3),t=new Image;return t.src=r,t.onload=()=>{s(!0),clearTimeout(e),c(!1)},t.onerror=()=>{clearTimeout(e),c(!0)},()=>{clearTimeout(e),c(!0)}}},[r]);let u="XX-Small"===t?"vg-avatar-xxsmall":"X-Small"===t?"vg-avatar-xsmall":"Small"===t?"vg-avatar-small":"Small-Mid"===t?"vg-avatar-small-mid":"Medium"===t?"vg-avatar-medium":"vg-avatar-large";return(0,n.jsx)("div",{className:"vg-avatar",children:(0,n.jsx)("div",{className:"vg-d-flex",children:d||!a?(0,n.jsxs)("div",{className:`vg-avatar-xlarge vg-avatar-default ${u}${l?" vg-avatar-hoverable":""}`,children:[(0,n.jsx)("span",{className:"vg-avatar-text",children:o}),l&&(0,n.jsx)("span",{className:"vg-avatar-overlay-text",children:l})]}):(0,n.jsxs)("div",{className:`vg-avatar-xlarge vg-avatar-default ${u}${l?" vg-avatar-hoverable":""}`,style:{backgroundImage:`url(${r})`},children:[(0,n.jsx)("span",{className:"vg-avatar-text",style:{display:"none"},children:o}),l&&(0,n.jsx)("span",{className:"vg-avatar-overlay-text",children:l})]})})})}},28735(e,t,r){r.r(t),r.d(t,{default:()=>l});var n=r(74848);r(96540);var i=r(94089);let l=({BadgeText:e="Input Badge",BadgeVariation:t="",BadgeSize:r,Children:l,BadgeColorVariant:o,Tooltip:a=!1,TooltipMessage:s,OnClick:d,PrefixIcon:c,SuffixIcon:u,onPrefixIconClick:h,onSuffixIconClick:m})=>{let p="vg-badge",x=[p,`${p}--${r}`,`${p}-${t}`,"none"===t&&o?`${p}-color-${o}`:""].join(" ").trim(),g=e=>{d&&d(e)};return(0,n.jsx)(n.Fragment,{children:a?(0,n.jsx)(i.default,{BeakPoint:"Up",BeakPosition:"Middle",Duration:0,OnTooltipClose:()=>{},ShowHover:!0,TextAlign:"right",Html:!0,TooltipText:s,TooltipRender:"portal",Children:(0,n.jsxs)("div",{className:x,onClick:g,children:[c&&(0,n.jsx)("span",{className:"vg-badge__prefix-icon",onClick:e=>{e.stopPropagation(),h&&h(e)},style:h?{cursor:"pointer"}:void 0,children:c}),"custom"===t&&"string"==typeof l?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:l}}):"custom"===t?l:e,u&&(0,n.jsx)("span",{className:"vg-badge__suffix-icon",onClick:e=>{e.stopPropagation(),m&&m(e)},style:m?{cursor:"pointer"}:void 0,children:u})]})}):(0,n.jsxs)("div",{className:x,onClick:g,style:d?{cursor:"pointer"}:void 0,children:[c&&(0,n.jsx)("span",{className:"vg-badge__prefix-icon",onClick:e=>{e.stopPropagation(),h&&h(e)},style:h?{cursor:"pointer"}:void 0,children:c}),"custom"===t&&"string"==typeof l?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:l}}):"custom"===t?l:e,u&&(0,n.jsx)("span",{className:"vg-badge__suffix-icon",onClick:e=>{e.stopPropagation(),m&&m(e)},style:m?{cursor:"pointer"}:void 0,children:u})]})})}},63500(e,t,r){r.r(t),r.d(t,{default:()=>c});var n=r(74848),i=r(96540),l=r(65195),o=r(49545),a=r(94089),s=r(28735);let d=({items:e,icon:t})=>{if(!e||0===e.length)return null;let r=e[0],i=e.length-1,l=e.slice(1),o=l.length>0?l.join("<br/>"):void 0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"inline-flex items-center bg-bkg_components_status_strong text-text_neutral_inverse text-xs font-normal px-[8px] py-[2px] rounded-[3px] cursor-pointer",children:[t,r]}),(0,n.jsx)("div",{className:"[&>.vg-group]:leading-[0]",children:i>0&&(0,n.jsx)(a.default,{TooltipText:o,Html:!0,BeakPosition:"Auto",BeakPoint:"Up",Children:(0,n.jsxs)("span",{className:"inline-flex items-center bg-bkg_components_status_strong text-text_neutral_inverse text-xs font-normal px-[8px] py-[2px] rounded-[3px] curs
1or-pointer",children:["+",i]})})})]})},c=e=>{let{TriggerEvent:t,MenuItems:r,menuRef:a,subMenuRef:c,position:u,isVisible:h,hoveredItemId:m,subMenuPosition:p,arrowPosition:x,handleItemMouseEnter:g,handleItemMouseLeave:f,handleSubMenuMouseEnter:v,handleSubMenuMouseLeave:b,handleMenuItemClick:w,handleSubMenuItemClick:C,handleFooterClick:j,handleHeaderIconClick:k}=(e=>{let{MenuItems:t={data:[]},TriggerEvent:r,OnClick:n}=e,l=(0,i.useRef)(null),o=(0,i.useRef)(null),a=(0,i.useRef)(null),[s,d]=(0,i.useState)({top:0,left:0}),[c,u]=(0,i.useState)(!1),[h,m]=(0,i.useState)(null),[p,x]=(0,i.useState)({x:0,y:0,openLeft:!1}),[g,f]=(0,i.useState)({top:0,side:"left"}),v=()=>{u(!1),m(null)};return(0,i.useEffect)(()=>{r?setTimeout(()=>{if(l.current){let e=l.current.offsetWidth,t=l.current.offsetHeight,n=window.innerWidth,i=window.innerHeight,o=null;r.target&&r.target.getBoundingClientRect&&(o=r.target.getBoundingClientRect());let a=0,s=0,c="left",h=0;if(o){h=o.top+o.height/2;let t=o.right+e+12<n,r=o.left-e-12>0;t?(a=o.right+12,c="left"):r?(a=o.left-e-12,c="right"):(a=Math.max(10,Math.min(o.right+12,n-e-10)),c=o.left<n/2?"left":"right"),s=o.top}else{if("touches"in r){let e=r.touches[0]||r.changedTouches[0];a=e.clientX,h=e.clientY}else"clientX"in r&&(a=r.clientX,h=r.clientY);s=h}s+t>i&&(s=i-t-10);let m=(o?h-s:0)-15;m=Math.max(5,Math.min(m,t-30)),d({top:s,left:a}),f({top:m,side:c}),u(!0)}},0):(u(!1),m(null))},[r]),(0,i.useEffect)(()=>{if(h&&o.current&&l.current){let e=o.current.getBoundingClientRect(),t=l.current.getBoundingClientRect(),r=window.innerWidth,n=window.innerHeight,i=l.current.querySelector(`[data-item-id="${h}"]`);if(!i)return;let a=i.getBoundingClientRect(),s=t.right+12,d=a.top,c=!1;r-t.right<e.width+12&&(s=t.left-e.width-12,c=!0),d+e.height>n&&(d=n-e.height-10),s<10&&(s=t.right,c=!1),x({x:s,y:d,openLeft:c})}},[h]),(0,i.useEffect)(()=>{let e=e=>{let t=e.target,r=l.current?.contains(t),n=o.current?.contains(t);r||n||v()},t=e=>{"Escape"===e.key&&v()},r=()=>{v()};return c&&setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),document.addEventListener("scroll",r,!0)},0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t),document.removeEventListener("scroll",r,!0)}},[c]),{MenuItems:t,TriggerEvent:r,menuRef:l,subMenuRef:o,position:s,isVisible:c,hoveredItemId:h,subMenuPosition:p,arrowPosition:g,handleItemMouseEnter:e=>{a.current&&(clearTimeout(a.current),a.current=null);let r=t?.data?.find(t=>t.id===e);r?.subMenu&&r.subMenu.length>0?m(e):m(null)},handleItemMouseLeave:()=>{a.current=setTimeout(()=>{m(null)},200)},handleSubMenuMouseEnter:()=>{a.current&&(clearTimeout(a.current),a.current=null)},handleSubMenuMouseLeave:()=>{m(null)},handleMenuItemClick:e=>{e.subMenu||(n&&n(e.id,e.data),v())},handleSubMenuItemClick:e=>{n&&n(e.id,e.data),v()},handleFooterClick:e=>{n&&t.footer?.button&&n("footer-button",e.data),v()},handleHeaderIconClick:e=>{n&&n("header-icon",e),v()}}})(e);return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{ref:a,className:"absolute shadow-2xl py-2  min-w-[300px] max-w-[300px] border border-solid rounded-[4px] p-2 cal-context-menu bg-bkg_neutral_default border-border-default transition-all duration-300 ease-in-out translate-x-[-300px] data-[open=true]:translate-x-0",style:{left:`${u.left}px`,top:`${u.top}px`,opacity:+!!h,pointerEvents:h?"auto":"none",transition:"opacity 0.15s ease-in-out"},children:[(0,n.jsx)("div",{className:"absolute",style:{top:x.top,left:"left"===x.side?-14:void 0,right:"right"===x.side?-14:void 0,width:0,height:0,borderTop:"15px solid transparent",borderBottom:"15px solid transparent",borderRight:"left"===x.side?"15px solid var(--bkg_neutral_default)":void 0,borderLeft:"right"===x.side?"15px solid #FFFFFF":void 0,transform:void 0}}),r?.header&&(0,n.jsx)("div",{className:"rounded-sm bg-bkg_neutral_default border border-border_neutral_default shadow-customShadow ContextmenuGroup",children:(0,n.jsx)("div",{className:"rounded pb-2 cal-context-menu relative w-full",children:(0,n.jsxs)("div",{className:"contextMenu-header flex flex-row pb-1 border-b border-border_neutral_default",children:[(0,n.jsxs)("div",{className:"ml-2 mr-2 relative",children:[(0,n.jsx)(o.default,{AvatarSize:"Small",NoProfile:r.header.userName||`${r.header.count}`||"0",ProfileUrl:r.header.userImage||""}),r.header.avatarSymbol&&(0,n.jsxs)("span",{className:"absolute top-[30px] right-0 min-w-[14px] w-[14px] h-[14px] rounded-full bg-[#6d6e6f] flex items-center justify-center text-text_neutral_ondark font-medium border border-solid border-border_neutral_default",children:["currency"===r.header.avatarSymbol&&(0,n.jsx)("div",{className:"text-[10px] font-bold",title:"Paid By Currency",children:r.header.currency||"$"}),"deposit"===r.header.avatarSymbol&&(0,n.jsx)("i",{className:"fa-solid fa-d text-[10px]",title:"Paid By Deposit"}),"membership"===r.header.avatarSymbol&&(0,n.jsx)("div",{className:"text-[10px] font-bold",title:"Paid By Membership",children:"M"}),"package"===r.header.avatarSymbol&&(0,n.jsx)("div",{className:"text-[10px] font-bold",title:"Paid By Package",children:"P"})]})]}),(0,n.jsxs)("div",{className:"w-full flex flex-col",children:[(0,n.jsxs)("div",{className:"text-[18px] leading-[22px] font-medium overflow-hidden whitespace-normal max-w-[100%] flex line-clamp-1 text-text_neutral_default",children:[r.header.title,r.header.connectIcon&&(0,n.jsx)("i",{className:"ml-auto text-[15px] fa-regular fa-comment-dots cursor-pointer","aria-hidden":"true",onClick:()=>k("connectIcon")})]}),r.header.subtitle1&&(0,n.jsx)("div",{className:"text-text-secondary overflow-hidden whitespace-normal text-ellipsis max-w-[230px] line-clamp-1 text-[14px] leading-[18px]",children:r.header.subtitle1}),r.header.subtitle2&&(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"text-text-secondary vg-apt-service-name break-words text-[14px] leading-[18px] font-normal normal-case whitespace-normal  mr-[4px]",children:r.header.subtitle2}),r.header.addonIcon&&(0,n.jsx)("i",{className:"fa-regular fa-circle-plus ml-auto text-[12px] curs
1or-pointer","aria-hidden":"true",onClick:()=>k("addonIcon")})]})}),r.header.subtitle3&&(0,n.jsx)("div",{className:"text-text-secondary overflow-hidden whitespace-normal text-ellipsis max-w-[230px] line-clamp-1 text-[14px] leading-[18px]",children:r.header.subtitle3}),(r.header.memberships||r.header.packages)&&(0,n.jsxs)("div",{className:"flex gap-2 mt-2 flex-wrap",children:[(0,n.jsx)(d,{items:r.header.memberships,icon:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"currentColor",className:"pr-1",children:(0,n.jsx)("path",{d:"M12.8333 1.5C13.4653 1.5 14 2.01562 14 2.625V10.875C14 11.5078 13.4653 12 12.8333 12H1.16667C0.510417 12 0 11.5078 0 10.875V2.625C0 2.01562 0.510417 1.5 1.16667 1.5H4.66667V3.75H9.33333V1.5H12.8333ZM7 5.25C6.125 5.25 5.44444 5.92969 5.44444 6.75C5.44444 7.59375 6.125 8.25 7 8.25C7.85069 8.25 8.55556 7.59375 8.55556 6.75C8.55556 5.92969 7.85069 5.25 7 5.25ZM9.26042 10.5C9.50347 10.5 9.72222 10.2656 9.625 10.0547C9.43056 9.44531 8.84722 9 8.16667 9H7.94792C7.65625 9.14062 7.34028 9.1875 7 9.1875C6.63542 9.1875 6.31944 9.14062 6.02778 9H5.83333C5.12847 9 4.54514 9.44531 4.35069 10.0547C4.25347 10.2656 4.47222 10.5 4.71528 10.5H9.26042ZM8.55556 0.75V3H5.44444V0.75C5.44444 0.351562 5.78472 0 6.22222 0H7.77778C8.19097 0 8.55556 0.351562 8.55556 0.75Z"})})}),(0,n.jsx)(d,{items:r.header.packages,icon:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"currentColor",className:"pr-1",children:(0,n.jsx)("path",{d:"M10.6945 3.2754L7.01144 3.74669L6.82843 3.72312C6.94281 3.51105 7.01144 3.2754 7.01144 3.0162C7.01144 2.19146 6.34802 1.5081 5.54735 1.5081C4.72381 1.5081 4.08327 2.19146 4.08327 3.0162C4.08327 3.15758 4.08327 3.25184 4.10614 3.36966L2.61918 3.18115C2.61918 3.13402 2.61918 3.08689 2.61918 3.0162C2.61918 1.36672 3.92313 0 5.54735 0C7.12582 0 8.42977 1.31959 8.45265 2.94551L9.27619 0.75405C9.48208 0.164948 10.1226 -0.141384 10.6716 0.0942563C11.2436 0.306333 11.541 0.966127 11.3122 1.53166L10.6945 3.2754ZM12.8678 7.98822V9.94403C12.8678 10.2975 12.639 10.6038 12.2959 10.6745L7.35458 11.947C7.12582 12.0177 6.87418 12.0177 6.64542 11.947L1.70413 10.6745C1.36099 10.6038 1.1551 10.2975 1.1551 9.94403V7.98822L4.06039 8.83652C4.70093 9.02504 5.38722 8.74227 5.73036 8.17673L7.01144 5.96171L8.26964 8.17673C8.61278 8.74227 9.29907 9.02504 9.93961 8.83652L12.8678 7.98822ZM1.40674 3.79381L7.01144 4.50074L12.5933 3.79381C12.7534 3.77025 12.9135 3.84094 12.9822 3.98233L13.9201 5.96171C14.126 6.38586 13.9201 6.88071 13.4626 7.02209L9.73372 8.10604C9.41345 8.20029 9.07031 8.08247 8.91017 7.77614L7.01144 4.50074L5.08983 7.77614C4.92969 8.08247 4.58655 8.20029 4.26628 8.10604L0.537439 7.02209C0.0799122 6.88071 -0.125975 6.38586 0.0799122 5.96171L1.01784 3.98233C1.08647 3.84094 1.2466 3.77025 1.40674 3.79381Z",fill:"currentColor"})})})]})]})]})})}),(0,n.jsx)("ul",{className:"p-0 m-0 list-none relative z-[9999]",children:r?.data?.map(e=>(0,n.jsx)("li",{"data-item-id":e.id,className:"p-0 m-0",onMouseEnter:()=>g(e.id),onMouseLeave:f,children:(0,n.jsxs)("div",{className:`flex items-center ${m===e.id?"bg-bkg_components_calendar_hoursedited":"bg-bkg_neutral_default hover:bg-bkg_components_calendar_hoursedited"} p-2 rounded-[4px] cursor-pointer`,onClick:t=>{t.stopPropagation(),w(e)},children:[e.icon&&(0,n.jsx)("div",{className:`${e.iconBgColor||""} text-text_neutral_ondark w-[30px] h-[30px] flex  justify-center items-center mr-2 ${e.roundedIcon?"rounded-full":"rounded-[5px]"}`,children:e.icon}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"flex items-center justify-between gap-2",children:(0,n.jsx)("span",{className:"font-medium text-base leading-5 context-item-name text-text_neutral_default",children:e.label})}),e.description&&(0,n.jsx)("span",{className:"text-sm context-item-discription text-text-secondary",children:e.description})]}),(0,n.jsxs)("div",{className:"flex items-center gap-1 flex-shrink-0 justify-end ml-auto text-text-secondary",children:[e.badgeCount&&(0,n.jsx)(s.default,{BadgeColorVariant:"leave",BadgeSize:"overlay",BadgeText:e.badgeCount.toString(),BadgeVariation:"none"}),e.hasArrow&&(0,n.jsx)("i",{className:"fa-regular fa-chevron-right","aria-hidden":"true"})]})]})},e.id))}),r?.footer&&(0,n.jsx)("div",{className:"flex items-center w-full AppEditButton pt-2 [&>button]:w-full gap-4",children:(Array.isArray(r.footer.button)?r.footer.button:[r.footer.button]).map((e,t)=>(0,i.createElement)(l.default,{...e,key:t,label:e.label,ButtononClick:()=>j(e)},e.label))})]}),m&&(0,n.jsx)("div",{ref:c,className:"rounded-[4px] shadow-2xl py-2 min-w-[300px] border border-solid border-border-default provider-contentxmenu fixed left-16 w-[300px] z-[999] bg-bkg_neutral_default border-border_neutral_default shadow-customShadow ContextmenuGroupBlock animate-slideInLeft p-2",style:{left:`${p.x}px`,top:`${p.y}px`}
1,onMouseEnter:v,onMouseLeave:b,children:r?.data?.find(e=>e.id===m)?.subMenu?.map(e=>(0,n.jsxs)("div",{className:"flex items-center hover:bg-bkg_components_calendar_hoursedited p-2 rounded-[4px] cursor-pointer",onClick:t=>{t.stopPropagation(),C(e)},children:[e.icon&&(0,n.jsxs)("div",{className:`${e.iconBgColor||""} flex items-center justify-center text-text_neutral_ondark w-[30px] h-[30px] mr-2 ${e.roundedIcon?"rounded-full":"rounded-md"} bg-bkg_status_accepted relative`,children:[e.icon,e.isConfirmed&&(0,n.jsx)("i",{className:"fa-regular fa-check absolute text-white","aria-hidden":"true"})]}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"font-medium text-base leading-5 context-item-name text-text_neutral_default",children:e.label}),(0,n.jsx)("div",{className:"text-sm  context-item-discription leading-[18px] text-text_neutral_default",children:e.description})]})]},e.id))})]}):null}},94089(e,t,r){r.r(t),r.d(t,{default:()=>a});var n=r(74848),i=r(96540),l=r(40961),o=r(67247);let a=({TooltipText:e,Children:t,ScreenTitleForMobile:r,IsEmptyScreenTitle:a=!1,Html:s=!0,TextAlign:d="center",BeakPoint:c="Down",BeakPosition:u="Middle",Duration:h=2e3,ShowHover:m=!0,TriggerTooltip:p=!1,OnTooltipClose:x,FullWidth:g=!1,TooltipRender:f="inline",MaxWidth:v,FullHeight:b=!1,ForceWebRender:w=!1})=>{let[C,j]=(0,i.useState)("top-center"),[k,M]=(0,i.useState)(!1),y=(0,i.useRef)(null),_=(0,i.useRef)(null),N=(0,i.useRef)(null),L=(0,i.useRef)(null),E=(0,i.useRef)(!1),[T,S]=(0,i.useState)({top:0,left:0}),B=o.Wp.CheckIsFromProAppWithoutState()&&!w,I=o.Wp.CheckIsFromIpadAndroidTabWithoutParm(),R=m&&!I,$=(0,i.useRef)([]),P=e=>{let t=getComputedStyle(e),r=t.overflowY,n=t.overflowX;return/(auto|scroll|overlay)/.test(r)||/(auto|scroll|overlay)/.test(n)},H=(0,i.useCallback)(e=>{let t=[],r=e?.parentElement||null;for(;r;)P(r)&&t.push(r),r=r.parentElement;return t.push(document.scrollingElement||document.documentElement),t},[]);(0,i.useEffect)(()=>(N.current&&(clearTimeout(N.current),N.current=null),!m&&p?(M(!0),h>0&&(N.current=setTimeout(()=>{M(!1),x&&x()},h))):M(!1),()=>{N.current&&(clearTimeout(N.current),N.current=null)}),[p,h,x,m]),(0,i.useEffect)(()=>{if("portal"!==f&&k&&y.current&&_.current){let e=y.current.getBoundingClientRect(),t=_.current.getBoundingClientRect(),r=window.innerWidth,n=window.innerHeight,i=t.top>=e.height,l=n-t.bottom>=e.height,o=t.left>=e.width,a=r-t.right>=e.width;i?j("top-center"):l?j("bottom-center"):o?j("left"):a?j("right"):j("bottom-center")}},[k,f]),(0,i.useEffect)(()=>{if("inline"!==f&&k&&_.current){let e=_.current.getBoundingClientRect(),t=y.current?.getBoundingClientRect().width??200,r=y.current?.getBoundingClientRect().height??40,n=window.innerWidth,i=window.innerHeight,l=e.top>=r+8,o=i-e.bottom>=r+8,a=e.left>=t+8,s=n-e.right>=t+8;l?j("top-center"):o?j("bottom-center"):a?j("left"):s?j("right"):j("bottom-center")}},[k,f]);let W=()=>{if(!_.current||!y.current)return"Middle";let e=_.current.getBoundingClientRect(),t=y.current.getBoundingClientRect(),r=window.innerWidth,n=t.width||200,i=e.left+e.width/2,l=i-n/2,o=r-(i+n/2);return l>=20&&o>=20?"Middle":l<20?"Left":o<20?"Right":"Middle"};(0,i.useEffect)(()=>{let e=u;"Auto"===u&&(e=W()),"Down"===c&&"Middle"===e?j("bottom-center"):"Down"===c&&"Left"===e?j("bottom-left"):"Down"===c&&"Right"===e?j("bottom-right"):"Up"===c&&"Left"===e?j("top-left"):"Up"===c&&"Right"===e&&j("top-right")},[c,u,C,k]),(0,i.useEffect)(()=>{if("Auto"!==u)return;let e=()=>{if(k){let e=W();"Down"===c&&"Middle"===e?j("bottom-center"):"Down"===c&&"Left"===e?j("bottom-left"):"Down"===c&&"Right"===e?j("bottom-right"):"Up"===c&&"Left"===e?j("top-left"):"Up"===c&&"Right"===e&&j("top-right")}};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[u,c,k,window.innerWidth]);let A=(0,i.useCallback)(()=>{if("inline"===f||!k||"Auto"!==u||!y.current||!_.current)return;let e=y.current.getBoundingClientRect(),t=_.current.getBoundingClientRect(),r=window.innerWidth,n=t.left,i=r-t.right,l=e.width;return i<l&&i<n?`${n+30}px`:n<l&&n<i?`${i+30}px`:void 0},[f,k,u]),F=(0,i.useCallback)(()=>
1{if("inline"===f||!k||!y.current||!_.current)return;let e=y.current.getBoundingClientRect(),t=_.current.getBoundingClientRect(),r=0,n=0,i=t.left+t.width/2,l=t.top+t.height/2;switch(C){case"top-center":r=t.top-e.height-8,n=i-e.width/2;break;case"bottom-center":r=t.bottom+8,n=i-e.width/2;break;case"left":r=l-e.height/2,n=t.left-e.width-8;break;case"right":r=l-e.height/2,n=t.right+8;break;case"top-left":r=t.top-e.height-8,n=t.left-10;break;case"top-right":r=t.top-e.height-8,n=t.right-e.width+10;break;case"bottom-left":r=t.bottom+8,n=t.left-10;break;case"bottom-right":r=t.bottom+8,n=t.right-e.width+10}let o=window.innerWidth,a=window.innerHeight,s=Math.max(8,Math.min(n,o-e.width-8)),d=Math.max(8,Math.min(r,a-e.height-8)),c=`${i-s}px`;S({top:d,left:s,maxWidth:A(),beakLeft:c})},[f,k,C,A]);(0,i.useLayoutEffect)(()=>{"portal"===f&&F()},[k,C,u,f,F]),(0,i.useEffect)(()=>{if("inline"===f||!k)return;let e=H(_.current);$.current=e;let t=()=>F();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)}},[k,C,u,f,F,H]),(0,i.useEffect)(()=>{if(!k)return;let e=H(_.current),t=()=>{E.current=!0,M(!1),x&&x()};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)}},[k,H,x]);let U=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"";(0,i.useEffect)(()=>{let e=e=>{I&&_.current&&!_.current.contains(e.target)&&M(!1)};if(I)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[I]),(0,i.useEffect)(()=>{if("portal"!==f&&!v&&k&&y.current&&_.current&&"Auto"===u){let e=y.current,t=e.getBoundingClientRect(),r=_.current.getBoundingClientRect(),n=window.innerWidth,i=r.left,l=n-r.right;e.style.maxWidth="none";let o=t.width;l<o&&l<i?e.style.maxWidth=`${i+30}px`:i<o&&i<l&&(e.style.maxWidth=`${l+30}px`)}},[k,C,f,v]);let V=()=>{L.current&&(window.clearTimeout(L.current),L.current=null)},D=()=>{R&&"inline"!==f&&(V(),M(!0))},z=()=>{R&&"inline"!==f&&(V(),L.current=window.setTimeout(()=>M(!1),10))};(0,i.useEffect)(()=>()=>V(),[]);let O=()=>{!I&&m&&(E.current=!1,M(!0))},X="portal"===f&&R?{onMouseEnter:D,onMouseLeave:z,onMouseMove:()=>{E.current&&D()}}:{onMouseEnter:O,onMouseLeave:()=>{!I&&m&&(E.current=!1,M(!1))},onMouseMove:()=>{E.current&&O()}};return(0,n.jsxs)("div",{className:`vg-group vg-tooltip-group ${b?"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:_,...X,onPointerUp:n=>{if(n.preventDefault(),n.stopPropagation(),m&&(I&&!B&&M(!0),B&&e)){var l={};l.message=e,l.messageType=0,l.screenTitle=i.isValidElement(t)?a?"":r||"Info":U(e),l.screenType=0,l.navType=51,l.action="",o.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(l))}},children:["inline"===f&&e&&k&&(0,n.jsx)("div",{className:`vg-tooltip-sms vg-text-${d}`,ref:y,style:v?{maxWidth:v}:void 0,children:s?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&U(e)}),t]}),"portal"===f&&e&&k&&(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-${d}`,ref:y,style:{position:"fixed",top:T.top,left:T.left,maxWidth:v||T.maxWidth,zIndex:9999,visibility:0===T.left&&0===T.top?"hidden":"visible","--beak-left":T.beakLeft||"50%"},onMouseEnter:D,onMouseLeave:z,children:s?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&U(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.