PageSourceSearch

https://www.sgilbo.kr/_next/static/chunks/1775.b05ef1190769395f.js

js sgilbo.kr collected 2026-10-02 20:48:03 UTC 3,236 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1775],{1775:function(e,t,r){r.r(t),r.d(t,{EditorProvider:function(){return s},useEditorContext:function(){return a}});var n=r(57437),o=r(2265);let i={title:"",subtitle:"",content:"",thumbnailUrl:"",isBreaking:!1,status:"REVIEW",fontSize:"medium"},l=(0,o.createContext)(null),s=e=>{let{children:t,initialData:r={},initialViewMode:s="pc",locale:a="",isWritingAssistantOpen:u=!1,isHistoryOpen:d=!1,defaultTextAlign:c="left",defaultCaptionAlign:f="center",editorCustomCss:m="",hasSideAiTools:E=!1}=e,[p,k]=(0,o.useState)(null),[b,h]=(0,o.useState)(null),[w,v]=(0,o.useState)(null),[y,S]=(0,o.useState)(!1),[N,C]=(0,o.useState)(!1),[L,g]=(0,o.useState)(!1),[T,x]=(0,o.useState)(s),[A,_]=(0,o.useState)(!1),I=(0,o.useMemo)(()=>({...i,...r}),[r]),[P,U]=(0,o.useState)(I),B=(0,o.useRef)(JSON.stringify(I));return(0,o.useEffect)(()=>{x(s)},[s]),(0,o.useEffect)(()=>{let e=JSON.stringify(I);e!==B.current&&(B.current=e,U(e=>({...e,...I})))},[I]),(0,o.useEffect)(()=>{if(!p)return;let e=()=>{let{state:e}=p,{selection:t}=e;if(t.empty){let r=e.doc.resolve(t.from).marks(),n=["editableLink","textStyle","highlight"],o=null;for(let e of r)if(n.includes(e.type.name)){o=e;break}if(o){let e=p.view.domAtPos(t.from).node;for(e.nodeType===Node.TEXT_NODE&&e.parentNode&&(e=e.parentNode);e&&e!==p.view.dom;){let t=e.nodeName.toLowerCase(),r=!1;switch(o.type.name){case"editableLink":r="a"===t;break;case"textStyle":r="span"===t&&""!==e.style.color;break;case"highlight":r="mark"===t||"span"===t&&""!==e.style.backgroundColor}if(r){let e=new CustomEvent("showMarkBasedToolbar",{detail:{markType:o.type.name}});document.dispatchEvent(e);break}if(e.parentNode)e=e.parentNode;else break}}else{let e=new CustomEvent("hideMarkBasedToolbar");document.dispatchEvent(e)}}};return p.on("selectionUpdate",e),()=>{p.off("selectionUpdate",e)}},[p]),(0,o.useEffect)(()=>{let e=e=>{let{elementType:t,position:r,elementData:n}=e.detail;"editableLink"===t&&h("editableLink")};return document.addEventListener("showElementToolbar",e),()=>{document.removeEventListener("showElementToolbar",e)}},[]),(0,o.useEffect)(()=>{let e=e=>{let{title:t,subTitle:r,content:n,keywords:o}=e.detail;U(e=>({...e,title:t||e.title,subtitle:r||e.subtitle,content:n||e.content,keyword:o||e.keyword}))};return window.addEventListener("updateArticleFromAI",e),()=>{window.removeEventListener("updateArticleFromAI",e)}},[]),(0,o.useEffect)(()=>{if(!p)return;let e=()=>{A||_(!0)};return p.on("focus",e),()=>{p.off("focus",e)}},[p,A]),(0,o.useEffect)(()=>{p&&(p.hasUserInteracted=A)},[p,A]),(0,n.jsx)(l.Provider,{value:{editor:p,setEditor:k,selectedNodeId:b,hoveredNodeId:w,showContextMenu:y,showAIDialog:N,setShowContextMenu:S,setShowAIDialog:C,setSelectedNodeId:h,setHoveredNodeId:v,articleData:P,setArticleData:U,updateArticleField:(e,t)=>{U(r=>({...r,[e]:t}))},isSubmitting:L,setIsSubmitting:g,viewMode:T,setViewMode:x,locale:a,hasUserInteracted:A,setHasUserInteracted:_,isWritingAssistantOpen:u,isHistoryOpen:d,defaultTextAlign:c,defaultCaptionAlign:f,editorCustomCss:m,hasSideAiTools:E},children:t})},a=()=>{let e=(0,o.useContext)(l);if(!e)throw Error("useEditorContext must be used within an EditorProvider");return e}}}]);

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.