1import{j as l}from"./jsx-runtime-esm-DgZK9P7c.js";import{u as w}from"./useAuthWrapper-CWXjgmIl.js";import{a as M,b as f}from"./tabs-CHHObJJW.js";import{n as I,l as _}from"./app-vP2jhQjT.js";import{ae as v,F as j,h as D,M as h,X as N,n as R,S,o as L,g as k}from"./Icon-Ime4wSjK.js";import{a as A}from"./index-Dhy1axWM.js";import F from"./Iframe-BVXxBh9k.js";import"./index-CJZQOLKR.js";import"./isEqual-BiqEbpPg.js";import"./index-AmsYr5ik.js";import"./_commonjsHelpers-CxYHiaSM.js";import"./project-wd5IloI0.js";import"./react-redux-Bz8azxLH.js";import"./with-selector-Ce4EAgKw.js";import"./index-B8ov4xfp.js";import"./user-avatar-Zw71S5uB.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(r){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(s!=null)for(var n in s)s.hasOwnProperty(n)&&(r[n]=s[n])}return r})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:noloco-ui":!0});var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="47744982-75fe-4f2e-80e1-0ab90fd3a6db",e._sentryDebugIdIdentifier="sentry-dbid-47744982-75fe-4f2e-80e1-0ab90fd3a6db")}catch{}})();const P=(e,o,r,t,s,n,i)=>{if(e==="url")return r;const a=t.fields.getByName(o);return!a||!L({dataType:t,field:a,permissionsEnabled:i,user:s}).read?null:k(n,[a.name])},z=({dataType:e,elementPath:o,editorMode:r,isSelected:t,field:s,type:n,record:i,project:a,recordScope:c,size:d=h,fullScreen:m=!1,showBorder:y=!0,...E})=>{const{user:p}=w(),[x]=M(),{source:b}=I(v,E,a,o,c),g=_(j),u=A.useMemo(()=>P(n,s,b,e,p,i,g),[n,s,g,b,e,p,i]);return!u&&!r?null:!u&&r?l.jsx("div",{className:f(`flex items-center justify-center p-8 ${x?"border-stone-600 bg-stone-800":"border-stone-200 bg-white"}`,{"rounded-lg border shadow-md":!m}),children:l.jsx("div",{className:"w-full py-20 text-center text-sm text-stone-600",children:D("elements.IFRAME.empty")})}):l.jsx("div",{className:f("relative flex items-center justify-center bg-white",{"rounded-lg border border-stone-200 shadow-md":y}),children:l.jsx(F,{className:f("h-screen w-full overflow-hidden",{"rounded-lg":!m,"max-h-screen-25":d===S,"max-h-screen-50":d===h,"max-h-screen-75":d===R,"max-h-screen":d===N}),editorMode:r,fullScreen:m,isSelected:t,source:u})})};export{z 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.