PageSourceSearch

https://www.aiville.com/packs/js/BuilderTextRenderer-76a0346d451f5872.chunk.js

js aiville.com collected 2026-09-24 12:22:23 UTC 5,866 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[15041],{717526(e,t,r){var n=r(675521),o=r(86946),l=r(933578),i=r(417980),c=r(593941),u=r(231127),a=r(651549);function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function d(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var f=function(e){if(e)return c.SB[e]},p=function(e){if(!e)return{};var t={};return e.duration&&(t.timeout=f(e.duration)),!1===e.shouldAutohide&&(t.timeout=0),void 0!==e.shouldShowCloseButton&&(t.isDismissible=e.shouldShowCloseButton),e.onComplete&&(t.onRemove=e.onComplete),t},v={"data-testid":"flash-notice"},m=function(){var e=(0,u.T)("circle_v4_toast_enabled"),t=(0,o.o)(),r=(0,n.dj)(),f=(0,l.useRef)(void 0);(0,l.useEffect)(function(){return function(){clearTimeout(f.current)}},[]);var m=(0,l.useCallback)(function(n,o){if(e)try{var l,u=null!=(l=(0,a.U)(n))?l:(0,i.t)("common.success");if(null==o?void 0:o.messageComplete){var m=t.add(d(s({},v),{title:u,variant:"inverse",icon:"loading-circle",iconColor:"inverse",isDismissible:!1,timeout:2e3+c.SB.default}));f.current=setTimeout(function(){t.update(m,d(s({},v),{title:null==o?void 0:o.messageComplete,variant:"primary",icon:"circle-check-filled",iconColor:"success",isDismissible:!0,onRemove:null==o?void 0:o.onComplete}))},2e3)}else t.add(s(d(s({},v),{title:u,variant:"primary",icon:"circle-check-filled",iconColor:"success"}),p(o)));return}catch(e){r.success(n,o);return}r.success(n,o)},[e,t,r]),h=(0,l.useCallback)(function(n,o){if(e)try{var l,c=null!=(l=(0,a.U)(n))?l:(0,i.t)("common.error");t.add(s(d(s({},v),{title:c,variant:"destructive",icon:"triangle-exclamation-filled",iconColor:"danger"}),p(o)));return}catch(e){r.error(n,o);return}r.error(n,o)},[e,t,r]),b=(0,l.useCallback)(function(n,o){if(e)try{var l,c=null!=(l=(0,a.U)(n))?l:(0,i.t)("common.notification"),u=(null==o?void 0:o.variant)==="danger"?"destructive":"primary",f=(null==o?void 0:o.variant)==="danger"?"triangle-exclamation-filled":"circle-check-filled",m=(null==o?void 0:o.variant)==="danger"?"danger":"success";return t.add(s(d(s({},v),{title:c,variant:u,icon:f,iconColor:m}),p(o)))}catch(e){}return r.show(n,o)},[e,t,r]);return{success:m,error:h,show:b,remove:(0,l.useCallback)(function(n){if(e)try{t.close(n);return}catch(e){r.remove(n);return}r.remove(n)},[e,t,r]),toasts:(0,l.useMemo)(function(){return e?[]:r.toasts},[e,r.toasts]),placement:(0,l.useMemo)(function(){return e?"bottom":r.placement},[e,r.placement])}};r.d(t,{d:()=>m,t:()=>n.tE})},651549(e,t,r){var n=function(e){return"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(n).filter(Boolean).join(" "):void 0};r.d(t,{U:()=>n})},934036(e,t,r){var n=r(391426),o=r(832923),l=r(620708),i=r(933578),c=r(772883),u=r(825665),a=(0,l.Z)(function(){return Promise.all([r.e(49599),r.e(86069),r.e(92167),r.e(47074),r.e(33650),r.e(50862),r.e(57532)]).then(r.bind(r,736626)).then(function(e){return{default:e.TipTapEditor}})}),s=function(e){var t=e.blockPath,r=e.text,l=void 0===r?"":r,s=e.className,d=e.placeholder,f=(0,o.kp)(function(e){return e.isInlineEditing})(t),p=(0,u.C)({blockPath:t,text:l}),v=p.handleDoubleClick,m=p.handleBlur,h=(0,i.useMemo)(function(){if(!(0,c.Jk)(l))return null;var e=(0,c.oq)(l);return e?{__html:e}:null},[l]),b=h?(0,n.jsx)("div",{className:s,dangerouslySetInnerHTML:h}):(0,n.jsx)("span",{className:s,children:"string"==typeof l?l:d});if(f){var k=(0,c.Jk)(l)?l:(0,c.MF)(l);return(0,n.jsx)(i.Suspense,{fallback:b,children:(0,n.jsx)(a,{value:k,onBlur:m,placeholder:d,shouldFocusWhenReady:!0})})}return h?(0,n.jsx)("div",{className:s,onDoubleClick:v,dangerouslySetInnerHTML:h}):(0,c.Jk)(l)?null:(0,n.jsx)("span",{className:s,onDoubleClick:v,children:l||d})};r.d(t,{BuilderTextRenderer:()=>s})},825665(e,t,r){r.d(t,{C:()=>c});var n=r(832923),o=r(933578),l=r(772883),i=function(e){var t=(0,n.kp)(function(e){return{selectedBlockPath:e.selectedBlockPath,getSelectedBlock:e.getSelectedBlock,updateSelectedBlock:e.updateSelectedBlock,shouldAllowInlineEditing:e.shouldAllowInlineEditing}}),r=t.selectedBlockPath,l=t.getSelectedBlock,i=t.updateSelectedBlock,c=t.shouldAllowInlineEditing,u=r===e,a=(0,o.useCallback)(function(e,t){var r,n=l();if(!(null==n?void 0:n.block))return void console.warn("No selected block found for text update");if(!(null==(r=n.block.props)?void 0:r.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,i(o)}catch(e){console.error("Failed to update text property:",e)}},[l,i]);return(0,o.useMemo)(function(){return{isSelected:u,shouldAllowInlineEditing:c,updateTextProp:a}},[u,c,a])},c=function(e){var t=e.blockPath,r=e.text,c=i(t),u=c.shouldAllowInlineEditing,a=c.updateTextProp,s=(0,n.kp)(function(e){return e.startInlineEditing}),d=(0,n.kp)(function(e){return e.stopInlineEditing});return{handleDoubleClick:(0,o.useCallback)(function(){u&&((0,l.KA)(r)&&a((0,l.MF)(r),"rich-text"),s(t))},[u,r,a,s,t]),handleBlur:(0,o.useCallback)(function(e){var t=e.editor;if(d(),t){var r=t.getJSON();(0,l.Jk)(r)&&a(r,"rich-text")}},[d,a])}}}}]);
2//# sourceMappingURL=/packs/js/BuilderTextRenderer-76a0346d451f5872.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.