PageSourceSearch

https://pkacademy.pickleballkitchen.com/packs/js/49599-ccb96f7ea6071bd5.js

js pickleballkitchen.com collected 2026-09-25 02:58:34 UTC 22,153 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[49599],{914655(e,t,n){var i=n(674928),r=n(267919);let s=i.YY.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>(0,r.tN)(e,t),redo:()=>({state:e,dispatch:t})=>(0,r.ZS)(e,t)}),addProseMirrorPlugins(){return[(0,r.b6)(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});n.d(t,{},{A:s,B:s})},932953(e,t,n){var i=n(674928),r=n(288459),s=n(207547);let o=i.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new r.k_({key:new r.hs("placeholder"),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,o=[];if(!n)return null;let d=this.editor.isEmpty;return e.descendants((e,t)=>{let n=r>=t&&r<=t+e.nodeSize,l=!e.isLeaf&&(0,i.Op)(e);if((n||!this.options.showOnlyCurrent)&&l){let i=[this.options.emptyNodeClass];d&&i.push(this.options.emptyEditorClass);let r=s.NZ.node(t,t+e.nodeSize,{class:i.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});o.push(r)}return this.options.includeChildren}),s.zF.create(e,o)}}})]}});n.d(t,{},{A:o,O:o})},76516(e,t,n){n.d(t,{mM:()=>P,$Z:()=>g,VR:()=>A,gu:()=>$,NV:()=>U,hG:()=>N});var i,r,s,o=n(674928),d=n(288459),l=n(441903);class a{constructor({editor:e,element:t,view:n,tippyOptions:i={},updateDelay:r=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:i})=>{let{doc:r,selection:s}=t,{empty:d}=s,l=!r.textBetween(n,i).length&&(0,o.eE)(t.selection),a=this.element.contains(document.activeElement);return!!(e.hasFocus()||a)&&!d&&!l&&!!this.editor.isEditable},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null==(t=this.element.parentNode)?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(e,t)=>{let n=!(null==t?void 0:t.selection.eq(e.state.selection)),i=!(null==t?void 0:t.doc.eq(e.state.doc));(n||i)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,i,t)},this.updateDelay))},this.updateHandler=(e,t,n,i)=>{var r,s,d;let{state:l,composing:a}=e,{selection:u}=l;if(a||!t&&!n)return;this.createTooltip();let{ranges:h}=u,c=Math.min(...h.map(e=>e.$from.pos)),p=Math.max(...h.map(e=>e.$to.pos));(null==(r=this.shouldShow)?void 0:r.call(this,{editor:this.editor,element:this.element,view:e,state:l,oldState:i,from:c,to:p}))?(null==(s=this.tippy)||s.setProps({getReferenceClientRect:(null==(d=this.tippyOptions)?void 0:d.getReferenceClientRect)||(()=>{if((0,o.BQ)(l.selection)){let t=e.nodeDOM(c);if(t){let e=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(e&&(t=e.firstChild),t)return t.getBoundingClientRect()}}return(0,o.MG)(e,c,p)})}),this.show()):this.hide()},this.editor=e,this.element=t,this.view=n,this.updateDelay=r,s&&
1(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:e}=this.editor.options,t=!!e.parentElement;this.element.tabIndex=0,!this.tippy&&t&&(this.tippy=(0,l.Ay)(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){let{state:n}=e,i=n.selection.from!==n.selection.to;if(this.updateDelay>0&&i)return void this.handleDebouncedUpdate(e,t);let r=!(null==t?void 0:t.selection.eq(e.state.selection)),s=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,r,s,t)}show(){var e;null==(e=this.tippy)||e.show()}hide(){var e;null==(e=this.tippy)||e.hide()}destroy(){var e,t;(null==(e=this.tippy)?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null==(t=this.tippy)||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}let u=e=>new d.k_({key:"string"==typeof e.pluginKey?new d.hs(e.pluginKey):e.pluginKey,view:t=>new a({view:t,...e})});o.YY.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[u({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});var h=n(933578),c=n(574795),p={exports:{}},f={};p.exports=function(){if(r)return f;r=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=h.useState,n=h.useEffect,i=h.useLayoutEffect,s=h.useDebugValue;function o(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!e(t,i)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,r){var d=r(),l=t({inst:{value:d,getSnapshot:r}}),a=l[0].inst,u=l[1];return i(function(){a.value=d,a.getSnapshot=r,o(a)&&u({inst:a})},[e,d,r]),n(function(){return o(a)&&u({inst:a}),e(function(){o(a)&&u({inst:a})})},[e]),s(d),d};return f.useSyncExternalStore=void 0!==h.useSyncExternalStore?h.useSyncExternalStore:d,f}();var m=p.exports;let v=({contentComponent:e})=>{let t=m.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return h.createElement(h.Fragment,null,Object.values(t))};class y extends h.Component{constructor(e){var t;super(e),this.editorContentRef=h.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){let t,n;if(e.contentComponent)return;let i=this.editorContentRef.current;i.append(...e.options.element.childNodes),e.setOptions({element:i}),t=new Set,n={},e.contentComponent={subscribe:e=>(t.add(e),()=>{t.delete(e)}),getSnapshot:()=>n,getServerSnapshot:()=>n,setRenderer(e,i){n={...n,[e]:c.createPortal(i.reactElement,i.element,e)},t.forEach(e=>e())},removeRenderer(e){let i={...n};delete i[e],n=i,t.forEach(e=>e())}},this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...n}=this.props;return h.createElement(h.Fragment,null,h.createElement("div",{ref:((...e)=>t=>
1{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})})(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&h.createElement(v,{contentComponent:e.contentComponent}))}}let b=(0,h.forwardRef)((e,t)=>{let n=h.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return h.createElement(y,{key:n,innerRef:t,...e})}),g=h.memo(b);var S=(i=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=i;0!=r--;){var i,r,s,o=s[r];if(("_owner"!==o||!t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}).__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i,E={exports:{}},w={};E.exports=function(){if(s)return w;s=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=m.useSyncExternalStore,n=h.useRef,i=h.useEffect,r=h.useMemo,o=h.useDebugValue;return w.useSyncExternalStoreWithSelector=function(s,d,l,a,u){var h=n(null);if(null===h.current){var c={hasValue:!1,value:null};h.current=c}else c=h.current;var p=t(s,(h=r(function(){function t(t){if(!r){if(r=!0,n=t,t=a(t),void 0!==u&&c.hasValue){var s=c.value;if(u(s,t))return i=s}return i=t}if(s=i,e(n,t))return s;var o=a(t);return void 0!==u&&u(s,o)?s:(n=t,i=o)}var n,i,r=!1,s=void 0===l?null:l;return[function(){return t(d())},null===s?void 0:function(){return t(s())}]},[d,l,a,u]))[0],h[1]);return i(function(){c.hasValue=!0,c.value=p},[p]),o(p),p},w}();var C=E.exports;let D="u">typeof window?h.useLayoutEffect:h.useEffect;class O{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}}let M="u"<typeof window,x=M||!!("u">typeof window&&window.next);class R{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e
1=>e())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?M||x?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender)?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBeforeCreate)?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBlur)?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onCreate)?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDestroy)?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null==(n=(t=this.options.current).onFocus)?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onSelectionUpdate)?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null==(n=(t=this.options.current).onTransaction)?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onUpdate)?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null==(n=(t=this.options.current).onContentError)?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDrop)?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null==(n=(t=this.options.current).onPaste)?void 0:n.call(t,...e)}};return new o.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var i;return e===(null==(i=t.extensions)?void 0:i[n])}):e[n]===t[n]))}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?R.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function N(e={},t=[]){let n=(0,h.useRef)(e);n.current=e;let[i]=(0,h.useState)(()=>new R(n)),r=m.useSyncExternalStore(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,h.useDebugValue)(r),(0,h.useEffect)(i.onRender(t)),!function(e){var t;let[n]=(0,h.useState)(()=>new O(e.editor)),i=C.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:S);D(()=>n.watch(e.editor),[e.editor,n]),(0,h.useDebugValue)(i)}({editor:r,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),r}let T=(0,h.createContext)({editor:null});T.Consumer;let P=e=>{let[t,n]=(0,h.useState)(null),{editor:i}=(0,h.useContext)(T);return(0,h.useEffect)(()=>{var n;if(!t||(null==(n=e.editor)?void 0:n.isDestroyed)||(null==i?void 0:i.isDestroyed))return;let{pluginKey:r="bubbleMenu",editor:s,tippyOptions:o={},updateDelay:d,shouldShow:l=null}=e,a=s||i;if(!a)return void console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");let h=u({updateDelay:d,editor:a,element:t,pluginKey:r,shouldShow:l,tippyOptions:o});return a.registerPlugin(h),()=>{a.unregisterPlugin(r)}},[e.editor,i,t]),h.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)},H=(0,h.createContext)({onDragStart:void 0}),A=h.forwardRef((e,t)=>
1{let{onDragStart:n}=(0,h.useContext)(H),i=e.as||"div";return h.createElement(i,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});function I(e){return!!("function"==typeof e&&e.prototype&&e.prototype.isReactComponent)}function z(e){return!!("object"==typeof e&&e.$$typeof&&("Symbol(react.forward_ref)"===e.$$typeof.toString()||"react.forward_ref"===e.$$typeof.description))}class U{constructor(e,{editor:t,props:n={},as:i="div",className:r=""}){this.ref=null,this.id=Math.floor(0xffffffff*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(i),this.element.classList.add("react-renderer"),r&&this.element.classList.add(...r.split(" ")),this.editor.isInitialized?(0,c.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.render()})}render(){var e;let t=this.component,n=this.props,i=this.editor,r=function(){try{if(h.version)return parseInt(h.version.split(".")[0],10)>=19}catch{}return!1}(),s=function(e){if(I(e)||z(e))return!0;if("object"==typeof e&&e.$$typeof&&("Symbol(react.memo)"===e.$$typeof.toString()||"react.memo"===e.$$typeof.description)){let t=e.type;if(t)return I(t)||z(t)}return!1}(t),o={...n};o.ref&&!(r||s)&&delete o.ref,!o.ref&&(r||s)&&(o.ref=e=>{this.ref=e}),this.reactElement=h.createElement(t,{...o}),null==(e=null==i?void 0:i.contentComponent)||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;let t=this.editor;null==(e=null==t?void 0:t.contentComponent)||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}}class V extends o.Yv{constructor(e,t,n){if(super(e,t,n),!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const e=this.dom.querySelector("[data-node-view-content]");if(!e)return;e.appendChild(this.contentDOMElement)}}mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode(),ref:(0,h.createRef)()};if(!this.component.displayName){let e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&(e.hasAttribute("data-node-view-wrapper")&&e.removeAttribute("data-node-view-wrapper"),e.appendChild(this.contentDOMElement))}},n=this.component,i=(0,h.memo)(e=>h.createElement(H.Provider,{value:t},(0,h.createElement)(n,e)));i.displayName="ReactNodeView";let r=this.node.isInline?"span":"div";this.options.as&&(r=this.options.as);let{className:s=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new U(i,{editor:this.editor,props:e,as:r,className:`node-${this.node.type.name} ${s}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null==(e=this.renderer.element.firstElementChild)?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){let{from:e,to:t}=this.editor.state.selection,n=this.getPos();if("number"==typeof n)if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,t,n){let i=e=>{this.renderer.updateProps(e),"function"==typeof this.options.attrs&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){let r=this.node,s=this.decorations,o=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:r,oldDecorations:s,newNode:e,newDecorations:t,oldInnerDecorations:o,innerDecorations:n,updateProps:()=>i({node:e,decorations:t,innerDecorations:n})})}return e===this.node&&this.decorations===t&&this.innerDecorations===n||(this.node=e,this.decorations=t,this.innerDecorations=n,i({node:e,decorations:t,innerDecorations:n}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if("function"==typeof this.options.attrs){let t=this.editor.extensionManager.attributes,n=(0,o.zU)(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n}
1)}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function $(e,t){return n=>n.editor.contentComponent?new V(e,n,t):{}}}}]);
2//# sourceMappingURL=/packs/js/49599-ccb96f7ea6071bd5.js.map

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.