PageSourceSearch

https://community.insideaesthetics.com/packs/js/BuilderTextRenderer-01511b261b2d080e.chunk.js

js insideaesthetics.com collected 2026-10-01 06:54:35 UTC 2,557 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[15041],{934036(e,t,l){var n=l(391426),o=l(832923),r=l(620708),c=l(933578),u=l(772883),i=l(825665),a=(0,r.Z)(function(){return Promise.resolve().then(l.bind(l,736626)).then(function(e){return{default:e.TipTapEditor}})}),d=function(e){var t=e.blockPath,l=e.text,r=void 0===l?"":l,d=e.className,s=e.placeholder,p=(0,o.kp)(function(e){return e.isInlineEditing})(t),k=(0,i.C)({blockPath:t,text:r}),h=k.handleDoubleClick,f=k.handleBlur,v=(0,c.useMemo)(function(){if(!(0,u.Jk)(r))return null;var e=(0,u.oq)(r);return e?{__html:e}:null},[r]),x=v?(0,n.jsx)("div",{className:d,dangerouslySetInnerHTML:v}):(0,n.jsx)("span",{className:d,children:"string"==typeof r?r:s});if(p){var b=(0,u.Jk)(r)?r:(0,u.MF)(r);return(0,n.jsx)(c.Suspense,{fallback:x,children:(0,n.jsx)(a,{value:b,onBlur:f,placeholder:s,shouldFocusWhenReady:!0})})}return v?(0,n.jsx)("div",{className:d,onDoubleClick:h,dangerouslySetInnerHTML:v}):(0,u.Jk)(r)?null:(0,n.jsx)("span",{className:d,onDoubleClick:h,children:r||s})};l.d(t,{BuilderTextRenderer:()=>d})},825665(e,t,l){l.d(t,{C:()=>u});var n=l(832923),o=l(933578),r=l(772883),c=function(e){var t=(0,n.kp)(function(e){return{selectedBlockPath:e.selectedBlockPath,getSelectedBlock:e.getSelectedBlock,updateSelectedBlock:e.updateSelectedBlock,shouldAllowInlineEditing:e.shouldAllowInlineEditing}}),l=t.selectedBlockPath,r=t.getSelectedBlock,c=t.updateSelectedBlock,u=t.shouldAllowInlineEditing,i=l===e,a=(0,o.useCallback)(function(e,t){var l,n=r();if(!(null==n?void 0:n.block))return void console.warn("No selected block found for text update");if(!(null==(l=n.block.props)?void 0:l.text))return void console.warn("Attempted to update text prop on block without text property:",n.block.type);try{var o=structuredClone(n.block);o.props.text.value=e,o.props.text.type=t,c(o)}catch(e){console.error("Failed to update text property:",e)}},[r,c]);return(0,o.useMemo)(function(){return{isSelected:i,shouldAllowInlineEditing:u,updateTextProp:a}},[i,u,a])},u=function(e){var t=e.blockPath,l=e.text,u=c(t),i=u.shouldAllowInlineEditing,a=u.updateTextProp,d=(0,n.kp)(function(e){return e.startInlineEditing}),s=(0,n.kp)(function(e){return e.stopInlineEditing});return{handleDoubleClick:(0,o.useCallback)(function(){i&&((0,r.KA)(l)&&a((0,r.MF)(l),"rich-text"),d(t))},[i,l,a,d,t]),handleBlur:(0,o.useCallback)(function(e){var t=e.editor;if(s(),t){var l=t.getJSON();(0,r.Jk)(l)&&a(l,"rich-text")}},[s,a])}}}}]);
2//# sourceMappingURL=/packs/js/BuilderTextRenderer-01511b261b2d080e.chunk.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.