@corva/ui 0.52.0-1 → 0.52.0-10

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 (89) hide show
  1. package/components/Avatar/index.js +1 -1
  2. package/components/Button/index.js +1 -1
  3. package/components/Casing/CasingTableV2/components/Component.d.ts +3 -1
  4. package/components/Casing/CasingTableV2/components/Component.d.ts.map +1 -1
  5. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  6. package/components/Casing/CasingTableV2/components/SortableComponent.js +1 -1
  7. package/components/Chip/index.js +1 -1
  8. package/components/ColorPicker/ColorPicker.js +1 -1
  9. package/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
  10. package/components/Comment/CommentIcon/index.d.ts.map +1 -1
  11. package/components/Comment/CommentIcon/index.js +1 -1
  12. package/components/Counter/index.js +1 -1
  13. package/components/DatePicker/index.js +1 -1
  14. package/components/DateTimePicker/index.js +1 -1
  15. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  16. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  17. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  18. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
  19. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  20. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts +5 -1
  21. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.d.ts.map +1 -1
  22. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  23. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.d.ts +2 -1
  24. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.d.ts.map +1 -1
  25. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  26. package/components/Drillstring/BHAComponentsTable/components/Component.d.ts +3 -1
  27. package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
  28. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  29. package/components/Drillstring/BHAComponentsTable/components/SortableComponent.js +1 -1
  30. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts.map +1 -1
  31. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.js +1 -1
  32. package/components/EditableItem/EditableItem/index.js +1 -1
  33. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.d.ts.map +1 -1
  34. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  35. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.d.ts.map +1 -1
  36. package/components/FeedItem/feedItemTypes/DvDCommentFeedItem.js +1 -1
  37. package/components/FilesLoader/FilesLoader.js +1 -1
  38. package/components/IconButton/index.d.ts +1 -1
  39. package/components/IconButton/index.d.ts.map +1 -1
  40. package/components/IconButton/index.js +1 -1
  41. package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
  42. package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
  43. package/components/LoadingIndicator/LoadingIndicator.js +1 -1
  44. package/components/LoadingIndicator/types.js +1 -1
  45. package/components/Modal/CorvaModal.js +1 -1
  46. package/components/Modal/DcCorvaModal.js +1 -1
  47. package/components/Modal/Modal.js +1 -1
  48. package/components/OffsetWellButton/OffsetWellButton.js +1 -1
  49. package/components/OffsetWellChips/Chip.js +1 -1
  50. package/components/OffsetWellChips/ChipsContainer.js +1 -1
  51. package/components/OffsetWellMap/OffsetWellMap.d.ts +5 -1
  52. package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  53. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  54. package/components/OffsetWellMap/WellTooltip.d.ts +2 -1
  55. package/components/OffsetWellMap/WellTooltip.d.ts.map +1 -1
  56. package/components/OffsetWellMap/WellTooltip.js +1 -1
  57. package/components/OffsetWellPickerV2/constants.js +1 -1
  58. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
  59. package/components/OffsetWellPickerV4/constants.js +1 -1
  60. package/components/RangeSlider/RangeSlider.js +1 -1
  61. package/components/ResizableTable/ResizableTable.js +1 -1
  62. package/components/ResizableTable/ResizableTableCell.js +1 -1
  63. package/components/ResizableTable/ResizableTableHeaderCell.js +1 -1
  64. package/components/Search/Search.js +1 -1
  65. package/components/Select/index.js +1 -1
  66. package/components/SettingEditors/ColorEditor/index.js +1 -1
  67. package/components/SettingEditors/RadioEditor/index.js +1 -1
  68. package/components/Stepper/Step.js +1 -1
  69. package/components/Stepper/Stepper.js +1 -1
  70. package/components/Stepper/StepsWrapper.js +1 -1
  71. package/components/SwitchControl/index.js +1 -1
  72. package/components/Tabs/Tabs.js +1 -1
  73. package/components/TextLink/index.js +1 -1
  74. package/components/VirtualizedTable/VirtualizedTable.js +1 -1
  75. package/constants/assetTypes.js +1 -1
  76. package/constants/goals.js +1 -1
  77. package/{_virtual/_tslib.js → ext-esm/tslib/tslib.es6.js} +0 -0
  78. package/package.json +2 -2
  79. package/permissions/constants/abilities.d.ts +1 -0
  80. package/permissions/constants/abilities.js +1 -1
  81. package/permissions/constants/index.d.ts +1 -0
  82. package/permissions/constants/index.d.ts.map +1 -1
  83. package/permissions/constants/index.js +1 -1
  84. package/utils/index.d.ts +1 -2
  85. package/utils/index.d.ts.map +1 -1
  86. package/utils/index.js +1 -1
  87. package/utils/recaptcha.d.ts +0 -3
  88. package/utils/recaptcha.d.ts.map +0 -1
  89. package/utils/recaptcha.js +0 -1
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as r from"../../utils/metrics/metricsConfig.js";var i=r,n={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area"},o=[{key:n.program,title:"Program",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Programs")}},{key:n.basin,title:"Basin",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:n.county,title:"County",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:n.area,title:"Area",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:n.formation,title:"Target Formation",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:n.stringDesign,title:"String Design",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],a=t([i.weight_to_weight_average,i.bottom_to_slips_average,i.drilling_connection_average,i.slips_to_bottom_average,i.hole_depth,i.hole_depth_change,i.drilled_feet_rotary,i.drilled_feet_slide,i.rop_gross,i.rop,i.rop_rotary,i.rop_slide,i.drilled_feet_rotary_percentage,i.drilled_feet_slide_percentage,i.on_bottom_percentage,i.on_bottom_time,i.cost_per_ft,i.cost_per_lat_ft,i.feet_per_day,i.tripping_in_speed_cased,i.tripping_in_speed_open,i.tripping_in_speed,i.tripping_out_speed_cased,i.tripping_out_speed_open,i.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[i.npt,i.circulating_time,i.spud_to_rig_release_time,i.spud_to_total_depth_time]:[])),"label"),s=a.map((function(e){return e.key})),l=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}],_={key:"settings",label:"settings",width:100},p=2,c={radius:5,filters:{},sortInfo:{key:"name",direction:1}};export{c as DEFAULT_SETTINGS,n as FILTERS,o as FILTERS_LIST,p as MAX_METRICS_COUNT,s as METRICS_KEYS,a as METRICS_LIST,_ as SETTINGS_COLUMN,l as TABLE_COLUMNS};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as r from"../../utils/metrics/metricsConfig.js";var i=r,n={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area"},o=[{key:n.program,title:"Program/BU",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Programs/BUs")}},{key:n.basin,title:"Basin",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:n.county,title:"County",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:n.area,title:"Area",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:n.formation,title:"Target Formation",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:n.stringDesign,title:"String Design",size:130,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],a=t([i.weight_to_weight_average,i.bottom_to_slips_average,i.drilling_connection_average,i.slips_to_bottom_average,i.hole_depth,i.hole_depth_change,i.drilled_feet_rotary,i.drilled_feet_slide,i.rop_gross,i.rop,i.rop_rotary,i.rop_slide,i.drilled_feet_rotary_percentage,i.drilled_feet_slide_percentage,i.on_bottom_percentage,i.on_bottom_time,i.cost_per_ft,i.cost_per_lat_ft,i.feet_per_day,i.tripping_in_speed_cased,i.tripping_in_speed_open,i.tripping_in_speed,i.tripping_out_speed_cased,i.tripping_out_speed_open,i.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[i.npt,i.circulating_time,i.spud_to_rig_release_time,i.spud_to_total_depth_time]:[])),"label"),s=a.map((function(e){return e.key})),l=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}],_={key:"settings",label:"settings",width:100},p=2,c={radius:5,filters:{},sortInfo:{key:"name",direction:1}};export{c as DEFAULT_SETTINGS,n as FILTERS,o as FILTERS_LIST,p as MAX_METRICS_COUNT,s as METRICS_KEYS,a as METRICS_LIST,_ as SETTINGS_COLUMN,l as TABLE_COLUMNS};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../../../utils/index.js";import*as r from"../../../../utils/metrics/metricsConfig.js";var i=r,n={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area",status:"status"},a=[{key:n.status,title:"Status",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Status")}},{key:n.program,title:"Program",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Programs")}},{key:n.basin,title:"Basin",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:n.county,title:"County",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:n.area,title:"Area",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:n.formation,title:"Target Formation",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:n.stringDesign,title:"String Design",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],o=t([i.weight_to_weight_average,i.bottom_to_slips_average,i.drilling_connection_average,i.slips_to_bottom_average,i.hole_depth,i.hole_depth_change,i.drilled_feet_rotary,i.drilled_feet_slide,i.rop_gross,i.rop,i.rop_rotary,i.rop_slide,i.drilled_feet_rotary_percentage,i.drilled_feet_slide_percentage,i.on_bottom_percentage,i.on_bottom_time,i.cost_per_ft,i.cost_per_lat_ft,i.feet_per_day,i.tripping_in_speed_cased,i.tripping_in_speed_open,i.tripping_in_speed,i.tripping_out_speed_cased,i.tripping_out_speed_open,i.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[i.npt,i.circulating_time,i.spud_to_rig_release_time,i.spud_to_total_depth_time]:[])),"label"),s=o.map((function(e){return e.key})),l=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}],_={key:"settings",label:"settings",width:100},p=2,c=["#FF00FF","#F5BD80","#FF0000","#0080FF","#FF8000","#58ACFA","#FA58F4","#40FF00","#4B8A08","#40FF00","#D8F781"],u={radius:5,filters:{},sortInfo:{key:"name",direction:1}};export{u as DEFAULT_SETTINGS,n as FILTERS,a as FILTERS_LIST,c as FORMATION_COLORS,p as MAX_METRICS_COUNT,s as METRICS_KEYS,o as METRICS_LIST,_ as SETTINGS_COLUMN,l as TABLE_COLUMNS};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../../../utils/index.js";import*as r from"../../../../utils/metrics/metricsConfig.js";var i=r,n={formation:"formation",stringDesign:"stringDesign",program:"programName",basin:"basin",county:"county",area:"area",status:"status"},a=[{key:n.status,title:"Status",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Status")}},{key:n.program,title:"Program/BU",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Programs/BUs")}},{key:n.basin,title:"Basin",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Basins")}},{key:n.county,title:"County",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Counties")}},{key:n.area,title:"Area",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Areas")}},{key:n.formation,title:"Target Formation",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Formations")}},{key:n.stringDesign,title:"String Design",size:150,renderValue:function(e){return 0===e?"All":"".concat(e," Designs")}}],o=t([i.weight_to_weight_average,i.bottom_to_slips_average,i.drilling_connection_average,i.slips_to_bottom_average,i.hole_depth,i.hole_depth_change,i.drilled_feet_rotary,i.drilled_feet_slide,i.rop_gross,i.rop,i.rop_rotary,i.rop_slide,i.drilled_feet_rotary_percentage,i.drilled_feet_slide_percentage,i.on_bottom_percentage,i.on_bottom_time,i.cost_per_ft,i.cost_per_lat_ft,i.feet_per_day,i.tripping_in_speed_cased,i.tripping_in_speed_open,i.tripping_in_speed,i.tripping_out_speed_cased,i.tripping_out_speed_open,i.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[i.npt,i.circulating_time,i.spud_to_rig_release_time,i.spud_to_total_depth_time]:[])),"label"),s=o.map((function(e){return e.key})),l=[{label:"Well Name",key:"name",minWidth:250},{label:"Rig",key:"rigName",width:200},{label:"Distance",key:"distance",width:120},{label:"Rig Release Date",key:"rigReleaseDate",width:150}],_={key:"settings",label:"settings",width:100},p=2,c=["#FF00FF","#F5BD80","#FF0000","#0080FF","#FF8000","#58ACFA","#FA58F4","#40FF00","#4B8A08","#40FF00","#D8F781"],u={radius:5,filters:{},sortInfo:{key:"name",direction:1}};export{u as DEFAULT_SETTINGS,n as FILTERS,a as FILTERS_LIST,c as FORMATION_COLORS,p as MAX_METRICS_COUNT,s as METRICS_KEYS,o as METRICS_LIST,_ as SETTINGS_COLUMN,l as TABLE_COLUMNS};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l=800,i=650,o={none:"none",normal:"normal",small:"small screen",tablet:"tablet",mobile:"mobile"},r=100,s=50,n=50,p="Android",_="iOS",d="Window Phone",m="other",c="all",u="All",g=450,b=50,v=60,h=1e4,y=a,F={status:"status",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},w=[{value:F.rig,label:"Rig"},{value:F.program,label:"Program"},{value:F.basin,label:"Basin"},{value:F.county,label:"County"},{value:F.area,label:"Area"},{value:F.formation,label:"Target Formation"},{value:F.stringDesign,label:"String Design"}],f={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},A=[{value:f.unknown,color:"#9E9E9E"},{value:f.idle,color:"#BDBDBD"},{value:f.active,color:"#95F126"},{value:f.paused,color:"#FFF350"},{value:f.complete,color:"#2196F3"}],k={name:"name",status:"status",rig:"rigName",distance:"distance",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},E=[{type:k.name,label:"Well Name",key:k.name,width:[280,197,197,186]},{type:k.status,label:"",key:k.status,width:[40,40,40,30]},{type:k.rig,label:"Rig",key:k.rig,width:[220,140,140,93]},{type:k.distance,label:"Distance",key:k.distance,width:[160,160,122,93]},{type:k.lastActive,label:"Last Active",key:k.lastActive,width:[140,140,108,98]},{type:k.metrics,label:"",key:"",width:[0,212,141,141]},{type:k.wellSection,label:"Well Section",key:k.wellSection,width:[180,131,131,97]}],D=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Сustom"}],B=3,R=t([y.weight_to_weight_average,y.bottom_to_slips_average,y.drilling_connection_average,y.slips_to_bottom_average,y.hole_depth,y.hole_depth_change,y.drilled_feet_rotary,y.drilled_feet_slide,y.rop_gross,y.rop,y.rop_rotary,y.rop_slide,y.drilled_feet_rotary_percentage,y.drilled_feet_slide_percentage,y.on_bottom_percentage,y.on_bottom_time,y.cost_per_ft,y.cost_per_lat_ft,y.feet_per_day,y.tripping_in_speed_cased,y.tripping_in_speed_open,y.tripping_in_speed,y.tripping_out_speed_cased,y.tripping_out_speed_open,y.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[y.npt,y.circulating_time,y.spud_to_rig_release_time,y.spud_to_total_depth_time]:[])),"label"),C=R.map((function(e){return e.key})),N=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"];export{c as ALL_SECTION_KEY,u as ALL_SECTION_LABEL,p as ANDROID_DEVICE,k as ColumnType,s as DEFAULT_BIC_OFFSET_SIZE,n as DEFAULT_LOCAL_OFFSET_SIZE,g as EXPANED_WELLNAME_WIDTH,w as FilterOptions,F as FilterType,_ as IOS_DEVICE,h as LEAVE_TOUCH_DELAY,B as MAX_METRICS_COUNT,r as MAX_OFFSET_SIZE,C as METRICS_KEYS,R as METRICS_LIST,D as OBJECTIVE_PERIOD_LIST,m as OTHER_DEVICE,b as ROWS_PER_PAGE,v as ROW_HEIGHT,l as SMALL_SCREEN_HEIGHT,i as SMALL_SCREEN_WIDTH,A as StatusOptions,E as TableColumns,o as ViewType,d as WINDOWS_PHONE,N as WellSectionColors,f as WellStatus};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l=800,i=650,o={none:"none",normal:"normal",small:"small screen",tablet:"tablet",mobile:"mobile"},r=100,s=50,n=50,p="Android",_="iOS",d="Window Phone",m="other",c="all",u="All",g=450,b=50,v=60,h=1e4,y=a,F={status:"status",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},w=[{value:F.rig,label:"Rig"},{value:F.program,label:"Program/BU"},{value:F.basin,label:"Basin"},{value:F.county,label:"County"},{value:F.area,label:"Area"},{value:F.formation,label:"Target Formation"},{value:F.stringDesign,label:"String Design"}],f={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},A=[{value:f.unknown,color:"#9E9E9E"},{value:f.idle,color:"#BDBDBD"},{value:f.active,color:"#95F126"},{value:f.paused,color:"#FFF350"},{value:f.complete,color:"#2196F3"}],k={name:"name",status:"status",rig:"rigName",distance:"distance",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},E=[{type:k.name,label:"Well Name",key:k.name,width:[280,197,197,186]},{type:k.status,label:"",key:k.status,width:[40,40,40,30]},{type:k.rig,label:"Rig",key:k.rig,width:[220,140,140,93]},{type:k.distance,label:"Distance",key:k.distance,width:[160,160,122,93]},{type:k.lastActive,label:"Last Active",key:k.lastActive,width:[140,140,108,98]},{type:k.metrics,label:"",key:"",width:[0,212,141,141]},{type:k.wellSection,label:"Well Section",key:k.wellSection,width:[180,131,131,97]}],D=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Сustom"}],B=3,R=t([y.weight_to_weight_average,y.bottom_to_slips_average,y.drilling_connection_average,y.slips_to_bottom_average,y.hole_depth,y.hole_depth_change,y.drilled_feet_rotary,y.drilled_feet_slide,y.rop_gross,y.rop,y.rop_rotary,y.rop_slide,y.drilled_feet_rotary_percentage,y.drilled_feet_slide_percentage,y.on_bottom_percentage,y.on_bottom_time,y.cost_per_ft,y.cost_per_lat_ft,y.feet_per_day,y.tripping_in_speed_cased,y.tripping_in_speed_open,y.tripping_in_speed,y.tripping_out_speed_cased,y.tripping_out_speed_open,y.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[y.npt,y.circulating_time,y.spud_to_rig_release_time,y.spud_to_total_depth_time]:[])),"label"),C=R.map((function(e){return e.key})),N=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"];export{c as ALL_SECTION_KEY,u as ALL_SECTION_LABEL,p as ANDROID_DEVICE,k as ColumnType,s as DEFAULT_BIC_OFFSET_SIZE,n as DEFAULT_LOCAL_OFFSET_SIZE,g as EXPANED_WELLNAME_WIDTH,w as FilterOptions,F as FilterType,_ as IOS_DEVICE,h as LEAVE_TOUCH_DELAY,B as MAX_METRICS_COUNT,r as MAX_OFFSET_SIZE,C as METRICS_KEYS,R as METRICS_LIST,D as OBJECTIVE_PERIOD_LIST,m as OTHER_DEVICE,b as ROWS_PER_PAGE,v as ROW_HEIGHT,l as SMALL_SCREEN_HEIGHT,i as SMALL_SCREEN_WIDTH,A as StatusOptions,E as TableColumns,o as ViewType,d as WINDOWS_PHONE,N as WellSectionColors,f as WellStatus};
@@ -1 +1 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as o}from"react";import a from"classnames";import{round as l,throttle as u}from"lodash";import s from"prop-types";import{isMobileDetected as m}from"../../utils/mobileDetect.js";import{horizontalStrategy as c}from"./strategies/horizontal.js";import{verticalStrategy as d}from"./strategies/vertical.js";import{calculatePercentForValue as f,updateToValue as g,updateFromValue as R,calculateValueFromPercent as p}from"./utils.js";import v from"./inputs/FromInput.js";import b from"./inputs/ToInput.js";import{RangeSliderControl as O,RangeSliderOrientation as S}from"./constants.js";import T from"./RangeSlider.css.js";var h=function(s){var h,B,I,M,C=s.min,N=s.max,y=s.from,A=s.to,F=s.minRange,V=s.disabled,L=s.onChange,x=s.orientation,j=s.precision,w=s.isSingleRange,E=s.isWithoutInput,z=r(null),H=z[0],P=z[1],_=r(null),D=_[0],U=_[1],q=r(null),W=q[0],X=q[1],Y=r(O.FROM),Z=Y[0],k=Y[1],G=r(null),J=G[0],K=G[1],Q=r({}),$=Q[0],ee=Q[1],ne=r({from:!1,bar:!1,to:!1}),te=ne[0],re=ne[1],ie=i(null),oe=i(null),ae=i(null),le=i(null),ue=i(null),se=x===S.HORIZONTAL,me=x===S.VERTICAL,ce=w&&E;o((function(){x===S.HORIZONTAL&&X(c),x===S.VERTICAL&&X(d)}),[x]),o((function(){w&&L({from:0,to:A})}),[w]),o((function(){var e;if(W){var n=l(y,j),t=l(A,j),r=l(C,j),i=l(N,j),o=f(n,r,i),a=f(t,r,i);ee(((e={})[O.FROM]=W.getThumbStyles(o,Z===O.FROM),e[O.TO]=W.getThumbStyles(a,Z===O.TO),e[O.BAR]=W.getBarStyles(o,a),e[O.FROM_INPUT]=W.getInputStyles(J===O.FROM||J===O.BAR||te.from),e[O.TO_INPUT]=W.getInputStyles(J===O.TO||J===O.BAR||te.to),e)),P(n.toString()),U(t.toString())}}),[W,C,N,y,A,J,te]);var de=function(e){var n=W.getCoordinates(e,ie.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=l(p(t,C,N),j);if(r!==y){var i=R(r,y,A,C,F);L(i)}},fe=function(e){var n=me&&w?W.getRotatedCoordinates(e,ie.current.getBoundingClientRect()):W.getCoordinates(e,ie.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=l(p(t,C,N),j);if(r!==A){var i=g(r,y,A,N,F);L(i)}},ge=function(e,n){var t=W.getBarCoordinates(e,n,ie.current.getBoundingClientRect()),r=f(t.new,t.min,t.max),i=l(p(r,C,N),j),o=l(A+(i-y),j);if(i<C){var a=C-i;i=C,o=l(o+a,j)}if(o>N){a=o-N;o=N,i=l(i-a,j)}i!==y&&o!==A&&i>=C&&o<=N&&L({from:i,to:o})},Re=function(n){var t;n!==O.BAR?re(e(e({},te),((t={})[n]=!0,t))):re({from:!0,bar:!0,to:!0})},pe=function(n){var t;n!==O.BAR?re(e(e({},te),((t={})[n]=!1,t))):re({from:!1,bar:!1,to:!1})},ve=function(e,n){if(!(w&&e===O.BAR||V)){n.stopPropagation(),k(e),K(e);var t=n.clientX,r=n.clientY,i=n.target.getBoundingClientRect(),o=i.x,a=i.y,l=u((function(n){!function(e){return e===O.FROM?de:e===O.TO?fe:ge}(e)(n,{clientX:t,clientY:r,x:o,y:a})}),4);document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function e(){K(null),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",e)}))}},be=function(e,n){var t=n.target.value;Number.isNaN(Number(t))||function(e){return e===O.FROM?P:U}(e)(t)},Oe=function(e,n){var t=n.target.value,r=l(t,j);if(e===O.FROM){var i=R(r,y,A,C,F);L(i)}if(e===O.TO){i=g(r,y,A,N,F);L(i)}};return n("div",e({className:a((h={},h[T.disabled]=V,h[T.rangeSliderHorizontal]=se,h[T.rangeSliderVertical]=me,h[T.rotatedVerticalRange]=me&&w,h))},{children:[!w&&t(v,{compStyles:$[O.FROM_INPUT],isVerticalOrientation:me,max:N,disabled:V,precision:j,fromInputRef:le,from:y,fromInputValue:H,onInputChange:be,validateInputChange:Oe}),n("div",e({className:a(T.rangeSliderRail,(B={},B[T.rangeSliderRailHorizontal]=se,B[T.rangeSliderRailVertical]=me,B)),ref:ie},{children:[!w&&t("div",e({ref:oe,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:$[O.FROM],onMouseDown:function(e){return ve(O.FROM,e)},onMouseEnter:function(){Re(O.FROM)},onMouseLeave:function(){pe(O.FROM)}},{children:t("div",{className:T.rangeSliderLabel})})),t("div",e({className:a(T.rangeSliderBar,(I={},I[T.rangeSliderBarHorizontal]=se,I[T.rangeSliderBarVertical]=me,I)),style:$[O.BAR],onMouseDown:function(e){return ve(O.BAR,e)},onMouseEnter:function(){Re(O.BAR)},onMouseLeave:function(){pe(O.BAR)}},{children:t("div",{className:a(T.rangeSliderBarView,(M={},M[T.rangeSliderBarViewHorizontal]=se,M[T.rangeSliderBarViewVertical]=me,M))})})),t("div",e({ref:ae,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:$[O.TO],onMouseDown:function(e){return ve(O.TO,e)},onMouseEnter:function(){Re(O.TO)},onMouseLeave:function(){pe(O.TO)}},{children:t("div",{className:T.rangeSliderLabel})}))]})),!ce&&t(b,{compStyles:$[O.TO_INPUT],disabled:V,isVerticalOrientation:me,rotated:me&&w,max:N,precision:j,toInputRef:ue,to:A,toInputValue:D,onInputChange:be,validateInputChange:Oe})]}))},B={min:s.number,max:s.number,from:s.number.isRequired,to:s.number.isRequired,orientation:s.oneOf(["horizontal","vertical"]),precision:s.number,minRange:s.number,onChange:s.func,isSingleRange:s.bool,isWithoutInput:s.bool,disabled:s.bool.isRequired};h.propTypes=B,h.defaultProps={min:0,max:100,orientation:"horizontal",precision:0,minRange:0,onChange:function(){},isSingleRange:!1,isWithoutInput:!1};export{h as default};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as o}from"react";import a from"classnames";import{round as l,throttle as u}from"lodash";import s from"prop-types";import{isMobileDetected as m}from"../../utils/mobileDetect.js";import{horizontalStrategy as c}from"./strategies/horizontal.js";import{verticalStrategy as d}from"./strategies/vertical.js";import{calculatePercentForValue as f,updateToValue as g,updateFromValue as R,calculateValueFromPercent as p}from"./utils.js";import v from"./inputs/FromInput.js";import b from"./inputs/ToInput.js";import{RangeSliderControl as O,RangeSliderOrientation as S}from"./constants.js";import T from"./RangeSlider.css.js";var h=function(s){var h,B,I,M,C=s.min,N=s.max,y=s.from,A=s.to,F=s.minRange,V=s.disabled,L=s.onChange,x=s.orientation,j=s.precision,w=s.isSingleRange,E=s.isWithoutInput,z=r(null),H=z[0],P=z[1],_=r(null),D=_[0],U=_[1],q=r(null),W=q[0],X=q[1],Y=r(O.FROM),Z=Y[0],k=Y[1],G=r(null),J=G[0],K=G[1],Q=r({}),$=Q[0],ee=Q[1],ne=r({from:!1,bar:!1,to:!1}),te=ne[0],re=ne[1],ie=i(null),oe=i(null),ae=i(null),le=i(null),ue=i(null),se=x===S.HORIZONTAL,me=x===S.VERTICAL,ce=w&&E;o((function(){x===S.HORIZONTAL&&X(c),x===S.VERTICAL&&X(d)}),[x]),o((function(){w&&L({from:0,to:A})}),[w]),o((function(){var e;if(W){var n=l(y,j),t=l(A,j),r=l(C,j),i=l(N,j),o=f(n,r,i),a=f(t,r,i);ee(((e={})[O.FROM]=W.getThumbStyles(o,Z===O.FROM),e[O.TO]=W.getThumbStyles(a,Z===O.TO),e[O.BAR]=W.getBarStyles(o,a),e[O.FROM_INPUT]=W.getInputStyles(J===O.FROM||J===O.BAR||te.from),e[O.TO_INPUT]=W.getInputStyles(J===O.TO||J===O.BAR||te.to),e)),P(n.toString()),U(t.toString())}}),[W,C,N,y,A,J,te]);var de=function(e){var n=W.getCoordinates(e,ie.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=l(p(t,C,N),j);if(r!==y){var i=R(r,y,A,C,F);L(i)}},fe=function(e){var n=me&&w?W.getRotatedCoordinates(e,ie.current.getBoundingClientRect()):W.getCoordinates(e,ie.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=l(p(t,C,N),j);if(r!==A){var i=g(r,y,A,N,F);L(i)}},ge=function(e,n){var t=W.getBarCoordinates(e,n,ie.current.getBoundingClientRect()),r=f(t.new,t.min,t.max),i=l(p(r,C,N),j),o=l(A+(i-y),j);if(i<C){var a=C-i;i=C,o=l(o+a,j)}if(o>N){a=o-N;o=N,i=l(i-a,j)}i!==y&&o!==A&&i>=C&&o<=N&&L({from:i,to:o})},Re=function(n){var t;n!==O.BAR?re(e(e({},te),((t={})[n]=!0,t))):re({from:!0,bar:!0,to:!0})},pe=function(n){var t;n!==O.BAR?re(e(e({},te),((t={})[n]=!1,t))):re({from:!1,bar:!1,to:!1})},ve=function(e,n){if(!(w&&e===O.BAR||V)){n.stopPropagation(),k(e),K(e);var t=n.clientX,r=n.clientY,i=n.target.getBoundingClientRect(),o=i.x,a=i.y,l=u((function(n){!function(e){return e===O.FROM?de:e===O.TO?fe:ge}(e)(n,{clientX:t,clientY:r,x:o,y:a})}),4);document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function e(){K(null),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",e)}))}},be=function(e,n){var t=n.target.value;Number.isNaN(Number(t))||function(e){return e===O.FROM?P:U}(e)(t)},Oe=function(e,n){var t=n.target.value,r=l(t,j);if(e===O.FROM){var i=R(r,y,A,C,F);L(i)}if(e===O.TO){i=g(r,y,A,N,F);L(i)}};return n("div",e({className:a((h={},h[T.disabled]=V,h[T.rangeSliderHorizontal]=se,h[T.rangeSliderVertical]=me,h[T.rotatedVerticalRange]=me&&w,h))},{children:[!w&&t(v,{compStyles:$[O.FROM_INPUT],isVerticalOrientation:me,max:N,disabled:V,precision:j,fromInputRef:le,from:y,fromInputValue:H,onInputChange:be,validateInputChange:Oe}),n("div",e({className:a(T.rangeSliderRail,(B={},B[T.rangeSliderRailHorizontal]=se,B[T.rangeSliderRailVertical]=me,B)),ref:ie},{children:[!w&&t("div",e({ref:oe,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:$[O.FROM],onMouseDown:function(e){return ve(O.FROM,e)},onMouseEnter:function(){Re(O.FROM)},onMouseLeave:function(){pe(O.FROM)}},{children:t("div",{className:T.rangeSliderLabel})})),t("div",e({className:a(T.rangeSliderBar,(I={},I[T.rangeSliderBarHorizontal]=se,I[T.rangeSliderBarVertical]=me,I)),style:$[O.BAR],onMouseDown:function(e){return ve(O.BAR,e)},onMouseEnter:function(){Re(O.BAR)},onMouseLeave:function(){pe(O.BAR)}},{children:t("div",{className:a(T.rangeSliderBarView,(M={},M[T.rangeSliderBarViewHorizontal]=se,M[T.rangeSliderBarViewVertical]=me,M))})})),t("div",e({ref:ae,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:$[O.TO],onMouseDown:function(e){return ve(O.TO,e)},onMouseEnter:function(){Re(O.TO)},onMouseLeave:function(){pe(O.TO)}},{children:t("div",{className:T.rangeSliderLabel})}))]})),!ce&&t(b,{compStyles:$[O.TO_INPUT],disabled:V,isVerticalOrientation:me,rotated:me&&w,max:N,precision:j,toInputRef:ue,to:A,toInputValue:D,onInputChange:be,validateInputChange:Oe})]}))},B={min:s.number,max:s.number,from:s.number.isRequired,to:s.number.isRequired,orientation:s.oneOf(["horizontal","vertical"]),precision:s.number,minRange:s.number,onChange:s.func,isSingleRange:s.bool,isWithoutInput:s.bool,disabled:s.bool.isRequired};h.propTypes=B,h.defaultProps={min:0,max:100,orientation:"horizontal",precision:0,minRange:0,onChange:function(){},isSingleRange:!1,isWithoutInput:!1};export{h as default};
@@ -1 +1 @@
1
- import{__rest as r,__assign as l}from"../../_virtual/_tslib.js";import{jsxs as i,jsx as e}from"react/jsx-runtime";import n from"prop-types";import{Table as o,TableHead as d,TableRow as t,TableCell as u,TableBody as c}from"@material-ui/core";import{useState as p}from"react";import a from"./ResizableTableHeaderCell.js";import v from"./ResizableTableCell.js";var h=function(n){var h,s,m,f,y,b=n.children,j=r(n,["children"]),k=b,x=k[0],C=k[1],R=null===(h=null==C?void 0:C.props)||void 0===h?void 0:h.children,T=null===(y=null===(f=null===(m=null===(s=null==x?void 0:x.props)||void 0===s?void 0:s.children)||void 0===m?void 0:m.props)||void 0===f?void 0:f.children)||void 0===y?void 0:y.reduce((function(r,l){return Array.isArray(l)?r.push.apply(r,l):r.push(l),r}),[]),z=p({}),A=z[0],N=z[1],_=function(r){return N((function(i){return l(l({},i),r)}))};return i(o,l({},j,{children:[e(d,{children:e(t,{children:null==T?void 0:T.map((function(r,i){var n;return r?i===T.length-1?e(u,l({},r.props,{children:null===(n=r.props)||void 0===n?void 0:n.children}),r.key||i):e(a,l({cellName:"cell".concat(i),nextCellName:"cell".concat(i+1),handleWidthsUpdate:_,widths:A},{children:r}),r.key||i):null}))})}),e(c,{children:null==R?void 0:R.map((function(r){var l,i;return e(t,{children:null===(i=null===(l=null==r?void 0:r.props)||void 0===l?void 0:l.children)||void 0===i?void 0:i.map((function(r,l){return r&&e(v,{children:r},r.key||l)}))},r.key)}))})]}))},s={children:n.arrayOf(n.node).isRequired};h.propTypes=s;export{h as default};
1
+ import{__rest as r,__assign as l}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as i}from"react/jsx-runtime";import n from"prop-types";import{Table as o,TableHead as d,TableRow as t,TableCell as u,TableBody as c}from"@material-ui/core";import{useState as p}from"react";import a from"./ResizableTableHeaderCell.js";import s from"./ResizableTableCell.js";var v=function(n){var v,h,m,f,y,b=n.children,j=r(n,["children"]),k=b,x=k[0],C=k[1],R=null===(v=null==C?void 0:C.props)||void 0===v?void 0:v.children,T=null===(y=null===(f=null===(m=null===(h=null==x?void 0:x.props)||void 0===h?void 0:h.children)||void 0===m?void 0:m.props)||void 0===f?void 0:f.children)||void 0===y?void 0:y.reduce((function(r,l){return Array.isArray(l)?r.push.apply(r,l):r.push(l),r}),[]),z=p({}),A=z[0],N=z[1],g=function(r){return N((function(e){return l(l({},e),r)}))};return e(o,l({},j,{children:[i(d,{children:i(t,{children:null==T?void 0:T.map((function(r,e){var n;return r?e===T.length-1?i(u,l({},r.props,{children:null===(n=r.props)||void 0===n?void 0:n.children}),r.key||e):i(a,l({cellName:"cell".concat(e),nextCellName:"cell".concat(e+1),handleWidthsUpdate:g,widths:A},{children:r}),r.key||e):null}))})}),i(c,{children:null==R?void 0:R.map((function(r){var l,e;return i(t,{children:null===(e=null===(l=null==r?void 0:r.props)||void 0===l?void 0:l.children)||void 0===e?void 0:e.map((function(r,l){return r&&i(s,{children:r},r.key||l)}))},r.key)}))})]}))},h={children:n.arrayOf(n.node).isRequired};v.propTypes=h;export{v as default};
@@ -1 +1 @@
1
- import{__assign as r}from"../../_virtual/_tslib.js";import{jsx as i}from"react/jsx-runtime";import l from"prop-types";function e(l){var e,o,n=l.children;return n?i(n.type,r({},n.props,{children:i("div",{children:null!==(o=null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)&&void 0!==o?o:null})})):null}e.propTypes={children:l.element.isRequired};export{e as default};
1
+ import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import l from"prop-types";function i(l){var i,o,n=l.children;return n?e(n.type,r({},n.props,{children:e("div",{children:null!==(o=null===(i=null==n?void 0:n.props)||void 0===i?void 0:i.children)&&void 0!==o?o:null})})):null}i.propTypes={children:l.element.isRequired};export{i as default};
@@ -1 +1 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import o from"prop-types";import a from"classnames";import l from"react-draggable";import{makeStyles as d}from"@material-ui/core/styles";import{TableCell as s}from"@material-ui/core";var c=d((function(e){return{resizableColumnHeader:{display:"flex",paddingRight:0,justifyContent:"space-between"},tableResizer:{width:6,borderRadius:10,opacity:.7,cursor:"col-resize",marginRight:-11,marginTop:-16,marginBottom:-16},hovered:{backgroundColor:e.palette.primary.main}}})),u=function(e){var r;return null===(r=document.getElementById(e))||void 0===r?void 0:r.offsetWidth};function m(o){var d,m,p=o.children,f=o.cellName,h=o.nextCellName,v=o.widths,g=o.handleWidthsUpdate,R=c(),b=t(!1),x=b[0],y=b[1],z=t(),C=z[0],N=z[1],q=t(),w=q[0],j=q[1];if(n((function(){var e;N(u("content-".concat(f))+12),j(u("content-".concat(h))+12),g(((e={})[f]=u(f),e))}),[]),!p)return null;return r(s,e({width:v[f],id:f},p.props,{children:i("div",e({className:R.resizableColumnHeader},{children:[r("div",e({id:"content-".concat(f)},{children:null!==(m=null===(d=null==p?void 0:p.props)||void 0===d?void 0:d.children)&&void 0!==m?m:null})),r(l,e({axis:"x",onDrag:function(e,r){!function(e){var r,i=v[f]+e,t=v[h]-e;i<0||i<C||t<w||g(((r={})[f]=i,r[h]=t,r))}(r.deltaX)},position:{x:0},zIndex:999,onStart:function(){y(!0)},onStop:function(){var e;v[f]!==u(f)&&g(((e={})[f]=u(f),e)),y(!1)}},{children:r("div",{className:a(R.tableResizer,x&&R.hovered),onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}})}))]}))}))}var p={children:o.element.isRequired,cellName:o.string.isRequired,nextCellName:o.string.isRequired,widths:o.shape({}).isRequired,handleWidthsUpdate:o.func.isRequired};m.propTypes=p;export{m as default};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import o from"prop-types";import a from"classnames";import l from"react-draggable";import{makeStyles as d}from"@material-ui/core/styles";import{TableCell as s}from"@material-ui/core";var c=d((function(e){return{resizableColumnHeader:{display:"flex",paddingRight:0,justifyContent:"space-between"},tableResizer:{width:6,borderRadius:10,opacity:.7,cursor:"col-resize",marginRight:-11,marginTop:-16,marginBottom:-16},hovered:{backgroundColor:e.palette.primary.main}}})),u=function(e){var r;return null===(r=document.getElementById(e))||void 0===r?void 0:r.offsetWidth};function m(o){var d,m,p=o.children,f=o.cellName,h=o.nextCellName,v=o.widths,g=o.handleWidthsUpdate,b=c(),R=t(!1),x=R[0],y=R[1],z=t(),C=z[0],N=z[1],q=t(),w=q[0],j=q[1];if(n((function(){var e;N(u("content-".concat(f))+12),j(u("content-".concat(h))+12),g(((e={})[f]=u(f),e))}),[]),!p)return null;return r(s,e({width:v[f],id:f},p.props,{children:i("div",e({className:b.resizableColumnHeader},{children:[r("div",e({id:"content-".concat(f)},{children:null!==(m=null===(d=null==p?void 0:p.props)||void 0===d?void 0:d.children)&&void 0!==m?m:null})),r(l,e({axis:"x",onDrag:function(e,r){!function(e){var r,i=v[f]+e,t=v[h]-e;i<0||i<C||t<w||g(((r={})[f]=i,r[h]=t,r))}(r.deltaX)},position:{x:0},zIndex:999,onStart:function(){y(!0)},onStop:function(){var e;v[f]!==u(f)&&g(((e={})[f]=u(f),e)),y(!1)}},{children:r("div",{className:a(b.tableResizer,x&&b.hovered),onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}})}))]}))}))}var p={children:o.element.isRequired,cellName:o.string.isRequired,nextCellName:o.string.isRequired,widths:o.shape({}).isRequired,handleWidthsUpdate:o.func.isRequired};m.propTypes=p;export{m as default};
@@ -1 +1 @@
1
- import{__rest as e,__assign as n}from"../../_virtual/_tslib.js";import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as a,useCallback as i,useEffect as u}from"react";import c from"prop-types";import{debounce as s,isEmpty as p}from"lodash";import{Autocomplete as d}from"@material-ui/lab";import{Chip as m,TextField as h,InputAdornment as g,CircularProgress as f,FormControlLabel as C,Checkbox as v}from"@material-ui/core";import{CheckBoxOutlineBlank as S,CheckBox as b,Close as I}from"@material-ui/icons";import y from"../IconButton/index.js";import x from"./components/Listbox.js";import G from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/InputAdornmentLeft.js";import"./components/Groups.js";import k from"./styles.js";var N=o(S,{style:{fontSize:20}}),P=o(b,{style:{fontSize:20}}),R=function(c){var S=c.value,b=c.onChange,R=c.onInputChange,A=c.loading,j=c.options,O=c.placeholder,L=c.defaultSelectedGroup,M=c.disabled,T=c.multiple,z=c.groups,K=c.GroupsComponent,B=c.recentSearchesMaxCount,q=c.dataStorageKey,V=c.RecentSearchesComponent,_=c.dataStorage,F=e(c,["value","onChange","onInputChange","loading","options","placeholder","defaultSelectedGroup","disabled","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage"]),H=l(S||[]),W=H[0],w=H[1],D=l(""),E=D[0],J=D[1],Q=l(""),U=Q[0],X=Q[1],Y=l(!1),Z=Y[0],$=Y[1],ee=l(L),ne=ee[0],oe=ee[1],te=a(),re=k(),le={popper:re.popper,listbox:re.listbox},ae=null==j?void 0:j.some((function(e){return e.group})),ie=i(s((function(e){return X(e)}),500),[]),ue=function(){J(""),b(null,null)},ce=function(e){var n=z.find((function(n){return n.id===e}));oe(n)},se=function(){oe(null)},pe=function(e){te.current.focus(),J(e)};u((function(){Z&&te.current.focus()}));var de=null==j?void 0:j.sort((function(e,n){var o,t;return null===(o=n.group)||void 0===o?void 0:o.toString().localeCompare(null===(t=e.group)||void 0===t?void 0:t.toString())})),me=p(ne)?de:null==j?void 0:j.filter((function(e){return e.group===ne.name})),he=T&&(null==me?void 0:me.length)===(null==W?void 0:W.length),ge=function(){w(he?[]:me)};u((function(){ie(E),R&&R(E)}),[E]),u((function(){w([])}),[ne]);var fe=function(e,n){"blur"!==n&&$(!1)},Ce=function(){return o(C,{className:re.selectAllCheckbox,onClick:ge,control:o(v,{icon:N,style:{fontSize:20},indeterminate:!he,checkedIcon:P,checked:!0,inputProps:{"aria-label":"All"}}),label:"All"})},ve=i((function(e){return o(G,n({},e,{loading:A,AllSelectComponent:T&&!p(me)&&o(Ce,{}),GroupsComponent:!ne&&ae&&K&&o(K,{onGroupClick:ce,groups:z}),RecentSearchesComponent:V&&o(V,{dataStorage:_,dataStorageKey:q,maxCount:B,isHidden:!p(E),onInputChange:function(e){return J(e)},inputValue:U}),onOutsideClick:fe,onRecentSearchClick:pe}))}),[ne,A,ae,E,he,U]);return o(d,{onOpen:function(){$(!0)},open:Z,onChange:function(e,n){w(n),b(e,n)},fullWidth:!0,disabled:M,onClose:fe,value:W,classes:le,renderInput:function(e){var l;return o(h,n({},e,{inputRef:te,placeholder:O,classes:{root:re.searchInput},InputProps:n(n(n({classes:{root:re.textField}},e.InputProps),F.InputProps),{startAdornment:t(r,{children:[null===(l=F.InputProps)||void 0===l?void 0:l.startAdornment,ne&&o(m,{className:re.selectedGroup,"data-not-migrated-MuiChip":!0,variant:"outlined",label:t("div",n({className:re.selectedGroupLabel},{children:[ne.name,o(I,{id:"removeGroupIcon",className:re.removeIcon,onClick:se})]}))},ne.id),T&&!p(W)&&o("div",n({className:re.selectedLabel},{children:he?"All Selected(".concat(null==W?void 0:W.length,")"):"".concat(null==W?void 0:W.length," Selected")}))]}),endAdornment:t(g,n({position:"end"},{children:[A&&o(f,{color:"primary",size:20}),E&&o(y,n({size:"small",className:re.iconButton,onClick:ue,tooltipProps:{title:"Clear"}},{children:o(I,{className:re.closeIcon})}))]}))})}))},loading:A,options:me,renderGroup:function(e){var r=e.key,l=e.group,a=e.children;return!l||!p(ne)&&T?a:t("div",n({className:re.group},{children:[o(m,{"data-not-migrated-MuiChip":!0,className:re.groupChip,variant:"outlined",label:l},r),a]}))},disableCloseOnSelect:T,multiple:T,renderOption:T&&function(e,n){var r=e.label,l=e.id,a=n.selected;return t("div",{children:[o(v,{disableRipple:!0,icon:N,className:re.checkbox,checkedIcon:P,checked:a}),r]},l)},groupBy:ae&&function(e){return e.group},PaperComponent:ve,ListboxComponent:x,inputValue:E,getOptionLabel:function(e){return e.label},onInputChange:function(e){J((null==e?void 0:e.target.value)||(null==e?void 0:e.target.innerText))},loadingText:o("div",n({className:re.label},{children:"Loading ..."})),noOptionsText:o("div",n({className:re.label},{children:"No Options"}))})},A={value:c.arrayOf(c.shape({})).isRequired,onChange:c.func.isRequired,onInputChange:c.func,loading:c.bool,disabled:c.bool,multiple:c.bool,options:c.array,InputProps:c.shape({startAdornment:c.number}),placeholder:c.string,defaultSelectedGroup:c.shape({id:c.string,name:c.string}),RecentSearchesComponent:c.elementType,recentSearchesMaxCount:c.number,dataStorageKey:c.string,dataStorage:c.shape({}),groups:c.array,GroupsComponent:c.elementType};R.propTypes=A,R.defaultProps={InputProps:null,onInputChange:null,options:[],groups:[],disabled:!1,multiple:!1,loading:!1,placeholder:"Search...",defaultSelectedGroup:null,recentSearchesMaxCount:3,dataStorageKey:"Search:recentSearches",dataStorage:sessionStorage,RecentSearchesComponent:null,GroupsComponent:null};export{R as default};
1
+ import{__rest as e,__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as a,useCallback as i,useEffect as u}from"react";import c from"prop-types";import{debounce as s,isEmpty as p}from"lodash";import{Autocomplete as d}from"@material-ui/lab";import{Chip as m,TextField as h,InputAdornment as g,CircularProgress as f,FormControlLabel as C,Checkbox as v}from"@material-ui/core";import{CheckBoxOutlineBlank as S,CheckBox as b,Close as I}from"@material-ui/icons";import y from"../IconButton/index.js";import x from"./components/Listbox.js";import G from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/InputAdornmentLeft.js";import"./components/Groups.js";import k from"./styles.js";var N=o(S,{style:{fontSize:20}}),P=o(b,{style:{fontSize:20}}),R=function(c){var S=c.value,b=c.onChange,R=c.onInputChange,A=c.loading,j=c.options,O=c.placeholder,L=c.defaultSelectedGroup,M=c.disabled,T=c.multiple,z=c.groups,K=c.GroupsComponent,B=c.recentSearchesMaxCount,q=c.dataStorageKey,V=c.RecentSearchesComponent,F=c.dataStorage,H=e(c,["value","onChange","onInputChange","loading","options","placeholder","defaultSelectedGroup","disabled","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage"]),W=l(S||[]),_=W[0],w=W[1],D=l(""),E=D[0],J=D[1],Q=l(""),U=Q[0],X=Q[1],Y=l(!1),Z=Y[0],$=Y[1],ee=l(L),ne=ee[0],oe=ee[1],te=a(),re=k(),le={popper:re.popper,listbox:re.listbox},ae=null==j?void 0:j.some((function(e){return e.group})),ie=i(s((function(e){return X(e)}),500),[]),ue=function(){J(""),b(null,null)},ce=function(e){var n=z.find((function(n){return n.id===e}));oe(n)},se=function(){oe(null)},pe=function(e){te.current.focus(),J(e)};u((function(){Z&&te.current.focus()}));var de=null==j?void 0:j.sort((function(e,n){var o,t;return null===(o=n.group)||void 0===o?void 0:o.toString().localeCompare(null===(t=e.group)||void 0===t?void 0:t.toString())})),me=p(ne)?de:null==j?void 0:j.filter((function(e){return e.group===ne.name})),he=T&&(null==me?void 0:me.length)===(null==_?void 0:_.length),ge=function(){w(he?[]:me)};u((function(){ie(E),R&&R(E)}),[E]),u((function(){w([])}),[ne]);var fe=function(e,n){"blur"!==n&&$(!1)},Ce=function(){return o(C,{className:re.selectAllCheckbox,onClick:ge,control:o(v,{icon:N,style:{fontSize:20},indeterminate:!he,checkedIcon:P,checked:!0,inputProps:{"aria-label":"All"}}),label:"All"})},ve=i((function(e){return o(G,n({},e,{loading:A,AllSelectComponent:T&&!p(me)&&o(Ce,{}),GroupsComponent:!ne&&ae&&K&&o(K,{onGroupClick:ce,groups:z}),RecentSearchesComponent:V&&o(V,{dataStorage:F,dataStorageKey:q,maxCount:B,isHidden:!p(E),onInputChange:function(e){return J(e)},inputValue:U}),onOutsideClick:fe,onRecentSearchClick:pe}))}),[ne,A,ae,E,he,U]);return o(d,{onOpen:function(){$(!0)},open:Z,onChange:function(e,n){w(n),b(e,n)},fullWidth:!0,disabled:M,onClose:fe,value:_,classes:le,renderInput:function(e){var l;return o(h,n({},e,{inputRef:te,placeholder:O,classes:{root:re.searchInput},InputProps:n(n(n({classes:{root:re.textField}},e.InputProps),H.InputProps),{startAdornment:t(r,{children:[null===(l=H.InputProps)||void 0===l?void 0:l.startAdornment,ne&&o(m,{className:re.selectedGroup,"data-not-migrated-MuiChip":!0,variant:"outlined",label:t("div",n({className:re.selectedGroupLabel},{children:[ne.name,o(I,{id:"removeGroupIcon",className:re.removeIcon,onClick:se})]}))},ne.id),T&&!p(_)&&o("div",n({className:re.selectedLabel},{children:he?"All Selected(".concat(null==_?void 0:_.length,")"):"".concat(null==_?void 0:_.length," Selected")}))]}),endAdornment:t(g,n({position:"end"},{children:[A&&o(f,{color:"primary",size:20}),E&&o(y,n({size:"small",className:re.iconButton,onClick:ue,tooltipProps:{title:"Clear"}},{children:o(I,{className:re.closeIcon})}))]}))})}))},loading:A,options:me,renderGroup:function(e){var r=e.key,l=e.group,a=e.children;return!l||!p(ne)&&T?a:t("div",n({className:re.group},{children:[o(m,{"data-not-migrated-MuiChip":!0,className:re.groupChip,variant:"outlined",label:l},r),a]}))},disableCloseOnSelect:T,multiple:T,renderOption:T&&function(e,n){var r=e.label,l=e.id,a=n.selected;return t("div",{children:[o(v,{disableRipple:!0,icon:N,className:re.checkbox,checkedIcon:P,checked:a}),r]},l)},groupBy:ae&&function(e){return e.group},PaperComponent:ve,ListboxComponent:x,inputValue:E,getOptionLabel:function(e){return e.label},onInputChange:function(e){J((null==e?void 0:e.target.value)||(null==e?void 0:e.target.innerText))},loadingText:o("div",n({className:re.label},{children:"Loading ..."})),noOptionsText:o("div",n({className:re.label},{children:"No Options"}))})},A={value:c.arrayOf(c.shape({})).isRequired,onChange:c.func.isRequired,onInputChange:c.func,loading:c.bool,disabled:c.bool,multiple:c.bool,options:c.array,InputProps:c.shape({startAdornment:c.number}),placeholder:c.string,defaultSelectedGroup:c.shape({id:c.string,name:c.string}),RecentSearchesComponent:c.elementType,recentSearchesMaxCount:c.number,dataStorageKey:c.string,dataStorage:c.shape({}),groups:c.array,GroupsComponent:c.elementType};R.propTypes=A,R.defaultProps={InputProps:null,onInputChange:null,options:[],groups:[],disabled:!1,multiple:!1,loading:!1,placeholder:"Search...",defaultSelectedGroup:null,recentSearchesMaxCount:3,dataStorageKey:"Search:recentSearches",dataStorage:sessionStorage,RecentSearchesComponent:null,GroupsComponent:null};export{R as default};
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as n,Select as u,FormHelperText as p}from"@material-ui/core";import d from"prop-types";import s from"uuid/v4";import c from"classnames";var m=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),b=function(i){var d,b,M,f,I,x,y=i.FormControlProps,v=i.InputLabelProps,g=i.label,F=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),h=l(s,[]),L=m();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(M=y.classes)||void 0===M?void 0:M.root,L.formControlRoot,(d={},d[L.error]=P.error,d))}),disabled:y.disabled||P.disabled},{children:[g&&t(n,o({id:h},v,{children:g})),t(u,o({},P,{labelId:h,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes),{paper:c(null===(I=null==P?void 0:P.MenuProps)||void 0===I?void 0:I.paper,(b={},b[L.outlinedMenuPaper]="outlined"===y.variant,b)),list:c(null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.list,L.menuList)})})})),F&&t(p,{children:F})]}))},M={FormControlProps:d.shape({classes:d.shape({root:d.string}),disabled:d.bool,variant:d.oneOf(["outlined","filled","standard"])}),InputLabelProps:d.shape({classes:d.shape({root:d.string,disabled:d.string})}),label:d.string,formHelperText:d.string,error:d.bool};b.propTypes=M,b.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{b as default};
1
+ import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as n,Select as u,FormHelperText as d}from"@material-ui/core";import p from"prop-types";import s from"uuid/v4";import c from"classnames";var m=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),b=function(i){var p,b,M,f,I,x,y=i.FormControlProps,v=i.InputLabelProps,g=i.label,F=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),h=l(s,[]),L=m();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(M=y.classes)||void 0===M?void 0:M.root,L.formControlRoot,(p={},p[L.error]=P.error,p))}),disabled:y.disabled||P.disabled},{children:[g&&t(n,o({id:h},v,{children:g})),t(u,o({},P,{labelId:h,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes),{paper:c(null===(I=null==P?void 0:P.MenuProps)||void 0===I?void 0:I.paper,(b={},b[L.outlinedMenuPaper]="outlined"===y.variant,b)),list:c(null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.list,L.menuList)})})})),F&&t(d,{children:F})]}))},M={FormControlProps:p.shape({classes:p.shape({root:p.string}),disabled:p.bool,variant:p.oneOf(["outlined","filled","standard"])}),InputLabelProps:p.shape({classes:p.shape({root:p.string,disabled:p.string})}),label:p.string,formHelperText:p.string,error:p.bool};b.propTypes=M,b.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{b as default};
@@ -1 +1 @@
1
- import{__assign as o}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as n}from"react";import t from"prop-types";import{GithubPicker as i,ChromePicker as l}from"react-color";import{withStyles as a,Button as s,ClickAwayListener as c}from"@material-ui/core";import u from"@material-ui/icons/ColorLens";import m from"./style.css.js";var d=function(t){var a=t.onChange,d=t.currentValue,f=t.defaultValue,p=t.classes,h=t.condensed,g=t.colors,C=t.lensColor,v=n(!1),F=v[0],y=v[1],b=n(d||f),V=b[0],k=b[1],x=function(){return a(V)};return r("div",o({className:m.colorEditor},{children:[e(s,o({variant:"contained",color:"primary",onClick:function(){return y(!0)},className:p.button,style:{backgroundColor:V,color:C}},{children:e(u,{})})),F&&e(c,o({mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){y(!1),x()}},{children:e("div",o({className:m.colorEditorPickerContainer},{children:h?e(i,{color:V,onChange:function(o){k(o.hex),y(!1),x()},colors:g,triangle:"hide"}):e(l,{color:V,onChange:function(o){k(o.hex),x()}})}))}))]}))},f={currentValue:t.string.isRequired,defaultValue:t.string,condensed:t.bool,onChange:t.func.isRequired,colors:t.arrayOf(t.string),classes:t.shape({button:t.string}).isRequired,lensColor:t.string};d.propTypes=f,d.defaultProps={condensed:!1,colors:["#FF0000","#00FF00","#0000FF"],defaultValue:"#FF0000",lensColor:"#fff"};var p=a({button:{marginBottom:16}})(d);export{d as ColorEditor,p as default};
1
+ import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as n}from"react";import t from"prop-types";import{GithubPicker as i,ChromePicker as s}from"react-color";import{withStyles as l,Button as a,ClickAwayListener as c}from"@material-ui/core";import u from"@material-ui/icons/ColorLens";import d from"./style.css.js";var m=function(t){var l=t.onChange,m=t.currentValue,f=t.defaultValue,p=t.classes,h=t.condensed,g=t.colors,C=t.lensColor,v=n(!1),F=v[0],b=v[1],y=n(m||f),V=y[0],k=y[1],x=function(){return l(V)};return r("div",o({className:d.colorEditor},{children:[e(a,o({variant:"contained",color:"primary",onClick:function(){return b(!0)},className:p.button,style:{backgroundColor:V,color:C}},{children:e(u,{})})),F&&e(c,o({mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){b(!1),x()}},{children:e("div",o({className:d.colorEditorPickerContainer},{children:h?e(i,{color:V,onChange:function(o){k(o.hex),b(!1),x()},colors:g,triangle:"hide"}):e(s,{color:V,onChange:function(o){k(o.hex),x()}})}))}))]}))},f={currentValue:t.string.isRequired,defaultValue:t.string,condensed:t.bool,onChange:t.func.isRequired,colors:t.arrayOf(t.string),classes:t.shape({button:t.string}).isRequired,lensColor:t.string};m.propTypes=f,m.defaultProps={condensed:!1,colors:["#FF0000","#00FF00","#0000FF"],defaultValue:"#FF0000",lensColor:"#fff"};var p=l({button:{marginBottom:16}})(m);export{m as ColorEditor,p as default};
@@ -1 +1 @@
1
- import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import n from"prop-types";import{FormControl as o,RadioGroup as i,FormControlLabel as a,Radio as t}from"@material-ui/core";var u=function(n){var u=n.options,l=n.currentValue,p=n.defaultValue,s=n.onChange,d=void 0===l?p:l;return r(o,e({component:"fieldset",margin:"dense",fullWidth:!0},{children:r(i,e({"aria-label":"position",name:"radio_editor",row:!0},{children:u.map((function(e){var n=e.value,o=e.label;return r(a,{onChange:function(){return s(n)},control:r(t,{color:"primary",checked:n===d}),label:o},n)}))}))}))},l={options:n.arrayOf(n.shape({value:n.string,label:n.string})).isRequired,defaultValue:n.oneOfType([n.string,n.number]).isRequired,currentValue:n.oneOfType([n.string,n.number]),onChange:n.func.isRequired};u.propTypes=l,u.defaultProps={currentValue:void 0};export{u as default};
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import n from"prop-types";import{FormControl as o,RadioGroup as i,FormControlLabel as t,Radio as a}from"@material-ui/core";var l=function(n){var l=n.options,u=n.currentValue,s=n.defaultValue,p=n.onChange,d=void 0===u?s:u;return r(o,e({component:"fieldset",margin:"dense",fullWidth:!0},{children:r(i,e({"aria-label":"position",name:"radio_editor",row:!0},{children:l.map((function(e){var n=e.value,o=e.label;return r(t,{onChange:function(){return p(n)},control:r(a,{color:"primary",checked:n===d}),label:o},n)}))}))}))},u={options:n.arrayOf(n.shape({value:n.string,label:n.string})).isRequired,defaultValue:n.oneOfType([n.string,n.number]).isRequired,currentValue:n.oneOfType([n.string,n.number]),onChange:n.func.isRequired};l.propTypes=u,l.defaultProps={currentValue:void 0};export{l as default};
@@ -1 +1 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as a}from"react/jsx-runtime";import s from"classnames";import i from"prop-types";import{SIZES as o}from"./constants.js";import l from"./Step.css.js";var t=function(r){var s=r.size;return a("svg",e({width:s,height:s,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{d:"M6.0001 10.7799L3.2201 7.9999L2.27344 8.9399L6.0001 12.6666L14.0001 4.66656L13.0601 3.72656L6.0001 10.7799Z",fill:"white"})}))};function c(i){var c=i.value,d=i.checked,m=i.active,n=i.error,p=i.disabled,v=i.size,b=i.canGoBack,h=i.label,u=i.className;return r("div",e({className:s(l.step,l[v],m&&l.active,n&&l.error,d&&!n&&l.checked,p&&l.disabled,u)},{children:[a("div",e({className:l.stepCircle},{children:!d||n||b?c:a(t,{size:v===o.large?24:16})})),h]}))}var d={value:i.number.isRequired,label:i.node,checked:i.bool,active:i.bool,error:i.bool,disabled:i.bool,size:i.string,canGoBack:i.bool,className:i.string};c.propTypes=d,c.defaultProps={checked:!1,active:!1,error:!1,disabled:!1,size:o.medium,canGoBack:!0,label:"",className:""};export{c as default};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as s}from"react/jsx-runtime";import a from"classnames";import o from"prop-types";import{SIZES as i}from"./constants.js";import l from"./Step.css.js";var t=function(r){var a=r.size;return s("svg",e({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:s("path",{d:"M6.0001 10.7799L3.2201 7.9999L2.27344 8.9399L6.0001 12.6666L14.0001 4.66656L13.0601 3.72656L6.0001 10.7799Z",fill:"white"})}))};function c(o){var c=o.value,d=o.checked,m=o.active,n=o.error,p=o.disabled,b=o.size,v=o.canGoBack,h=o.label,u=o.className;return r("div",e({className:a(l.step,l[b],m&&l.active,n&&l.error,d&&!n&&l.checked,p&&l.disabled,u)},{children:[s("div",e({className:l.stepCircle},{children:!d||n||v?c:s(t,{size:b===i.large?24:16})})),h]}))}var d={value:o.number.isRequired,label:o.node,checked:o.bool,active:o.bool,error:o.bool,disabled:o.bool,size:o.string,canGoBack:o.bool,className:o.string};c.propTypes=d,c.defaultProps={checked:!1,active:!1,error:!1,disabled:!1,size:i.medium,canGoBack:!0,label:"",className:""};export{c as default};
@@ -1 +1 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import t from"prop-types";import p from"./Step.js";import i from"./StepsWrapper.js";import{SIZES as s}from"./constants.js";function a(t){var s=t.steps,a=t.activeStep,o=t.size;return r(i,{children:s.map((function(t){return r(p,e({checked:t.value<a,active:t.value===a,size:o,disabled:t.disabled,canGoBack:t.canGoBack},t),t.value)}))})}var o={steps:t.arrayOf(t.shape(p.propTypes)).isRequired,activeStep:t.number,size:t.string};a.propTypes=o,a.defaultProps={activeStep:void 0,size:s.medium};export{a as default};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import t from"prop-types";import s from"./Step.js";import p from"./StepsWrapper.js";import{SIZES as i}from"./constants.js";function a(t){var i=t.steps,a=t.activeStep,o=t.size;return r(p,{children:i.map((function(t){return r(s,e({checked:t.value<a,active:t.value===a,size:o,disabled:t.disabled,canGoBack:t.canGoBack},t),t.value)}))})}var o={steps:t.arrayOf(t.shape(s.propTypes)).isRequired,activeStep:t.number,size:t.string};a.propTypes=o,a.defaultProps={activeStep:void 0,size:i.medium};export{a as default};
@@ -1 +1 @@
1
- import{__assign as r}from"../../_virtual/_tslib.js";import{jsx as s}from"react/jsx-runtime";import e from"prop-types";import a from"classnames";import t from"./StepsWrapper.css.js";function i(e){var i=e.children,o=e.className;return s("div",r({className:a(t.container,o)},{children:i}))}var o={children:e.node.isRequired,className:e.string};i.propTypes=o,i.defaultProps={className:""};export{i as default};
1
+ import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import e from"prop-types";import o from"classnames";import a from"./StepsWrapper.css.js";function t(e){var t=e.children,i=e.className;return s("div",r({className:o(a.container,i)},{children:t}))}var i={children:e.node.isRequired,className:e.string};t.propTypes=i,t.defaultProps={className:""};export{t as default};
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from"../../_virtual/_tslib.js";import{jsxs as a,jsx as i}from"react/jsx-runtime";import{forwardRef as l}from"react";import s from"classnames";import r from"prop-types";import{Grid as o,Tooltip as c,Typography as n,Switch as d,withStyles as b}from"@material-ui/core";import m from"./style.css.js";var h=l((function(l,r){var b,h,p=l.title,g=l.leftLabel,f=l.rightLabel,u=l.checked,L=l.onChange,w=l.disabled,k=l.classes,D=l.size,B=l.className,C=l.rightLabelTooltip,v=l.leftLabelTooltip,N=l.customClasses,y=l["data-testid"],x=g&&f,S=N.root,T=N.track,z=N.switchBase,j=e(N,["root","track","switchBase"]);return a("div",t({className:B},{children:[p&&i("div",t({className:m.switchControlTitle},{children:p})),a(o,t({component:"label",container:!0,alignItems:"center",spacing:0},{children:[g&&i(o,t({item:!0},{children:i(c,t({title:v},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(!u||!f)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:g}))}))})),i(o,t({item:!0},{children:i(d,{"data-testid":"".concat(y,"_switch_").concat(u),ref:r,checked:u,onChange:L,color:"primary",disabled:w,classes:t({root:s(k.root,S),switchBase:s((b={},b[k.switchBase]=x||u&&!w,b[k.switchBaseDisabled]=w&&(x||u),b[k.switchBaseDisabledNoLabels]=!x&&w&&!u,b),z),track:s((h={},h[k.track]=x||u&&!w,h[k.trackDisabled]=w&&(x||u),h[k.trackDisabledNoLabels]=!x&&w&&!u,h),T)},j),size:D})})),f&&i(o,t({item:!0},{children:i(c,t({title:C},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(u||!g)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:f}))}))}))]}))]}))})),p={title:r.oneOfType([r.string,r.node,r.element]),leftLabel:r.string,rightLabel:r.string,checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,classes:r.shape({label:r.string,labelSmall:r.string,activeLabel:r.string,disabledLabel:r.string,root:r.string,switchBase:r.string,switchBaseDisabledNoLabels:r.string,switchBaseDisabled:r.string,track:r.string,trackDisabledNoLabels:r.string,trackDisabled:r.string}).isRequired,size:r.oneOf(["small","medium"]),className:r.string,customClasses:r.shape({root:r.string,track:r.string,switchBase:r.string}),rightLabelTooltip:r.string,leftLabelTooltip:r.string,"data-testid":r.string};h.propTypes=p,h.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:"",customClasses:{},rightLabelTooltip:"",leftLabelTooltip:"","data-testid":"SwitchControlComponent"};var g=b({root:{width:60,height:40,padding:13,"&.MuiSwitch-sizeSmall":{width:52,height:36,padding:13},"& .MuiSwitch-switchBase":{padding:10}},switchBase:{padding:10,color:"#03BCD4","&.MuiIconButton-root:hover":{backgroundColor:"rgba(3, 188, 212, 0.08)"}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#9e9e9e",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#808080"},activeLabel:{color:"#ffffff"}})(h);export{h as SwitchControlComponent,g as default};
1
+ import{__rest as e,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as a,jsx as i}from"react/jsx-runtime";import{forwardRef as l}from"react";import s from"classnames";import r from"prop-types";import{Grid as o,Tooltip as c,Typography as n,Switch as d,withStyles as b}from"@material-ui/core";import m from"./style.css.js";var h=l((function(l,r){var b,h,p=l.title,g=l.leftLabel,f=l.rightLabel,u=l.checked,L=l.onChange,w=l.disabled,k=l.classes,D=l.size,B=l.className,C=l.rightLabelTooltip,N=l.leftLabelTooltip,v=l.customClasses,y=l["data-testid"],x=g&&f,S=v.root,T=v.track,z=v.switchBase,j=e(v,["root","track","switchBase"]);return a("div",t({className:B},{children:[p&&i("div",t({className:m.switchControlTitle},{children:p})),a(o,t({component:"label",container:!0,alignItems:"center",spacing:0},{children:[g&&i(o,t({item:!0},{children:i(c,t({title:N},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(!u||!f)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:g}))}))})),i(o,t({item:!0},{children:i(d,{"data-testid":"".concat(y,"_switch_").concat(u),ref:r,checked:u,onChange:L,color:"primary",disabled:w,classes:t({root:s(k.root,S),switchBase:s((b={},b[k.switchBase]=x||u&&!w,b[k.switchBaseDisabled]=w&&(x||u),b[k.switchBaseDisabledNoLabels]=!x&&w&&!u,b),z),track:s((h={},h[k.track]=x||u&&!w,h[k.trackDisabled]=w&&(x||u),h[k.trackDisabledNoLabels]=!x&&w&&!u,h),T)},j),size:D})})),f&&i(o,t({item:!0},{children:i(c,t({title:C},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(u||!g)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:f}))}))}))]}))]}))})),p={title:r.oneOfType([r.string,r.node,r.element]),leftLabel:r.string,rightLabel:r.string,checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,classes:r.shape({label:r.string,labelSmall:r.string,activeLabel:r.string,disabledLabel:r.string,root:r.string,switchBase:r.string,switchBaseDisabledNoLabels:r.string,switchBaseDisabled:r.string,track:r.string,trackDisabledNoLabels:r.string,trackDisabled:r.string}).isRequired,size:r.oneOf(["small","medium"]),className:r.string,customClasses:r.shape({root:r.string,track:r.string,switchBase:r.string}),rightLabelTooltip:r.string,leftLabelTooltip:r.string,"data-testid":r.string};h.propTypes=p,h.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:"",customClasses:{},rightLabelTooltip:"",leftLabelTooltip:"","data-testid":"SwitchControlComponent"};var g=b({root:{width:60,height:40,padding:13,"&.MuiSwitch-sizeSmall":{width:52,height:36,padding:13},"& .MuiSwitch-switchBase":{padding:10}},switchBase:{padding:10,color:"#03BCD4","&.MuiIconButton-root:hover":{backgroundColor:"rgba(3, 188, 212, 0.08)"}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#9e9e9e",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#808080"},activeLabel:{color:"#ffffff"}})(h);export{h as SwitchControlComponent,g as default};
@@ -1 +1 @@
1
- import{__rest as o,__assign as t}from"../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import{makeStyles as a,Tabs as e}from"@material-ui/core";import i from"classnames";import l from"prop-types";var n=a((function(o){return{root:{"& .MuiTab-root":{paddingLeft:16,paddingRight:16,"&.Mui-disabled":{color:o.palette.primary.text1}}},rootCompact:{"& .MuiTab-root":{minWidth:0}},root_filled:{backgroundColor:o.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:o.palette.primary.text6,"&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:o.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:42,"& .MuiTab-root":{color:o.palette.primary.contrastText,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"}}},root_filledTab:{minHeight:42,"& .MuiTab-root":{borderRadius:4,color:o.palette.primary.contrastText,fontSize:16,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{backgroundColor:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"},"&.Mui-disabled":{color:o.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderTopLeftRadius:4,borderTopRightRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:o.palette.background.b9,height:48,zIndex:1,"&.Mui-disabled":{},"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:o.palette.primary.text6}}}})),c=function(a){var l,c,d,p=a.compact,s=a.type,b=o(a,["compact","type"]),u=n(),m=b.classes,g=b.TabIndicatorProps;return r(e,t({},b,{classes:t(t({},m),{root:i(null==m?void 0:m.root,u.root,u["root_".concat(s)],(l={},l[u.rootCompact]=p,l)),scrollButtons:i(null==m?void 0:m.scrollButtons,u.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:t(t({},g),{classes:{root:i(null===(d=null==g?void 0:g.classes)||void 0===d?void 0:d.root,u.tabIndicatorRoot,(c={},c[u.tabIndicatorFilledTab]="filledTab"===s,c))}})}))};c.propTypes={type:l.oneOf(["default","filled","filledTab"]),compact:l.bool},c.defaultProps={type:"default",compact:!1};export{c as default};
1
+ import{__rest as o,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{makeStyles as a,Tabs as e}from"@material-ui/core";import i from"classnames";import l from"prop-types";var n=a((function(o){return{root:{"& .MuiTab-root":{paddingLeft:16,paddingRight:16,"&.Mui-disabled":{color:o.palette.primary.text1}}},rootCompact:{"& .MuiTab-root":{minWidth:0}},root_filled:{backgroundColor:o.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:o.palette.primary.text6,"&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:o.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:42,"& .MuiTab-root":{color:o.palette.primary.contrastText,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"}}},root_filledTab:{minHeight:42,"& .MuiTab-root":{borderRadius:4,color:o.palette.primary.contrastText,fontSize:16,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{backgroundColor:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"},"&.Mui-disabled":{color:o.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderTopLeftRadius:4,borderTopRightRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:o.palette.background.b9,height:48,zIndex:1,"&.Mui-disabled":{},"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:o.palette.primary.text6}}}})),d=function(a){var l,d,c,p=a.compact,s=a.type,b=o(a,["compact","type"]),u=n(),m=b.classes,g=b.TabIndicatorProps;return r(e,t({},b,{classes:t(t({},m),{root:i(null==m?void 0:m.root,u.root,u["root_".concat(s)],(l={},l[u.rootCompact]=p,l)),scrollButtons:i(null==m?void 0:m.scrollButtons,u.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:t(t({},g),{classes:{root:i(null===(c=null==g?void 0:g.classes)||void 0===c?void 0:c.root,u.tabIndicatorRoot,(d={},d[u.tabIndicatorFilledTab]="filledTab"===s,d))}})}))};d.propTypes={type:l.oneOf(["default","filled","filledTab"]),compact:l.bool},d.defaultProps={type:"default",compact:!1};export{d as default};
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from"../../_virtual/_tslib.js";import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{withStyles as n,Tooltip as a,makeStyles as p}from"@material-ui/core";import l from"prop-types";import s from"classnames";import m from"@material-ui/icons/Language";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as d}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";var c=n({tooltip:{padding:"4px 8px",display:"flex",alignItems:"center"}})(a),v=p((function(e){return{root:{color:e.palette.primary.main,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px",textDecoration:"none","&:hover":{color:e.palette.primary.main,textDecoration:"underline"},"&:visited":{color:e.palette.primary.main}},disabled:{color:e.palette.primary.dark,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px"},icon:{marginRight:8},buttonLink:{border:"none",background:"none",padding:0,cursor:"pointer"}}})),u=function(n){var p=n.TooltipProps,l=n.children,u=n.className,C=n.disabled,h=n.showTooltip,f=n.tooltipText,b=n.target,D=n.href,g=e(n,["TooltipProps","children","className","disabled","showTooltip","tooltipText","target","href"]),x=v(),j=d();if(C)return r(a,t({title:"Disabled",placement:"bottom-start"},{children:r("span",t({className:s(x.disabled,u)},g,{children:l}))}));var A=j&&"_self"===b?r("button",t({tabIndex:0,role:"link",className:s(x.buttonLink,x.root,u),onClick:function(e){e.metaKey||e.ctrlKey?window.open(D,"_blank"):j.push(D)}},g,{children:l})):r("a",t({className:s(x.root,u),target:b,href:D,rel:"noopener noreferrer"},g,{children:l}));return h||f?r(c,t({title:o(i,{children:[r(m,{fontSize:"small",className:x.icon}),f||D]}),placement:"bottom-start"},p,{children:A})):A};l.node.isRequired,l.string.isRequired,l.string,l.oneOf(["_self","_blank"]),l.bool,l.bool,l.string,l.shape({}),u.propTypes={children:l.node.isRequired,href:l.string.isRequired,className:l.string,target:l.oneOf(["_self","_blank"]),disabled:l.bool,showTooltip:l.bool,tooltipText:l.string,TooltipProps:l.shape({})},u.defaultProps={TooltipProps:{},className:"",target:"_blank",disabled:!1,showTooltip:!1,tooltipText:""};export{u as default};
1
+ import{__rest as e,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{withStyles as n,Tooltip as a,makeStyles as p}from"@material-ui/core";import l from"prop-types";import s from"classnames";import m from"@material-ui/icons/Language";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as d}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";var c=n({tooltip:{padding:"4px 8px",display:"flex",alignItems:"center"}})(a),v=p((function(e){return{root:{color:e.palette.primary.main,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px",textDecoration:"none","&:hover":{color:e.palette.primary.main,textDecoration:"underline"},"&:visited":{color:e.palette.primary.main}},disabled:{color:e.palette.primary.dark,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px"},icon:{marginRight:8},buttonLink:{border:"none",background:"none",padding:0,cursor:"pointer"}}})),u=function(n){var p=n.TooltipProps,l=n.children,u=n.className,C=n.disabled,h=n.showTooltip,b=n.tooltipText,f=n.target,D=n.href,g=e(n,["TooltipProps","children","className","disabled","showTooltip","tooltipText","target","href"]),x=v(),j=d();if(C)return r(a,t({title:"Disabled",placement:"bottom-start"},{children:r("span",t({className:s(x.disabled,u)},g,{children:l}))}));var A=j&&"_self"===f?r("button",t({tabIndex:0,role:"link",className:s(x.buttonLink,x.root,u),onClick:function(e){e.metaKey||e.ctrlKey?window.open(D,"_blank"):j.push(D)}},g,{children:l})):r("a",t({className:s(x.root,u),target:f,href:D,rel:"noopener noreferrer"},g,{children:l}));return h||b?r(c,t({title:o(i,{children:[r(m,{fontSize:"small",className:x.icon}),b||D]}),placement:"bottom-start"},p,{children:A})):A};l.node.isRequired,l.string.isRequired,l.string,l.oneOf(["_self","_blank"]),l.bool,l.bool,l.string,l.shape({}),u.propTypes={children:l.node.isRequired,href:l.string.isRequired,className:l.string,target:l.oneOf(["_self","_blank"]),disabled:l.bool,showTooltip:l.bool,tooltipText:l.string,TooltipProps:l.shape({})},u.defaultProps={TooltipProps:{},className:"",target:"_blank",disabled:!1,showTooltip:!1,tooltipText:""};export{u as default};
@@ -1 +1 @@
1
- import{__assign as e,__spreadArray as t}from"../../_virtual/_tslib.js";import{jsx as r,Fragment as n,jsxs as i}from"react/jsx-runtime";import{useMemo as o,useEffect as a}from"react";import l from"prop-types";import s from"classnames";import{Table as u,Column as c,SortDirection as d}from"react-virtualized";import{withStyles as m,IconButton as h,Typography as f,Tooltip as g}from"@material-ui/core";import{Settings as p,Sort as b,ArrowUpward as y,ArrowDownward as w}from"@material-ui/icons";import{getUnitDisplay as S}from"../../utils/convert.js";function R(e,t){var r=e.find((function(e){return e.key===t}))||{},n=r.unitType,i=r.customUnit;return i?"(".concat(i,")"):n?"(".concat(S(n),")"):""}function x(e,t){return(e.find((function(e){return e.key===t}))||{}).headerLabelClassName||""}function v(e,t){return(e.find((function(e){return e.key===t}))||{}).headerLabelUnitClassName||""}var C=function(l){var m=l.columns,S=l.data,C=l.useColumnSetting,_=l.useFixedColumnWidth,z=l.onOpenSettingDlg,k=l.classes,T=l.width,q=l.height,I=l.headerHeight,N=l.rowHeight,L=l.showTopSettingIcon,D=l.customMuiStyles,H=l.isTopSettingIconShownAlways,B=l.CustomCellRenderer,W=l.customRowStyle,O=l.sort,j=l.sortBy,A=l.sortDirection,F=e(e({},k),D),K=o((function(){return{label:"",key:"setting",width:C?25:0}}),[C]),V=o((function(){return m.filter((function(e){return e.show}))}),[m]),M=o((function(){return C?t(t([],V,!0),[K],!1):V}),[V,C,K]),E=o((function(){var e;if(T<=0)return{};var t=((e={})[K.key]=K.width,e),r=[];return V.filter((function(e){return Number.isFinite(e.width)})).forEach((function(e){t[e.key]=e.width-1,r.push(e.width-1)})),V.filter((function(e){return!Number.isFinite(e.width)})).forEach((function(e){var n=r.reduce((function(e,t){return e+t}),0),i=Math.floor((T-n-K.width)/(V.length-r.length)),o=e.minWidth||65,a=i<o?o:i;t[e.key]=a-1,r.push(a-1)})),t}),[T,V,K]),G=o((function(){return Object.values(E).reduce((function(e,t){return e+t}),0)}),[E]),U=H||G-12.5>=T;a((function(){L(U)}),[U]);var P=function(t){var n=t.label,o=t.dataKey,a=j||A||O;return o===K.key?U?null:r(h,e({size:"small","aria-label":"customize columns",className:F.settingIcon,onClick:z},{children:r(p,{fontSize:"inherit"})})):i(f,e({variant:"body2",className:s(F.headerLabel,x(m,o))},{children:[n," ",r("span",e({className:s(F.unitLabel,v(m,o))},{children:R(m,o)})),a&&o!==j&&r(g,e({title:"Sort A-Z"},{children:r(b,{fontSize:"small",className:k.sortIcon})})),a&&o===j&&(A===d.ASC?r(y,{fontSize:"small",className:k.sortIcon}):r(w,{fontSize:"small",className:k.sortIcon}))]}))},Z=function(t){var n=t.dataKey,i=t.rowData;return B?r(B,{columnKey:n,value:i[n]}):r(f,e({variant:"body2",className:F.cellData},{children:i[n]}))};return r(n,{children:r(u,e({width:_?G:T,height:q,headerHeight:I,rowClassName:function(e){var t,r=e.index;return s(((t={})[F.oddRow]=r%2==1,t))},rowHeight:N,rowCount:S.length,rowGetter:function(e){var t=e.index;return S[t]},rowStyle:W||{},className:F.table,sort:O,sortBy:j,sortDirection:A},{children:M.map((function(e){return r(c,{width:E[e.key]||0,dataKey:e.key,label:e.label,headerRenderer:P,cellRenderer:Z},e.key)}))}))})},_={columns:l.arrayOf(l.shape({show:l.bool,minWidth:l.number,width:l.number,key:l.string,label:l.string})).isRequired,data:l.arrayOf(l.shape({})).isRequired,useColumnSetting:l.bool.isRequired,useFixedColumnWidth:l.bool.isRequired,headerHeight:l.number.isRequired,rowHeight:l.number.isRequired,width:l.number.isRequired,height:l.number.isRequired,onOpenSettingDlg:l.func.isRequired,showTopSettingIcon:l.func.isRequired,sort:l.func,sortBy:l.string,sortDirection:l.string,classes:l.shape({sortIcon:l.string}).isRequired,customMuiStyles:l.shape({table:l.string,oddRow:l.string,headerLabel:l.string,cellData:l.string,unitLabel:l.string,settingIcon:l.string}).isRequired,isTopSettingIconShownAlways:l.bool.isRequired,CustomCellRenderer:l.func,customRowStyle:l.func};C.propTypes=_,C.defaultProps={CustomCellRenderer:null,customRowStyle:null,sort:null,sortBy:null,sortDirection:null};var z=m((function(e){return{table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},oddRow:{backgroundColor:e.isLightTheme?"rgba(189, 189, 189, 0.1)":"#303030"},headerLabel:{lineHeight:"14px",fontSize:"12px",fontStyle:"normal",letterSpacing:"-0.25px",display:"flex",alignItems:"center",flexWrap:"wrap"},cellData:{lineHeight:"14px",fontSize:"12px",fontWeight:"normal",fontStyle:"normal",letterSpacing:"0.15px"},unitLabel:{fontSize:"10px",opacity:.5},settingIcon:{padding:"3px",fontSize:"20px"},sortIcon:{fontSize:"16px"}}}))(C);export{C as VirtualizedTableComponent,z as default};
1
+ import{__assign as e,__spreadArray as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r,Fragment as n,jsxs as i}from"react/jsx-runtime";import{useMemo as o,useEffect as a}from"react";import l from"prop-types";import s from"classnames";import{Table as u,Column as c,SortDirection as d}from"react-virtualized";import{withStyles as m,IconButton as h,Typography as f,Tooltip as g}from"@material-ui/core";import{Settings as p,Sort as b,ArrowUpward as y,ArrowDownward as w}from"@material-ui/icons";import{getUnitDisplay as S}from"../../utils/convert.js";function R(e,t){var r=e.find((function(e){return e.key===t}))||{},n=r.unitType,i=r.customUnit;return i?"(".concat(i,")"):n?"(".concat(S(n),")"):""}function x(e,t){return(e.find((function(e){return e.key===t}))||{}).headerLabelClassName||""}function v(e,t){return(e.find((function(e){return e.key===t}))||{}).headerLabelUnitClassName||""}var C=function(l){var m=l.columns,S=l.data,C=l.useColumnSetting,_=l.useFixedColumnWidth,z=l.onOpenSettingDlg,k=l.classes,T=l.width,q=l.height,I=l.headerHeight,N=l.rowHeight,L=l.showTopSettingIcon,D=l.customMuiStyles,H=l.isTopSettingIconShownAlways,B=l.CustomCellRenderer,W=l.customRowStyle,O=l.sort,j=l.sortBy,A=l.sortDirection,F=e(e({},k),D),K=o((function(){return{label:"",key:"setting",width:C?25:0}}),[C]),V=o((function(){return m.filter((function(e){return e.show}))}),[m]),M=o((function(){return C?t(t([],V,!0),[K],!1):V}),[V,C,K]),E=o((function(){var e;if(T<=0)return{};var t=((e={})[K.key]=K.width,e),r=[];return V.filter((function(e){return Number.isFinite(e.width)})).forEach((function(e){t[e.key]=e.width-1,r.push(e.width-1)})),V.filter((function(e){return!Number.isFinite(e.width)})).forEach((function(e){var n=r.reduce((function(e,t){return e+t}),0),i=Math.floor((T-n-K.width)/(V.length-r.length)),o=e.minWidth||65,a=i<o?o:i;t[e.key]=a-1,r.push(a-1)})),t}),[T,V,K]),G=o((function(){return Object.values(E).reduce((function(e,t){return e+t}),0)}),[E]),U=H||G-12.5>=T;a((function(){L(U)}),[U]);var P=function(t){var n=t.label,o=t.dataKey,a=j||A||O;return o===K.key?U?null:r(h,e({size:"small","aria-label":"customize columns",className:F.settingIcon,onClick:z},{children:r(p,{fontSize:"inherit"})})):i(f,e({variant:"body2",className:s(F.headerLabel,x(m,o))},{children:[n," ",r("span",e({className:s(F.unitLabel,v(m,o))},{children:R(m,o)})),a&&o!==j&&r(g,e({title:"Sort A-Z"},{children:r(b,{fontSize:"small",className:k.sortIcon})})),a&&o===j&&(A===d.ASC?r(y,{fontSize:"small",className:k.sortIcon}):r(w,{fontSize:"small",className:k.sortIcon}))]}))},Z=function(t){var n=t.dataKey,i=t.rowData;return B?r(B,{columnKey:n,value:i[n]}):r(f,e({variant:"body2",className:F.cellData},{children:i[n]}))};return r(n,{children:r(u,e({width:_?G:T,height:q,headerHeight:I,rowClassName:function(e){var t,r=e.index;return s(((t={})[F.oddRow]=r%2==1,t))},rowHeight:N,rowCount:S.length,rowGetter:function(e){var t=e.index;return S[t]},rowStyle:W||{},className:F.table,sort:O,sortBy:j,sortDirection:A},{children:M.map((function(e){return r(c,{width:E[e.key]||0,dataKey:e.key,label:e.label,headerRenderer:P,cellRenderer:Z},e.key)}))}))})},_={columns:l.arrayOf(l.shape({show:l.bool,minWidth:l.number,width:l.number,key:l.string,label:l.string})).isRequired,data:l.arrayOf(l.shape({})).isRequired,useColumnSetting:l.bool.isRequired,useFixedColumnWidth:l.bool.isRequired,headerHeight:l.number.isRequired,rowHeight:l.number.isRequired,width:l.number.isRequired,height:l.number.isRequired,onOpenSettingDlg:l.func.isRequired,showTopSettingIcon:l.func.isRequired,sort:l.func,sortBy:l.string,sortDirection:l.string,classes:l.shape({sortIcon:l.string}).isRequired,customMuiStyles:l.shape({table:l.string,oddRow:l.string,headerLabel:l.string,cellData:l.string,unitLabel:l.string,settingIcon:l.string}).isRequired,isTopSettingIconShownAlways:l.bool.isRequired,CustomCellRenderer:l.func,customRowStyle:l.func};C.propTypes=_,C.defaultProps={CustomCellRenderer:null,customRowStyle:null,sort:null,sortBy:null,sortDirection:null};var z=m((function(e){return{table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},oddRow:{backgroundColor:e.isLightTheme?"rgba(189, 189, 189, 0.1)":"#303030"},headerLabel:{lineHeight:"14px",fontSize:"12px",fontStyle:"normal",letterSpacing:"-0.25px",display:"flex",alignItems:"center",flexWrap:"wrap"},cellData:{lineHeight:"14px",fontSize:"12px",fontWeight:"normal",fontStyle:"normal",letterSpacing:"0.15px"},unitLabel:{fontSize:"10px",opacity:.5},settingIcon:{padding:"3px",fontSize:"20px"},sortIcon:{fontSize:"16px"}}}))(C);export{C as VirtualizedTableComponent,z as default};
@@ -1 +1 @@
1
- var e={program:{label:"Program",type:"program",id:"programId"},rig:{label:"Rig",type:"rig",id:"rigId"},well:{label:"Well",type:"well",id:"wellId"},asset:{label:"Asset",type:"asset",id:"assetId"},frac_fleet:{label:"Frac Fleet",type:"frac_fleet",id:"fracFleetId"},pad:{label:"Pad",type:"pad",id:"padId"}};export{e as ASSET_TYPES};
1
+ var e={program:{label:"Program/BU",type:"program",id:"programId"},rig:{label:"Rig",type:"rig",id:"rigId"},well:{label:"Well",type:"well",id:"wellId"},asset:{label:"Asset",type:"asset",id:"assetId"},frac_fleet:{label:"Frac Fleet",type:"frac_fleet",id:"fracFleetId"},pad:{label:"Pad",type:"pad",id:"padId"}};export{e as ASSET_TYPES};
@@ -1 +1 @@
1
- import*as e from"../utils/metrics/metricsConfig.js";import"lodash";import"@babel/runtime/helpers/defineProperty";import"corva-convert-units";var r="benchmark_metric",_="slips_to_slips_average",a="bottom_to_slips_average",o="weight_to_weight_average",p="slips_to_bottom_average",t="cumulative_tortuosity_goal",i="stages_per_day",s="pumping_hours_per_day",l="bbls_per_day",n="lbs_proppant_per_day",m="frac_swap_over",y="wireline_swap_over",d="optimal_pressure_window_min",g="optimal_pressure_window_max",b=[e.drilled_feet_rotary_percentage,e.drilled_feet_slide_percentage,e.rop,e.rop_rotary,e.rop_slide,e.rop_gross,e.feet_per_day,e.tripping_in_speed,e.tripping_out_speed],u=[e.drilling_connection_average,e.bottom_to_slips_average,e.slips_to_bottom_average,e.weight_to_weight_average],w=[{label:"Cost",key:"cost"},e.cost_per_lat_ft,e.cost_per_ft],c=[e.cumulative_tortuosity],v=[{label:"Stages/day",key:"stages_per_day"},{label:"Pumping hours/day",key:"pumping_hours_per_day"},{label:"Bbls/day",key:"bbls_per_day"},{label:"Lbs Proppant/day",key:"lbs_proppant_per_day"},{label:"Frac Swap Over",key:"frac_swap_over"},{label:"Wireline Swap Over",key:"wireline_swap_over"},{label:"Optimal Pressure Window Min",key:"optimal_pressure_window_min"},{label:"Optimal Pressure Window Max",key:"optimal_pressure_window_max"}],k={company:{label:"Company",key:"company"},program:{label:"Program",key:"program"}};export{l as BBLS_PER_DAY_GOAL,r as BENCHMARK_METRIC_GOAL,a as BOTTOM_TO_SLIPS_GOAL,v as COMPLETION_GOALS,u as CONNECTIONS_GOALS,w as COST_GOALS,t as CUMULATIVE_TORTUOSITY_GOAL,b as DRILLING_EFFICIENCY_GOALS,c as ENGINEERING_GOALS,m as FRAC_SWAP_OVER_GOAL,k as GOAL_TYPES_DICT,n as LBS_PROPPANT_PER_DAY_GOAL,g as OPTIMAL_PRESSURE_WINDOW_MAX_GOAL,d as OPTIMAL_PRESSURE_WINDOW_MIN_GOAL,s as PUMPING_HOURS_PER_DAY_GOAL,p as SLIPS_TO_BOTTOM_GOAL,_ as SLIPS_TO_SLIPS_GOAL,i as STAGES_PER_DAY_GOAL,o as WEIGHT_TO_WEIGHT_GOAL,y as WIRELINE_SWAP_OVER_GOAL};
1
+ import*as e from"../utils/metrics/metricsConfig.js";import"lodash";import"@babel/runtime/helpers/defineProperty";import"corva-convert-units";var r="benchmark_metric",_="slips_to_slips_average",a="bottom_to_slips_average",o="weight_to_weight_average",p="slips_to_bottom_average",t="cumulative_tortuosity_goal",i="stages_per_day",s="pumping_hours_per_day",l="bbls_per_day",n="lbs_proppant_per_day",m="frac_swap_over",y="wireline_swap_over",d="optimal_pressure_window_min",g="optimal_pressure_window_max",b=[e.drilled_feet_rotary_percentage,e.drilled_feet_slide_percentage,e.rop,e.rop_rotary,e.rop_slide,e.rop_gross,e.feet_per_day,e.tripping_in_speed,e.tripping_out_speed],u=[e.drilling_connection_average,e.bottom_to_slips_average,e.slips_to_bottom_average,e.weight_to_weight_average],w=[{label:"Cost",key:"cost"},e.cost_per_lat_ft,e.cost_per_ft],c=[e.cumulative_tortuosity],v=[{label:"Stages/day",key:"stages_per_day"},{label:"Pumping hours/day",key:"pumping_hours_per_day"},{label:"Bbls/day",key:"bbls_per_day"},{label:"Lbs Proppant/day",key:"lbs_proppant_per_day"},{label:"Frac Swap Over",key:"frac_swap_over"},{label:"Wireline Swap Over",key:"wireline_swap_over"},{label:"Optimal Pressure Window Min",key:"optimal_pressure_window_min"},{label:"Optimal Pressure Window Max",key:"optimal_pressure_window_max"}],k={company:{label:"Company",key:"company"},program:{label:"Program/BU",key:"program"}};export{l as BBLS_PER_DAY_GOAL,r as BENCHMARK_METRIC_GOAL,a as BOTTOM_TO_SLIPS_GOAL,v as COMPLETION_GOALS,u as CONNECTIONS_GOALS,w as COST_GOALS,t as CUMULATIVE_TORTUOSITY_GOAL,b as DRILLING_EFFICIENCY_GOALS,c as ENGINEERING_GOALS,m as FRAC_SWAP_OVER_GOAL,k as GOAL_TYPES_DICT,n as LBS_PROPPANT_PER_DAY_GOAL,g as OPTIMAL_PRESSURE_WINDOW_MAX_GOAL,d as OPTIMAL_PRESSURE_WINDOW_MIN_GOAL,s as PUMPING_HOURS_PER_DAY_GOAL,p as SLIPS_TO_BOTTOM_GOAL,_ as SLIPS_TO_SLIPS_GOAL,i as STAGES_PER_DAY_GOAL,o as WEIGHT_TO_WEIGHT_GOAL,y as WIRELINE_SWAP_OVER_GOAL};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.52.0-1",
3
+ "version": "0.52.0-10",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -86,7 +86,7 @@
86
86
  "@babel/plugin-transform-runtime": "^7.12.10",
87
87
  "@babel/preset-env": "^7.12.11",
88
88
  "@babel/preset-react": "^7.12.10",
89
- "@corva/dc-platform-shared": "0.1.7-4",
89
+ "@corva/dc-platform-shared": "0.1.7-6",
90
90
  "@corva/eslint-config-browser": "^0.0.4",
91
91
  "@date-io/moment": "1.3.13",
92
92
  "@material-ui/core": "4.11.2",
@@ -8,6 +8,7 @@ export namespace ABILITIES {
8
8
  const impersonate: string;
9
9
  const access: string;
10
10
  const copy_activities: string;
11
+ const copy_users: string;
11
12
  const share: string;
12
13
  }
13
14
  //# sourceMappingURL=abilities.d.ts.map
@@ -1 +1 @@
1
- var e={view:"view",edit:"edit",read:"read",update:"update",create:"create",destroy:"destroy",impersonate:"impersonate",access:"access",copy_activities:"copy_activities",share:"share"};export{e as ABILITIES};
1
+ var e={view:"view",edit:"edit",read:"read",update:"update",create:"create",destroy:"destroy",impersonate:"impersonate",access:"access",copy_activities:"copy_activities",copy_users:"copy_users",share:"share"};export{e as ABILITIES};
@@ -50,6 +50,7 @@ export const PERMISSIONS: {
50
50
  userImpersonate: string;
51
51
  getDashboardUpdate: (dashboardId: any) => string;
52
52
  canCreateDashboard: string;
53
+ canCopyUsers: string;
53
54
  canViewDocumentsInfo: string;
54
55
  canViewCostsInfo: string;
55
56
  canViewBillingCost: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permissions/constants/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoSE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permissions/constants/index.js"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwSE"}
@@ -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}),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 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};
package/utils/index.d.ts CHANGED
@@ -58,7 +58,6 @@ import * as mobileDetect from "./mobileDetect";
58
58
  import * as nativeMessages from "./nativeMessages";
59
59
  import * as notifications from "./notifications";
60
60
  import * as permissions from "./permissions";
61
- import * as recaptcha from "./recaptcha";
62
61
  import { removeNotification } from "./notificationToasts";
63
62
  import * as reports from "./reports";
64
63
  import * as rollbar from "./rollbar";
@@ -75,5 +74,5 @@ import * as torqueAndHookloadUtils from "./torqueAndHookloadUtils";
75
74
  import { updateLocalStorageItem } from "./localStorage";
76
75
  export const updateUserUnits: ({ userUnits, companyUnits }: any) => void;
77
76
  import { sharedDCStore } from "./sharedDCStore";
78
- export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, loadable, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, recaptcha, removeNotification, reports, rollbar, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showWarningNotification, showToast, sqlParser, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, sharedDCStore };
77
+ export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, loadable, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, removeNotification, reports, rollbar, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showWarningNotification, showToast, sqlParser, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, sharedDCStore };
79
78
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;AA8FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;AA6FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
package/utils/index.js CHANGED
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import*as t from"./StageDesignVActualUtils.js";export{t as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as m,convertValue as n,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as b,getUnitSystem as U,updateUserUnits as d,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as D,getUniqueUnitsByType as S}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as N from"./drillstring/index.js";export{N as drillstring};import*as T from"./DrillstringUtils.js";export{T as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./loadable.js";export{F as loadable};import*as K from"./main.js";export{K as main};import*as q from"./mapUnits.js";export{q as mapUnits};import*as V from"./mapbox.js";import*as J from"./metrics/index.js";export{J as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as H from"./nativeMessages.js";export{H as nativeMessages};import*as M from"./notifications.js";export{M as notifications};import*as R from"./feed.js";export{R as feed};import*as W from"./permissions.js";export{W as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./rollbar.js";export{G as rollbar};import*as Q from"./sqlParser.js";export{Q as sqlParser};import*as X from"./time.js";export{X as time};import*as Y from"./torqueAndHookloadUtils.js";export{Y as torqueAndHookloadUtils};import*as Z from"./accuracy.js";export{Z as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as $ from"./dashboardReports.js";export{$ as dashboardReports};import*as _ from"./apps.js";export{_ as apps};import*as rr from"./themeVariables.js";export{rr as themeVariables};import*as tr from"./env.js";export{tr as env};import*as or from"./fileExtension.js";export{or as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as er from"./bha.js";export{er as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";import*as sr from"./recaptcha.js";export{sr as recaptcha};function ar(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var ir={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function pr(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?ar(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ar(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),ir)}var mr=m,nr=n,fr=f,cr=c,lr=l,jr=j,xr=x,gr=g,ur=u,yr=y,br=b,Ur=U,dr=d,vr=v,hr=h,Or=O,Dr=D,Sr=S,wr=pr(V),Pr=pr(p);export{Pr as components,mr as convertArray,Or as convertImmutables,Dr as convertImmutablesByBatch,nr as convertValue,fr as getAllUnitTypes,cr as getDefaultImperialUnit,lr as getDefaultUnits,Sr as getUniqueUnitsByType,jr as getUnitDescription,xr as getUnitDisplay,gr as getUnitPlural,ur as getUnitPreference,br as getUnitSingular,Ur as getUnitSystem,yr as getUnitsByType,vr as getUserUnits,wr as mapbox,hr as subscribeForUserUnitsUpdates,dr as updateUserUnits};
1
+ import r from"@babel/runtime/helpers/defineProperty";import*as t from"./StageDesignVActualUtils.js";export{t as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as m,convertValue as n,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as b,getUnitSystem as U,updateUserUnits as d,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as D,getUniqueUnitsByType as S}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as N from"./drillstring/index.js";export{N as drillstring};import*as T from"./DrillstringUtils.js";export{T as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./loadable.js";export{F as loadable};import*as K from"./main.js";export{K as main};import*as q from"./mapUnits.js";export{q as mapUnits};import*as V from"./mapbox.js";import*as J from"./metrics/index.js";export{J as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as H from"./nativeMessages.js";export{H as nativeMessages};import*as M from"./notifications.js";export{M as notifications};import*as R from"./feed.js";export{R as feed};import*as W from"./permissions.js";export{W as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./rollbar.js";export{G as rollbar};import*as Q from"./sqlParser.js";export{Q as sqlParser};import*as X from"./time.js";export{X as time};import*as Y from"./torqueAndHookloadUtils.js";export{Y as torqueAndHookloadUtils};import*as Z from"./accuracy.js";export{Z as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as $ from"./dashboardReports.js";export{$ as dashboardReports};import*as _ from"./apps.js";export{_ as apps};import*as rr from"./themeVariables.js";export{rr as themeVariables};import*as tr from"./env.js";export{tr as env};import*as or from"./fileExtension.js";export{or as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as er from"./bha.js";export{er as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";function sr(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var ar={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function ir(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?sr(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),ar)}var pr=m,mr=n,nr=f,fr=c,cr=l,lr=j,jr=x,xr=g,gr=u,ur=y,yr=b,br=U,Ur=d,dr=v,vr=h,hr=O,Or=D,Dr=S,Sr=ir(V),wr=ir(p);export{wr as components,pr as convertArray,hr as convertImmutables,Or as convertImmutablesByBatch,mr as convertValue,nr as getAllUnitTypes,fr as getDefaultImperialUnit,cr as getDefaultUnits,Dr as getUniqueUnitsByType,lr as getUnitDescription,jr as getUnitDisplay,xr as getUnitPlural,gr as getUnitPreference,yr as getUnitSingular,br as getUnitSystem,ur as getUnitsByType,dr as getUserUnits,Sr as mapbox,vr as subscribeForUserUnitsUpdates,Ur as updateUserUnits};
@@ -1,3 +0,0 @@
1
- export function initializeRecaptcha(): void;
2
- export const GOOGLE_RECAPTCHA_KEY: "6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4" | "6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";
3
- //# sourceMappingURL=recaptcha.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recaptcha.d.ts","sourceRoot":"","sources":["../../src/utils/recaptcha.js"],"names":[],"mappings":"AAQA,4CAKC;AATD,2HAE0B"}
@@ -1 +0,0 @@
1
- var c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){var e=document.createElement("script");e.async=!0,e.src="https://www.google.com/recaptcha/enterprise.js?render=".concat(c),document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};