1import{j as a}from"./jsx-runtime-esm-DgZK9P7c.js";import{a as ee,u as ae}from"./tabs-CHHObJJW.js";import{g as z,aS as O,t as se,aT as re,as as F,aU as A,d as E,aV as te}from"./Icon-Ime4wSjK.js";import{g as ne,ah as oe,p as le,q as ue,ai as ie,u as V,l as ce,x as de,m as k,aj as me,ak as pe,y as fe,al as ge}from"./app-vP2jhQjT.js";import{u as be}from"./usePagePathname-D0KxuKSK.js";import{a as ye,P as xe,b as Ee,g as Y,c as he,R as we,d as ve,B as Te}from"./PageBreadcrumbs-CPvysxDY.js";import{a as p}from"./index-Dhy1axWM.js";import{a5 as Re}from"./user-avatar-Zw71S5uB.js";import{B as Se}from"./BlockContentHeader-DzvlzcoI.js";import{N as K}from"./isEqual-BiqEbpPg.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"./useAuthWrapper-CWXjgmIl.js";import"./normalizeDates-p6XmbZym.js";import"./IconViewportWide-BfEW8x8N.js";import"./AIAssistantIcon-BolJXbEg.js";import"./useRecordPreview-Dm9dLzpC.js";import"./RecordViewSection-Hmsgh0rm.js";import"./IconFolders-CxIos1ZV.js";import"./pageBlockRedesign-DyB3uXl0.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(n){for(var s=1;s<arguments.length;s++){var d=arguments[s];if(d!=null)for(var r in d)d.hasOwnProperty(r)&&(n[r]=d[r])}return n})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:noloco-ui":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1a92f026-4a28-4536-a1af-567c71ce2cbd",e._sentryDebugIdIdentifier="sentry-dbid-1a92f026-4a28-4536-a1af-567c71ce2cbd")}catch{}})();const _e=(e,t,n,s)=>e||!t||!s?[]:[{key:t.id,label:z(t,"props.name",""),to:n},{key:"current",label:s}],q=()=>null,Ze=({editorMode:e,elementId:t,elementPath:n,coverPhoto:s,coverPhotoSize:d,headerWidth:r,hideBreadcrumbs:B,image:h,imageStyle:J,parentPage:Q,project:o,routePath:X,routePathName:Z,scope:I,sections:f,subtitle:m,tabLink:M,tabs:c=[],title:l})=>{const{pathname:N,location:$}=ne(),{tab:w}=oe(),[g]=ee(),b=le(),{sm:D}=ae(),R=ue(),[j]=ie(),y=V(fe),v=V(ge),{parentPageElement:C,parentRoutePrefix:L}=be(X??"",Q,o),T=p.useMemo(()=>_e(B,C,L,l),[B,C,L,l]),U=p.useMemo(()=>o.dataTypes.getByName(O),[o.dataTypes]),H=ce(se),S=`${t}:PAGE`,G=p.useMemo(()=>({[S]:{_dataType:O,...b}}),[S,b]);ye(xe.BLANK);const u=p.useMemo(()=>Array.isArray(c)?e?c:c.filter(({visibilityRules:P})=>Re({currentSpace:j,currentUser:b,customRulesEnabled:H,isPublicAccessEnabled:R,isSmScreen:D,project:o,scope:I,visibilityRules:P,elementType:re})):[],[H,e,D,o,I,c,b,R,j]),x=Ee(c,u),i=p.useMemo(()=>f.length===1?z(F(f),"props.fullScreen",!1):!1,[f]),_=v&&!i,W=p.useMemo(()=>u.length>1||l||m||_&&(!!h?.value?.src||!!s?.value?.src||T.length>0),[u.length,l,m,_,h,s,T]);if(c.length>1&&u.length>0)if(w){if(x&&A(x.title)!==w){const P=N.replace(new RegExp(`${w}$`),A(x.title));return a.jsx(K,{replace:!0,to:`${P}${$.search||""}`})}}else return a.jsx(K,{replace:!0,to:`${N}/${A(F(u).title)}${$.search||""}`});return a.jsxs("div",{className:E("flex w-full flex-wrap",`view-${t}`,{"min-h-full shrink-0 content-start":y&&!i,"bg-[#fbfbfa]":y&&!i&&!g,[k.surfaces.elevation0]:y&&!i&&g}),children:[W&&a.jsxs("div",{className:E("sticky top-0 z-50 flex w-full flex-col overflow-hidden border-b sm:static min-h-12 justify-end space-y-1",{[`${k?.surfaces.elevation1} ${k.borders.one}`]:g,"bg-white":!g,"px-6 sm:px-3":v,"px-3":!v&&r!==12,"px-6":!v&&r===12,"pb-6 sm:pb-3":u.length<=1}),children:[_?a.jsx(Se,{breadcrumbs:T.length>0?a.jsx(he,{items:T}):void 0,className:E("mx-auto w-full pt-6 sm:pt-3",Y(r)),coverPhoto:s?.value?.src?s:{hidden:!0},coverPhotoSize:d,image:h?.value?.src?h:{hidden:!0},imageStyle:J,isDarkModeEnabled:g,subtitle:{hidden:!m,value:m},title:{hidden:!l,value:l}}):a.jsx(de,{className:E("mx-auto w-full bg-center pt-6 sm:pt-3",Y(r)),headerWidth:r,subtitle:{hidden:!m,value:m},title:{hidden:!l,value:l}}),a.jsx(we,{editorMode:e,headerWidth:r,isPublicAccessEnabled:R,project:o,recordId:"blank",recordScope:G,rootPathname:Z,tab:w,tabLink:M,visibleTabs:u})]}),a.jsxs("div",{className:E("flex w-full flex-wrap",{"mb-8 ml-auto mr-auto gap-y-2 pt-4 pb-16":y&&!i,"mb-8 ml-auto mr-auto gap-y-4 py-4 pb-32 pl-4 pr-4":!y&&!i,"max-w-screen":i}),children:[a.jsx(me,{value:pe,children:a.jsx(ve,{data:b,dataType:U,editorMode:e,elementPath:n,isEditingData:!1,isRecordView:!1,onError:q,onLoadingChange:q,pageId:S,project:o,recordScope:G,rootPathname:null,sections:f,selectedTab:
1x,tabLink:M,tabs:c,visibleTabs:u})}),e&&!i&&a.jsx(Te,{dataType:U,elementPath:n,elementType:te,popover:!1,project:o,sections:f,selectedTab:x})]})]})};export{Ze 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.