PageSourceSearch

https://www.alphaus.immo/_next/static/chunks/6611.af8cd866dd7c88d1.js

js alphaus.immo collected 2026-10-02 22:12:19 UTC 44,641 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6611],{26611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RichText:()=>e5});var r=n(2925),l=n(48643),o=n(95155),i=n(92825),a=n(41412),s=n(78234),u=n(5394),d=n(12115);let c=(0,d.createContext)(null),f={didCatch:!1,error:null};class m extends d.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,l=Array(r),o=0;o<r;o++)l[o]=arguments[o];null==(t=(n=this.props).onReset)||t.call(n,{args:l,reason:"imperative-api"}),this.setState(f)}}componentDidCatch(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)){var l,o;null==(l=(o=this.props).onReset)||l.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(f)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:l,error:o}=this.state,i=e;if(l){let e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)i=t(e);else if(n)i=(0,d.createElement)(n,e);else if(void 0!==r)i=r;else throw o}return(0,d.createElement)(c.Provider,{value:{didCatch:l,error:o,resetErrorBoundary:this.resetErrorBoundary}},i)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=f}}n(98195);var p=n(94271),h=n(32532);let g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,v=g?d.useLayoutEffect:d.useEffect,y={tag:h.T40};function E({initialConfig:e,children:t}){let n=(0,d.useMemo)(()=>{let{theme:t,namespace:n,nodes:r,onError:l,editorState:o,html:i}=e,a=(0,p.Mx)(null,t),s=(0,h.ieJ)({editable:e.editable,html:i,namespace:n,nodes:r,onError:e=>l(e,s),theme:t});return function(e,t){if(null!==t){if(void 0===t)e.update(()=>{let t=(0,h.NiT)();if(t.isEmpty()){let n=(0,h.lJ7)();t.append(n);let r=g?document.activeElement:null;(null!==(0,h.vJq)()||null!==r&&r===e.getRootElement())&&n.select()}},y);else if(null!==t)switch(typeof t){case"string":{let n=e.parseEditorState(t);e.setEditorState(n,y);break}case"object":e.setEditorState(t,y);break;case"function":e.update(()=>{(0,h.NiT)().isEmpty()&&t(e)},y)}}}(s,o),[s,a]},[]);return v(()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),(0,o.jsx)(p.Gu.Provider,{value:n,children:t})}var x=n(19749);let b=(0,d.createContext)(null),C={didCatch:!1,error:null};class w extends d.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){for(var e,t,n=arguments.length,r=Array(n),l=0;l<n;l++)r[l]=arguments[l];let{error:o}=this.state;null!==o&&(null==(e=(t=this.props).onReset)||e.call(t,{args:r,reason:"imperative-api"}),this.setState(C))}componentDidCatch(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)}componentDidUpdate(e,t){var n,r;let{didCatch:l}=this.state,{resetKeys:o}=this.props;l&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,o)&&(null==(n=(r=this.props).onReset)||n.call(r,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:l,error:o}=this.state,i=e;if(l){let e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)i=t(e);else if(n)i=(0,d.createElement)(n,e);else if(void 0!==r)i=r;else throw o}return(0,d.createElement)(b.Provider,{value:{didCatch:l,error:o,resetErrorBoundary:this.resetErrorBoundary}},i)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}}function S({children:e,onError:t}){return(0,o.jsx)(w,{fallback:(0,o.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}var k=n(61721);function j(e){e.undoStack=[],e.redoStack=[],e.current=null}function N(e,t,n){let r,l,o,i,a,s=(r=Date.now(),l=0,o=Date.now(),i=0,a=null,(t,s,u,d,c,f)=>{let m=Date.now();if(f.has(h.xKE)&&(o=r,i=l,a=t),f.has(h.n0X))return l=0,r=m,2;f.has(h.sne)&&a&&(r=o,l=i,t=a);let p=function(e,t,n,r,l){if(null===e||0===n.size&&0===r.size&&!l)return 0;let o=t._selection,i=e._selection;if(l)return 1;if(!((0,h.I2P)(o)&&(0,h.I2P)(i)&&i.isCollapsed()&&o.isCollapsed()))return 0;let a=function(e,t,n){let r=e._nodeMap,l=[];for(let e of t){let t=r.get(e);void 0!==t&&l.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);void 0===n||(0,h.hVZ)(n)||l.push(n)}return l}(t,n,r);if(0===a.length)return 0;if(a.length>
11){let n=t._nodeMap,r=n.get(o.anchor.key),l=n.get(i.anchor.key);return r&&l&&!e._nodeMap.has(r.__key)&&(0,h.kFe)(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}let s=a[0],u=e._nodeMap.get(s.__key);if(!(0,h.kFe)(u)||!(0,h.kFe)(s)||u.__mode!==s.__mode)return 0;let d=u.__text,c=s.__text;if(d===c)return 0;let f=o.anchor,m=i.anchor;if(f.key!==m.key||"text"!==f.type)return 0;let p=f.offset,g=m.offset,v=c.length-d.length;return 1===v&&g===p-1?2:-1===v&&g===p+1?3:4*(-1===v&&g===p)}(t,s,d,c,e.isComposing()),g=(()=>{let o=null===u||u.editor===e,i=f.has(h.bMH);if(!i&&o&&f.has(h.T40))return 0;if(1===p)return 2;if(null===t)return 1;let a=s._selection;if(!(d.size>0||c.size>0))return 2*(null===a);let g="number"==typeof n?n:n.peek();return!1===i&&0!==p&&p===l&&m<r+g&&o||1===d.size&&function(e,t,n){let r=t._nodeMap.get(e),l=n._nodeMap.get(e),o=t._selection,i=n._selection;return!((0,h.I2P)(o)&&(0,h.I2P)(i)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===i.anchor.type&&"text"===i.focus.type||!(0,h.kFe)(r)||!(0,h.kFe)(l)||r.__parent!==l.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>l.exportJSON()))}(Array.from(d)[0],t,s)?0:1})();return r=m,l=p,g});return(0,h.Sdt)(e.registerCommand(h.ZKf,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==r.length){let l=t.current,o=r.pop();null!==l&&(n.push(l),e.dispatchCommand(h.WWb,!0)),0===r.length&&e.dispatchCommand(h.KfJ,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:h.n0X})}})(e,t),!0),h.jZM),e.registerCommand(h.V30,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==n.length){let l=t.current;null!==l&&(r.push(l),e.dispatchCommand(h.KfJ,!0));let o=n.pop();0===n.length&&e.dispatchCommand(h.WWb,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:h.n0X})}})(e,t),!0),h.jZM),e.registerCommand(h.SKc,()=>(j(t),!1),h.jZM),e.registerCommand(h.t5V,()=>(j(t),e.dispatchCommand(h.WWb,!1),e.dispatchCommand(h.KfJ,!1),!0),h.jZM),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:l,dirtyElements:o,tags:i})=>{let a=t.current,u=t.redoStack,d=t.undoStack,c=null===a?null:a.editorState;if(null!==a&&n===c)return;let f=s(r,n,a,l,o,i);if(1===f)0!==u.length&&(t.redoStack=[],e.dispatchCommand(h.WWb,!1)),null!==a&&(d.push({...a}),e.dispatchCommand(h.KfJ,!0));else if(2===f)return;t.current={editor:e,editorState:n}}))}function _(){return{current:null,redoStack:[],undoStack:[]}}let B=(0,h.vE9)({build:(e,{delay:t,createInitialHistoryState:n,disabled:r})=>(0,k.v)({delay:t,disabled:r,historyState:n(e)}),config:(0,h.lVE)({createInitialHistoryState:_,delay:300,disabled:"undefined"==typeof window}),name:"@lexical/history/History",register:(e,t,n)=>{let r=n.getOutput();return(0,k.QZ)(()=>r.disabled.value?void 0:N(e,r.historyState.value,r.delay))}});function P({delay:e,externalHistoryState:t}){let[n]=(0,p.DF)();return function(e,t,n=1e3){let r=(0,d.useMemo)(()=>t||_(),[t]);(0,d.useEffect)(()=>N(e,r,n),[n,e,r])}(n,t,e),null}(0,h.vE9)({dependencies:[(0,h.O0w)(B,{createInitialHistoryState:()=>{throw Error("SharedHistory did not inherit parent history")},disabled:!0})],name:"@lexical/history/SharedHistory",register(e,t,n){var r;let{output:l}=n.getDependency(B),o=(r=e._parentEditor)?(0,k.xT)(r,B.name):null;if(!o)return()=>{};let i=o.output;return(0,k.QZ)(()=>(0,k.vA)(()=>{l.delay.value=i.delay.value,l.historyState.value=i.historyState.value,l.disabled.value=i.disabled.value}))}});let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d.useLayoutEffect:d.useEffect;function T({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){let[r]=(0,p.DF)();return D(()=>
1{if(n)return r.registerUpdateListener(({editorState:l,dirtyElements:o,dirtyLeaves:i,prevEditorState:a,tags:s})=>{t&&0===o.size&&0===i.size||e&&s.has(h.T40)||a.isEmpty()||n(l,r,s)})},[r,e,t,n]),null}var F=n(58647);let L=(0,h.vE9)({name:"@lexical/react/ReactProvider"});var R=n(47650);function I(e){return()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=(0,h.NiT)().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,h.NiT)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,h.Cyw)(n))return!1;if((0,h.ff4)(n)){if(!(0,h.bSg)(n)||0!==n.__indent)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!(0,h.kFe)(n))return!1}}}return!0})(e)}var A=n(2097),M=n(62002);let O="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d.useLayoutEffect:d.useEffect;function J({editor:e,ErrorBoundary:t}){let[n,r]=(0,d.useState)(()=>e.getDecorators());return O(()=>e.registerDecoratorListener(e=>{(0,R.flushSync)(()=>{r(e)})}),[e]),(0,d.useEffect)(()=>{r(e.getDecorators())},[e]),(0,d.useMemo)(()=>{let r=[],l=Object.keys(n);for(let i=0;i<l.length;i++){let a=l[i],s=(0,o.jsx)(t,{onError:t=>e._onError(t),children:(0,o.jsx)(d.Suspense,{fallback:null,children:n[a]})}),u=e.getElementByKey(a);null!==u&&r.push((0,R.createPortal)(s,u,a))}return r},[t,n,e])}function z({editor:e,ErrorBoundary:t}){return!function(e){let t=k.iZ.maybeFromEditor(e);if(t&&t.hasExtensionByName(L.name)){for(let e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",320),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${320}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(320,e);return!0}return!1}(e)?(0,o.jsx)(J,{editor:e,ErrorBoundary:t}):null}function K(e){return e.getEditorState().read(I(e.isComposing()))}function H({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var r;let[l]=(0,p.DF)();return O(()=>(0,h.Sdt)((0,M.ZI)(r),(0,A.U)(r)),[r=l]),(0,o.jsxs)(o.Fragment,{children:[e,(0,o.jsx)(q,{content:t}),(0,o.jsx)(z,{editor:l,ErrorBoundary:n})]})}function q({content:e}){let[t]=(0,p.DF)(),n=function(e){let[t,n]=(0,d.useState)(()=>K(e));return O(()=>{function t(){n(K(e))}return t(),(0,h.Sdt)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=(0,F.a)();return n?"function"==typeof e?e(r):e:null}var V=n(40983),Z=n(92749),U=n(1585),W=n(63344);let Y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d.useLayoutEffect:d.useEffect,G=(0,d.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:l,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:u,ariaLabelledBy:c,ariaMultiline:f,ariaOwns:m,ariaRequired:p,autoCapitalize:h,className:g,id:v,role:y="textbox",spellCheck:E=!0,style:x,tabIndex:b,"data-testid":C,...w},S){let[k,j]=(0,d.useState)(e.isEditable()),N=(0,d.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),_=(0,d.useMemo)(()=>(function(...e){return t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}})(S,N),[N,S]);return Y(()=>(j(e.isEditable()),e.registerEditableListener(e=>{j(e)})),[e]),(0,o.jsx)("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":l,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===y?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":u,"aria-labelledby":c,"aria-multiline":f,"aria-owns":k?m:void 0,"aria-readonly":!k||void 0,"aria-required":p,autoCapitalize:h,className:g,contentEditable:k,"data-testid":C,id:v,ref:_,role:y,spellCheck:E,style:x,tabIndex:b,...w})});function X(e){return e.getEditorState().read(I(e.isComposing()))}let $=(0,d.forwardRef)(function(e,t){let{placeholder:n,...r}=e,[l]=(0,p.DF)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(G,{editor:l,...r,ref:t}),null!=n&&(0,o.jsx)(Q,{editor:l,content:n})]})});function Q({content:e,editor:t}){let n=function(e){let[t,n]=(0,d.useState)(()=>X(e));return Y(()=>{function t(){n(X(e))}return t(),(0,h.Sdt)(e.registerUpdateListener(()=>{t()}
1),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,l]=(0,d.useState)(t.isEditable());if((0,d.useLayoutEffect)(()=>(l(t.isEditable()),t.registerEditableListener(e=>{l(e)})),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:(0,o.jsx)("div",{"aria-hidden":!0,children:i})}var ee=e=>{let{anchorElem:t,clientProps:n,plugin:r}=e;return"floatingAnchorElem"===r.position&&t?r.Component&&(0,o.jsx)(r.Component,{anchorElem:t,clientProps:n}):r.Component&&(0,o.jsx)(r.Component,{clientProps:n})},et=e=>{if("fields"in e&&"object"==typeof e.fields&&null!==e.fields&&"id"in e.fields?e.fields.id=new U.default().toHexString():"id"in e&&(e.id=new U.default().toHexString()),e.children)for(let t of e.children)et(t)};function en(){let e=(0,x.c)(3),[t]=(0,p.DF)(),n,r;return e[0]!==t?(n=()=>t.registerCommand(h.u5G,e=>{let n=(0,h.vJq)();if((0,h.RTZ)(n)){var r;let e=JSON.parse(JSON.stringify(null==(r=n.getNodes()[0])?void 0:r.exportJSON()));et(e);let l=JSON.stringify({namespace:t._config.namespace,nodes:[e]});return(0,V.lW)(t,null,{"application/x-lexical-editor":l,"text/plain":""}).catch(er),!0}return(0,V.lW)(t,(0,Z.xj)(e,ClipboardEvent)?e:null).then(()=>{if(!(e instanceof ClipboardEvent)||!e.clipboardData)throw Error("No clipboard event");let t=e.clipboardData.getData("application/x-lexical-editor");if(!t)return!0;let n=JSON.parse(t);for(let e of n.nodes)et(e);let r=JSON.stringify(n);e.clipboardData.setData("application/x-lexical-editor",r)}).catch(t=>{var n;throw e instanceof ClipboardEvent&&(null==(n=e.clipboardData)||n.setData("application/x-lexical-editor","")),t}),!0},h.AcJ),r=[t],e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]),(0,d.useEffect)(n,r),null}function er(e){throw e}function el(){let e=(0,x.c)(3),[t]=(0,p.DF)(),n,r;return e[0]!==t?(n=()=>(0,h.Sdt)(t.registerCommand(h.d8p,ed,h.AcJ),t.registerCommand(h.w$Z,ec,h.AcJ),t.registerCommand(h.gCZ,ec,h.AcJ),t.registerCommand(h.MvL,eu,h.AcJ),t.registerCommand(h.UDz,ea,h.AcJ),t.registerCommand(h.bbF,eo,h.AcJ)),r=[t],e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]),(0,d.useEffect)(n,r),null}function eo(e){let t=(0,h.vJq)();if((0,h.RTZ)(t)){var n,r,l;e.preventDefault();let o=null==(n=t.getNodes()[0])?void 0:n.getNextSibling();if((0,h.Cyw)(o)){let e=(0,h.i0_)().getElementByKey(o.getKey());return e&&em({element:e,node:o}),!0}if(!(0,h.ff4)(o))return!0;let i=null!=(l=o.getFirstDescendant())?l:o;return i&&(null==(r=(0,h.BtT)(i,ep))||r.selectEnd(),e.preventDefault()),!0}if(!(0,h.I2P)(t))return!1;let o=(t.isBackward()?t.anchor:t.focus).getNode(),i=(0,h.BtT)(o,ei),a=null==i?void 0:i.getNextSibling();if(!i||a!==eh(i))return!1;if((0,h.Cyw)(a)){let t=(0,h.i0_)().getElementByKey(a.getKey());if(t)return em({element:t,node:a}),e.preventDefault(),!0}return!1}function ei(e){return null!==eh(e)}function ea(e){let t=(0,h.vJq)();if((0,h.RTZ)(t)){var n,r,l;let o=null==(n=t.getNodes()[0])?void 0:n.getPreviousSibling();if((0,h.Cyw)(o)){let t=(0,h.i0_)().getElementByKey(o.getKey());return!!t&&(em({element:t,node:o}),e.preventDefault(),!0)}if(!(0,h.ff4)(o))return!1;let i=null!=(l=o.getLastDescendant())?l:o;return!!i&&(null==(r=(0,h.BtT)(i,ep))||r.selectStart(),e.preventDefault(),!0)}if(!(0,h.I2P)(t))return!1;let o=(t.isBackward()?t.anchor:t.focus).getNode(),i=(0,h.BtT)(o,es),a=null==i?void 0:i.getPreviousSibling();if(!i||a!==eg(i))return!1;if((0,h.Cyw)(a)){let t=(0,h.i0_)().getElementByKey(a.getKey());if(t)return em({element:t,node:a}),e.preventDefault(),!0}return!1}function es(e){return null!==eg(e)}function eu(){var e,t;let n=function(){let e=(0,h.vJq)();if(!(0,h.RTZ)(e))return;let t=e.getNodes();if(1!==t.length)return;let n=t[0];return(0,h.Cyw)(n)?{decorator:n,element:(0,h.i0_)().getElementByKey(n.getKey())}:void 0}();return null==(e=document.querySelector(".decorator-selected"))||e.classList.remove("decorator-selected"),!!n&&(null==(t=n.element)||t.classList.add("decorator-selected"),!0)}function ed(e){var t;null==(t=document.querySelector(".decorator-selected"))||t.classList.remove("decorator-selected");let n=function(e){if(!(e.target instanceof HTMLElement))return;let t=e.target.closest('[data-lexical-decorator="true"]');if(!(t instanceof HTMLElement))return;let n=(0,h.xL4)(t);return(0,h.Cyw)(n)?{element:t,node:n}:void 0}(e);if(!n)return!0;let{target:r}=e;return!(r instanceof HTMLElement)||r.isContentEditable||r.closest('button, textarea, input, .react-select, .code-editor, .no-select-decorator, [role="button"]')?(0,h.n1P)(null):em(n),!0}function ec(e){let t=(0,h.vJq)();
1return!!(0,h.RTZ)(t)&&(e.preventDefault(),t.getNodes().forEach(ef),!0)}function ef(e){e.remove()}function em(e){var t;let{element:n,node:r}=e;null==(t=document.querySelector(".decorator-selected"))||t.classList.remove("decorator-selected");let l=(0,h.rUs)();l.add(r.getKey()),(0,h.n1P)(l),n.scrollIntoView({behavior:"smooth",block:"nearest"}),n.classList.add("decorator-selected")}function ep(e){if((0,h.Cyw)(e)&&!e.isInline())return!0;if(!(0,h.ff4)(e)||(0,h.IqF)(e))return!1;let t=e.getFirstChild(),n=null===t||(0,h.wH$)(t)||(0,h.kFe)(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function eh(e){let t=e.getNextSibling();for(;null!==t;){if(ep(t))return t;t=t.getNextSibling()}return null}function eg(e){let t=e.getPreviousSibling();for(;null!==t;){if(ep(t))return t;t=t.getPreviousSibling()}return null}var ev=function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:50,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:25,i=0;if(e&&!e.contains(r)){let{bottom:r,left:a,right:s,top:u}=e.getBoundingClientRect(),d=u+window.scrollY,c=r+window.scrollY;if(n<d-o||n>c+o||t<a-l||t>s+l)return -1;(t<a||t>s)&&(i=t<a?t-a:t-s)}return i};function ey(e){let t=e.getBoundingClientRect(),n=getComputedStyle(e).getPropertyValue("transform");if(!n||"none"===n)return t;let r=n.split(",").pop();return t.y=t.y-Number(null==r?void 0:r.replace(")","")),t}function eE(e){let t=(e,t)=>e?parseFloat(window.getComputedStyle(e)[t]):0,{marginBottom:n,marginTop:r}=window.getComputedStyle(e),l=t(e.previousElementSibling,"marginBottom"),o=t(e.nextElementSibling,"marginTop"),i=Math.max(parseFloat(r),l);return{marginBottom:Math.max(parseFloat(n),o),marginTop:i}}function ex(e){return e.getEditorState().read(()=>(0,h.NiT)().getChildrenKeys())}var eb={props:null,result:null};function eC(e){let{anchorElem:t,cache_threshold:n=20,editor:l,fuzzy:o=!1,horizontalOffset:i=0,point:{x:a,y:s},startIndex:u=0,useEdgeAsDefault:d=!1}=e;if(n>0&&eb.props&&eb.result&&eb.props.fuzzy===e.fuzzy&&eb.props.horizontalOffset===e.horizontalOffset&&eb.props.useEdgeAsDefault===e.useEdgeAsDefault&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=e.x-t.x,l=e.y-t.y;return r*r+l*l<=n*n}(eb.props.point,e.point,n))return eb.result;let c=t.getBoundingClientRect(),f=ex(l),m={blockElem:null,blockNode:null,distance:1/0,foundAtIndex:-1,isFoundNodeEmptyParagraph:!1};return l.getEditorState().read(()=>{if(d){let e=l.getElementByKey(f[0]),t=l.getElementByKey(f[f.length-1]);if(e&&t){let[n,r]=[ey(e),ey(t)];if(s<n.top?(m.blockElem=e,m.distance=n.top-s,m.blockNode=(0,h.nsf)(f[0]),m.foundAtIndex=0):s>r.bottom&&(m.distance=s-r.bottom,m.blockNode=(0,h.nsf)(f[f.length-1]),m.blockElem=t,m.foundAtIndex=f.length-1),null==m?void 0:m.blockElem)return{blockElem:null,isFoundNodeEmptyParagraph:!1}}}let t=u,n=0;for(;t>=0&&t<f.length;){let u=f[t],d=l.getElementByKey(u);if(null===d)break;let p=new r.h(a+i,s),g=r.m.fromDOMRect(ey(d)),{marginBottom:v,marginTop:y}=eE(d),{distance:E,isOnBottomSide:x,isOnTopSide:b}=g.generateNewRect({bottom:g.bottom+v,left:c.left,right:c.right,top:g.top-y}).distanceFromPoint(p);if(0===E){m.blockElem=d,m.blockNode=(0,h.nsf)(u),m.foundAtIndex=t,m.distance=E,m.blockNode&&"paragraph"===m.blockNode.getType()&&""===m.blockNode.getTextContent()&&(o||e.returnEmptyParagraphs||(m.blockElem=null,m.blockNode=null),m.isFoundNodeEmptyParagraph=!0);break}o&&E<m.distance&&(m.blockElem=d,m.blockNode=(0,h.nsf)(u),m.distance=E,m.foundAtIndex=t),0===n&&(n=b?-1:x?1:1/0),t+=n}}),eb.props=e,eb.result={blockElem:m.blockElem,blockNode:m.blockNode,foundAtIndex:m.foundAtIndex,isFoundNodeEmptyParagraph:m.isFoundNodeEmptyParagraph},{blockElem:m.blockElem,blockNode:m.blockNode,foundAtIndex:m.foundAtIndex,isFoundNodeEmptyParagraph:m.isFoundNodeEmptyParagraph}}function ew(e,t){return!!e.closest(".".concat(t))}var eS=["IMG","INPUT","TEXTAREA","SELECT","BUTTON","VIDEO","OBJECT","EMBED","IFRAME","HR"];function ek(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
1if(!e){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}let l=e.getBoundingClientRect(),o=window.getComputedStyle(e),i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),s;if(["LexicalEditorTheme__block","LexicalEditorTheme__upload","LexicalEditorTheme__relationship"].some(t=>{var n;return e.classList.contains(t)||(null==(n=e.firstElementChild)?void 0:n.classList.contains(t))}))s=l.top+8-a.top;else{let t=!function(e){if(!e||eS.includes(e.tagName)||0===e.offsetHeight||0===e.offsetWidth)return!1;let t=window.getComputedStyle(e);return"table-cell"!==t.display&&"absolute"!==t.position&&"hidden"!==t.visibility&&"0"!==t.opacity}(e)?0:parseInt(o.lineHeight,10);s=l.top+(t-i.height)/2-a.top}t.style.opacity="1",t.style.transform="translate(".concat(r,"px, ").concat(s,"px)")}var ej=1/0;function eN(e){let{anchorElem:t}=e,n=void 0===t?document.body:t,[i]=(0,p.DF)();return function(e,t,n){var i;let a=t.parentElement,{editorConfig:s}=(0,l.b)(),u=(null==s||null==(i=s.admin)?void 0:i.hideGutter)?-24:12,c=(0,d.useRef)(null),[f,m]=(0,d.useState)(null);(0,d.useEffect)(()=>{var n;function l(n){var l;let o=n.target;if(!(0,h.sby)(o))return;let i=ev(a,n.pageX,n.pageY,o);if(-1===i)return void m(null);if(ew(o,"add-block-menu"))return;let s=ex(e),{blockElem:u,blockNode:d,foundAtIndex:c}=eC({anchorElem:t,cache_threshold:0,editor:e,horizontalOffset:-i,point:new r.h(n.x,n.y),returnEmptyParagraphs:!0,startIndex:0===(l=s.length)?1/0:ej>=0&&ej<l?ej:Math.floor(l/2),useEdgeAsDefault:!1});ej=c,u&&d&&((null==f?void 0:f.node)!==d||(null==f?void 0:f.elem)!==u)&&m({elem:u,node:d})}return null==(n=document)||n.addEventListener("mousemove",l),()=>{var e;null==(e=document)||e.removeEventListener("mousemove",l)}},[a,t,e,f]),(0,d.useEffect)(()=>{c.current&&(null==f?void 0:f.node)&&ek(null==f?void 0:f.elem,c.current,t,u)},[t,f,u]);let p=(0,d.useCallback)(t=>{let n=f;(null==n?void 0:n.node)&&(e.update(()=>{let t=!0;if(((null==n?void 0:n.node.getType())!=="paragraph"||""!==n.node.getTextContent())&&(t=!1),!t){let t=(0,h.lJ7)();null==n||n.node.insertAfter(t),setTimeout(()=>{m(n={elem:e.getElementByKey(t.getKey()),node:t})},0)}}),setTimeout(()=>{e.update(()=>{e.focus(),(null==n?void 0:n.node)&&"select"in n.node&&"function"==typeof n.node.select&&n.node.select()})},1),setTimeout(()=>{e.dispatchCommand(r.k,{node:null==n?void 0:n.node})},2),t.stopPropagation(),t.preventDefault())},[e,f]);return(0,R.createPortal)((0,o.jsx)(d.Fragment,{children:(0,o.jsx)("button",{"aria-label":"Add block",className:"icon add-block-menu",onClick:e=>{p(e)},ref:c,type:"button",children:(0,o.jsx)("div",{className:n?"icon":""})})}),t)}(i,n,i._editable)}var e_=0,eB="application/x-lexical-drag-block",eP=1/0;function eD(e){return 0===e?1/0:eP>=0&&eP<e?eP:Math.floor(e/2)}function eT(e,t){e&&(e.style.opacity="0"),t&&(t.style.opacity="",t.style.marginBottom="",t.style.marginTop="")}function eF(e){let{anchorElem:t}=e,n=void 0===t?document.body:t,[i]=(0,p.DF)();return function(e,t,n){var i,a;let s=t.parentElement,u=(0,d.useRef)(null),c=(0,d.useRef)(null),f=(0,d.useRef)(null),m=(0,d.useRef)(!1),[p,g]=(0,d.useState)(null),[v,y]=(0,d.useState)(null),{editorConfig:E}=(0,l.b)(),x=(null==E||null==(i=E.admin)?void 0:i.hideGutter)?-44:-8;return(0,d.useEffect)(()=>{var n;function l(n){let l=n.target;if(!(0,h.sby)(l))return;let o=ev(s,n.pageX,n.pageY,l);if(-1===o)return void g(null);if(ew(l,"draggable-block-menu"))return;let i=ex(e),{blockElem:a,foundAtIndex:u,isFoundNodeEmptyParagraph:d}=eC({anchorElem:t,cache_threshold:0,editor:e,horizontalOffset:-o,point:new r.h(n.x,n.y),startIndex:eD(i.length),useEdgeAsDefault:!1,verbose:!1});eP=u,(a||d)&&p!==a&&g(a)}return null==(n=document)||n.addEventListener("mousemove",l),()=>{var e;null==(e=document)||e.removeEventListener("mousemove",l)}},[s,t,e,p]),(0,d.useEffect)(()=>{u.current&&ek(p,u.current,t,x)},[t,p,x]),(0,d.useEffect)(()=>
1{function n(n){if(!m.current)return!1;let[l]=(0,M.gA)(n);if(l)return!1;let{pageY:o,target:i}=n;if(!(0,h.sby)(i))return!1;let a=ev(s,n.pageX,n.pageY,i,100,50),d=ex(e),{blockElem:g,foundAtIndex:b,isFoundNodeEmptyParagraph:C}=eC({anchorElem:t,editor:e,fuzzy:!0,horizontalOffset:-a,point:new r.h(n.x,n.y),startIndex:eD(d.length),useEdgeAsDefault:!0,verbose:!0});eP=b;let w=c.current;if(null===g||null===w)return!1;if(p!==g){var S,k,j,N,_,B,P,D;let{isBelow:e,willStayInSamePosition:r}=function(e,t,n,r,l,o,i,a,s){let u=arguments.length>9&&void 0!==arguments[9]&&arguments[9],{height:d,top:c}=r.getBoundingClientRect(),{top:f,width:m}=i.getBoundingClientRect(),{marginBottom:p,marginTop:h}=eE(r),g=c,v=o>=c+d/2+window.scrollY,y=!1;if(null==l?void 0:l.elem)if(r!==(null==l?void 0:l.elem))(v&&(null==l?void 0:l.elem)&&(null==l?void 0:l.elem)===r.nextElementSibling||!v&&(null==l?void 0:l.elem)&&(null==l?void 0:l.elem)===r.previousElementSibling)&&++e_<200&&(y=!0);else{var E;e_++;let e=null==l||null==(E=l.boundingBox)?void 0:E.y,t=r.getBoundingClientRect().y;(v===(null==l?void 0:l.isBelow)&&e===t||e_<200)&&(y=!1)}if(y)return{isBelow:v,willStayInSamePosition:y};u?g+=d/2:v?g+=d+p/2:g-=h/2;let x=0;u||(x=v?-0:0);let b=g-f+x;return n.style.width="calc(".concat(m,"px - ").concat(e,")"),n.style.opacity=".8",n.style.transform="translate(".concat(-24-t,"px, calc(").concat(b,"px - 2px))"),(null==l?void 0:l.elem)&&(l.elem.style.opacity="",(null==l?void 0:l.elem)===r?v?l.elem.style.marginTop="":l.elem.style.marginBottom="":(l.elem.style.marginBottom="",l.elem.style.marginTop="")),e_=0,{isBelow:v,willStayInSamePosition:y}}((null==E||null==(S=E.admin)?void 0:S.hideGutter)?"0px":"3rem",x+((null==E||null==(k=E.admin)?void 0:k.hideGutter)?null!=(P=null==u||null==(N=u.current)||null==(j=N.getBoundingClientRect())?void 0:j.width)?P:0:-(null!=(D=null==u||null==(B=u.current)||null==(_=B.getBoundingClientRect())?void 0:_.width)?D:0)),w,g,v,o,t,n,f,C);n.preventDefault(),r||y({boundingBox:g.getBoundingClientRect(),elem:g,isBelow:e})}else(null==v?void 0:v.elem)&&(eT(w,v.elem),y({boundingBox:g.getBoundingClientRect(),elem:g,isBelow:!1}));return!0}function l(n){if(!m.current)return!1;let[l]=(0,M.gA)(n);if(l)return!1;let{dataTransfer:o,pageY:i,target:a}=n,u=(null==o?void 0:o.getData(eB))||"";return e.update(()=>{let l=(0,h.nsf)(u);if(!l||!(0,h.sby)(a))return!1;let{blockElem:o,isFoundNodeEmptyParagraph:d}=eC({anchorElem:t,editor:e,fuzzy:!0,horizontalOffset:-ev(s,n.pageX,n.pageY,a,100,50),point:new r.h(n.x,n.y),useEdgeAsDefault:!0});if(!o)return!1;let c=(0,h.xL4)(o);if(!c)return!1;if(c===l)return!0;let{height:f,top:m}=ey(o),v=i>=m+f/2+window.scrollY;d?(c.insertBefore(l),c.remove()):v?c.insertAfter(l):c.insertBefore(l),null!==p&&g(null),document.querySelectorAll(".lexical-block-highlighter").forEach(e=>{e.remove()});let y=e.getElementByKey(l.getKey());setTimeout(()=>{let e=null==y?void 0:y.getBoundingClientRect();if(!e)return;let t=document.createElement("div");t.className="lexical-block-highlighter",t.style.backgroundColor="var(--theme-elevation-1000",t.style.transition="opacity 0.5s ease-in-out",t.style.zIndex="1",t.style.pointerEvents="none",t.style.boxSizing="border-box",t.style.borderRadius="4px",t.style.position="absolute",document.body.appendChild(t),t.style.opacity="0.1",t.style.height="".concat(e.height+8,"px"),t.style.width="".concat(e.width+8,"px"),t.style.top="".concat(e.top+window.scrollY-4,"px"),t.style.left="".concat(e.left-4,"px"),setTimeout(()=>{t.style.opacity="0",setTimeout(()=>{t.remove()},500)},1e3)},120)}),!0}return document.addEventListener("dragover",n),document.addEventListener("drop",l),()=>{document.removeEventListener("dragover",n),document.removeEventListener("drop",l)}},[s,x,t,e,v,p,null==E||null==(a=E.admin)?void 0:a.hideGutter]),(0,R.createPortal)((0,o.jsxs)(d.Fragment,{children:[(0,o.jsx)("button",{"aria-label":"Drag to move",className:"icon draggable-block-menu",draggable:!0,onDragEnd:function(){m.current=!1,(null==v?void 0:v.elem)&&eT(c.current,null==v?void 0:v.elem)},onDragStart:function(t){let n=t.dataTransfer;if(!n||!p)return;!function(e,t){let{transform:n}=t.style;e.setDragImage(t,0,0),setTimeout(()=>{t.style.transform=n})}(n,p);let r="";e.update(()=>{let e=(0,h.xL4)(p);e&&(r=e.getKey())}),m.current=!0,n.setData(eB,r)},ref:u,type:"button",children:(0,o.jsx)("div",{className:n?"icon":""})}),(0,o.jsx)("div",{className:"draggable-block-target-line",ref:c}),(0,o.jsx)("div",{className:"debug-highlight",ref:f})]}),t)}(i,n,i._editable)}var eL="insert-paragraph-at-end",eR=()=>{var e;let t,n=(0,x.c)(2),[r]=(0,p.DF)(),{editorConfig:i}=(0,l.b)();return(null==i||null==(e=i.admin)?void 0:e.hideInsertParagraphAtEnd)?null:(n[0]!==r?(t=(0,o.jsx)("div",{"aria-label":"Insert Paragraph",className:eL,onClick:()=>{r.update(eI)},role:"button",tabIndex:0,children:(0,o.jsx)("div",{className:"".concat(eL,"-inside"),children:(0,o.jsx)("span",{children:"+"})})}),n[0]=r,n[1]=t):t=n[1],t)};function eI(){let e=(0,h.lJ7)();(0,h.NiT)().append(e),e.select()}var eA=()=>{let e=(0,x.c)(4),{editorConfig:t}=(0,l.b)(),[n]=(0,p.DF)(),o,i;return e[0]!==n||e[1]!==t.features.markdownTransformers?(o=()=>{var e;return(0,r.a)(n,null!=(e=t.features.markdownTransformers)?e:[])},i=[n,t.features.markdownTransformers],e[0]=n,e[1]=t.features.markdownTransformers,e[2]=o,e[3]=i):(o=e[2],i=e[3]),d.useEffect(o,i),null};function eM(){let e=(0,x.c)(5),[t]=(0,p.DF)(),{currentView:n,views:l}=(0,r.g)(),o,i;return e[0]!==n||e[1]!==t||e[2]!==l?(o=()=>{var e,o;l&&("default"===n?l.default?(0,r.n)(t,null==(e=l.default)?void 0:e.nodes):(0,r.o)(t):l[n]&&((0,r.o)(t),(0,r.n)(t,null==(o=l[n])?void 0:o.nodes)))},i=[t,l,n],e[0]=n,e[1]=t,e[2]=l,e[3]=o,e[4]=i):(o=e[3],i=e[4]),(0,d.useEffect)(o,i),null}function eO(){let[e]=(0,p.DF)();return(0,d.useEffect)(()=>e.registerNodeTransform(h.haT,e=>{let t=(0,h.vJq)();if((0,h.I2P)(t)){let n=t.anchor.getNode(),r=t.focus.getNode();n.isAttached()&&r.isAttached()||(e.selectEnd(),console.warn("updateEditor: selection has been moved to the end of the editor because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after remov
1ing/replacing a selected node."))}return!1}),[e]),null}function eJ(){let[e]=(0,p.DF)();return(0,d.useEffect)(()=>e.registerCommand(h.HYn,()=>{if((0,h.vJq)())return!1;let e=document.activeElement;return e instanceof HTMLInputElement&&e.select(),!0},h.AcJ),[e]),null}var ez="slash-menu-popup";function eK(e){let{isSelected:t,item:n,onClick:r,onMouseEnter:i,ref:a}=e,{fieldProps:{featureClientSchemaMap:s,schemaPath:u}}=(0,l.b)(),{i18n:d}=(0,W.d)(),c="".concat(ez,"__item ").concat(ez,"__item-").concat(n.key);t&&(c+=" ".concat(ez,"__item--selected"));let f=n.key;return n.label&&(f="function"==typeof n.label?n.label({featureClientSchemaMap:s,i18n:d,schemaPath:u}):n.label),f.length>25&&(f=f.substring(0,25)+"..."),(0,o.jsxs)("button",{"aria-selected":t,className:c,id:ez+"__item-"+n.key,onClick:r,onMouseEnter:i,ref:a,role:"option",tabIndex:-1,type:"button",children:[(null==n?void 0:n.Icon)&&(0,o.jsx)(n.Icon,{}),(0,o.jsx)("span",{className:"".concat(ez,"__item-text"),children:f})]},n.key)}function eH(e){let{anchorElem:t=document.body}=e,[n]=(0,p.DF)(),[i,a]=(0,d.useState)(null),{editorConfig:s}=(0,l.b)(),{i18n:u}=(0,W.d)(),{fieldProps:{featureClientSchemaMap:c,schemaPath:f}}=(0,l.b)(),m=function(e,t){let n=(0,x.c)(4),{maxLength:l,minLength:o}=t,i=void 0===l?75:l,a=void 0===o?1:o,s;return n[0]!==i||n[1]!==a||"/"!==n[2]?(s=t=>{let{query:n}=t,l="[^/"+r.j+"\\s]",o=RegExp("(^|\\s|\\()(["+e+"]((?:"+l+"){0,"+i+"}))$").exec(n);if(null!==o){let e=o[1],t=o[3];if(t.length>=a)return{leadOffset:o.index+e.length,matchingString:t,replaceableString:o[2]}}return null},n[0]=i,n[1]=a,n[2]=e,n[3]=s):s=n[3],s}("/",{minLength:0}),h=(0,d.useCallback)(()=>{let e=[];for(let t of s.features.slashMenu.dynamicGroups)if(i){let r=t({editor:n,queryString:i});e=e.concat(r)}return e},[n,i,null==s?void 0:s.features]),g=(0,d.useMemo)(()=>{var e,t;let n=[];for(let t of null!=(e=null==s?void 0:s.features.slashMenu.groups)?e:[])n.push(t);if(i){let e=i.toLowerCase().replace(/[\s\-_]/g,"");for(let r of(n=(n=n.map(t=>{let n=t.items.filter(t=>{let n=t.key;return t.label&&(n="function"==typeof t.label?t.label({featureClientSchemaMap:c,i18n:u,schemaPath:f}):t.label),!!(RegExp(i,"gi").exec(n)||n.toLowerCase().replace(/[\s\-_]/g,"").includes(e))||null!=t.keywords&&t.keywords.some(t=>!!RegExp(i,"gi").exec(t)||t.toLowerCase().replace(/[\s\-_]/g,"").includes(e))});return n.length?{...t,items:n}:null})).filter(e=>null!=e),h())){let e=n.find(e=>e.key===r.key);e?n=n.filter(e=>e.key!==r.key):e={...r,items:[]},(null==e||null==(t=e.items)?void 0:t.length)&&(e.items=e.items.concat(e.items)),n.push(e)}}return n},[i,null==s?void 0:s.features.slashMenu.groups,h,c,u,f]);return(0,o.jsx)(r.l,{anchorElem:t,groups:g,menuRenderFn:(e,t)=>{let{selectedItemKey:n,selectItemAndCleanUp:r,setSelectedItemKey:l}=t;return e.current&&g.length?R.createPortal((0,o.jsx)("div",{className:ez,children:g.map(e=>{let t=e.key;return e.label&&c&&(t="function"==typeof e.label?e.label({featureClientSchemaMap:c,i18n:u,schemaPath:f}):e.label),(0,o.jsxs)("div",{className:"".concat(ez,"__group ").concat(ez,"__group-").concat(e.key),children:[(0,o.jsx)("div",{className:"".concat(ez,"__group-title"),children:t}),e.items.map((e,t)=>(0,o.jsx)(eK,{index:t,isSelected:n===e.key,item:e,onClick:()=>{l(e.key),r(e)},onMouseEnter:()=>{l(e.key)},ref:t=>{e.ref={current:t}}},e.key))]},e.key)})}),e.current):null},onQueryChange:a,triggerFn:m})}function eq(e){let t,n=(0,x.c)(6),{features:r}=e,[l]=(0,p.DF)(),o;return n[0]!==l||n[1]!==r.enabledFormats?(o=()=>{var e;let t,n,o=(e=r.enabledFormats,t=Object.keys(h.LZn),n=new Set(e),t.filter(e=>!n.has(e)));if(0!==o.length)return l.registerNodeTransform(h.Ey8,e=>{o.forEach(t=>{e.hasFormat(t)&&e.toggleFormat(t)})})},n[0]=l,n[1]=r.enabledFormats,n[2]=o):o=n[2],n[3]!==l||n[4]!==r?(t=[l,r],n[3]=l,n[4]=r,n[5]=t):t=n[5],(0,d.useEffect)(o,t),null}function eV(e){var t,n,r,l;let i=(0,x.c)(5),{className:a,editorConfig:s}=e,{t:u}=(0,W.d)(),[,d]=(0,p.DF)(),{getTheme:c}=d,f;if(i[0]!==a||i[1]!==(null==s||null==(t=s.admin)?void 0:t.placeholder)||i[2]!==c||i[3]!==u){let e=c();f=(0,o.jsx)($,{"aria-placeholder":u("lexical:general:placeholder"),className:null!=a?a:"ContentEditable__root",placeholder:(0,o.jsx)("p",{className:null==e?void 0:e.placeholder,children:null!=(l=null==s||null==(n=s.admin)?void 0:n.placeholder)?l:u("lexical:general:placeholder")})}),i[0]=a,i[1]=null==s||null==(r=s.admin)?void 0:r.placeholder,i[2]=c,i[3]=u,i[4]=f}else f=i[4];return f}var eZ=e=>{var t,n,r,i,a,s,u,c,f,m;let g,v=(0,x.c)(13),{editorConfig:y,editorContainerRef:E,isSmallWidthViewport:b,onChange:C,rtl:w}
1=e,k=(0,l.b)(),[j]=(0,p.DF)(),N=(0,F.a)(),[_,B]=(0,d.useState)(null),D;v[0]===Symbol.for("react.memo_cache_sentinel")?(D=e=>{null!==e&&B(e)},v[0]=D):D=v[0];let L=D,R,I;return v[1]!==j||v[2]!==k?(R=()=>{var e,t;if(!(null==k?void 0:k.uuid))return void console.error("Lexical Editor must be used within an EditorConfigProvider");(null==k||null==(e=k.parentEditor)?void 0:e.uuid)&&(null==(t=k.parentEditor)||t.registerChild(k.uuid,k));let n=j.registerCommand(h.$7r,()=>(k.focusEditor(k),!0),h.AcJ),r=j.registerCommand(h.I2H,()=>(k.blurEditor(k),!0),h.AcJ);return()=>{var e,t;n(),r(),null==(t=k.parentEditor)||null==(e=t.unregisterChild)||e.call(t,k.uuid)}},I=[j,k],v[1]=j,v[2]=k,v[3]=R,v[4]=I):(R=v[3],I=v[4]),(0,d.useEffect)(R,I),v[5]!==y||v[6]!==E||v[7]!==_||v[8]!==N||v[9]!==b||v[10]!==C||v[11]!==w?(g=(0,o.jsxs)(d.Fragment,{children:[null==(t=y.features.plugins)?void 0:t.map(eU),(0,o.jsxs)("div",{className:"editor-container",dir:w?"rtl":void 0,ref:E,children:[null==(n=y.features.plugins)?void 0:n.map(eW),(0,o.jsx)(H,{contentEditable:(0,o.jsx)("div",{className:"editor-scroller",children:(0,o.jsx)("div",{className:"editor",ref:L,children:(0,o.jsx)(eV,{editorConfig:y})})}),ErrorBoundary:S}),(0,o.jsx)(eO,{}),N&&(0,o.jsx)(eR,{}),(0,o.jsx)(el,{}),(0,o.jsx)(en,{}),(0,o.jsx)(eq,{features:y.features}),(0,o.jsx)(eJ,{}),(0,o.jsx)(eM,{}),N&&(0,o.jsx)(T,{ignoreSelectionChange:!0,onChange:(e,t,n)=>{(!n.has("focus")||n.size>1)&&(null==C||C(e,t,n))}}),_&&(0,o.jsxs)(d.Fragment,{children:[!b&&N&&(0,o.jsxs)(d.Fragment,{children:[(null==(r=y.admin)?void 0:r.hideDraggableBlockElement)?null:(0,o.jsx)(eF,{anchorElem:_}),(null==(i=y.admin)?void 0:i.hideAddBlockButton)?null:(0,o.jsx)(eN,{anchorElem:_})]}),null==(a=y.features.plugins)?void 0:a.map(e=>{if("floatingAnchorElem"===e.position&&!(!0===e.desktopOnly&&b))return(0,o.jsx)(ee,{anchorElem:_,clientProps:e.clientProps,plugin:e},e.key)}),N&&(0,o.jsx)(d.Fragment,{children:(0,o.jsx)(eH,{anchorElem:_})})]}),N&&(0,o.jsxs)(d.Fragment,{children:[(0,o.jsx)(P,{}),(null==y||null==(u=y.features)||null==(s=u.markdownTransformers)?void 0:s.length)>0&&(0,o.jsx)(eA,{})]}),null==(c=y.features.plugins)?void 0:c.map(eY),null==(f=y.features.plugins)?void 0:f.map(eG)]}),null==(m=y.features.plugins)?void 0:m.map(eX)]}),v[5]=y,v[6]=E,v[7]=_,v[8]=N,v[9]=b,v[10]=C,v[11]=w,v[12]=g):g=v[12],g};function eU(e){if("aboveContainer"===e.position)return(0,o.jsx)(ee,{clientProps:e.clientProps,plugin:e},e.key)}function eW(e){if("top"===e.position)return(0,o.jsx)(ee,{clientProps:e.clientProps,plugin:e},e.key)}function eY(e){if("normal"===e.position)return(0,o.jsx)(ee,{clientProps:e.clientProps,plugin:e},e.key)}function eG(e){if("bottom"===e.position)return(0,o.jsx)(ee,{clientProps:e.clientProps,plugin:e},e.key)}function eX(e){if("belowContainer"===e.position)return(0,o.jsx)(ee,{clientProps:e.clientProps,plugin:e},e.key)}var e$=e=>{let{children:t,providers:n}=e;if(!(null==n?void 0:n.length))return t;let r=n[0];return n.length>1?(0,o.jsx)(r,{children:(0,o.jsx)(e$,{providers:n.slice(1),children:t})}):(0,o.jsx)(r,{children:t})},eQ=e=>{let{composerKey:t,editorConfig:n,fieldProps:a,isSmallWidthViewport:s,onChange:u,readOnly:c,rtl:f,value:m}=e,{currentView:p,views:h}=(0,r.g)(),g=(0,l.b)(),v=(0,i.useEditDepth)(),y=d.useRef(null),x=(0,d.useMemo)(()=>{var e;if(m&&"object"!=typeof m)throw Error("The value passed to the Lexical editor is not an object. This is not supported. Please remove the data from the field and start again. This is the value that was passed in: "+JSON.stringify(m));if(m&&Array.isArray(m)&&!("root"in m))throw Error("You have tried to pass in data from the old Slate editor to the new Lexical editor. The data structure is different, thus you will have to migrate your data. We offer a one-line migration script which migrates all your rich text fields: https://payloadcms.com/docs/lexical/migration#migration-via-migration-script-recommended");if(m&&"jsonContent"in m)throw Error("You have tried to pass in data from payload-plugin-lexical. The data structure is different, thus you will have to migrate your data. Migration guide: https://payloadcms.com/docs/lexical/migration#migrating-from-payload-plugin-lexical");let t=null==h||null==(e=h[p])?void 0:e.nodes;return{editable:!0!==c,editorState:null!=m?JSON.stringify(m):void 0,namespace:n.lexical.namespace,nodes:(0,r.p)({editorConfig:n,nodeViews:t}),onError:e=>{throw e},theme:n.lexical.theme}},[n,h,p]);return x?(0,o.jsx)(E,{initialConfig:x,children:(0,o.jsx)(l.a,{editorConfig:n,editorContainerRef:y,fieldProps:a,parentContext:(null==g?void 0:g.editDepth)===v?g:void 0,children:(0,o.jsx)(e$,{providers:n.features.providers,children:(0,o.jsx)(eZ,{editorConfig:n,editorContainerRef:y,isSmallWidthViewport:s,onChange:u,rtl:f})})})},t+x.editable+p):(0,o.jsx)("p",{children:"Loading..."})};function e0(){let e,t,n=(0,x.c)(5),{currentView:l,setCurrentView:a,views:s}=(0,r.g)();if(!s||0===Object.keys(s).length)return null;if(n[0]!==l||n[1]!==a||n[2]!==s){t=Symbol.for("react.early_return_sentinel");e:{let n=Object.keys(s);if(!n.some(e2)){t=null;break e}let r=["default",...n.filter(e1)],u=l.charAt(0).toUpperCase()+l.slice(1);e=(0,o.jsx)("div",{className:"lexical-view-selector",children:(0,o.jsx)(i.Popup,{button:(0,o.jsxs)("button",{className:"lexical-view-selector__button",type:"button",children:[(0,o.jsx)("span",{className:"lexical-view-selector__label",children:u}),(0,o.jsx)(i.ChevronIcon,{className:"lexical-view-selector__icon"})]}),buttonType:"custom",horizontalAlign:"left",render:e=>{let{close:t}=e;return(0,o.jsx)(i.PopupList.ButtonGroup,{children:r.map(e=>{let n=e.charAt(0).toUpperCase()+e.slice(1);return(0,o.jsx)(i.PopupList.Button,{active:e===l,disabled:e===l,onClick:()=>{null==a||a(e),t()},children:n},e)})})},size:"large"})})}n[0]=l,n[1]=a,n[2]=s,n[3]=e,n[4]=t}else e=n[3],t=n[4];return t!==Symbol.for("react.early_return_sentinel")?t:e}function e1(e){return"default"!==e}function e2(e){return"default"!==e}var e4="rich-text-lexical";function e3(e){let{error:t}=e;return(0,o.jsxs)("div",{className:"errorBoundary",role:"alert",children:[(0,o.jsx)("p",{children:"Something went wrong:"}),(0,o.jsx)("pre",{style:{color:"red"},children:t.message})]})}var e5=e=>{var t;let{editorConfig:n,field:l,field:{admin:{className:c,description:f,readOnly:p}={},label:h,localized:g,required:v},path:y,readOnly:E,schemaPath:x,validate:b}=e,C=(0,i.useLocale)(),{config:{localization:w}}
1=(0,a.c)(),S=(0,i.isFieldRTL)({fieldLocalized:g,locale:C,localizationConfig:w||void 0}),k=(0,i.useEditDepth)(),{isControlledByParent:j}=(0,r.g)(),N=(0,d.useCallback)((e,t)=>"function"!=typeof b||b(e,{...t,required:v}),[b,v]),{customComponents:{AfterInput:_,BeforeInput:B,Description:P,Error:D,Label:T}={},disabled:F,initialValue:L,path:R,setValue:I,showError:A,value:M}=(0,i.useField)({potentiallyStalePath:y,validate:N}),O=E||p||F,[J,z]=(0,d.useState)(!1),[K,H]=(0,d.useState)(),q=d.useRef(L),V=d.useRef(M);(0,d.useEffect)(()=>{let e=()=>{let e=window.matchMedia("(max-width: 768px)").matches;e!==J&&z(e)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[J]);let Z=["field-type",e4,c,A&&"error",O&&"".concat(e4,"--read-only"),(null==n||null==(t=n.admin)?void 0:t.hideGutter)!==!0&&!J?"".concat(e4,"--show-gutter"):null].filter(Boolean).join(" "),U="".concat(R,".").concat(k),W=(0,r.e)(),Y=(0,d.useCallback)(e=>{W(()=>{let t=e.toJSON();V.current=t,I(t)})},[I,W]),G=(0,d.useMemo)(()=>(0,s.FR)(l),[l]),X=(0,i.useEffectEvent)(e=>{V.current===M||(0,u.j)(null!=V.current?JSON.parse(JSON.stringify(V.current)):V.current,M)||(q.current=e,V.current=M,H(new Date))});return(0,d.useEffect)(()=>{Object.is(L,q.current)||X(L)},[L]),(0,o.jsxs)("div",{className:Z,"data-field-path":R,"data-field-schemapath":x,"data-lexical-view":null==n?void 0:n.view,style:G,children:[(0,o.jsx)(i.RenderCustomComponent,{CustomComponent:D,Fallback:(0,o.jsx)(i.FieldError,{path:R,showError:A})}),(0,o.jsxs)("div",{className:"".concat(e4,"__label-row"),children:[T||(0,o.jsx)(i.FieldLabel,{label:h,localized:g,path:R,required:v}),!j&&(0,o.jsx)(e0,{})]}),(0,o.jsxs)("div",{className:"".concat(e4,"__wrap"),children:[(0,o.jsxs)(m,{fallbackRender:e3,onReset:()=>{},children:[B,(0,o.jsx)(i.BulkUploadProvider,{drawerSlugPrefix:"lexical-".concat(R),children:(0,o.jsx)(eQ,{composerKey:U,editorConfig:n,fieldProps:e,isSmallWidthViewport:J,onChange:Y,readOnly:O,rtl:S,value:M},JSON.stringify({path:R,rerenderProviderKey:K}))}),_]}),(0,o.jsx)(i.RenderCustomComponent,{CustomComponent:P,Fallback:(0,o.jsx)(i.FieldDescription,{description:f,path:R})})]})]},U)}},98195:()=>{}}]);

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.