1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,351930,e=>{"use strict";var t=e.i(290627);function l(e){let t=String(e||"").trim();if(!t)return null;if(t.includes("/")){let e=t.split(/\s*\/\s*/).map(e=>e.trim()).filter(Boolean);return e.length?{kind:"soloPack",names:e}:null}if(/\s[-ââ]\s/.test(t)){let e=t.split(/\s[-ââ]\s/).map(e=>e.trim()).filter(Boolean);return e.length?{kind:"link",names:e}:null}return{kind:"link",names:[t]}}function i(e){return String(e||"").split(/\r?\n/).map(l).filter(Boolean)}function r(e,l){let i=[],r=[],a=0,s=0;for(let o of e||[]){if(!o?.names?.length)continue;let e=[];for(let i of o.names){let a=function(e,t){let l=String(e||"").trim();return l?t instanceof Map?t.get(l)||t.get(l.toLowerCase())||null:t[l]||t[l.toLowerCase()]||null:null}(i,l),s=(0,t.entityToSkillGemRef)(a);s?e.push(s):r.push(String(i).trim())}if("soloPack"===o.kind){let l=e.slice(0,t.SKILL_BOARD_SOLO_MAX);if(!l.length)continue;i.push({kind:"soloPack",id:(0,t.createSkillBoardId)("solo"),solos:l}),s+=1;continue}let[n,...d]=e;n&&(i.push({kind:"link",id:(0,t.createSkillBoardId)("link"),main:n,supports:d}),a+=1)}return{cards:i,skipped:r,addedLink:a,addedSolo:s}}function a(e){let t=[],l=Number(e?.addedLink)||0,i=Number(e?.addedSolo)||0,r=Array.isArray(e?.skipped)?[...new Set(e.skipped.filter(
1Boolean))]:[];if(l>0&&t.push(`ë§í¬ 그룹 ${l}`),i>0&&t.push(`ë¨ë
묶ì ${i}`),!t.length&&!r.length)return"ì¶ê°ë ì ¬ì´ ììµëë¤.";let a=t.length?`ì¶ê°ë¨: ${t.join(" · ")}`:"ì¶ê°ë ì¹´ë ìì";return r.length&&(a+=` \xb7 ë¯¸ë§¤ì¹ ìëµ: ${r.join(", ")}`),a}e.s(["buildSkillBoardCardsFromPaste",()=>r,"formatSkillBoardPasteMessage",()=>a,"parseSkillBoardPasteText",()=>i])},847894,e=>{"use strict";var t=e.i(229969),l=e.i(694148),i=e.i(290627);function r(e,i=""){let a=String(i||"").trim();if(a.toLowerCase().endsWith(".zip")){let i=(0,t.unzipSync)(e),r=[];for(let[e,t]of Object.entries(i)){let i=e.split("/").pop()||e;if(!i.toLowerCase().endsWith(".build")||e.includes("__MACOSX")||i.startsWith("."))continue;let a=new TextDecoder().decode(t),s=(0,l.parseBuildFileText)(a);s.ok&&r.push({name:(0,l.stripBuildExtension)(i)||s.data?.name||i,data:(0,l.normalizeBuildFileData)(s.data)})}if(!r.length)throw Error("ìì¶ ìì .build íì¼ì´ ììµëë¤.");return r}let s=new TextDecoder().decode(e),o=(0,l.parseBuildFileText)(s);if(!o.ok)throw Error(o.error||"ë¹ë íì¼ì ì½ì§ 못íìµëë¤.");return[{name:(0,l.stripBuildExtension)(a.split("/").pop()||a)||o.data?.name||"ë¹ë íëë",data:(0,l.normalizeBuildFileData)(o.data)}]}function a(e,t){let r=String(e?.id||e?.name||"").trim();if(!r)return null;let a=(0,l.resolveGemDisplayMeta)(r,{preferSupport:t},"ko");return(0,i.normalizeSkillGemRef)({id:r,label:a.label||e?.name||r,color:a.color||"neutral",icon:a.icon||""})}function s(e,t="poe2"){let l=(Array.isArray(e)?e:[]).map((e,t)=>{let l=Array.isArray(e?.data?.skills)?e.data.skills:[],r=[];for(let e of l){let t=a(e,!1);if(!t?.label&&!t?.id)continue;let l=(Array.isArray(e?.support_skills)?e.support_skills:[]).map(e=>a(e,!0)).filter(Boolean);r.push({kind:"link",id:(0,i.createSkillBoardId)("link"),main:t,supports:l})}return r.length?{id:(0,i.createSkillBoardId)("stage"),title:String(e?.name||"").trim()||`${t+1}. 구ê°`,cards:r}:null}).filter(Boolean);return(0,i.normalizeSkillBoard)({game:"poe1"===t?"poe1":"poe2",stages:l,activeStageId:l[0]?.id||""},{game:t})}e.s(["parsePlannerBundleBytes",()=>r,"skillBoardFromPlannerBuilds",()=>s])},695684,e=>{"use strict";var t=e.i(843476),l=e.i(271645),i=e.i(290627),r=e.i(351930),a=e.i(847894);let s="reim-skill-board-stage",o="REIM_SKILL_BOARD_STAGE:1\n";var n=e.i(776703),d=e.i(791191),c=e.i(556457);function u({game:e,onSelect:i,placeholder:r="ì ¬ ê²ìâ¦",disabled:a=!1}){let s=(0,l.useId)(),[o,n]=(0,l.useState)(""),[u,p]=(0,l.useState)([]),[m,b]=(0,l.useState)(!1),[g,h]=(0,l.useState)(!1),[k,f]=(0,l.useState)(-1),_=(0,l.useRef)(null),x=(0,l.useRef)(null),v=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=e=>{_.current?.contains(e.target)||b(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,l.useEffect)(()=>{if(!m||!e||"poe1"!==e&&"poe2"!==e){p([]),f(-1);return}v.current?.abort();let t=new AbortController;v.current=t;let l=setTimeout(async()=>{h(!0);try{let l=new URLSearchParams({game:e,q:o,limit:"15",types:"gem"}),i=await fetch(`/api/guide-entities?${l}`,{signal:t.signal}),r=await i.json().catch(()=>({})),a=Array.isArray(r?.data)?r.data:[];p(a),f(-1)}catch(e){e?.name!=="AbortError"&&(p([]),f(-1))}finally{h(!1)}},120);return()=>{clearTimeout(l),t.abort()}},[m,o,e]),(0,l.useEffect)(()=>{if(k<0||!x.current)return;let e=x.current.querySelector(`[data-skill-picker-index="${k}"]`);e?.scrollIntoView?.({block:"nearest"})},[k]);let y=(0,l.useCallback)(e=>{i?.(e),n(""),b(!1),f(-1)},[i]);return(0,t.jsxs)("div",{className:"reim-skill-picker",ref:_,children:[(0,t.jsx)("input",{type:"text",className:"reim-skill-picker__input",value:o,disabled:a||"poe1"!==e&&"poe2"!==e,placeholder:r,role:"combobox","aria-expanded":m,"aria-controls":s,"aria-autocomplete":"list","aria-activedescendant":k>=0?`${s}-opt-${k}`:void 0,onChange:e=>{n(e.target.value),b(!0)},onFocus:()=>b(!0),onKeyDown:e=>{if(e.stopPropagation(),m||"ArrowDown"!==e.key&&"Enter"!==e.key||b(!0),"Escape"===e.key){e.preventDefault(),b(!1),f(-1);return}if(m&&!g&&0!==u.length){if("ArrowDown"===e.key){e.preventDefault(),f(e=>e<0?0:Math.min(e+1,u.length-1));return}if("ArrowUp"===e.key){e.preventDefault(),f(e=>e<=0?-1:e-1);return}if("Enter"===e.key){e.preventDefault();let t=u[k>=0?k:0];t&&y(t)}}},onKeyUp:e=>e.stopPropagation()}),m&&(0,t.jsxs)("div",{id:s,ref:x,className:"reim-skill-picker__menu",role:"listbox",children:[g&&(0,t.jsx)("div",{className:"reim-skill-picker__empty",children:"ê²ì ì¤â¦"}),!g&&0===u.length&&(0,t.jsx)("div",{className:"reim-skill-picker__empty",children:"ê²°ê³¼ ìì"}),!g&&u.map((e,l)=>(0,t.jsxs)("button",{id:`${s}-opt-${l}`,type:"button",role:"option","aria-selected":l===k,"data-skill-picker-index":l,className:`reim-skill-picker__item${l===k?" is-active":""}`,onMouseEnter:()=>f(l),onMouseDown:t=>{t.preventDefault(),y(e)},children:[(0,t.jsx)(d.default,{icon:e.icon,color:e.color,label:e.nameKo}),(0,t.jsxs)("span",{className:"reim-skill-picker__text",children:[(0,t.jsx)("span",{className:(0,d.gemColorClass)(e.color),children:(0,c.formatGemNameWithGrade)(e.nameKo||e.nameEn,e.level)}),(0,t.jsx)("span",{className:"reim-skill-picker__meta",children:["catalog"===e.source?"ìë":null,!e.hasIcon&&!e.icon?"ìì´ì½ ìì":null,e.nameEn&&e.nameEn!==e.nameKo?e.nameEn:null].filter(
1Boolean).join(" · ")})]})]},`${e.source||"db"}-${e.id}`))]})]})}function p(){return{kind:"link",id:(0,i.createSkillBoardId)("link"),main:{id:"",label:"",color:"neutral",icon:""},supports:[]}}function m(e){return!!e&&("soloPack"===e.kind?(e.solos||[]).length>0:!!e.main?.label||(e.supports||[]).length>0)}function b(e){return!!e&&("soloPack"===e.kind?(e.solos||[]).length>0:!!e.main?.label)}function g({board:e,game:d,onChange:c,selected:u=!1,hideStageTabs:g=!1}){let[f,_]=(0,l.useState)(!1),[x,v]=(0,l.useState)(!1),[y,S]=(0,l.useState)(""),[j,w]=(0,l.useState)("poe1"===d||"poe2"===d?d:"poe2"),[N,C]=(0,l.useState)(!1),[B,P]=(0,l.useState)(""),[$,A]=(0,l.useState)(""),[E,L]=(0,l.useState)(!1),[D,I]=(0,l.useState)(""),[O,M]=(0,l.useState)(!1),[R,K]=(0,l.useState)(""),[T,z]=(0,l.useState)(""),X=(0,l.useRef)(null),[F,G]=(0,l.useState)("create"),[U,J]=(0,l.useState)("link"),[q,W]=(0,l.useState)(p),[Y,V]=(0,l.useState)(null),[H,Q]=(0,l.useState)(null),[Z,ee]=(0,l.useState)(null),et=(0,l.useRef)(null),el=(0,l.useRef)([]),ei=(0,l.useRef)(null),er=(0,l.useRef)(()=>{}),ea=(0,l.useRef)(null),es=(0,l.useMemo)(()=>(0,i.normalizeSkillBoard)(e,{game:d}),[e,d]),eo=Math.max(0,es.stages.findIndex(e=>e.id===es.activeStageId)),en=es.stages[eo]||es.stages[0],ed="poe1"===d||"poe2"===d,ec="poe2"===d,eu=(e=en)=>(e?.cards||[]).some(e=>"link"===e.kind?!!e.main?.label||(e.supports||[]).length>0:(e.solos||[]).length>0);el.current=en?.cards||[];let ep=()=>{G("create"),J("link"),W(p()),V(null)};(0,l.useEffect)(()=>{G("create"),J("link"),W(p()),V(null),Q(null),ee(null),ea.current?.()},[en?.id]),(0,l.useEffect)(()=>()=>{ea.current?.()},[]);let em=e=>{c?.((0,i.normalizeSkillBoard)(e,{game:e?.game||d}))},eb=(e,t=es.activeStageId)=>{em({...es,game:d,stages:e,activeStageId:t})},eg=e=>{eb(es.stages.map(t=>t.id===en.id?{...t,...e}:t),en.id)},eh=e=>eg({cards:e});er.current=eh;let ek=e=>{let t="copy"===e?(0,i.cloneSkillBoardStage)(en):{id:(0,i.createSkillBoardId)("stage"),title:`${es.stages.length+1}. 구ê°`,cards:[],detailHtml:""},l=[...es.stages];l.splice(eo+1,0,t),eb(l,t.id),_(!1)},ef=e=>{let t=eo+e;if(t<0||t>=es.stages.length)return;let l=[...es.stages],[i]=l.splice(eo,1);l.splice(t,0,i),eb(l,en.id)},e_=async(e="replace")=>{let t=y.trim();if(!t||N)return;if(!ed)return void P("PoB ë¶ë¬ì¤ê¸°ë PoE1/PoE2 ì¤í¬ ë³´ëììë§ ì¬ì©í ì ììµëë¤.");let l="poe1"===j?"poe1":"poe2",r=es.stages.some(e=>(e.cards||[]).some(e=>"link"===e.kind?!!e.main?.label||(e.supports||[]).length>0:(e.solos||[]).length>0));if(!r||"replace"!==e||window.confirm("íì¬ ì¤í¬ ë³´ë ë´ì©ì PoB ì¤í¬ ì¸í¸ë¡ ë®ì´ì¸ê¹ì?")){C(!0),P("");try{let a=await fetch("/api/poe2/pob-import/skill-board",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:t,game:l})}),s=await a.json().catch(()=>({}));if(!a.ok||!s?.ok||!s?.board)throw Error(s?.message||"PoB를 ë¶ë¬ì¤ì§ 못íìµëë¤.");let o=(0,i.normalizeSkillBoard)(s.board,{game:l});if(r&&"append"===e){let e=(o.stages||[]).map(e=>({...e,id:(0,i.createSkillBoardId)("stage")})),t=[...es.stages,...e];em({...es,game:l,stages:t,activeStageId:e[0]?.id||es.activeStageId})}else em({...o,game:l});let n=s.meta?.skillSetCount??o.stages?.length??0,d=s.meta?.cardCount??0,c=(Array.isArray(s.warnings)?s.warnings:[]).map(e=>e?.message).filter(Boolean),u=r&&"append"===e?"ì êµ¬ê° ì¶ê°":"ë¶ë¬ì´";P(c.length?`${u}: êµ¬ê° ${n} \xb7 ë§í¬ ${d} \xb7 ${c.join(" · ")}`:`${u}: êµ¬ê° ${n}ê° \xb7 ë§í¬ 그룹 ${d}ê°`),v(!1),S("")}catch(e){P(e instanceof Error?e.message:"PoB를 ë¶ë¬ì¤ì§ 못íìµëë¤.")}finally{C(!1)}}},ex=async(e,t="replace")=>{if(e&&!O){if(!ec)return void K("íëë íì¼ ë¶ë¬ì¤ê¸°ë PoE2 ì¤í¬ ë³´ëììë§ ì¬ì©í ì ììµëë¤.");if(!eu()||"replace"!==t||window.confirm("íì¬ êµ¬ê°ì ì¤í¬ 구ì±ì íëë íì¼ ë´ì©ì¼ë¡ ë®ì´ì¸ê¹ì?")){M(!0),K("");try{let l=await e.arrayBuffer(),r=function(e,t,l="poe2"){let i=e instanceof Uint8Array?e:new Uint8Array(e||[]),r=(0,a.parsePlannerBundleBytes)(i,t),s=(0,a.skillBoardFromPlannerBuilds)(r,l),o=Array.isArray(s?.stages)?s.stages:[],n=o.flatMap(e=>e.cards||[]);return{builds:r,board:s,stages:o,cards:n,fileCount:r.length,cardCount:n.length}}(l,e.name,"poe2");if(!r.cardCount)throw Error("íì¼ìì ì¤í¬ ì ¬ì ì°¾ì§ ëª»íìµëë¤.");if(r.fileCount>1&&window.confirm(`.build ${r.fileCount}ê°ë¥¼ ì°¾ììµëë¤. ê°ê°ì ì 구ê°ì¼ë¡ ì¶ê°í ê¹ì? 2ì·¨ì를 ë르면 모ë ì¤í¬ì íì¬ êµ¬ê°ì ë£ìµëë¤.`)){let e=r.stages.map(e=>(0,i.cloneSkillBoardStage)(e)),t=[...es.stages,...e];em({...es,stages:t,activeStageId:e[0]?.id||es.activeStageId}),K(`ì êµ¬ê° ${e.length}ê° ì¶ê° \xb7 ë§í¬ ${r.cardCount}ê°`);return}let s="merge"===t?[...en.cards||[],...r.cards]:r.cards;eh(s),K("merge"===t?`íì¬ êµ¬ê°ì ë§í¬ ${r.cards.length}ê° ì¶ê°`:`íì¬ êµ¬ê°ì íëë ì¤í¬ ${r.cards.length}ê°ë¡ ì±ì`)}
2catch(e){K(e instanceof Error?e.message:"íëë íì¼ì ë¶ë¬ì¤ì§ 못íìµëë¤.")}finally{M(!1),X.current&&(X.current.value="")}}}},ev=async()=>{z("");try{let e=function(e,t="poe2"){return o+JSON.stringify({type:s,version:1,game:"poe1"===t?"poe1":"poe2",stage:(0,i.cloneSkillBoardStage)(e)})}(en,d);await navigator.clipboard.writeText(e),z("íì¬ êµ¬ê°ì ë³µì¬íìµëë¤. ê°ì´ë ì¤í¬ ë³´ëì ë¶ì¬ë£ì¼ì¸ì.")}catch(e){z(e instanceof Error?e.message:"í´ë¦½ë³´ë ë³µì¬ì ì¤í¨íìµëë¤.")}},ey=e=>{"create"===F&&e!==U&&(!m(q)||window.confirm("ìì± ì¤ì¸ ë´ì©ì´ ì´ê¸°íë©ëë¤. ì¢ ë¥ë¥¼ ë°ê¿ê¹ì?"))&&(J(e),W("soloPack"===e?{kind:"soloPack",id:(0,i.createSkillBoardId)("solo"),solos:[]}:p()))},eS=async e=>{let t=String(e??$).trim();if(!t||E)return;let l=function(e){let t=String(e||"").trim();if(!t)return null;let l=t;if(t.startsWith(o))l=t.slice(o.length).trim();else if(!t.startsWith("{"))return null;try{let e=JSON.parse(l);if(!e||e.type!==s||!e.stage)return null;let t=(0,i.normalizeSkillBoardStage)({...e.stage,id:(0,i.createSkillBoardId)("stage")},0),r=(0,i.cloneSkillBoardStage)(t);return{game:"poe1"===e.game?"poe1":"poe2",stage:r}}catch{return null}}(t);if(l?.stage){L(!0),I("");try{let e=l.stage,t=(e.cards||[]).length;if(!t)return void I("ë³µì¬í 구ê°ì ì¤í¬ì´ ììµëë¤.");if(!eu()||window.confirm(`ë³µì¬í êµ¬ê° ì¤í¬ ${t}ê°ë¥¼ íì¬ êµ¬ê°ì í©ì¹ ê¹ì? 3ì·¨ì를 ë르면 ì 구ê°ì¼ë¡ ì¶ê°í©ëë¤.`))eh([...en.cards||[],...e.cards||[]]),I(`íì¬ êµ¬ê°ì ë§í¬ ${t}ê° ë¶ì¬ë£ì`);else{let l=(0,i.cloneSkillBoardStage)(e);l.title?.trim()||(l.title=`${es.stages.length+1}. 구ê°`);let r=[...es.stages,l];em({...es,stages:r,activeStageId:l.id}),I(`ì 구ê°ì¼ë¡ ë§í¬ ${t}ê° ì¶ê°`)}A("")}finally{L(!1)}return}let a=(0,r.parseSkillBoardPasteText)(t);if(!a.length)return void I("ë¶ì¬ë£ì ë´ì©ì´ ììµëë¤.");let n=[...new Set(a.flatMap(e=>e.names))],c="poe1"===d||"poe2"===d?d:"poe2";L(!0),I("");try{let e=await fetch("/api/guide-entities/resolve-gems",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({game:c,names:n})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error||"ì ¬ ì´ë¦ì í´ìíì§ ëª»íìµëë¤.");let l=t?.resolved&&"object"==typeof t.resolved?t.resolved:{},i=(0,r.buildSkillBoardCardsFromPaste)(a,l);i.cards.length&&eh([...en.cards,...i.cards]),I((0,r.formatSkillBoardPasteMessage)(i)),A("")}catch(e){I(e instanceof Error?e.message:"ë¶ì¬ë£ê¸° ì ì© ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}finally{L(!1)}};return(0,t.jsxs)("div",{className:`reim-skill-board-editor${u?" is-selected":""}`,contentEditable:!1,onKeyDown:e=>e.stopPropagation(),onKeyUp:e=>e.stopPropagation(),onKeyPress:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"reim-skill-board-editor__toolbar",children:[(0,t.jsx)("strong",{children:"ì¤í¬ ë³´ë"}),(0,t.jsxs)("span",{className:"reim-skill-board-editor__hint",children:["ìì± í ìë£ Â· ì¹´ë ëëê·¸ë¡ ìì ë³ê²½ · ë¨ë 묶ì ìµë ",i.SKILL_BOARD_SOLO_MAX]}),ed?(0,t.jsx)("button",{type:"button",className:`reim-skill-board-editor__pob-toggle${x?" is-active":""}`,onClick:()=>{v(e=>(e||w("poe1"===d?"poe1":"poe2"),!e)),P("")},children:"PoB ë¶ë¬ì¤ê¸°"}):null,ec?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:X,type:"file",accept:".build,.zip,application/zip",hidden:!0,onChange:e=>{let t=e.target.files?.[0];t&&ex(t,"replace")}}),(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__pob-toggle",disabled:O,onClick:()=>X.current?.click(),children:O?"ë¶ë¬ì¤ë ì¤â¦":"íëë íì¼"}),(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__pob-toggle",disabled:O,onClick:()=>{let e=document.createElement("input");e.type="file",e.accept=".build,.zip,application/zip",e.onchange=()=>{let t=e.files?.[0];t&&ex(t,"merge")},e.click()},children:"íì¼ í©ì¹ê¸°"})]}):null,(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__pob-toggle",onClick:()=>void ev(),children:"êµ¬ê° ë³µì¬"})]}),R?(0,t.jsx)("p",{className:"reim-skill-board-editor__pob-message",children:R}):null,T?(0,t.jsx)("p",{className:"reim-skill-board-editor__pob-message",children:T}):null,x&&ed?(0,t.jsxs)("div",{className:"reim-skill-board-editor__pob",children:[(0,t.jsx)("p",{className:"reim-skill-board-editor__hint",children:"PoB ì½ë ëë pobb.in / pob.codes 주ì를 ë£ì¼ë©´ ì¤í¬ ì¸í¸ë§ë¤ 구ê°ì´ ë§ë¤ì´ì§ëë¤. ì´ë¯¸ 구ê°ì´ ìì¼ë©´ ì 구ê°ì¼ë¡ ì¶ê°í ì ììµëë¤. ì¡í¸ê° ìë PoBë 구ê°ì ì§ì ë§ë ë¤, ëì¤ì ë¤ë¥¸ PoB를 ì 구ê°ì¼ë¡ ê°ì ¸ì
3¤ë©´ ë©ëë¤."}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__pob-game",children:[(0,t.jsx)("span",{children:"ê²ì"}),(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"radio",name:"skill-board-pob-game",checked:"poe1"===j,onChange:()=>w("poe1"),disabled:N}),"PoE1"]}),(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"radio",name:"skill-board-pob-game",checked:"poe2"===j,onChange:()=>w("poe2"),disabled:N}),"PoE2"]})]}),(0,t.jsx)("textarea",{className:"reim-skill-board-editor__pob-input",value:y,onChange:e=>S(e.target.value),onKeyDown:e=>e.stopPropagation(),placeholder:"https://pob.codes/b/... · pobb.in/... · ëë PoB ì½ë",rows:3,spellCheck:!1,disabled:N}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__pob-actions",children:[(0,t.jsx)("button",{type:"button",onClick:()=>e_("replace"),disabled:N||!y.trim(),children:N?"ë¶ë¬ì¤ë ì¤â¦":"ë³´ëì ì±ì°ê¸°"}),(0,t.jsx)("button",{type:"button",onClick:()=>e_("append"),disabled:N||!y.trim(),children:"ì 구ê°ì¼ë¡ ì¶ê°"}),(0,t.jsx)("button",{type:"button",onClick:()=>{v(!1),P("")},disabled:N,children:"ë«ê¸°"})]})]}):null,B?(0,t.jsx)("p",{className:"reim-skill-board-editor__pob-message",children:B}):null,g?null:(0,t.jsxs)("div",{className:"reim-skill-board-editor__stages",children:[es.stages.map(e=>(0,t.jsx)("button",{type:"button",className:`reim-skill-board-editor__stage-tab${e.id===en.id?" is-active":""}`,onClick:()=>{var t;return t=e.id,void em({...es,activeStageId:t})},children:e.title},e.id)),f?(0,t.jsxs)("div",{className:"reim-skill-board-editor__stage-add-menu",children:[(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__stage-add",onClick:()=>
3ek("copy"),title:"íì¬ êµ¬ê°ì ë§í¬/ë¨ë
그룹ì ë³µì¬í©ëë¤",children:"ì êµ¬ê° ë³µì¬"}),(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__stage-add",onClick:()=>ek("blank"),children:"ë¹ êµ¬ê°"}),(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__stage-add",onClick:()=>_(!1),children:"ì·¨ì"})]}):(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__stage-add",onClick:()=>_(!0),children:"+ 구ê°"})]}),g?null:(0,t.jsxs)("div",{className:"reim-skill-board-editor__stage-fields",children:[(0,t.jsxs)("label",{children:["êµ¬ê° ì 목",(0,t.jsx)("input",{type:"text",value:en.title,onChange:e=>{eg({title:e.target.value})},onKeyDown:e=>{e.stopPropagation()},placeholder:`${eo+1}. 구ê°`})]}),es.stages.length>1&&(0,t.jsxs)("div",{className:"reim-skill-board-editor__stage-tools",children:[(0,t.jsx)("button",{type:"button",onClick:()=>ef(-1),title:"ì¼ìª½ì¼ë¡ ì´ë",children:"â"}),(0,t.jsx)("button",{type:"button",onClick:()=>ef(1),title:"ì¤ë¥¸ìª½ì¼ë¡ ì´ë",children:"â"}),(0,t.jsx)("button",{type:"button",className:"reim-skill-board-editor__danger",onClick:()=>{if(es.stages.length<=1)return;let e=es.stages.filter(e=>e.id!==en.id);eb(e,e[0]?.id)},children:"ì´ êµ¬ê° ìì "})]})]}),(0,t.jsxs)("div",{ref:et,className:`reim-skill-board-editor__composer${"edit"===F?" is-editing":""}`,children:[(0,t.jsxs)("div",{className:"reim-skill-board-editor__card-head",children:[(0,t.jsx)("span",{children:"edit"===F?`${q?.kind==="soloPack"?"ë¨ë
묶ì":"ë§í¬ 그룹"} ìì `:"ì 그룹"}),"create"===F?(0,t.jsxs)("div",{className:"reim-skill-board-editor__kind-toggle",children:[(0,t.jsx)("button",{type:"button",className:"link"===U?"is-active":"",onClick:()=>ey("link"),children:"ë§í¬ 그룹"}),(0,t.jsx)("button",{type:"button",className:"soloPack"===U?"is-active":"",onClick:()=>ey("soloPack"),children:"ë¨ë
묶ì"})]}):null]}),"soloPack"===U?(0,t.jsx)(k,{card:q,game:d,onChange:W}):(0,t.jsx)(h,{card:q,game:d,onChange:W}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__composer-actions",children:[(0,t.jsx)("button",{type:"button",className:"is-primary",disabled:!b(q),onClick:()=>{if(b(q)){if("edit"===F&&Y){let e={...q,id:Y};eh(en.cards.map(t=>t.id===Y?e:t))}else eh([...en.cards,q]);ep()}},children:"ìë£"}),"edit"===F?(0,t.jsx)("button",{type:"button",onClick:ep,children:"ì·¨ì"}):(0,t.jsx)("span",{className:"reim-skill-board-editor__hint",children:"ìë£ë¥¼ ë르면 ì¹´ëë¡ ì¶ê°ë©ëë¤."})]})]}),en.cards.length?(0,t.jsxs)("div",{ref:ei,className:"reim-skill-board reim-skill-board-editor__board","data-game":es.game,children:[en.title?.trim()?(0,t.jsx)("div",{className:"reim-skill-board__title-only",children:en.title}):null,(0,t.jsx)("div",{className:"reim-skill-board__grid",children:en.cards.map((e,l)=>{let i=en.cards.slice(0,l).filter(m).length;return(0,t.jsxs)("div",{"data-skill-card-id":e.id,className:`reim-skill-board-editor__preview-card${H===e.id?" is-dragging":""}${Z?.id===e.id&&"before"===Z.side?" is-drop-before":""}${Z?.id===e.id&&"after"===Z.side?" is-drop-after":""}${Y===e.id?" is-editing":""}`,title:"ëì´ ìì ë³ê²½",onMouseDown:e=>{e.target.closest("button, input, select, textarea, a, label")||(e.preventDefault(),e.stopPropagation())},onPointerDown:t=>((e,t)=>{if(0!==e.button||e.target.closest("button, input, select, textarea, a, label"))return;e.preventDefault(),e.stopPropagation();let l=e.clientX,i=e.clientY,r=!1,a=null,s=null,o=0,n=0,d=e=>{ea.current&&(ea.current=null,window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),s?.remove(),s=null,document.body.classList.remove("reim-skill-board-dragging"),Q(null),ee(null),e&&r&&a&&((e,t,l)=>{if(!e||!t||e===t)return;let i=[...el.current||[]],r=i.findIndex(t=>t.id===e);if(r<0)return;let[a]=i.splice(r,1),s=i.findIndex(e=>e.id===t);s<0||("after"===l&&(s+=1),i.splice(s,0,a),er.current(i))})(t,a.id,a.side))},c=e=>{if(!(!r&&6>Math.hypot(e.clientX-l,e.clientY-i))){if(!r){r=!0,Q(t),document.body.classList.add("reim-skill-board-dragging");let l=ei.current?.querySelector(`[data-skill-card-id="${CSS.escape(t)}"]`);if(l){let t=l.getBoundingClientRect();o=e.clientX-t.left,n=e.clientY-t.top;let i=document.createElement("div");i.className="reim-skill-board reim-skill-board-editor__drag-ghost",i.setAttribute("aria-hidden","true");let r=l.cloneNode(!0);r.querySelector(".reim-skill-board-editor__preview-tools")?.remove(),r.classList.remove("is-dragging","is-editing","is-drop-before","is-drop-after","is-drop-target"),r.removeAttribute("title"),i.appendChild(r),i.style.width=`${t.width}px`,i.style.height=`${t.height}px`,i.style.left=`${e.clientX-o}px`,i.style.top=`${e.clientY-n}px`,document.body.appendChild(i),s=i}}e.preventDefault(),s&&(s.style.left=`${e.clientX-o}px`,s.style.top=`${e.clientY-n}px`),a=((e,t,l)=>{let i=ei.current;if(!i)return null;let r=null,a=null,s=1/0;for(let o of i.querySelectorAll("[data-skill-card-id]")){let i=o.getAttribute("data-skill-card-id");if(!i||i===l)continue;let n=o.getBoundingClientRect(),d=e<n.left+n.width/2?"before":"after";if(e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom){r={id:i,side:d};break}let c=Math.min(Math.max(e,n.left),n.right),u=Math.min(Math.max(t,n.top),n.bottom),p=Math.hypot(e-c,t-u);p<s&&(s=p,a={id:i,side:d})}return r||(s<=40?a:null)})(e.clientX,e.clientY,t),ee(e=>e?.id===a?.id&&e?.side===a?.side?e:a)}},u=()=>d(!0);ea.current=()=>d(!1),window.addEventListener("pointermove",c),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",u)})(t,e.id),children:[(0,t.jsxs)("div",{className:"reim-skill-board-editor__preview-tools",children:[(0,t.jsx)("button",{type:"button",title:"ìì ","aria-label":"ìì ",onClick:()=>{Y===e.id?et.current?.scrollIntoView({block:"nearest",behavior:"smooth"}):"create"===F&&m(q)&&!window.confirm("ìì± ì¤ì¸ ë´ì©ì´ ììµëë¤. ì´ ì¹´ë를 ìì í ê¹ì?")||("edit"!==F||!Y||Y===e.id||window.confirm("ìì ì¤ì¸ ë´ì©ì ì·¨ìíê³ ë¤ë¥¸ ì¹´ë를 ìì í ê¹ì?"))&&(G("edit"),J("soloPack"===e.kind?"soloPack":"link"),V(e.id),W(JSON.parse(JSON.stringify(e))),requestAnimationFrame(()=>{et.current?.scrollIntoView({block:"nearest",behavior:"smooth"})}))},children:"ìì "}),(0,t.jsx)("button",{type:"button",title:"ìì ","aria-label":"ìì ",onClick:()=>{var t;return t=e.id,void(eh(en.cards.filter(e=>e.id!==t)),Y===t&&ep())},children:"ìì "})]}),m(e)?(0,t.jsx)(n.SkillBoardCardPreview,{card:e,index:i}):(0,t.jsx)("p",{className:"reim-skill-board-editor__preview-empty",children:"ë¹ì´ ìë ì¹´ë"})]},e.id)})})]}):(0,t.jsx)("p",{className:"reim-skill-board-editor__empty",children:"ìì§ ë±ë¡ë ì¹´ëê° ììµëë¤."}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__card-actions",children:[(0,t.jsx)("textarea",{className:"reim-skill-board-editor__paste-input",value:$,disabled:E,rows:1,placeholder:"ë¶ì¬ë£ê¸°: êµ¬ê° ë³µì¬ JSON · ëë ë©ì¸ - 보조⦠/ ë¨ë
/ ë¨ë
",onChange:e=>A(e.target.value),onPaste:e=>{let t=e.clipboardData?.getData("text");t?.trim()&&(e.preventDefault(),A(t),eS(t))},onKeyDown:e=>{e.stopPropagation(),"Enter"!==e.key||e.shiftKey||(e.preventDefault(),eS($))}}),(0,t.jsx)("button",{type:"button",onClick:()=>void eS($),disabled:E||!$.trim(),children:E?"ì ì© ì¤â¦":"ë¶ì¬ë£ê¸° ì ì©"})]}),D?(0,t.jsx)("p",{className:"reim-skill-board-editor__paste-message",children:D}):null]})}
3function h({card:e,game:l,onChange:r}){return(0,t.jsxs)("div",{className:"reim-skill-board-editor__link",children:[(0,t.jsxs)("div",{className:"reim-skill-board-editor__row",children:[(0,t.jsx)("span",{className:"reim-skill-board-editor__label",children:"ë©ì¸"}),e.main?.label?(0,t.jsxs)("span",{className:"reim-skill-board-editor__chip",children:[(0,t.jsx)(d.default,{icon:e.main.icon,color:e.main.color,label:e.main.label}),(0,t.jsx)("span",{className:(0,d.gemColorClass)(e.main.color),children:e.main.label}),(0,t.jsxs)("label",{className:"reim-skill-board-editor__level",children:["Lv",(0,t.jsx)("input",{type:"number",min:1,max:40,value:e.main.level??"",placeholder:"â",onChange:t=>(t=>{if(!e.main)return;let l=""===t?null:Number(t),i={...e.main};null!=l&&Number.isFinite(l)&&l>=1?i.level=Math.round(l):delete i.level,r({...e,main:i})})(t.target.value),onKeyDown:e=>e.stopPropagation()})]}),(0,t.jsx)("button",{type:"button",onClick:()=>r({...e,main:{id:"",label:"",color:"neutral",icon:""}}),children:"ë³ê²½"})]}):(0,t.jsx)(u,{game:l,onSelect:t=>{let l=(0,i.entityToSkillGemRef)(t);l&&r({...e,main:{...l,...e.main?.level!=null?{level:e.main.level}:{}}})},placeholder:"ë©ì¸ ì ¬ ê²ì"})]}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__row",children:[(0,t.jsx)("span",{className:"reim-skill-board-editor__label",children:"무기 ì¸í¸"}),(0,t.jsxs)("select",{className:"reim-skill-board-editor__weapon-set",value:1===e.weaponSet||2===e.weaponSet?String(e.weaponSet):"",onChange:t=>(t=>{if("1"===t)r({...e,weaponSet:1});else if("2"===t)r({...e,weaponSet:2});else{let t={...e};delete t.weaponSet,r(t)}})(t.target.value),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsx)("option",{value:"",children:"ì쪽 / íì ì í¨"}),(0,t.jsx)("option",{value:"1",children:"ì¸í¸ I ë§"}),(0,t.jsx)("option",{value:"2",children:"ì¸í¸ II ë§"})]})]}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__row",children:[(0,t.jsx)("span",{className:"reim-skill-board-editor__label",children:"ë³´ì¡°"}),(0,t.jsxs)("div",{className:"reim-skill-board-editor__supports",children:[(e.supports||[]).map((l,i)=>(0,t.jsxs)("span",{className:"reim-skill-board-editor__chip",children:[(0,t.jsx)("span",{className:(0,d.gemColorClass)(l.color),children:l.label}),(0,t.jsxs)("label",{className:"reim-skill-board-editor__level",children:["Lv",(0,t.jsx)("input",{type:"number",min:1,max:40,value:l.level??"",placeholder:"â",onChange:t=>{var l;let a;return l=t.target.value,a=(e.supports||[]).map((e,t)=>{if(t!==i)return e;let r={...e},a=""===l?null:Number(l);return null!=a&&Number.isFinite(a)&&a>=1?r.level=Math.round(a):delete r.level,r}),void r({...e,supports:a})},onKeyDown:e=>e.stopPropagation()})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{r({...e,supports:e.supports.filter((e,t)=>t!==i)})},children:"Ã"})]},`${l.id}-${i}`)),(0,t.jsx)(u,{game:l,onSelect:t=>{let l=(0,i.entityToSkillGemRef)(t);l&&r({...e,supports:[...e.supports||[],l]})},placeholder:"ë³´ì¡° ì ¬ ì¶ê° (ìì¼ë©´ ë¨ë
ë§í¬)"})]})]})]})}
3function k({card:e,game:l,onChange:r}){return(0,t.jsxs)("div",{className:"reim-skill-board-editor__solo",children:[(0,t.jsx)("div",{className:"reim-skill-board-editor__supports",children:(e.solos||[]).map((l,i)=>(0,t.jsxs)("span",{className:"reim-skill-board-editor__chip",children:[(0,t.jsx)(d.default,{icon:l.icon,color:l.color,label:l.label}),(0,t.jsx)("span",{className:(0,d.gemColorClass)(l.color),children:l.label}),(0,t.jsx)("button",{type:"button",onClick:()=>{r({...e,solos:e.solos.filter((e,t)=>t!==i)})},children:"Ã"})]},`${l.id}-${i}`))}),(e.solos||[]).length<i.SKILL_BOARD_SOLO_MAX?(0,t.jsx)(u,{game:l,onSelect:t=>{if((e.solos||[]).length>=i.SKILL_BOARD_SOLO_MAX)return;let l=(0,i.entityToSkillGemRef)(t);l&&r({...e,solos:[...e.solos||[],l].slice(0,i.SKILL_BOARD_SOLO_MAX)})},placeholder:`ë¨ë
ì ¬ ì¶ê° (${(e.solos||[]).length}/${i.SKILL_BOARD_SOLO_MAX})`}):(0,t.jsxs)("p",{className:"reim-skill-board-editor__hint",children:["ë¨ë
묶ìì ìµë ",i.SKILL_BOARD_SOLO_MAX,"ê°ì
ëë¤."]})]})}e.s(["default",()=>g],695684)}]);
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.