OwlCyberSecurity - MANAGER
Edit File: totals-style.js
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8268],{95762:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var o=n(51609),r=n(70851),i=n(52890),c=n(14656),s=n(86087),h=n(9917);const l=({children:e,className:t})=>{const[n,l,u]=function(){const[e,t]=(0,s.useState)({height:0,width:0}),[n,o]=(0,s.useState)({height:0,width:0}),r=(0,s.useRef)(null);return(0,s.useEffect)((()=>{if(!r.current)return;const e=r.current,n=new ResizeObserver((n=>{n.forEach((n=>{if(n.target===e){let r="0";var o;r=e.computedStyleMap?(null===(o=e.computedStyleMap().get("top"))||void 0===o?void 0:o.toString())||r:getComputedStyle(e).top||r;const{height:i,width:c}=n.contentRect;t({height:i+parseInt(r,10),width:c})}}))})),i=new IntersectionObserver((e=>{e.forEach((e=>{const{height:n,width:r}=e.boundingClientRect;var i,c;t({height:n,width:r}),e.target.ownerDocument.defaultView&&o({height:null===(i=e.target.ownerDocument.defaultView)||void 0===i?void 0:i.innerHeight,width:null===(c=e.target.ownerDocument.defaultView)||void 0===c?void 0:c.innerWidth})}))}),{root:null,rootMargin:"0px",threshold:1});return n.observe(e),i.observe(e),()=>{e&&(n.unobserve(e),i.unobserve(e))}}),[]),[r,e,n]}(),a=l.height<u.height,{isLarge:d}=(0,h.G)();return(0,o.createElement)(i.A,{ref:n,className:(0,r.A)("wc-block-checkout__sidebar",t,{"is-sticky":a,"is-large":d})},(0,o.createElement)(c.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);