!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ef47cae3-2e67-5af9-ad57-fd57c81825c1")}catch(e){}}(); import{r as c,j as n,a}from"./emotion-react-jsx-runtime.browser.esm-Dvzk_se7.js";import{R as l}from"./withRailsContext-CE-5KzPI.js";import{I as i}from"./InfoBox-D4mjCqQZ.js";const p=(e,s)=>(e||"").replaceAll(/{{(.*?)}}/gim,(r,t)=>s[t.trim()]||"").replaceAll("
","");function f({editLink:e,htmlContent:s,contentWrapperClassname:r}){const{currentUser:t}=c.useContext(l);return n("div",{className:r,children:[(t==null?void 0:t.admin)&&e&&a(i,{children:n("div",{className:"flex flex-row items-center justify-center space-x-2",children:[n("p",{className:"!m-0 p-2",children:["Hi, ",t.first_name,"! You can edit this content in Ghost."]}),a("a",{className:"ycdc-btn ycdc-btn-sm ycdc-btn-blue h-full",href:e,target:"_blank",children:"Edit"})]})}),a("div",{dangerouslySetInnerHTML:{__html:s}})]})}export{f as G,p as i}; //# debugId=ef47cae3-2e67-5af9-ad57-fd57c81825c1