import t from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import{useMemo as n}from"react";import{merge as o}from"lodash";import e from"rollbar";import{Provider as s}from"@rollbar/react";import"../../../../../constants/goals.js";import"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import{CORVA_COMPANY_ID as c}from"../../../../../constants/corvaCompanyId.js";import"../../../../GradientManager/configuration/constants.js";function i(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,o)}return n}function a(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?i(Object(o),!0).forEach((function(n){t(r,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(o,t))}))}return r}var p=function(t){var c=t.children,i=t.rollbarManifestConfig,a=t.appKey,p=t.version,l=n((function(){var t,r=window.parent.Rollbar,n={accessToken:!i.useGlobalInstance&&i.accessToken?i.accessToken:null==r||null===(t=r.options)||void 0===t?void 0:t.accessToken,payload:{context:i.contextPrefix?"".concat(i.contextPrefix,"#").concat(a):a,client:{javascript:{code_version:p}}}},s=o({},null==r?void 0:r.options,n);return new e(s)}),[]);return r(s,{instance:l,children:c})},l=function(t){var n=t.children,o=t.rollbarManifestConfig,e=t.isCLIApp,s=t.companyId===c;return o&&o.enabled&&s&&!e?r(p,a(a({},t),{},{children:n})):n};export{l as RollbarWrapper};
//# sourceMappingURL=RollbarWrapper.js.map
