import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{get as r}from"lodash";import{fromJS as m}from"immutable";import o from"../feedItemTypes/AlertFeedItem.js";import p from"../feedItemTypes/PostFeedItem.js";import n from"../feedItemTypes/GeosteeringFeedItem.js";import s from"../feedItemTypes/DrillingOperationalNoteFeedItem.js";import a from"../feedItemTypes/DrillingOperationSummaryFeedItem.js";import d from"../feedItemTypes/DrillingDailyCostFeedItem.js";import i from"../feedItemTypes/DocumentFeedItem.js";import f from"../feedItemTypes/DrillerMemoFeedItem.js";import I from"../feedItemTypes/NptFeedItem.js";import c from"../feedItemTypes/SurveyStationFeedItem/index.js";import y from"../feedItemTypes/LessonsLearnedFeedItem/index.js";import l from"../feedItemTypes/TracesMemoFeedItem.js";import u from"../feedItemTypes/DepthCommentFeedItem.js";import j from"../feedItemTypes/CompletionOperationalNoteFeedItem.js";import F from"../feedItemTypes/CompletionOperationSummaryFeedItem.js";import T from"../feedItemTypes/CompletionDailyCostFeedItem.js";import _ from"../feedItemTypes/CompletionDocumentFeedItem.js";import C from"../feedItemTypes/CompletionNptFeedItem.js";import b from"../feedItemTypes/StageOverviewFeedItem/index.js";import O from"../feedItemTypes/AppAnnotationFeedItem/index.js";import D from"../feedItemTypes/WellPlanFeedItem/index.js";import v from"../feedItemTypes/FluidReportFeedItem.js";import g from"../feedItemTypes/BhaFeedItem/BhaFeedItem.js";import h from"../feedItemTypes/DvDCommentFeedItem.js";import P from"../feedItemTypes/PCCommentFeedItem.js";import E from"../feedItemTypes/HookloadCommentFeedItem.js";import w from"../feedItemTypes/NptLessonsCommentFeedItem.js";import x from"../feedItemTypes/GenericDataCommentFeedItem.js";import{THEMES as S}from"../../../constants/theme.js";import{FEED_ITEM_TYPES_BY_KEY as M,FEED_ITEM_TYPES as N}from"../../../constants/feed.js";import{jsx as k}from"react/jsx-runtime";var A=["feedItem","appData","customFeedItemTypeTemplates","currentUser","isCorvaV3FeaturesEnabled","onFeedItemClick"];function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);t&&(m=m.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,m)}return r}function G(t){for(var r=1;r<arguments.length;r++){var m=null!=arguments[r]?arguments[r]:{};r%2?R(Object(m),!0).forEach((function(r){e(t,r,m[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(m)):R(Object(m)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(m,e))}))}return t}var L={view:"feedItem",theme:S.DARK},U=function(e){var S=e.feedItem,R=e.appData,U=e.customFeedItemTypeTemplates,V=e.currentUser,B=e.isCorvaV3FeaturesEnabled,H=e.onFeedItemClick,W=t(e,A);if(S.type in U){var K=U[S.type];return k(K,{"data-testid":"".concat("Feed_Content","_template"),feedItem:m(S),appData:m(R),appContext:m(L)})}switch(S.type){case r(M,"alert.type"):return k(o,{feedItem:S,isCorvaV3FeaturesEnabled:B,onFeedItemClick:H});case r(M,"post.type"):return k(p,{feedItem:S});case r(M,"geosteering_comments.type"):return k(n,{feedItem:S});case r(M,"dvd_comment.type"):return k(h,{feedItem:S});case r(M,"pc_comment.type"):case r(M,"drilling_dysfunction_event.type"):return k(P,{feedItem:S});case r(M,"hookload_broomstick_comment.type"):return k(E,{feedItem:S});case r(M,"operational_note.type"):return k(s,{feedItem:S});case r(M,"operation_summary.type"):return k(a,{feedItem:S});case r(M,"daily_cost.type"):return k(d,{feedItem:S});case r(M,"document.type"):return k(i,{feedItem:S});case r(M,"driller_memo.type"):return k(f,{feedItem:S});case r(M,"npt_event.type"):return k(I,{feedItem:S});case r(M,"survey_station.type"):return k(c,{feedItem:S});case r(M,"completion_operational_note.type"):return k(j,{feedItem:S});case r(M,"completion_operation_summary.type"):return k(F,{feedItem:S});case r(M,"completion_daily_cost.type"):return k(T,{feedItem:S});case r(M,"completion_document.type"):return k(_,{feedItem:S});case r(M,"completion_npt_event.type"):return k(C,{feedItem:S});case r(M,"completion_actual_stage.type"):return k(b,{feedItem:S});case N.TRACES_MEMO:return k(l,{feedItem:S});case N.DEPTH_COMMENTS:return k(u,{feedItem:S});case N.GENERIC_DATA_COMMENT:return k(x,{feedItem:S});case r(M,"lessons_learned.type"):return k(y,{feedItem:S});case r(M,"bha.type"):return k(g,{feedItem:S});case r(M,"fluid_report.type"):return k(v,{feedItem:S});case r(M,"app_annotation.type"):return k(O,G({feedItem:S,appData:R,appContext:L,currentUser:V},W));case r(M,"well_plan.type"):return k(D,G({feedItem:S,appData:R,appContext:L},W));case r(M,"npt_lessons_comment.type"):return k(w,{feedItem:S});default:return null}};export{U as default};
//# sourceMappingURL=Content.js.map
