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 d from"../feedItemTypes/DrillingOperationSummaryFeedItem.js";import a from"../feedItemTypes/DrillingDailyCostFeedItem.js";import f from"../feedItemTypes/DocumentFeedItem.js";import i 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 T from"../feedItemTypes/CompletionOperationSummaryFeedItem.js";import _ from"../feedItemTypes/CompletionDailyCostFeedItem.js";import F from"../feedItemTypes/CompletionDocumentFeedItem.js";import O from"../feedItemTypes/CompletionNptFeedItem.js";import b from"../feedItemTypes/StageOverviewFeedItem/index.js";import D from"../feedItemTypes/AppAnnotationFeedItem/index.js";import C 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 w from"../feedItemTypes/HookloadCommentFeedItem.js";import x from"../feedItemTypes/NptLessonsCommentFeedItem.js";import{THEMES as S}from"../../../constants/theme.js";import{FEED_ITEM_TYPES_BY_KEY as E,FEED_ITEM_TYPES as M}from"../../../constants/feed.js";import{jsx as N}from"react/jsx-runtime";var A=["feedItem","appData","customFeedItemTypeTemplates","currentUser"];function k(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 L(t){for(var r=1;r<arguments.length;r++){var m=null!=arguments[r]?arguments[r]:{};r%2?k(Object(m),!0).forEach((function(r){e(t,r,m[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(m)):k(Object(m)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(m,e))}))}return t}var R={view:"feedItem",theme:S.DARK},U=function(e){var S=e.feedItem,k=e.appData,U=e.customFeedItemTypeTemplates,B=e.currentUser,H=t(e,A);if(S.type in U){var W=U[S.type];return N(W,{"data-testid":"".concat("Feed_Content","_template"),feedItem:m(S),appData:m(k),appContext:m(R)})}switch(S.type){case r(E,"alert.type"):return N(o,{feedItem:S});case r(E,"post.type"):return N(p,{feedItem:S});case r(E,"geosteering_comments.type"):return N(n,{feedItem:S});case r(E,"dvd_comment.type"):return N(h,{feedItem:S});case r(E,"pc_comment.type"):case r(E,"drilling_dysfunction_event.type"):return N(P,{feedItem:S});case r(E,"hookload_broomstick_comment.type"):return N(w,{feedItem:S});case r(E,"operational_note.type"):return N(s,{feedItem:S});case r(E,"operation_summary.type"):return N(d,{feedItem:S});case r(E,"daily_cost.type"):return N(a,{feedItem:S});case r(E,"document.type"):return N(f,{feedItem:S});case r(E,"driller_memo.type"):return N(i,{feedItem:S});case r(E,"npt_event.type"):return N(I,{feedItem:S});case r(E,"survey_station.type"):return N(c,{feedItem:S});case r(E,"completion_operational_note.type"):return N(j,{feedItem:S});case r(E,"completion_operation_summary.type"):return N(T,{feedItem:S});case r(E,"completion_daily_cost.type"):return N(_,{feedItem:S});case r(E,"completion_document.type"):return N(F,{feedItem:S});case r(E,"completion_npt_event.type"):return N(O,{feedItem:S});case r(E,"completion_actual_stage.type"):return N(b,{feedItem:S});case M.TRACES_MEMO:return N(l,{feedItem:S});case M.DEPTH_COMMENTS:return N(u,{feedItem:S});case r(E,"lessons_learned.type"):return N(y,{feedItem:S});case r(E,"bha.type"):return N(g,{feedItem:S});case r(E,"fluid_report.type"):return N(v,{feedItem:S});case r(E,"app_annotation.type"):return N(D,L({feedItem:S,appData:k,appContext:R,currentUser:B},H));case r(E,"well_plan.type"):return N(C,L({feedItem:S,appData:k,appContext:R},H));case r(E,"npt_lessons_comment.type"):return N(x,{feedItem:S});default:return null}};export{U as default};
