"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[340],{71074:function(e,n,t){t.d(n,{Ae:function(){return l},KC:function(){return r},Ok:function(){return i},e2:function(){return o},pC:function(){return u}});var i=6,l=-16,o=4,r=6,u=12},50282:function(e,n,t){t.d(n,{l:function(){return i}});var i=(0,t(96540).createContext)(null)},18858:function(e,n,t){t.r(n),t.d(n,{default:function(){return p}});var i=t(15215),l=t(74848),o=t(50282),r=t(96540),u=t(83505),a=t(34743),s=t(7315),d=t(71307),c=t(71074);function f(e){var n=void 0===e?{}:e,t=n.placement,l=void 0===t?"top":t,o=n.tooltipAlignmentOffset,f=void 0===o?c.Ae:o,p=n.tooltipMainOffset,v=void 0===p?c.Ok:p,C=n.isFlipEnabled,m=void 0===C||C,b=n.isOpen,h=n.isOpenInitially,g=void 0!==h&&h,k=n.isShiftEnabled,w=void 0===k||k,A=n.isWithArrow,O=void 0===A||A,x=n.onOpenChange,E=(0,r.useRef)(null),M=(0,r.useState)(g),U=M[0],R=M[1],S=null!=b?b:U,y=null!=x?x:R,B=(0,u.we)({middleware:[(0,a.cY)({alignmentAxis:f,mainAxis:v+(O?c.KC:0)}),m?(0,a.UU)({crossAxis:l.includes("-"),fallbackAxisSideDirection:"start",padding:c.e2}):null,w?(0,a.BN)({padding:c.e2}):null,(0,a.UE)({element:O?E:null})],open:S,placement:l,whileElementsMounted:s.autoUpdate,onOpenChange:y}),I=B.context,K=(0,u.Mk)(I,{enabled:!(0,d.L)(b),handleClose:(0,u.iB)(),move:!1}),L=(0,u.iQ)(I,{enabled:!(0,d.L)(b)}),P=(0,u.s9)(I,{enabled:!0,outsidePressEvent:"mousedown"}),T=(0,u.It)(I,{role:"tooltip"}),j=(0,u.bv)([K,L,P,T]),D=(0,r.useCallback)(function(){return document.body},[]);return(0,r.useMemo)(function(){return(0,i.Cl)((0,i.Cl)((0,i.Cl)({arrowRef:E,open:S,setOpen:y},j),B),{refs:(0,i.Cl)((0,i.Cl)({},B.refs),{setArrow:O?E:null}),getTooltipRoot:D})},[S,y,j,B,O,D])}var p=function(e){var n=e.children,t=(0,i.Tt)(e,["children"]);return(0,l.jsx)(o.l.Provider,{value:f(t),children:n})}}}]);