PageSourceSearch

https://www.vetorino.com/assets/javascript/assets/summernote-compat-Cjxrcrlr.js

js vetorino.com collected 2026-09-28 12:52:58 UTC 1,649 bytes, 1 lines download raw bytes

1import{r as m,c as d,j as h}from"./index-CAsuM02H.js";import{V as p}from"./VetoRichEditor-VhvwvK3Z.js";import"./index-GFRlFNqs.js";const o=new WeakMap;function s(e){if(o.has(e))return;const n=e.innerHTML,t=e.dataset.maxlength,r=t&&parseInt(t,10)||void 0;e.innerHTML="";const c=m.createRef(),i=d.createRoot(e),u={root:i,ref:c,currentHtml:n};i.render(h.jsx(p,{ref:c,initialHtml:n,maxLength:r,onChange:f=>{u.currentHtml=f}})),o.set(e,u)}function l(e){var t;const n=o.get(e);return((t=n==null?void 0:n.ref.current)==null?void 0:t.getHtml())??(n==null?void 0:n.currentHtml)??""}function H(e,n){var r;const t=o.get(e);(r=t==null?void 0:t.ref.current)==null||r.setHtml(n),t&&(t.currentHtml=n)}function g(e){var t;const n=o.get(e);n&&((t=n.ref.current)==null||t.destroy(),n.root.unmount(),o.delete(e))}function y(e){var r;const n=o.get(e);if(!n){s(e);return}const t=((r=n.ref.current)==null?void 0:r.getHtml())??n.currentHtml;try{n.root.unmount()}catch{}o.delete(e),e.innerHTML=t,s(e)}function a(){const e=window.jQuery;if(!e||!e.fn){console.warn("[summernote-compat] jQuery introuvable — le patch summernote n’est pas activé.");return}e.fn.summernote=function(...n){const t=this,[r,c]=n;if(r==="code"&&n.length===1){const i=t[0];return i?l(i):""}return r==="code"&&n.length===2&&typeof c=="string"?(t.each(function(){H(this,c)}),t):r==="destroy"?(t.each(function(){g(this)}),t):r==="refresh"?(t.each(function(){y(this)}),t):typeof r=="object"||r===void 0?(t.each(function(){s(this)}),t):(console.warn("[summernote-compat] méthode non supportée :",r),t)}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a,{once:!0}):a();

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.