1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"a99e4c3265af7c5eece8156095b05d1ffcc8ba85"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:ifixitFirstParty":!0});var r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4faddd32-eb79-4487-8fa3-4c20491fe7e6",e._sentryDebugIdIdentifier="sentry-dbid-4faddd32-eb79-4487-8fa3-4c20491fe7e6")}catch(e){}}(),(globalThis.webpackChunkcarpenter_frontend=globalThis.webpackChunkcarpenter_frontend||[]).push([[6160],{46319(e,r,n){n.d(r,{C:()=>t});var i=n(97145);function t(e){(0,i.useLayoutEffect)((()=>{e&&!e.isDestroyed&&e.commands.attachLinkEditor()}),[e])}},96160(e,r,n){n.r(r),n.d(r,{default:()=>y});var i=n(50061),t=n(31814),o=n(77780),s=n(82306),a=n(6042),d=n(97145),l=n(83992),c=n(46319),u=n(80122),f=n(82919),b=n(55100),g=n(70738);const h=[t.y.extend({content:"paragraph"}),u.fz,u.EY,u.BZ,u.yN,u.J2,u.sg,u.n,u.xd,u.r2,u.yb,u.Lp.configure({newLinksOpenInNewWindow:!0})];function y({doc:e,initialText:r,onChange:n,onFinish:t,onShortcutKey:y,toolbarStart:p,toolbar:x,counter:_}){const M=(0,a.jE)(),v=(0,d.useRef)({onFinish:t,onShortcutKey:y});(0,d.useEffect)((()=>{v.current={onFinish:t,onShortcutKey:y}}),[t,y]);const k=(0,d.useRef)(null),w=e=>null!==k.current&&e.eq(k.current)?r:f.du.serialize(e),m=(0,d.useId)(),P=(0,d.useMemo)((()=>[...h,u.TZ.configure({editorid:m})]),[m]),E=(0,d.useMemo)((()=>({handleKeyDown:(e,r)=>!!v.current.onShortcutKey(r)||("Escape"===r.key||"Enter"===r.key&&!r.shiftKey)&&(r.preventDefault(),v.current.onFinish(),!0)})),[]),j=(0,o.hGv)({extensions:P,content:e,autofocus:"end",shouldRerenderOnTransaction:!1,onCreate:({editor:e})=>{k.current=e.state.doc},onUpdate:({editor:e})=>{n(w(e.state.doc))},onBlur:({editor:e,event:r})=>{const n=r.relatedTarget;n instanceof Element&&n.closest("[data-link-editor-bubble]")||e.storage.link?.forceShow||v.current.onFinish()},editorProps:E});(0,c.C)(j);const N=(0,o.erU)({editor:j,selector:({editor:e})=>e&&!e.isDestroyed?{bold:e.isActive("bold"),italic:e.isActive("italic"),underline:e.isActive("underline"),link:e.isActive("link")}:null}),D=(0,d.useMemo)((()=>j?{editor:j,preset:"guide_intro"}:null),[j]);return(0,d.useEffect)((()=>{if(j)return()=>{j.isDestroyed||M.setQueryData((0,g.Qn)(w(j.state.doc)),j.getJSON())}}),[j,M]),j&&!j.isDestroyed&&N&&D?(0,i.jsx)(l.pl.Provider,{value:D,children:(0,i.jsxs)("div",{className:"min-w-0 flex-1 pb-1",children:[(0,i.jsx)(o.$Z$,{editor:j,className:"[&_.ProseMirror]:min-h-9 [&_.ProseMirror]:!rounded-lg [&_.ProseMirror]:border [&_.ProseMirror]:border-gray-300 [&_.ProseMirror]:bg-white [&_.ProseMirror]:px-2 [&_.ProseMirror]:py-1 [&_.ProseMirror]:text-sm [&_.ProseMirror]:leading-6 [&_.ProseMirror]:outline-none [&_.ProseMirror:focus]:border-ring [&_.ProseMirror:focus]:ring-[3px] [&_.ProseMirror:focus]:ring-ring/50"}),(0,i.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-2",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-1",onMouseDown:e=>e.preventDefault(),children:[null!=p&&(0,i.jsxs)(i.Fragment,{children:[p,(0,i.jsx)("span",{className:"mx-1 h-4 w-px bg-gray-200","aria-hidden":!0})]}),(0,i.jsx)(b.b,{label:(0,s.N)("Bold"),icon:"bold",disabled:!1,isActive:N.bold,onClick:()=>j.chain().focus().toggleBold().run()}),(0,i.jsx)(b.b,{label:(0,s.N)("Italic"),icon:"italic",disabled:!1,isActive:N.italic,onClick:()=>j.chain().focus().toggleItalic().run()}),(0,i.jsx)(b.b,{label:(0,s.N)("Underline"),icon:"underline",disabled:!1,isActive:N.underline,onClick:()=>j.chain().focus().toggleUnderline().run()}),(0,i.jsx)(b.b,{label:(0,s.N)("Link"),icon:"link",disabled:!1,isActive:N.link,onClick:()=>j.chain().focus().editLink().run()}),(0,i.jsx)("span",{className:"mx-1 h-4 w-px bg-gray-200","aria-hidden":!0}),x]}),_]})]})}):null}}}]); 2//# sourceMappingURL=6160.9428273b36a0027afa29.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.