@getontime/cli
Version:
Time keeping for live events
3 lines (2 loc) • 1.11 kB
JavaScript
import{h as s,j as u,cf as y,cg as g}from"./vendor-q6fv0YT2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c02a01ff-d919-488a-8393-ba4a5dd3dfb3",e._sentryDebugIdIdentifier="sentry-dbid-c02a01ff-d919-488a-8393-ba4a5dd3dfb3")}catch{}})();const h="_wrapper_1l24u_17",b={wrapper:h},c=s.forwardRef((e,r)=>{const{language:d,initialValue:t,isDirty:i,setIsDirty:o}=e,[a,f]=s.useState(t),p=n=>{const l=g.languages[d];return l?g.highlight(n,l,d):n},m=n=>{f(n)};return s.useImperativeHandle(r,()=>({getCss:()=>a})),s.useEffect(()=>{f(t)},[t]),s.useEffect(()=>{t.trim()!==a.trim()&&!i&&a.length!==0&&o(!0),t.trim()===a.trim()&&i&&o(!1)},[t,a,i,o]),u.jsx("div",{className:b.wrapper,children:u.jsx(y,{value:a,padding:15,onValueChange:m,highlight:p,style:{fontFamily:"monospace",fontSize:12,minHeight:500,background:"#2d2d2d"}})})});c.displayName="StyleEditor";const E=s.memo(c);export{E as default};
//# sourceMappingURL=StyleEditor-CpciRLYh.js.map