1import{j as d}from"./jsx-runtime-esm-DgZK9P7c.js";import{a7 as A,q as M,r as k,a4 as R,a8 as F,as as T,ar as L,S as x}from"./Icon-Ime4wSjK.js";import{a as V}from"./tabs-CHHObJJW.js";import{u as z,n as _,s as N,A as C,w as O,x as j,y as H}from"./app-vP2jhQjT.js";import{a as w}from"./index-Dhy1axWM.js";import{e as G}from"./user-avatar-Zw71S5uB.js";import{B as K}from"./BlockContentHeader-DzvlzcoI.js";import{i as Y}from"./pageBlockRedesign-DyB3uXl0.js";import{R as q}from"./RecordEmptyState-9etA3du6.js";import"./index-CJZQOLKR.js";import"./_commonjsHelpers-CxYHiaSM.js";import"./index-AmsYr5ik.js";import"./index-B8ov4xfp.js";import"./project-wd5IloI0.js";import"./with-selector-Ce4EAgKw.js";import"./react-redux-Bz8azxLH.js";import"./isEqual-BiqEbpPg.js";import"./useAuthWrapper-CWXjgmIl.js";import"./normalizeDates-p6XmbZym.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"967abcd"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(i){for(var a=1;a<arguments.length;a++){var o=arguments[a];if(o!=null)for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])}return i})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:noloco-ui":!0});var l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d9bc3603-0448-427c-8119-6e0feae97e16",e._sentryDebugIdIdentifier="sentry-dbid-d9bc3603-0448-427c-8119-6e0feae97e16")}catch{}})();const me=({dataType:e,elementPath:l,editorMode:i,record:a,project:o,recordScope:s,...t})=>{const B=z(H),[D]=V(),u=Y({pageBlockRedesignEnabled:B,isRecordView:t.isRecordView,fullScreen:t.fullScreen}),r=t.image?.value,{title:c,subtitle:m,coverPhoto:y,image:f}=_(A,t,o,l,s),{actionButtons:v=[]}=_(k,t,o,l,s,N([M])),E=w.useMemo(()=>!c?.value&&!m?.value,[c,m]),h=w.useMemo(()=>{if(!(!r||r.hidden)){if(r.type!==R)return f;if(r.type===R&&r.fieldName){const n=e.fields.getByName(r.fieldName);if(n&&n.type===F){const g=G(n,a),S=T(g);return S?{value:S,hidden:!1}:void 0}}return f}},[e.fields,f,r,a]);if(E&&!i)return null;if(E&&i)return d.jsx(q,{});const b=h?.value?.src?h:{hidden:!0},p=t.icon,P=u&&p?.name&&!p.hidden?d.jsx(L,{icon:p,size:x}):void 0,I=v.length>0?v.map((n,g)=>d.jsx(C,{actionButton:n,buttonClassName:u?"h-7 gap-1 px-2 text-[13px] shadow-xs":void 0,dataType:e,editorMode:i,index:g,onDeleteRecord:O,project:o,record:a,recordScope:s,size:u?x:void 0},n.id)):void 0;return u?d.jsx(K,{coverPhoto:y,coverPhotoSize:t.coverPhotoSize,icon:P,image:b,imageStyle:t.imageStyle,isDarkModeEnabled:D,subtitle:m,title:c,children:I}):d.jsx(j,{coverPhoto:y,coverPhotoSize:t.coverPhotoSize,editorMode:i,image:b,project:o,subtitle:m,title:c,children:I})};export{me as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.