@viswa-test/test-citation 0.0.309 → 0.0.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("@mui/material/Box"),o=require("@mui/material/Popper");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("@mui/material/Box"),o=require("@mui/material/Popper");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(i),a=r(o);exports.default=function(i){var o,r,u=i.anchorRef,s=i.anchorElement,d=i.children,c=i.className,f=i.offset,v=void 0===f?{}:f,h=i.placement,m=void 0===h?"bottom-start":h,p=i.width,x=i.maxWidth;i.customStyles;var w=n.useState(null),b=w[0],g=w[1],y=n.useState(!0),E=y[0],S=y[1],z=n.useState(null),R=z[0],q=z[1],L=n.useState(null),O=L[0],W=L[1],_=n.useRef(null);return n.useLayoutEffect(function(){var e,t=null!==(e=null!=s?s:null==u?void 0:u.current)&&void 0!==e?e:null;g(function(e){return e===t?e:t})},[s,u]),n.useLayoutEffect(function(){if(b){var e=null,t=function(){var t,n,i=b.getBoundingClientRect(),o=null!==(n=null===(t=window.visualViewport)||void 0===t?void 0:t.height)&&void 0!==n?n:window.innerHeight;S(b.isConnected&&"hidden"!==b.style.visibility),q(Math.max(0,window.innerWidth-i.left-8)),W(Math.max(0,o-i.top-2*i.height)),null!=e&&cancelAnimationFrame(e),e=requestAnimationFrame(function(){var t;e=null,null===(t=_.current)||void 0===t||t.update()})},n=new MutationObserver(t);n.observe(b,{attributes:!0,attributeFilter:["style","class"]});var i="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==i||i.observe(b),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),t(),function(){n.disconnect(),null==i||i.disconnect(),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),null!=e&&cancelAnimationFrame(e)}}S(!1)},[b]),t.jsx(a.default,e.__assign({open:Boolean(b)&&E,anchorEl:b,popperRef:_,placement:m,className:c,popperOptions:{strategy:"fixed"},modifiers:[{name:"offset",options:{offset:[null!==(o=v.left)&&void 0!==o?o:0,null!==(r=v.top)&&void 0!==r?r:0]}},{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1,altAxis:!0,tether:!1}}],sx:{zIndex:function(e){return e.zIndex.tooltip},width:p,maxWidth:null==R?x:"min(".concat("number"==typeof x?"".concat(x,"px"):null!=x?x:"100vw",", ").concat(R,"px)"),minWidth:0,height:"fit-content",maxHeight:null==O?"calc(85vh - 10px)":"".concat(O-100,"px"),alignSelf:"flex-start",flex:"0 0 auto",overflowX:"hidden",overflowY:"hidden",borderRadius:2,boxShadow:function(e){return e.shadows[4]},boxSizing:"border-box"}},{children:t.jsx(l.default,e.__assign({sx:{width:"100%",maxWidth:"100%",minWidth:0,height:"fit-content",minHeight:0,maxHeight:null==O?"calc(85vh - 10px)":"".concat(O-100,"px"),overflowX:"hidden",overflowY:"auto",pointerEvents:"auto",boxSizing:"border-box"}},{children:d}))}))};
|
|
2
2
|
//# sourceMappingURL=CardWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import{useState as t,useRef as i,useLayoutEffect as o}from"react";import l from"@mui/material/Box";import r from"@mui/material/Popper";function a(a){var d,u,c=a.anchorRef,s=a.anchorElement,m=a.children,f=a.className,v=a.offset,h=void 0===v?{}:v,p=a.placement,x=void 0===p?"bottom-start":p,w=a.width,b=a.maxWidth;a.customStyles;var g=t(null),z=g[0],y=g[1],E=t(!0),R=E[0],W=E[1],A=t(null),O=A[0],S=A[1],F=t(null),H=F[0],L=F[1],B=i(null);return o(function(){var e,n=null!==(e=null!=s?s:null==c?void 0:c.current)&&void 0!==e?e:null;y(function(e){return e===n?e:n})},[s,c]),o(function(){if(z){var e=null,n=function(){var n,t,i=z.getBoundingClientRect(),o=null!==(t=null===(n=window.visualViewport)||void 0===n?void 0:n.height)&&void 0!==t?t:window.innerHeight;W(z.isConnected&&"hidden"!==z.style.visibility),S(Math.max(0,window.innerWidth-i.left-8)),L(Math.max(0,o-i.top-2*i.height)),null!=e&&cancelAnimationFrame(e),e=requestAnimationFrame(function(){var n;e=null,null===(n=B.current)||void 0===n||n.update()})},t=new MutationObserver(n);t.observe(z,{attributes:!0,attributeFilter:["style","class"]});var i="undefined"==typeof ResizeObserver?null:new ResizeObserver(n);return null==i||i.observe(z),window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),n(),function(){t.disconnect(),null==i||i.disconnect(),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0),null!=e&&cancelAnimationFrame(e)}}W(!1)},[z]),n(r,e({open:Boolean(z)&&R,anchorEl:z,popperRef:B,placement:x,className:f,popperOptions:{strategy:"fixed"},modifiers:[{name:"offset",options:{offset:[null!==(d=h.left)&&void 0!==d?d:0,null!==(u=h.top)&&void 0!==u?u:0]}},{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1,altAxis:!0,tether:!1}}],sx:{zIndex:function(e){return e.zIndex.tooltip},width:w,maxWidth:null==O?b:"min(".concat("number"==typeof b?"".concat(b,"px"):null!=b?b:"100vw",", ").concat(O,"px)"),minWidth:0,height:"fit-content",maxHeight:null==H?"calc(85vh - 10px)":"".concat(H-100,"px"),alignSelf:"flex-start",flex:"0 0 auto",overflowX:"hidden",overflowY:"hidden",borderRadius:2,boxShadow:function(e){return e.shadows[4]},boxSizing:"border-box"}},{children:n(l,e({sx:{width:"100%",maxWidth:"100%",minWidth:0,height:"fit-content",minHeight:0,maxHeight:null==H?"calc(85vh - 10px)":"".concat(H-100,"px"),overflowX:"hidden",overflowY:"auto",pointerEvents:"auto",boxSizing:"border-box"}},{children:m}))}))}export{a as default};
|
|
2
2
|
//# sourceMappingURL=CardWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/CardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,wDAAwD;IACxD,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,SAAS,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,YAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACrD;AAED,6EAA6E;AAC7E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,aAAa,EACb,QAAQ,EACR,SAAS,EACT,MAAW,EACX,SAA0B,EAC1B,KAAK,EACL,QAAQ,EACR,YAAiB,GAClB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CardWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/CardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,wDAAwD;IACxD,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,SAAS,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,YAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACrD;AAED,6EAA6E;AAC7E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,aAAa,EACb,QAAQ,EACR,SAAS,EACT,MAAW,EACX,SAA0B,EAC1B,KAAK,EACL,QAAQ,EACR,YAAiB,GAClB,EAAE,gBAAgB,2CAqIlB"}
|