@corva/ui 0.57.0-0 → 0.57.0-2

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.
Files changed (27) hide show
  1. package/cjs-bundle/components/Annotations/components/AnnotationsList/style.css.js +1 -1
  2. package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  3. package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  4. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  5. package/cjs-bundle/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  6. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  7. package/cjs-bundle/permissions/constants/index.js +1 -1
  8. package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
  9. package/components/Annotations/components/AnnotationsList/style.css.js +1 -1
  10. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.d.ts.map +1 -1
  11. package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
  12. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +4 -1
  13. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  14. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  15. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts +5 -1
  16. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts.map +1 -1
  17. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  18. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.d.ts.map +1 -1
  19. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  20. package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  21. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  22. package/package.json +1 -1
  23. package/permissions/constants/index.d.ts +1 -0
  24. package/permissions/constants/index.d.ts.map +1 -1
  25. package/permissions/constants/index.js +1 -1
  26. package/utils/metrics/metricsConfig.d.ts +12 -0
  27. package/utils/metrics/metricsConfig.js +1 -1
@@ -1 +1 @@
1
- "use strict";require('./../../../../ext-esm/style-inject/dist/style-inject.es.js')('.style_cAnnotationsList__D1C25{background-color:transparent!important;border-radius:0;display:flex;flex-direction:column;height:100%;left:0;min-width:0;position:absolute;top:0;transition:min-width .3s ease-in-out,width .3s ease-in-out!important;width:0;z-index:1001}.style_cAnnotationsList__D1C25:after{backdrop-filter:blur(4px);background:#161616b0;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.style_cAnnotationsListOpen__M5Q27{max-width:420px;min-width:340px;width:80%}.style_cAnnotationsListOpenNative__DcsYt{width:100%}.style_cAnnotationsListContentContainer__rjA2-{padding:16px 16px 0}.style_cAnnotationsListActions__tV8tG{margin-top:auto;padding:16px;text-align:right}.style_cAnnotationsListContentTopIcon__9YAzy{height:24px;margin-right:5px;width:24px}'),module.exports={cAnnotationsList:"style_cAnnotationsList__D1C25",cAnnotationsListOpen:"style_cAnnotationsListOpen__M5Q27",cAnnotationsListOpenNative:"style_cAnnotationsListOpenNative__DcsYt",cAnnotationsListContentContainer:"style_cAnnotationsListContentContainer__rjA2-",cAnnotationsListActions:"style_cAnnotationsListActions__tV8tG",cAnnotationsListContentTopIcon:"style_cAnnotationsListContentTopIcon__9YAzy"};
1
+ "use strict";require('./../../../../ext-esm/style-inject/dist/style-inject.es.js')('.style_cAnnotationsList__D1C25{background-color:transparent!important;border-radius:0;display:flex;flex-direction:column;height:100%;left:0;min-width:0;position:absolute;top:0;transition:min-width .3s ease-in-out,width .3s ease-in-out!important;width:0;z-index:1201}.style_cAnnotationsList__D1C25:after{animation:style_blur__xaWYq .5s linear 1;backdrop-filter:blur(4px);background:#161616b0;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.style_cAnnotationsListOpen__M5Q27{max-width:420px;min-width:340px;width:80%}.style_cAnnotationsListOpenNative__DcsYt{width:100%}.style_cAnnotationsListContentContainer__rjA2-{padding:16px 16px 0}.style_cAnnotationsListActions__tV8tG{margin-top:auto;padding:16px;text-align:right}.style_cAnnotationsListContentTopIcon__9YAzy{height:24px;margin-right:5px;width:24px}@keyframes style_blur__xaWYq{0%{backdrop-filter:blur(0)}to{backdrop-filter:blur(4px)}}'),module.exports={cAnnotationsList:"style_cAnnotationsList__D1C25",blur:"style_blur__xaWYq",cAnnotationsListOpen:"style_cAnnotationsListOpen__M5Q27",cAnnotationsListOpenNative:"style_cAnnotationsListOpenNative__DcsYt",cAnnotationsListContentContainer:"style_cAnnotationsListContentContainer__rjA2-",cAnnotationsListActions:"style_cAnnotationsListActions__tV8tG",cAnnotationsListContentTopIcon:"style_cAnnotationsListContentTopIcon__9YAzy"};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@material-ui/core"),r=require("classnames"),i=require("@material-ui/icons/Sort"),n=require("../AppSideBar/AppSideBar.js"),a=require("../AppSettingsPopover/AppSettingsPopover.js"),o=require("../../Button/index.js"),s=require("../../../effects/useMatchAppContainerSize.js"),c=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=l(e),d=l(r),u=l(i);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=t.makeStyles({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"}});exports.AppFilterPanelLayout=function(e){var r=e.classes,i=void 0===r?{}:r,l=e.sideBarProps,p=e.sideBarContent,f=e.appSettingsPopoverProps,y=e.header,g=e.children,x=j(),m=t.useTheme(),v=s.useMatchAppContainerSize({width:{max:m.breakpoints.width("md")}});return c.jsxs("div",{className:d.default(x.appLayout,i.appLayout),children:[v&&c.jsxs("div",{className:d.default(x.header,i.header),children:[c.jsx(a,h(h({Trigger:function(e){return c.jsx(o,h(h({startIcon:c.jsx(u.default,{})},e),{},{children:"Filters"}))},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},modalType:"filters"},f),{},{children:p})),y]}),c.jsxs("div",{className:d.default(x.contentWrapper,i.contentWrapper),children:[!v&&c.jsx(n,h(h({},l),{},{anchor:"left",children:p})),c.jsx("div",{className:d.default(x.content,i.content),children:g})]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@material-ui/core"),r=require("classnames"),i=require("@material-ui/icons/Sort"),n=require("../AppSideBar/AppSideBar.js"),a=require("../AppSettingsPopover/AppSettingsPopover.js"),o=require("../../Button/index.js"),s=require("../../../effects/useMatchAppContainerSize.js"),p=require("../../../utils/mobileDetect.js"),c=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=l(e),u=l(r),f=l(i);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){d.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=p.isNativeDetected||p.isMobileDetected,x=t.makeStyles({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"}});exports.AppFilterPanelLayout=function(e){var r=e.classes,i=void 0===r?{}:r,p=e.sideBarProps,l=e.sideBarContent,d=e.appSettingsPopoverProps,h=e.header,y=e.children,m=x(),v=t.useTheme(),b=s.useMatchAppContainerSize({width:{max:v.breakpoints.width("md")}}),O=g||b;return c.jsxs("div",{className:u.default(m.appLayout,i.appLayout),children:[O&&c.jsxs("div",{className:u.default(m.header,i.header),children:[c.jsx(a,j(j({Trigger:function(e){return c.jsx(o,j(j({startIcon:c.jsx(f.default,{})},e),{},{children:"Filters"}))},classes:{popoverContent:m.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},modalType:"filters"},d),{},{children:l})),h]}),c.jsxs("div",{className:u.default(m.contentWrapper,i.contentWrapper),children:[!O&&c.jsx(n,j(j({},p),{},{anchor:"left",children:l})),c.jsx("div",{className:u.default(m.content,i.content),children:y})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),o=require("react"),a=require("prop-types"),n=require("classnames"),i=require("@material-ui/core"),l=require("@material-ui/icons"),r=require("../../../utils/mobileDetect.js"),s=require("../../IconButton/index.js"),d=require("../../Modal/Modal.js"),c=require("../../Button/index.js"),p=require("../../../config/theme/palette.mjs.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=u(a),m=u(n),h=function(e){return"filters"===e.modalType?p.background.b5:p.background.b9},x=i.makeStyles((function(e){return{popoverPaper:{marginTop:function(e){return e.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var t=e.maxHeight;return t?t-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:r.isNativeDetected?0:118,backgroundColor:h},modalTitle:{padding:"12px 16px",backgroundColor:h,boxShadow:function(e){var t=e.modalType;return"0px 8px 10px ".concat(h({modalType:t})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:h,boxShadow:function(e){var t=e.modalType;return"0px -8px 10px ".concat(h({modalType:t}))}}}}));function f(a){var n,p=a.Trigger,u=a.children,g=a.defaultScrollable,h=a.header,f=a.iconSettingsProps,b=a.maxHeight,v=a.modalActions,C=a.modalProps,T=a.modalType,j=a.onClose,_=e.__rest(a,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose"]),y=o.useState(null),S=y[0],k=y[1],N=o.useState(!0),w=N[0],P=N[1],H=x({maxHeight:b,isScrollable:w,isNativeDetected:r.isNativeDetected,modalType:T}),q=i.useTheme(),z=r.isNativeDetected||window.top.document.body.clientWidth<q.breakpoints.values.md,A=function(){k(null),j()},D=Boolean(S),I=function(e){return k(e.currentTarget)},B=v||t.jsx(c,e.__assign({variation:"secondary",onClick:A},{children:"CLOSE"}));return t.jsxs(t.Fragment,{children:[p?t.jsx(p,{onClick:I}):t.jsx(s,e.__assign({isActive:D,onClick:I,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},f,{children:t.jsx(l.Settings,{})})),!z&&t.jsxs(i.Popover,e.__assign({open:D,anchorEl:S,onClose:A,anchorOrigin:{vertical:w?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},_,{classes:e.__assign(e.__assign({},null==_?void 0:_.classes),{paper:m.default(H.popoverPaper,w&&"scrollable",null===(n=null==_?void 0:_.classes)||void 0===n?void 0:n.paper)})},{children:[t.jsxs("div",e.__assign({className:m.default(H.popoverHeader,w&&"scrollable")},{children:[t.jsx("div",e.__assign({className:H.headerTitle},{children:h})),t.jsx(s,e.__assign({tooltipProps:{title:"Close"},onClick:A},{children:t.jsx(l.Close,{})}))]})),t.jsx("div",e.__assign({className:m.default(H.popoverContentContainer,w&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!g&&P(!1)}},{children:t.jsx("div",e.__assign({className:H.popoverContent},{children:u}))})),t.jsx("div",{className:H.shadow})]})),z&&t.jsx(d,e.__assign({actions:B,actionsClassName:H.modalActions,contentClassName:H.modalContent,contentContainerClassName:H.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:H.modalTitle,onClose:A,open:D,rootClassName:H.modalRoot,stickyFooter:!0,title:h},C,{children:u}))]})}var b={Trigger:g.default.element,iconSettingsProps:g.default.shape({iconSize:g.default.string,tooltipProps:g.default.shape({title:g.default.string})}),defaultScrollable:g.default.bool,maxHeight:g.default.number,header:g.default.string,modalActions:g.default.node,modalProps:g.default.any,modalType:g.default.string,onClose:g.default.func};f.propTypes=b,f.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}},module.exports=f;
1
+ "use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),o=require("react"),a=require("prop-types"),n=require("classnames"),i=require("@material-ui/core"),l=require("@material-ui/icons"),r=require("../../../utils/mobileDetect.js"),s=require("../../IconButton/index.js"),d=require("../../Modal/Modal.js"),c=require("../../Button/index.js"),p=require("../../../config/theme/palette.mjs.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=u(a),m=u(n),h=r.isNativeDetected||r.isMobileDetected,x=function(e){return"filters"===e.modalType?p.background.b5:p.background.b9},f=i.makeStyles((function(e){return{popoverPaper:{marginTop:function(e){return e.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var t=e.maxHeight;return t?t-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:r.isNativeDetected?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:r.isNativeDetected?0:118,backgroundColor:x},modalTitle:{padding:"12px 16px",backgroundColor:x,boxShadow:function(e){var t=e.modalType;return"0px 8px 10px ".concat(x({modalType:t})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:x,boxShadow:function(e){var t=e.modalType;return"0px -8px 10px ".concat(x({modalType:t}))}}}}));function b(a){var n=a.Trigger,p=a.children,u=a.defaultScrollable,g=a.header,x=a.iconSettingsProps,b=a.maxHeight,v=a.modalActions,C=a.modalProps,_=a.modalType,j=a.onClose,T=a.classes,y=e.__rest(a,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose","classes"]),S=o.useState(null),k=S[0],N=S[1],P=o.useState(!0),w=P[0],H=P[1],q=f({maxHeight:b,isScrollable:w,isNativeDetected:r.isNativeDetected,modalType:_}),D=T||{},z=D.popoverContent,A=e.__rest(D,["popoverContent"]),I=function(){N(null),j()},M=Boolean(k),B=function(e){return N(e.currentTarget)},O=v||t.jsx(c,e.__assign({variation:"secondary",onClick:I},{children:"CLOSE"}));return t.jsxs(t.Fragment,{children:[n?t.jsx(n,{onClick:B}):t.jsx(s,e.__assign({isActive:M,onClick:B,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},x,{children:t.jsx(l.Settings,{})})),!h&&t.jsxs(i.Popover,e.__assign({open:M,anchorEl:k,onClose:I,anchorOrigin:{vertical:w?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},y,{classes:e.__assign(e.__assign({},A),{paper:m.default(q.popoverPaper,w&&"scrollable",null==A?void 0:A.paper)})},{children:[t.jsxs("div",e.__assign({className:m.default(q.popoverHeader,w&&"scrollable")},{children:[t.jsx("div",e.__assign({className:q.headerTitle},{children:g})),t.jsx(s,e.__assign({tooltipProps:{title:"Close"},onClick:I},{children:t.jsx(l.Close,{})}))]})),t.jsx("div",e.__assign({className:m.default(q.popoverContentContainer,w&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!u&&H(!1)}},{children:t.jsx("div",e.__assign({className:m.default(q.popoverContent,z)},{children:p}))})),t.jsx("div",{className:q.shadow})]})),h&&t.jsx(d,e.__assign({actions:O,actionsClassName:q.modalActions,contentClassName:q.modalContent,contentContainerClassName:q.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:q.modalTitle,onClose:I,open:M,rootClassName:q.modalRoot,stickyFooter:!0,title:g},C,{children:p}))]})}var v={Trigger:g.default.element,iconSettingsProps:g.default.shape({iconSize:g.default.string,tooltipProps:g.default.shape({title:g.default.string})}),defaultScrollable:g.default.bool,maxHeight:g.default.number,header:g.default.string,modalActions:g.default.node,modalProps:g.default.any,modalType:g.default.string,onClose:g.default.func};b.propTypes=v,b.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}},module.exports=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/regenerator"),a=require("prop-types"),n=require("react");require("../../../utils/index.js");var u=require("../../../clients/jsonApi/index.js"),s=require("./FeedItemEditModal.js"),i=require("react/jsx-runtime"),c=require("../../../utils/notificationToasts.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(e),o=d(t),f=d(r),p=d(a),x=n.createContext(),m=function(e){var t,r=e.children,a=e.tracesMinDateSec,d=e.tracesMaxDateSec,p=e.tracesAssetId,m=n.useState(null),v=o.default(m,2),b=v[0],S=v[1],q=function(){return S(null)},y=(t=l.default(f.default.mark((function e(t){return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.patchFeedItem(b.id,{context:t});case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 9:q(),c.showSuccessNotification("Successfully updated");case 11:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(e){return t.apply(this,arguments)});return i.jsxs(x.Provider,{value:{editedFeedItem:b,setEditedFeedItem:S},children:[b&&i.jsx(s,{feedItem:b,onClose:q,onSave:function(e){var t=e.context;y(t)},tracesMinDateSec:a,tracesMaxDateSec:d,tracesAssetId:p}),r]})};m.propTypes={children:p.default.node.isRequired,tracesMinDateSec:p.default.oneOfType([p.default.string,p.default.number]),tracesMaxDateSec:p.default.oneOfType([p.default.string,p.default.number]),tracesAssetId:p.default.oneOfType([p.default.string,p.default.number])},m.defaultProps={tracesMinDateSec:null,tracesMaxDateSec:null,tracesAssetId:null},exports.FeedItemEditProvider=m,exports.useFeedItemEditProvider=function(){return n.useContext(x)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("@babel/runtime/regenerator"),n=require("prop-types"),u=require("react");require("../../../utils/index.js");var a=require("../../../clients/jsonApi/index.js"),s=require("./FeedItemEditModal.js"),i=require("react/jsx-runtime"),c=require("../../../utils/notificationToasts.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(e),o=d(t),f=d(r),p=d(n),x=u.createContext(),m=function(e){var t,r=e.children,n=e.tracesMinDateSec,d=e.tracesMaxDateSec,p=e.tracesAssetId,m=e.exitFunc,v=u.useState(null),b=o.default(v,2),S=b[0],q=b[1],y=function(){m(),q(null)},I=(t=l.default(f.default.mark((function e(t){return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.patchFeedItem(S.id,{context:t});case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 9:y(),c.showSuccessNotification("Successfully updated");case 11:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(e){return t.apply(this,arguments)});return i.jsxs(x.Provider,{value:{editedFeedItem:S,setEditedFeedItem:q},children:[S&&i.jsx(s,{feedItem:S,onClose:y,onSave:function(e){var t=e.context;I(t)},tracesMinDateSec:n,tracesMaxDateSec:d,tracesAssetId:p}),r]})};m.propTypes={children:p.default.node.isRequired,tracesMinDateSec:p.default.oneOfType([p.default.string,p.default.number]),tracesMaxDateSec:p.default.oneOfType([p.default.string,p.default.number]),tracesAssetId:p.default.oneOfType([p.default.string,p.default.number]),exitFunc:p.default.func},m.defaultProps={tracesMinDateSec:null,tracesMaxDateSec:null,tracesAssetId:null,exitFunc:function(){return null}},exports.FeedItemEditProvider=m,exports.useFeedItemEditProvider=function(){return u.useContext(x)};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("react"),n=require("moment"),a=require("lodash"),i=require("classnames"),o=require("@material-ui/core"),s=require("../../../../utils/index.js"),l=require("../../../Modal/Modal.js"),c=require("../../../PostInput/PostInput.js"),u=require("../../../IconButton/index.js"),d=require("../../../Typography.js"),p=require("../../../Icons/SendIcon.js"),m=require("../../../UserMention/utils/index.js"),h=require("react/jsx-runtime");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=g(e),y=g(t),x=g(n),j=g(i);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){f.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N=o.makeStyles((function(e){return{postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0,maxHeight:251},modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1},info:{marginTop:16},text:{color:e.palette.primary.text6},value:{color:"#fff"},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},modalActions:{paddingTop:16},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}})),w={suggestions:{list:{background:"#414141"},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};module.exports=function(e){var t,n=e.feedItem.context.dvd_comment,i=n.body,g=n.attachment,f=n.data,b=n.data,O=b.bitDepth,P=b.holeDepth,q=b.cost,C=b.timestamp,D=e.onClose,I=e.onSave,B=e.userCompanyId,S=N(),M=r.useRef(),T=r.useState({body:i,attachment:g}),R=y.default(T,2),k=R[0],H=R[1],A=a.debounce(H,300),E=function(){I({context:{dvd_comment:v(v({},k),{},{data:f})}})};return h.jsxs(l,{open:!0,onClose:D,title:"Edit Comment",contentClassName:S.modal,actionsClassName:S.modalActions,actions:h.jsxs(o.Grid,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:S.actions,children:[h.jsx(o.Grid,{item:!0,children:h.jsx(o.Typography,{variant:"caption",className:j.default(S.inputMain,S.cancelText,S.highlightedLabel),component:"div",gutterBottom:!0,onClick:D,children:"Cancel"})}),h.jsxs(o.Grid,{item:!0,direction:"row",alignItems:"center",className:S.sendRow,children:[h.jsxs(o.Typography,{variant:"caption",className:j.default(S.inputMain,S.inputHelper),component:"div",gutterBottom:!0,children:["Press ",h.jsx(o.Typography,{variant:"caption",color:"primary",className:j.default(S.inputMain,S.highlightedLabel),children:"Enter"})," to send"]}),h.jsx(u,{onClick:E,className:S.sendIcon,disabled:!k||!k.body&&!k.attachment,children:h.jsx(p,{})})]})]}),ref:M,children:[h.jsx(c,{initialValue:{body:i,attachment:g},userCompanyId:B,onChange:A,filePreviewWrapperClass:S.filePreviewWrapper,className:S.postInput,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||m.isSuggestionsListOpened()||(e.preventDefault(),E())},mentionStyle:w,suggestionsPortalHost:M.current,allowSuggestionsAboveCursor:!0}),h.jsxs("div",{className:S.info,children:[C&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Time:"," ",h.jsx("span",{className:S.value,children:x.default(C).format("MM/DD/YY, HH:mm")})," "]}),Number.isFinite(q)&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Cost: ",h.jsxs("span",{className:S.value,children:[" ",(t=q,t.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))]})," ",h.jsx("span",{className:S.currency,children:"$"})]}),Number.isFinite(O)&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Bit Depth: ",h.jsx("span",{className:S.value,children:"".concat(O," ").concat(s.getUnitDisplay("length"))})]}),Number.isFinite(P)&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Hole Depth: ",h.jsx("span",{className:S.value,children:"".concat(P," ").concat(s.getUnitDisplay("length"))})]})]})]})};
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/slicedToArray"),r=require("react"),n=require("moment"),a=require("lodash"),i=require("classnames"),o=require("@material-ui/core"),s=require("../../../../utils/index.js"),l=require("../../../Modal/Modal.js"),c=require("../../../PostInput/PostInput.js"),u=require("../../../IconButton/index.js"),d=require("../../../Typography.js"),p=require("../../../Icons/SendIcon.js"),m=require("../../../UserMention/utils/index.js"),h=require("react/jsx-runtime");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=g(e),y=g(t),x=g(n),j=g(i);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){f.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N=o.makeStyles((function(e){return{postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0,maxHeight:251},modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1},info:{marginTop:16},text:{color:e.palette.primary.text6},value:{color:"#fff"},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},modalActions:{paddingTop:16},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}})),w={suggestions:{list:{background:"#414141"},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};module.exports=function(e){var t,n=e.feedItem.context.dvd_comment,i=n.body,g=n.attachment,f=n.data,b=n.data,O=b.bitDepth,P=b.holeDepth,C=b.cost,q=b.timestamp,D=e.onClose,I=e.onSave,B=e.userCompanyId,S=N(),M=r.useRef(),T=r.useState({body:i,attachment:g}),k=y.default(T,2),R=k[0],H=k[1],A=a.debounce(H,300),E=function(){I({context:{dvd_comment:v(v({},R),{},{data:f})}})};return h.jsxs(l,{open:!0,onClose:D,title:"Edit Comment",contentClassName:S.modal,actionsClassName:S.modalActions,onClick:function(e){e.stopPropagation()},actions:h.jsxs(o.Grid,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:S.actions,children:[h.jsx(o.Grid,{item:!0,children:h.jsx(o.Typography,{variant:"caption",className:j.default(S.inputMain,S.cancelText,S.highlightedLabel),component:"div",gutterBottom:!0,onClick:D,children:"Cancel"})}),h.jsxs(o.Grid,{item:!0,direction:"row",alignItems:"center",className:S.sendRow,children:[h.jsxs(o.Typography,{variant:"caption",className:j.default(S.inputMain,S.inputHelper),component:"div",gutterBottom:!0,children:["Press ",h.jsx(o.Typography,{variant:"caption",color:"primary",className:j.default(S.inputMain,S.highlightedLabel),children:"Enter"})," to send"]}),h.jsx(u,{onClick:E,className:S.sendIcon,disabled:!R||!R.body&&!R.attachment,children:h.jsx(p,{})})]})]}),ref:M,children:[h.jsx(c,{initialValue:{body:i,attachment:g},userCompanyId:B,onChange:A,filePreviewWrapperClass:S.filePreviewWrapper,className:S.postInput,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||m.isSuggestionsListOpened()||(e.preventDefault(),E())},mentionStyle:w,suggestionsPortalHost:M.current,allowSuggestionsAboveCursor:!0}),h.jsxs("div",{className:S.info,children:[q&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Time:"," ",h.jsx("span",{className:S.value,children:x.default(q).format("MM/DD/YY, HH:mm")})," "]}),Number.isFinite(C)&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Cost: ",h.jsxs("span",{className:S.value,children:[" ",(t=C,t.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))]})," ",h.jsx("span",{className:S.currency,children:"$"})]}),Number.isFinite(O)&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Bit Depth: ",h.jsx("span",{className:S.value,children:"".concat(O," ").concat(s.getUnitDisplay("length"))})]}),Number.isFinite(P)&&h.jsxs(d.Regular14,{className:S.text,gutterBottom:!0,children:["Hole Depth: ",h.jsx("span",{className:S.value,children:"".concat(P," ").concat(s.getUnitDisplay("length"))})]})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),u=require("react-dom"),n=require("lodash"),l=require("prop-types"),c=require("classnames"),o=require("@material-ui/core"),i=require("@material-ui/icons"),a=require("mapbox.js"),s=require("../../utils/index.js"),d=require("./OffsetWellMap.module.css.js"),f=require("./effects/usePreviousWells.js"),m=require("./WellTooltip.js"),p=require("./utils.js"),v=require("react/jsx-runtime");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=b(e),h=b(r),y=b(u),C=b(l),x=b(c),j=b(a),q=s.mapbox.isValidCoordinates,k=[29.749907,-95.358421],B=["_renderer","_bounds","min"],E=function(e){var r=e.isViewOnly,u=e.subjectWell,l=e.wells,c=e.offsetWellIds,a=e.radius,s=e.handleChanageOffsetWell,b=e.activeWellId,C=e.isClickable,E=t.useMemo((function(){return u&&n.get(u,"topHole.coordinates")}),[u]),O=t.useMemo((function(){return p.getAllFormations(l)}),[l]),T=t.useRef(),W=t.useRef(),R=t.useRef(),D=t.useRef(),F=t.useRef(null),N=t.useState(!1),z=h.default(N,2),L=z[0],w=z[1],I=t.useRef(),M=t.useRef(),S=(null==u?void 0:u.id)===b,Z=f.usePreviousWells(l),P=t.useState(null),_=h.default(P,2),V=_[0],G=_[1],A=t.useState(3),H=h.default(A,2),U=H[0],J=H[1];t.useEffect((function(){T.current=j.default.mapbox.map(T.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(k,3).on("zoomend",(function(){return J(T.current.getZoom())})),T.current.doubleClickZoom.disable(),j.default.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(T.current)}),[]),t.useEffect((function(){if(T.current){if(W.current&&(T.current.removeLayer(W.current),W.current=null),R.current&&T.current.removeLayer(R.current),!E)return W.current=null,void(R.current=null);a&&(W.current=j.default.circle(E,1609.34*a,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),W.current.addTo(T.current))}}),[a,E]);var K=function(e,t,u,n,l,c){c&&(e.setStyle({fillColor:"#63EFFF"}),w(!0)),F.current=j.default.circleMarker(t,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":u,className:"circle_highlight"}),F.current.addEventListener("mouseout",(function(){D.current.removeFrom(T.current),D.current=j.default.featureGroup(I.current),D.current.addTo(T.current),T.current.closePopup(),c&&(e.setStyle({fillColor:"#03BCD4"}),w(!1))})),F.current.addEventListener("click",(function(){r||s(n,!l)}));var o=I.current.concat(F.current);D.current.removeFrom(T.current),D.current=j.default.featureGroup(o),D.current.addTo(T.current)},Q=function(e,u,l,c,o){var i=document.createElement("div"),a=t.createElement(m.WellTooltip(),{isViewOnly:r,well:e,color:n.get(O,e.formation,"#BDBDBD"),isOffsetWell:u,isSubjectWell:l,offset:o,isClickable:C});y.default.render(v.jsx(v.Fragment,{children:a}),i),j.default.popup().setLatLng(c).setContent(i).openOn(T.current)};t.useEffect((function(){if(T.current&&l&&c){T.current.closePopup(),D.current&&D.current.removeFrom(T.current);var e=[],r=[],t=[];l.forEach((function(e){e.id!==(null==u?void 0:u.id)&&(c.includes(e.id)?r.push(e):t.push(e))})),[].concat(t,r,[u]).forEach((function(r){var t,l=null==r||null===(t=r.topHole)||void 0===t?void 0:t.coordinates;if(l&&q(l)){var o=(null==u?void 0:u.id)===r.id,i=c.includes(r.id)&&!o,a=o?"#03BCD4":n.get(O,r.formation,"#BDBDBD"),s=i?.7:.3;if(i){var d=j.default.circleMarker(l,{radius:12,stroke:!1,fill:!0,fillColor:a,calssname:"circle_500",fillOpacity:.08});e.push(d)}var f=j.default.circleMarker(l,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:s,fillColor:a,className:"circle_500"});if(f.addEventListener("mouseover",(function(e){var t=[0,0];V&&n.get(e.target,B)&&(t=[n.get(e.target,B).x-V.x,n.get(e.target,B).y-V.y]),Q(r,i,o,l,t),K(f,l,a,r,i,o)})),o&&(M.current=f),e.push(f),r.id===b&&!S){var m=j.default.circleMarker(l,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:a,className:"circle_1200"});e.push(m)}}})),e.length&&(D.current=j.default.featureGroup(e),D.current.addTo(T.current)),I.current=e,setTimeout((function(){W.current&&W.current.bringToBack(),a<3e3&&T.current&&W.current&&l!==Z&&T.current.fitBounds(W.current.getBounds(),{padding:[5,5]})}),500)}}),[u,l,c,V]),t.useEffect((function(){if(L&&n.get(T.current,B)){var e=[n.get(T.current,B).x-V.x,n.get(T.current,B).y-V.y];Q(u,!1,!0,E,e)}}),[L,V,u,E]),t.useEffect((function(){if(T.current&&E){R.current&&R.current.removeFrom(T.current);var e=j.default.icon({iconUrl:L||S?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:L||S?[70,20]:[62,12],iconAnchor:L||S?[35,29]:[31,25],className:"dot"});R.current=j.default.marker(E,{icon:e}),R.current.addTo(T.current),M.current&&(R.current.addEventListener("mouseover",(function(){w(!0),K(M.current,E,"#03BCD4",u,!0,!0)})),R.current.addEventListener("mouseout",(function(){D.current.removeFrom(T.current),D.current=j.default.featureGroup(I.current),D.current.addTo(T.current),T.current.closePopup(),M.current.setStyle({fillColor:"#03BCD4"}),w(!1)})))}}),[L,E,a,u,S,V]),t.useEffect((function(){a>3e3?T.current.setZoom(1):setTimeout((function(){W.current&&W.current.bringToBack(),u?T.current&&W.current&&a&&T.current.fitBounds(W.current.getBounds(),{padding:[5,5]}):T.current&&D.current&&T.current.fitBounds(D.current.getBounds()),n.get(T.current,B)&&G(n.get(T.current,B))}),500)}),[a,u]);return v.jsx("div",{className:d.mapView,children:v.jsx("div",{className:d.mapMain,ref:T,children:v.jsxs("div",{className:d.zoomGroup,children:[v.jsx(o.Tooltip,{title:U<18?"Zoom in":"",placement:"left",children:v.jsx("div",{className:x.default(d.zoomButton,g.default({},d.zoomDisabled,18===U)),onClick:function(){T.current.setZoom(U+1)},children:v.jsx(i.Add,{className:d.zoomInOutIcon})})}),v.jsx(o.Tooltip,{title:U>1?"Zoom out":"",placement:"left",children:v.jsx("div",{className:x.default(d.zoomButton,g.default({},d.zoomDisabled,1===U)),onClick:function(){U>1&&T.current.setZoom(U-1)},children:v.jsx(i.Remove,{className:d.zoomInOutIcon})})})]})})})};E.propTypes={isViewOnly:C.default.bool.isRequired,subjectWell:C.default.shape({id:C.default.number,formation:C.default.string}),wells:C.default.arrayOf(C.default.shape({})).isRequired,offsetWellIds:C.default.arrayOf(C.default.number).isRequired,radius:C.default.number.isRequired,handleChanageOffsetWell:C.default.func.isRequired,activeWellId:C.default.number.isRequired,isClickable:C.default.bool},E.defaultProps={subjectWell:null,isClickable:!0},module.exports=E;
1
+ "use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),u=require("react-dom"),n=require("lodash"),l=require("prop-types"),c=require("classnames"),o=require("@material-ui/core"),i=require("@material-ui/icons"),a=require("mapbox.js"),s=require("../../utils/index.js"),d=require("./OffsetWellMap.module.css.js"),f=require("./effects/usePreviousWells.js"),m=require("./WellTooltip.js"),p=require("./utils.js"),v=require("react/jsx-runtime");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=b(e),h=b(r),y=b(u),C=b(l),x=b(c),j=b(a),k=s.mapbox.isValidCoordinates,q=[29.749907,-95.358421],B=["_renderer","_bounds","min"],T=function(e){var r=e.isViewOnly,u=e.subjectWell,l=e.wells,c=e.offsetWellIds,a=e.radius,s=e.handleChanageOffsetWell,b=e.activeWellId,C=e.isClickable,T=t.useMemo((function(){return u&&n.get(u,"topHole.coordinates")}),[u]),E=t.useMemo((function(){return p.getAllFormations(l)}),[l]),O=t.useRef(),W=t.useRef(),R=t.useRef(),D=t.useRef(),F=t.useRef(null),N=t.useState(!1),L=h.default(N,2),z=L[0],w=L[1],I=t.useRef(),M=t.useRef(),S=(null==u?void 0:u.id)===b,Z=f.usePreviousWells(l),P=t.useState(null),_=h.default(P,2),V=_[0],G=_[1],A=t.useState(3),H=h.default(A,2),U=H[0],J=H[1],K=t.useRef(!0);t.useEffect((function(){O.current=j.default.mapbox.map(O.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(q,3).on("zoomend",(function(){return J(O.current.getZoom())})),O.current.doubleClickZoom.disable(),j.default.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(O.current)}),[]),t.useEffect((function(){if(O.current){if(W.current&&(O.current.removeLayer(W.current),W.current=null),R.current&&O.current.removeLayer(R.current),!T)return W.current=null,void(R.current=null);a&&(W.current=j.default.circle(T,1609.34*a,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),W.current.addTo(O.current))}}),[a,T]);var Q=function(e,t,u,n,l,c){c&&(e.setStyle({fillColor:"#63EFFF"}),w(!0)),F.current=j.default.circleMarker(t,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":u,className:"circle_highlight"}),F.current.addEventListener("mouseout",(function(){D.current.removeFrom(O.current),D.current=j.default.featureGroup(I.current),D.current.addTo(O.current),O.current.closePopup(),c&&(e.setStyle({fillColor:"#03BCD4"}),w(!1))})),F.current.addEventListener("click",(function(){r||s(n,!l)}));var o=I.current.concat(F.current);D.current.removeFrom(O.current),D.current=j.default.featureGroup(o),D.current.addTo(O.current)},X=function(e,u,l,c,o){var i=document.createElement("div"),a=t.createElement(m.WellTooltip(),{isViewOnly:r,well:e,color:n.get(E,e.formation,"#BDBDBD"),isOffsetWell:u,isSubjectWell:l,offset:o,isClickable:C});y.default.render(v.jsx(v.Fragment,{children:a}),i),j.default.popup().setLatLng(c).setContent(i).openOn(O.current)};t.useEffect((function(){if(O.current&&l&&c){O.current.closePopup(),D.current&&D.current.removeFrom(O.current);var e=[],r=[],t=[];l.forEach((function(e){e.id!==(null==u?void 0:u.id)&&(c.includes(e.id)?r.push(e):t.push(e))})),[].concat(t,r,[u]).forEach((function(r){var t,l=null==r||null===(t=r.topHole)||void 0===t?void 0:t.coordinates;if(l&&k(l)){var o=(null==u?void 0:u.id)===r.id,i=c.includes(r.id)&&!o,a=o?"#03BCD4":n.get(E,r.formation,"#BDBDBD"),s=i?.7:.3;if(i){var d=j.default.circleMarker(l,{radius:12,stroke:!1,fill:!0,fillColor:a,calssname:"circle_500",fillOpacity:.08});e.push(d)}var f=j.default.circleMarker(l,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:s,fillColor:a,className:"circle_500"});if(f.addEventListener("mouseover",(function(e){var t=[0,0];V&&n.get(e.target,B)&&(t=[n.get(e.target,B).x-V.x,n.get(e.target,B).y-V.y]),X(r,i,o,l,t),Q(f,l,a,r,i,o)})),o&&(M.current=f),e.push(f),r.id===b&&!S){var m=j.default.circleMarker(l,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:a,className:"circle_1200"});e.push(m)}}})),e.length&&(D.current=j.default.featureGroup(e),D.current.addTo(O.current)),I.current=e,setTimeout((function(){W.current&&W.current.bringToBack(),a<3e3&&O.current&&W.current&&l!==Z&&O.current.fitBounds(W.current.getBounds(),{padding:[5,5]})}),500)}}),[u,l,c,V]),t.useEffect((function(){if(z&&n.get(O.current,B)){var e=[n.get(O.current,B).x-V.x,n.get(O.current,B).y-V.y];X(u,!1,!0,T,e)}}),[z,V,u,T]),t.useEffect((function(){if(O.current&&T){R.current&&R.current.removeFrom(O.current);var e=j.default.icon({iconUrl:z||S?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:z||S?[70,20]:[62,12],iconAnchor:z||S?[35,29]:[31,25],className:"dot"});R.current=j.default.marker(T,{icon:e}),R.current.addTo(O.current),M.current&&(R.current.addEventListener("mouseover",(function(){w(!0),Q(M.current,T,"#03BCD4",u,!0,!0)})),R.current.addEventListener("mouseout",(function(){D.current.removeFrom(O.current),D.current=j.default.featureGroup(I.current),D.current.addTo(O.current),O.current.closePopup(),M.current.setStyle({fillColor:"#03BCD4"}),w(!1)})))}}),[z,T,a,u,S,V]),t.useEffect((function(){a>3e3?O.current.setZoom(1):setTimeout((function(){W.current&&W.current.bringToBack(),u?O.current&&W.current&&a?O.current.fitBounds(W.current.getBounds(),{padding:[5,5]}):T&&K.current&&(K.current=!1,O.current.panTo(T,{duration:1,easeLinearity:.25})):O.current&&D.current&&O.current.fitBounds(D.current.getBounds()),n.get(O.current,B)&&G(n.get(O.current,B))}),500)}),[a,u,T]);var Y=function(){O.current.setZoom(U+1)};return v.jsx("div",{className:d.mapView,children:v.jsx("div",{className:d.mapMain,ref:O,onDoubleClick:Y,children:v.jsxs("div",{className:d.zoomGroup,children:[v.jsx(o.Tooltip,{title:U<18?"Zoom in":"",placement:"left",children:v.jsx("div",{className:x.default(d.zoomButton,g.default({},d.zoomDisabled,18===U)),onClick:Y,children:v.jsx(i.Add,{className:d.zoomInOutIcon})})}),v.jsx(o.Tooltip,{title:U>1?"Zoom out":"",placement:"left",children:v.jsx("div",{className:x.default(d.zoomButton,g.default({},d.zoomDisabled,1===U)),onClick:function(){U>1&&O.current.setZoom(U-1)},children:v.jsx(i.Remove,{className:d.zoomInOutIcon})})})]})})})};T.propTypes={isViewOnly:C.default.bool.isRequired,subjectWell:C.default.shape({id:C.default.number,formation:C.default.string}),wells:C.default.arrayOf(C.default.shape({})).isRequired,offsetWellIds:C.default.arrayOf(C.default.number).isRequired,radius:C.default.number.isRequired,handleChanageOffsetWell:C.default.func.isRequired,activeWellId:C.default.number.isRequired,isClickable:C.default.bool},T.defaultProps={subjectWell:null,isClickable:!0},module.exports=T;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),i=require("../utils.js"),s=require("./abilities.js"),r=require("./settingsApps.js"),t=require("./appsPermissions.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e);function c(e,i){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),s.push.apply(s,r)}return s}function o(e){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?c(Object(s),!0).forEach((function(i){n.default(e,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))}))}return e}var l=o(o({companySelectorView:i.stringifyPermission({resource_class:"company_selector",ability:s.ABILITIES.view}),userCreate:i.stringifyPermission({resource_class:"User",ability:s.ABILITIES.create}),getUserUpdate:function(e){return i.stringifyPermission({resource_class:"User",ability:s.ABILITIES.update,resource_id:e})},canViewCorvaAppVersion:i.stringifyPermission({resource_class:"corva_app_version",ability:s.ABILITIES.view}),documentationEdit:i.stringifyPermission({resource_class:"Document",ability:s.ABILITIES.edit}),documentationCreate:i.stringifyPermission({resource_class:"Document",ability:s.ABILITIES.create}),documentationDestroy:i.stringifyPermission({resource_class:"Document",ability:s.ABILITIES.destroy}),canUpdateWellQC:i.stringifyPermission({resource_class:"well_qc",ability:s.ABILITIES.update}),getFeedItemDestroy:function(e){return i.stringifyPermission({resource_class:"Activity",ability:s.ABILITIES.destroy,resource_id:e})},getCommentDestroy:function(e){return i.stringifyPermission({resource_class:"Comment",ability:s.ABILITIES.destroy,resource_id:e})},getAlertUpdate:function(e){return i.stringifyPermission({resource_class:"Alert",ability:s.ABILITIES.update,resource_id:e})},getAlertDestroy:function(e){return i.stringifyPermission({resource_class:"Alert",ability:s.ABILITIES.destroy,resource_id:e})},streamVisibilityEdit:i.stringifyPermission({resource_class:"stream",ability:s.ABILITIES.edit}),userImpersonate:i.stringifyPermission({resource_class:"user",ability:s.ABILITIES.impersonate}),getDashboardUpdate:function(e){return i.stringifyPermission({resource_class:"Dashboard",ability:s.ABILITIES.update,resource_id:e})},canCreateDashboard:i.stringifyPermission({resource_class:"Dashboard",ability:s.ABILITIES.create}),canCopyUsers:i.stringifyPermission({resource_class:"Group",ability:s.ABILITIES.copy_users}),canViewDocumentsInfo:i.stringifyPermission({resource_class:"documents_info",ability:s.ABILITIES.view}),canViewCostsInfo:i.stringifyPermission({resource_class:"costs_info",ability:s.ABILITIES.view}),canViewBillingCost:i.stringifyPermission({resource_class:"billing_visualization_cost",ability:s.ABILITIES.view}),canReadBillingInfo:i.stringifyPermission({resource_class:"Usage",ability:s.ABILITIES.read}),canUpdateTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.update}),canReadTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.read}),canCreateTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.create}),canDestroyTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.destroy}),canUpdateProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.update}),canReadProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.read}),canCreateProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.create}),canDestroyProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.destroy}),canViewPurchasesPage:i.stringifyPermission({resource_class:"company_purchase",ability:s.ABILITIES.access}),canReadPermissions:i.stringifyPermission({resource_class:"Permission",ability:s.ABILITIES.read}),canViewUserPermissions:i.stringifyPermission({resource_class:"mng_permissions_user_btn",ability:s.ABILITIES.view}),canViewGroupPermissions:i.stringifyPermission({resource_class:"mng_permissions_group_btn",ability:s.ABILITIES.view}),canShareGroup:i.stringifyPermission({resource_class:"Group",ability:s.ABILITIES.share}),getAppStreamUpdate:function(e){return i.stringifyPermission({resource_class:"AppStream",ability:s.ABILITIES.update,resource_id:e})},canViewAlertValidationFilters:i.stringifyPermission({resource_class:"alert_validation_filters",ability:s.ABILITIES.view}),canViewAlertSubscriptionFilters:i.stringifyPermission({resource_class:"alert_subscription_filters",ability:s.ABILITIES.view}),getCanDestroyAlertDefinition:function(e){return i.stringifyPermission({resource_class:"AlertDefinition",ability:s.ABILITIES.destroy,resource_id:e})},getCanUpdateAlertDefinition:function(e){return i.stringifyPermission({resource_class:"AlertDefinition",ability:s.ABILITIES.update,resource_id:e})},canCreateAlertDashboard:i.stringifyPermission({resource_class:"alert_dashboard",ability:s.ABILITIES.create}),canUpdateAlertDashboard:i.stringifyPermission({resource_class:"alert_dashboard",ability:s.ABILITIES.edit}),canViewAlertCompanyField:i.stringifyPermission({resource_class:"alert_company_field",ability:s.ABILITIES.view}),canViewDashboardSharingCompany:i.stringifyPermission({resource_class:"dashboard_sharing_company",ability:s.ABILITIES.view}),canViewDashboardSharingSharedWith:i.stringifyPermission({resource_class:"dashboard_sharing_shared_with",ability:s.ABILITIES.view}),canViewConfigPage:i.stringifyPermission({resource_class:"config_page",ability:s.ABILITIES.access}),canAccessRequestApp:i.stringifyPermission({resource_class:"request_app",ability:s.ABILITIES.access}),canAccessUserSettingsWidgets:i.stringifyPermission({resource_class:"user_settings_widgets",ability:s.ABILITIES.access}),canViewDevCenter:i.stringifyPermission({resource_class:"dev_center",ability:s.ABILITIES.access}),getCanReadAppPackages:function(e){return i.stringifyPermission({resource_class:"App",ability:"read_packages",resource_id:e})},canViewAppPackageSelector:i.stringifyPermission({resource_class:"app_package_selector",ability:s.ABILITIES.view}),canAccessProvisioning:i.stringifyPermission({resource_class:"provisioning",ability:s.ABILITIES.access}),getCanUpdateAsset:function(e){return i.stringifyPermission({resource_class:"Asset",ability:s.ABILITIES.update,resource_id:e})},getCanUpdateParentAssetAsset:function(e){return i.stringifyPermission({resource_class:"Asset",ability:"update_parent_asset",resource_id:e})},getCanCopyActivities:function(e){return i.stringifyPermission({resource_class:"Asset",ability:s.ABILITIES.copy_activities,resource_id:e})},rigCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Rig"}),wellCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Well"}),programCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Program"}),padCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Pad"}),padUpdate:i.stringifyPermission({ability:s.ABILITIES.update,resource_class:"Pad"}),fracFleetCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"FracFleet"}),drilloutUnitCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"DrilloutUnit"}),canQCDrillstring:i.stringifyPermission({ability:s.ABILITIES.update,resource_class:"drillstring_qc"}),canCalibrateDrillstring:i.stringifyPermission({ability:s.ABILITIES.update,resource_class:"drillstring_calibration"}),canViewAppOwnersFilter:i.stringifyPermission({ability:s.ABILITIES.view,resource_class:"app_owners_filter"}),canViewSaveOffsetWells:i.stringifyPermission({ability:s.ABILITIES.view,resource_class:"save_offset_wells"}),canViewGenerateDRM:i.stringifyPermission({ability:s.ABILITIES.view,resource_class:"corva.driller_roadmap-generate_drm"})},r),t);exports.ABILITIES=s.ABILITIES,exports.PERMISSIONS=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),i=require("../utils.js"),s=require("./abilities.js"),r=require("./settingsApps.js"),t=require("./appsPermissions.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e);function c(e,i){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),s.push.apply(s,r)}return s}function o(e){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?c(Object(s),!0).forEach((function(i){n.default(e,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(s,i))}))}return e}var l=o(o({companySelectorView:i.stringifyPermission({resource_class:"company_selector",ability:s.ABILITIES.view}),userCreate:i.stringifyPermission({resource_class:"User",ability:s.ABILITIES.create}),getUserUpdate:function(e){return i.stringifyPermission({resource_class:"User",ability:s.ABILITIES.update,resource_id:e})},canViewCorvaAppVersion:i.stringifyPermission({resource_class:"corva_app_version",ability:s.ABILITIES.view}),documentationEdit:i.stringifyPermission({resource_class:"Document",ability:s.ABILITIES.edit}),documentationCreate:i.stringifyPermission({resource_class:"Document",ability:s.ABILITIES.create}),documentationDestroy:i.stringifyPermission({resource_class:"Document",ability:s.ABILITIES.destroy}),canUpdateWellQC:i.stringifyPermission({resource_class:"well_qc",ability:s.ABILITIES.update}),getFeedItemDestroy:function(e){return i.stringifyPermission({resource_class:"Activity",ability:s.ABILITIES.destroy,resource_id:e})},getCommentDestroy:function(e){return i.stringifyPermission({resource_class:"Comment",ability:s.ABILITIES.destroy,resource_id:e})},getAlertUpdate:function(e){return i.stringifyPermission({resource_class:"Alert",ability:s.ABILITIES.update,resource_id:e})},getAlertDestroy:function(e){return i.stringifyPermission({resource_class:"Alert",ability:s.ABILITIES.destroy,resource_id:e})},streamVisibilityEdit:i.stringifyPermission({resource_class:"stream",ability:s.ABILITIES.edit}),userImpersonate:i.stringifyPermission({resource_class:"user",ability:s.ABILITIES.impersonate}),getDashboardUpdate:function(e){return i.stringifyPermission({resource_class:"Dashboard",ability:s.ABILITIES.update,resource_id:e})},canCreateDashboard:i.stringifyPermission({resource_class:"Dashboard",ability:s.ABILITIES.create}),canCopyUsers:i.stringifyPermission({resource_class:"Group",ability:s.ABILITIES.copy_users}),canViewDocumentsInfo:i.stringifyPermission({resource_class:"documents_info",ability:s.ABILITIES.view}),canViewCostsInfo:i.stringifyPermission({resource_class:"costs_info",ability:s.ABILITIES.view}),canViewBillingCost:i.stringifyPermission({resource_class:"billing_visualization_cost",ability:s.ABILITIES.view}),canReadBillingInfo:i.stringifyPermission({resource_class:"Usage",ability:s.ABILITIES.read}),canUpdateTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.update}),canReadTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.read}),canCreateTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.create}),canDestroyTiers:i.stringifyPermission({resource_class:"Tier",ability:s.ABILITIES.destroy}),canUpdateProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.update}),canReadProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.read}),canCreateProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.create}),canDestroyProductSubscriptions:i.stringifyPermission({resource_class:"ProductSubscription",ability:s.ABILITIES.destroy}),canViewPurchasesPage:i.stringifyPermission({resource_class:"company_purchase",ability:s.ABILITIES.access}),canReadPermissions:i.stringifyPermission({resource_class:"Permission",ability:s.ABILITIES.read}),canViewUserPermissions:i.stringifyPermission({resource_class:"mng_permissions_user_btn",ability:s.ABILITIES.view}),canViewGroupPermissions:i.stringifyPermission({resource_class:"mng_permissions_group_btn",ability:s.ABILITIES.view}),canShareGroup:i.stringifyPermission({resource_class:"Group",ability:s.ABILITIES.share}),getAppStreamUpdate:function(e){return i.stringifyPermission({resource_class:"AppStream",ability:s.ABILITIES.update,resource_id:e})},canViewAlertValidationFilters:i.stringifyPermission({resource_class:"alert_validation_filters",ability:s.ABILITIES.view}),canViewAlertSubscriptionFilters:i.stringifyPermission({resource_class:"alert_subscription_filters",ability:s.ABILITIES.view}),getCanDestroyAlertDefinition:function(e){return i.stringifyPermission({resource_class:"AlertDefinition",ability:s.ABILITIES.destroy,resource_id:e})},getCanUpdateAlertDefinition:function(e){return i.stringifyPermission({resource_class:"AlertDefinition",ability:s.ABILITIES.update,resource_id:e})},canCreateAlertDashboard:i.stringifyPermission({resource_class:"alert_dashboard",ability:s.ABILITIES.create}),canUpdateAlertDashboard:i.stringifyPermission({resource_class:"alert_dashboard",ability:s.ABILITIES.edit}),canViewAlertCompanyField:i.stringifyPermission({resource_class:"alert_company_field",ability:s.ABILITIES.view}),canViewDashboardSharingCompany:i.stringifyPermission({resource_class:"dashboard_sharing_company",ability:s.ABILITIES.view}),canViewDashboardSharingSharedWith:i.stringifyPermission({resource_class:"dashboard_sharing_shared_with",ability:s.ABILITIES.view}),canViewConfigPage:i.stringifyPermission({resource_class:"config_page",ability:s.ABILITIES.access}),canAccessRequestApp:i.stringifyPermission({resource_class:"request_app",ability:s.ABILITIES.access}),canAccessUserSettingsWidgets:i.stringifyPermission({resource_class:"user_settings_widgets",ability:s.ABILITIES.access}),canViewDevCenter:i.stringifyPermission({resource_class:"dev_center",ability:s.ABILITIES.access}),getCanReadAppPackages:function(e){return i.stringifyPermission({resource_class:"App",ability:"read_packages",resource_id:e})},canViewAppPackageSelector:i.stringifyPermission({resource_class:"app_package_selector",ability:s.ABILITIES.view}),canAccessProvisioning:i.stringifyPermission({resource_class:"provisioning",ability:s.ABILITIES.access}),getCanUpdateAsset:function(e){return i.stringifyPermission({resource_class:"Asset",ability:s.ABILITIES.update,resource_id:e})},getCanUpdateParentAssetAsset:function(e){return i.stringifyPermission({resource_class:"Asset",ability:"update_parent_asset",resource_id:e})},getCanCopyActivities:function(e){return i.stringifyPermission({resource_class:"Asset",ability:s.ABILITIES.copy_activities,resource_id:e})},rigCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Rig"}),wellCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Well"}),programCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Program"}),padCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"Pad"}),padUpdate:i.stringifyPermission({ability:s.ABILITIES.update,resource_class:"Pad"}),canManagePadFracFleets:i.stringifyPermission({ability:"manage_frac_fleets",resource_class:"Pad"}),fracFleetCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"FracFleet"}),drilloutUnitCreate:i.stringifyPermission({ability:s.ABILITIES.create,resource_class:"DrilloutUnit"}),canQCDrillstring:i.stringifyPermission({ability:s.ABILITIES.update,resource_class:"drillstring_qc"}),canCalibrateDrillstring:i.stringifyPermission({ability:s.ABILITIES.update,resource_class:"drillstring_calibration"}),canViewAppOwnersFilter:i.stringifyPermission({ability:s.ABILITIES.view,resource_class:"app_owners_filter"}),canViewSaveOffsetWells:i.stringifyPermission({ability:s.ABILITIES.view,resource_class:"save_offset_wells"}),canViewGenerateDRM:i.stringifyPermission({ability:s.ABILITIES.view,resource_class:"corva.driller_roadmap-generate_drm"})},r),t);exports.ABILITIES=s.ABILITIES,exports.PERMISSIONS=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},o={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics},n={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},p={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},r={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}},s={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}};exports.bottom_to_slips_average={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=r,exports.cost_per_lat_ft=s,exports.cumulative_tortuosity={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=o,exports.drilling_connection_average={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},exports.drilling_percentage=n,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_open={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_total={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},exports.gross_tripping_out_speed_total={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=p,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.rop={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_gross={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_rotary={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_slide={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.slips_to_bottom_average={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_speed={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_speed={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_cased={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_open={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../convert.js"),t=require("./utils.js"),i={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},o={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:t.convertPercentageMetrics},n={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},p={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:t.convertPercentageMetrics,isBiggestBest:!0},r={label:"Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}},s={label:"Lateral Cost/".concat(e.getUnitDescription(e.getUnitPreference("length")).singular),key:"cost_per_lat_ft",customConvert:function(t){return t/e.convertValue(1,"length","ft")}};exports.bottom_to_slips_average={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},exports.build_rate={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.circulating_time={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},exports.cost_per_ft=r,exports.cost_per_lat_ft=s,exports.cumulative_tortuosity={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},exports.drilled_feet_rotary={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},exports.drilled_feet_rotary_percentage=i,exports.drilled_feet_slide={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},exports.drilled_feet_slide_percentage=o,exports.drilling_connection_average={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},exports.drilling_percentage=n,exports.drilling_time_rotary={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},exports.drilling_time_slide={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},exports.feet_per_day={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},exports.gross_time={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},exports.gross_tripping_in_speed={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_cased={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_open={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},exports.gross_tripping_in_speed_total={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},exports.gross_tripping_out_speed_total={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},exports.hole_depth={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},exports.hole_depth_change={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},exports.npt={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},exports.on_bottom_percentage=p,exports.on_bottom_time={label:"On Bottom Time",key:"on_bottom_time",to:"h"},exports.pumps_on_to_bottom_average={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.rop={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_gross={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_rotary={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.rop_slide={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.slips_to_bottom_average={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},exports.slips_to_slips={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},exports.spud_to_landing_point={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},exports.spud_to_rig_release_time={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},exports.spud_to_target={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},exports.spud_to_total_depth_time={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},exports.tripping_connection_count={label:"Tripping Connection Count",key:"tripping_connection_count"},exports.tripping_in_connection_time_cased={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_speed={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_cased={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_speed_open={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_in_time={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_cased={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_open={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},exports.tripping_in_time_with_connection={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},exports.tripping_in_time_with_connection_open={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},exports.tripping_out_speed={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_cased={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.tripping_out_speed_open={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},exports.turn_rate={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},exports.weight_to_weight_average={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},exports.weight_to_weight_count={label:"Drilling Stand Count",key:"weight_to_weight_count"};
@@ -1 +1 @@
1
- import t from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var n={cAnnotationsList:"style_cAnnotationsList__D1C25",cAnnotationsListOpen:"style_cAnnotationsListOpen__M5Q27",cAnnotationsListOpenNative:"style_cAnnotationsListOpenNative__DcsYt",cAnnotationsListContentContainer:"style_cAnnotationsListContentContainer__rjA2-",cAnnotationsListActions:"style_cAnnotationsListActions__tV8tG",cAnnotationsListContentTopIcon:"style_cAnnotationsListContentTopIcon__9YAzy"};t('.style_cAnnotationsList__D1C25{background-color:transparent!important;border-radius:0;display:flex;flex-direction:column;height:100%;left:0;min-width:0;position:absolute;top:0;transition:min-width .3s ease-in-out,width .3s ease-in-out!important;width:0;z-index:1001}.style_cAnnotationsList__D1C25:after{backdrop-filter:blur(4px);background:#161616b0;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.style_cAnnotationsListOpen__M5Q27{max-width:420px;min-width:340px;width:80%}.style_cAnnotationsListOpenNative__DcsYt{width:100%}.style_cAnnotationsListContentContainer__rjA2-{padding:16px 16px 0}.style_cAnnotationsListActions__tV8tG{margin-top:auto;padding:16px;text-align:right}.style_cAnnotationsListContentTopIcon__9YAzy{height:24px;margin-right:5px;width:24px}');export{n as default};
1
+ import t from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var n={cAnnotationsList:"style_cAnnotationsList__D1C25",blur:"style_blur__xaWYq",cAnnotationsListOpen:"style_cAnnotationsListOpen__M5Q27",cAnnotationsListOpenNative:"style_cAnnotationsListOpenNative__DcsYt",cAnnotationsListContentContainer:"style_cAnnotationsListContentContainer__rjA2-",cAnnotationsListActions:"style_cAnnotationsListActions__tV8tG",cAnnotationsListContentTopIcon:"style_cAnnotationsListContentTopIcon__9YAzy"};t('.style_cAnnotationsList__D1C25{background-color:transparent!important;border-radius:0;display:flex;flex-direction:column;height:100%;left:0;min-width:0;position:absolute;top:0;transition:min-width .3s ease-in-out,width .3s ease-in-out!important;width:0;z-index:1201}.style_cAnnotationsList__D1C25:after{animation:style_blur__xaWYq .5s linear 1;backdrop-filter:blur(4px);background:#161616b0;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.style_cAnnotationsListOpen__M5Q27{max-width:420px;min-width:340px;width:80%}.style_cAnnotationsListOpenNative__DcsYt{width:100%}.style_cAnnotationsListContentContainer__rjA2-{padding:16px 16px 0}.style_cAnnotationsListActions__tV8tG{margin-top:auto;padding:16px;text-align:right}.style_cAnnotationsListContentTopIcon__9YAzy{height:24px;margin-right:5px;width:24px}@keyframes style_blur__xaWYq{0%{backdrop-filter:blur(0)}to{backdrop-filter:blur(4px)}}');export{n as default};
@@ -1 +1 @@
1
- {"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js"],"names":[],"mappings":"AAyCO;;;;;;;gBAoDN"}
1
+ {"version":3,"file":"AppFilterPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js"],"names":[],"mappings":"AA+CO;;;;;;;gBAsDN"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{makeStyles as t,useTheme as r}from"@material-ui/core";import i from"classnames";import o from"@material-ui/icons/Sort";import n from"../AppSideBar/AppSideBar.js";import a from"../AppSettingsPopover/AppSettingsPopover.js";import p from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{jsxs as l,jsx as s}from"react/jsx-runtime";function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function f(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?d(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var h=t({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"}}),m=function(e){var t=e.classes,d=void 0===t?{}:t,m=e.sideBarProps,u=e.sideBarContent,g=e.appSettingsPopoverProps,y=e.header,O=e.children,b=h(),j=r(),v=c({width:{max:j.breakpoints.width("md")}});return l("div",{className:i(b.appLayout,d.appLayout),children:[v&&l("div",{className:i(b.header,d.header),children:[s(a,f(f({Trigger:function(e){return s(p,f(f({startIcon:s(o,{})},e),{},{children:"Filters"}))},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},modalType:"filters"},g),{},{children:u})),y]}),l("div",{className:i(b.contentWrapper,d.contentWrapper),children:[!v&&s(n,f(f({},m),{},{anchor:"left",children:u})),s("div",{className:i(b.content,d.content),children:O})]})]})};export{m as AppFilterPanelLayout};
1
+ import e from"@babel/runtime/helpers/defineProperty";import{makeStyles as t,useTheme as r}from"@material-ui/core";import i from"classnames";import o from"@material-ui/icons/Sort";import n from"../AppSideBar/AppSideBar.js";import p from"../AppSettingsPopover/AppSettingsPopover.js";import a from"../../Button/index.js";import{useMatchAppContainerSize as c}from"../../../effects/useMatchAppContainerSize.js";import{isNativeDetected as s,isMobileDetected as l}from"../../../utils/mobileDetect.js";import{jsxs as d,jsx as m}from"react/jsx-runtime";function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?f(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u=s||l,g=t({appLayout:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},header:{paddingLeft:12,paddingRight:12,display:"flex",height:36},contentWrapper:{display:"flex",position:"relative",flexGrow:1,height:"calc(100% - 36px)","@media (max-width: 960px)":{height:"100%"}},content:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},popoverContent:{padding:"0 16px"}}),y=function(e){var t=e.classes,s=void 0===t?{}:t,l=e.sideBarProps,f=e.sideBarContent,y=e.appSettingsPopoverProps,v=e.header,O=e.children,b=g(),j=r(),x=c({width:{max:j.breakpoints.width("md")}}),P=u||x;return d("div",{className:i(b.appLayout,s.appLayout),children:[P&&d("div",{className:i(b.header,s.header),children:[m(p,h(h({Trigger:function(e){return m(a,h(h({startIcon:m(o,{})},e),{},{children:"Filters"}))},classes:{popoverContent:b.popoverContent},header:"Filters",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},modalType:"filters"},y),{},{children:f})),v]}),d("div",{className:i(b.contentWrapper,s.contentWrapper),children:[!P&&m(n,h(h({},l),{},{anchor:"left",children:f})),m("div",{className:i(b.content,s.content),children:O})]})]})};export{y as AppFilterPanelLayout};
@@ -2,8 +2,11 @@
2
2
  import PropTypes from 'prop-types';
3
3
  import { PopoverProps } from '@material-ui/core';
4
4
  interface AppSettingsPopoverProps extends Omit<PopoverProps, 'onClose'>, PropTypes.InferProps<typeof appSettingsPopoverPropTypes> {
5
+ classes: PopoverProps['classes'] & {
6
+ popoverContent?: string;
7
+ };
5
8
  }
6
- declare function AppSettingsPopover({ Trigger, children, defaultScrollable, header, iconSettingsProps, maxHeight, modalActions, modalProps, modalType, onClose, ...popoverProps }: AppSettingsPopoverProps): JSX.Element;
9
+ declare function AppSettingsPopover({ Trigger, children, defaultScrollable, header, iconSettingsProps, maxHeight, modalActions, modalProps, modalType, onClose, classes, ...popoverProps }: AppSettingsPopoverProps): JSX.Element;
7
10
  declare namespace AppSettingsPopover {
8
11
  var propTypes: {
9
12
  Trigger: PropTypes.Requireable<PropTypes.ReactElementLike>;
@@ -1 +1 @@
1
- {"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAc,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AAoGhF,UAAU,uBACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACnC,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE/D,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CA4GvC;kBAxHQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0H3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;CAahC,CAAC;AAeF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAc,YAAY,EAAW,MAAM,mBAAmB,CAAC;AAqGtE,UAAU,uBACR,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACnC,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;IAC1D,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG;QACjC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CA2GvC;kBAxHQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0H3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;CAahC,CAAC;AAeF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as n,Fragment as a}from"react/jsx-runtime";import{useState as l}from"react";import r from"prop-types";import i from"classnames";import{makeStyles as c,useTheme as d,Popover as s}from"@material-ui/core";import{Settings as p,Close as m}from"@material-ui/icons";import{isNativeDetected as g}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import u from"../../Modal/Modal.js";import b from"../../Button/index.js";import f from"../../../config/theme/palette.mjs.js";var x=function(o){return"filters"===o.modalType?f.background.b5:f.background.b9},C=c((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:g?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:g?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:g?0:118,backgroundColor:x},modalTitle:{padding:"12px 16px",backgroundColor:x,boxShadow:function(o){var e=o.modalType;return"0px 8px 10px ".concat(x({modalType:e})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:x,boxShadow:function(o){var e=o.modalType;return"0px -8px 10px ".concat(x({modalType:e}))}}}}));function v(r){var c,f=r.Trigger,x=r.children,v=r.defaultScrollable,T=r.header,y=r.iconSettingsProps,k=r.maxHeight,S=r.modalActions,w=r.modalProps,P=r.modalType,H=r.onClose,N=o(r,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose"]),j=l(null),z=j[0],A=j[1],I=l(!0),B=I[0],M=I[1],O=C({maxHeight:k,isScrollable:B,isNativeDetected:g,modalType:P}),W=d(),D=g||window.top.document.body.clientWidth<W.breakpoints.values.md,E=function(){A(null),H()},R=Boolean(z),Y=function(o){return A(o.currentTarget)},F=S||t(b,e({variation:"secondary",onClick:E},{children:"CLOSE"}));return n(a,{children:[f?t(f,{onClick:Y}):t(h,e({isActive:R,onClick:Y,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},y,{children:t(p,{})})),!D&&n(s,e({open:R,anchorEl:z,onClose:E,anchorOrigin:{vertical:B?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:e(e({},null==N?void 0:N.classes),{paper:i(O.popoverPaper,B&&"scrollable",null===(c=null==N?void 0:N.classes)||void 0===c?void 0:c.paper)})},{children:[n("div",e({className:i(O.popoverHeader,B&&"scrollable")},{children:[t("div",e({className:O.headerTitle},{children:T})),t(h,e({tooltipProps:{title:"Close"},onClick:E},{children:t(m,{})}))]})),t("div",e({className:i(O.popoverContentContainer,B&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!v&&M(!1)}},{children:t("div",e({className:O.popoverContent},{children:x}))})),t("div",{className:O.shadow})]})),D&&t(u,e({actions:F,actionsClassName:O.modalActions,contentClassName:O.modalContent,contentContainerClassName:O.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:O.modalTitle,onClose:E,open:R,rootClassName:O.modalRoot,stickyFooter:!0,title:T},w,{children:x}))]})}var T={Trigger:r.element,iconSettingsProps:r.shape({iconSize:r.string,tooltipProps:r.shape({title:r.string})}),defaultScrollable:r.bool,maxHeight:r.number,header:r.string,modalActions:r.node,modalProps:r.any,modalType:r.string,onClose:r.func};v.propTypes=T,v.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}};export{v as default};
1
+ import{__rest as o,__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as n,Fragment as a}from"react/jsx-runtime";import{useState as r}from"react";import l from"prop-types";import i from"classnames";import{makeStyles as c,Popover as s}from"@material-ui/core";import{Settings as p,Close as d}from"@material-ui/icons";import{isNativeDetected as m,isMobileDetected as g}from"../../../utils/mobileDetect.js";import h from"../../IconButton/index.js";import u from"../../Modal/Modal.js";import b from"../../Button/index.js";import f from"../../../config/theme/palette.mjs.js";var x=m||g,C=function(o){return"filters"===o.modalType?f.background.b5:f.background.b9},v=c((function(o){return{popoverPaper:{marginTop:function(o){return o.isScrollable?0:8},minWidth:286,width:286,overflowY:"hidden",backgroundColor:o.palette.background.b9,maxHeight:function(o){var e=o.maxHeight;return e?e-24:"calc(100% - 24px)"},"&.scrollable":{height:function(o){return o.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(o.palette.background.b9,", ").concat(o.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(o.palette.background.b9," 100%)")},modalRoot:{"& > div:first-child":{backgroundColor:"transparent !important"}},modalContentContainer:{height:m?"calc(100% - 16px)":"calc(100% - 126px)",maxHeight:m?"calc(100% - 16px)":"calc(100% - 126px)",maxWidth:"calc(100% - 16px)",width:"calc(100% - 16px)",marginTop:m?0:118,backgroundColor:C},modalTitle:{padding:"12px 16px",backgroundColor:C,boxShadow:function(o){var e=o.modalType;return"0px 8px 10px ".concat(C({modalType:e})," !important")}},modalContent:{padding:16,flexGrow:1},modalActions:{display:"flex",justifyContent:"flex-end",padding:"8px 16px",zIndex:1,backgroundColor:C,boxShadow:function(o){var e=o.modalType;return"0px -8px 10px ".concat(C({modalType:e}))}}}}));function T(l){var c=l.Trigger,g=l.children,f=l.defaultScrollable,C=l.header,T=l.iconSettingsProps,y=l.maxHeight,k=l.modalActions,S=l.modalProps,P=l.modalType,w=l.onClose,H=l.classes,N=o(l,["Trigger","children","defaultScrollable","header","iconSettingsProps","maxHeight","modalActions","modalProps","modalType","onClose","classes"]),j=r(null),z=j[0],A=j[1],I=r(!0),B=I[0],M=I[1],O=v({maxHeight:y,isScrollable:B,isNativeDetected:m,modalType:P}),D=H||{},E=D.popoverContent,R=o(D,["popoverContent"]),W=function(){A(null),w()},Y=Boolean(z),F=function(o){return A(o.currentTarget)},G=k||t(b,e({variation:"secondary",onClick:W},{children:"CLOSE"}));return n(a,{children:[c?t(c,{onClick:F}):t(h,e({isActive:Y,onClick:F,size:"small",tooltipProps:{title:"Settings"},variant:"contained"},T,{children:t(p,{})})),!x&&n(s,e({open:Y,anchorEl:z,onClose:W,anchorOrigin:{vertical:B?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},N,{classes:e(e({},R),{paper:i(O.popoverPaper,B&&"scrollable",null==R?void 0:R.paper)})},{children:[n("div",e({className:i(O.popoverHeader,B&&"scrollable")},{children:[t("div",e({className:O.headerTitle},{children:C})),t(h,e({tooltipProps:{title:"Close"},onClick:W},{children:t(d,{})}))]})),t("div",e({className:i(O.popoverContentContainer,B&&"scrollable"),ref:function(o){o&&o.scrollHeight<=o.clientHeight&&!f&&M(!1)}},{children:t("div",e({className:i(O.popoverContent,E)},{children:g}))})),t("div",{className:O.shadow})]})),x&&t(u,e({actions:G,actionsClassName:O.modalActions,contentClassName:O.modalContent,contentContainerClassName:O.modalContentContainer,isMobile:!1,isNative:!1,modalTitleClassName:O.modalTitle,onClose:W,open:Y,rootClassName:O.modalRoot,stickyFooter:!0,title:C},S,{children:g}))]})}var y={Trigger:l.element,iconSettingsProps:l.shape({iconSize:l.string,tooltipProps:l.shape({title:l.string})}),defaultScrollable:l.bool,maxHeight:l.number,header:l.string,modalActions:l.node,modalProps:l.any,modalType:l.string,onClose:l.func};T.propTypes=y,T.defaultProps={defaultScrollable:!1,header:"Settings",iconSettingsProps:{},maxHeight:null,modalActions:null,modalProps:{},modalType:"",onClose:function(){}};export{T as default};
@@ -1,8 +1,9 @@
1
- export function FeedItemEditProvider({ children, tracesMinDateSec, tracesMaxDateSec, tracesAssetId }: {
1
+ export function FeedItemEditProvider({ children, tracesMinDateSec, tracesMaxDateSec, tracesAssetId, exitFunc }: {
2
2
  children: any;
3
3
  tracesMinDateSec: any;
4
4
  tracesMaxDateSec: any;
5
5
  tracesAssetId: any;
6
+ exitFunc: any;
6
7
  }): JSX.Element;
7
8
  export namespace FeedItemEditProvider {
8
9
  namespace propTypes {
@@ -10,6 +11,7 @@ export namespace FeedItemEditProvider {
10
11
  const tracesMinDateSec: PropTypes.Requireable<NonNullable<string | number>>;
11
12
  const tracesMaxDateSec: PropTypes.Requireable<NonNullable<string | number>>;
12
13
  const tracesAssetId: PropTypes.Requireable<NonNullable<string | number>>;
14
+ const exitFunc: PropTypes.Requireable<(...args: any[]) => any>;
13
15
  }
14
16
  namespace defaultProps {
15
17
  const tracesMinDateSec_1: any;
@@ -18,6 +20,8 @@ export namespace FeedItemEditProvider {
18
20
  export { tracesMaxDateSec_1 as tracesMaxDateSec };
19
21
  const tracesAssetId_1: any;
20
22
  export { tracesAssetId_1 as tracesAssetId };
23
+ export function exitFunc_1(): any;
24
+ export { exitFunc_1 as exitFunc };
21
25
  }
22
26
  }
23
27
  export function useFeedItemEditProvider(): any;
@@ -1 +1 @@
1
- {"version":3,"file":"FeedItemEditProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js"],"names":[],"mappings":"AAUA;;;;;gBAoCC;;;;;;;;;;;;;;;;;AAeD,+CAEC"}
1
+ {"version":3,"file":"FeedItemEditProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js"],"names":[],"mappings":"AAUA;;;;;;gBAuCC;;;;;;;;;;;;;;;;QAcW,kCAAU;;;;AAGtB,+CAEC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import n from"prop-types";import{createContext as s,useState as a,useContext as o}from"react";import"../../../utils/index.js";import{patchFeedItem as c}from"../../../clients/jsonApi/index.js";import i from"./FeedItemEditModal.js";import{jsxs as u,jsx as p}from"react/jsx-runtime";import{showSuccessNotification as l}from"../../../utils/notificationToasts.js";var m=s(),d=function(n){var s,o=n.children,d=n.tracesMinDateSec,f=n.tracesMaxDateSec,x=n.tracesAssetId,b=a(null),S=r(b,2),v=S[0],y=S[1],M=function(){return y(null)},h=(s=e(t.mark((function e(r){return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(v.id,{context:r});case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 9:M(),l("Successfully updated");case 11:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(e){return s.apply(this,arguments)});return u(m.Provider,{value:{editedFeedItem:v,setEditedFeedItem:y},children:[v&&p(i,{feedItem:v,onClose:M,onSave:function(e){var r=e.context;h(r)},tracesMinDateSec:d,tracesMaxDateSec:f,tracesAssetId:x}),o]})};function f(){return o(m)}d.propTypes={children:n.node.isRequired,tracesMinDateSec:n.oneOfType([n.string,n.number]),tracesMaxDateSec:n.oneOfType([n.string,n.number]),tracesAssetId:n.oneOfType([n.string,n.number])},d.defaultProps={tracesMinDateSec:null,tracesMaxDateSec:null,tracesAssetId:null};export{d as FeedItemEditProvider,f as useFeedItemEditProvider};
1
+ import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import n from"prop-types";import{createContext as s,useState as a,useContext as c}from"react";import"../../../utils/index.js";import{patchFeedItem as o}from"../../../clients/jsonApi/index.js";import i from"./FeedItemEditModal.js";import{jsxs as u,jsx as l}from"react/jsx-runtime";import{showSuccessNotification as p}from"../../../utils/notificationToasts.js";var m=s(),d=function(n){var s,c=n.children,d=n.tracesMinDateSec,f=n.tracesMaxDateSec,x=n.tracesAssetId,b=n.exitFunc,S=a(null),v=t(S,2),y=v[0],M=v[1],h=function(){b(),M(null)},D=(s=e(r.mark((function e(t){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o(y.id,{context:t});case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return");case 9:h(),p("Successfully updated");case 11:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(e){return s.apply(this,arguments)});return u(m.Provider,{value:{editedFeedItem:y,setEditedFeedItem:M},children:[y&&l(i,{feedItem:y,onClose:h,onSave:function(e){var t=e.context;D(t)},tracesMinDateSec:d,tracesMaxDateSec:f,tracesAssetId:x}),c]})};function f(){return c(m)}d.propTypes={children:n.node.isRequired,tracesMinDateSec:n.oneOfType([n.string,n.number]),tracesMaxDateSec:n.oneOfType([n.string,n.number]),tracesAssetId:n.oneOfType([n.string,n.number]),exitFunc:n.func},d.defaultProps={tracesMinDateSec:null,tracesMaxDateSec:null,tracesAssetId:null,exitFunc:function(){return null}};export{d as FeedItemEditProvider,f as useFeedItemEditProvider};
@@ -1 +1 @@
1
- {"version":3,"file":"DvdCommentEdit.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js"],"names":[],"mappings":";AAgFA;;;;;;;;;;;;;;;;;;gBA+IC"}
1
+ {"version":3,"file":"DvdCommentEdit.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js"],"names":[],"mappings":";AAgFA;;;;;;;;;;;;;;;;;;gBAoJC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useRef as o,useState as n}from"react";import r from"moment";import{debounce as i}from"lodash";import a from"classnames";import{makeStyles as c,Grid as s,Typography as l}from"@material-ui/core";import{getUnitDisplay as m}from"../../../../utils/index.js";import p from"../../../Modal/Modal.js";import d from"../../../PostInput/PostInput.js";import u from"../../../IconButton/index.js";import{Regular14 as h}from"../../../Typography.js";import f from"../../../Icons/SendIcon.js";import{isSuggestionsListOpened as g}from"../../../UserMention/utils/index.js";import{jsxs as b,jsx as y}from"react/jsx-runtime";function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function x(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?v(Object(n),!0).forEach((function(o){e(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=c((function(e){return{postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0,maxHeight:251},modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1},info:{marginTop:16},text:{color:e.palette.primary.text6},value:{color:"#fff"},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},modalActions:{paddingTop:16},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}})),w={suggestions:{list:{background:"#414141"},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};function j(e){var c,v=e.feedItem.context.dvd_comment,j=v.body,O=v.attachment,P=v.data,C=v.data,I=C.bitDepth,D=C.holeDepth,B=C.cost,M=C.timestamp,S=e.onClose,H=e.onSave,T=e.userCompanyId,k=N(),A=o(),E=n({body:j,attachment:O}),L=t(E,2),W=L[0],F=L[1],R=i(F,300),K=function(){H({context:{dvd_comment:x(x({},W),{},{data:P})}})};return b(p,{open:!0,onClose:S,title:"Edit Comment",contentClassName:k.modal,actionsClassName:k.modalActions,actions:b(s,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:k.actions,children:[y(s,{item:!0,children:y(l,{variant:"caption",className:a(k.inputMain,k.cancelText,k.highlightedLabel),component:"div",gutterBottom:!0,onClick:S,children:"Cancel"})}),b(s,{item:!0,direction:"row",alignItems:"center",className:k.sendRow,children:[b(l,{variant:"caption",className:a(k.inputMain,k.inputHelper),component:"div",gutterBottom:!0,children:["Press ",y(l,{variant:"caption",color:"primary",className:a(k.inputMain,k.highlightedLabel),children:"Enter"})," to send"]}),y(u,{onClick:K,className:k.sendIcon,disabled:!W||!W.body&&!W.attachment,children:y(f,{})})]})]}),ref:A,children:[y(d,{initialValue:{body:j,attachment:O},userCompanyId:T,onChange:R,filePreviewWrapperClass:k.filePreviewWrapper,className:k.postInput,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||g()||(e.preventDefault(),K())},mentionStyle:w,suggestionsPortalHost:A.current,allowSuggestionsAboveCursor:!0}),b("div",{className:k.info,children:[M&&b(h,{className:k.text,gutterBottom:!0,children:["Time:"," ",y("span",{className:k.value,children:r(M).format("MM/DD/YY, HH:mm")})," "]}),Number.isFinite(B)&&b(h,{className:k.text,gutterBottom:!0,children:["Cost: ",b("span",{className:k.value,children:[" ",(c=B,c.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))]})," ",y("span",{className:k.currency,children:"$"})]}),Number.isFinite(I)&&b(h,{className:k.text,gutterBottom:!0,children:["Bit Depth: ",y("span",{className:k.value,children:"".concat(I," ").concat(m("length"))})]}),Number.isFinite(D)&&b(h,{className:k.text,gutterBottom:!0,children:["Hole Depth: ",y("span",{className:k.value,children:"".concat(D," ").concat(m("length"))})]})]})]})}export{j as default};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useRef as o,useState as n}from"react";import r from"moment";import{debounce as i}from"lodash";import a from"classnames";import{makeStyles as c,Grid as s,Typography as l}from"@material-ui/core";import{getUnitDisplay as m}from"../../../../utils/index.js";import p from"../../../Modal/Modal.js";import d from"../../../PostInput/PostInput.js";import u from"../../../IconButton/index.js";import{Regular14 as h}from"../../../Typography.js";import f from"../../../Icons/SendIcon.js";import{isSuggestionsListOpened as g}from"../../../UserMention/utils/index.js";import{jsxs as b,jsx as y}from"react/jsx-runtime";function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function x(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?v(Object(n),!0).forEach((function(o){e(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=c((function(e){return{postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0,maxHeight:251},modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1},info:{marginTop:16},text:{color:e.palette.primary.text6},value:{color:"#fff"},inputMain:{marginBottom:0,fontSize:"11px",color:e.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:e.palette.primary.main},modalActions:{paddingTop:16},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}})),w={suggestions:{list:{background:"#414141"},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};function j(e){var c,v=e.feedItem.context.dvd_comment,j=v.body,O=v.attachment,P=v.data,C=v.data,I=C.bitDepth,D=C.holeDepth,B=C.cost,M=C.timestamp,S=e.onClose,k=e.onSave,H=e.userCompanyId,T=N(),A=o(),E=n({body:j,attachment:O}),L=t(E,2),W=L[0],F=L[1],R=i(F,300),K=function(){k({context:{dvd_comment:x(x({},W),{},{data:P})}})};return b(p,{open:!0,onClose:S,title:"Edit Comment",contentClassName:T.modal,actionsClassName:T.modalActions,onClick:function(e){e.stopPropagation()},actions:b(s,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:T.actions,children:[y(s,{item:!0,children:y(l,{variant:"caption",className:a(T.inputMain,T.cancelText,T.highlightedLabel),component:"div",gutterBottom:!0,onClick:S,children:"Cancel"})}),b(s,{item:!0,direction:"row",alignItems:"center",className:T.sendRow,children:[b(l,{variant:"caption",className:a(T.inputMain,T.inputHelper),component:"div",gutterBottom:!0,children:["Press ",y(l,{variant:"caption",color:"primary",className:a(T.inputMain,T.highlightedLabel),children:"Enter"})," to send"]}),y(u,{onClick:K,className:T.sendIcon,disabled:!W||!W.body&&!W.attachment,children:y(f,{})})]})]}),ref:A,children:[y(d,{initialValue:{body:j,attachment:O},userCompanyId:H,onChange:R,filePreviewWrapperClass:T.filePreviewWrapper,className:T.postInput,onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||g()||(e.preventDefault(),K())},mentionStyle:w,suggestionsPortalHost:A.current,allowSuggestionsAboveCursor:!0}),b("div",{className:T.info,children:[M&&b(h,{className:T.text,gutterBottom:!0,children:["Time:"," ",y("span",{className:T.value,children:r(M).format("MM/DD/YY, HH:mm")})," "]}),Number.isFinite(B)&&b(h,{className:T.text,gutterBottom:!0,children:["Cost: ",b("span",{className:T.value,children:[" ",(c=B,c.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "))]})," ",y("span",{className:T.currency,children:"$"})]}),Number.isFinite(I)&&b(h,{className:T.text,gutterBottom:!0,children:["Bit Depth: ",y("span",{className:T.value,children:"".concat(I," ").concat(m("length"))})]}),Number.isFinite(D)&&b(h,{className:T.text,gutterBottom:!0,children:["Hole Depth: ",y("span",{className:T.value,children:"".concat(D," ").concat(m("length"))})]})]})]})}export{j as default};
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AAgCA;;;;;;;;;gBAyXC"}
1
+ {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AAgCA;;;;;;;;;gBAgYC"}
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as k,jsxs as B,Fragment as g}from"react/jsx-runtime";var O=v.isValidCoordinates,W=[29.749907,-95.358421],T=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,x=a.wells,N=a.offsetWellIds,j=a.radius,F=a.handleChanageOffsetWell,z=a.activeWellId,E=a.isClickable,L=t((function(){return D&&l(D,"topHole.coordinates")}),[D]),w=t((function(){return C(x)}),[x]),I=n(),Z=n(),_=n(),q=n(),M=n(null),P=o(!1),R=e(P,2),V=R[0],G=R[1],S=n(),A=n(),H=(null==D?void 0:D.id)===z,U=h(x),J=o(null),K=e(J,2),Q=K[0],X=K[1],Y=o(3),$=e(Y,2),rr=$[0],er=$[1];c((function(){I.current=p.mapbox.map(I.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(W,3).on("zoomend",(function(){return er(I.current.getZoom())})),I.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(I.current)}),[]),c((function(){if(I.current){if(Z.current&&(I.current.removeLayer(Z.current),Z.current=null),_.current&&I.current.removeLayer(_.current),!L)return Z.current=null,void(_.current=null);j&&(Z.current=p.circle(L,1609.34*j,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),Z.current.addTo(I.current))}}),[j,L]);var tr=function(r,e,t,n,o,c){c&&(r.setStyle({fillColor:"#63EFFF"}),G(!0)),M.current=p.circleMarker(e,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":t,className:"circle_highlight"}),M.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),c&&(r.setStyle({fillColor:"#03BCD4"}),G(!1))})),M.current.addEventListener("click",(function(){v||F(n,!o)}));var i=S.current.concat(M.current);q.current.removeFrom(I.current),q.current=p.featureGroup(i),q.current.addTo(I.current)},nr=function(r,e,t,n,o){var c=document.createElement("div"),a=i(y(),{isViewOnly:v,well:r,color:l(w,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o,isClickable:E});u.render(k(g,{children:a}),c),p.popup().setLatLng(n).setContent(c).openOn(I.current)};c((function(){if(I.current&&x&&N){I.current.closePopup(),q.current&&q.current.removeFrom(I.current);var r=[],e=[],t=[];x.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(N.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&O(n)){var o=(null==D?void 0:D.id)===e.id,c=N.includes(e.id)&&!o,i=o?"#03BCD4":l(w,e.formation,"#BDBDBD"),u=c?.7:.3;if(c){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:i,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:u,fillColor:i,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];Q&&l(r.target,T)&&(t=[l(r.target,T).x-Q.x,l(r.target,T).y-Q.y]),nr(e,c,o,n,t),tr(s,n,i,e,c,o)})),o&&(A.current=s),r.push(s),e.id===z&&!H){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i,className:"circle_1200"});r.push(d)}}})),r.length&&(q.current=p.featureGroup(r),q.current.addTo(I.current)),S.current=r,setTimeout((function(){Z.current&&Z.current.bringToBack(),j<3e3&&I.current&&Z.current&&x!==U&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]})}),500)}}),[D,x,N,Q]),c((function(){if(V&&l(I.current,T)){var r=[l(I.current,T).x-Q.x,l(I.current,T).y-Q.y];nr(D,!1,!0,L,r)}}),[V,Q,D,L]),c((function(){if(I.current&&L){_.current&&_.current.removeFrom(I.current);var r=p.icon({iconUrl:V||H?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:V||H?[70,20]:[62,12],iconAnchor:V||H?[35,29]:[31,25],className:"dot"});_.current=p.marker(L,{icon:r}),_.current.addTo(I.current),A.current&&(_.current.addEventListener("mouseover",(function(){G(!0),tr(A.current,L,"#03BCD4",D,!0,!0)})),_.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),A.current.setStyle({fillColor:"#03BCD4"}),G(!1)})))}}),[V,L,j,D,H,Q]),c((function(){j>3e3?I.current.setZoom(1):setTimeout((function(){Z.current&&Z.current.bringToBack(),D?I.current&&Z.current&&j&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]}):I.current&&q.current&&I.current.fitBounds(q.current.getBounds()),l(I.current,T)&&X(l(I.current,T))}),500)}),[j,D]);return k("div",{className:b.mapView,children:k("div",{className:b.mapMain,ref:I,children:B("div",{className:b.zoomGroup,children:[k(d,{title:rr<18?"Zoom in":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===rr)),onClick:function(){I.current.setZoom(rr+1)},children:k(m,{className:b.zoomInOutIcon})})}),k(d,{title:rr>1?"Zoom out":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===rr)),onClick:function(){rr>1&&I.current.setZoom(rr-1)},children:k(f,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired,isClickable:a.bool},D.defaultProps={subjectWell:null,isClickable:!0};export{D as default};
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as k,jsxs as B,Fragment as g}from"react/jsx-runtime";var O=v.isValidCoordinates,T=[29.749907,-95.358421],W=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,x=a.wells,N=a.offsetWellIds,j=a.radius,F=a.handleChanageOffsetWell,L=a.activeWellId,z=a.isClickable,E=t((function(){return D&&l(D,"topHole.coordinates")}),[D]),w=t((function(){return C(x)}),[x]),I=n(),Z=n(),_=n(),q=n(),M=n(null),P=o(!1),R=e(P,2),V=R[0],G=R[1],S=n(),A=n(),H=(null==D?void 0:D.id)===L,U=h(x),J=o(null),K=e(J,2),Q=K[0],X=K[1],Y=o(3),$=e(Y,2),rr=$[0],er=$[1],tr=n(!0);c((function(){I.current=p.mapbox.map(I.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(T,3).on("zoomend",(function(){return er(I.current.getZoom())})),I.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(I.current)}),[]),c((function(){if(I.current){if(Z.current&&(I.current.removeLayer(Z.current),Z.current=null),_.current&&I.current.removeLayer(_.current),!E)return Z.current=null,void(_.current=null);j&&(Z.current=p.circle(E,1609.34*j,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),Z.current.addTo(I.current))}}),[j,E]);var nr=function(r,e,t,n,o,c){c&&(r.setStyle({fillColor:"#63EFFF"}),G(!0)),M.current=p.circleMarker(e,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":t,className:"circle_highlight"}),M.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),c&&(r.setStyle({fillColor:"#03BCD4"}),G(!1))})),M.current.addEventListener("click",(function(){v||F(n,!o)}));var i=S.current.concat(M.current);q.current.removeFrom(I.current),q.current=p.featureGroup(i),q.current.addTo(I.current)},or=function(r,e,t,n,o){var c=document.createElement("div"),a=i(y(),{isViewOnly:v,well:r,color:l(w,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o,isClickable:z});u.render(k(g,{children:a}),c),p.popup().setLatLng(n).setContent(c).openOn(I.current)};c((function(){if(I.current&&x&&N){I.current.closePopup(),q.current&&q.current.removeFrom(I.current);var r=[],e=[],t=[];x.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(N.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&O(n)){var o=(null==D?void 0:D.id)===e.id,c=N.includes(e.id)&&!o,i=o?"#03BCD4":l(w,e.formation,"#BDBDBD"),u=c?.7:.3;if(c){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:i,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:u,fillColor:i,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];Q&&l(r.target,W)&&(t=[l(r.target,W).x-Q.x,l(r.target,W).y-Q.y]),or(e,c,o,n,t),nr(s,n,i,e,c,o)})),o&&(A.current=s),r.push(s),e.id===L&&!H){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i,className:"circle_1200"});r.push(d)}}})),r.length&&(q.current=p.featureGroup(r),q.current.addTo(I.current)),S.current=r,setTimeout((function(){Z.current&&Z.current.bringToBack(),j<3e3&&I.current&&Z.current&&x!==U&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]})}),500)}}),[D,x,N,Q]),c((function(){if(V&&l(I.current,W)){var r=[l(I.current,W).x-Q.x,l(I.current,W).y-Q.y];or(D,!1,!0,E,r)}}),[V,Q,D,E]),c((function(){if(I.current&&E){_.current&&_.current.removeFrom(I.current);var r=p.icon({iconUrl:V||H?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:V||H?[70,20]:[62,12],iconAnchor:V||H?[35,29]:[31,25],className:"dot"});_.current=p.marker(E,{icon:r}),_.current.addTo(I.current),A.current&&(_.current.addEventListener("mouseover",(function(){G(!0),nr(A.current,E,"#03BCD4",D,!0,!0)})),_.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),A.current.setStyle({fillColor:"#03BCD4"}),G(!1)})))}}),[V,E,j,D,H,Q]),c((function(){j>3e3?I.current.setZoom(1):setTimeout((function(){Z.current&&Z.current.bringToBack(),D?I.current&&Z.current&&j?I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]}):E&&tr.current&&(tr.current=!1,I.current.panTo(E,{duration:1,easeLinearity:.25})):I.current&&q.current&&I.current.fitBounds(q.current.getBounds()),l(I.current,W)&&X(l(I.current,W))}),500)}),[j,D,E]);var cr=function(){I.current.setZoom(rr+1)};return k("div",{className:b.mapView,children:k("div",{className:b.mapMain,ref:I,onDoubleClick:cr,children:B("div",{className:b.zoomGroup,children:[k(d,{title:rr<18?"Zoom in":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===rr)),onClick:cr,children:k(m,{className:b.zoomInOutIcon})})}),k(d,{title:rr>1?"Zoom out":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===rr)),onClick:function(){rr>1&&I.current.setZoom(rr-1)},children:k(f,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired,isClickable:a.bool},D.defaultProps={subjectWell:null,isClickable:!0};export{D as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.57.0-0",
3
+ "version": "0.57.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -93,6 +93,7 @@ export const PERMISSIONS: {
93
93
  programCreate: string;
94
94
  padCreate: string;
95
95
  padUpdate: string;
96
+ canManagePadFracFleets: string;
96
97
  fracFleetCreate: string;
97
98
  drilloutUnitCreate: string;
98
99
  canQCDrillstring: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permissions/constants/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwSE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permissions/constants/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4SE"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{stringifyPermission as r}from"../utils.js";import{ABILITIES as s}from"./abilities.js";export{ABILITIES}from"./abilities.js";import i from"./settingsApps.js";import a from"./appsPermissions.js";function t(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,i)}return s}function c(r){for(var s=1;s<arguments.length;s++){var i=null!=arguments[s]?arguments[s]:{};s%2?t(Object(i),!0).forEach((function(s){e(r,s,i[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}var o=c(c({companySelectorView:r({resource_class:"company_selector",ability:s.view}),userCreate:r({resource_class:"User",ability:s.create}),getUserUpdate:function(e){return r({resource_class:"User",ability:s.update,resource_id:e})},canViewCorvaAppVersion:r({resource_class:"corva_app_version",ability:s.view}),documentationEdit:r({resource_class:"Document",ability:s.edit}),documentationCreate:r({resource_class:"Document",ability:s.create}),documentationDestroy:r({resource_class:"Document",ability:s.destroy}),canUpdateWellQC:r({resource_class:"well_qc",ability:s.update}),getFeedItemDestroy:function(e){return r({resource_class:"Activity",ability:s.destroy,resource_id:e})},getCommentDestroy:function(e){return r({resource_class:"Comment",ability:s.destroy,resource_id:e})},getAlertUpdate:function(e){return r({resource_class:"Alert",ability:s.update,resource_id:e})},getAlertDestroy:function(e){return r({resource_class:"Alert",ability:s.destroy,resource_id:e})},streamVisibilityEdit:r({resource_class:"stream",ability:s.edit}),userImpersonate:r({resource_class:"user",ability:s.impersonate}),getDashboardUpdate:function(e){return r({resource_class:"Dashboard",ability:s.update,resource_id:e})},canCreateDashboard:r({resource_class:"Dashboard",ability:s.create}),canCopyUsers:r({resource_class:"Group",ability:s.copy_users}),canViewDocumentsInfo:r({resource_class:"documents_info",ability:s.view}),canViewCostsInfo:r({resource_class:"costs_info",ability:s.view}),canViewBillingCost:r({resource_class:"billing_visualization_cost",ability:s.view}),canReadBillingInfo:r({resource_class:"Usage",ability:s.read}),canUpdateTiers:r({resource_class:"Tier",ability:s.update}),canReadTiers:r({resource_class:"Tier",ability:s.read}),canCreateTiers:r({resource_class:"Tier",ability:s.create}),canDestroyTiers:r({resource_class:"Tier",ability:s.destroy}),canUpdateProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.update}),canReadProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.read}),canCreateProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.create}),canDestroyProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.destroy}),canViewPurchasesPage:r({resource_class:"company_purchase",ability:s.access}),canReadPermissions:r({resource_class:"Permission",ability:s.read}),canViewUserPermissions:r({resource_class:"mng_permissions_user_btn",ability:s.view}),canViewGroupPermissions:r({resource_class:"mng_permissions_group_btn",ability:s.view}),canShareGroup:r({resource_class:"Group",ability:s.share}),getAppStreamUpdate:function(e){return r({resource_class:"AppStream",ability:s.update,resource_id:e})},canViewAlertValidationFilters:r({resource_class:"alert_validation_filters",ability:s.view}),canViewAlertSubscriptionFilters:r({resource_class:"alert_subscription_filters",ability:s.view}),getCanDestroyAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.destroy,resource_id:e})},getCanUpdateAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.update,resource_id:e})},canCreateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.create}),canUpdateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.edit}),canViewAlertCompanyField:r({resource_class:"alert_company_field",ability:s.view}),canViewDashboardSharingCompany:r({resource_class:"dashboard_sharing_company",ability:s.view}),canViewDashboardSharingSharedWith:r({resource_class:"dashboard_sharing_shared_with",ability:s.view}),canViewConfigPage:r({resource_class:"config_page",ability:s.access}),canAccessRequestApp:r({resource_class:"request_app",ability:s.access}),canAccessUserSettingsWidgets:r({resource_class:"user_settings_widgets",ability:s.access}),canViewDevCenter:r({resource_class:"dev_center",ability:s.access}),getCanReadAppPackages:function(e){return r({resource_class:"App",ability:"read_packages",resource_id:e})},canViewAppPackageSelector:r({resource_class:"app_package_selector",ability:s.view}),canAccessProvisioning:r({resource_class:"provisioning",ability:s.access}),getCanUpdateAsset:function(e){return r({resource_class:"Asset",ability:s.update,resource_id:e})},getCanUpdateParentAssetAsset:function(e){return r({resource_class:"Asset",ability:"update_parent_asset",resource_id:e})},getCanCopyActivities:function(e){return r({resource_class:"Asset",ability:s.copy_activities,resource_id:e})},rigCreate:r({ability:s.create,resource_class:"Rig"}),wellCreate:r({ability:s.create,resource_class:"Well"}),programCreate:r({ability:s.create,resource_class:"Program"}),padCreate:r({ability:s.create,resource_class:"Pad"}),padUpdate:r({ability:s.update,resource_class:"Pad"}),fracFleetCreate:r({ability:s.create,resource_class:"FracFleet"}),drilloutUnitCreate:r({ability:s.create,resource_class:"DrilloutUnit"}),canQCDrillstring:r({ability:s.update,resource_class:"drillstring_qc"}),canCalibrateDrillstring:r({ability:s.update,resource_class:"drillstring_calibration"}),canViewAppOwnersFilter:r({ability:s.view,resource_class:"app_owners_filter"}),canViewSaveOffsetWells:r({ability:s.view,resource_class:"save_offset_wells"}),canViewGenerateDRM:r({ability:s.view,resource_class:"corva.driller_roadmap-generate_drm"})},i),a);export{o as PERMISSIONS};
1
+ import e from"@babel/runtime/helpers/defineProperty";import{stringifyPermission as r}from"../utils.js";import{ABILITIES as s}from"./abilities.js";export{ABILITIES}from"./abilities.js";import a from"./settingsApps.js";import i from"./appsPermissions.js";function t(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,a)}return s}function c(r){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?t(Object(a),!0).forEach((function(s){e(r,s,a[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}var o=c(c({companySelectorView:r({resource_class:"company_selector",ability:s.view}),userCreate:r({resource_class:"User",ability:s.create}),getUserUpdate:function(e){return r({resource_class:"User",ability:s.update,resource_id:e})},canViewCorvaAppVersion:r({resource_class:"corva_app_version",ability:s.view}),documentationEdit:r({resource_class:"Document",ability:s.edit}),documentationCreate:r({resource_class:"Document",ability:s.create}),documentationDestroy:r({resource_class:"Document",ability:s.destroy}),canUpdateWellQC:r({resource_class:"well_qc",ability:s.update}),getFeedItemDestroy:function(e){return r({resource_class:"Activity",ability:s.destroy,resource_id:e})},getCommentDestroy:function(e){return r({resource_class:"Comment",ability:s.destroy,resource_id:e})},getAlertUpdate:function(e){return r({resource_class:"Alert",ability:s.update,resource_id:e})},getAlertDestroy:function(e){return r({resource_class:"Alert",ability:s.destroy,resource_id:e})},streamVisibilityEdit:r({resource_class:"stream",ability:s.edit}),userImpersonate:r({resource_class:"user",ability:s.impersonate}),getDashboardUpdate:function(e){return r({resource_class:"Dashboard",ability:s.update,resource_id:e})},canCreateDashboard:r({resource_class:"Dashboard",ability:s.create}),canCopyUsers:r({resource_class:"Group",ability:s.copy_users}),canViewDocumentsInfo:r({resource_class:"documents_info",ability:s.view}),canViewCostsInfo:r({resource_class:"costs_info",ability:s.view}),canViewBillingCost:r({resource_class:"billing_visualization_cost",ability:s.view}),canReadBillingInfo:r({resource_class:"Usage",ability:s.read}),canUpdateTiers:r({resource_class:"Tier",ability:s.update}),canReadTiers:r({resource_class:"Tier",ability:s.read}),canCreateTiers:r({resource_class:"Tier",ability:s.create}),canDestroyTiers:r({resource_class:"Tier",ability:s.destroy}),canUpdateProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.update}),canReadProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.read}),canCreateProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.create}),canDestroyProductSubscriptions:r({resource_class:"ProductSubscription",ability:s.destroy}),canViewPurchasesPage:r({resource_class:"company_purchase",ability:s.access}),canReadPermissions:r({resource_class:"Permission",ability:s.read}),canViewUserPermissions:r({resource_class:"mng_permissions_user_btn",ability:s.view}),canViewGroupPermissions:r({resource_class:"mng_permissions_group_btn",ability:s.view}),canShareGroup:r({resource_class:"Group",ability:s.share}),getAppStreamUpdate:function(e){return r({resource_class:"AppStream",ability:s.update,resource_id:e})},canViewAlertValidationFilters:r({resource_class:"alert_validation_filters",ability:s.view}),canViewAlertSubscriptionFilters:r({resource_class:"alert_subscription_filters",ability:s.view}),getCanDestroyAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.destroy,resource_id:e})},getCanUpdateAlertDefinition:function(e){return r({resource_class:"AlertDefinition",ability:s.update,resource_id:e})},canCreateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.create}),canUpdateAlertDashboard:r({resource_class:"alert_dashboard",ability:s.edit}),canViewAlertCompanyField:r({resource_class:"alert_company_field",ability:s.view}),canViewDashboardSharingCompany:r({resource_class:"dashboard_sharing_company",ability:s.view}),canViewDashboardSharingSharedWith:r({resource_class:"dashboard_sharing_shared_with",ability:s.view}),canViewConfigPage:r({resource_class:"config_page",ability:s.access}),canAccessRequestApp:r({resource_class:"request_app",ability:s.access}),canAccessUserSettingsWidgets:r({resource_class:"user_settings_widgets",ability:s.access}),canViewDevCenter:r({resource_class:"dev_center",ability:s.access}),getCanReadAppPackages:function(e){return r({resource_class:"App",ability:"read_packages",resource_id:e})},canViewAppPackageSelector:r({resource_class:"app_package_selector",ability:s.view}),canAccessProvisioning:r({resource_class:"provisioning",ability:s.access}),getCanUpdateAsset:function(e){return r({resource_class:"Asset",ability:s.update,resource_id:e})},getCanUpdateParentAssetAsset:function(e){return r({resource_class:"Asset",ability:"update_parent_asset",resource_id:e})},getCanCopyActivities:function(e){return r({resource_class:"Asset",ability:s.copy_activities,resource_id:e})},rigCreate:r({ability:s.create,resource_class:"Rig"}),wellCreate:r({ability:s.create,resource_class:"Well"}),programCreate:r({ability:s.create,resource_class:"Program"}),padCreate:r({ability:s.create,resource_class:"Pad"}),padUpdate:r({ability:s.update,resource_class:"Pad"}),canManagePadFracFleets:r({ability:"manage_frac_fleets",resource_class:"Pad"}),fracFleetCreate:r({ability:s.create,resource_class:"FracFleet"}),drilloutUnitCreate:r({ability:s.create,resource_class:"DrilloutUnit"}),canQCDrillstring:r({ability:s.update,resource_class:"drillstring_qc"}),canCalibrateDrillstring:r({ability:s.update,resource_class:"drillstring_calibration"}),canViewAppOwnersFilter:r({ability:s.view,resource_class:"app_owners_filter"}),canViewSaveOffsetWells:r({ability:s.view,resource_class:"save_offset_wells"}),canViewGenerateDRM:r({ability:s.view,resource_class:"corva.driller_roadmap-generate_drm"})},a),i);export{o as PERMISSIONS};
@@ -561,5 +561,17 @@ export namespace cumulative_tortuosity {
561
561
  const key_50: string;
562
562
  export { key_50 as key };
563
563
  }
564
+ export namespace weight_to_weight_count {
565
+ const label_51: string;
566
+ export { label_51 as label };
567
+ const key_51: string;
568
+ export { key_51 as key };
569
+ }
570
+ export namespace tripping_connection_count {
571
+ const label_52: string;
572
+ export { label_52 as label };
573
+ const key_52: string;
574
+ export { key_52 as key };
575
+ }
564
576
  import { convertPercentageMetrics } from "./utils";
565
577
  //# sourceMappingURL=metricsConfig.d.ts.map
@@ -1 +1 @@
1
- import{getUnitDescription as e,convertValue as t,getUnitPreference as i}from"../convert.js";import{convertPercentageMetrics as o}from"./utils.js";var n={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},l={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},r={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},s={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:o,isBiggestBest:!0},a={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:o},g={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:o,isBiggestBest:!0},_={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},y={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},m={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},u={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},d={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},f={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},T={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},c={label:"On Bottom Time",key:"on_bottom_time",to:"h"},b={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:o,isBiggestBest:!0},h={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},B={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},v={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},S={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},C={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},O={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},D={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},R={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},w={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},E={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},G={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},L={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},N={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},j={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},V={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},W={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},x={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},U={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},q={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},z={label:"Cost/".concat(e(i("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/t(1,"length","ft")}},A={label:"Lateral Cost/".concat(e(i("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/t(1,"length","ft")}},F={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},M={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},X={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Y={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},Z={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},$={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"};export{B as bottom_to_slips_average,$ as build_rate,J as circulating_time,z as cost_per_ft,A as cost_per_lat_ft,ee as cumulative_tortuosity,p as drilled_feet_rotary,s as drilled_feet_rotary_percentage,r as drilled_feet_slide,a as drilled_feet_slide_percentage,h as drilling_connection_average,g as drilling_percentage,f as drilling_time_rotary,T as drilling_time_slide,d as feet_per_day,Y as gross_time,x as gross_tripping_in_speed,V as gross_tripping_in_speed_cased,W as gross_tripping_in_speed_open,U as gross_tripping_in_speed_total,q as gross_tripping_out_speed_total,n as hole_depth,l as hole_depth_change,F as npt,b as on_bottom_percentage,c as on_bottom_time,S as pumps_on_to_bottom_average,_ as rop,u as rop_gross,y as rop_rotary,m as rop_slide,v as slips_to_bottom_average,j as slips_to_slips,X as spud_to_landing_point,K as spud_to_rig_release_time,M as spud_to_target,Q as spud_to_total_depth_time,G as tripping_in_connection_time_cased,C as tripping_in_speed,O as tripping_in_speed_cased,I as tripping_in_speed_open,E as tripping_in_time,w as tripping_in_time_cased,P as tripping_in_time_open,N as tripping_in_time_with_connection,L as tripping_in_time_with_connection_open,H as tripping_out_speed,D as tripping_out_speed_cased,R as tripping_out_speed_open,Z as turn_rate,k as weight_to_weight_average};
1
+ import{getUnitDescription as e,convertValue as t,getUnitPreference as i}from"../convert.js";import{convertPercentageMetrics as o}from"./utils.js";var n={label:"Hole Depth",key:"hole_depth",isBiggestBest:!0,unitType:"length",from:"ft"},l={label:"Total Distance Drilled",key:"hole_depth_change",unitType:"length",from:"ft",isBiggestBest:!0},p={label:"Rotary Distance Drilled",key:"drilled_feet_rotary",unitType:"length",from:"ft",isBiggestBest:!0},r={label:"Slide Distance Drilled",key:"drilled_feet_slide",unitType:"length",from:"ft"},s={label:"Rotary %",key:"drilled_feet_rotary_percentage",to:"%",customConvert:o,isBiggestBest:!0},a={label:"Slide %",key:"drilled_feet_slide_percentage",to:"%",customConvert:o},g={label:"Drilling %",key:"drilling_percentage",to:"%",customConvert:o,isBiggestBest:!0},_={label:"On-Bottom ROP",key:"rop",unitType:"velocity",from:"ft/h",isBiggestBest:!0},y={label:"Rotary ROP",key:"rop_rotary",unitType:"velocity",from:"ft/h",isBiggestBest:!0},m={label:"Slide ROP",key:"rop_slide",unitType:"velocity",from:"ft/h",isBiggestBest:!0},u={label:"Gross ROP",key:"rop_gross",unitType:"velocity",from:"ft/h",isBiggestBest:!0},d={label:"Drilled Distance/Day",key:"feet_per_day",unitType:"length",from:"ft",formatUnitDisplay:function(e){return"".concat(e,"/day")},isBiggestBest:!0},f={label:"Rotary Drilling Time",key:"drilling_time_rotary",to:"h",isBiggestBest:!0},c={label:"Slide Drilling Time",key:"drilling_time_slide",to:"h"},T={label:"On Bottom Time",key:"on_bottom_time",to:"h"},b={label:"On Bottom %",key:"on_bottom_percentage",to:"%",customConvert:o,isBiggestBest:!0},h={label:"Slips to Slips",key:"drilling_connection_average",to:"min",unitType:"time",from:"s"},k={label:"Weight to Weight",key:"weight_to_weight_average",to:"min",from:"s",unitType:"time"},B={label:"Bottom to Slips",key:"bottom_to_slips_average",to:"min",from:"s",unitType:"time"},v={label:"Slips to Bottom",key:"slips_to_bottom_average",to:"min",from:"s",unitType:"time"},C={label:"Pumps on to Bottom",key:"pumps_on_to_bottom_average",to:"min",from:"s",unitType:"time"},S={label:"Hole Tripping In Speed",key:"tripping_in_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},H={label:"Hole Tripping Out Speed",key:"tripping_out_speed",unitType:"velocity",from:"ft/h",isBiggestBest:!0},O={label:"Cased Hole Tripping In Speed",key:"tripping_in_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},D={label:"Cased Hole Tripping Out Speed",key:"tripping_out_speed_cased",unitType:"velocity",from:"ft/h",isBiggestBest:!0},I={label:"Open Hole Tripping In Speed",key:"tripping_in_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},R={label:"Open Hole Tripping Out Speed",key:"tripping_out_speed_open",unitType:"velocity",from:"ft/h",isBiggestBest:!0},w={label:"Casing Tripping In Cased Hole",key:"tripping_in_time_cased",to:"min",from:"s",unitType:"time"},P={label:"Casing Tripping In Open Hole",key:"tripping_in_time_open",to:"min",from:"s",unitType:"time"},E={label:"Casing Tripping In Entire Hole",key:"tripping_in_time",to:"min",from:"s",unitType:"time"},G={label:"Connection Time in Cased Hole",key:"tripping_in_connection_time_cased",to:"min",from:"s",unitType:"time"},L={label:"Casing Tripping In Open Hole + Connection Time in Open Hole",key:"tripping_in_time_with_connection_open",to:"min",from:"h",unitType:"time"},N={label:"Casing Tripping In Entire Hole + Connection Time in Entire Hole",key:"tripping_in_time_with_connection",to:"min",from:"h",unitType:"time"},j={label:"Casing Slips to Slips",key:"slips_to_slips_average",to:"min",from:"s",unitType:"time"},V={label:"Cased Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_cased",unitType:"velocity",from:"ft/h"},W={label:"Open Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed_open",unitType:"velocity",from:"ft/h"},x={label:"Entire Hole Tripping In Speed (with connection)",key:"gross_tripping_in_speed",unitType:"velocity",from:"ft/h"},U={label:"Gross Tripping In Speed",key:"gross_tripping_in_speed_total",unitType:"velocity",from:"ft/h"},q={label:"Gross Tripping Out Speed",key:"gross_tripping_out_speed_total",unitType:"velocity",from:"ft/h"},z={label:"Cost/".concat(e(i("length")).singular),key:"cost_per_ft",customConvert:function(e){return e/t(1,"length","ft")}},A={label:"Lateral Cost/".concat(e(i("length")).singular),key:"cost_per_lat_ft",customConvert:function(e){return e/t(1,"length","ft")}},F={label:"NPT",key:"npt",unitType:"time",from:"h",to:"h"},J={label:"Circulating Time",key:"circulating_time",unitType:"time",from:"h",to:"h"},K={label:"Spud to Rig Release",key:"spud_to_rig_release_time",unitType:"time",from:"h",to:"d"},M={label:"Spud to Target",key:"spud_to_target",unitType:"time",from:"h",to:"d"},Q={label:"Spud to Total Depth",key:"spud_to_total_depth_time",unitType:"time",from:"h",to:"d"},X={label:"Spud to Landing Point",key:"spud_to_landing_point",unitType:"time",from:"h",to:"d"},Y={label:"Gross Time",key:"gross_time",unitType:"time",from:"s",to:"h"},Z={label:"Turn Rate",key:"turn_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},$={label:"Build Rate",key:"build_rate",unitType:"anglePerLength",from:"dp100f",allowNegativeValue:!0},ee={label:"Cumulative Tortuosity",key:"cumulative_tortuosity"},te={label:"Drilling Stand Count",key:"weight_to_weight_count"},ie={label:"Tripping Connection Count",key:"tripping_connection_count"};export{B as bottom_to_slips_average,$ as build_rate,J as circulating_time,z as cost_per_ft,A as cost_per_lat_ft,ee as cumulative_tortuosity,p as drilled_feet_rotary,s as drilled_feet_rotary_percentage,r as drilled_feet_slide,a as drilled_feet_slide_percentage,h as drilling_connection_average,g as drilling_percentage,f as drilling_time_rotary,c as drilling_time_slide,d as feet_per_day,Y as gross_time,x as gross_tripping_in_speed,V as gross_tripping_in_speed_cased,W as gross_tripping_in_speed_open,U as gross_tripping_in_speed_total,q as gross_tripping_out_speed_total,n as hole_depth,l as hole_depth_change,F as npt,b as on_bottom_percentage,T as on_bottom_time,C as pumps_on_to_bottom_average,_ as rop,u as rop_gross,y as rop_rotary,m as rop_slide,v as slips_to_bottom_average,j as slips_to_slips,X as spud_to_landing_point,K as spud_to_rig_release_time,M as spud_to_target,Q as spud_to_total_depth_time,ie as tripping_connection_count,G as tripping_in_connection_time_cased,S as tripping_in_speed,O as tripping_in_speed_cased,I as tripping_in_speed_open,E as tripping_in_time,w as tripping_in_time_cased,P as tripping_in_time_open,N as tripping_in_time_with_connection,L as tripping_in_time_with_connection_open,H as tripping_out_speed,D as tripping_out_speed_cased,R as tripping_out_speed_open,Z as turn_rate,k as weight_to_weight_average,te as weight_to_weight_count};