From b2bc7578a3ea54ce169506d5d4a0177b609ed388 Mon Sep 17 00:00:00 2001 From: Ujaa Date: Thu, 5 Dec 2024 02:59:10 +0000 Subject: [PATCH] deploy: 8c3233b57d025a86c5893544cd77e7c549f75ad6 --- ...Mark-DESJ10-F.js => CoachMark-CMgIOAJW.js} | 2 +- ...OcWNj.js => CoachMark.stories-BVRTBrZc.js} | 2 +- ...s => CodeExportButton.stories-D599SYKt.js} | 2 +- ...CDJkqvML.js => Color-F6OSRLHC-CuGklq2Y.js} | 2 +- ...D1UKcKt2.js => CssCategoryBar-DrLnwxhd.js} | 2 +- ....js => CssCategoryBar.stories-55z6K7mT.js} | 2 +- ...3.js => CssOptionItem.stories-_rigQ6-T.js} | 2 +- ...BJ29P.js => CssOptionItemList-BWXhZs3U.js} | 2 +- ... => CssOptionItemList.stories-rgxtEXCr.js} | 2 +- assets/CssPropsSelectBox-C4R-4nDE.js | 65 ------------------- assets/CssPropsSelectBox-CWdNthdf.js | 65 +++++++++++++++++++ ... => CssPropsSelectBox.stories-B-QohfUN.js} | 2 +- ...js => CssPropsSelectBoxHeader-B3hshmtR.js} | 2 +- ...sPropsSelectBoxHeader.stories-BJGNCLEN.js} | 2 +- ...0.js => DocsRenderer-CFRXHY34-Ak6QnDix.js} | 8 +-- ...C-zl3eeh.js => EmptyWorkspace-C_olE9C4.js} | 2 +- ....js => EmptyWorkspace.stories-DKt4U6ds.js} | 2 +- assets/ErrorContent-BILLHmWU.js | 1 - assets/ErrorContent-D7ex5NJl.js | 1 + ...F1.js => ErrorContent.stories-BZ4U5NZ1.js} | 2 +- ..._tl3x.js => ErrorPage.stories-D8KQAKLZ.js} | 2 +- ...der-DYXMEvCV.js => HomeHeader-C8BV9Y6D.js} | 2 +- ...FSiO.js => HomeHeader.stories-7Orf3bfd.js} | 2 +- ...WGS5Gb.js => HomePage.stories-C3QbMGkg.js} | 2 +- ...9.js => HoveredEmptyWorkspace-BMs7Nsgo.js} | 52 +++++++-------- ...HoveredEmptyWorkspace.stories-Cv2-uVjA.js} | 2 +- ...-DbH7oCNi.js => ImageTagModal-D2PPsknK.js} | 2 +- ...O.js => ImageTagModal.stories-Bilj1Xz8.js} | 2 +- ... => ImageTagModalList.stories-DpekBuu4.js} | 2 +- ...Found-D7Own4ne.js => NotFound-BUCDSp1S.js} | 2 +- ...Fj178k.js => NotFound.stories-By56dNKE.js} | 2 +- ...ygJg.js => RedoButton.stories-Ck1f1xKh.js} | 2 +- ...QSOd.js => SaveButton.stories-BN4-ycfX.js} | 2 +- ...BpCjMs0I.js => Select.stories-BTOnjg5m.js} | 2 +- ...De3r.js => UndoButton.stories-B747gNkl.js} | 2 +- ...js => WorkspaceAddBtn.stories-CY1ZOG0k.js} | 2 +- ...=> WorkspaceContainer.stories-X92PftVG.js} | 2 +- ...s => WorkspaceContent.stories-rP4W9iPW.js} | 2 +- ...h.js => WorkspaceGrid.stories-BZXbhW_z.js} | 2 +- ...igAUUkC.js => WorkspaceHeader-BOFktQY9.js} | 2 +- ...js => WorkspaceHeader.stories-DudoqoOG.js} | 2 +- ....js => WorkspaceHeaderButtons-u6rliLN5.js} | 2 +- ...orkspaceHeaderButtons.stories-Pb3CzoXs.js} | 2 +- ...C.js => WorkspaceItem.stories-DUFiwSOj.js} | 2 +- ...-E8ahMSIZ.js => WorkspaceList-m-7GHa-8.js} | 2 +- ...V.js => WorkspaceList.stories-DhBjHqN4.js} | 2 +- ...DaqQAmWl.js => WorkspaceModal-DhaiX4aW.js} | 2 +- ....js => WorkspaceModal.stories-SqnlApMm.js} | 2 +- ...=> WorkspaceNameInput.stories-CriIje7n.js} | 2 +- assets/WorkspacePage.stories-CFuAcDwn.js | 6 ++ assets/WorkspacePage.stories-w2KOajrq.js | 6 -- ...uQQ.js => WorkspacePageHeader-aZtuRt_K.js} | 2 +- ...> WorkspacePageHeader.stories-CyaKLKen.js} | 2 +- ...WorkspaceSampleButton.stories-DhtdsW07.js} | 2 +- ...-n-EAC44k.js => entry-preview-_EqQ61Wc.js} | 2 +- ...{iframe-Br-BqK10.js => iframe-B3pNietc.js} | 4 +- .../{index-hp3BBEcD.js => index-Bd8KzZft.js} | 2 +- ...review-Pxvs7-8_.js => preview-Dcu9G6AI.js} | 4 +- iframe.html | 2 +- project.json | 2 +- 60 files changed, 156 insertions(+), 156 deletions(-) rename assets/{CoachMark-DESJ10-F.js => CoachMark-CMgIOAJW.js} (98%) rename assets/{CoachMark.stories-BnuOcWNj.js => CoachMark.stories-BVRTBrZc.js} (91%) rename assets/{CodeExportButton.stories-Bc7P7zXG.js => CodeExportButton.stories-D599SYKt.js} (95%) rename assets/{Color-F6OSRLHC-CDJkqvML.js => Color-F6OSRLHC-CuGklq2Y.js} (99%) rename assets/{CssCategoryBar-D1UKcKt2.js => CssCategoryBar-DrLnwxhd.js} (92%) rename assets/{CssCategoryBar.stories-B-DvKVaP.js => CssCategoryBar.stories-55z6K7mT.js} (90%) rename assets/{CssOptionItem.stories-BFk8Czd3.js => CssOptionItem.stories-_rigQ6-T.js} (97%) rename assets/{CssOptionItemList-BIQBJ29P.js => CssOptionItemList-BWXhZs3U.js} (93%) rename assets/{CssOptionItemList.stories-PbySAeJT.js => CssOptionItemList.stories-rgxtEXCr.js} (94%) delete mode 100644 assets/CssPropsSelectBox-C4R-4nDE.js create mode 100644 assets/CssPropsSelectBox-CWdNthdf.js rename assets/{CssPropsSelectBox.stories-QeQH_zEo.js => CssPropsSelectBox.stories-B-QohfUN.js} (80%) rename assets/{CssPropsSelectBoxHeader-BZsI6_U6.js => CssPropsSelectBoxHeader-B3hshmtR.js} (94%) rename assets/{CssPropsSelectBoxHeader.stories-CcHVZcKY.js => CssPropsSelectBoxHeader.stories-BJGNCLEN.js} (95%) rename assets/{DocsRenderer-CFRXHY34-wwSIYXp0.js => DocsRenderer-CFRXHY34-Ak6QnDix.js} (99%) rename assets/{EmptyWorkspace-C-zl3eeh.js => EmptyWorkspace-C_olE9C4.js} (92%) rename assets/{EmptyWorkspace.stories-rY0lL7Pm.js => EmptyWorkspace.stories-DKt4U6ds.js} (90%) delete mode 100644 assets/ErrorContent-BILLHmWU.js create mode 100644 assets/ErrorContent-D7ex5NJl.js rename assets/{ErrorContent.stories-rjA0C6F1.js => ErrorContent.stories-BZ4U5NZ1.js} (66%) rename assets/{ErrorPage.stories-f9-_tl3x.js => ErrorPage.stories-D8KQAKLZ.js} (68%) rename assets/{HomeHeader-DYXMEvCV.js => HomeHeader-C8BV9Y6D.js} (92%) rename assets/{HomeHeader.stories-CuRhFSiO.js => HomeHeader.stories-7Orf3bfd.js} (92%) rename assets/{HomePage.stories-nuWGS5Gb.js => HomePage.stories-C3QbMGkg.js} (75%) rename assets/{HoveredEmptyWorkspace-B1GBnKX9.js => HoveredEmptyWorkspace-BMs7Nsgo.js} (89%) rename assets/{HoveredEmptyWorkspace.stories-9uefTMUv.js => HoveredEmptyWorkspace.stories-Cv2-uVjA.js} (95%) rename assets/{ImageTagModal-DbH7oCNi.js => ImageTagModal-D2PPsknK.js} (97%) rename assets/{ImageTagModal.stories-CkMqjJ4O.js => ImageTagModal.stories-Bilj1Xz8.js} (90%) rename assets/{ImageTagModalList.stories-DV0djgRj.js => ImageTagModalList.stories-DpekBuu4.js} (97%) rename assets/{NotFound-D7Own4ne.js => NotFound-BUCDSp1S.js} (79%) rename assets/{NotFound.stories-YmFj178k.js => NotFound.stories-By56dNKE.js} (63%) rename assets/{RedoButton.stories-D7eyygJg.js => RedoButton.stories-Ck1f1xKh.js} (95%) rename assets/{SaveButton.stories-B3p_QSOd.js => SaveButton.stories-BN4-ycfX.js} (95%) rename assets/{Select.stories-BpCjMs0I.js => Select.stories-BTOnjg5m.js} (96%) rename assets/{UndoButton.stories-DeBTDe3r.js => UndoButton.stories-B747gNkl.js} (95%) rename assets/{WorkspaceAddBtn.stories-DQgKlxDR.js => WorkspaceAddBtn.stories-CY1ZOG0k.js} (95%) rename assets/{WorkspaceContainer.stories-DXGgcS_J.js => WorkspaceContainer.stories-X92PftVG.js} (63%) rename assets/{WorkspaceContent.stories-CXY4nPEO.js => WorkspaceContent.stories-rP4W9iPW.js} (65%) rename assets/{WorkspaceGrid.stories-bi2t6aVh.js => WorkspaceGrid.stories-BZXbhW_z.js} (98%) rename assets/{WorkspaceHeader-BigAUUkC.js => WorkspaceHeader-BOFktQY9.js} (92%) rename assets/{WorkspaceHeader.stories-BCT-sagY.js => WorkspaceHeader.stories-DudoqoOG.js} (91%) rename assets/{WorkspaceHeaderButtons-DtKBgv7W.js => WorkspaceHeaderButtons-u6rliLN5.js} (92%) rename assets/{WorkspaceHeaderButtons.stories-DLWxKga4.js => WorkspaceHeaderButtons.stories-Pb3CzoXs.js} (91%) rename assets/{WorkspaceItem.stories-BNI5aWjC.js => WorkspaceItem.stories-DUFiwSOj.js} (97%) rename assets/{WorkspaceList-E8ahMSIZ.js => WorkspaceList-m-7GHa-8.js} (97%) rename assets/{WorkspaceList.stories-nt9wjUqV.js => WorkspaceList.stories-DhBjHqN4.js} (95%) rename assets/{WorkspaceModal-DaqQAmWl.js => WorkspaceModal-DhaiX4aW.js} (95%) rename assets/{WorkspaceModal.stories-BvCRkHjS.js => WorkspaceModal.stories-SqnlApMm.js} (93%) rename assets/{WorkspaceNameInput.stories-CysUBGqj.js => WorkspaceNameInput.stories-CriIje7n.js} (95%) create mode 100644 assets/WorkspacePage.stories-CFuAcDwn.js delete mode 100644 assets/WorkspacePage.stories-w2KOajrq.js rename assets/{WorkspacePageHeader-wp4p4uQQ.js => WorkspacePageHeader-aZtuRt_K.js} (91%) rename assets/{WorkspacePageHeader.stories-24YhCDht.js => WorkspacePageHeader.stories-CyaKLKen.js} (86%) rename assets/{WorkspaceSampleButton.stories-B7umvfKo.js => WorkspaceSampleButton.stories-DhtdsW07.js} (95%) rename assets/{entry-preview-n-EAC44k.js => entry-preview-_EqQ61Wc.js} (99%) rename assets/{iframe-Br-BqK10.js => iframe-B3pNietc.js} (76%) rename assets/{index-hp3BBEcD.js => index-Bd8KzZft.js} (92%) rename assets/{preview-Pxvs7-8_.js => preview-Dcu9G6AI.js} (77%) diff --git a/assets/CoachMark-DESJ10-F.js b/assets/CoachMark-CMgIOAJW.js similarity index 98% rename from assets/CoachMark-DESJ10-F.js rename to assets/CoachMark-CMgIOAJW.js index d34ebf5d..ceacfe11 100644 --- a/assets/CoachMark-DESJ10-F.js +++ b/assets/CoachMark-CMgIOAJW.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{r as d}from"./index-DRjF_FHU.js";import{u as p}from"./useCoachMarkStore-B_Mp-SD7.js";import{C as i}from"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{g}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";const r=[{title:"HTML 태그 블록 조립하기",content:e.jsxs(e.Fragment,{children:["오른쪽 ",e.jsx("span",{className:"coachMarkHighlightText",children:"HTML 태그 탭"}),"에서 블록을 가져와 ",e.jsx("br",{}),"작업 공간에서 조립할 수 있어요"]})},{title:"CSS 클래스 블록 생성 후 조립하기",content:e.jsxs(e.Fragment,{children:["원하는 ",e.jsx("span",{className:"coachMarkHighlightText",children:"CSS 클래스 블록"}),"을 생성할 수 있어요.",e.jsx("br",{}),"생성된 블록은 HTML 블록에 조립할 수 있어요"]})},{title:"스타일 속성 추가하기",content:e.jsxs(e.Fragment,{children:["생성한 ",e.jsx("span",{className:"coachMarkHighlightText",children:"CSS 클래스 블록"}),"을 선택해 ",e.jsx("br",{}),"원하는",e.jsx("span",{className:"coachMarkHighlightText",children:"스타일 속성"}),"을 추가할 수 있어요"]})},{title:"미리보기와 코드 확인하기",content:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"coachMarkHighlightText",children:"미리보기"})," 탭에서는 블록 코딩으로 만든 화면을,",e.jsx("br",{}),e.jsx("span",{className:"coachMarkHighlightText",children:"HTML/CSS"})," 탭에서는 코드를 확인할 수 있어요."]})},{title:"저장하고 불러오기",content:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"coachMarkHighlightText",children:"저장"}),"하지 않고 나가면 블록이 사라져요. ",e.jsx("br",{}),"변경 사항은 ",e.jsx("span",{className:"coachMarkHighlightText",children:"되돌리거나 다시 적용"}),"할 수 있어요."]})}],b=()=>{const{currentStep:s,setCurrentStep:l,closeCoachMark:o}=p(),t=r.length,a=document.querySelector(".blocklyToolboxDiv"),h=()=>{s{s>0&&l(s-1)},x=()=>{localStorage.setItem("isCoachMarkDismissed","true"),o()};return d.useEffect(()=>{const n=g();if(!n)return;const c=n.getToolbox();if(c){switch(s){case 0:c.clickTab("html");break;case 1:c.clickTab("css");break;case 2:c.clickTab("html")}a&&(s<=1?a.classList.add("coachMarkHighlight"):a.classList.remove("coachMarkHighlight"))}},[s,a]),e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black bg-opacity-70",children:e.jsxs("div",{className:"z-[99999] min-h-40 min-w-96 rounded-2xl bg-white p-6 pb-4 shadow-2xl",children:[e.jsx("h2",{className:"text-bold-sm mb-4 text-gray-200",children:r[s].title}),e.jsx("p",{className:"text-medium-md mb-6 whitespace-pre-line",children:r[s].content}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"text-bold-sm text-green-500",children:[s+1,"/",t]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(i,{onClick:x,disable:s===t,className:"text-bold-sm h-8 w-16",variant:"outlined","aria-label":"가이드 그만 보기 버튼",children:"그만 보기"}),e.jsx(i,{className:"text-bold-sm h-8 w-16",onClick:m,disable:s===0,"aria-label":"가이드 이전 보기 버튼",children:"이전"}),e.jsx(i,{onClick:s<4?h:o,disable:s===t,className:"text-bold-sm h-8 w-16","aria-label":"가이드 다음 보기 버튼",children:s<4?"다음":"시작하기"})]})]})]})})};b.__docgenInfo={description:"",methods:[],displayName:"CoachMark"};export{b as C}; +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{r as d}from"./index-DRjF_FHU.js";import{u as p}from"./useCoachMarkStore-B_Mp-SD7.js";import{C as i}from"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{g}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";const r=[{title:"HTML 태그 블록 조립하기",content:e.jsxs(e.Fragment,{children:["오른쪽 ",e.jsx("span",{className:"coachMarkHighlightText",children:"HTML 태그 탭"}),"에서 블록을 가져와 ",e.jsx("br",{}),"작업 공간에서 조립할 수 있어요"]})},{title:"CSS 클래스 블록 생성 후 조립하기",content:e.jsxs(e.Fragment,{children:["원하는 ",e.jsx("span",{className:"coachMarkHighlightText",children:"CSS 클래스 블록"}),"을 생성할 수 있어요.",e.jsx("br",{}),"생성된 블록은 HTML 블록에 조립할 수 있어요"]})},{title:"스타일 속성 추가하기",content:e.jsxs(e.Fragment,{children:["생성한 ",e.jsx("span",{className:"coachMarkHighlightText",children:"CSS 클래스 블록"}),"을 선택해 ",e.jsx("br",{}),"원하는",e.jsx("span",{className:"coachMarkHighlightText",children:"스타일 속성"}),"을 추가할 수 있어요"]})},{title:"미리보기와 코드 확인하기",content:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"coachMarkHighlightText",children:"미리보기"})," 탭에서는 블록 코딩으로 만든 화면을,",e.jsx("br",{}),e.jsx("span",{className:"coachMarkHighlightText",children:"HTML/CSS"})," 탭에서는 코드를 확인할 수 있어요."]})},{title:"저장하고 불러오기",content:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"coachMarkHighlightText",children:"저장"}),"하지 않고 나가면 블록이 사라져요. ",e.jsx("br",{}),"변경 사항은 ",e.jsx("span",{className:"coachMarkHighlightText",children:"되돌리거나 다시 적용"}),"할 수 있어요."]})}],b=()=>{const{currentStep:s,setCurrentStep:l,closeCoachMark:o}=p(),t=r.length,a=document.querySelector(".blocklyToolboxDiv"),h=()=>{s{s>0&&l(s-1)},x=()=>{localStorage.setItem("isCoachMarkDismissed","true"),o()};return d.useEffect(()=>{const n=g();if(!n)return;const c=n.getToolbox();if(c){switch(s){case 0:c.clickTab("html");break;case 1:c.clickTab("css");break;case 2:c.clickTab("html")}a&&(s<=1?a.classList.add("coachMarkHighlight"):a.classList.remove("coachMarkHighlight"))}},[s,a]),e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black bg-opacity-70",children:e.jsxs("div",{className:"z-[99999] min-h-40 min-w-96 rounded-2xl bg-white p-6 pb-4 shadow-2xl",children:[e.jsx("h2",{className:"text-bold-sm mb-4 text-gray-200",children:r[s].title}),e.jsx("p",{className:"text-medium-md mb-6 whitespace-pre-line",children:r[s].content}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"text-bold-sm text-green-500",children:[s+1,"/",t]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(i,{onClick:x,disable:s===t,className:"text-bold-sm h-8 w-16",variant:"outlined","aria-label":"가이드 그만 보기 버튼",children:"그만 보기"}),e.jsx(i,{className:"text-bold-sm h-8 w-16",onClick:m,disable:s===0,"aria-label":"가이드 이전 보기 버튼",children:"이전"}),e.jsx(i,{onClick:s<4?h:o,disable:s===t,className:"text-bold-sm h-8 w-16","aria-label":"가이드 다음 보기 버튼",children:s<4?"다음":"시작하기"})]})]})]})})};b.__docgenInfo={description:"",methods:[],displayName:"CoachMark"};export{b as C}; diff --git a/assets/CoachMark.stories-BnuOcWNj.js b/assets/CoachMark.stories-BVRTBrZc.js similarity index 91% rename from assets/CoachMark.stories-BnuOcWNj.js rename to assets/CoachMark.stories-BVRTBrZc.js index 5f91b3d4..cb551c9c 100644 --- a/assets/CoachMark.stories-BnuOcWNj.js +++ b/assets/CoachMark.stories-BVRTBrZc.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{C as e}from"./CoachMark-DESJ10-F.js";import"./index-DRjF_FHU.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./html2canvas.esm-BTtajP0W.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const A={title:"widgets/workspace/coachMark",component:e,parameters:{layout:"centered",docs:{description:{component:"워크스페이스 튜토리얼 코치 마크"}}},decorators:[i=>o.jsx("div",{style:{width:"500px",height:"300px"},children:o.jsx(i,{})})],tags:["autodocs"]},t={};var r,p,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(m=(p=t.parameters)==null?void 0:p.docs)==null?void 0:m.source}}};const B=["Default"];export{t as Default,B as __namedExportsOrder,A as default}; +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{C as e}from"./CoachMark-CMgIOAJW.js";import"./index-DRjF_FHU.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./html2canvas.esm-BTtajP0W.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const A={title:"widgets/workspace/coachMark",component:e,parameters:{layout:"centered",docs:{description:{component:"워크스페이스 튜토리얼 코치 마크"}}},decorators:[i=>o.jsx("div",{style:{width:"500px",height:"300px"},children:o.jsx(i,{})})],tags:["autodocs"]},t={};var r,p,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(m=(p=t.parameters)==null?void 0:p.docs)==null?void 0:m.source}}};const B=["Default"];export{t as Default,B as __namedExportsOrder,A as default}; diff --git a/assets/CodeExportButton.stories-Bc7P7zXG.js b/assets/CodeExportButton.stories-D599SYKt.js similarity index 95% rename from assets/CodeExportButton.stories-Bc7P7zXG.js rename to assets/CodeExportButton.stories-D599SYKt.js index 68e873a3..8e5bfa6e 100644 --- a/assets/CodeExportButton.stories-Bc7P7zXG.js +++ b/assets/CodeExportButton.stories-D599SYKt.js @@ -1 +1 @@ -import{C as m}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const q={title:"entities/workspace/CodeExportButton",component:m,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,r,p;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(p=(r=t.parameters)==null?void 0:r.docs)==null?void 0:p.source}}};const v=["Default"];export{t as Default,v as __namedExportsOrder,q as default}; +import{C as m}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const q={title:"entities/workspace/CodeExportButton",component:m,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,r,p;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(p=(r=t.parameters)==null?void 0:r.docs)==null?void 0:p.source}}};const v=["Default"];export{t as Default,v as __namedExportsOrder,q as default}; diff --git a/assets/Color-F6OSRLHC-CDJkqvML.js b/assets/Color-F6OSRLHC-CuGklq2Y.js similarity index 99% rename from assets/Color-F6OSRLHC-CDJkqvML.js rename to assets/Color-F6OSRLHC-CuGklq2Y.js index 79486d04..0baf6a55 100644 --- a/assets/Color-F6OSRLHC-CDJkqvML.js +++ b/assets/Color-F6OSRLHC-CuGklq2Y.js @@ -1 +1 @@ -import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./DocsRenderer-CFRXHY34-wwSIYXp0.js";import{R as m,r as p}from"./index-DRjF_FHU.js";import"./iframe-Br-BqK10.js";import"../sb-preview/runtime.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BXCeiWJk.js";import"./index-CzpEL4_8.js";import"./index-DrFu-skq.js";import"./react-18-CeYYHeGS.js";import"./client-Dbo3a7kb.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},fr=rr;export{rr as ColorControl,fr as default}; +import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./DocsRenderer-CFRXHY34-Ak6QnDix.js";import{R as m,r as p}from"./index-DRjF_FHU.js";import"./iframe-B3pNietc.js";import"../sb-preview/runtime.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BXCeiWJk.js";import"./index-CzpEL4_8.js";import"./index-DrFu-skq.js";import"./react-18-CeYYHeGS.js";import"./client-Dbo3a7kb.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},fr=rr;export{rr as ColorControl,fr as default}; diff --git a/assets/CssCategoryBar-D1UKcKt2.js b/assets/CssCategoryBar-DrLnwxhd.js similarity index 92% rename from assets/CssCategoryBar-D1UKcKt2.js rename to assets/CssCategoryBar-DrLnwxhd.js index 80e133fb..9f47aae2 100644 --- a/assets/CssCategoryBar-D1UKcKt2.js +++ b/assets/CssCategoryBar-DrLnwxhd.js @@ -1,2 +1,2 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import{C as t}from"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{c as s}from"./cssCategoryList-CHFX1k4S.js";import"./html2canvas.esm-BTtajP0W.js";const i=()=>o.jsx("nav",{className:"flex flex-shrink-0 flex-col gap-1.5 border-r border-r-gray-100 px-4 py-3",children:s.map(r=>o.jsx(t,{cssCategory:r.category},r.category))});i.__docgenInfo={description:`@description +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import{C as t}from"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{c as s}from"./cssCategoryList-CHFX1k4S.js";import"./html2canvas.esm-BTtajP0W.js";const i=()=>o.jsx("nav",{className:"flex flex-shrink-0 flex-col gap-1.5 border-r border-r-gray-100 px-4 py-3",children:s.map(r=>o.jsx(t,{cssCategory:r.category},r.category))});i.__docgenInfo={description:`@description CSS 카테고리 목록을 보여주고 선택할 수 있는 컴포넌트`,methods:[],displayName:"CssCategoryBar"};export{i as C}; diff --git a/assets/CssCategoryBar.stories-B-DvKVaP.js b/assets/CssCategoryBar.stories-55z6K7mT.js similarity index 90% rename from assets/CssCategoryBar.stories-B-DvKVaP.js rename to assets/CssCategoryBar.stories-55z6K7mT.js index b0394967..e54fa83c 100644 --- a/assets/CssCategoryBar.stories-B-DvKVaP.js +++ b/assets/CssCategoryBar.stories-55z6K7mT.js @@ -1,4 +1,4 @@ -import{C as m}from"./CssCategoryBar-D1UKcKt2.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./cssCategoryList-CHFX1k4S.js";const z={title:"widgets/workspace/css/CssCategoryBar",component:m,parameters:{layout:"centered"},tags:["autodocs"]},r={args:{}};var t,o,p;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{C as m}from"./CssCategoryBar-DrLnwxhd.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./cssCategoryList-CHFX1k4S.js";const z={title:"widgets/workspace/css/CssCategoryBar",component:m,parameters:{layout:"centered"},tags:["autodocs"]},r={args:{}};var t,o,p;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/CssOptionItem.stories-BFk8Czd3.js b/assets/CssOptionItem.stories-_rigQ6-T.js similarity index 97% rename from assets/CssOptionItem.stories-BFk8Czd3.js rename to assets/CssOptionItem.stories-_rigQ6-T.js index dfaf7ca3..929eb935 100644 --- a/assets/CssOptionItem.stories-BFk8Czd3.js +++ b/assets/CssOptionItem.stories-_rigQ6-T.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{c as i}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{c as a}from"./cssCategoryList-CHFX1k4S.js";import"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const Q={title:"entities/workspace/CssOptionItem",component:i,parameters:{layout:"centered"},tags:["autodocs"]},e={args:{cssItem:a[0].items[0],index:0}},t={render:()=>r.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto"},children:r.jsx(i,{cssItem:a[0].items[0],index:0})})},s={render:()=>{const C="레이아웃";return r.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto"},children:a.filter(o=>o.category===C).map(o=>o.items.map((m,I)=>r.jsx(i,{cssItem:m,index:I},m.label)))})}};var n,p,c;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{c as i}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{c as a}from"./cssCategoryList-CHFX1k4S.js";import"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const Q={title:"entities/workspace/CssOptionItem",component:i,parameters:{layout:"centered"},tags:["autodocs"]},e={args:{cssItem:a[0].items[0],index:0}},t={render:()=>r.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto"},children:r.jsx(i,{cssItem:a[0].items[0],index:0})})},s={render:()=>{const C="레이아웃";return r.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto"},children:a.filter(o=>o.category===C).map(o=>o.items.map((m,I)=>r.jsx(i,{cssItem:m,index:I},m.label)))})}};var n,p,c;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { cssItem: cssCategoryList[0].items[0], index: 0 diff --git a/assets/CssOptionItemList-BIQBJ29P.js b/assets/CssOptionItemList-BWXhZs3U.js similarity index 93% rename from assets/CssOptionItemList-BIQBJ29P.js rename to assets/CssOptionItemList-BWXhZs3U.js index 38758706..3e8810e0 100644 --- a/assets/CssOptionItemList-BIQBJ29P.js +++ b/assets/CssOptionItemList-BWXhZs3U.js @@ -1,2 +1,2 @@ -import{j as s}from"./jsx-runtime-DR9Q75dM.js";import{c as e}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{c as m}from"./cssCategoryList-CHFX1k4S.js";import{u as p}from"./html2canvas.esm-BTtajP0W.js";const a=()=>{const{selectedCssCategory:r}=p();return s.jsx("article",{className:"flex h-full w-full flex-col gap-4 overflow-y-auto p-3",children:m.filter(t=>t.category===r).map(t=>t.items.map((o,i)=>s.jsx(e,{cssItem:o,index:i},o.label)))})};a.__docgenInfo={description:`@description +import{j as s}from"./jsx-runtime-DR9Q75dM.js";import{c as e}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{c as m}from"./cssCategoryList-CHFX1k4S.js";import{u as p}from"./html2canvas.esm-BTtajP0W.js";const a=()=>{const{selectedCssCategory:r}=p();return s.jsx("article",{className:"flex h-full w-full flex-col gap-4 overflow-y-auto p-3",children:m.filter(t=>t.category===r).map(t=>t.items.map((o,i)=>s.jsx(e,{cssItem:o,index:i},o.label)))})};a.__docgenInfo={description:`@description CSS 속성을 설정할 수 있는 컴포넌트의 목록을 보여주는 컴포넌트`,methods:[],displayName:"CssOptionItemList"};export{a as C}; diff --git a/assets/CssOptionItemList.stories-PbySAeJT.js b/assets/CssOptionItemList.stories-rgxtEXCr.js similarity index 94% rename from assets/CssOptionItemList.stories-PbySAeJT.js rename to assets/CssOptionItemList.stories-rgxtEXCr.js index f74a6f0d..19522fe2 100644 --- a/assets/CssOptionItemList.stories-PbySAeJT.js +++ b/assets/CssOptionItemList.stories-rgxtEXCr.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{C as c}from"./CssOptionItemList-BIQBJ29P.js";import{u}from"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./cssCategoryList-CHFX1k4S.js";const J={title:"widgets/workspace/css/CssOptionItemList",component:c,parameters:{layout:"centered"},tags:["autodocs"]},r={},o={render:()=>{const{setSelectedCssCategory:l}=u(),d=["레이아웃","박스모델","타이포그래피","배경","테두리","간격","flex 속성","grid 속성"];return e.jsxs(e.Fragment,{children:[e.jsx("select",{onChange:t=>l(t.target.value),children:d.map(t=>e.jsx("option",{value:t,children:t},t))}),e.jsx(c,{})]})}};var s,a,i;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(a=r.parameters)==null?void 0:a.docs)==null?void 0:i.source}}};var p,m,n;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{C as c}from"./CssOptionItemList-BWXhZs3U.js";import{u}from"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./cssCategoryList-CHFX1k4S.js";const J={title:"widgets/workspace/css/CssOptionItemList",component:c,parameters:{layout:"centered"},tags:["autodocs"]},r={},o={render:()=>{const{setSelectedCssCategory:l}=u(),d=["레이아웃","박스모델","타이포그래피","배경","테두리","간격","flex 속성","grid 속성"];return e.jsxs(e.Fragment,{children:[e.jsx("select",{onChange:t=>l(t.target.value),children:d.map(t=>e.jsx("option",{value:t,children:t},t))}),e.jsx(c,{})]})}};var s,a,i;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(a=r.parameters)==null?void 0:a.docs)==null?void 0:i.source}}};var p,m,n;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`{ render: () => { const { setSelectedCssCategory diff --git a/assets/CssPropsSelectBox-C4R-4nDE.js b/assets/CssPropsSelectBox-C4R-4nDE.js deleted file mode 100644 index 185d7168..00000000 --- a/assets/CssPropsSelectBox-C4R-4nDE.js +++ /dev/null @@ -1,65 +0,0 @@ -var oe=Object.defineProperty;var wt=i=>{throw TypeError(i)};var ne=(i,e,t)=>e in i?oe(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var S=(i,e,t)=>ne(i,typeof e!="symbol"?e+"":e,t),ut=(i,e,t)=>e.has(i)||wt("Cannot "+t);var a=(i,e,t)=>(ut(i,e,"read from private field"),t?t.call(i):e.get(i)),L=(i,e,t)=>e.has(i)?wt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),g=(i,e,t,s)=>(ut(i,e,"write to private field"),s?s.call(i,t):e.set(i,t),t),O=(i,e,t)=>(ut(i,e,"access private method"),t);import{j as E}from"./jsx-runtime-DR9Q75dM.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import{W as re}from"./WorkspaceList-E8ahMSIZ.js";import{W as ae}from"./WorkspaceHeader-BigAUUkC.js";import{E as ce}from"./EmptyWorkspace-C-zl3eeh.js";import{W as le}from"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DaqQAmWl.js";import{P as he}from"./PreviewBox-L0Yy0i69.js";import"./CoachMark-DESJ10-F.js";import{F as ue,s as de,n as pe,w as Ce,f as At,h as fe,l as me,m as K,B as at,o as mt,p as dt,q as Ut,r as Zt,T as _e,Z as ge,u as jt,t as be,x as Qt,y as Te,D as tt,z as lt,O as Se,A as V,E as Xt,G as xt,J as $t,K as Rt,L as Oe,M as ht,N as ye,P as Ie,Q as Ee,V as De,X as Le,Y as xe,k as kt,_ as N,$ as Mt,a0 as ve}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import{C as we}from"./CssCategoryBar-D1UKcKt2.js";import{C as Ae}from"./CssOptionItemList-BIQBJ29P.js";import{C as Re}from"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import{u as ke}from"./useCoachMarkStore-B_Mp-SD7.js";import{k as M,l as _t,r as Me,u as Pt,g as Pe,h as Ne,c as Be}from"./html2canvas.esm-BTtajP0W.js";import{r as T}from"./index-DRjF_FHU.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import{S as He}from"./SkeletonWorkspaceList-LqBByOXs.js";import{W as Fe}from"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./index-D1AAVYfs.js";import{S as Ge,v as Nt,a as H,w as gt,l as ct,n as Ve,x as bt,y as Bt,t as We,k as Ye,r as Ht,b as qt,z as Ke}from"./QueryClientProvider-BdRu95_o.js";import{f as ze,i as Ft,h as Ue,a as Ze}from"./infiniteQueryBehavior-DdhmIwcw.js";const Gt={컨테이너:"M11.5 21.725V12.575L3.5 7.95V15.975C3.5 16.3417 3.5875 16.675 3.7625 16.975C3.9375 17.275 4.18333 17.5167 4.5 17.7L11.5 21.725ZM13.5 21.725L20.5 17.7C20.8167 17.5167 21.0625 17.275 21.2375 16.975C21.4125 16.675 21.5 16.3417 21.5 15.975V7.95L13.5 12.575V21.725ZM17.475 7.975L20.425 6.25L13.5 2.275C13.1833 2.09167 12.85 2 12.5 2C12.15 2 11.8167 2.09167 11.5 2.275L9.525 3.4L17.475 7.975ZM12.5 10.85L15.475 9.15L7.55 4.55L4.55 6.275L12.5 10.85Z",텍스트:"M17.5 15C17.2167 15 16.9792 14.9042 16.7875 14.7125C16.5958 14.5208 16.5 14.2833 16.5 14V10C16.5 9.71667 16.5958 9.47917 16.7875 9.2875C16.9792 9.09583 17.2167 9 17.5 9H20.5C20.7833 9 21.0208 9.09583 21.2125 9.2875C21.4042 9.47917 21.5 9.71667 21.5 10V11H20V10.5H18V13.5H20V13H21.5V14C21.5 14.2833 21.4042 14.5208 21.2125 14.7125C21.0208 14.9042 20.7833 15 20.5 15H17.5ZM10 15V9H14C14.2833 9 14.5208 9.09583 14.7125 9.2875C14.9042 9.47917 15 9.71667 15 10V11C15 11.2833 14.9042 11.5208 14.7125 11.7125C14.5208 11.9042 14.2833 12 14 12C14.2833 12 14.5208 12.0958 14.7125 12.2875C14.9042 12.4792 15 12.7167 15 13V14C15 14.2833 14.9042 14.5208 14.7125 14.7125C14.5208 14.9042 14.2833 15 14 15H10ZM11.5 11.25H13.5V10.5H11.5V11.25ZM11.5 13.5H13.5V12.75H11.5V13.5ZM3.5 15V10C3.5 9.71667 3.59583 9.47917 3.7875 9.2875C3.97917 9.09583 4.21667 9 4.5 9H7.5C7.78333 9 8.02083 9.09583 8.2125 9.2875C8.40417 9.47917 8.5 9.71667 8.5 10V15H7V13.5H5V15H3.5ZM5 12H7V10.5H5V12Z",폼:"M12.5 4.25C12.7167 4.25 12.8958 4.17917 13.0375 4.0375C13.1792 3.89583 13.25 3.71667 13.25 3.5C13.25 3.28333 13.1792 3.10417 13.0375 2.9625C12.8958 2.82083 12.7167 2.75 12.5 2.75C12.2833 2.75 12.1042 2.82083 11.9625 2.9625C11.8208 3.10417 11.75 3.28333 11.75 3.5C11.75 3.71667 11.8208 3.89583 11.9625 4.0375C12.1042 4.17917 12.2833 4.25 12.5 4.25ZM18.5 23C17.1167 23 15.9375 22.5125 14.9625 21.5375C13.9875 20.5625 13.5 19.3833 13.5 18C13.5 16.6167 13.9875 15.4375 14.9625 14.4625C15.9375 13.4875 17.1167 13 18.5 13C19.8833 13 21.0625 13.4875 22.0375 14.4625C23.0125 15.4375 23.5 16.6167 23.5 18C23.5 19.3833 23.0125 20.5625 22.0375 21.5375C21.0625 22.5125 19.8833 23 18.5 23ZM5.5 21C4.95 21 4.47917 20.8042 4.0875 20.4125C3.69583 20.0208 3.5 19.55 3.5 19V5C3.5 4.45 3.69583 3.97917 4.0875 3.5875C4.47917 3.19583 4.95 3 5.5 3H9.7C9.91667 2.4 10.2792 1.91667 10.7875 1.55C11.2958 1.18333 11.8667 1 12.5 1C13.1333 1 13.7042 1.18333 14.2125 1.55C14.7208 1.91667 15.0833 2.4 15.3 3H19.5C20.05 3 20.5208 3.19583 20.9125 3.5875C21.3042 3.97917 21.5 4.45 21.5 5V10.45C21.5 10.75 21.375 10.9833 21.125 11.15C20.875 11.3167 20.6083 11.35 20.325 11.25C20.0417 11.1667 19.7458 11.1042 19.4375 11.0625C19.1292 11.0208 18.8167 11 18.5 11C18.3167 11 18.1458 11.0042 17.9875 11.0125C17.8292 11.0208 17.6667 11.0417 17.5 11.075C17.4167 11.0583 17.3167 11.0417 17.2 11.025C17.1167 11.025 17.0125 11.0208 16.8875 11.0125C16.7625 11.0042 16.6333 11 16.5 11H8.5C8.21667 11 7.97917 11.0958 7.7875 11.2875C7.59583 11.4792 7.5 11.7167 7.5 12C7.5 12.2833 7.59583 12.5208 7.7875 12.7125C7.97917 12.9042 8.21667 13 8.5 13H13.625C13.325 13.2833 13.0542 13.5917 12.8125 13.925C12.5708 14.2583 12.3583 14.6167 12.175 15H8.5C8.21667 15 7.97917 15.0958 7.7875 15.2875C7.59583 15.4792 7.5 15.7167 7.5 16C7.5 16.2833 7.59583 16.5208 7.7875 16.7125C7.97917 16.9042 8.21667 17 8.5 17H11.575C11.5417 17.1667 11.5208 17.3292 11.5125 17.4875C11.5042 17.6458 11.5 17.8167 11.5 18C11.5 18.3333 11.5167 18.65 11.55 18.95C11.5833 19.25 11.6417 19.5417 11.725 19.825C11.8083 20.1083 11.7667 20.375 11.6 20.625C11.4333 20.875 11.2083 21 10.925 21H5.5ZM18 18.5V20.5C18 20.6333 18.05 20.75 18.15 20.85C18.25 20.95 18.3667 21 18.5 21C18.6333 21 18.75 20.95 18.85 20.85C18.95 20.75 19 20.6333 19 20.5V18.5H21C21.1333 18.5 21.25 18.45 21.35 18.35C21.45 18.25 21.5 18.1333 21.5 18C21.5 17.8667 21.45 17.75 21.35 17.65C21.25 17.55 21.1333 17.5 21 17.5H19V15.5C19 15.3667 18.95 15.25 18.85 15.15C18.75 15.05 18.6333 15 18.5 15C18.3667 15 18.25 15.05 18.15 15.15C18.05 15.25 18 15.3667 18 15.5V17.5H16C15.8667 17.5 15.75 17.55 15.65 17.65C15.55 17.75 15.5 17.8667 15.5 18C15.5 18.1333 15.55 18.25 15.65 18.35C15.75 18.45 15.8667 18.5 16 18.5H18ZM8.5 9H16.5C16.7833 9 17.0208 8.90417 17.2125 8.7125C17.4042 8.52083 17.5 8.28333 17.5 8C17.5 7.71667 17.4042 7.47917 17.2125 7.2875C17.0208 7.09583 16.7833 7 16.5 7H8.5C8.21667 7 7.97917 7.09583 7.7875 7.2875C7.59583 7.47917 7.5 7.71667 7.5 8C7.5 8.28333 7.59583 8.52083 7.7875 8.7125C7.97917 8.90417 8.21667 9 8.5 9Z",표:"M3.5 8V5C3.5 4.45 3.69583 3.97917 4.0875 3.5875C4.47917 3.19583 4.95 3 5.5 3H19.5C20.05 3 20.5208 3.19583 20.9125 3.5875C21.3042 3.97917 21.5 4.45 21.5 5V8H3.5ZM5.5 21C4.95 21 4.47917 20.8042 4.0875 20.4125C3.69583 20.0208 3.5 19.55 3.5 19V10H8V21H5.5ZM17 21V10H21.5V19C21.5 19.55 21.3042 20.0208 20.9125 20.4125C20.5208 20.8042 20.05 21 19.5 21H17ZM10 21V10H15V21H10Z",리스트:"M6.0248 16.1749L9.5748 12.6249C9.7748 12.4249 10.0081 12.3291 10.2748 12.3374C10.5415 12.3457 10.7748 12.4499 10.9748 12.6499C11.1581 12.8499 11.2498 13.0832 11.2498 13.3499C11.2498 13.6166 11.1581 13.8499 10.9748 14.0499L6.7498 18.2999C6.5498 18.4999 6.31647 18.5999 6.0498 18.5999C5.78314 18.5999 5.5498 18.4999 5.3498 18.2999L3.1998 16.1499C3.01647 15.9666 2.9248 15.7332 2.9248 15.4499C2.9248 15.1666 3.01647 14.9332 3.1998 14.7499C3.38314 14.5666 3.61647 14.4749 3.8998 14.4749C4.18314 14.4749 4.41647 14.5666 4.5998 14.7499L6.0248 16.1749ZM6.0248 8.17491L9.5748 4.62491C9.7748 4.42491 10.0081 4.32908 10.2748 4.33741C10.5415 4.34575 10.7748 4.44991 10.9748 4.64991C11.1581 4.84991 11.2498 5.08325 11.2498 5.34991C11.2498 5.61658 11.1581 5.84991 10.9748 6.04991L6.7498 10.2999C6.5498 10.4999 6.31647 10.5999 6.0498 10.5999C5.78314 10.5999 5.5498 10.4999 5.3498 10.2999L3.1998 8.14991C3.01647 7.96658 2.9248 7.73325 2.9248 7.44991C2.9248 7.16658 3.01647 6.93325 3.1998 6.74991C3.38314 6.56658 3.61647 6.47491 3.8998 6.47491C4.18314 6.47491 4.41647 6.56658 4.5998 6.74991L6.0248 8.17491ZM14.4998 16.9999C14.2165 16.9999 13.979 16.9041 13.7873 16.7124C13.5956 16.5207 13.4998 16.2832 13.4998 15.9999C13.4998 15.7166 13.5956 15.4791 13.7873 15.2874C13.979 15.0957 14.2165 14.9999 14.4998 14.9999H21.4998C21.7831 14.9999 22.0206 15.0957 22.2123 15.2874C22.404 15.4791 22.4998 15.7166 22.4998 15.9999C22.4998 16.2832 22.404 16.5207 22.2123 16.7124C22.0206 16.9041 21.7831 16.9999 21.4998 16.9999H14.4998ZM14.4998 8.99991C14.2165 8.99991 13.979 8.90408 13.7873 8.71241C13.5956 8.52075 13.4998 8.28325 13.4998 7.99991C13.4998 7.71658 13.5956 7.47908 13.7873 7.28741C13.979 7.09575 14.2165 6.99991 14.4998 6.99991H21.4998C21.7831 6.99991 22.0206 7.09575 22.2123 7.28741C22.404 7.47908 22.4998 7.71658 22.4998 7.99991C22.4998 8.28325 22.404 8.52075 22.2123 8.71241C22.0206 8.90408 21.7831 8.99991 21.4998 8.99991H14.4998Z",링크:"M18.5 15.75C18.5 17.4833 17.8917 18.9583 16.675 20.175C15.4583 21.3917 13.9833 22 12.25 22C10.5167 22 9.04167 21.3917 7.825 20.175C6.60833 18.9583 6 17.4833 6 15.75V6.5C6 5.25 6.4375 4.1875 7.3125 3.3125C8.1875 2.4375 9.25 2 10.5 2C11.75 2 12.8125 2.4375 13.6875 3.3125C14.5625 4.1875 15 5.25 15 6.5V15.25C15 16.0167 14.7333 16.6667 14.2 17.2C13.6667 17.7333 13.0167 18 12.25 18C11.4833 18 10.8333 17.7333 10.3 17.2C9.76667 16.6667 9.5 16.0167 9.5 15.25V7C9.5 6.71667 9.59583 6.47917 9.7875 6.2875C9.97917 6.09583 10.2167 6 10.5 6C10.7833 6 11.0208 6.09583 11.2125 6.2875C11.4042 6.47917 11.5 6.71667 11.5 7V15.25C11.5 15.4667 11.5708 15.6458 11.7125 15.7875C11.8542 15.9292 12.0333 16 12.25 16C12.4667 16 12.6458 15.9292 12.7875 15.7875C12.9292 15.6458 13 15.4667 13 15.25V6.5C12.9833 5.8 12.7375 5.20833 12.2625 4.725C11.7875 4.24167 11.2 4 10.5 4C9.8 4 9.20833 4.24167 8.725 4.725C8.24167 5.20833 8 5.8 8 6.5V15.75C7.98333 16.9333 8.39167 17.9375 9.225 18.7625C10.0583 19.5875 11.0667 20 12.25 20C13.4167 20 14.4083 19.5875 15.225 18.7625C16.0417 17.9375 16.4667 16.9333 16.5 15.75V7C16.5 6.71667 16.5958 6.47917 16.7875 6.2875C16.9792 6.09583 17.2167 6 17.5 6C17.7833 6 18.0208 6.09583 18.2125 6.2875C18.4042 6.47917 18.5 6.71667 18.5 7V15.75Z",내용:"M9.5 20C9.18333 20 8.88333 19.9292 8.6 19.7875C8.31667 19.6458 8.08333 19.45 7.9 19.2L3.4 13.2C3.13333 12.85 3 12.45 3 12C3 11.55 3.13333 11.15 3.4 10.8L7.9 4.8C8.08333 4.55 8.31667 4.35417 8.6 4.2125C8.88333 4.07083 9.18333 4 9.5 4H20.5C21.05 4 21.5208 4.19583 21.9125 4.5875C22.3042 4.97917 22.5 5.45 22.5 6V18C22.5 18.55 22.3042 19.0208 21.9125 19.4125C21.5208 19.8042 21.05 20 20.5 20H9.5ZM10.5 13C10.7833 13 11.0208 12.9042 11.2125 12.7125C11.4042 12.5208 11.5 12.2833 11.5 12C11.5 11.7167 11.4042 11.4792 11.2125 11.2875C11.0208 11.0958 10.7833 11 10.5 11C10.2167 11 9.97917 11.0958 9.7875 11.2875C9.59583 11.4792 9.5 11.7167 9.5 12C9.5 12.2833 9.59583 12.5208 9.7875 12.7125C9.97917 12.9042 10.2167 13 10.5 13ZM14 13C14.2833 13 14.5208 12.9042 14.7125 12.7125C14.9042 12.5208 15 12.2833 15 12C15 11.7167 14.9042 11.4792 14.7125 11.2875C14.5208 11.0958 14.2833 11 14 11C13.7167 11 13.4792 11.0958 13.2875 11.2875C13.0958 11.4792 13 11.7167 13 12C13 12.2833 13.0958 12.5208 13.2875 12.7125C13.4792 12.9042 13.7167 13 14 13ZM17.5 13C17.7833 13 18.0208 12.9042 18.2125 12.7125C18.4042 12.5208 18.5 12.2833 18.5 12C18.5 11.7167 18.4042 11.4792 18.2125 11.2875C18.0208 11.0958 17.7833 11 17.5 11C17.2167 11 16.9792 11.0958 16.7875 11.2875C16.5958 11.4792 16.5 11.7167 16.5 12C16.5 12.2833 16.5958 12.5208 16.7875 12.7125C16.9792 12.9042 17.2167 13 17.5 13Z"};function je(i){return"field"in i&&i.field instanceof ue}var A,p,it,x,z,X,W,B,ot,$,q,U,Z,Y,J,C,st,Tt,St,Ot,yt,It,Et,Dt,Jt,zt,Qe=(zt=class extends Ge{constructor(e,t){super();L(this,C);L(this,A);L(this,p);L(this,it);L(this,x);L(this,z);L(this,X);L(this,W);L(this,B);L(this,ot);L(this,$);L(this,q);L(this,U);L(this,Z);L(this,Y);L(this,J,new Set);this.options=t,g(this,A,e),g(this,B,null),g(this,W,Nt()),this.options.experimental_prefetchInRender||a(this,W).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(a(this,p).addObserver(this),Vt(a(this,p),this.options)?O(this,C,st).call(this):this.updateResult(),O(this,C,yt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lt(a(this,p),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lt(a(this,p),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,O(this,C,It).call(this),O(this,C,Et).call(this),a(this,p).removeObserver(this)}setOptions(e,t){const s=this.options,o=a(this,p);if(this.options=a(this,A).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof H(this.options.enabled,a(this,p))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");O(this,C,Dt).call(this),a(this,p).setOptions(this.options),s._defaulted&&!gt(this.options,s)&&a(this,A).getQueryCache().notify({type:"observerOptionsUpdated",query:a(this,p),observer:this});const n=this.hasListeners();n&&Wt(a(this,p),o,this.options,s)&&O(this,C,st).call(this),this.updateResult(t),n&&(a(this,p)!==o||H(this.options.enabled,a(this,p))!==H(s.enabled,a(this,p))||ct(this.options.staleTime,a(this,p))!==ct(s.staleTime,a(this,p)))&&O(this,C,Tt).call(this);const r=O(this,C,St).call(this);n&&(a(this,p)!==o||H(this.options.enabled,a(this,p))!==H(s.enabled,a(this,p))||r!==a(this,Y))&&O(this,C,Ot).call(this,r)}getOptimisticResult(e){const t=a(this,A).getQueryCache().build(a(this,A),e),s=this.createResult(t,e);return $e(this,s)&&(g(this,x,s),g(this,X,this.options),g(this,z,a(this,p).state)),s}getCurrentResult(){return a(this,x)}trackResult(e,t){const s={};return Object.keys(e).forEach(o=>{Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),t==null||t(o),e[o])})}),s}trackProp(e){a(this,J).add(e)}getCurrentQuery(){return a(this,p)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=a(this,A).defaultQueryOptions(e),s=a(this,A).getQueryCache().build(a(this,A),t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return O(this,C,st).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),a(this,x)))}createResult(e,t){var nt;const s=a(this,p),o=this.options,n=a(this,x),r=a(this,z),h=a(this,X),l=e!==s?e.state:a(this,it),{state:d}=e;let u={...d},f=!1,m;if(t._optimisticResults){const D=this.hasListeners(),j=!D&&Vt(e,t),Q=D&&Wt(e,s,t,o);(j||Q)&&(u={...u,...ze(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:y,errorUpdatedAt:I,status:v}=u;if(t.select&&u.data!==void 0)if(n&&u.data===(r==null?void 0:r.data)&&t.select===a(this,ot))m=a(this,$);else try{g(this,ot,t.select),m=t.select(u.data),m=Ht(n==null?void 0:n.data,m,t),g(this,$,m),g(this,B,null)}catch(D){g(this,B,D)}else m=u.data;if(t.placeholderData!==void 0&&m===void 0&&v==="pending"){let D;if(n!=null&&n.isPlaceholderData&&t.placeholderData===(h==null?void 0:h.placeholderData))D=n.data;else if(D=typeof t.placeholderData=="function"?t.placeholderData((nt=a(this,q))==null?void 0:nt.state.data,a(this,q)):t.placeholderData,t.select&&D!==void 0)try{D=t.select(D),g(this,B,null)}catch(j){g(this,B,j)}D!==void 0&&(v="success",m=Ht(n==null?void 0:n.data,D,t),f=!0)}a(this,B)&&(y=a(this,B),m=a(this,$),I=Date.now(),v="error");const F=u.fetchStatus==="fetching",_=v==="pending",R=v==="error",k=_&&F,b=m!==void 0,w={status:v,fetchStatus:u.fetchStatus,isPending:_,isSuccess:v==="success",isError:R,isInitialLoading:k,isLoading:k,data:m,dataUpdatedAt:u.dataUpdatedAt,error:y,errorUpdatedAt:I,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:F,isRefetching:F&&!_,isLoadingError:R&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:R&&b,isStale:vt(e,t),refetch:this.refetch,promise:a(this,W)};if(this.options.experimental_prefetchInRender){const D=rt=>{w.status==="error"?rt.reject(w.error):w.data!==void 0&&rt.resolve(w.data)},j=()=>{const rt=g(this,W,w.promise=Nt());D(rt)},Q=a(this,W);switch(Q.status){case"pending":e.queryHash===s.queryHash&&D(Q);break;case"fulfilled":(w.status==="error"||w.data!==Q.value)&&j();break;case"rejected":(w.status!=="error"||w.error!==Q.reason)&&j();break}}return w}updateResult(e){const t=a(this,x),s=this.createResult(a(this,p),this.options);if(g(this,z,a(this,p).state),g(this,X,this.options),a(this,z).data!==void 0&&g(this,q,a(this,p)),gt(s,t))return;g(this,x,s);const o={},n=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,h=typeof r=="function"?r():r;if(h==="all"||!h&&!a(this,J).size)return!0;const c=new Set(h??a(this,J));return this.options.throwOnError&&c.add("error"),Object.keys(a(this,x)).some(l=>{const d=l;return a(this,x)[d]!==t[d]&&c.has(d)})};(e==null?void 0:e.listeners)!==!1&&n()&&(o.listeners=!0),O(this,C,Jt).call(this,{...o,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&O(this,C,yt).call(this)}},A=new WeakMap,p=new WeakMap,it=new WeakMap,x=new WeakMap,z=new WeakMap,X=new WeakMap,W=new WeakMap,B=new WeakMap,ot=new WeakMap,$=new WeakMap,q=new WeakMap,U=new WeakMap,Z=new WeakMap,Y=new WeakMap,J=new WeakMap,C=new WeakSet,st=function(e){O(this,C,Dt).call(this);let t=a(this,p).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Ve)),t},Tt=function(){O(this,C,It).call(this);const e=ct(this.options.staleTime,a(this,p));if(bt||a(this,x).isStale||!Bt(e))return;const s=We(a(this,x).dataUpdatedAt,e)+1;g(this,U,setTimeout(()=>{a(this,x).isStale||this.updateResult()},s))},St=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(a(this,p)):this.options.refetchInterval)??!1},Ot=function(e){O(this,C,Et).call(this),g(this,Y,e),!(bt||H(this.options.enabled,a(this,p))===!1||!Bt(a(this,Y))||a(this,Y)===0)&&g(this,Z,setInterval(()=>{(this.options.refetchIntervalInBackground||Ye.isFocused())&&O(this,C,st).call(this)},a(this,Y)))},yt=function(){O(this,C,Tt).call(this),O(this,C,Ot).call(this,O(this,C,St).call(this))},It=function(){a(this,U)&&(clearTimeout(a(this,U)),g(this,U,void 0))},Et=function(){a(this,Z)&&(clearInterval(a(this,Z)),g(this,Z,void 0))},Dt=function(){const e=a(this,A).getQueryCache().build(a(this,A),this.options);if(e===a(this,p))return;const t=a(this,p);g(this,p,e),g(this,it,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},Jt=function(e){qt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(a(this,x))}),a(this,A).getQueryCache().notify({query:a(this,p),type:"observerResultsUpdated"})})},zt);function Xe(i,e){return H(e.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&e.retryOnMount===!1)}function Vt(i,e){return Xe(i,e)||i.state.data!==void 0&&Lt(i,e,e.refetchOnMount)}function Lt(i,e,t){if(H(e.enabled,i)!==!1){const s=typeof t=="function"?t(i):t;return s==="always"||s!==!1&&vt(i,e)}return!1}function Wt(i,e,t,s){return(i!==e||H(s.enabled,i)===!1)&&(!t.suspense||i.state.status!=="error")&&vt(i,t)}function vt(i,e){return H(e.enabled,i)!==!1&&i.isStaleByTime(ct(e.staleTime,i))}function $e(i,e){return!gt(i.getCurrentResult(),e)}var qe=class extends Qe{constructor(i,e){super(i,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(i,e){super.setOptions({...i,behavior:Ft()},e)}getOptimisticResult(i){return i.behavior=Ft(),super.getOptimisticResult(i)}fetchNextPage(i){return this.fetch({...i,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(i){return this.fetch({...i,meta:{fetchMore:{direction:"backward"}}})}createResult(i,e){var y,I;const{state:t}=i,s=super.createResult(i,e),{isFetching:o,isRefetching:n,isError:r,isRefetchError:h}=s,c=(I=(y=t.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:I.direction,l=r&&c==="forward",d=o&&c==="forward",u=r&&c==="backward",f=o&&c==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ue(e,t.data),hasPreviousPage:Ze(e,t.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:u,isFetchingPreviousPage:f,isRefetchError:h&&!l&&!u,isRefetching:n&&!d&&!f}}},te=T.createContext(!1),Je=()=>T.useContext(te);te.Provider;function ts(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var es=T.createContext(ts()),ss=()=>T.useContext(es),is=(i,e)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(e.isReset()||(i.retryOnMount=!1))},os=i=>{T.useEffect(()=>{i.clearReset()},[i])},ns=({result:i,errorResetBoundary:e,throwOnError:t,query:s})=>i.isError&&!e.isReset()&&!i.isFetching&&s&&de(t,[i.error,s]),rs=i=>{i.suspense&&(i.staleTime===void 0&&(i.staleTime=1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},as=(i,e)=>i.isLoading&&i.isFetching&&!e,cs=(i,e)=>(i==null?void 0:i.suspense)&&e.isPending,Yt=(i,e,t)=>e.fetchOptimistic(i).catch(()=>{t.clearReset()});function ls(i,e,t){var d,u,f,m,y;const s=Ke(),o=Je(),n=ss(),r=s.defaultQueryOptions(i);(u=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||u.call(d,r),r._optimisticResults=o?"isRestoring":"optimistic",rs(r),is(r,n),os(n);const h=!s.getQueryCache().get(r.queryHash),[c]=T.useState(()=>new e(s,r)),l=c.getOptimisticResult(r);if(T.useSyncExternalStore(T.useCallback(I=>{const v=o?()=>{}:c.subscribe(qt.batchCalls(I));return c.updateResult(),v},[c,o]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),T.useEffect(()=>{c.setOptions(r,{listeners:!1})},[r,c]),cs(r,l))throw Yt(r,c,n);if(ns({result:l,errorResetBoundary:n,throwOnError:r.throwOnError,query:s.getQueryCache().get(r.queryHash)}))throw l.error;if((m=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||m.call(f,r,l),r.experimental_prefetchInRender&&!bt&&as(l,o)){const I=h?Yt(r,c,n):(y=s.getQueryCache().get(r.queryHash))==null?void 0:y.promise;I==null||I.catch(pe).finally(()=>{c.updateResult()})}return r.notifyOnChangeProps?l:c.trackResult(l)}function hs(i,e){return ls(i,qe)}const us=()=>{const i=me(),{hasNextPage:e,fetchNextPage:t,isPending:s,isFetchingNextPage:o,isError:n,data:r}=hs({queryKey:Ce.list(),queryFn:async({pageParam:h})=>{const c=!At(),l=At()||fe();return c&&await i.createWorkspace(l,!0),i.getWorkspaceList(l,h)},initialPageParam:"null",getNextPageParam:h=>{var c;return(c=h.pagedWorkspaceListResult)!=null&&c.nextCursor?JSON.stringify(h.pagedWorkspaceListResult.nextCursor):void 0},select:h=>(h.pages??[]).flatMap(c=>c.pagedWorkspaceListResult.workspaceList)});return{hasNextPage:e,fetchNextPage:t,isFetchingNextPage:o,isPending:s,isError:n,workspaceList:r}},G=(i,e,t,s={init:function(){}},o=!0)=>{const n=s.init;s.init=function(){n.call(this),this.styleName_||(this.setStyle(`defaultBlock${e}`),this.setTooltip(t)),o&&(this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("css class").setCheck("CSS-CLASS").appendField(new K(_t(i))),this.appendStatementInput("children").appendField()),this.showContextMenu=()=>{}},at[i]=s},ds=i=>{G(M("html"),1,`웹페이지의 시작과 끝을 알려주는 가장 큰 상자예요. -모든 내용을 담고 있는 책의 겉표지 같은 거예요.`,{init:function(){this.appendDummyInput().appendField(new K("html")),this.appendStatementInput("children").appendField("")}},!1),G(M("head"),2,`웹페이지의 정보를 담아두는 곳이에요. -책의 목차나 출판 정보같이 보이지 않지만 중요한 정보들이 들어가요.`,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField(new K("head"))}},!1),G(M("body"),3,`웹페이지에서 실제로 보이는 모든 내용이 들어가는 곳이에요. -책의 실제 내용이 적힌 부분같은 거예요.`),Object.values(i).forEach(e=>{e.forEach((t,s)=>{t.type===M("text")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField(new K(_t(t.type))).appendField(new mt,"TEXT"),this.setTooltip(t.description)}},!1):t.type===M("hr")||t.type===M("br")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField(new K(_t(t.type)))}},!1):t.type===M("a")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("css class").setCheck("CSS-CLASS").appendField(new K("a")),this.appendDummyInput().appendField(new dt("target")).appendField(new Ut([["_blank","_blank"],["_parent","_parent"],["_top","_top"]]),"TARGET"),this.appendDummyInput().appendField(new dt("href")).appendField(new mt,"HREF"),this.appendStatementInput("children").appendField(),this.setInputsInline(!1)}},!1):t.type===M("img")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("css class").setCheck("CSS-CLASS").appendField(new K("img")),this.appendDummyInput().appendField(new dt("src")).appendField(new Zt(""),"SRC"),this.setInputsInline(!1)}},!1):G(t.type,s%3+1,t.description)})})},ps=[{type:M("html"),coordinate:{x:40,y:40},movable:!1,deletable:!1},{type:M("head"),connection:{parent:"html",input:"children"},movable:!1,deletable:!1},{type:M("body"),connection:{parent:"html",input:"children"},movable:!1,deletable:!1}];function Cs(i){const e={};ps.forEach(s=>{var d,u;const{type:o,coordinate:n,deletable:r,movable:h,connection:c}=s,l=i.newBlock(o);if(n&&l.moveBy(n.x,n.y),h===!1&&l.setMovable(!1),r===!1&&l.setDeletable(!1),l.initSvg(),l.render(),e[o]=l,c){const f=e[M(c.parent)],m=l;if(f&&m){const y=(d=f.getInput(c.input))==null?void 0:d.connection;if(y){const I=t(f,c.input);I?(u=I.nextConnection)==null||u.connect(m.previousConnection):y.connect(m.previousConnection)}}}});function t(s,o){var h,c;const n=s.getInput(o);if(!((h=n==null?void 0:n.connection)!=null&&h.targetBlock()))return null;let r=n.connection.targetBlock();for(;(c=r==null?void 0:r.nextConnection)!=null&&c.targetBlock();)r=r.nextConnection.targetBlock();return r}}const fs=i=>{let e="";return Object.keys(i).filter(t=>t&&t.length>0).forEach(t=>{e+=`.${Me(t)} { -`,Object.keys(i[t].cssOptionObj).forEach(s=>{i[t].checkedCssPropertyObj[s]&&i[t].cssOptionObj[s].length>0&&(e+=` ${s} : ${i[t].cssOptionObj[s]}; -`)}),e+=`} -`}),e},ms=["BOOLOCK_SYSTEM_head","BOOLOCK_SYSTEM_text","BOOLOCK_SYSTEM_br","BOOLOCK_SYSTEM_hr","BOOLOCK_SYSTEM_img"],ee=["BOOLOCK_SYSTEM_html","BOOLOCK_SYSTEM_body","BOOLOCK_SYSTEM_div","BOOLOCK_SYSTEM_span","BOOLOCK_SYSTEM_header","BOOLOCK_SYSTEM_section","BOOLOCK_SYSTEM_nav","BOOLOCK_SYSTEM_main","BOOLOCK_SYSTEM_article","BOOLOCK_SYSTEM_footer","BOOLOCK_SYSTEM_p","BOOLOCK_SYSTEM_strong","BOOLOCK_SYSTEM_h1","BOOLOCK_SYSTEM_h2","BOOLOCK_SYSTEM_h3","BOOLOCK_SYSTEM_h4","BOOLOCK_SYSTEM_h5","BOOLOCK_SYSTEM_h6","BOOLOCK_SYSTEM_small","BOOLOCK_SYSTEM_em","BOOLOCK_SYSTEM_i","BOOLOCK_SYSTEM_blockquote","BOOLOCK_SYSTEM_button","BOOLOCK_SYSTEM_option","BOOLOCK_SYSTEM_textarea","BOOLOCK_SYSTEM_select","BOOLOCK_SYSTEM_td","BOOLOCK_SYSTEM_tr","BOOLOCK_SYSTEM_th","BOOLOCK_SYSTEM_caption","BOOLOCK_SYSTEM_table","BOOLOCK_SYSTEM_ul","BOOLOCK_SYSTEM_ol","BOOLOCK_SYSTEM_li","BOOLOCK_SYSTEM_a"],_s=i=>{const e=[];return i.inputList.forEach(t=>{const s=t.connection;if(s){let o=s.targetBlock();for(;o;)e.push(o),o=o.getNextBlock()}}),e},gs=i=>ms.includes(i)?1:ee.includes(i)?2:0,se=i=>{if(!i)return 0;const e=i.type,t=gs(e),o=_s(i).reduce((n,r)=>n+se(r),0);return ee.includes(e)?2+o:t+o},bs=(i,e)=>{const t=i.split(` -`);for(let s=0;s{const{hasNextPage:i,fetchNextPage:e,isPending:t,isFetchingNextPage:s,isError:o,workspaceList:n}=us(),r=T.useRef(null);return T.useEffect(()=>{const h={root:null,rootMargin:"0px",threshold:.5},c=(d,u)=>{d.forEach(f=>{f.isIntersecting&&i&&(e(),u.unobserve(f.target))})},l=new IntersectionObserver(c,h);return r.current&&l.observe(r.current),()=>{r.current&&l.unobserve(r.current)}},[n]),E.jsxs("section",{className:"w-full max-w-[1152px] px-3 pb-48",children:[E.jsx(ae,{}),o?E.jsx(Fe,{}):n&&(n.length===0?E.jsx(ce,{}):E.jsxs(le,{children:[E.jsx(re,{workspaceList:n}),(t||s)&&E.jsx(He,{skeletonNum:8})]})),!t&&!s&&i&&E.jsx("div",{ref:r,className:"h-3 w-full"})]})};Ts.__docgenInfo={description:`@description -워크스페이스 헤더와 그리드를 감싸는 컨테이너 컴포넌트`,methods:[],displayName:"WorkspaceContainer"};const pt="72",Ss="53",Kt="47",Os="100";class ys extends _e{constructor(t){super(t);S(this,"customWorkspace");this.customWorkspace=t}createDom(){const t=super.createDom(),s=h=>{h.setAttribute("width",pt),h.setAttribute("height",Os),h.setAttribute("y","0"),h.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/trashcan.png")},o=(h,c,l,d)=>{h.setAttribute("width",c),h.setAttribute("height",l),d&&h.setAttribute("y",d)},n=t.querySelectorAll("image");n.length===2&&n.forEach(s);const r=t.querySelectorAll("clipPath");if(r.length===2){const h=r[0].querySelector("rect");h&&o(h,pt,Ss,Kt);const c=r[1].querySelector("rect");c&&o(c,pt,Kt)}return t}position(t,s){super.position(t,s);const o=document.querySelector(".blocklyTrash");if(o){const n=o.getAttribute("transform");if(n){const r=n.match(/translate\(([^,]+),\s*([^)]+)\)/);if(r){const h=parseFloat(r[1]);let c=parseFloat(r[2]);c-=20,o.setAttribute("transform",`translate(${h}, ${c})`)}}}}}class Is extends ge{constructor(t){super(t);S(this,"zoomInGroupSVG",null);S(this,"zoomOutGroupSVG",null);S(this,"zoomResetGroupSVG",null);S(this,"customWorkspace");this.customWorkspace=t}createDom(){const t=super.createDom();if(this.zoomInGroupSVG=t.querySelector(".blocklyZoomIn"),this.zoomInGroupSVG){const s=this.zoomInGroupSVG.querySelector("image");s&&s.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/sprites.png")}if(this.zoomOutGroupSVG=t.querySelector(".blocklyZoomOut"),this.zoomOutGroupSVG){const s=this.zoomOutGroupSVG.querySelector("image");s&&s.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/sprites.png")}if(this.zoomResetGroupSVG=t.querySelector(".blocklyZoomReset"),this.zoomResetGroupSVG){const s=this.zoomResetGroupSVG.querySelector("image");s&&s.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/sprites.png")}return t}position(t,s){var _,R,k,b;if(!(this.zoomInGroupSVG&&this.zoomOutGroupSVG&&this.zoomResetGroupSVG))return;const o=be,n=0,r=8,h=32,c=32,l=12,d=12,u={horizontal:1,vertical:0};let f=n+2*c;this.zoomResetGroupSVG&&(f+=r+c);const m=o.getStartPositionRect(u,new jt.Size(f,h),d,l,t,this.customWorkspace),y=o.bumpDirection.DOWN,I=o.bumpPositionRect(m,d,y,s),v=this.zoomResetGroupSVG?r+c:0;(_=this.zoomInGroupSVG)==null||_.setAttribute("transform",`translate(${v}, 0)`);const F=v+n+c;(R=this.zoomOutGroupSVG)==null||R.setAttribute("transform",`translate(${F}, 0)`),(b=(k=this.zoomInGroupSVG)==null?void 0:k.parentElement)==null||b.setAttribute("transform","translate("+I.left+","+I.top+")")}}class Es extends Te{constructor(t){super(t);S(this,"tabsConfig_");S(this,"currentTabId_");S(this,"tabContainer_",null);S(this,"contentsContainer_",null);S(this,"contentArea_",null);S(this,"flyout_",null)}init(){super.init();const t=this.getFlyout();if(!t)throw new Error("Flyout이 초기화되지 않았습니다. Toolbox 생성 시 Flyout 설정이 필요합니다.");if(!this.contentsContainer_)throw new Error("contentsContainer가 초기화되지 않았습니다. DOM 요소 생성이 필요합니다.");const s=tt.createElement("div",{class:"contentArea"});s.prepend(t.createDom("svg")),this.contentArea_=s,this.contentsContainer_.prepend(s)}createDom_(t){const s=t.getParentSvg(),o=this.createContainer_();return s.parentNode.insertBefore(o,s),this.tabContainer_=this.initTabContainer_(),o.appendChild(this.tabContainer_),this.contentsContainer_=this.initContentContainer_(),o.appendChild(this.contentsContainer_),this.contentsDiv_=this.createContentsContainer_(),this.contentsDiv_.tabIndex=0,this.contentsContainer_.appendChild(this.contentsDiv_),this.attachEvents_(o,this.contentsDiv_),o}clickTab(t){const s=Array.from(this.tabContainer_.children).find(o=>o.dataset.id===t);s&&this.selectTab_(t,s)}setConfig(t){const s=this.getFlyout();if(!s)throw new Error("Flyout이 초기화되지 않았습니다. tab을 생성한 이후 Flyout의 위치를 변경하기 위해 Flyout이 초기화되어 있어야 합니다.");this.tabsConfig_=t.tabs,this.currentTabId_=t.defaultSelectedTab,this.initTabs_(),s.position()}getContentHeight(){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다. 높이 계산을 위해서는 ContentArea가 초기화되어야 합니다.");const t=this.contentArea_.getBoundingClientRect(),s=this.contentArea_.children;let o=0;for(const n of s){if(n.classList.contains("blocklyFlyout"))break;const h=n.getBoundingClientRect().bottom-t.top,c=window.getComputedStyle(n),l=parseFloat(c.marginBottom);o=Math.max(o,h+l)}return o}getContentAreaMetrics(){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다. ContentArea의 width와 height를 계산하기 위해 ContentArea가 초기화되어야 합니다.");const t=this.contentArea_.getBoundingClientRect();return{width:t.width,height:t.height}}addElementToContentArea(t,s=!1){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다.");s?this.contentArea_.prepend(t):this.contentArea_.appendChild(t)}initTabContainer_(){return tt.createElement("div",{class:"toolboxTabs"})}initContentContainer_(){return tt.createElement("div",{class:"contentContainer"})}initTabs_(){if(!this.HtmlDiv||!this.tabContainer_)throw new Error("HtmlDiv나 ContentArea가 초기화되지 않았습니다.");Object.entries(this.tabsConfig_).forEach(([t,s])=>{const o=this.createTab_(s.label,t);this.currentTabId_&&this.currentTabId_===t&&this.selectTab_(t,o),o.addEventListener("click",()=>this.selectTab_(t,o)),this.tabContainer_.appendChild(o)})}createTab_(t,s){const o=tt.createElement("div",{class:"toolboxTab"});return o.dataset.id=s.toString(),o.appendChild(this.createLabel_(t)),o}createLabel_(t){const s=tt.createElement("span",{class:"toolboxTabLabel"});return s.textContent=t,s}selectTab_(t,s){if(!this.workspace_||!this.tabsConfig_)return;this.currentTabId_=t;const o=this.tabsConfig_[t];if(this.flyout_&&this.flyout_.dispose(),this.flyout_=this.createFlyoutByRegistry_(o.flyoutRegistryName||lt.registryName),!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다.");this.clearContentArea_(),this.contentArea_.prepend(this.flyout_.createDom("svg")),this.flyout_.init(this.workspace_),this.workspace_.updateToolbox(o.toolboxConfig),Array.from(this.tabContainer_.children).forEach(n=>{n.classList.remove("tabSelected")}),s.classList.add("tabSelected"),o.toolboxConfig.kind==="categoryToolbox"&&this.getToolboxItems().length!==0&&this.setSelectedItem(this.getToolboxItems()[0])}createFlyoutByRegistry_(t){const s=this.workspace_,o=new Se({parentWorkspace:s,rtl:s.RTL,oneBasedIndex:s.options.oneBasedIndex,horizontalLayout:s.horizontalLayout,renderer:s.options.renderer,rendererOverrides:s.options.rendererOverrides,move:{scrollbars:!0}});o.toolboxPosition=s.options.toolboxPosition;const n=V.getClass(V.Type.FLYOUTS_VERTICAL_TOOLBOX,t);return new n(o)}clearContentArea_(){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다.");this.contentArea_.innerHTML=""}onClick_(t){}}Qt.register(` -.toolboxTabs { - display: flex; - width: 24rem; /* 96 * 0.25rem */ -} - -.toolboxTab { - font-weight: 600; /* Text-semibold-md */ - display: flex; - flex: 1; - cursor: pointer; - justify-content: center; - border-top-left-radius: 0.5rem; /* rounded-t-lg */ - border-top-right-radius: 0.5rem; /* rounded-t-lg */ - background: linear-gradient(0deg, rgb(210 218 231) 0%, #eaeff6 30%); - padding: 0.75rem; /* py-3 */ - color: #56687A; /* text-gray-400 */ -} - -.tabSelected { - font-weight: 700; /* Text-bold-md */ - flex: 1; - border-top-left-radius: 0.5rem; /* rounded-t-lg */ - border-top-right-radius: 0.5rem; /* rounded-t-lg */ - background: transparent; - background-color: #3b82f6; /* bg-blue-500 */ - padding: 0.75rem; /* py-3 */ - color: #ffffff; /* text-white */ -} - -.contentContainer { - display: flex; - width: 100%; - height: 100%; - background-color: white; -} - -.contentArea { - width: 100%; - height: 100%; - overflow-y: scroll; -} -`);const Ds=(i,e)=>{const t=document.createElement("p");t.style.whiteSpace="pre-wrap",t.style.fontFamily="SUIT Variable",t.textContent=e.getTooltip(),i.appendChild(t)};let Ct="";class Ls extends Xt{constructor(e,t,s){super(e,t,s)}addColourBorder_(e){this.rowDiv_.style.color=e}setSelected(e){if(e){if(this.rowDiv_.id!==Ct){Ct=this.rowDiv_.id;const t=this.parentToolbox_;Object.values(t.contentMap_).forEach(o=>{o.rowDiv_.style.color=o.colour_,o.rowDiv_.style.backgroundColor="white"})}this.rowDiv_.style.backgroundColor=this.colour_,this.rowDiv_.style.color="white"}else{if(this.rowDiv_.id===Ct)return;this.rowDiv_.style.backgroundColor="white",this.rowDiv_.style.color=this.colour_}}createIconDom_(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24");const t=document.createElementNS("http://www.w3.org/2000/svg","path");return Gt[this.name_]&&t.setAttribute("d",Gt[this.name_]),t.setAttribute("fill","currentColor"),e.appendChild(t),e}}const et=jt.svgPaths;class xs extends xt.ConstantProvider{constructor(){super(),this.NOTCH_WIDTH=6*this.GRID_UNIT,this.NOTCH_HEIGHT=2*this.GRID_UNIT,this.NOTCH_OFFSET_LEFT=2*this.GRID_UNIT/3,this.CORNER_RADIUS=2*this.GRID_UNIT/3,this.FIELD_TEXT_FONTFAMILY="SUIT Variable",this.FIELD_TEXT_FONTWEIGHT="bold",this.EMPTY_INLINE_INPUT_PADDING=50,this.MIN_BLOCK_WIDTH=56,this.FIELD_BORDER_RECT_X_PADDING=7}makeNotch(){const e=this.NOTCH_WIDTH,t=this.NOTCH_HEIGHT;return{type:this.SHAPES.NOTCH,width:e,height:t,pathLeft:"h 0 c 1 0 1 0.5 2 2 l 3 5 c 1 1 2 1 4 0 l 10 -6 c 2 -1 3 -1 5 -1",pathRight:"c -2 0 -3 0 -5 1 l -10 6 c -2 1 -3 1 -4 0 l -3 -5 c -0.5 -1 -1 -2 -2 -2"}}makeRounded(){const e=this.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH,t=e*1.5;function s(o,n,r){let h=o>t?o-t:0;const c=o>t?t:o,l=c/8;h+=c/8*6;const d=r===n?"0":"1";return et.arc("a","0 0,"+d,l,et.point((r?1:-1)*l,(n?-1:1)*l))+et.lineOnAxis("v",(n?-1:1)*h)+et.arc("a","0 0,"+d,l,et.point((r?-1:1)*l,(n?-1:1)*l))}return{type:this.SHAPES.ROUND,isDynamic:!0,width(o){const n=o/3.5;return n>e?e:n-6},height(o){return o},connectionOffsetY(o){return o/2},connectionOffsetX(o){return-o},pathDown(o){return s(o,!1,!1)},pathUp(o){return s(o,!0,!1)},pathRightDown(o){return s(o,!1,!0)},pathRightUp(o){return s(o,!1,!0)}}}getCSS_(e){return[...super.getCSS_(e),`${e} .blocklyText {`,"fill: #F4F8FA;","}"]}}const ft=$t.Types;class vs extends xt.RenderInfo{constructor(t,s){super(t,s);S(this,"MIN_WIDTH",160);S(this,"MAX_WIDTH",0);S(this,"MAX_HEIGHT",0);S(this,"PADDING_EMPTY",0);S(this,"PADDING_DEFAULT",35);S(this,"PADDING_LEFT",14);S(this,"PADDING_RIGHT",10);S(this,"WIDTH_DIFF",this.MIN_WIDTH-110)}finalize_(){super.finalize_(),this.initDynamicProps();let t=this.topRow.width,s=!1;for(let o=0;o<2;o++)this.rows.forEach(n=>{if(n.hasInlineInput&&n.elements.length===5)t=this.handleInlineInput(n,t),s=!0;else{const r=n.elements.some(l=>ft.isField(l)&&l.field instanceof mt),h=n.elements.some(l=>ft.isField(l)&&l.field instanceof Ut),c=n.elements.some(l=>ft.isField(l)&&l.field instanceof Zt);r||c?(t=this.handleCustomInput(n,t),s=!0):h?(t=this.handleDropdown(n,t),s=!0):t=Math.max(t,this.MIN_WIDTH)}});this.updateWidths(t,s)}initDynamicProps(){this.MAX_WIDTH=this.constants_.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH,this.MAX_HEIGHT=this.MAX_WIDTH*1.5,this.PADDING_EMPTY=this.constants_.EMPTY_INLINE_INPUT_PADDING}handleInlineInput(t,s){const o=t.elements[1],n=t.elements[t.elements.length-2],h=Math.min(n.height,this.MAX_HEIGHT)/4,c=o.width,l=n.width,d=this.PADDING_LEFT+c+this.PADDING_DEFAULT+l+this.PADDING_RIGHT;let u=Math.max(d,this.MIN_WIDTH,s);const f=l-(h+this.PADDING_EMPTY);let m=0;if(f){const y=f>this.WIDTH_DIFF?(f+this.WIDTH_DIFF)/2:f;u+=y,m=u-(c+l+this.PADDING_LEFT+this.PADDING_RIGHT)-y}else m=u-(c+l+this.PADDING_LEFT+this.PADDING_RIGHT);return n.xPos=c+(m>this.PADDING_DEFAULT?m:this.PADDING_DEFAULT)+this.PADDING_LEFT,t.width=u>this.MIN_WIDTH?n.xPos+l+this.PADDING_RIGHT:this.MIN_WIDTH,Math.max(s,t.width)}handleCustomInput(t,s){const o=t.elements[t.elements.length-2],r=(t.elements.length>3?t.elements[1]:{width:0,xPos:8}).width,h=o.width,c=this.PADDING_LEFT+r+this.PADDING_DEFAULT+this.PADDING_RIGHT,l=c+h;return je(o)&&l3?t.elements[1]:{width:0,xPos:8}).width,h=o.width,c=this.PADDING_LEFT+r+this.PADDING_DEFAULT+this.PADDING_RIGHT+h,l=Math.max(this.MIN_WIDTH,c),d=Math.max(l,s);if(l==d)return o.xPos=r+this.PADDING_DEFAULT+this.PADDING_LEFT,t.width=Math.max(d,this.MIN_WIDTH),t.width;const u=d-l;return o.xPos=r+this.PADDING_DEFAULT+this.PADDING_LEFT+u,t.width=d,t.width}updateWidths(t,s){if(t>this.topRow.width){const o=t-this.topRow.width,n=o>this.WIDTH_DIFF&&s?(o+this.WIDTH_DIFF)/2:o;this.topRow.elements[this.topRow.elements.length-2].width+=n,this.bottomRow.elements[this.bottomRow.elements.length-2].width+=n,this.rows.forEach(r=>{r.hasStatement&&(r.width+=n)})}}}class ws extends xt.Renderer{constructor(e){super(e)}makeConstants_(){return new xs}makeRenderInfo_(e){return new vs(this,e)}}const As=()=>{$t.register("boolock",ws),V.register(V.Type.TOOLBOX_ITEM,Xt.registrationName,Ls,!0),V.register(V.Type.FLYOUTS_VERTICAL_TOOLBOX,lt.registryName,lt,!0),V.register(V.Type.FLYOUTS_VERTICAL_TOOLBOX,Rt.registryName,Rt,!0),Qt.register(` - .blocklyZoom>image, .blocklyZoom>svg>image { - opacity: .6; - } - - .blocklyZoom>image:hover, .blocklyZoom>svg>image:hover { - opacity: .8; - } - - .blocklyZoom>image:active, .blocklyZoom>svg>image:active { - opacity: 1; - } - `)};for(const i in at)Object.prototype.hasOwnProperty.call(at,i)&&delete at[i];As();ds(ye);Oe.setCustomTooltip(Ds);ht.prototype.addZoomControls=function(){this.zoomControls_=new Is(this);const i=this.zoomControls_.createDom();this.svgGroup_.appendChild(i)};ht.newTrashcan=function(i){return new ys(i)};ht.prototype.addTrashcan=function(){this.trashcan=ht.newTrashcan(this);const i=this.trashcan.createDom();this.svgGroup_.insertBefore(i,this.getCanvas())};const Rs=()=>{const[i,e]=T.useState(""),[t,s]=T.useState(""),{totalCssPropertyObj:o}=Pt(),{workspace:n,setWorkspace:r,canvasInfo:h}=Pe(),{setIsBlockChanged:c}=Ne(),{setCurrentCssClassName:l}=Pt(),{findClassBlock:d}=Be(),[u,f]=T.useState(0),[m,y]=T.useState(0),[I,v]=T.useState(null),F=T.useRef(!1);return T.useEffect(()=>{const _=Ie("blocklyDiv",{plugins:{flyoutsVerticalToolbox:lt,toolbox:Es},renderer:"boolock",toolboxPosition:"end",toolbox:Ee,theme:De,zoom:{controls:!0,wheel:!1,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2},maxTrashcanContents:0});_.getToolbox().setConfig(Le),Cs(_),_.clearUndo();const R=b=>{if(b.type===N.BLOCK_CREATE||b.type===N.BLOCK_MOVE||b.type===N.BLOCK_CHANGE||b.type===N.BLOCK_DELETE){const P=Mt(_),w=ve(P);e(w)}(b.type===N.VIEWPORT_CHANGE||b.type===N.BLOCK_DRAG||b.type===N.BLOCK_FIELD_INTERMEDIATE_CHANGE||b.type===N.BLOCK_MOVE&&F.current||b.type===N.BLOCK_DELETE&&F.current)&&c(!0),b.type===N.FINISHED_LOADING&&(F.current=!0)},k=b=>{if(!(b instanceof N.Click))return;const P=_.getBlockById(b.blockId||"");if(v(P&&P.type.startsWith("CSS_")?P.type.replace(/^CSS_/,""):null),!P){f(0),y(0);return}const w=Mt(_),nt=bs(w,P.id);f(nt);const D=se(P);y(D)};return _.getParentSvg().addEventListener("wheel",b=>{if(b.ctrlKey){b.preventDefault();const P=b.deltaY>0?-1:1;_.zoomCenter(P)}else b.preventDefault()},{passive:!1}),_.showContextMenu=()=>{},_.addChangeListener(R),_.addChangeListener(k),n===null&&r(_),()=>{_.removeChangeListener(R),_.removeChangeListener(k),_.dispose()}},[]),T.useEffect(()=>{if(!n)return;const _=R=>{if(R.type==="click"){const k=n.getBlockById(R.blockId);k&&d(k.type)&&l(k.type)}};return n.addChangeListener(_),()=>{n.removeChangeListener(_)}},[n]),T.useEffect(()=>{!n||!h||h.length===0||(xe.workspaces.load(JSON.parse(h),n),kt.contents.length=0,Object.keys(o).forEach(_=>{kt.contents.push({type:_,kind:"block",enabled:!0})}))},[n,h]),T.useEffect(()=>{s(fs(o))},[i,o]),E.jsxs("div",{className:"flex flex-1",children:[E.jsxs("div",{className:"flex h-[calc(100vh-56px)] w-[32rem] flex-shrink-0 flex-col",children:[E.jsx(he,{htmlCode:i,cssCode:t,selectedBlockStartLine:u,selectedBlockLength:m,selectedBlockType:I}),E.jsx(ie,{})]}),E.jsx("div",{id:"blocklyDiv",className:"h-full w-full"})]})};Rs.__docgenInfo={description:`@description -블록 코딩을 할 수 있고 웹사이트, HTML, CSS 코드를 미리보기 할 수 있는 컴포넌트`,methods:[],displayName:"WorkspaceContent"};const ie=()=>{const{currentStep:i}=ke();return E.jsxs("section",{className:`flex h-[26rem] w-full flex-col ${i===2?"z-[99998] bg-white":""}`,children:[E.jsx(Re,{}),E.jsxs("div",{className:"flex h-[calc(100%-48px)] w-full overflow-hidden",children:[E.jsx(we,{}),E.jsx(Ae,{})]})]})};ie.__docgenInfo={description:`@description -CSS 클래스를 선택하고 CSS 속성을 선택할 수 있는 컴포넌트`,methods:[],displayName:"CssPropsSelectBox"};export{ie as C,Qe as Q,Ts as W,Rs as a,ls as u}; diff --git a/assets/CssPropsSelectBox-CWdNthdf.js b/assets/CssPropsSelectBox-CWdNthdf.js new file mode 100644 index 00000000..af7eda8e --- /dev/null +++ b/assets/CssPropsSelectBox-CWdNthdf.js @@ -0,0 +1,65 @@ +var oe=Object.defineProperty;var wt=i=>{throw TypeError(i)};var ne=(i,e,t)=>e in i?oe(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var S=(i,e,t)=>ne(i,typeof e!="symbol"?e+"":e,t),ut=(i,e,t)=>e.has(i)||wt("Cannot "+t);var a=(i,e,t)=>(ut(i,e,"read from private field"),t?t.call(i):e.get(i)),L=(i,e,t)=>e.has(i)?wt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),g=(i,e,t,s)=>(ut(i,e,"write to private field"),s?s.call(i,t):e.set(i,t),t),O=(i,e,t)=>(ut(i,e,"access private method"),t);import{j as E}from"./jsx-runtime-DR9Q75dM.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import{W as re}from"./WorkspaceList-m-7GHa-8.js";import{W as ae}from"./WorkspaceHeader-BOFktQY9.js";import{E as ce}from"./EmptyWorkspace-C_olE9C4.js";import{W as le}from"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DhaiX4aW.js";import{P as he}from"./PreviewBox-L0Yy0i69.js";import"./CoachMark-CMgIOAJW.js";import{F as ue,s as de,n as pe,w as Ce,f as At,h as fe,k as me,l as K,B as at,m as mt,o as dt,p as Ut,q as jt,T as _e,Z as ge,u as Zt,r as be,t as Qt,x as Te,D as tt,y as lt,O as Se,z as V,A as Xt,E as xt,G as $t,J as Rt,K as Oe,L as ht,M as ye,N as Ie,P as Ee,Q as De,V as Le,X as xe,j as kt,Y as N,_ as Mt,$ as ve}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import{C as we}from"./CssCategoryBar-DrLnwxhd.js";import{C as Ae}from"./CssOptionItemList-BWXhZs3U.js";import{C as Re}from"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import{u as ke}from"./useCoachMarkStore-B_Mp-SD7.js";import{k as M,l as _t,r as Me,u as Pt,g as Pe,h as Ne,c as Be}from"./html2canvas.esm-BTtajP0W.js";import{r as T}from"./index-DRjF_FHU.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import{S as He}from"./SkeletonWorkspaceList-LqBByOXs.js";import{W as Fe}from"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./index-D1AAVYfs.js";import{S as Ge,v as Nt,a as H,w as gt,l as ct,n as Ve,x as bt,y as Bt,t as We,k as Ye,r as Ht,b as qt,z as Ke}from"./QueryClientProvider-BdRu95_o.js";import{f as ze,i as Ft,h as Ue,a as je}from"./infiniteQueryBehavior-DdhmIwcw.js";const Gt={컨테이너:"M11.5 21.725V12.575L3.5 7.95V15.975C3.5 16.3417 3.5875 16.675 3.7625 16.975C3.9375 17.275 4.18333 17.5167 4.5 17.7L11.5 21.725ZM13.5 21.725L20.5 17.7C20.8167 17.5167 21.0625 17.275 21.2375 16.975C21.4125 16.675 21.5 16.3417 21.5 15.975V7.95L13.5 12.575V21.725ZM17.475 7.975L20.425 6.25L13.5 2.275C13.1833 2.09167 12.85 2 12.5 2C12.15 2 11.8167 2.09167 11.5 2.275L9.525 3.4L17.475 7.975ZM12.5 10.85L15.475 9.15L7.55 4.55L4.55 6.275L12.5 10.85Z",텍스트:"M17.5 15C17.2167 15 16.9792 14.9042 16.7875 14.7125C16.5958 14.5208 16.5 14.2833 16.5 14V10C16.5 9.71667 16.5958 9.47917 16.7875 9.2875C16.9792 9.09583 17.2167 9 17.5 9H20.5C20.7833 9 21.0208 9.09583 21.2125 9.2875C21.4042 9.47917 21.5 9.71667 21.5 10V11H20V10.5H18V13.5H20V13H21.5V14C21.5 14.2833 21.4042 14.5208 21.2125 14.7125C21.0208 14.9042 20.7833 15 20.5 15H17.5ZM10 15V9H14C14.2833 9 14.5208 9.09583 14.7125 9.2875C14.9042 9.47917 15 9.71667 15 10V11C15 11.2833 14.9042 11.5208 14.7125 11.7125C14.5208 11.9042 14.2833 12 14 12C14.2833 12 14.5208 12.0958 14.7125 12.2875C14.9042 12.4792 15 12.7167 15 13V14C15 14.2833 14.9042 14.5208 14.7125 14.7125C14.5208 14.9042 14.2833 15 14 15H10ZM11.5 11.25H13.5V10.5H11.5V11.25ZM11.5 13.5H13.5V12.75H11.5V13.5ZM3.5 15V10C3.5 9.71667 3.59583 9.47917 3.7875 9.2875C3.97917 9.09583 4.21667 9 4.5 9H7.5C7.78333 9 8.02083 9.09583 8.2125 9.2875C8.40417 9.47917 8.5 9.71667 8.5 10V15H7V13.5H5V15H3.5ZM5 12H7V10.5H5V12Z",폼:"M12.5 4.25C12.7167 4.25 12.8958 4.17917 13.0375 4.0375C13.1792 3.89583 13.25 3.71667 13.25 3.5C13.25 3.28333 13.1792 3.10417 13.0375 2.9625C12.8958 2.82083 12.7167 2.75 12.5 2.75C12.2833 2.75 12.1042 2.82083 11.9625 2.9625C11.8208 3.10417 11.75 3.28333 11.75 3.5C11.75 3.71667 11.8208 3.89583 11.9625 4.0375C12.1042 4.17917 12.2833 4.25 12.5 4.25ZM18.5 23C17.1167 23 15.9375 22.5125 14.9625 21.5375C13.9875 20.5625 13.5 19.3833 13.5 18C13.5 16.6167 13.9875 15.4375 14.9625 14.4625C15.9375 13.4875 17.1167 13 18.5 13C19.8833 13 21.0625 13.4875 22.0375 14.4625C23.0125 15.4375 23.5 16.6167 23.5 18C23.5 19.3833 23.0125 20.5625 22.0375 21.5375C21.0625 22.5125 19.8833 23 18.5 23ZM5.5 21C4.95 21 4.47917 20.8042 4.0875 20.4125C3.69583 20.0208 3.5 19.55 3.5 19V5C3.5 4.45 3.69583 3.97917 4.0875 3.5875C4.47917 3.19583 4.95 3 5.5 3H9.7C9.91667 2.4 10.2792 1.91667 10.7875 1.55C11.2958 1.18333 11.8667 1 12.5 1C13.1333 1 13.7042 1.18333 14.2125 1.55C14.7208 1.91667 15.0833 2.4 15.3 3H19.5C20.05 3 20.5208 3.19583 20.9125 3.5875C21.3042 3.97917 21.5 4.45 21.5 5V10.45C21.5 10.75 21.375 10.9833 21.125 11.15C20.875 11.3167 20.6083 11.35 20.325 11.25C20.0417 11.1667 19.7458 11.1042 19.4375 11.0625C19.1292 11.0208 18.8167 11 18.5 11C18.3167 11 18.1458 11.0042 17.9875 11.0125C17.8292 11.0208 17.6667 11.0417 17.5 11.075C17.4167 11.0583 17.3167 11.0417 17.2 11.025C17.1167 11.025 17.0125 11.0208 16.8875 11.0125C16.7625 11.0042 16.6333 11 16.5 11H8.5C8.21667 11 7.97917 11.0958 7.7875 11.2875C7.59583 11.4792 7.5 11.7167 7.5 12C7.5 12.2833 7.59583 12.5208 7.7875 12.7125C7.97917 12.9042 8.21667 13 8.5 13H13.625C13.325 13.2833 13.0542 13.5917 12.8125 13.925C12.5708 14.2583 12.3583 14.6167 12.175 15H8.5C8.21667 15 7.97917 15.0958 7.7875 15.2875C7.59583 15.4792 7.5 15.7167 7.5 16C7.5 16.2833 7.59583 16.5208 7.7875 16.7125C7.97917 16.9042 8.21667 17 8.5 17H11.575C11.5417 17.1667 11.5208 17.3292 11.5125 17.4875C11.5042 17.6458 11.5 17.8167 11.5 18C11.5 18.3333 11.5167 18.65 11.55 18.95C11.5833 19.25 11.6417 19.5417 11.725 19.825C11.8083 20.1083 11.7667 20.375 11.6 20.625C11.4333 20.875 11.2083 21 10.925 21H5.5ZM18 18.5V20.5C18 20.6333 18.05 20.75 18.15 20.85C18.25 20.95 18.3667 21 18.5 21C18.6333 21 18.75 20.95 18.85 20.85C18.95 20.75 19 20.6333 19 20.5V18.5H21C21.1333 18.5 21.25 18.45 21.35 18.35C21.45 18.25 21.5 18.1333 21.5 18C21.5 17.8667 21.45 17.75 21.35 17.65C21.25 17.55 21.1333 17.5 21 17.5H19V15.5C19 15.3667 18.95 15.25 18.85 15.15C18.75 15.05 18.6333 15 18.5 15C18.3667 15 18.25 15.05 18.15 15.15C18.05 15.25 18 15.3667 18 15.5V17.5H16C15.8667 17.5 15.75 17.55 15.65 17.65C15.55 17.75 15.5 17.8667 15.5 18C15.5 18.1333 15.55 18.25 15.65 18.35C15.75 18.45 15.8667 18.5 16 18.5H18ZM8.5 9H16.5C16.7833 9 17.0208 8.90417 17.2125 8.7125C17.4042 8.52083 17.5 8.28333 17.5 8C17.5 7.71667 17.4042 7.47917 17.2125 7.2875C17.0208 7.09583 16.7833 7 16.5 7H8.5C8.21667 7 7.97917 7.09583 7.7875 7.2875C7.59583 7.47917 7.5 7.71667 7.5 8C7.5 8.28333 7.59583 8.52083 7.7875 8.7125C7.97917 8.90417 8.21667 9 8.5 9Z",표:"M3.5 8V5C3.5 4.45 3.69583 3.97917 4.0875 3.5875C4.47917 3.19583 4.95 3 5.5 3H19.5C20.05 3 20.5208 3.19583 20.9125 3.5875C21.3042 3.97917 21.5 4.45 21.5 5V8H3.5ZM5.5 21C4.95 21 4.47917 20.8042 4.0875 20.4125C3.69583 20.0208 3.5 19.55 3.5 19V10H8V21H5.5ZM17 21V10H21.5V19C21.5 19.55 21.3042 20.0208 20.9125 20.4125C20.5208 20.8042 20.05 21 19.5 21H17ZM10 21V10H15V21H10Z",리스트:"M6.0248 16.1749L9.5748 12.6249C9.7748 12.4249 10.0081 12.3291 10.2748 12.3374C10.5415 12.3457 10.7748 12.4499 10.9748 12.6499C11.1581 12.8499 11.2498 13.0832 11.2498 13.3499C11.2498 13.6166 11.1581 13.8499 10.9748 14.0499L6.7498 18.2999C6.5498 18.4999 6.31647 18.5999 6.0498 18.5999C5.78314 18.5999 5.5498 18.4999 5.3498 18.2999L3.1998 16.1499C3.01647 15.9666 2.9248 15.7332 2.9248 15.4499C2.9248 15.1666 3.01647 14.9332 3.1998 14.7499C3.38314 14.5666 3.61647 14.4749 3.8998 14.4749C4.18314 14.4749 4.41647 14.5666 4.5998 14.7499L6.0248 16.1749ZM6.0248 8.17491L9.5748 4.62491C9.7748 4.42491 10.0081 4.32908 10.2748 4.33741C10.5415 4.34575 10.7748 4.44991 10.9748 4.64991C11.1581 4.84991 11.2498 5.08325 11.2498 5.34991C11.2498 5.61658 11.1581 5.84991 10.9748 6.04991L6.7498 10.2999C6.5498 10.4999 6.31647 10.5999 6.0498 10.5999C5.78314 10.5999 5.5498 10.4999 5.3498 10.2999L3.1998 8.14991C3.01647 7.96658 2.9248 7.73325 2.9248 7.44991C2.9248 7.16658 3.01647 6.93325 3.1998 6.74991C3.38314 6.56658 3.61647 6.47491 3.8998 6.47491C4.18314 6.47491 4.41647 6.56658 4.5998 6.74991L6.0248 8.17491ZM14.4998 16.9999C14.2165 16.9999 13.979 16.9041 13.7873 16.7124C13.5956 16.5207 13.4998 16.2832 13.4998 15.9999C13.4998 15.7166 13.5956 15.4791 13.7873 15.2874C13.979 15.0957 14.2165 14.9999 14.4998 14.9999H21.4998C21.7831 14.9999 22.0206 15.0957 22.2123 15.2874C22.404 15.4791 22.4998 15.7166 22.4998 15.9999C22.4998 16.2832 22.404 16.5207 22.2123 16.7124C22.0206 16.9041 21.7831 16.9999 21.4998 16.9999H14.4998ZM14.4998 8.99991C14.2165 8.99991 13.979 8.90408 13.7873 8.71241C13.5956 8.52075 13.4998 8.28325 13.4998 7.99991C13.4998 7.71658 13.5956 7.47908 13.7873 7.28741C13.979 7.09575 14.2165 6.99991 14.4998 6.99991H21.4998C21.7831 6.99991 22.0206 7.09575 22.2123 7.28741C22.404 7.47908 22.4998 7.71658 22.4998 7.99991C22.4998 8.28325 22.404 8.52075 22.2123 8.71241C22.0206 8.90408 21.7831 8.99991 21.4998 8.99991H14.4998Z",링크:"M18.5 15.75C18.5 17.4833 17.8917 18.9583 16.675 20.175C15.4583 21.3917 13.9833 22 12.25 22C10.5167 22 9.04167 21.3917 7.825 20.175C6.60833 18.9583 6 17.4833 6 15.75V6.5C6 5.25 6.4375 4.1875 7.3125 3.3125C8.1875 2.4375 9.25 2 10.5 2C11.75 2 12.8125 2.4375 13.6875 3.3125C14.5625 4.1875 15 5.25 15 6.5V15.25C15 16.0167 14.7333 16.6667 14.2 17.2C13.6667 17.7333 13.0167 18 12.25 18C11.4833 18 10.8333 17.7333 10.3 17.2C9.76667 16.6667 9.5 16.0167 9.5 15.25V7C9.5 6.71667 9.59583 6.47917 9.7875 6.2875C9.97917 6.09583 10.2167 6 10.5 6C10.7833 6 11.0208 6.09583 11.2125 6.2875C11.4042 6.47917 11.5 6.71667 11.5 7V15.25C11.5 15.4667 11.5708 15.6458 11.7125 15.7875C11.8542 15.9292 12.0333 16 12.25 16C12.4667 16 12.6458 15.9292 12.7875 15.7875C12.9292 15.6458 13 15.4667 13 15.25V6.5C12.9833 5.8 12.7375 5.20833 12.2625 4.725C11.7875 4.24167 11.2 4 10.5 4C9.8 4 9.20833 4.24167 8.725 4.725C8.24167 5.20833 8 5.8 8 6.5V15.75C7.98333 16.9333 8.39167 17.9375 9.225 18.7625C10.0583 19.5875 11.0667 20 12.25 20C13.4167 20 14.4083 19.5875 15.225 18.7625C16.0417 17.9375 16.4667 16.9333 16.5 15.75V7C16.5 6.71667 16.5958 6.47917 16.7875 6.2875C16.9792 6.09583 17.2167 6 17.5 6C17.7833 6 18.0208 6.09583 18.2125 6.2875C18.4042 6.47917 18.5 6.71667 18.5 7V15.75Z",내용:"M9.5 20C9.18333 20 8.88333 19.9292 8.6 19.7875C8.31667 19.6458 8.08333 19.45 7.9 19.2L3.4 13.2C3.13333 12.85 3 12.45 3 12C3 11.55 3.13333 11.15 3.4 10.8L7.9 4.8C8.08333 4.55 8.31667 4.35417 8.6 4.2125C8.88333 4.07083 9.18333 4 9.5 4H20.5C21.05 4 21.5208 4.19583 21.9125 4.5875C22.3042 4.97917 22.5 5.45 22.5 6V18C22.5 18.55 22.3042 19.0208 21.9125 19.4125C21.5208 19.8042 21.05 20 20.5 20H9.5ZM10.5 13C10.7833 13 11.0208 12.9042 11.2125 12.7125C11.4042 12.5208 11.5 12.2833 11.5 12C11.5 11.7167 11.4042 11.4792 11.2125 11.2875C11.0208 11.0958 10.7833 11 10.5 11C10.2167 11 9.97917 11.0958 9.7875 11.2875C9.59583 11.4792 9.5 11.7167 9.5 12C9.5 12.2833 9.59583 12.5208 9.7875 12.7125C9.97917 12.9042 10.2167 13 10.5 13ZM14 13C14.2833 13 14.5208 12.9042 14.7125 12.7125C14.9042 12.5208 15 12.2833 15 12C15 11.7167 14.9042 11.4792 14.7125 11.2875C14.5208 11.0958 14.2833 11 14 11C13.7167 11 13.4792 11.0958 13.2875 11.2875C13.0958 11.4792 13 11.7167 13 12C13 12.2833 13.0958 12.5208 13.2875 12.7125C13.4792 12.9042 13.7167 13 14 13ZM17.5 13C17.7833 13 18.0208 12.9042 18.2125 12.7125C18.4042 12.5208 18.5 12.2833 18.5 12C18.5 11.7167 18.4042 11.4792 18.2125 11.2875C18.0208 11.0958 17.7833 11 17.5 11C17.2167 11 16.9792 11.0958 16.7875 11.2875C16.5958 11.4792 16.5 11.7167 16.5 12C16.5 12.2833 16.5958 12.5208 16.7875 12.7125C16.9792 12.9042 17.2167 13 17.5 13Z"};function Ze(i){return"field"in i&&i.field instanceof ue}var A,p,it,x,z,X,W,B,ot,$,q,U,j,Y,J,C,st,Tt,St,Ot,yt,It,Et,Dt,Jt,zt,Qe=(zt=class extends Ge{constructor(e,t){super();L(this,C);L(this,A);L(this,p);L(this,it);L(this,x);L(this,z);L(this,X);L(this,W);L(this,B);L(this,ot);L(this,$);L(this,q);L(this,U);L(this,j);L(this,Y);L(this,J,new Set);this.options=t,g(this,A,e),g(this,B,null),g(this,W,Nt()),this.options.experimental_prefetchInRender||a(this,W).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(a(this,p).addObserver(this),Vt(a(this,p),this.options)?O(this,C,st).call(this):this.updateResult(),O(this,C,yt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lt(a(this,p),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lt(a(this,p),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,O(this,C,It).call(this),O(this,C,Et).call(this),a(this,p).removeObserver(this)}setOptions(e,t){const s=this.options,o=a(this,p);if(this.options=a(this,A).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof H(this.options.enabled,a(this,p))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");O(this,C,Dt).call(this),a(this,p).setOptions(this.options),s._defaulted&&!gt(this.options,s)&&a(this,A).getQueryCache().notify({type:"observerOptionsUpdated",query:a(this,p),observer:this});const n=this.hasListeners();n&&Wt(a(this,p),o,this.options,s)&&O(this,C,st).call(this),this.updateResult(t),n&&(a(this,p)!==o||H(this.options.enabled,a(this,p))!==H(s.enabled,a(this,p))||ct(this.options.staleTime,a(this,p))!==ct(s.staleTime,a(this,p)))&&O(this,C,Tt).call(this);const r=O(this,C,St).call(this);n&&(a(this,p)!==o||H(this.options.enabled,a(this,p))!==H(s.enabled,a(this,p))||r!==a(this,Y))&&O(this,C,Ot).call(this,r)}getOptimisticResult(e){const t=a(this,A).getQueryCache().build(a(this,A),e),s=this.createResult(t,e);return $e(this,s)&&(g(this,x,s),g(this,X,this.options),g(this,z,a(this,p).state)),s}getCurrentResult(){return a(this,x)}trackResult(e,t){const s={};return Object.keys(e).forEach(o=>{Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),t==null||t(o),e[o])})}),s}trackProp(e){a(this,J).add(e)}getCurrentQuery(){return a(this,p)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=a(this,A).defaultQueryOptions(e),s=a(this,A).getQueryCache().build(a(this,A),t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return O(this,C,st).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),a(this,x)))}createResult(e,t){var nt;const s=a(this,p),o=this.options,n=a(this,x),r=a(this,z),h=a(this,X),l=e!==s?e.state:a(this,it),{state:d}=e;let u={...d},f=!1,m;if(t._optimisticResults){const D=this.hasListeners(),Z=!D&&Vt(e,t),Q=D&&Wt(e,s,t,o);(Z||Q)&&(u={...u,...ze(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:y,errorUpdatedAt:I,status:v}=u;if(t.select&&u.data!==void 0)if(n&&u.data===(r==null?void 0:r.data)&&t.select===a(this,ot))m=a(this,$);else try{g(this,ot,t.select),m=t.select(u.data),m=Ht(n==null?void 0:n.data,m,t),g(this,$,m),g(this,B,null)}catch(D){g(this,B,D)}else m=u.data;if(t.placeholderData!==void 0&&m===void 0&&v==="pending"){let D;if(n!=null&&n.isPlaceholderData&&t.placeholderData===(h==null?void 0:h.placeholderData))D=n.data;else if(D=typeof t.placeholderData=="function"?t.placeholderData((nt=a(this,q))==null?void 0:nt.state.data,a(this,q)):t.placeholderData,t.select&&D!==void 0)try{D=t.select(D),g(this,B,null)}catch(Z){g(this,B,Z)}D!==void 0&&(v="success",m=Ht(n==null?void 0:n.data,D,t),f=!0)}a(this,B)&&(y=a(this,B),m=a(this,$),I=Date.now(),v="error");const F=u.fetchStatus==="fetching",_=v==="pending",R=v==="error",k=_&&F,b=m!==void 0,w={status:v,fetchStatus:u.fetchStatus,isPending:_,isSuccess:v==="success",isError:R,isInitialLoading:k,isLoading:k,data:m,dataUpdatedAt:u.dataUpdatedAt,error:y,errorUpdatedAt:I,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:F,isRefetching:F&&!_,isLoadingError:R&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:R&&b,isStale:vt(e,t),refetch:this.refetch,promise:a(this,W)};if(this.options.experimental_prefetchInRender){const D=rt=>{w.status==="error"?rt.reject(w.error):w.data!==void 0&&rt.resolve(w.data)},Z=()=>{const rt=g(this,W,w.promise=Nt());D(rt)},Q=a(this,W);switch(Q.status){case"pending":e.queryHash===s.queryHash&&D(Q);break;case"fulfilled":(w.status==="error"||w.data!==Q.value)&&Z();break;case"rejected":(w.status!=="error"||w.error!==Q.reason)&&Z();break}}return w}updateResult(e){const t=a(this,x),s=this.createResult(a(this,p),this.options);if(g(this,z,a(this,p).state),g(this,X,this.options),a(this,z).data!==void 0&&g(this,q,a(this,p)),gt(s,t))return;g(this,x,s);const o={},n=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,h=typeof r=="function"?r():r;if(h==="all"||!h&&!a(this,J).size)return!0;const c=new Set(h??a(this,J));return this.options.throwOnError&&c.add("error"),Object.keys(a(this,x)).some(l=>{const d=l;return a(this,x)[d]!==t[d]&&c.has(d)})};(e==null?void 0:e.listeners)!==!1&&n()&&(o.listeners=!0),O(this,C,Jt).call(this,{...o,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&O(this,C,yt).call(this)}},A=new WeakMap,p=new WeakMap,it=new WeakMap,x=new WeakMap,z=new WeakMap,X=new WeakMap,W=new WeakMap,B=new WeakMap,ot=new WeakMap,$=new WeakMap,q=new WeakMap,U=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakMap,C=new WeakSet,st=function(e){O(this,C,Dt).call(this);let t=a(this,p).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Ve)),t},Tt=function(){O(this,C,It).call(this);const e=ct(this.options.staleTime,a(this,p));if(bt||a(this,x).isStale||!Bt(e))return;const s=We(a(this,x).dataUpdatedAt,e)+1;g(this,U,setTimeout(()=>{a(this,x).isStale||this.updateResult()},s))},St=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(a(this,p)):this.options.refetchInterval)??!1},Ot=function(e){O(this,C,Et).call(this),g(this,Y,e),!(bt||H(this.options.enabled,a(this,p))===!1||!Bt(a(this,Y))||a(this,Y)===0)&&g(this,j,setInterval(()=>{(this.options.refetchIntervalInBackground||Ye.isFocused())&&O(this,C,st).call(this)},a(this,Y)))},yt=function(){O(this,C,Tt).call(this),O(this,C,Ot).call(this,O(this,C,St).call(this))},It=function(){a(this,U)&&(clearTimeout(a(this,U)),g(this,U,void 0))},Et=function(){a(this,j)&&(clearInterval(a(this,j)),g(this,j,void 0))},Dt=function(){const e=a(this,A).getQueryCache().build(a(this,A),this.options);if(e===a(this,p))return;const t=a(this,p);g(this,p,e),g(this,it,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},Jt=function(e){qt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(a(this,x))}),a(this,A).getQueryCache().notify({query:a(this,p),type:"observerResultsUpdated"})})},zt);function Xe(i,e){return H(e.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&e.retryOnMount===!1)}function Vt(i,e){return Xe(i,e)||i.state.data!==void 0&&Lt(i,e,e.refetchOnMount)}function Lt(i,e,t){if(H(e.enabled,i)!==!1){const s=typeof t=="function"?t(i):t;return s==="always"||s!==!1&&vt(i,e)}return!1}function Wt(i,e,t,s){return(i!==e||H(s.enabled,i)===!1)&&(!t.suspense||i.state.status!=="error")&&vt(i,t)}function vt(i,e){return H(e.enabled,i)!==!1&&i.isStaleByTime(ct(e.staleTime,i))}function $e(i,e){return!gt(i.getCurrentResult(),e)}var qe=class extends Qe{constructor(i,e){super(i,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(i,e){super.setOptions({...i,behavior:Ft()},e)}getOptimisticResult(i){return i.behavior=Ft(),super.getOptimisticResult(i)}fetchNextPage(i){return this.fetch({...i,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(i){return this.fetch({...i,meta:{fetchMore:{direction:"backward"}}})}createResult(i,e){var y,I;const{state:t}=i,s=super.createResult(i,e),{isFetching:o,isRefetching:n,isError:r,isRefetchError:h}=s,c=(I=(y=t.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:I.direction,l=r&&c==="forward",d=o&&c==="forward",u=r&&c==="backward",f=o&&c==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ue(e,t.data),hasPreviousPage:je(e,t.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:u,isFetchingPreviousPage:f,isRefetchError:h&&!l&&!u,isRefetching:n&&!d&&!f}}},te=T.createContext(!1),Je=()=>T.useContext(te);te.Provider;function ts(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var es=T.createContext(ts()),ss=()=>T.useContext(es),is=(i,e)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(e.isReset()||(i.retryOnMount=!1))},os=i=>{T.useEffect(()=>{i.clearReset()},[i])},ns=({result:i,errorResetBoundary:e,throwOnError:t,query:s})=>i.isError&&!e.isReset()&&!i.isFetching&&s&&de(t,[i.error,s]),rs=i=>{i.suspense&&(i.staleTime===void 0&&(i.staleTime=1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},as=(i,e)=>i.isLoading&&i.isFetching&&!e,cs=(i,e)=>(i==null?void 0:i.suspense)&&e.isPending,Yt=(i,e,t)=>e.fetchOptimistic(i).catch(()=>{t.clearReset()});function ls(i,e,t){var d,u,f,m,y;const s=Ke(),o=Je(),n=ss(),r=s.defaultQueryOptions(i);(u=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||u.call(d,r),r._optimisticResults=o?"isRestoring":"optimistic",rs(r),is(r,n),os(n);const h=!s.getQueryCache().get(r.queryHash),[c]=T.useState(()=>new e(s,r)),l=c.getOptimisticResult(r);if(T.useSyncExternalStore(T.useCallback(I=>{const v=o?()=>{}:c.subscribe(qt.batchCalls(I));return c.updateResult(),v},[c,o]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),T.useEffect(()=>{c.setOptions(r,{listeners:!1})},[r,c]),cs(r,l))throw Yt(r,c,n);if(ns({result:l,errorResetBoundary:n,throwOnError:r.throwOnError,query:s.getQueryCache().get(r.queryHash)}))throw l.error;if((m=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||m.call(f,r,l),r.experimental_prefetchInRender&&!bt&&as(l,o)){const I=h?Yt(r,c,n):(y=s.getQueryCache().get(r.queryHash))==null?void 0:y.promise;I==null||I.catch(pe).finally(()=>{c.updateResult()})}return r.notifyOnChangeProps?l:c.trackResult(l)}function hs(i,e){return ls(i,qe)}const us=()=>{const i=me(),{hasNextPage:e,fetchNextPage:t,isPending:s,isFetchingNextPage:o,isError:n,data:r}=hs({queryKey:Ce.list(),queryFn:async({pageParam:h})=>{const c=!At(),l=At()||fe();return c&&await i.createWorkspace(l,!0),i.getWorkspaceList(l,h)},initialPageParam:"null",getNextPageParam:h=>{var c;return(c=h.pagedWorkspaceListResult)!=null&&c.nextCursor?JSON.stringify(h.pagedWorkspaceListResult.nextCursor):void 0},select:h=>(h.pages??[]).flatMap(c=>c.pagedWorkspaceListResult.workspaceList)});return{hasNextPage:e,fetchNextPage:t,isFetchingNextPage:o,isPending:s,isError:n,workspaceList:r}},G=(i,e,t,s={init:function(){}},o=!0)=>{const n=s.init;s.init=function(){n.call(this),this.styleName_||(this.setStyle(`defaultBlock${e}`),this.setTooltip(t)),o&&(this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("css class").setCheck("CSS-CLASS").appendField(new K(_t(i))),this.appendStatementInput("children").appendField())},at[i]=s},ds=i=>{G(M("html"),1,`웹페이지의 시작과 끝을 알려주는 가장 큰 상자예요. +모든 내용을 담고 있는 책의 겉표지 같은 거예요.`,{init:function(){this.appendDummyInput().appendField(new K("html")),this.appendStatementInput("children").appendField("")}},!1),G(M("head"),2,`웹페이지의 정보를 담아두는 곳이에요. +책의 목차나 출판 정보같이 보이지 않지만 중요한 정보들이 들어가요.`,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField(new K("head"))}},!1),G(M("body"),3,`웹페이지에서 실제로 보이는 모든 내용이 들어가는 곳이에요. +책의 실제 내용이 적힌 부분같은 거예요.`),Object.values(i).forEach(e=>{e.forEach((t,s)=>{t.type===M("text")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField(new K(_t(t.type))).appendField(new mt,"TEXT"),this.setTooltip(t.description)}},!1):t.type===M("hr")||t.type===M("br")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField(new K(_t(t.type)))}},!1):t.type===M("a")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("css class").setCheck("CSS-CLASS").appendField(new K("a")),this.appendDummyInput().appendField(new dt("target")).appendField(new Ut([["_blank","_blank"],["_parent","_parent"],["_top","_top"]]),"TARGET"),this.appendDummyInput().appendField(new dt("href")).appendField(new mt,"HREF"),this.appendStatementInput("children").appendField(),this.setInputsInline(!1)}},!1):t.type===M("img")?G(t.type,s%3+1,t.description,{init:function(){this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("css class").setCheck("CSS-CLASS").appendField(new K("img")),this.appendDummyInput().appendField(new dt("src")).appendField(new jt(""),"SRC"),this.setInputsInline(!1)}},!1):G(t.type,s%3+1,t.description)})})},ps=[{type:M("html"),coordinate:{x:40,y:40},movable:!1,deletable:!1},{type:M("head"),connection:{parent:"html",input:"children"},movable:!1,deletable:!1},{type:M("body"),connection:{parent:"html",input:"children"},movable:!1,deletable:!1}];function Cs(i){const e={};ps.forEach(s=>{var d,u;const{type:o,coordinate:n,deletable:r,movable:h,connection:c}=s,l=i.newBlock(o);if(n&&l.moveBy(n.x,n.y),h===!1&&l.setMovable(!1),r===!1&&l.setDeletable(!1),l.initSvg(),l.render(),e[o]=l,c){const f=e[M(c.parent)],m=l;if(f&&m){const y=(d=f.getInput(c.input))==null?void 0:d.connection;if(y){const I=t(f,c.input);I?(u=I.nextConnection)==null||u.connect(m.previousConnection):y.connect(m.previousConnection)}}}});function t(s,o){var h,c;const n=s.getInput(o);if(!((h=n==null?void 0:n.connection)!=null&&h.targetBlock()))return null;let r=n.connection.targetBlock();for(;(c=r==null?void 0:r.nextConnection)!=null&&c.targetBlock();)r=r.nextConnection.targetBlock();return r}}const fs=i=>{let e="";return Object.keys(i).filter(t=>t&&t.length>0).forEach(t=>{e+=`.${Me(t)} { +`,Object.keys(i[t].cssOptionObj).forEach(s=>{i[t].checkedCssPropertyObj[s]&&i[t].cssOptionObj[s].length>0&&(e+=` ${s} : ${i[t].cssOptionObj[s]}; +`)}),e+=`} +`}),e},ms=["BOOLOCK_SYSTEM_head","BOOLOCK_SYSTEM_text","BOOLOCK_SYSTEM_br","BOOLOCK_SYSTEM_hr","BOOLOCK_SYSTEM_img"],ee=["BOOLOCK_SYSTEM_html","BOOLOCK_SYSTEM_body","BOOLOCK_SYSTEM_div","BOOLOCK_SYSTEM_span","BOOLOCK_SYSTEM_header","BOOLOCK_SYSTEM_section","BOOLOCK_SYSTEM_nav","BOOLOCK_SYSTEM_main","BOOLOCK_SYSTEM_article","BOOLOCK_SYSTEM_footer","BOOLOCK_SYSTEM_p","BOOLOCK_SYSTEM_strong","BOOLOCK_SYSTEM_h1","BOOLOCK_SYSTEM_h2","BOOLOCK_SYSTEM_h3","BOOLOCK_SYSTEM_h4","BOOLOCK_SYSTEM_h5","BOOLOCK_SYSTEM_h6","BOOLOCK_SYSTEM_small","BOOLOCK_SYSTEM_em","BOOLOCK_SYSTEM_i","BOOLOCK_SYSTEM_blockquote","BOOLOCK_SYSTEM_button","BOOLOCK_SYSTEM_option","BOOLOCK_SYSTEM_textarea","BOOLOCK_SYSTEM_select","BOOLOCK_SYSTEM_td","BOOLOCK_SYSTEM_tr","BOOLOCK_SYSTEM_th","BOOLOCK_SYSTEM_caption","BOOLOCK_SYSTEM_table","BOOLOCK_SYSTEM_ul","BOOLOCK_SYSTEM_ol","BOOLOCK_SYSTEM_li","BOOLOCK_SYSTEM_a"],_s=i=>{const e=[];return i.inputList.forEach(t=>{const s=t.connection;if(s){let o=s.targetBlock();for(;o;)e.push(o),o=o.getNextBlock()}}),e},gs=i=>ms.includes(i)?1:ee.includes(i)?2:0,se=i=>{if(!i)return 0;const e=i.type,t=gs(e),o=_s(i).reduce((n,r)=>n+se(r),0);return ee.includes(e)?2+o:t+o},bs=(i,e)=>{const t=i.split(` +`);for(let s=0;s{const{hasNextPage:i,fetchNextPage:e,isPending:t,isFetchingNextPage:s,isError:o,workspaceList:n}=us(),r=T.useRef(null);return T.useEffect(()=>{const h={root:null,rootMargin:"0px",threshold:.5},c=(d,u)=>{d.forEach(f=>{f.isIntersecting&&i&&(e(),u.unobserve(f.target))})},l=new IntersectionObserver(c,h);return r.current&&l.observe(r.current),()=>{r.current&&l.unobserve(r.current)}},[n]),E.jsxs("section",{className:"w-full max-w-[1152px] px-3 pb-48",children:[E.jsx(ae,{}),o?E.jsx(Fe,{}):n&&(n.length===0?E.jsx(ce,{}):E.jsxs(le,{children:[E.jsx(re,{workspaceList:n}),(t||s)&&E.jsx(He,{skeletonNum:8})]})),!t&&!s&&i&&E.jsx("div",{ref:r,className:"h-3 w-full"})]})};Ts.__docgenInfo={description:`@description +워크스페이스 헤더와 그리드를 감싸는 컨테이너 컴포넌트`,methods:[],displayName:"WorkspaceContainer"};const pt="72",Ss="53",Kt="47",Os="100";class ys extends _e{constructor(t){super(t);S(this,"customWorkspace");this.customWorkspace=t}createDom(){const t=super.createDom(),s=h=>{h.setAttribute("width",pt),h.setAttribute("height",Os),h.setAttribute("y","0"),h.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/trashcan.png")},o=(h,c,l,d)=>{h.setAttribute("width",c),h.setAttribute("height",l),d&&h.setAttribute("y",d)},n=t.querySelectorAll("image");n.length===2&&n.forEach(s);const r=t.querySelectorAll("clipPath");if(r.length===2){const h=r[0].querySelector("rect");h&&o(h,pt,Ss,Kt);const c=r[1].querySelector("rect");c&&o(c,pt,Kt)}return t}position(t,s){super.position(t,s);const o=document.querySelector(".blocklyTrash");if(o){const n=o.getAttribute("transform");if(n){const r=n.match(/translate\(([^,]+),\s*([^)]+)\)/);if(r){const h=parseFloat(r[1]);let c=parseFloat(r[2]);c-=20,o.setAttribute("transform",`translate(${h}, ${c})`)}}}}}class Is extends ge{constructor(t){super(t);S(this,"zoomInGroupSVG",null);S(this,"zoomOutGroupSVG",null);S(this,"zoomResetGroupSVG",null);S(this,"customWorkspace");this.customWorkspace=t}createDom(){const t=super.createDom();if(this.zoomInGroupSVG=t.querySelector(".blocklyZoomIn"),this.zoomInGroupSVG){const s=this.zoomInGroupSVG.querySelector("image");s&&s.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/sprites.png")}if(this.zoomOutGroupSVG=t.querySelector(".blocklyZoomOut"),this.zoomOutGroupSVG){const s=this.zoomOutGroupSVG.querySelector("image");s&&s.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/sprites.png")}if(this.zoomResetGroupSVG=t.querySelector(".blocklyZoomReset"),this.zoomResetGroupSVG){const s=this.zoomResetGroupSVG.querySelector("image");s&&s.setAttribute("xlink:href","https://kr.object.ncloudstorage.com/boolock-storage/static/sprites.png")}return t}position(t,s){var _,R,k,b;if(!(this.zoomInGroupSVG&&this.zoomOutGroupSVG&&this.zoomResetGroupSVG))return;const o=be,n=0,r=8,h=32,c=32,l=12,d=12,u={horizontal:1,vertical:0};let f=n+2*c;this.zoomResetGroupSVG&&(f+=r+c);const m=o.getStartPositionRect(u,new Zt.Size(f,h),d,l,t,this.customWorkspace),y=o.bumpDirection.DOWN,I=o.bumpPositionRect(m,d,y,s),v=this.zoomResetGroupSVG?r+c:0;(_=this.zoomInGroupSVG)==null||_.setAttribute("transform",`translate(${v}, 0)`);const F=v+n+c;(R=this.zoomOutGroupSVG)==null||R.setAttribute("transform",`translate(${F}, 0)`),(b=(k=this.zoomInGroupSVG)==null?void 0:k.parentElement)==null||b.setAttribute("transform","translate("+I.left+","+I.top+")")}}class Es extends Te{constructor(t){super(t);S(this,"tabsConfig_");S(this,"currentTabId_");S(this,"tabContainer_",null);S(this,"contentsContainer_",null);S(this,"contentArea_",null);S(this,"flyout_",null)}init(){super.init();const t=this.getFlyout();if(!t)throw new Error("Flyout이 초기화되지 않았습니다. Toolbox 생성 시 Flyout 설정이 필요합니다.");if(!this.contentsContainer_)throw new Error("contentsContainer가 초기화되지 않았습니다. DOM 요소 생성이 필요합니다.");const s=tt.createElement("div",{class:"contentArea"});s.prepend(t.createDom("svg")),this.contentArea_=s,this.contentsContainer_.prepend(s)}createDom_(t){const s=t.getParentSvg(),o=this.createContainer_();return s.parentNode.insertBefore(o,s),this.tabContainer_=this.initTabContainer_(),o.appendChild(this.tabContainer_),this.contentsContainer_=this.initContentContainer_(),o.appendChild(this.contentsContainer_),this.contentsDiv_=this.createContentsContainer_(),this.contentsDiv_.tabIndex=0,this.contentsContainer_.appendChild(this.contentsDiv_),this.attachEvents_(o,this.contentsDiv_),o}clickTab(t){const s=Array.from(this.tabContainer_.children).find(o=>o.dataset.id===t);s&&this.selectTab_(t,s)}setConfig(t){const s=this.getFlyout();if(!s)throw new Error("Flyout이 초기화되지 않았습니다. tab을 생성한 이후 Flyout의 위치를 변경하기 위해 Flyout이 초기화되어 있어야 합니다.");this.tabsConfig_=t.tabs,this.currentTabId_=t.defaultSelectedTab,this.initTabs_(),s.position()}getContentHeight(){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다. 높이 계산을 위해서는 ContentArea가 초기화되어야 합니다.");const t=this.contentArea_.getBoundingClientRect(),s=this.contentArea_.children;let o=0;for(const n of s){if(n.classList.contains("blocklyFlyout"))break;const h=n.getBoundingClientRect().bottom-t.top,c=window.getComputedStyle(n),l=parseFloat(c.marginBottom);o=Math.max(o,h+l)}return o}getContentAreaMetrics(){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다. ContentArea의 width와 height를 계산하기 위해 ContentArea가 초기화되어야 합니다.");const t=this.contentArea_.getBoundingClientRect();return{width:t.width,height:t.height}}addElementToContentArea(t,s=!1){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다.");s?this.contentArea_.prepend(t):this.contentArea_.appendChild(t)}initTabContainer_(){return tt.createElement("div",{class:"toolboxTabs"})}initContentContainer_(){return tt.createElement("div",{class:"contentContainer"})}initTabs_(){if(!this.HtmlDiv||!this.tabContainer_)throw new Error("HtmlDiv나 ContentArea가 초기화되지 않았습니다.");Object.entries(this.tabsConfig_).forEach(([t,s])=>{const o=this.createTab_(s.label,t);this.currentTabId_&&this.currentTabId_===t&&this.selectTab_(t,o),o.addEventListener("click",()=>this.selectTab_(t,o)),this.tabContainer_.appendChild(o)})}createTab_(t,s){const o=tt.createElement("div",{class:"toolboxTab"});return o.dataset.id=s.toString(),o.appendChild(this.createLabel_(t)),o}createLabel_(t){const s=tt.createElement("span",{class:"toolboxTabLabel"});return s.textContent=t,s}selectTab_(t,s){if(!this.workspace_||!this.tabsConfig_)return;this.currentTabId_=t;const o=this.tabsConfig_[t];if(this.flyout_&&this.flyout_.dispose(),this.flyout_=this.createFlyoutByRegistry_(o.flyoutRegistryName||lt.registryName),!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다.");this.clearContentArea_(),this.contentArea_.prepend(this.flyout_.createDom("svg")),this.flyout_.init(this.workspace_),this.workspace_.updateToolbox(o.toolboxConfig),Array.from(this.tabContainer_.children).forEach(n=>{n.classList.remove("tabSelected")}),s.classList.add("tabSelected"),o.toolboxConfig.kind==="categoryToolbox"&&this.getToolboxItems().length!==0&&this.setSelectedItem(this.getToolboxItems()[0])}createFlyoutByRegistry_(t){const s=this.workspace_,o=new Se({parentWorkspace:s,rtl:s.RTL,oneBasedIndex:s.options.oneBasedIndex,horizontalLayout:s.horizontalLayout,renderer:s.options.renderer,rendererOverrides:s.options.rendererOverrides,move:{scrollbars:!0}});o.toolboxPosition=s.options.toolboxPosition;const n=V.getClass(V.Type.FLYOUTS_VERTICAL_TOOLBOX,t);return new n(o)}clearContentArea_(){if(!this.contentArea_)throw new Error("ContentArea가 초기화되지 않았습니다.");this.contentArea_.innerHTML=""}}Qt.register(` +.toolboxTabs { + display: flex; + width: 24rem; /* 96 * 0.25rem */ +} + +.toolboxTab { + font-weight: 600; /* Text-semibold-md */ + display: flex; + flex: 1; + cursor: pointer; + justify-content: center; + border-top-left-radius: 0.5rem; /* rounded-t-lg */ + border-top-right-radius: 0.5rem; /* rounded-t-lg */ + background: linear-gradient(0deg, rgb(210 218 231) 0%, #eaeff6 30%); + padding: 0.75rem; /* py-3 */ + color: #56687A; /* text-gray-400 */ +} + +.tabSelected { + font-weight: 700; /* Text-bold-md */ + flex: 1; + border-top-left-radius: 0.5rem; /* rounded-t-lg */ + border-top-right-radius: 0.5rem; /* rounded-t-lg */ + background: transparent; + background-color: #3b82f6; /* bg-blue-500 */ + padding: 0.75rem; /* py-3 */ + color: #ffffff; /* text-white */ +} + +.contentContainer { + display: flex; + width: 100%; + height: 100%; + background-color: white; +} + +.contentArea { + width: 100%; + height: 100%; + overflow-y: scroll; +} +`);const Ds=(i,e)=>{const t=document.createElement("p");t.style.whiteSpace="pre-wrap",t.style.fontFamily="SUIT Variable",t.textContent=e.getTooltip(),i.appendChild(t)};let Ct="";class Ls extends Xt{constructor(e,t,s){super(e,t,s)}addColourBorder_(e){this.rowDiv_.style.color=e}setSelected(e){if(e){if(this.rowDiv_.id!==Ct){Ct=this.rowDiv_.id;const t=this.parentToolbox_;Object.values(t.contentMap_).forEach(o=>{o.rowDiv_.style.color=o.colour_,o.rowDiv_.style.backgroundColor="white"})}this.rowDiv_.style.backgroundColor=this.colour_,this.rowDiv_.style.color="white"}else{if(this.rowDiv_.id===Ct)return;this.rowDiv_.style.backgroundColor="white",this.rowDiv_.style.color=this.colour_}}createIconDom_(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24");const t=document.createElementNS("http://www.w3.org/2000/svg","path");return Gt[this.name_]&&t.setAttribute("d",Gt[this.name_]),t.setAttribute("fill","currentColor"),e.appendChild(t),e}}const et=Zt.svgPaths;class xs extends xt.ConstantProvider{constructor(){super(),this.NOTCH_WIDTH=6*this.GRID_UNIT,this.NOTCH_HEIGHT=2*this.GRID_UNIT,this.NOTCH_OFFSET_LEFT=2*this.GRID_UNIT/3,this.CORNER_RADIUS=2*this.GRID_UNIT/3,this.FIELD_TEXT_FONTFAMILY="SUIT Variable",this.FIELD_TEXT_FONTWEIGHT="bold",this.EMPTY_INLINE_INPUT_PADDING=50,this.MIN_BLOCK_WIDTH=56,this.FIELD_BORDER_RECT_X_PADDING=7}makeNotch(){const e=this.NOTCH_WIDTH,t=this.NOTCH_HEIGHT;return{type:this.SHAPES.NOTCH,width:e,height:t,pathLeft:"h 0 c 1 0 1 0.5 2 2 l 3 5 c 1 1 2 1 4 0 l 10 -6 c 2 -1 3 -1 5 -1",pathRight:"c -2 0 -3 0 -5 1 l -10 6 c -2 1 -3 1 -4 0 l -3 -5 c -0.5 -1 -1 -2 -2 -2"}}makeRounded(){const e=this.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH,t=e*1.5;function s(o,n,r){let h=o>t?o-t:0;const c=o>t?t:o,l=c/8;h+=c/8*6;const d=r===n?"0":"1";return et.arc("a","0 0,"+d,l,et.point((r?1:-1)*l,(n?-1:1)*l))+et.lineOnAxis("v",(n?-1:1)*h)+et.arc("a","0 0,"+d,l,et.point((r?-1:1)*l,(n?-1:1)*l))}return{type:this.SHAPES.ROUND,isDynamic:!0,width(o){const n=o/3.5;return n>e?e:n-6},height(o){return o},connectionOffsetY(o){return o/2},connectionOffsetX(o){return-o},pathDown(o){return s(o,!1,!1)},pathUp(o){return s(o,!0,!1)},pathRightDown(o){return s(o,!1,!0)},pathRightUp(o){return s(o,!1,!0)}}}getCSS_(e){return[...super.getCSS_(e),`${e} .blocklyText {`,"fill: #F4F8FA;","}"]}}const ft=$t.Types;class vs extends xt.RenderInfo{constructor(t,s){super(t,s);S(this,"MIN_WIDTH",160);S(this,"MAX_WIDTH",0);S(this,"MAX_HEIGHT",0);S(this,"PADDING_EMPTY",0);S(this,"PADDING_DEFAULT",35);S(this,"PADDING_LEFT",14);S(this,"PADDING_RIGHT",10);S(this,"WIDTH_DIFF",this.MIN_WIDTH-110)}finalize_(){super.finalize_(),this.initDynamicProps();let t=this.topRow.width,s=!1;for(let o=0;o<2;o++)this.rows.forEach(n=>{if(n.hasInlineInput&&n.elements.length===5)t=this.handleInlineInput(n,t),s=!0;else{const r=n.elements.some(l=>ft.isField(l)&&l.field instanceof mt),h=n.elements.some(l=>ft.isField(l)&&l.field instanceof Ut),c=n.elements.some(l=>ft.isField(l)&&l.field instanceof jt);r||c?(t=this.handleCustomInput(n,t),s=!0):h?(t=this.handleDropdown(n,t),s=!0):t=Math.max(t,this.MIN_WIDTH)}});this.updateWidths(t,s)}initDynamicProps(){this.MAX_WIDTH=this.constants_.MAX_DYNAMIC_CONNECTION_SHAPE_WIDTH,this.MAX_HEIGHT=this.MAX_WIDTH*1.5,this.PADDING_EMPTY=this.constants_.EMPTY_INLINE_INPUT_PADDING}handleInlineInput(t,s){const o=t.elements[1],n=t.elements[t.elements.length-2],h=Math.min(n.height,this.MAX_HEIGHT)/4,c=o.width,l=n.width,d=this.PADDING_LEFT+c+this.PADDING_DEFAULT+l+this.PADDING_RIGHT;let u=Math.max(d,this.MIN_WIDTH,s);const f=l-(h+this.PADDING_EMPTY);let m=0;if(f){const y=f>this.WIDTH_DIFF?(f+this.WIDTH_DIFF)/2:f;u+=y,m=u-(c+l+this.PADDING_LEFT+this.PADDING_RIGHT)-y}else m=u-(c+l+this.PADDING_LEFT+this.PADDING_RIGHT);return n.xPos=c+(m>this.PADDING_DEFAULT?m:this.PADDING_DEFAULT)+this.PADDING_LEFT,t.width=u>this.MIN_WIDTH?n.xPos+l+this.PADDING_RIGHT:this.MIN_WIDTH,Math.max(s,t.width)}handleCustomInput(t,s){const o=t.elements[t.elements.length-2],r=(t.elements.length>3?t.elements[1]:{width:0,xPos:8}).width,h=o.width,c=this.PADDING_LEFT+r+this.PADDING_DEFAULT+this.PADDING_RIGHT,l=c+h;return Ze(o)&&l3?t.elements[1]:{width:0,xPos:8}).width,h=o.width,c=this.PADDING_LEFT+r+this.PADDING_DEFAULT+this.PADDING_RIGHT+h,l=Math.max(this.MIN_WIDTH,c),d=Math.max(l,s);if(l==d)return o.xPos=r+this.PADDING_DEFAULT+this.PADDING_LEFT,t.width=Math.max(d,this.MIN_WIDTH),t.width;const u=d-l;return o.xPos=r+this.PADDING_DEFAULT+this.PADDING_LEFT+u,t.width=d,t.width}updateWidths(t,s){if(t>this.topRow.width){const o=t-this.topRow.width,n=o>this.WIDTH_DIFF&&s?(o+this.WIDTH_DIFF)/2:o;this.topRow.elements[this.topRow.elements.length-2].width+=n,this.bottomRow.elements[this.bottomRow.elements.length-2].width+=n,this.rows.forEach(r=>{r.hasStatement&&(r.width+=n)})}}}class ws extends xt.Renderer{constructor(e){super(e)}makeConstants_(){return new xs}makeRenderInfo_(e){return new vs(this,e)}}const As=()=>{$t.register("boolock",ws),V.register(V.Type.TOOLBOX_ITEM,Xt.registrationName,Ls,!0),V.register(V.Type.FLYOUTS_VERTICAL_TOOLBOX,lt.registryName,lt,!0),V.register(V.Type.FLYOUTS_VERTICAL_TOOLBOX,Rt.registryName,Rt,!0),Qt.register(` + .blocklyZoom>image, .blocklyZoom>svg>image { + opacity: .6; + } + + .blocklyZoom>image:hover, .blocklyZoom>svg>image:hover { + opacity: .8; + } + + .blocklyZoom>image:active, .blocklyZoom>svg>image:active { + opacity: 1; + } + `)};for(const i in at)Object.prototype.hasOwnProperty.call(at,i)&&delete at[i];As();ds(ye);Oe.setCustomTooltip(Ds);ht.prototype.addZoomControls=function(){this.zoomControls_=new Is(this);const i=this.zoomControls_.createDom();this.svgGroup_.appendChild(i)};ht.newTrashcan=function(i){return new ys(i)};ht.prototype.addTrashcan=function(){this.trashcan=ht.newTrashcan(this);const i=this.trashcan.createDom();this.svgGroup_.insertBefore(i,this.getCanvas())};const Rs=()=>{const[i,e]=T.useState(""),[t,s]=T.useState(""),{totalCssPropertyObj:o}=Pt(),{workspace:n,setWorkspace:r,canvasInfo:h}=Pe(),{setIsBlockChanged:c}=Ne(),{setCurrentCssClassName:l}=Pt(),{findClassBlock:d}=Be(),[u,f]=T.useState(0),[m,y]=T.useState(0),[I,v]=T.useState(null),F=T.useRef(!1);return T.useEffect(()=>{const _=Ie("blocklyDiv",{plugins:{flyoutsVerticalToolbox:lt,toolbox:Es},renderer:"boolock",toolboxPosition:"end",toolbox:Ee,theme:De,zoom:{controls:!0,wheel:!1,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2},maxTrashcanContents:0});_.getToolbox().setConfig(Le),Cs(_),_.clearUndo();const R=b=>{if(b.type===N.BLOCK_CREATE||b.type===N.BLOCK_MOVE||b.type===N.BLOCK_CHANGE||b.type===N.BLOCK_DELETE){const P=Mt(_),w=ve(P);e(w)}(b.type===N.VIEWPORT_CHANGE||b.type===N.BLOCK_DRAG||b.type===N.BLOCK_FIELD_INTERMEDIATE_CHANGE||b.type===N.BLOCK_MOVE&&F.current||b.type===N.BLOCK_DELETE&&F.current)&&c(!0),b.type===N.FINISHED_LOADING&&(F.current=!0)},k=b=>{if(!(b instanceof N.Click))return;const P=_.getBlockById(b.blockId||"");if(v(P&&P.type.startsWith("CSS_")?P.type.replace(/^CSS_/,""):null),!P){f(0),y(0);return}const w=Mt(_),nt=bs(w,P.id);f(nt);const D=se(P);y(D)};return _.getParentSvg().addEventListener("wheel",b=>{if(b.ctrlKey){b.preventDefault();const P=b.deltaY>0?-1:1;_.zoomCenter(P)}else b.preventDefault()},{passive:!1}),_.addChangeListener(R),_.addChangeListener(k),n===null&&r(_),()=>{_.removeChangeListener(R),_.removeChangeListener(k),_.dispose()}},[]),T.useEffect(()=>{if(!n)return;const _=R=>{if(R.type==="click"){const k=n.getBlockById(R.blockId);k&&d(k.type)&&l(k.type)}};return n.addChangeListener(_),()=>{n.removeChangeListener(_)}},[n]),T.useEffect(()=>{!n||!h||h.length===0||(xe.workspaces.load(JSON.parse(h),n),kt.contents.length=0,Object.keys(o).forEach(_=>{kt.contents.push({type:_,kind:"block",enabled:!0})}))},[n,h]),T.useEffect(()=>{s(fs(o))},[i,o]),E.jsxs("div",{className:"flex flex-1",children:[E.jsxs("div",{className:"flex h-[calc(100vh-56px)] w-[32rem] flex-shrink-0 flex-col",children:[E.jsx(he,{htmlCode:i,cssCode:t,selectedBlockStartLine:u,selectedBlockLength:m,selectedBlockType:I}),E.jsx(ie,{})]}),E.jsx("div",{id:"blocklyDiv",className:"h-full w-full"})]})};Rs.__docgenInfo={description:`@description +블록 코딩을 할 수 있고 웹사이트, HTML, CSS 코드를 미리보기 할 수 있는 컴포넌트`,methods:[],displayName:"WorkspaceContent"};const ie=()=>{const{currentStep:i}=ke();return E.jsxs("section",{className:`flex h-[26rem] w-full flex-col ${i===2?"z-[99998] bg-white":""}`,children:[E.jsx(Re,{}),E.jsxs("div",{className:"flex h-[calc(100%-48px)] w-full overflow-hidden",children:[E.jsx(we,{}),E.jsx(Ae,{})]})]})};ie.__docgenInfo={description:`@description +CSS 클래스를 선택하고 CSS 속성을 선택할 수 있는 컴포넌트`,methods:[],displayName:"CssPropsSelectBox"};export{ie as C,Qe as Q,Ts as W,Rs as a,ls as u}; diff --git a/assets/CssPropsSelectBox.stories-QeQH_zEo.js b/assets/CssPropsSelectBox.stories-B-QohfUN.js similarity index 80% rename from assets/CssPropsSelectBox.stories-QeQH_zEo.js rename to assets/CssPropsSelectBox.stories-B-QohfUN.js index e902a2f3..dfe30272 100644 --- a/assets/CssPropsSelectBox.stories-QeQH_zEo.js +++ b/assets/CssPropsSelectBox.stories-B-QohfUN.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{C as m}from"./CssPropsSelectBox-C4R-4nDE.js";import{c as g}from"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DaqQAmWl.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const le={title:"widgets/workspace/css/CssPropsSelectBox",component:m,parameters:{layout:"centered"},tags:["autodocs"]},t={args:{}},r={render:()=>{const{addClassBlock:c,classBlockList:u}=g(),d=e=>{e.target.value===""||u.includes(e.target.value)||c(e.target.value)},f=e=>{e.key==="Enter"&&(e.currentTarget.blur(),e.preventDefault())};return o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx("input",{className:"w-full border p-2 focus:outline-none",type:"text",onBlur:d,onKeyDown:f,placeholder:"추가하고자 하는 CSS 클래스를 입력하세요"}),o.jsx(m,{})]})}};var s,a,p;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{C as m}from"./CssPropsSelectBox-CWdNthdf.js";import{c as g}from"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DhaiX4aW.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const le={title:"widgets/workspace/css/CssPropsSelectBox",component:m,parameters:{layout:"centered"},tags:["autodocs"]},t={args:{}},r={render:()=>{const{addClassBlock:c,classBlockList:u}=g(),d=e=>{e.target.value===""||u.includes(e.target.value)||c(e.target.value)},f=e=>{e.key==="Enter"&&(e.currentTarget.blur(),e.preventDefault())};return o.jsxs("div",{className:"flex flex-col gap-3",children:[o.jsx("input",{className:"w-full border p-2 focus:outline-none",type:"text",onBlur:d,onKeyDown:f,placeholder:"추가하고자 하는 CSS 클래스를 입력하세요"}),o.jsx(m,{})]})}};var s,a,p;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/CssPropsSelectBoxHeader-BZsI6_U6.js b/assets/CssPropsSelectBoxHeader-B3hshmtR.js similarity index 94% rename from assets/CssPropsSelectBoxHeader-BZsI6_U6.js rename to assets/CssPropsSelectBoxHeader-B3hshmtR.js index a3b8d9e8..a5f56b6f 100644 --- a/assets/CssPropsSelectBoxHeader-BZsI6_U6.js +++ b/assets/CssPropsSelectBoxHeader-B3hshmtR.js @@ -1,2 +1,2 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{e as p}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{u as c,c as n,r as C,d}from"./html2canvas.esm-BTtajP0W.js";import{r}from"./index-DRjF_FHU.js";const x=()=>{const{currentCssClassName:o,setCurrentCssClassName:a}=c(),{classBlockList:t}=n(),[l,i]=r.useState([]);r.useEffect(()=>{i(t)},[t]);const m=[{value:"",label:"클래스를 선택해주세요"},...l.map(s=>({value:s,label:s}))];return e.jsxs("header",{className:"py-border flex h-12 items-center justify-between border-b-yellow-500 bg-yellow-200 px-4",children:[e.jsx("p",{className:"text-semibold-md text-gray-black truncate",children:"CSS 클래스 속성 편집"}),e.jsx(p,{options:m,value:C(o),onChange:s=>a(d(s)),placeholder:"클래스를 선택해주세요"})]})};x.__docgenInfo={description:`@description +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{e as p}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{u as c,c as n,r as C,d}from"./html2canvas.esm-BTtajP0W.js";import{r}from"./index-DRjF_FHU.js";const x=()=>{const{currentCssClassName:o,setCurrentCssClassName:a}=c(),{classBlockList:t}=n(),[l,i]=r.useState([]);r.useEffect(()=>{i(t)},[t]);const m=[{value:"",label:"클래스를 선택해주세요"},...l.map(s=>({value:s,label:s}))];return e.jsxs("header",{className:"py-border flex h-12 items-center justify-between border-b-yellow-500 bg-yellow-200 px-4",children:[e.jsx("p",{className:"text-semibold-md text-gray-black truncate",children:"CSS 클래스 속성 편집"}),e.jsx(p,{options:m,value:C(o),onChange:s=>a(d(s)),placeholder:"클래스를 선택해주세요"})]})};x.__docgenInfo={description:`@description CSS 클래스를 선택할 수 있는 헤더 컴포넌트`,methods:[],displayName:"CssPropsSelectBoxHeader"};export{x as C}; diff --git a/assets/CssPropsSelectBoxHeader.stories-CcHVZcKY.js b/assets/CssPropsSelectBoxHeader.stories-BJGNCLEN.js similarity index 95% rename from assets/CssPropsSelectBoxHeader.stories-CcHVZcKY.js rename to assets/CssPropsSelectBoxHeader.stories-BJGNCLEN.js index 6d5a92f7..47156876 100644 --- a/assets/CssPropsSelectBoxHeader.stories-CcHVZcKY.js +++ b/assets/CssPropsSelectBoxHeader.stories-BJGNCLEN.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{C as a}from"./CssPropsSelectBoxHeader-BZsI6_U6.js";import{c as C}from"./html2canvas.esm-BTtajP0W.js";import{r as f}from"./index-DRjF_FHU.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const L={title:"widgets/workspace/css/CssPropsSelectBoxHeader",component:a,parameters:{layout:"centered"},tags:["autodocs"]},e={args:{}},r={render:()=>o.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto",border:"1px solid #ccc"},className:"p-4",children:o.jsx(a,{})})},s={render:()=>{const{addClassBlock:t}=C();return f.useEffect(()=>{t("test1"),t("test2"),t("test3")},[]),o.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto",border:"1px solid #ccc"},className:"p-4",children:o.jsx(a,{})})}};var c,i,p;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{C as a}from"./CssPropsSelectBoxHeader-B3hshmtR.js";import{c as C}from"./html2canvas.esm-BTtajP0W.js";import{r as f}from"./index-DRjF_FHU.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const L={title:"widgets/workspace/css/CssPropsSelectBoxHeader",component:a,parameters:{layout:"centered"},tags:["autodocs"]},e={args:{}},r={render:()=>o.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto",border:"1px solid #ccc"},className:"p-4",children:o.jsx(a,{})})},s={render:()=>{const{addClassBlock:t}=C();return f.useEffect(()=>{t("test1"),t("test2"),t("test3")},[]),o.jsx("div",{style:{width:"400px",resize:"horizontal",overflow:"auto",border:"1px solid #ccc"},className:"p-4",children:o.jsx(a,{})})}};var c,i,p;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { // 필요한 args를 여기에 추가하세요 } diff --git a/assets/DocsRenderer-CFRXHY34-wwSIYXp0.js b/assets/DocsRenderer-CFRXHY34-Ak6QnDix.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-wwSIYXp0.js rename to assets/DocsRenderer-CFRXHY34-Ak6QnDix.js index fe9180d6..29f179ec 100644 --- a/assets/DocsRenderer-CFRXHY34-wwSIYXp0.js +++ b/assets/DocsRenderer-CFRXHY34-Ak6QnDix.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-hp3BBEcD.js","./iframe-Br-BqK10.js","./index-DRjF_FHU.js","./jsx-runtime-DR9Q75dM.js","./index-BXCeiWJk.js","./index-CzpEL4_8.js","./index-DrFu-skq.js","./react-18-CeYYHeGS.js","./client-Dbo3a7kb.js","./Color-F6OSRLHC-CDJkqvML.js","./index-ChEI-nsM.js"])))=>i.map(i=>d[i]); -var Wx=Object.defineProperty;var Gx=(e,t,r)=>t in e?Wx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rn=(e,t,r)=>Gx(e,typeof t!="symbol"?t+"":t,r);import{_ as Y1}from"./iframe-Br-BqK10.js";import{r as l,R as y}from"./index-DRjF_FHU.js";import{j as Z}from"./jsx-runtime-DR9Q75dM.js";import{r as fs,F as Y4}from"./index-BXCeiWJk.js";import{y as hh,g as Eu}from"./index-CzpEL4_8.js";import{d as Yx}from"./index-DrFu-skq.js";import{renderElement as Kx,unmountElement as Jx}from"./react-18-CeYYHeGS.js";var Zx=Object.create,K4=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,J4=Object.getOwnPropertyNames,Qx=Object.getPrototypeOf,eD=Object.prototype.hasOwnProperty,xi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),mn=(e,t)=>function(){return t||(0,e[J4(e)[0]])((t={exports:{}}).exports,t),t.exports},tD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of J4(t))!eD.call(e,a)&&a!==r&&K4(e,a,{get:()=>t[a],enumerable:!(n=Xx(t,a))||n.enumerable});return e},K1=(e,t,r)=>(r=e!=null?Zx(Qx(e)):{},tD(t||!e||!e.__esModule?K4(r,"default",{value:e,enumerable:!0}):r,e));function rD(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r!=null&&r.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function _V(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=rD(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function nD(e){return Array.from(new Set(e))}function aD(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,hs=e=>`set-${e.replace(/\s+/g,"-")}`,pD=Object.create,J1=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,hD=Object.getOwnPropertyNames,mD=Object.getPrototypeOf,gD=Object.prototype.hasOwnProperty,R=(e,t)=>J1(e,"name",{value:t,configurable:!0}),Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ms=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hD(t))!gD.call(e,a)&&a!==r&&J1(e,a,{get:()=>t[a],enumerable:!(n=fD(t,a))||n.enumerable});return e},Z1=(e,t,r)=>(r=e!=null?pD(mD(e)):{},vD(t||!e||!e.__esModule?J1(r,"default",{value:e,enumerable:!0}):r,e)),yD=ms(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case r:var xt=$.type;switch(xt){case d:case p:case a:case i:case o:case h:return xt;default:var Mr=xt&&xt.$$typeof;switch(Mr){case c:case m:case g:case v:case s:return Mr;default:return rt}}case n:return rt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,B=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function J($){return C($)===s}R(J,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function Et($){return C($)===i}R(Et,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function tt($){return C($)===h}R(tt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=B,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=J,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=Et,e.isStrictMode=He,e.isSuspense=tt,e.isValidElementType=b,e.typeOf=C})()}),bD=ms((e,t)=>{t.exports=yD()}),Z4=ms((e,t)=>{var r=bD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Di=="function"&&Di;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Di=="function"&&Di,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var Wx=Object.defineProperty;var Gx=(e,t,r)=>t in e?Wx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Rn=(e,t,r)=>Gx(e,typeof t!="symbol"?t+"":t,r);import{_ as Y1}from"./iframe-B3pNietc.js";import{r as l,R as y}from"./index-DRjF_FHU.js";import{j as Z}from"./jsx-runtime-DR9Q75dM.js";import{r as fs,F as Y4}from"./index-BXCeiWJk.js";import{y as hh,g as Eu}from"./index-CzpEL4_8.js";import{d as Yx}from"./index-DrFu-skq.js";import{renderElement as Kx,unmountElement as Jx}from"./react-18-CeYYHeGS.js";var Zx=Object.create,K4=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,J4=Object.getOwnPropertyNames,Qx=Object.getPrototypeOf,eD=Object.prototype.hasOwnProperty,xi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),mn=(e,t)=>function(){return t||(0,e[J4(e)[0]])((t={exports:{}}).exports,t),t.exports},tD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of J4(t))!eD.call(e,a)&&a!==r&&K4(e,a,{get:()=>t[a],enumerable:!(n=Xx(t,a))||n.enumerable});return e},K1=(e,t,r)=>(r=e!=null?Zx(Qx(e)):{},tD(t||!e||!e.__esModule?K4(r,"default",{value:e,enumerable:!0}):r,e));function rD(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),c=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},d=()=>{s&&c(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),a=void 0,o=null},v=()=>{h(),c()},g=function(...w){if(r!=null&&r.aborted)return;a=this,o=w;let x=p==null;m(),i&&x&&c()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function _V(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,s=Array(2);a&&(s[0]="leading"),o&&(s[1]="trailing");let c,d=null,p=rD(function(...f){c=e.apply(this,f),d=null},t,{signal:n,edges:s}),m=function(...f){if(i!=null){if(d===null)d=Date.now();else if(Date.now()-d>=i)return c=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),c}return p.apply(this,f),c},h=()=>(p.flush(),c);return m.cancel=p.cancel,m.flush=h,m}function nD(e){return Array.from(new Set(e))}function aD(e,t){let r={},n=Object.entries(e);for(let a=0;a`control-${e.replace(/\s+/g,"-")}`,hs=e=>`set-${e.replace(/\s+/g,"-")}`,pD=Object.create,J1=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,hD=Object.getOwnPropertyNames,mD=Object.getPrototypeOf,gD=Object.prototype.hasOwnProperty,R=(e,t)=>J1(e,"name",{value:t,configurable:!0}),Di=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ms=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hD(t))!gD.call(e,a)&&a!==r&&J1(e,a,{get:()=>t[a],enumerable:!(n=fD(t,a))||n.enumerable});return e},Z1=(e,t,r)=>(r=e!=null?pD(mD(e)):{},vD(t||!e||!e.__esModule?J1(r,"default",{value:e,enumerable:!0}):r,e)),yD=ms(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===a||$===p||$===i||$===o||$===h||$===f||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===v||$.$$typeof===s||$.$$typeof===c||$.$$typeof===m||$.$$typeof===x||$.$$typeof===D||$.$$typeof===E||$.$$typeof===w)}R(b,"isValidElementType");function C($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case r:var xt=$.type;switch(xt){case d:case p:case a:case i:case o:case h:return xt;default:var Mr=xt&&xt.$$typeof;switch(Mr){case c:case m:case g:case v:case s:return Mr;default:return rt}}case n:return rt}}}R(C,"typeOf");var S=d,k=p,A=c,_=s,I=r,B=m,z=a,L=g,M=v,O=n,P=i,j=o,U=h,V=!1;function G($){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||C($)===d}R(G,"isAsyncMode");function Q($){return C($)===p}R(Q,"isConcurrentMode");function ne($){return C($)===c}R(ne,"isContextConsumer");function J($){return C($)===s}R(J,"isContextProvider");function ie($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(ie,"isElement");function N($){return C($)===m}R(N,"isForwardRef");function K($){return C($)===a}R(K,"isFragment");function re($){return C($)===g}R(re,"isLazy");function fe($){return C($)===v}R(fe,"isMemo");function Ce($){return C($)===n}R(Ce,"isPortal");function Et($){return C($)===i}R(Et,"isProfiler");function He($){return C($)===o}R(He,"isStrictMode");function tt($){return C($)===h}R(tt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=I,e.ForwardRef=B,e.Fragment=z,e.Lazy=L,e.Memo=M,e.Portal=O,e.Profiler=P,e.StrictMode=j,e.Suspense=U,e.isAsyncMode=G,e.isConcurrentMode=Q,e.isContextConsumer=ne,e.isContextProvider=J,e.isElement=ie,e.isForwardRef=N,e.isFragment=K,e.isLazy=re,e.isMemo=fe,e.isPortal=Ce,e.isProfiler=Et,e.isStrictMode=He,e.isSuspense=tt,e.isValidElementType=b,e.typeOf=C})()}),bD=ms((e,t)=>{t.exports=yD()}),Z4=ms((e,t)=>{var r=bD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function c(w){return r.isMemo(w)?i:s[w.$$typeof]||n}R(c,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(w,x,D){if(typeof x!="string"){if(v){var E=f(x);E&&E!==v&&g(w,E,D)}var b=p(x);m&&(b=b.concat(m(x)));for(var C=c(w),S=c(x),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Di=="function"&&Di;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}R(i,"s");for(var s=typeof Di=="function"&&Di,c=0;c=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(c=this.indexOf(i),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var c;for(c=0;c0&&(D[x]={cacheItem:v,arg:arguments[x]},E?i(m,D):m.push(D),m.length>d&&s(m.shift())),f.wasMemoized=E,f.numArgs=x+1,w},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function i(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}R(s,"removeCachedResult");function c(d,p){return d===p||d!==d&&p!==p}R(c,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?we(ka,--$e):0,la--,de===10&&(la=1,ys--),de}R(iy,"prev");function Oe(){return de=$e2||sa(de)>3?"":" "}R(ly,"whitespace");function sy(e,t){for(;--t&&Oe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Aa(e,bo()+(t<6&&dt()==32&&Oe()==32))}R(sy,"escaping");function Cl(e){for(;Oe();)switch(de){case e:return $e;case 34:case 39:e!==34&&e!==39&&Cl(de);break;case 40:e===41&&Cl(e);break;case 92:Oe();break}return $e}R(Cl,"delimiter");function uy(e,t){for(;Oe()&&e+de!==57&&!(e+de===84&&dt()===47););return"/*"+Aa(t,$e-1)+"*"+gs(e===47?e:Oe())}R(uy,"commenter");function cy(e){for(;!sa(dt());)Oe();return Aa(e,$e)}R(cy,"identifier");function dy(e){return op(Eo("",null,null,null,[""],e=ap(e),0,[0],e))}R(dy,"compile");function Eo(e,t,r,n,a,o,i,s,c){for(var d=0,p=0,m=i,h=0,f=0,v=0,g=1,w=1,x=1,D=0,E="",b=a,C=o,S=n,k=E;w;)switch(v=D,D=Oe()){case 40:if(v!=108&&we(k,m-1)==58){Dl(k+=ee(wo(D),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=wo(D);break;case 9:case 10:case 13:case 32:k+=ly(v);break;case 92:k+=sy(bo()-1,7);continue;case 47:switch(dt()){case 42:case 47:oo(py(uy(Oe(),bo()),t,r),c);break;default:k+="/"}break;case 123*g:s[d++]=lt(k)*x;case 125*g:case 59:case 0:switch(D){case 0:case 125:w=0;case 59+p:x==-1&&(k=ee(k,/\f/g,"")),f>0&<(k)-m&&oo(f>32?Q0(k+";",n,r,m-1):Q0(ee(k," ","")+";",n,r,m-2),c);break;case 59:k+=";";default:if(oo(S=X0(k,t,r,d,p,a,s,E,b=[],C=[],m),o),D===123)if(p===0)Eo(k,t,S,S,b,o,m,s,C);else switch(h===99&&we(k,3)===110?100:h){case 100:case 108:case 109:case 115:Eo(e,S,S,n&&oo(X0(e,S,S,0,0,a,s,E,a,b=[],m),C),a,C,m,s,n?b:C);break;default:Eo(k,S,S,S,[""],C,0,s,C)}}d=p=f=0,g=x=1,E=k="",m=i;break;case 58:m=1+lt(k),f=v;default:if(g<1){if(D==123)--g;else if(D==125&&g++==0&&iy()==125)continue}switch(k+=gs(D),D*g){case 38:x=p>0?1:(k+="\f",-1);break;case 44:s[d++]=(lt(k)-1)*x,x=1;break;case 64:dt()===45&&(k+=wo(Oe())),h=dt(),p=m=lt(E=k+=cy(bo())),D++;break;case 45:v===45&<(k)==2&&(g=0)}}return o}R(Eo,"parse");function X0(e,t,r,n,a,o,i,s,c,d,p){for(var m=a-1,h=a===0?o:[""],f=vs(h),v=0,g=0,w=0;v0?h[x]+" "+D:ee(D,/&\f/g,h[x])))&&(c[w++]=E);return Ko(e,t,r,a===0?tp:s,c,d,p)}R(X0,"ruleset");function py(e,t,r){return Ko(e,t,r,ep,gs(oy()),ia(e,2,-2),0)}R(py,"comment");function Q0(e,t,r,n){return Ko(e,t,r,rp,ia(e,0,n),ia(e,n+1,-1),n)}R(Q0,"declaration");function an(e,t){for(var r="",n=vs(e),a=0;a-1},"isIgnoringComment"),zD=R(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var c=i[s];if(c.line=0;r--)if(!my(t[r]))return!0;return!1},"isPrependedWithRegularRules"),yh=R(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),OD=R(function(e,t,r){my(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),yh(e)):LD(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yh(e)))},"incorrectImportAlarm");function ip(e,t){switch(ty(e,t)){case 5103:return te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+xl+e+_e+e+e;case 6828:case 4268:return te+e+_e+e+e;case 6165:return te+e+_e+"flex-"+e+e;case 5187:return te+e+ee(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return te+e+_e+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return te+e+_e+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+_e+ee(e,"shrink","negative")+e;case 5292:return te+e+_e+ee(e,"basis","preferred-size")+e;case 6060:return te+"box-"+ee(e,"-grow","")+te+e+_e+ee(e,"grow","positive")+e;case 4554:return te+ee(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lt(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+xl+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dl(e,"stretch")?ip(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,lt(e)-3-(~Dl(e,"!important")&&10))){case 107:return ee(e,":",":"+te)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(we(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+_e+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+_e+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+_e+e+e}return e}R(ip,"prefix");var MD=R(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rp:e.return=ip(e.value,e.length);break;case ey:return an([$n(e,{value:ee(e.value,"@","@"+te)})],n);case tp:if(e.length)return ny(e.props,function(a){switch(ry(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([$n(e,{props:[ee(a,/:(read-\w+)/,":"+xl+"$1")]})],n);case"::placeholder":return an([$n(e,{props:[ee(a,/:(plac\w+)/,":"+te+"input-$1")]}),$n(e,{props:[ee(a,/:(plac\w+)/,":"+xl+"$1")]}),$n(e,{props:[ee(a,/:(plac\w+)/,_e+"input-$1")]})],n)}return""})}},"prefixer"),PD=[MD],$D=R(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||PD;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),w=1;w=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}R(gy,"murmur2");var VD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bh=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -677,7 +677,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function lO(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var E4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function uO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return E4[t]?"#"+E4[t]:e}var cO=/^#[a-fA-F0-9]{6}$/,dO=/^#[a-fA-F0-9]{8}$/,pO=/^#[a-fA-F0-9]{3}$/,fO=/^#[a-fA-F0-9]{4}$/,j0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,hO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,mO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,gO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function du(e){if(typeof e!="string")throw new Ot(3);var t=uO(e);if(t.match(cO))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(dO)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(pO))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(fO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=j0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=hO.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=mO.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+Go(s,c,d)+")",m=j0.exec(p);if(!m)throw new Ot(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=gO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Go(f,v,g)+")",x=j0.exec(w);if(!x)throw new Ot(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ot(5)}function vO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?ps(e,t,r):"rgba("+Go(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ps(e.hue,e.saturation,e.lightness):"rgba("+Go(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ot(2)}function P1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return M1("#"+Yr(e)+Yr(t)+Yr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return M1("#"+Yr(e.red)+Yr(e.green)+Yr(e.blue));throw new Ot(6)}function nr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=du(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?P1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?P1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ot(7)}var xO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},DO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},CO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},SO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function $9(e){if(typeof e!="object")throw new Ot(8);if(DO(e))return nr(e);if(xO(e))return P1(e);if(SO(e))return EO(e);if(CO(e))return wO(e);throw new Ot(8)}function N9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):N9(e,t,n)}}function pu(e){return N9(e,e.length,[])}function fu(e,t,r){return Math.max(e,Math.min(t,r))}function kO(e,t){if(t==="transparent")return t;var r=P9(t);return $9(Ca({},r,{lightness:fu(0,1,r.lightness-parseFloat(e))}))}var AO=pu(kO),Rt=AO;function FO(e,t){if(t==="transparent")return t;var r=P9(t);return $9(Ca({},r,{lightness:fu(0,1,r.lightness+parseFloat(e))}))}var _O=pu(FO),Kr=_O;function RO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,(n*100+parseFloat(e)*100)/100)});return nr(a)}var IO=pu(RO),Ji=IO;function BO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nr(a)}var TO=pu(BO),oe=TO,zO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),H9=e=>y.createElement(zO,{...e,className:"docblock-emptyblock sb-unstyled"}),LO=F(jf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),OO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Zi=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${nd}`]:{margin:0}})),MO=()=>y.createElement(OO,null,y.createElement(Zi,null),y.createElement(Zi,{style:{width:"80%"}}),y.createElement(Zi,{style:{width:"30%"}}),y.createElement(Zi,{style:{width:"80%"}})),j9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=xy();if(e)return y.createElement(MO,null);if(t)return y.createElement(H9,null,t);let c=y.createElement(LO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?td.dark:td.light;return y.createElement(Dy,{theme:rd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Qf=600,PO=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),$O=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),NO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),HO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Qf}px)`]:{}})),jO=({children:e,toc:t})=>y.createElement(HO,{className:"sbdocs sbdocs-wrapper"},y.createElement(NO,{className:"sbdocs sbdocs-content"},e),t),hu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:VO}=globalThis,UO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=VO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},V9=l.createContext({scale:1}),{PREVIEW_URL:qO}=globalThis,WO=qO||"iframe.html",$1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,GO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(oz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${$1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(U9,null),y.createElement("div",{ref:t,id:`${$1(e)}-inner`,"data-name":i.name}))},YO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(V9.Consumer,null,({scale:r})=>y.createElement(UO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:FL(WO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),KO=F.strong(({theme:e})=>({color:e.color.orange})),JO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(KO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:$1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(GO,{...e}):y.createElement(YO,{...e}))},U9=()=>y.createElement(AL,null),ZO=F(Zf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),XO=F.div({display:"flex",alignItems:"center",gap:4}),QO=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),eM=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(ZO,{...o},y.createElement(XO,{key:"left"},e?[1,2,3].map(i=>y.createElement(QO,{key:i})):y.createElement(y.Fragment,null,y.createElement(sn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(BL,null)),y.createElement(sn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(TL,null)),y.createElement(sn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(zL,null))))),tM=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),x4=F(j9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content)}})),rM=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...hu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),nM=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(x4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(x4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function aM(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var oM=F(eM)({position:"absolute",top:0,left:0,right:0,height:40}),iM=F.div({overflow:"hidden",position:"relative"}),q9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=nM(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await Y1(()=>import("./index-hp3BBEcD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(B=>B.title!=="Copied")),1500)}))};return y.createElement(rM,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(oM,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:aM(n),baseUrl:"./iframe.html"}),y.createElement(V9.Provider,{value:{scale:g}},y.createElement(iM,{className:"docs-story",onCopyCapture:a&&A},y.createElement(tM,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(ZT.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Cp,{actionItems:C}))),a&&m&&f)};F(q9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),k4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},sM=["style","script"],uM=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,cM=/mailto:/i,dM=/\n{2,}$/,W9=/^(\s*>[\s\S]*?)(?=\n{2,})/,pM=/^ *> ?/gm,fM=/^ {2,}\n/,hM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,G9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Y9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,mM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,gM=/^(?:\n *)*\n/,vM=/\r\n?/g,yM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,bM=/^\[\^([^\]]+)]/,wM=/\f/g,EM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,xM=/^\s*?\[(x|\s)\]/,K9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,J9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Z9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,DM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,X9=/^)/,CM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,H1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,SM=/^\{.*\}$/,kM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,AM=/^<([^ >]+@[^ >]+)>/,FM=/^<([^ >]+:\/[^ >]+)>/,_M=/-([a-z])?/gi,Q9=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,RM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,IM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,BM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,TM=/(\[|\])/g,zM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,LM=/\t/g,OM=/^ *\| */,MM=/(^ *\||\| *$)/g,PM=/ *$/,$M=/^ *:-+: *$/,NM=/^ *:-+ *$/,HM=/^ *-+: *$/,mu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",jM=new RegExp(`^([*_])\\1${mu}\\1\\1(?!\\1)`),VM=new RegExp(`^([*_])${mu}\\1(?!\\1|\\w)`),UM=new RegExp(`^==${mu}==`),qM=new RegExp(`^~~${mu}~~`),WM=/^\\([^0-9A-Za-z\s])/,GM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,YM=/^\n+/,KM=/^([ \t]*)/,JM=/\\([^\\])/g,A4=/ *\n+$/,ZM=/(?:^|\n)( *)$/,eh="(?:\\d+\\.)",th="(?:[*+-])";function ex(e){return"( *)("+(e===1?eh:th)+") +"}var tx=ex(1),rx=ex(2);function nx(e){return new RegExp("^"+(e===1?tx:rx))}var XM=nx(1),QM=nx(2);function ax(e){return new RegExp("^"+(e===1?tx:rx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eh:th)+" )[^\\n]*)*(\\n|$)","gm")}var ox=ax(1),ix=ax(2);function lx(e){let t=e===1?eh:th;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var sx=lx(1),ux=lx(2);function F4(e,t){let r=t===1,n=r?sx:ux,a=r?ox:ix,o=r?XM:QM;return{match(i,s,c){let d=ZM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(dM,` +`};function lO(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,c=i):a>=1&&a<2?(s=i,c=o):a>=2&&a<3?(c=o,d=i):a>=3&&a<4?(c=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,h=c+p,f=d+p;return n(m,h,f)}var E4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function uO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return E4[t]?"#"+E4[t]:e}var cO=/^#[a-fA-F0-9]{6}$/,dO=/^#[a-fA-F0-9]{8}$/,pO=/^#[a-fA-F0-9]{3}$/,fO=/^#[a-fA-F0-9]{4}$/,j0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,hO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,mO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,gO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function du(e){if(typeof e!="string")throw new Ot(3);var t=uO(e);if(t.match(cO))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(dO)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(pO))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(fO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=j0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=hO.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=mO.exec(t);if(i){var s=parseInt(""+i[1],10),c=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+Go(s,c,d)+")",m=j0.exec(p);if(!m)throw new Ot(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=gO.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+Go(f,v,g)+")",x=j0.exec(w);if(!x)throw new Ot(4,t,w);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ot(5)}function vO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,c=a-o,d=i>.5?c/(2-a-o):c/(a+o);switch(a){case t:s=(r-n)/c+(r=1?ps(e,t,r):"rgba("+Go(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ps(e.hue,e.saturation,e.lightness):"rgba("+Go(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ot(2)}function P1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return M1("#"+Yr(e)+Yr(t)+Yr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return M1("#"+Yr(e.red)+Yr(e.green)+Yr(e.blue));throw new Ot(6)}function nr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=du(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?P1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?P1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ot(7)}var xO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},DO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},CO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},SO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function $9(e){if(typeof e!="object")throw new Ot(8);if(DO(e))return nr(e);if(xO(e))return P1(e);if(SO(e))return EO(e);if(CO(e))return wO(e);throw new Ot(8)}function N9(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):N9(e,t,n)}}function pu(e){return N9(e,e.length,[])}function fu(e,t,r){return Math.max(e,Math.min(t,r))}function kO(e,t){if(t==="transparent")return t;var r=P9(t);return $9(Ca({},r,{lightness:fu(0,1,r.lightness-parseFloat(e))}))}var AO=pu(kO),Rt=AO;function FO(e,t){if(t==="transparent")return t;var r=P9(t);return $9(Ca({},r,{lightness:fu(0,1,r.lightness+parseFloat(e))}))}var _O=pu(FO),Kr=_O;function RO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,(n*100+parseFloat(e)*100)/100)});return nr(a)}var IO=pu(RO),Ji=IO;function BO(e,t){if(t==="transparent")return t;var r=du(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ca({},r,{alpha:fu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nr(a)}var TO=pu(BO),oe=TO,zO=F.div(se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:oe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),H9=e=>y.createElement(zO,{...e,className:"docblock-emptyblock sb-unstyled"}),LO=F(jf)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),OO=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Zi=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${nd}`]:{margin:0}})),MO=()=>y.createElement(OO,null,y.createElement(Zi,null),y.createElement(Zi,{style:{width:"80%"}}),y.createElement(Zi,{style:{width:"30%"}}),y.createElement(Zi,{style:{width:"80%"}})),j9=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=xy();if(e)return y.createElement(MO,null);if(t)return y.createElement(H9,null,t);let c=y.createElement(LO,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return c;let d=a?td.dark:td.light;return y.createElement(Dy,{theme:rd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Qf=600,PO=F.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),$O=F.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Qf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:oe(.25,e.color.defaultText)})),NO=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?oe(.1,e.color.defaultText):oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[he("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[he("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[he("div")]:t,[he("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[he("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[he("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[he("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[he("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[he("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[he("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[he("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[he("img")]:{maxWidth:"100%"},[he("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[he("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[he("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[he("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[he("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[he("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[he("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),HO=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Qf}px)`]:{}})),jO=({children:e,toc:t})=>y.createElement(HO,{className:"sbdocs sbdocs-wrapper"},y.createElement(NO,{className:"sbdocs sbdocs-content"},e),t),hu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:VO}=globalThis,UO=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=VO.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},V9=l.createContext({scale:1}),{PREVIEW_URL:qO}=globalThis,WO=qO||"iframe.html",$1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,GO=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:c,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,h=p(i,m,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:c,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[c,p,i]),a?y.createElement("pre",null,y.createElement(oz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${$1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(U9,null),y.createElement("div",{ref:t,id:`${$1(e)}-inner`,"data-name":i.name}))},YO=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(V9.Consumer,null,({scale:r})=>y.createElement(UO,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:FL(WO,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),KO=F.strong(({theme:e})=>({color:e.color.orange})),JO=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(KO,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:$1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(GO,{...e}):y.createElement(YO,{...e}))},U9=()=>y.createElement(AL,null),ZO=F(Zf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),XO=F.div({display:"flex",alignItems:"center",gap:4}),QO=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),eM=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(ZO,{...o},y.createElement(XO,{key:"left"},e?[1,2,3].map(i=>y.createElement(QO,{key:i})):y.createElement(y.Fragment,null,y.createElement(sn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(BL,null)),y.createElement(sn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(TL,null)),y.createElement(sn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(zL,null))))),tM=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),x4=F(j9)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rt(.05,e.background.content)}})),rM=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...hu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),nM=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(x4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(x4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function aM(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var oM=F(eM)({position:"absolute",top:0,left:0,right:0,height:40}),iM=F.div({overflow:"hidden",position:"relative"}),q9=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:c,layout:d="padded",...p})=>{let[m,h]=l.useState(i),{source:f,actionItem:v}=nM(a,m,h),[g,w]=l.useState(1),x=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=a?[v]:[],[E,b]=l.useState(s?[...s]:[]),C=[...D,...E],{window:S}=globalThis,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:I}=await Y1(()=>import("./index-Bd8KzZft.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);I()},[]),A=_=>{let I=S.getSelection();I&&I.type==="Range"||(_.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k(f.props.code).then(()=>{b([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>b(E.filter(B=>B.title!=="Copied")),1500)}))};return y.createElement(rM,{withSource:a,withToolbar:o,...p,className:x.join(" ")},o&&y.createElement(oM,{isLoading:e,border:!0,zoom:_=>w(g*_),resetZoom:()=>w(1),storyId:aM(n),baseUrl:"./iframe.html"}),y.createElement(V9.Provider,{value:{scale:g}},y.createElement(iM,{className:"docs-story",onCopyCapture:a&&A},y.createElement(tM,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(ZT.Element,{scale:g},Array.isArray(n)?n.map((_,I)=>y.createElement("div",{key:I},_)):y.createElement("div",null,n))),y.createElement(Cp,{actionItems:C}))),a&&m&&f)};F(q9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),k4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},sM=["style","script"],uM=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,cM=/mailto:/i,dM=/\n{2,}$/,W9=/^(\s*>[\s\S]*?)(?=\n{2,})/,pM=/^ *> ?/gm,fM=/^ {2,}\n/,hM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,G9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Y9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,mM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,gM=/^(?:\n *)*\n/,vM=/\r\n?/g,yM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,bM=/^\[\^([^\]]+)]/,wM=/\f/g,EM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,xM=/^\s*?\[(x|\s)\]/,K9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,J9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Z9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,DM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,X9=/^)/,CM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,H1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,SM=/^\{.*\}$/,kM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,AM=/^<([^ >]+@[^ >]+)>/,FM=/^<([^ >]+:\/[^ >]+)>/,_M=/-([a-z])?/gi,Q9=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,RM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,IM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,BM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,TM=/(\[|\])/g,zM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,LM=/\t/g,OM=/^ *\| */,MM=/(^ *\||\| *$)/g,PM=/ *$/,$M=/^ *:-+: *$/,NM=/^ *:-+ *$/,HM=/^ *-+: *$/,mu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",jM=new RegExp(`^([*_])\\1${mu}\\1\\1(?!\\1)`),VM=new RegExp(`^([*_])${mu}\\1(?!\\1|\\w)`),UM=new RegExp(`^==${mu}==`),qM=new RegExp(`^~~${mu}~~`),WM=/^\\([^0-9A-Za-z\s])/,GM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,YM=/^\n+/,KM=/^([ \t]*)/,JM=/\\([^\\])/g,A4=/ *\n+$/,ZM=/(?:^|\n)( *)$/,eh="(?:\\d+\\.)",th="(?:[*+-])";function ex(e){return"( *)("+(e===1?eh:th)+") +"}var tx=ex(1),rx=ex(2);function nx(e){return new RegExp("^"+(e===1?tx:rx))}var XM=nx(1),QM=nx(2);function ax(e){return new RegExp("^"+(e===1?tx:rx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eh:th)+" )[^\\n]*)*(\\n|$)","gm")}var ox=ax(1),ix=ax(2);function lx(e){let t=e===1?eh:th;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var sx=lx(1),ux=lx(2);function F4(e,t){let r=t===1,n=r?sx:ux,a=r?ox:ix,o=r?XM:QM;return{match(i,s,c){let d=ZM.exec(c);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,c){let d=r?+i[2]:void 0,p=i[0].replace(dM,` `).match(a),m=!1;return{items:p.map(function(h,f){let v=o.exec(h)[0].length,g=new RegExp("^ {1,"+v+"}","gm"),w=h.replace(g,"").replace(o,""),x=f===p.length-1,D=w.indexOf(` `)!==-1||x&&m;m=D;let E=c.inline,b=c.list,C;c.list=!0,D?(c.inline=!1,C=w.replace(A4,` @@ -708,7 +708,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${Rt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Kr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Kr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${nr(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Dx=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),s$=F(Dx)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),u$=F.div({display:"flex",alignItems:"center",width:"100%"});function c$(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var d$=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var f;let d=v=>{r(EP(v.target.value))},p=t!==void 0,m=l.useMemo(()=>c$(o),[o]),h=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return y.createElement(u$,{"aria-readonly":h},y.createElement(Dx,null,n),y.createElement(l$,{id:vt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(s$,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},p$=F.label({display:"flex"}),f$=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),h$=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},c=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Sn,{variant:"outline",size:"medium",disabled:c,id:hs(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(p$,null,y.createElement(yi.Textarea,{id:vt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(f$,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},m$=F(yi.Input)({padding:10});function g$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var v$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),g$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(m$,{ref:o,id:vt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},y$=l.lazy(()=>Y1(()=>import("./Color-F6OSRLHC-CDJkqvML.js"),__vite__mapDeps([9,2,1,3,4,5,6,7,8]),import.meta.url)),b$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(y$,{...e})),w$={array:P4,object:P4,boolean:fP,color:b$,date:bP,number:DP,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:d$,text:h$,file:v$},$4=()=>y.createElement(y.Fragment,null,"-"),E$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(w=>(d({value:w}),r({[a]:w}),w),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let w=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement($4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=w$[o.type]||$4;return y.createElement(v,{...f,...o,controlType:o.type})},x$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Lr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),D$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(x$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},C$=K1(O9()),U1=8,N4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),S$=F.span(Lr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),k$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),A$=F.div(Lr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),F$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),_$=F(VL)({marginLeft:4}),R$=F(L9)({marginLeft:4}),I$=()=>y.createElement("span",null,"-"),Cx=({text:e,simple:t})=>y.createElement(S$,{simple:t},e),B$=(0,C$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),T$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return nD(t)},H4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,U1)),r.map(n=>y.createElement(Cx,{key:n,text:n===""?'""':n}))},z$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(Cx,{text:c});let d=T$(c),p=d.length;return p>U1?y.createElement(N4,{isExpanded:i},H4(d,i),y.createElement(k$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-U1} more...`)):y.createElement(N4,null,H4(d))}return y.createElement(Iz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(F$,{width:B$(n)},y.createElement(jf,{language:"jsx",format:!1},n))},y.createElement(A$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(_$,null):y.createElement(R$,null)))},K0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(I$,null):y.createElement(z$,{value:e,initialExpandedArgs:t}),L$=F.span({fontWeight:"bold"}),O$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),M$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Lr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),P$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),$$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),N$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),H$=e=>e&&{summary:typeof e=="string"?e:e.name},Xi=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||H$(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(N$,{expandable:i},y.createElement(L$,null,c),f?y.createElement(O$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(M$,null,y.createElement(dx,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement($$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s})),y.createElement(D$,{tags:p.jsDocTags})):y.createElement(P$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(K0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(E$,{...e,isHovered:t})):null)},j$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),V$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),U$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),q$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(j$,{inAddonPanel:e},y.createElement(F9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(V$,null,e&&y.createElement(y.Fragment,null,y.createElement(oa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(ML,null)," Watch 5m video"),y.createElement(U$,null),y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read docs")),!e&&y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Learn how to set that up"))}))},W$=F(HL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),G$=F(jL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),Y$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),K$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),J$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Z$=F.td(()=>({position:"relative"})),X$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Kr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),j4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),J0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?J$:K$,c=(r==null?void 0:r.length)||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(X$,{title:p},y.createElement(s,{colSpan:1},y.createElement(j4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(Y$,null,o?y.createElement(W$,null):y.createElement(G$,null),t)),y.createElement(Z$,{colSpan:a-1},y.createElement(j4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Qi=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],Q$=()=>y.createElement(y.Fragment,null,y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),eN=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),tN=F(sn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),rN=F.span({display:"flex",justifyContent:"space-between"}),nN={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},aN=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=nN[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},oN=(e,t,r)=>{try{return gS(e,t,r)}catch(n){return WL.warn(n.message),!1}},q1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(H9,null,D," ",y.createElement(oa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read the docs"))}if(s)return y.createElement(Q$,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=aN(aD(c||{},D=>{var E;return!((E=D==null?void 0:D.table)!=null&&E.disable)&&oN(D,d||{},p||{})}),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(q$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(U8,null,y.createElement(eN,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(rN,null,"Control"," ",!s&&r&&y.createElement(tN,{onClick:()=>r(),title:"Reset controls"},y.createElement(UL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Xi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(J0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(J0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(J0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Xi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},iN=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(q1,{...r[0][1],...t}):y.createElement(fL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(q1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...hu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...hu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...hu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var lN=e=>`anchor--${e}`,sN=({storyId:e,children:t})=>y.createElement("div",{id:lN(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Yt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(Yt).resolveOf(e,t),uN=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),cN=e=>{if(e)return typeof e=="string"?e.includes("-")?uN(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function dN(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var pN=Object.create,Sx=Object.defineProperty,fN=Object.getOwnPropertyDescriptor,kx=Object.getOwnPropertyNames,hN=Object.getPrototypeOf,mN=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[kx(e)[0]])((t={exports:{}}).exports,t),t.exports},gN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kx(t))!mN.call(e,a)&&a!==r&&Sx(e,a,{get:()=>t[a],enumerable:!(n=fN(t,a))||n.enumerable});return e},ah=(e,t,r)=>(r=e!=null?pN(hN(e)):{},gN(!e||!e.__esModule?Sx(r,"default",{value:e,enumerable:!0}):r,e)),vN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],yN=["detail"];function bN(e){let t=vN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&yN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var wN=K1(O9(),1),Ax=et({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),Fx=et({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Ax();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),EN=et({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=oh(),D=xN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},B=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=B("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,J);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[J]}else ne=D(U,J),U=U[J];ne&&!V&&(v[j]=U)}}return U}}}),DN=et({"node_modules/call-bind/index.js"(e,t){var r=oh(),n=_x(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),CN=et({"node_modules/call-bind/callBound.js"(e,t){var r=_x(),n=DN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),SN=et({"node_modules/has-tostringtag/shams.js"(e,t){var r=Ax();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),kN=et({"node_modules/is-regex/index.js"(e,t){var r=CN(),n=SN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),AN=et({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),FN=et({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Fx()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),_N=ah(kN()),RN=ah(AN()),IN=ah(FN());function BN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var TN=typeof global=="object"&&global&&global.Object===Object&&global,zN=TN,LN=typeof self=="object"&&self&&self.Object===Object&&self,ON=zN||LN||Function("return this")(),ih=ON,MN=ih.Symbol,Sa=MN,Rx=Object.prototype,PN=Rx.hasOwnProperty,$N=Rx.toString,ao=Sa?Sa.toStringTag:void 0;function NN(e){var t=PN.call(e,ao),r=e[ao];try{e[ao]=void 0;var n=!0}catch{}var a=$N.call(e);return n&&(t?e[ao]=r:delete e[ao]),a}var HN=NN,jN=Object.prototype,VN=jN.toString;function UN(e){return VN.call(e)}var qN=UN,WN="[object Null]",GN="[object Undefined]",V4=Sa?Sa.toStringTag:void 0;function YN(e){return e==null?e===void 0?GN:WN:V4&&V4 in Object(e)?HN(e):qN(e)}var KN=YN,U4=Sa?Sa.prototype:void 0;U4&&U4.toString;function JN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ix=JN,ZN="[object AsyncFunction]",XN="[object Function]",QN="[object GeneratorFunction]",eH="[object Proxy]";function tH(e){if(!Ix(e))return!1;var t=KN(e);return t==XN||t==QN||t==ZN||t==eH}var rH=tH,nH=ih["__core-js_shared__"],Z0=nH,q4=function(){var e=/[^.]+$/.exec(Z0&&Z0.keys&&Z0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function aH(e){return!!q4&&q4 in e}var oH=aH,iH=Function.prototype,lH=iH.toString;function sH(e){if(e!=null){try{return lH.call(e)}catch{}try{return e+""}catch{}}return""}var uH=sH,cH=/[\\^$.*+?()[\]{}|]/g,dH=/^\[object .+?Constructor\]$/,pH=Function.prototype,fH=Object.prototype,hH=pH.toString,mH=fH.hasOwnProperty,gH=RegExp("^"+hH.call(mH).replace(cH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vH(e){if(!Ix(e)||oH(e))return!1;var t=rH(e)?gH:dH;return t.test(uH(e))}var yH=vH;function bH(e,t){return e==null?void 0:e[t]}var wH=bH;function EH(e,t){var r=wH(e,t);return yH(r)?r:void 0}var Bx=EH;function xH(e,t){return e===t||e!==e&&t!==t}var DH=xH,CH=Bx(Object,"create"),Yo=CH;function SH(){this.__data__=Yo?Yo(null):{},this.size=0}var kH=SH;function AH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FH=AH,_H="__lodash_hash_undefined__",RH=Object.prototype,IH=RH.hasOwnProperty;function BH(e){var t=this.__data__;if(Yo){var r=t[e];return r===_H?void 0:r}return IH.call(t,e)?t[e]:void 0}var TH=BH,zH=Object.prototype,LH=zH.hasOwnProperty;function OH(e){var t=this.__data__;return Yo?t[e]!==void 0:LH.call(t,e)}var MH=OH,PH="__lodash_hash_undefined__";function $H(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yo&&t===void 0?PH:t,this}var NH=$H;function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var ZH=JH;function XH(e,t){var r=this.__data__,n=vu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var QH=XH;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),u$=F.div({display:"flex",alignItems:"center",width:"100%"});function c$(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var d$=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:c})=>{var f;let d=v=>{r(EP(v.target.value))},p=t!==void 0,m=l.useMemo(()=>c$(o),[o]),h=!!((f=c==null?void 0:c.table)!=null&&f.readonly);return y.createElement(u$,{"aria-readonly":h},y.createElement(Dx,null,n),y.createElement(l$,{id:vt(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(s$,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},p$=F.label({display:"flex"}),f$=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),h$=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},c=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Sn,{variant:"outline",size:"medium",disabled:c,id:hs(e),onClick:m},"Set string");let h=typeof t=="string";return y.createElement(p$,null,y.createElement(yi.Textarea,{id:vt(e),maxLength:o,onChange:s,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:a}),o&&y.createElement(f$,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},m$=F(yi.Input)({padding:10});function g$(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var v$=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var c;let o=l.useRef(null),i=(c=a==null?void 0:a.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),g$(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(m$,{ref:o,id:vt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},y$=l.lazy(()=>Y1(()=>import("./Color-F6OSRLHC-CuGklq2Y.js"),__vite__mapDeps([9,2,1,3,4,5,6,7,8]),import.meta.url)),b$=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(y$,{...e})),w$={array:P4,object:P4,boolean:fP,color:b$,date:bP,number:DP,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:d$,text:h$,file:v$},$4=()=>y.createElement(y.Fragment,null,"-"),E$=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:o}=e,[i,s]=l.useState(!1),[c,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(w=>(d({value:w}),r({[a]:w}),w),[r,a]),m=l.useCallback(()=>s(!1),[]),h=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let w=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement($4,null)}let f={name:a,argType:e,value:c.value,onChange:p,onBlur:m,onFocus:h},v=w$[o.type]||$4;return y.createElement(v,{...f,...o,controlType:o.type})},x$=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Lr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),D$=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(x$,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},C$=K1(O9()),U1=8,N4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),S$=F.span(Lr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),k$=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),A$=F.div(Lr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),F$=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),_$=F(VL)({marginLeft:4}),R$=F(L9)({marginLeft:4}),I$=()=>y.createElement("span",null,"-"),Cx=({text:e,simple:t})=>y.createElement(S$,{simple:t},e),B$=(0,C$.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),T$=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return nD(t)},H4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,U1)),r.map(n=>y.createElement(Cx,{key:n,text:n===""?'""':n}))},z$=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return y.createElement(Cx,{text:c});let d=T$(c),p=d.length;return p>U1?y.createElement(N4,{isExpanded:i},H4(d,i),y.createElement(k$,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-U1} more...`)):y.createElement(N4,null,H4(d))}return y.createElement(Iz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(F$,{width:B$(n)},y.createElement(jf,{language:"jsx",format:!1},n))},y.createElement(A$,{className:"sbdocs-expandable"},y.createElement("span",null,c),a?y.createElement(_$,null):y.createElement(R$,null)))},K0=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(I$,null):y.createElement(z$,{value:e,initialExpandedArgs:t}),L$=F.span({fontWeight:"bold"}),O$=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),M$=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Lr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),P$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?4:0})),$$=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?oe(.1,e.color.defaultText):oe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),N$=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),H$=e=>e&&{summary:typeof e=="string"?e:e.name},Xi=e=>{var g;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:c,description:d}=n,p=n.table||{},m=p.type||H$(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(N$,{expandable:i},y.createElement(L$,null,c),f?y.createElement(O$,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(M$,null,y.createElement(dx,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement($$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s})),y.createElement(D$,{tags:p.jsDocTags})):y.createElement(P$,{hasDescription:v},y.createElement(K0,{value:m,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(K0,{value:h,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(E$,{...e,isHovered:t})):null)},j$=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),V$=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),U$=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),q$=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(j$,{inAddonPanel:e},y.createElement(F9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(V$,null,e&&y.createElement(y.Fragment,null,y.createElement(oa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(ML,null)," Watch 5m video"),y.createElement(U$,null),y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read docs")),!e&&y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(z1,null)," Learn how to set that up"))}))},W$=F(HL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),G$=F(jL)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?oe(.25,e.color.defaultText):oe(.3,e.color.defaultText),border:"none",display:"inline-block"})),Y$=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),K$=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),J$=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Z$=F.td(()=>({position:"relative"})),X$=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Kr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),j4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),J0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?J$:K$,c=(r==null?void 0:r.length)||0,d=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(X$,{title:p},y.createElement(s,{colSpan:1},y.createElement(j4,{onClick:m=>i(!o),tabIndex:0},p),y.createElement(Y$,null,o?y.createElement(W$,null):y.createElement(G$,null),t)),y.createElement(Z$,{colSpan:a-1},y.createElement(j4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Qi=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],Q$=()=>y.createElement(y.Fragment,null,y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"}))),y.createElement(Qi,null,y.createElement(Ae,{numColumn:Fe[0]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[1]},y.createElement(me,{width:"80%"}),y.createElement(me,{width:"30%"})),y.createElement(Ae,{numColumn:Fe[2]},y.createElement(me,{width:"60%"})),y.createElement(Ae,{numColumn:Fe[3]},y.createElement(me,{width:"60%"})))),eN=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?oe(.25,e.color.defaultText):oe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),tN=F(sn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),rN=F.span({display:"flex",justifyContent:"space-between"}),nN={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},aN=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:c}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!c)d.ungrouped.push({key:o,...i});else{let p=d.subsections[c]||[];p.push({key:o,...i}),d.subsections[c]=p}r.sections[s]=d}else if(c){let d=r.ungroupedSubsections[c]||[];d.push({key:o,...i}),r.ungroupedSubsections[c]=d}else r.ungrouped.push({key:o,...i})});let n=nN[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},oN=(e,t,r)=>{try{return gS(e,t,r)}catch(n){return WL.warn(n.message),!1}},q1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:D}=e;return y.createElement(H9,null,D," ",y.createElement(oa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(z1,null)," Read the docs"))}if(s)return y.createElement(Q$,null);let{rows:c,args:d,globals:p}="rows"in e&&e,m=aN(aD(c||{},D=>{var E;return!((E=D==null?void 0:D.table)!=null&&E.disable)&&oN(D,d||{},p||{})}),i),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return y.createElement(q$,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(U8,null,y.createElement(eN,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(rN,null,"Control"," ",!s&&r&&y.createElement(tN,{onClick:()=>r(),title:"Reset controls"},y.createElement(UL,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(D=>y.createElement(Xi,{key:D.key,row:D,arg:d&&d[D.key],...x})),Object.entries(m.ungroupedSubsections).map(([D,E])=>y.createElement(J0,{key:D,label:D,level:"subsection",colSpan:g},E.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],expandable:w,...x})))),Object.entries(m.sections).map(([D,E])=>y.createElement(J0,{key:D,label:D,level:"section",colSpan:g},E.ungrouped.map(b=>y.createElement(Xi,{key:b.key,row:b,arg:d&&d[b.key],...x})),Object.entries(E.subsections).map(([b,C])=>y.createElement(J0,{key:b,label:b,level:"subsection",colSpan:g},C.map(S=>y.createElement(Xi,{key:S.key,row:S,arg:d&&d[S.key],expandable:w,...x})))))))))},iN=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(q1,{...r[0][1],...t}):y.createElement(fL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,c="div",d=a===0?t:{sort:t.sort};return y.createElement(c,{key:s,id:s,title:o},({active:p})=>p?y.createElement(q1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(se,({theme:e})=>({...hu(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?oe(.2,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...hu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?oe(.4,e.color.defaultText):oe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...hu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var lN=e=>`anchor--${e}`,sN=({storyId:e,children:t})=>y.createElement("div",{id:lN(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=l.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Yt=globalThis?globalThis.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(Yt).resolveOf(e,t),uN=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),cN=e=>{if(e)return typeof e=="string"?e.includes("-")?uN(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function dN(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var pN=Object.create,Sx=Object.defineProperty,fN=Object.getOwnPropertyDescriptor,kx=Object.getOwnPropertyNames,hN=Object.getPrototypeOf,mN=Object.prototype.hasOwnProperty,et=(e,t)=>function(){return t||(0,e[kx(e)[0]])((t={exports:{}}).exports,t),t.exports},gN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kx(t))!mN.call(e,a)&&a!==r&&Sx(e,a,{get:()=>t[a],enumerable:!(n=fN(t,a))||n.enumerable});return e},ah=(e,t,r)=>(r=e!=null?pN(hN(e)):{},gN(!e||!e.__esModule?Sx(r,"default",{value:e,enumerable:!0}):r,e)),vN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],yN=["detail"];function bN(e){let t=vN.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&yN.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var wN=K1(O9(),1),Ax=et({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),Fx=et({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Ax();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),EN=et({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var c=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=s.apply(this,c.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,c.concat(n.call(arguments)))},m=Math.max(0,s.length-c.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function z(L){var M;if(L==="%AsyncFunction%")M=i("async function () {}");else if(L==="%GeneratorFunction%")M=i("function* () {}");else if(L==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(L==="%AsyncGenerator%"){var O=z("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(L==="%AsyncIteratorPrototype%"){var P=z("%AsyncGenerator%");P&&(M=m(P.prototype))}return v[L]=M,M},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=oh(),D=xN(),E=x.call(Function.call,Array.prototype.concat),b=x.call(Function.apply,Array.prototype.splice),C=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),k=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,I=function(z){var L=S(z,0,1),M=S(z,-1);if(L==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&L!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var O=[];return C(z,A,function(P,j,U,V){O[O.length]=U?C(V,_,"$1"):j||P}),O},B=function(z,L){var M=z,O;if(D(w,M)&&(O=w[M],M="%"+O[0]+"%"),D(v,M)){var P=v[M];if(P===h&&(P=g(M)),typeof P>"u"&&!L)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:O,name:M,value:P}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,L){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=I(z),O=M.length>0?M[0]:"",P=B("%"+O+"%",L),j=P.name,U=P.value,V=!1,G=P.alias;G&&(O=G[0],b(M,E([0,1],G)));for(var Q=1,ne=!0;Q=M.length){var K=s(U,J);ne=!!K,ne&&"get"in K&&!("originalValue"in K.get)?U=K.get:U=U[J]}else ne=D(U,J),U=U[J];ne&&!V&&(v[j]=U)}}return U}}}),DN=et({"node_modules/call-bind/index.js"(e,t){var r=oh(),n=_x(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(m){var h=i(r,o,arguments);if(s&&c){var f=s(h,"length");f.configurable&&c(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p}}),CN=et({"node_modules/call-bind/callBound.js"(e,t){var r=_x(),n=DN(),a=n(r("String.prototype.indexOf"));t.exports=function(o,i){var s=r(o,!!i);return typeof s=="function"&&a(o,".prototype.")>-1?n(s):s}}}),SN=et({"node_modules/has-tostringtag/shams.js"(e,t){var r=Ax();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),kN=et({"node_modules/is-regex/index.js"(e,t){var r=CN(),n=SN()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},c=function(){throw i},s={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=c));var c,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&a(f,"value");if(!v)return!1;try{o(h,s)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),AN=et({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),FN=et({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Fx()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),_N=ah(kN()),RN=ah(AN()),IN=ah(FN());function BN(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var TN=typeof global=="object"&&global&&global.Object===Object&&global,zN=TN,LN=typeof self=="object"&&self&&self.Object===Object&&self,ON=zN||LN||Function("return this")(),ih=ON,MN=ih.Symbol,Sa=MN,Rx=Object.prototype,PN=Rx.hasOwnProperty,$N=Rx.toString,ao=Sa?Sa.toStringTag:void 0;function NN(e){var t=PN.call(e,ao),r=e[ao];try{e[ao]=void 0;var n=!0}catch{}var a=$N.call(e);return n&&(t?e[ao]=r:delete e[ao]),a}var HN=NN,jN=Object.prototype,VN=jN.toString;function UN(e){return VN.call(e)}var qN=UN,WN="[object Null]",GN="[object Undefined]",V4=Sa?Sa.toStringTag:void 0;function YN(e){return e==null?e===void 0?GN:WN:V4&&V4 in Object(e)?HN(e):qN(e)}var KN=YN,U4=Sa?Sa.prototype:void 0;U4&&U4.toString;function JN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ix=JN,ZN="[object AsyncFunction]",XN="[object Function]",QN="[object GeneratorFunction]",eH="[object Proxy]";function tH(e){if(!Ix(e))return!1;var t=KN(e);return t==XN||t==QN||t==ZN||t==eH}var rH=tH,nH=ih["__core-js_shared__"],Z0=nH,q4=function(){var e=/[^.]+$/.exec(Z0&&Z0.keys&&Z0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function aH(e){return!!q4&&q4 in e}var oH=aH,iH=Function.prototype,lH=iH.toString;function sH(e){if(e!=null){try{return lH.call(e)}catch{}try{return e+""}catch{}}return""}var uH=sH,cH=/[\\^$.*+?()[\]{}|]/g,dH=/^\[object .+?Constructor\]$/,pH=Function.prototype,fH=Object.prototype,hH=pH.toString,mH=fH.hasOwnProperty,gH=RegExp("^"+hH.call(mH).replace(cH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vH(e){if(!Ix(e)||oH(e))return!1;var t=rH(e)?gH:dH;return t.test(uH(e))}var yH=vH;function bH(e,t){return e==null?void 0:e[t]}var wH=bH;function EH(e,t){var r=wH(e,t);return yH(r)?r:void 0}var Bx=EH;function xH(e,t){return e===t||e!==e&&t!==t}var DH=xH,CH=Bx(Object,"create"),Yo=CH;function SH(){this.__data__=Yo?Yo(null):{},this.size=0}var kH=SH;function AH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FH=AH,_H="__lodash_hash_undefined__",RH=Object.prototype,IH=RH.hasOwnProperty;function BH(e){var t=this.__data__;if(Yo){var r=t[e];return r===_H?void 0:r}return IH.call(t,e)?t[e]:void 0}var TH=BH,zH=Object.prototype,LH=zH.hasOwnProperty;function OH(e){var t=this.__data__;return Yo?t[e]!==void 0:LH.call(t,e)}var MH=OH,PH="__lodash_hash_undefined__";function $H(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yo&&t===void 0?PH:t,this}var NH=$H;function La(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var ZH=JH;function XH(e,t){var r=this.__data__,n=vu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var QH=XH;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iCj(e).replace(/\n\s*/g,"").trim()),kj=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let a=r;return a=a.replace(e,"function"),a+n},Aj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function zx(e){if(!Dj(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=bN(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var Fj=function(e){let t,r,n,a;return function(o,i){try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===-1/0?"_-Infinity_":i===1/0?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Aj.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,_N.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,RN.default)(i)){if(!e.allowFunction)return;let{name:d}=i,p=i.toString();return p.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${Sj(kj(o,p))}`}if((0,IN.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&!e.allowClass)return;let c=t.get(i);if(!c){let d=Array.isArray(i)?i:zx(i);if(i.constructor&&i.constructor.name&&i.constructor.name!=="Object"&&!Array.isArray(i)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":i.constructor.name})}catch{}return a.push(o),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}catch{return}}},_j={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},Rj=(e,t={})=>{let r={..._j,...t};return JSON.stringify(zx(e),Fj(r),t.space)};function Lx(e){return Rj(e,{allowFunction:!1})}var Ox=l.createContext({sources:{}}),Mx="--unknown--",Ij=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:c,args:d=void 0,source:p,format:m}=typeof o=="string"?{id:o,source:i,format:s}:o,h=d?Lx(d):Mx;n(f=>({...f,[c]:{...f[c],[h]:{code:p,format:m}}}))};return t.on(hh,a),()=>t.off(hh,a)},[]),y.createElement(Ox.Provider,{value:{sources:r}},e)},Bj=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[Lx(t)])||(a==null?void 0:a[Mx])||{code:""}},Tj=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var c,d;let{__isArgsStory:a}=t.parameters,o=((c=t.parameters.docs)==null?void 0:c.source)||{},i=r||o.type||Eu.AUTO;if(o.code!==void 0)return o.code;let s=i===Eu.DYNAMIC||i===Eu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},zj=(e,t,r)=>{var f,v,g,w;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,s=e.format??o.format,c=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:c,dark:d};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,h=Bj(n.id,m,r);return s=h.format??((w=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:w.format)??!1,{code:Tj({snippet:h.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:c,dark:d}};function Lj(e,t){let r=Oj([e],t);return r&&r[0]}function Oj(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Mj=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},Pj=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,c=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:c,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},$j=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(Yt),r=Mj(e,t),n=Lj(r,t);if(!n)return y.createElement(U9,null);let a=Pj(e,n,t);return a?y.createElement(JO,{...a}):null},Nj=e=>{var h,f,v,g,w,x,D,E,b,C;let t=l.useContext(Yt),r=l.useContext(Ox),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=kn(n||"story",["story"]),i=zj({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(h=o.parameters.docs)==null?void 0:h.canvas)==null?void 0:f.layout)??"padded",c=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((x=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:x.additionalActions),p=e.sourceState??((E=(D=o.parameters.docs)==null?void 0:D.canvas)==null?void 0:E.sourceState)??"hidden",m=e.className??((C=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:C.className);return y.createElement(q9,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:c,additionalActions:d,className:m,layout:s},y.createElement($j,{of:n||o.moduleExport,meta:e.meta,...e.story}))},Hj=(e,t)=>{let r=jj(e,t);if(!r)throw new Error("No result when story was defined");return r},jj=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let c=d=>{d.storyId===n&&o(d.args)};return t.channel.on(b4,c),()=>t.channel.off(b4,c)},[n,t.channel]);let i=l.useCallback(c=>t.channel.emit(GL,{storyId:n,updatedArgs:c}),[n,t.channel]),s=l.useCallback(c=>t.channel.emit(YL,{storyId:n,argNames:c}),[n,t.channel]);return e&&[a,i,s]},Vj=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(w4,o),()=>t.channel.off(w4,o)},[t.channel]),[n]};function Uj(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var qj=e=>{var b;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(Yt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,c=((b=a.docs)==null?void 0:b.controls)||{},d=e.include??c.include,p=e.exclude??c.exclude,m=e.sort??c.sort,[h,f,v]=Hj(n,r),[g]=Vj(n,r),w=y4(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(w).length>0||Object.keys(h).length>0?y.createElement(q1,{rows:w,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v}):null;let x=cN(i),D=Object.fromEntries(Object.entries(s).map(([C,S])=>[C,{rows:y4(Uj(S,a),d,p),sort:m}])),E={[x]:{rows:w,sort:m},...D};return y.createElement(iN,{tabs:E,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v})},{document:Px}=globalThis,$x=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(q8,null,t);let n=e&&e.split("-");return y.createElement(j9,{language:n&&n[1]||"text",format:!1,code:t,...r})};function sh(e,t){e.channel.emit(KL,t)}var W1=RL.a,Wj=({hash:e,children:t})=>{let r=l.useContext(Yt);return y.createElement(W1,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);Px.getElementById(a)&&sh(r,e)}},t)},Nx=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(Yt);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(W1,{...e}):t.startsWith("#")?y.createElement(Wj,{hash:t},n):y.createElement(W1,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),sh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},Hx=["h1","h2","h3","h4","h5","h6"],Gj=Hx.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Yj=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Kj=({as:e,id:t,children:r,...n})=>{let a=l.useContext(Yt),o=Gj[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Yj,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{Px.getElementById(t)&&sh(a,i)}},y.createElement(NL,null)),r)},uh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Kj,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...le(s,t)})},jx=Hx.reduce((e,t)=>({...e,[t]:r=>y.createElement(uh,{as:t,...r})}),{}),Jj=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Yx`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' diff --git a/assets/EmptyWorkspace-C-zl3eeh.js b/assets/EmptyWorkspace-C_olE9C4.js similarity index 92% rename from assets/EmptyWorkspace-C-zl3eeh.js rename to assets/EmptyWorkspace-C_olE9C4.js index 3a10a746..5f5c9705 100644 --- a/assets/EmptyWorkspace-C-zl3eeh.js +++ b/assets/EmptyWorkspace-C_olE9C4.js @@ -1,2 +1,2 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{H as s}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import{N as t}from"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{r as m}from"./index-DRjF_FHU.js";const p=()=>{const[r,o]=m.useState(!1);return e.jsx("div",{className:"flex h-[23rem] w-full justify-center",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:e.jsx("div",{className:"w-full",children:r?e.jsx(s,{}):e.jsx(t,{})})})};p.__docgenInfo={description:`@description +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{H as s}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import{N as t}from"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{r as m}from"./index-DRjF_FHU.js";const p=()=>{const[r,o]=m.useState(!1);return e.jsx("div",{className:"flex h-[23rem] w-full justify-center",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:e.jsx("div",{className:"w-full",children:r?e.jsx(s,{}):e.jsx(t,{})})})};p.__docgenInfo={description:`@description 빈 워크스페이스 컴포넌트`,methods:[],displayName:"EmptyWorkspace"};export{p as E}; diff --git a/assets/EmptyWorkspace.stories-rY0lL7Pm.js b/assets/EmptyWorkspace.stories-DKt4U6ds.js similarity index 90% rename from assets/EmptyWorkspace.stories-rY0lL7Pm.js rename to assets/EmptyWorkspace.stories-DKt4U6ds.js index a5fb05e9..a53ac435 100644 --- a/assets/EmptyWorkspace.stories-rY0lL7Pm.js +++ b/assets/EmptyWorkspace.stories-DKt4U6ds.js @@ -1 +1 @@ -import{E as p}from"./EmptyWorkspace-C-zl3eeh.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const z={title:"widgets/home/EmptyWorkspace",component:p,parameters:{layout:"fullscreen"},tags:["autodocs"]},t={};var r,o,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(m=(o=t.parameters)==null?void 0:o.docs)==null?void 0:m.source}}};const A=["Default"];export{t as Default,A as __namedExportsOrder,z as default}; +import{E as p}from"./EmptyWorkspace-C_olE9C4.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const z={title:"widgets/home/EmptyWorkspace",component:p,parameters:{layout:"fullscreen"},tags:["autodocs"]},t={};var r,o,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(m=(o=t.parameters)==null?void 0:o.docs)==null?void 0:m.source}}};const A=["Default"];export{t as Default,A as __namedExportsOrder,z as default}; diff --git a/assets/ErrorContent-BILLHmWU.js b/assets/ErrorContent-BILLHmWU.js deleted file mode 100644 index da3a1301..00000000 --- a/assets/ErrorContent-BILLHmWU.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import"./Banner-Cmxe5cZT.js";import{H as o}from"./HomeHeader-DYXMEvCV.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-C4R-4nDE.js";import"./WorkspaceModal-DaqQAmWl.js";import"./PreviewBox-L0Yy0i69.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";const e=({description:r})=>t.jsxs(t.Fragment,{children:[t.jsx(o,{}),t.jsxs("div",{className:"absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 transform flex-col items-center gap-6",children:[t.jsx("img",{src:"https://kr.object.ncloudstorage.com/boolock-storage/static/not_found.png",width:160,height:160,alt:"not_found"}),t.jsx("p",{className:"text-medium-md whitespace-pre-line text-center text-gray-200",children:r})]})]});e.__docgenInfo={description:"",methods:[],displayName:"ErrorContent",props:{description:{required:!0,tsType:{name:"string"},description:""}}};export{e as E}; diff --git a/assets/ErrorContent-D7ex5NJl.js b/assets/ErrorContent-D7ex5NJl.js new file mode 100644 index 00000000..053341a7 --- /dev/null +++ b/assets/ErrorContent-D7ex5NJl.js @@ -0,0 +1 @@ +import{j as t}from"./jsx-runtime-DR9Q75dM.js";import"./Banner-Cmxe5cZT.js";import{H as o}from"./HomeHeader-C8BV9Y6D.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-CWdNthdf.js";import"./WorkspaceModal-DhaiX4aW.js";import"./PreviewBox-L0Yy0i69.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";const e=({description:r})=>t.jsxs(t.Fragment,{children:[t.jsx(o,{}),t.jsxs("div",{className:"absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 transform flex-col items-center gap-6",children:[t.jsx("img",{src:"https://kr.object.ncloudstorage.com/boolock-storage/static/not_found.png",width:160,height:160,alt:"not_found"}),t.jsx("p",{className:"text-medium-md whitespace-pre-line text-center text-gray-200",children:r})]})]});e.__docgenInfo={description:"",methods:[],displayName:"ErrorContent",props:{description:{required:!0,tsType:{name:"string"},description:""}}};export{e as E}; diff --git a/assets/ErrorContent.stories-rjA0C6F1.js b/assets/ErrorContent.stories-BZ4U5NZ1.js similarity index 66% rename from assets/ErrorContent.stories-rjA0C6F1.js rename to assets/ErrorContent.stories-BZ4U5NZ1.js index cd94fc62..b072af13 100644 --- a/assets/ErrorContent.stories-rjA0C6F1.js +++ b/assets/ErrorContent.stories-BZ4U5NZ1.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{E as e}from"./ErrorContent-BILLHmWU.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-C4R-4nDE.js";import"./WorkspaceModal-DaqQAmWl.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const $={title:"shared/ui/error/ErrorContent",component:e,parameters:{layout:"centered"},decorators:[p=>t.jsx("div",{className:"flex h-screen w-screen flex-1",children:t.jsx(p,{})})],tags:["autodocs"]},r={args:{description:"에러아님 ㅋ"}};var o,m,i;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{E as e}from"./ErrorContent-D7ex5NJl.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-CWdNthdf.js";import"./WorkspaceModal-DhaiX4aW.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const $={title:"shared/ui/error/ErrorContent",component:e,parameters:{layout:"centered"},decorators:[p=>t.jsx("div",{className:"flex h-screen w-screen flex-1",children:t.jsx(p,{})})],tags:["autodocs"]},r={args:{description:"에러아님 ㅋ"}};var o,m,i;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { description: '에러아님 ㅋ' } diff --git a/assets/ErrorPage.stories-f9-_tl3x.js b/assets/ErrorPage.stories-D8KQAKLZ.js similarity index 68% rename from assets/ErrorPage.stories-f9-_tl3x.js rename to assets/ErrorPage.stories-D8KQAKLZ.js index f9bd4ec1..49a3ae52 100644 --- a/assets/ErrorPage.stories-f9-_tl3x.js +++ b/assets/ErrorPage.stories-D8KQAKLZ.js @@ -1,3 +1,3 @@ -import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{H as s}from"./index.esm-zFJIz-4f.js";import{E as a}from"./ErrorContent-BILLHmWU.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-C4R-4nDE.js";import"./WorkspaceModal-DaqQAmWl.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const p=()=>r.jsxs(r.Fragment,{children:[r.jsxs(s,{children:[r.jsx("title",{children:"BooLock - 에러"}),r.jsx("meta",{name:"description",content:"예상치 못한 오류가 발생했습니다. 다시 시도해 주세요."})]}),r.jsx(a,{description:`예상치 못한 오류가 발생했습니다. +import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{H as s}from"./index.esm-zFJIz-4f.js";import{E as a}from"./ErrorContent-D7ex5NJl.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-CWdNthdf.js";import"./WorkspaceModal-DhaiX4aW.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const p=()=>r.jsxs(r.Fragment,{children:[r.jsxs(s,{children:[r.jsx("title",{children:"BooLock - 에러"}),r.jsx("meta",{name:"description",content:"예상치 못한 오류가 발생했습니다. 다시 시도해 주세요."})]}),r.jsx(a,{description:`예상치 못한 오류가 발생했습니다. 다시 시도해 주세요.`})]});p.__docgenInfo={description:`@description 워크스페이스 에러 페이지 컴포넌트`,methods:[],displayName:"ErrorPage"};const tr={title:"pages/ErrorPage",component:p,parameters:{layout:"fullscreen"},decorators:[e=>r.jsx("div",{className:"flex h-screen w-screen flex-1",children:r.jsx(e,{})})],tags:["autodocs"]},o={};var t,i,m;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(m=(i=o.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};const ir=["Default"];export{o as Default,ir as __namedExportsOrder,tr as default}; diff --git a/assets/HomeHeader-DYXMEvCV.js b/assets/HomeHeader-C8BV9Y6D.js similarity index 92% rename from assets/HomeHeader-DYXMEvCV.js rename to assets/HomeHeader-C8BV9Y6D.js index 3444b840..087f8963 100644 --- a/assets/HomeHeader-DYXMEvCV.js +++ b/assets/HomeHeader-C8BV9Y6D.js @@ -1,2 +1,2 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import{L as r}from"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";const i=()=>e.jsx("header",{className:"fixed z-30 flex h-14 w-full items-center justify-center border-b border-gray-100 bg-white px-4 xl:px-0",children:e.jsx("div",{className:"flex w-[1128px] items-center justify-between",children:e.jsx("div",{className:"flex items-center gap-4",children:e.jsx(r,{isBlack:!1})})})});i.__docgenInfo={description:`@description +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import{L as r}from"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";const i=()=>e.jsx("header",{className:"fixed z-30 flex h-14 w-full items-center justify-center border-b border-gray-100 bg-white px-4 xl:px-0",children:e.jsx("div",{className:"flex w-[1128px] items-center justify-between",children:e.jsx("div",{className:"flex items-center gap-4",children:e.jsx(r,{isBlack:!1})})})});i.__docgenInfo={description:`@description 홈페이지 헤더 컴포넌트`,methods:[],displayName:"HomeHeader"};export{i as H}; diff --git a/assets/HomeHeader.stories-CuRhFSiO.js b/assets/HomeHeader.stories-7Orf3bfd.js similarity index 92% rename from assets/HomeHeader.stories-CuRhFSiO.js rename to assets/HomeHeader.stories-7Orf3bfd.js index 355bbdfd..b6977d9d 100644 --- a/assets/HomeHeader.stories-CuRhFSiO.js +++ b/assets/HomeHeader.stories-7Orf3bfd.js @@ -1,4 +1,4 @@ -import{H as i}from"./HomeHeader-DYXMEvCV.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const F={title:"widgets/home/HomeHeader",component:i,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}},o={args:{isBlack:!0}};var t,e,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{H as i}from"./HomeHeader-C8BV9Y6D.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const F={title:"widgets/home/HomeHeader",component:i,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}},o={args:{isBlack:!0}};var t,e,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/HomePage.stories-nuWGS5Gb.js b/assets/HomePage.stories-C3QbMGkg.js similarity index 75% rename from assets/HomePage.stories-nuWGS5Gb.js rename to assets/HomePage.stories-C3QbMGkg.js index 0dbfdcbf..02e9122f 100644 --- a/assets/HomePage.stories-nuWGS5Gb.js +++ b/assets/HomePage.stories-C3QbMGkg.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{B as c}from"./Banner-Cmxe5cZT.js";import{H as l}from"./HomeHeader-DYXMEvCV.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import{W as d}from"./CssPropsSelectBox-C4R-4nDE.js";import{W as f}from"./WorkspaceModal-DaqQAmWl.js";import"./PreviewBox-L0Yy0i69.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import{f as u,g as x,c as g}from"./html2canvas.esm-BTtajP0W.js";import{H as j}from"./index.esm-zFJIz-4f.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import{L as k}from"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import{r as H}from"./index-DRjF_FHU.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./index-x70cJmE6.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./index-D1AAVYfs.js";import"./QueryClientProvider-BdRu95_o.js";import"./infiniteQueryBehavior-DdhmIwcw.js";import"./ModalConfirm-BDuYJlbG.js";import"./question-BUxmZXrP.js";import"./cssCategoryList-CHFX1k4S.js";const m=()=>{const{isPending:i}=u(),{setWorkspace:p,setCanvasInfo:a}=x(),{initClassBlockList:n}=g();return H.useEffect(()=>{p(null),a(""),n([])},[]),o.jsxs(o.Fragment,{children:[o.jsxs(j,{children:[o.jsx("title",{children:"BooLock - 홈"}),o.jsx("meta",{name:"description",content:"코딩 입문자들이 HTML과 CSS를 블록으로 배우는 BooLock의 메인 페이지입니다."})]}),i&&o.jsx(k,{}),o.jsxs("div",{className:"flex h-full w-full flex-col items-center",children:[o.jsx(l,{}),o.jsx(c,{}),o.jsx(d,{}),o.jsx(f,{})]})]})};m.__docgenInfo={description:`@description +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{B as c}from"./Banner-Cmxe5cZT.js";import{H as l}from"./HomeHeader-C8BV9Y6D.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import{W as d}from"./CssPropsSelectBox-CWdNthdf.js";import{W as f}from"./WorkspaceModal-DhaiX4aW.js";import"./PreviewBox-L0Yy0i69.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import{f as u,g as x,c as g}from"./html2canvas.esm-BTtajP0W.js";import{H as j}from"./index.esm-zFJIz-4f.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import{L as k}from"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{r as H}from"./index-DRjF_FHU.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./index-x70cJmE6.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./index-D1AAVYfs.js";import"./QueryClientProvider-BdRu95_o.js";import"./infiniteQueryBehavior-DdhmIwcw.js";import"./ModalConfirm-BDuYJlbG.js";import"./question-BUxmZXrP.js";import"./cssCategoryList-CHFX1k4S.js";const m=()=>{const{isPending:i}=u(),{setWorkspace:p,setCanvasInfo:a}=x(),{initClassBlockList:n}=g();return H.useEffect(()=>{p(null),a(""),n([])},[]),o.jsxs(o.Fragment,{children:[o.jsxs(j,{children:[o.jsx("title",{children:"BooLock - 홈"}),o.jsx("meta",{name:"description",content:"코딩 입문자들이 HTML과 CSS를 블록으로 배우는 BooLock의 메인 페이지입니다."})]}),i&&o.jsx(k,{}),o.jsxs("div",{className:"flex h-full w-full flex-col items-center",children:[o.jsx(l,{}),o.jsx(c,{}),o.jsx(d,{}),o.jsx(f,{})]})]})};m.__docgenInfo={description:`@description Boolock 홈페이지 컴포넌트`,methods:[],displayName:"HomePage"};const fo={title:"pages/HomePage",component:m,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}};var t,e,s;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { // propsname: value, diff --git a/assets/HoveredEmptyWorkspace-B1GBnKX9.js b/assets/HoveredEmptyWorkspace-BMs7Nsgo.js similarity index 89% rename from assets/HoveredEmptyWorkspace-B1GBnKX9.js rename to assets/HoveredEmptyWorkspace-BMs7Nsgo.js index aa4a6590..af25a881 100644 --- a/assets/HoveredEmptyWorkspace-B1GBnKX9.js +++ b/assets/HoveredEmptyWorkspace-BMs7Nsgo.js @@ -1,16 +1,16 @@ -var pn=Object.defineProperty;var yt=t=>{throw TypeError(t)};var $n=(t,s,o)=>s in t?pn(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o;var q=(t,s,o)=>$n(t,typeof s!="symbol"?s+"":s,o),Qe=(t,s,o)=>s.has(t)||yt("Cannot "+o);var M=(t,s,o)=>(Qe(t,s,"read from private field"),o?o.call(t):s.get(t)),Te=(t,s,o)=>s.has(t)?yt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,o),he=(t,s,o,e)=>(Qe(t,s,"write to private field"),e?e.call(t,o):s.set(t,o),o),ge=(t,s,o)=>(Qe(t,s,"access private method"),o);import{j as f}from"./jsx-runtime-DR9Q75dM.js";import{r as A,c as _n,g as _i}from"./index-DRjF_FHU.js";import{B as mn,i as ve,j as Qt,m as Tn,g as be,f as _t,a as $e,k as S,l as hn,n as gn,b as Zt,u as Ee,h as Le,c as Lt,o as es}from"./html2canvas.esm-BTtajP0W.js";import{S as En,w as fn,q as Ct,A as bn,b as ts,z as Ne}from"./QueryClientProvider-BdRu95_o.js";import{_ as x}from"./index-D1AAVYfs.js";import{S as In,I as Sn}from"./ImageTagModalListItem-D30WR0c8.js";import{C as mt,S as On}from"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import{r as Rn}from"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import{S as Ve}from"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import{u as An,b as Tt}from"./index-x70cJmE6.js";import{S as yn,C as ss}from"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import{c as Ln}from"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const Cn=t=>A.createElement("svg",{width:94,height:89,viewBox:"0 0 94 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M15.666 44.4731H78.3327",stroke:"#00D78B",strokeWidth:8,strokeLinecap:"round",strokeLinejoin:"round"}),A.createElement("path",{d:"M47 14.8311L47 74.1147",stroke:"#00D78B",strokeWidth:8,strokeLinecap:"round",strokeLinejoin:"round"})),U=[];for(let t=0;t<256;++t)U.push((t+256).toString(16).slice(1));function Nn(t,s=0){return(U[t[s+0]]+U[t[s+1]]+U[t[s+2]]+U[t[s+3]]+"-"+U[t[s+4]]+U[t[s+5]]+"-"+U[t[s+6]]+U[t[s+7]]+"-"+U[t[s+8]]+U[t[s+9]]+"-"+U[t[s+10]]+U[t[s+11]]+U[t[s+12]]+U[t[s+13]]+U[t[s+14]]+U[t[s+15]]).toLowerCase()}let Ze;const kn=new Uint8Array(16);function Mn(){if(!Ze){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ze=crypto.getRandomValues.bind(crypto)}return Ze(kn)}const xn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Nt={randomUUID:xn};function Bn(t,s,o){if(Nt.randomUUID&&!s&&!t)return Nt.randomUUID();t=t||{};const e=t.random||(t.rng||Mn)();return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Nn(e)}const Ie=()=>localStorage.getItem("userId"),Ge=()=>{const t=Bn();return localStorage.setItem("userId",t),t},Pn=t=>{const s=new Date(t),o=new Date,e=new Intl.RelativeTimeFormat("ko",{numeric:"auto"}),r=Math.floor((s.getTime()-o.getTime())/(1e3*60)),l=Math.floor(r/60);return r>-60?e.format(r,"minute"):l>-24?e.format(l,"hour"):new Intl.DateTimeFormat("ko",{year:"numeric",month:"2-digit",day:"2-digit"}).format(s)},ns=(t,s)=>{let o;return(...e)=>{let r;return o&&clearTimeout(o),o=setTimeout(()=>{r=t(...e)},s),r}},{ASTNode:wi,BasicCursor:vi,Block:Fi,BlockSvg:Ui,Blocks:kt,COLLAPSED_FIELD_NAME:Hi,COLLAPSED_INPUT_NAME:Vi,COLLAPSE_CHARS:Gi,CodeGenerator:Yi,CollapsibleToolboxCategory:Ki,ComponentManager:Xi,Connection:ji,ConnectionChecker:Wi,ConnectionDB:qi,ConnectionType:Ji,ContextMenu:Dn,ContextMenuItems:zi,ContextMenuRegistry:et,Css:Qi,Cursor:Zi,DELETE_VARIABLE_ID:el,DeleteArea:tl,DragTarget:sl,DropDownDiv:nl,Events:ol,Extensions:rl,Field:wn,FieldCheckbox:il,FieldDropdown:ll,FieldImage:al,FieldLabel:os,FieldLabelSerializable:vn,FieldNumber:cl,FieldTextInput:Fn,FieldVariable:ul,Flyout:dl,FlyoutButton:pl,FlyoutMetricsManager:$l,Generator:Un,Gesture:_l,Grid:ml,HorizontalFlyout:Tl,INPUT_VALUE:hl,Input:gl,InsertionMarkerManager:El,InsertionMarkerPreviewer:fl,Marker:bl,MarkerManager:Il,Menu:Sl,MenuItem:Ol,MetricsManager:Rl,Msg:Al,NEXT_STATEMENT:yl,Names:Ll,OPPOSITE_TYPE:Cl,OUTPUT_VALUE:Nl,Options:kl,PREVIOUS_STATEMENT:Ml,PROCEDURE_CATEGORY_NAME:xl,Procedures:Bl,RENAME_VARIABLE_ID:Pl,RenderedConnection:Dl,Scrollbar:wl,ScrollbarPair:vl,ShortcutItems:Fl,ShortcutRegistry:Ul,TOOLBOX_AT_BOTTOM:Hl,TOOLBOX_AT_LEFT:Vl,TOOLBOX_AT_RIGHT:Gl,TOOLBOX_AT_TOP:Yl,TabNavigateCursor:Kl,Theme:Hn,ThemeManager:Xl,Themes:rs,Toolbox:jl,ToolboxCategory:Wl,ToolboxItem:ql,ToolboxSeparator:Jl,Tooltip:zl,Touch:Ql,Trashcan:Zl,UnattachedFieldError:ea,VARIABLE_CATEGORY_NAME:ta,VARIABLE_DYNAMIC_CATEGORY_NAME:sa,VERSION:na,VariableMap:oa,VariableModel:ra,Variables:ia,VariablesDynamic:la,VerticalFlyout:Vn,WidgetDiv:aa,Workspace:ca,WorkspaceAudio:ua,WorkspaceDragger:da,WorkspaceSvg:pa,Xml:$a,ZoomControls:_a,blockAnimations:ma,blockRendering:Ta,browserEvents:ha,bubbles:ga,bumpObjects:Ea,clipboard:fa,comments:ba,common:Ia,config:Sa,constants:Oa,defineBlocksWithJsonArray:Ra,dialog:Aa,dragging:ya,fieldRegistry:La,geras:Ca,getMainWorkspace:Mt,getSelected:Na,hasBubble:ka,hideChaff:Ma,icons:xa,inject:Ba,inputs:Pa,isCopyable:Da,isDeletable:wa,isDraggable:va,isIcon:Fa,isObservable:Ua,isPaster:Ha,isRenderedElement:Va,isSelectable:Ga,isSerializable:Ya,isVariableBackedParameterModel:Ka,procedures:Xa,registry:ja,renderManagement:Wa,serialization:Gn,setLocale:qa,setParentContainer:Ja,svgResize:za,thrasos:Qa,uiPosition:Za,utils:J,zelos:ec}=mn,Yn=async()=>{var m,p;const t=ve.getState().isResetCssChecked,s=(m=Qt.getState().iframeRef)==null?void 0:m.current;if(!s)throw new Error(Fe.SELECT_PREVIEW_TAB);const o=(s==null?void 0:s.contentDocument)||((p=s==null?void 0:s.contentWindow)==null?void 0:p.document);if(!o)throw new Error(Fe.FAIL_TO_SAVE);const e=o.documentElement.outerHTML.replace("",""),r=document.createElement("div");t?(r.classList.add("reset-css"),r.innerHTML=e.replace("","} ")):r.innerHTML=e||"",r.style.position="absolute",r.style.top="-9999px",r.style.zIndex="-1",r.style.width="800px",r.style.height="800px",document.body.appendChild(r);const l=await Tn(r,{useCORS:!0,logging:!0,scale:2,width:800});document.body.removeChild(r);const a=await new Promise($=>l.toBlob($,"image/webp"));return new File([a],"thumbnail.webp",{type:"image/webp"})},Fe={SELECT_PREVIEW_TAB:"미리보기 탭을 선택해주세요.",FAIL_TO_SAVE:"저장에 실패했습니다."},Kn=()=>{var u,m;const t=(u=Qt.getState().iframeRef)==null?void 0:u.current,s=be.getState().name;if(!t)throw new Error(Fe.SELECT_PREVIEW_TAB);const o=(t==null?void 0:t.contentDocument)||((m=t==null?void 0:t.contentWindow)==null?void 0:m.document);if(!o)throw new Error(Fe.FAIL_TO_SAVE);const e=o.documentElement.outerHTML,r=new Blob([e],{type:"text/html"}),l=URL.createObjectURL(r),a=document.createElement("a");return a.href=l,a.download=`${s}.html`,a.click(),URL.revokeObjectURL(l),!1};var ce,ue,H,se,ne,Pe,it,zt,Xn=(zt=class extends En{constructor(s,o){super();Te(this,ne);Te(this,ce);Te(this,ue);Te(this,H);Te(this,se);he(this,ce,s),this.setOptions(o),this.bindMethods(),ge(this,ne,Pe).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var e;const o=this.options;this.options=M(this,ce).defaultMutationOptions(s),fn(this.options,o)||M(this,ce).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,H),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&Ct(o.mutationKey)!==Ct(this.options.mutationKey)?this.reset():((e=M(this,H))==null?void 0:e.state.status)==="pending"&&M(this,H).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=M(this,H))==null||s.removeObserver(this)}onMutationUpdate(s){ge(this,ne,Pe).call(this),ge(this,ne,it).call(this,s)}getCurrentResult(){return M(this,ue)}reset(){var s;(s=M(this,H))==null||s.removeObserver(this),he(this,H,void 0),ge(this,ne,Pe).call(this),ge(this,ne,it).call(this)}mutate(s,o){var e;return he(this,se,o),(e=M(this,H))==null||e.removeObserver(this),he(this,H,M(this,ce).getMutationCache().build(M(this,ce),this.options)),M(this,H).addObserver(this),M(this,H).execute(s)}},ce=new WeakMap,ue=new WeakMap,H=new WeakMap,se=new WeakMap,ne=new WeakSet,Pe=function(){var o;const s=((o=M(this,H))==null?void 0:o.state)??bn();he(this,ue,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},it=function(s){ts.batch(()=>{var o,e,r,l,a,u,m,p;if(M(this,se)&&this.hasListeners()){const $=M(this,ue).variables,T=M(this,ue).context;(s==null?void 0:s.type)==="success"?((e=(o=M(this,se)).onSuccess)==null||e.call(o,s.data,$,T),(l=(r=M(this,se)).onSettled)==null||l.call(r,s.data,null,$,T)):(s==null?void 0:s.type)==="error"&&((u=(a=M(this,se)).onError)==null||u.call(a,s.error,$,T),(p=(m=M(this,se)).onSettled)==null||p.call(m,void 0,s.error,$,T))}this.listeners.forEach($=>{$(M(this,ue))})})},zt);function jn(t,s){return typeof t=="function"?t(...s):!!t}function Wn(){}function Se(t,s){const o=Ne(),[e]=A.useState(()=>new Xn(o,t));A.useEffect(()=>{e.setOptions(t)},[e,t]);const r=A.useSyncExternalStore(A.useCallback(a=>e.subscribe(ts.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),l=A.useCallback((a,u)=>{e.mutate(a,u).catch(Wn)},[e]);if(r.error&&jn(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:l,mutateAsync:r.mutate}}function is(t,s){return function(){return t.apply(s,arguments)}}const{toString:qn}=Object.prototype,{getPrototypeOf:ht}=Object,Ye=(t=>s=>{const o=qn.call(s);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Q=t=>(t=t.toLowerCase(),s=>Ye(s)===t),Ke=t=>s=>typeof s===t,{isArray:Oe}=Array,Ce=Ke("undefined");function Jn(t){return t!==null&&!Ce(t)&&t.constructor!==null&&!Ce(t.constructor)&&K(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ls=Q("ArrayBuffer");function zn(t){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(t):s=t&&t.buffer&&ls(t.buffer),s}const Qn=Ke("string"),K=Ke("function"),as=Ke("number"),Xe=t=>t!==null&&typeof t=="object",Zn=t=>t===!0||t===!1,De=t=>{if(Ye(t)!=="object")return!1;const s=ht(t);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},eo=Q("Date"),to=Q("File"),so=Q("Blob"),no=Q("FileList"),oo=t=>Xe(t)&&K(t.pipe),ro=t=>{let s;return t&&(typeof FormData=="function"&&t instanceof FormData||K(t.append)&&((s=Ye(t))==="formdata"||s==="object"&&K(t.toString)&&t.toString()==="[object FormData]"))},io=Q("URLSearchParams"),[lo,ao,co,uo]=["ReadableStream","Request","Response","Headers"].map(Q),po=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ke(t,s,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let e,r;if(typeof t!="object"&&(t=[t]),Oe(t))for(e=0,r=t.length;e0;)if(r=o[e],s===r.toLowerCase())return r;return null}const pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,us=t=>!Ce(t)&&t!==pe;function lt(){const{caseless:t}=us(this)&&this||{},s={},o=(e,r)=>{const l=t&&cs(s,r)||r;De(s[l])&&De(e)?s[l]=lt(s[l],e):De(e)?s[l]=lt({},e):Oe(e)?s[l]=e.slice():s[l]=e};for(let e=0,r=arguments.length;e(ke(s,(r,l)=>{o&&K(r)?t[l]=is(r,o):t[l]=r},{allOwnKeys:e}),t),_o=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),mo=(t,s,o,e)=>{t.prototype=Object.create(s.prototype,e),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:s.prototype}),o&&Object.assign(t.prototype,o)},To=(t,s,o,e)=>{let r,l,a;const u={};if(s=s||{},t==null)return s;do{for(r=Object.getOwnPropertyNames(t),l=r.length;l-- >0;)a=r[l],(!e||e(a,t,s))&&!u[a]&&(s[a]=t[a],u[a]=!0);t=o!==!1&&ht(t)}while(t&&(!o||o(t,s))&&t!==Object.prototype);return s},ho=(t,s,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=s.length;const e=t.indexOf(s,o);return e!==-1&&e===o},go=t=>{if(!t)return null;if(Oe(t))return t;let s=t.length;if(!as(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=t[s];return o},Eo=(t=>s=>t&&s instanceof t)(typeof Uint8Array<"u"&&ht(Uint8Array)),fo=(t,s)=>{const e=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=e.next())&&!r.done;){const l=r.value;s.call(t,l[0],l[1])}},bo=(t,s)=>{let o;const e=[];for(;(o=t.exec(s))!==null;)e.push(o);return e},Io=Q("HTMLFormElement"),So=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,e,r){return e.toUpperCase()+r}),xt=(({hasOwnProperty:t})=>(s,o)=>t.call(s,o))(Object.prototype),Oo=Q("RegExp"),ds=(t,s)=>{const o=Object.getOwnPropertyDescriptors(t),e={};ke(o,(r,l)=>{let a;(a=s(r,l,t))!==!1&&(e[l]=a||r)}),Object.defineProperties(t,e)},Ro=t=>{ds(t,(s,o)=>{if(K(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const e=t[o];if(K(e)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Ao=(t,s)=>{const o={},e=r=>{r.forEach(l=>{o[l]=!0})};return Oe(t)?e(t):e(String(t).split(s)),o},yo=()=>{},Lo=(t,s)=>t!=null&&Number.isFinite(t=+t)?t:s,tt="abcdefghijklmnopqrstuvwxyz",Bt="0123456789",ps={DIGIT:Bt,ALPHA:tt,ALPHA_DIGIT:tt+tt.toUpperCase()+Bt},Co=(t=16,s=ps.ALPHA_DIGIT)=>{let o="";const{length:e}=s;for(;t--;)o+=s[Math.random()*e|0];return o};function No(t){return!!(t&&K(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ko=t=>{const s=new Array(10),o=(e,r)=>{if(Xe(e)){if(s.indexOf(e)>=0)return;if(!("toJSON"in e)){s[r]=e;const l=Oe(e)?[]:{};return ke(e,(a,u)=>{const m=o(a,r+1);!Ce(m)&&(l[u]=m)}),s[r]=void 0,l}}return e};return o(t,0)},Mo=Q("AsyncFunction"),xo=t=>t&&(Xe(t)||K(t))&&K(t.then)&&K(t.catch),$s=((t,s)=>t?setImmediate:s?((o,e)=>(pe.addEventListener("message",({source:r,data:l})=>{r===pe&&l===o&&e.length&&e.shift()()},!1),r=>{e.push(r),pe.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",K(pe.postMessage)),Bo=typeof queueMicrotask<"u"?queueMicrotask.bind(pe):typeof process<"u"&&process.nextTick||$s,_={isArray:Oe,isArrayBuffer:ls,isBuffer:Jn,isFormData:ro,isArrayBufferView:zn,isString:Qn,isNumber:as,isBoolean:Zn,isObject:Xe,isPlainObject:De,isReadableStream:lo,isRequest:ao,isResponse:co,isHeaders:uo,isUndefined:Ce,isDate:eo,isFile:to,isBlob:so,isRegExp:Oo,isFunction:K,isStream:oo,isURLSearchParams:io,isTypedArray:Eo,isFileList:no,forEach:ke,merge:lt,extend:$o,trim:po,stripBOM:_o,inherits:mo,toFlatObject:To,kindOf:Ye,kindOfTest:Q,endsWith:ho,toArray:go,forEachEntry:fo,matchAll:bo,isHTMLForm:Io,hasOwnProperty:xt,hasOwnProp:xt,reduceDescriptors:ds,freezeMethods:Ro,toObjectSet:Ao,toCamelCase:So,noop:yo,toFiniteNumber:Lo,findKey:cs,global:pe,isContextDefined:us,ALPHABET:ps,generateString:Co,isSpecCompliantForm:No,toJSONObject:ko,isAsyncFn:Mo,isThenable:xo,setImmediate:$s,asap:Bo};function y(t,s,o,e,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),e&&(this.request=e),r&&(this.response=r,this.status=r.status?r.status:null)}_.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const _s=y.prototype,ms={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ms[t]={value:t}});Object.defineProperties(y,ms);Object.defineProperty(_s,"isAxiosError",{value:!0});y.from=(t,s,o,e,r,l)=>{const a=Object.create(_s);return _.toFlatObject(t,a,function(m){return m!==Error.prototype},u=>u!=="isAxiosError"),y.call(a,t.message,s,o,e,r),a.cause=t,a.name=t.name,l&&Object.assign(a,l),a};const Po=null;function at(t){return _.isPlainObject(t)||_.isArray(t)}function Ts(t){return _.endsWith(t,"[]")?t.slice(0,-2):t}function Pt(t,s,o){return t?t.concat(s).map(function(r,l){return r=Ts(r),!o&&l?"["+r+"]":r}).join(o?".":""):s}function Do(t){return _.isArray(t)&&!t.some(at)}const wo=_.toFlatObject(_,{},null,function(s){return/^is[A-Z]/.test(s)});function je(t,s,o){if(!_.isObject(t))throw new TypeError("target must be an object");s=s||new FormData,o=_.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,E){return!_.isUndefined(E[I])});const e=o.metaTokens,r=o.visitor||$,l=o.dots,a=o.indexes,m=(o.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(s);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!m&&_.isBlob(g))throw new y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?m&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function $(g,I,E){let L=g;if(g&&!E&&typeof g=="object"){if(_.endsWith(I,"{}"))I=e?I:I.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&Do(g)||(_.isFileList(g)||_.endsWith(I,"[]"))&&(L=_.toArray(g)))return I=Ts(I),L.forEach(function(k,v){!(_.isUndefined(k)||k===null)&&s.append(a===!0?Pt([I],v,l):a===null?I:I+"[]",p(k))}),!1}return at(g)?!0:(s.append(Pt(E,I,l),p(g)),!1)}const T=[],b=Object.assign(wo,{defaultVisitor:$,convertValue:p,isVisitable:at});function O(g,I){if(!_.isUndefined(g)){if(T.indexOf(g)!==-1)throw Error("Circular reference detected in "+I.join("."));T.push(g),_.forEach(g,function(L,R){(!(_.isUndefined(L)||L===null)&&r.call(s,L,_.isString(R)?R.trim():R,I,b))===!0&&O(L,I?I.concat(R):[R])}),T.pop()}}if(!_.isObject(t))throw new TypeError("data must be an object");return O(t),s}function Dt(t){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return s[e]})}function gt(t,s){this._pairs=[],t&&je(t,this,s)}const hs=gt.prototype;hs.append=function(s,o){this._pairs.push([s,o])};hs.toString=function(s){const o=s?function(e){return s.call(this,e,Dt)}:Dt;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function vo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gs(t,s,o){if(!s)return t;const e=o&&o.encode||vo,r=o&&o.serialize;let l;if(r?l=r(s,o):l=_.isURLSearchParams(s)?s.toString():new gt(s,o).toString(e),l){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class wt{constructor(){this.handlers=[]}use(s,o,e){return this.handlers.push({fulfilled:s,rejected:o,synchronous:e?e.synchronous:!1,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){_.forEach(this.handlers,function(e){e!==null&&s(e)})}}const Es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fo=typeof URLSearchParams<"u"?URLSearchParams:gt,Uo=typeof FormData<"u"?FormData:null,Ho=typeof Blob<"u"?Blob:null,Vo={isBrowser:!0,classes:{URLSearchParams:Fo,FormData:Uo,Blob:Ho},protocols:["http","https","file","blob","url","data"]},Et=typeof window<"u"&&typeof document<"u",ct=typeof navigator=="object"&&navigator||void 0,Go=Et&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),Yo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ko=Et&&window.location.href||"http://localhost",Xo=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Et,hasStandardBrowserEnv:Go,hasStandardBrowserWebWorkerEnv:Yo,navigator:ct,origin:Ko},Symbol.toStringTag,{value:"Module"})),V={...Xo,...Vo};function jo(t,s){return je(t,new V.classes.URLSearchParams,Object.assign({visitor:function(o,e,r,l){return V.isNode&&_.isBuffer(o)?(this.append(e,o.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},s))}function Wo(t){return _.matchAll(/\w+|\[(\w*)]/g,t).map(s=>s[0]==="[]"?"":s[1]||s[0])}function qo(t){const s={},o=Object.keys(t);let e;const r=o.length;let l;for(e=0;e=o.length;return a=!a&&_.isArray(r)?r.length:a,m?(_.hasOwnProp(r,a)?r[a]=[r[a],e]:r[a]=e,!u):((!r[a]||!_.isObject(r[a]))&&(r[a]=[]),s(o,e,r[a],l)&&_.isArray(r[a])&&(r[a]=qo(r[a])),!u)}if(_.isFormData(t)&&_.isFunction(t.entries)){const o={};return _.forEachEntry(t,(e,r)=>{s(Wo(e),r,o,0)}),o}return null}function Jo(t,s,o){if(_.isString(t))try{return(s||JSON.parse)(t),_.trim(t)}catch(e){if(e.name!=="SyntaxError")throw e}return(0,JSON.stringify)(t)}const Me={transitional:Es,adapter:["xhr","http","fetch"],transformRequest:[function(s,o){const e=o.getContentType()||"",r=e.indexOf("application/json")>-1,l=_.isObject(s);if(l&&_.isHTMLForm(s)&&(s=new FormData(s)),_.isFormData(s))return r?JSON.stringify(fs(s)):s;if(_.isArrayBuffer(s)||_.isBuffer(s)||_.isStream(s)||_.isFile(s)||_.isBlob(s)||_.isReadableStream(s))return s;if(_.isArrayBufferView(s))return s.buffer;if(_.isURLSearchParams(s))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let u;if(l){if(e.indexOf("application/x-www-form-urlencoded")>-1)return jo(s,this.formSerializer).toString();if((u=_.isFileList(s))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return je(u?{"files[]":s}:s,m&&new m,this.formSerializer)}}return l||r?(o.setContentType("application/json",!1),Jo(s)):s}],transformResponse:[function(s){const o=this.transitional||Me.transitional,e=o&&o.forcedJSONParsing,r=this.responseType==="json";if(_.isResponse(s)||_.isReadableStream(s))return s;if(s&&_.isString(s)&&(e&&!this.responseType||r)){const a=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(s)}catch(u){if(a)throw u.name==="SyntaxError"?y.from(u,y.ERR_BAD_RESPONSE,this,null,this.response):u}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],t=>{Me.headers[t]={}});const zo=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qo=t=>{const s={};let o,e,r;return t&&t.split(` -`).forEach(function(a){r=a.indexOf(":"),o=a.substring(0,r).trim().toLowerCase(),e=a.substring(r+1).trim(),!(!o||s[o]&&zo[o])&&(o==="set-cookie"?s[o]?s[o].push(e):s[o]=[e]:s[o]=s[o]?s[o]+", "+e:e)}),s},vt=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function we(t){return t===!1||t==null?t:_.isArray(t)?t.map(we):String(t)}function Zo(t){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let e;for(;e=o.exec(t);)s[e[1]]=e[2];return s}const er=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function st(t,s,o,e,r){if(_.isFunction(e))return e.call(this,s,o);if(r&&(s=o),!!_.isString(s)){if(_.isString(e))return s.indexOf(e)!==-1;if(_.isRegExp(e))return e.test(s)}}function tr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,e)=>o.toUpperCase()+e)}function sr(t,s){const o=_.toCamelCase(" "+s);["get","set","has"].forEach(e=>{Object.defineProperty(t,e+o,{value:function(r,l,a){return this[e].call(this,s,r,l,a)},configurable:!0})})}class G{constructor(s){s&&this.set(s)}set(s,o,e){const r=this;function l(u,m,p){const $=ye(m);if(!$)throw new Error("header name must be a non-empty string");const T=_.findKey(r,$);(!T||r[T]===void 0||p===!0||p===void 0&&r[T]!==!1)&&(r[T||m]=we(u))}const a=(u,m)=>_.forEach(u,(p,$)=>l(p,$,m));if(_.isPlainObject(s)||s instanceof this.constructor)a(s,o);else if(_.isString(s)&&(s=s.trim())&&!er(s))a(Qo(s),o);else if(_.isHeaders(s))for(const[u,m]of s.entries())l(m,u,e);else s!=null&&l(o,s,e);return this}get(s,o){if(s=ye(s),s){const e=_.findKey(this,s);if(e){const r=this[e];if(!o)return r;if(o===!0)return Zo(r);if(_.isFunction(o))return o.call(this,r,e);if(_.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=ye(s),s){const e=_.findKey(this,s);return!!(e&&this[e]!==void 0&&(!o||st(this,this[e],e,o)))}return!1}delete(s,o){const e=this;let r=!1;function l(a){if(a=ye(a),a){const u=_.findKey(e,a);u&&(!o||st(e,e[u],u,o))&&(delete e[u],r=!0)}}return _.isArray(s)?s.forEach(l):l(s),r}clear(s){const o=Object.keys(this);let e=o.length,r=!1;for(;e--;){const l=o[e];(!s||st(this,this[l],l,s,!0))&&(delete this[l],r=!0)}return r}normalize(s){const o=this,e={};return _.forEach(this,(r,l)=>{const a=_.findKey(e,l);if(a){o[a]=we(r),delete o[l];return}const u=s?tr(l):String(l).trim();u!==l&&delete o[l],o[u]=we(r),e[u]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return _.forEach(this,(e,r)=>{e!=null&&e!==!1&&(o[r]=s&&_.isArray(e)?e.join(", "):e)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const e=new this(s);return o.forEach(r=>e.set(r)),e}static accessor(s){const e=(this[vt]=this[vt]={accessors:{}}).accessors,r=this.prototype;function l(a){const u=ye(a);e[u]||(sr(r,a),e[u]=!0)}return _.isArray(s)?s.forEach(l):l(s),this}}G.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(G.prototype,({value:t},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>t,set(e){this[o]=e}}});_.freezeMethods(G);function nt(t,s){const o=this||Me,e=s||o,r=G.from(e.headers);let l=e.data;return _.forEach(t,function(u){l=u.call(o,l,r.normalize(),s?s.status:void 0)}),r.normalize(),l}function bs(t){return!!(t&&t.__CANCEL__)}function Re(t,s,o){y.call(this,t??"canceled",y.ERR_CANCELED,s,o),this.name="CanceledError"}_.inherits(Re,y,{__CANCEL__:!0});function Is(t,s,o){const e=o.config.validateStatus;!o.status||!e||e(o.status)?t(o):s(new y("Request failed with status code "+o.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function nr(t){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return s&&s[1]||""}function or(t,s){t=t||10;const o=new Array(t),e=new Array(t);let r=0,l=0,a;return s=s!==void 0?s:1e3,function(m){const p=Date.now(),$=e[l];a||(a=p),o[r]=m,e[r]=p;let T=l,b=0;for(;T!==r;)b+=o[T++],T=T%t;if(r=(r+1)%t,r===l&&(l=(l+1)%t),p-a{o=$,r=null,l&&(clearTimeout(l),l=null),t.apply(null,p)};return[(...p)=>{const $=Date.now(),T=$-o;T>=e?a(p,$):(r=p,l||(l=setTimeout(()=>{l=null,a(r)},e-T)))},()=>r&&a(r)]}const Ue=(t,s,o=3)=>{let e=0;const r=or(50,250);return rr(l=>{const a=l.loaded,u=l.lengthComputable?l.total:void 0,m=a-e,p=r(m),$=a<=u;e=a;const T={loaded:a,total:u,progress:u?a/u:void 0,bytes:m,rate:p||void 0,estimated:p&&u&&$?(u-a)/p:void 0,event:l,lengthComputable:u!=null,[s?"download":"upload"]:!0};t(T)},o)},Ft=(t,s)=>{const o=t!=null;return[e=>s[0]({lengthComputable:o,total:t,loaded:e}),s[1]]},Ut=t=>(...s)=>_.asap(()=>t(...s)),ir=V.hasStandardBrowserEnv?function(){const s=V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent),o=document.createElement("a");let e;function r(l){let a=l;return s&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return e=r(window.location.href),function(a){const u=_.isString(a)?r(a):a;return u.protocol===e.protocol&&u.host===e.host}}():function(){return function(){return!0}}(),lr=V.hasStandardBrowserEnv?{write(t,s,o,e,r,l){const a=[t+"="+encodeURIComponent(s)];_.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),_.isString(e)&&a.push("path="+e),_.isString(r)&&a.push("domain="+r),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const s=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ar(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cr(t,s){return s?t.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):t}function Ss(t,s){return t&&!ar(s)?cr(t,s):s}const Ht=t=>t instanceof G?{...t}:t;function me(t,s){s=s||{};const o={};function e(p,$,T){return _.isPlainObject(p)&&_.isPlainObject($)?_.merge.call({caseless:T},p,$):_.isPlainObject($)?_.merge({},$):_.isArray($)?$.slice():$}function r(p,$,T){if(_.isUndefined($)){if(!_.isUndefined(p))return e(void 0,p,T)}else return e(p,$,T)}function l(p,$){if(!_.isUndefined($))return e(void 0,$)}function a(p,$){if(_.isUndefined($)){if(!_.isUndefined(p))return e(void 0,p)}else return e(void 0,$)}function u(p,$,T){if(T in s)return e(p,$);if(T in t)return e(void 0,p)}const m={url:l,method:l,data:l,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(p,$)=>r(Ht(p),Ht($),!0)};return _.forEach(Object.keys(Object.assign({},t,s)),function($){const T=m[$]||r,b=T(t[$],s[$],$);_.isUndefined(b)&&T!==u||(o[$]=b)}),o}const Os=t=>{const s=me({},t);let{data:o,withXSRFToken:e,xsrfHeaderName:r,xsrfCookieName:l,headers:a,auth:u}=s;s.headers=a=G.from(a),s.url=gs(Ss(s.baseURL,s.url),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let m;if(_.isFormData(o)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((m=a.getContentType())!==!1){const[p,...$]=m?m.split(";").map(T=>T.trim()).filter(Boolean):[];a.setContentType([p||"multipart/form-data",...$].join("; "))}}if(V.hasStandardBrowserEnv&&(e&&_.isFunction(e)&&(e=e(s)),e||e!==!1&&ir(s.url))){const p=r&&l&&lr.read(l);p&&a.set(r,p)}return s},ur=typeof XMLHttpRequest<"u",dr=ur&&function(t){return new Promise(function(o,e){const r=Os(t);let l=r.data;const a=G.from(r.headers).normalize();let{responseType:u,onUploadProgress:m,onDownloadProgress:p}=r,$,T,b,O,g;function I(){O&&O(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe($),r.signal&&r.signal.removeEventListener("abort",$)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function L(){if(!E)return;const k=G.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),C={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:k,config:t,request:E};Is(function(Z){o(Z),I()},function(Z){e(Z),I()},C),E=null}"onloadend"in E?E.onloadend=L:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(L)},E.onabort=function(){E&&(e(new y("Request aborted",y.ECONNABORTED,t,E)),E=null)},E.onerror=function(){e(new y("Network Error",y.ERR_NETWORK,t,E)),E=null},E.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||Es;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),e(new y(v,C.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,t,E)),E=null},l===void 0&&a.setContentType(null),"setRequestHeader"in E&&_.forEach(a.toJSON(),function(v,C){E.setRequestHeader(C,v)}),_.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),u&&u!=="json"&&(E.responseType=r.responseType),p&&([b,g]=Ue(p,!0),E.addEventListener("progress",b)),m&&E.upload&&([T,O]=Ue(m),E.upload.addEventListener("progress",T),E.upload.addEventListener("loadend",O)),(r.cancelToken||r.signal)&&($=k=>{E&&(e(!k||k.type?new Re(null,t,E):k),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe($),r.signal&&(r.signal.aborted?$():r.signal.addEventListener("abort",$)));const R=nr(r.url);if(R&&V.protocols.indexOf(R)===-1){e(new y("Unsupported protocol "+R+":",y.ERR_BAD_REQUEST,t));return}E.send(l||null)})},pr=(t,s)=>{const{length:o}=t=t?t.filter(Boolean):[];if(s||o){let e=new AbortController,r;const l=function(p){if(!r){r=!0,u();const $=p instanceof Error?p:this.reason;e.abort($ instanceof y?$:new Re($ instanceof Error?$.message:$))}};let a=s&&setTimeout(()=>{a=null,l(new y(`timeout ${s} of ms exceeded`,y.ETIMEDOUT))},s);const u=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),t=null)};t.forEach(p=>p.addEventListener("abort",l));const{signal:m}=e;return m.unsubscribe=()=>_.asap(u),m}},$r=function*(t,s){let o=t.byteLength;if(o{const r=_r(t,s);let l=0,a,u=m=>{a||(a=!0,e&&e(m))};return new ReadableStream({async pull(m){try{const{done:p,value:$}=await r.next();if(p){u(),m.close();return}let T=$.byteLength;if(o){let b=l+=T;o(b)}m.enqueue(new Uint8Array($))}catch(p){throw u(p),p}},cancel(m){return u(m),r.return()}},{highWaterMark:2})},We=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rs=We&&typeof ReadableStream=="function",Tr=We&&(typeof TextEncoder=="function"?(t=>s=>t.encode(s))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),As=(t,...s)=>{try{return!!t(...s)}catch{return!1}},hr=Rs&&As(()=>{let t=!1;const s=new Request(V.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!s}),Gt=64*1024,ut=Rs&&As(()=>_.isReadableStream(new Response("").body)),He={stream:ut&&(t=>t.body)};We&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!He[s]&&(He[s]=_.isFunction(t[s])?o=>o[s]():(o,e)=>{throw new y(`Response type '${s}' is not supported`,y.ERR_NOT_SUPPORT,e)})})})(new Response);const gr=async t=>{if(t==null)return 0;if(_.isBlob(t))return t.size;if(_.isSpecCompliantForm(t))return(await new Request(V.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(_.isArrayBufferView(t)||_.isArrayBuffer(t))return t.byteLength;if(_.isURLSearchParams(t)&&(t=t+""),_.isString(t))return(await Tr(t)).byteLength},Er=async(t,s)=>{const o=_.toFiniteNumber(t.getContentLength());return o??gr(s)},fr=We&&(async t=>{let{url:s,method:o,data:e,signal:r,cancelToken:l,timeout:a,onDownloadProgress:u,onUploadProgress:m,responseType:p,headers:$,withCredentials:T="same-origin",fetchOptions:b}=Os(t);p=p?(p+"").toLowerCase():"text";let O=pr([r,l&&l.toAbortSignal()],a),g;const I=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let E;try{if(m&&hr&&o!=="get"&&o!=="head"&&(E=await Er($,e))!==0){let C=new Request(s,{method:"POST",body:e,duplex:"half"}),P;if(_.isFormData(e)&&(P=C.headers.get("content-type"))&&$.setContentType(P),C.body){const[Z,oe]=Ft(E,Ue(Ut(m)));e=Vt(C.body,Gt,Z,oe)}}_.isString(T)||(T=T?"include":"omit");const L="credentials"in Request.prototype;g=new Request(s,{...b,signal:O,method:o.toUpperCase(),headers:$.normalize().toJSON(),body:e,duplex:"half",credentials:L?T:void 0});let R=await fetch(g);const k=ut&&(p==="stream"||p==="response");if(ut&&(u||k&&I)){const C={};["status","statusText","headers"].forEach(de=>{C[de]=R[de]});const P=_.toFiniteNumber(R.headers.get("content-length")),[Z,oe]=u&&Ft(P,Ue(Ut(u),!0))||[];R=new Response(Vt(R.body,Gt,Z,()=>{oe&&oe(),I&&I()}),C)}p=p||"text";let v=await He[_.findKey(He,p)||"text"](R,t);return!k&&I&&I(),await new Promise((C,P)=>{Is(C,P,{data:v,headers:G.from(R.headers),status:R.status,statusText:R.statusText,config:t,request:g})})}catch(L){throw I&&I(),L&&L.name==="TypeError"&&/fetch/i.test(L.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,t,g),{cause:L.cause||L}):y.from(L,L&&L.code,t,g)}}),dt={http:Po,xhr:dr,fetch:fr};_.forEach(dt,(t,s)=>{if(t){try{Object.defineProperty(t,"name",{value:s})}catch{}Object.defineProperty(t,"adapterName",{value:s})}});const Yt=t=>`- ${t}`,br=t=>_.isFunction(t)||t===null||t===!1,ys={getAdapter:t=>{t=_.isArray(t)?t:[t];const{length:s}=t;let o,e;const r={};for(let l=0;l`adapter ${u} `+(m===!1?"is not supported by the environment":"is not available in the build"));let a=s?l.length>1?`since : +var pn=Object.defineProperty;var yt=t=>{throw TypeError(t)};var $n=(t,s,o)=>s in t?pn(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o;var q=(t,s,o)=>$n(t,typeof s!="symbol"?s+"":s,o),Qe=(t,s,o)=>s.has(t)||yt("Cannot "+o);var M=(t,s,o)=>(Qe(t,s,"read from private field"),o?o.call(t):s.get(t)),Te=(t,s,o)=>s.has(t)?yt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,o),he=(t,s,o,e)=>(Qe(t,s,"write to private field"),e?e.call(t,o):s.set(t,o),o),ge=(t,s,o)=>(Qe(t,s,"access private method"),o);import{j as f}from"./jsx-runtime-DR9Q75dM.js";import{r as A,c as _n,g as $i}from"./index-DRjF_FHU.js";import{B as mn,i as ve,j as Qt,m as Tn,g as be,f as _t,a as $e,k as S,l as hn,n as gn,b as Zt,u as Ee,h as Le,c as Lt,o as es}from"./html2canvas.esm-BTtajP0W.js";import{S as En,w as fn,q as Ct,A as bn,b as ts,z as Ne}from"./QueryClientProvider-BdRu95_o.js";import{_ as x}from"./index-D1AAVYfs.js";import{S as In,I as Sn}from"./ImageTagModalListItem-D30WR0c8.js";import{C as mt,S as On}from"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import{r as Rn}from"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import{S as Ve}from"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import{u as An,b as Tt}from"./index-x70cJmE6.js";import{S as yn,C as ss}from"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import{c as Ln}from"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const Cn=t=>A.createElement("svg",{width:94,height:89,viewBox:"0 0 94 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M15.666 44.4731H78.3327",stroke:"#00D78B",strokeWidth:8,strokeLinecap:"round",strokeLinejoin:"round"}),A.createElement("path",{d:"M47 14.8311L47 74.1147",stroke:"#00D78B",strokeWidth:8,strokeLinecap:"round",strokeLinejoin:"round"})),U=[];for(let t=0;t<256;++t)U.push((t+256).toString(16).slice(1));function Nn(t,s=0){return(U[t[s+0]]+U[t[s+1]]+U[t[s+2]]+U[t[s+3]]+"-"+U[t[s+4]]+U[t[s+5]]+"-"+U[t[s+6]]+U[t[s+7]]+"-"+U[t[s+8]]+U[t[s+9]]+"-"+U[t[s+10]]+U[t[s+11]]+U[t[s+12]]+U[t[s+13]]+U[t[s+14]]+U[t[s+15]]).toLowerCase()}let Ze;const kn=new Uint8Array(16);function Mn(){if(!Ze){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ze=crypto.getRandomValues.bind(crypto)}return Ze(kn)}const xn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Nt={randomUUID:xn};function Bn(t,s,o){if(Nt.randomUUID&&!s&&!t)return Nt.randomUUID();t=t||{};const e=t.random||(t.rng||Mn)();return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Nn(e)}const Ie=()=>localStorage.getItem("userId"),Ge=()=>{const t=Bn();return localStorage.setItem("userId",t),t},Pn=t=>{const s=new Date(t),o=new Date,e=new Intl.RelativeTimeFormat("ko",{numeric:"auto"}),r=Math.floor((s.getTime()-o.getTime())/(1e3*60)),l=Math.floor(r/60);return r>-60?e.format(r,"minute"):l>-24?e.format(l,"hour"):new Intl.DateTimeFormat("ko",{year:"numeric",month:"2-digit",day:"2-digit"}).format(s)},ns=(t,s)=>{let o;return(...e)=>{let r;return o&&clearTimeout(o),o=setTimeout(()=>{r=t(...e)},s),r}},{ASTNode:Di,BasicCursor:wi,Block:vi,BlockSvg:Fi,Blocks:kt,COLLAPSED_FIELD_NAME:Ui,COLLAPSED_INPUT_NAME:Hi,COLLAPSE_CHARS:Vi,CodeGenerator:Gi,CollapsibleToolboxCategory:Yi,ComponentManager:Ki,Connection:Xi,ConnectionChecker:ji,ConnectionDB:Wi,ConnectionType:qi,ContextMenu:Ji,ContextMenuItems:zi,ContextMenuRegistry:et,Css:Qi,Cursor:Zi,DELETE_VARIABLE_ID:el,DeleteArea:tl,DragTarget:sl,DropDownDiv:nl,Events:ol,Extensions:rl,Field:Dn,FieldCheckbox:il,FieldDropdown:ll,FieldImage:al,FieldLabel:os,FieldLabelSerializable:wn,FieldNumber:cl,FieldTextInput:vn,FieldVariable:ul,Flyout:dl,FlyoutButton:pl,FlyoutMetricsManager:$l,Generator:Fn,Gesture:_l,Grid:ml,HorizontalFlyout:Tl,INPUT_VALUE:hl,Input:gl,InsertionMarkerManager:El,InsertionMarkerPreviewer:fl,Marker:bl,MarkerManager:Il,Menu:Sl,MenuItem:Ol,MetricsManager:Rl,Msg:Al,NEXT_STATEMENT:yl,Names:Ll,OPPOSITE_TYPE:Cl,OUTPUT_VALUE:Nl,Options:kl,PREVIOUS_STATEMENT:Ml,PROCEDURE_CATEGORY_NAME:xl,Procedures:Bl,RENAME_VARIABLE_ID:Pl,RenderedConnection:Dl,Scrollbar:wl,ScrollbarPair:vl,ShortcutItems:Fl,ShortcutRegistry:Ul,TOOLBOX_AT_BOTTOM:Hl,TOOLBOX_AT_LEFT:Vl,TOOLBOX_AT_RIGHT:Gl,TOOLBOX_AT_TOP:Yl,TabNavigateCursor:Kl,Theme:Un,ThemeManager:Xl,Themes:rs,Toolbox:jl,ToolboxCategory:Wl,ToolboxItem:ql,ToolboxSeparator:Jl,Tooltip:zl,Touch:Ql,Trashcan:Zl,UnattachedFieldError:ea,VARIABLE_CATEGORY_NAME:ta,VARIABLE_DYNAMIC_CATEGORY_NAME:sa,VERSION:na,VariableMap:oa,VariableModel:ra,Variables:ia,VariablesDynamic:la,VerticalFlyout:Hn,WidgetDiv:aa,Workspace:ca,WorkspaceAudio:ua,WorkspaceDragger:da,WorkspaceSvg:pa,Xml:$a,ZoomControls:_a,blockAnimations:ma,blockRendering:Ta,browserEvents:ha,bubbles:ga,bumpObjects:Ea,clipboard:fa,comments:ba,common:Ia,config:Sa,constants:Oa,defineBlocksWithJsonArray:Ra,dialog:Aa,dragging:ya,fieldRegistry:La,geras:Ca,getMainWorkspace:Mt,getSelected:Na,hasBubble:ka,hideChaff:Ma,icons:xa,inject:Ba,inputs:Pa,isCopyable:Da,isDeletable:wa,isDraggable:va,isIcon:Fa,isObservable:Ua,isPaster:Ha,isRenderedElement:Va,isSelectable:Ga,isSerializable:Ya,isVariableBackedParameterModel:Ka,procedures:Xa,registry:ja,renderManagement:Wa,serialization:Vn,setLocale:qa,setParentContainer:Ja,svgResize:za,thrasos:Qa,uiPosition:Za,utils:J,zelos:ec}=mn,Gn=async()=>{var m,p;const t=ve.getState().isResetCssChecked,s=(m=Qt.getState().iframeRef)==null?void 0:m.current;if(!s)throw new Error(Fe.SELECT_PREVIEW_TAB);const o=(s==null?void 0:s.contentDocument)||((p=s==null?void 0:s.contentWindow)==null?void 0:p.document);if(!o)throw new Error(Fe.FAIL_TO_SAVE);const e=o.documentElement.outerHTML.replace("",""),r=document.createElement("div");t?(r.classList.add("reset-css"),r.innerHTML=e.replace("","} ")):r.innerHTML=e||"",r.style.position="absolute",r.style.top="-9999px",r.style.zIndex="-1",r.style.width="800px",r.style.height="800px",document.body.appendChild(r);const l=await Tn(r,{useCORS:!0,logging:!0,scale:2,width:800});document.body.removeChild(r);const a=await new Promise($=>l.toBlob($,"image/webp"));return new File([a],"thumbnail.webp",{type:"image/webp"})},Fe={SELECT_PREVIEW_TAB:"미리보기 탭을 선택해주세요.",FAIL_TO_SAVE:"저장에 실패했습니다."},Yn=()=>{var u,m;const t=(u=Qt.getState().iframeRef)==null?void 0:u.current,s=be.getState().name;if(!t)throw new Error(Fe.SELECT_PREVIEW_TAB);const o=(t==null?void 0:t.contentDocument)||((m=t==null?void 0:t.contentWindow)==null?void 0:m.document);if(!o)throw new Error(Fe.FAIL_TO_SAVE);const e=o.documentElement.outerHTML,r=new Blob([e],{type:"text/html"}),l=URL.createObjectURL(r),a=document.createElement("a");return a.href=l,a.download=`${s}.html`,a.click(),URL.revokeObjectURL(l),!1};var ce,ue,H,se,ne,Pe,it,zt,Kn=(zt=class extends En{constructor(s,o){super();Te(this,ne);Te(this,ce);Te(this,ue);Te(this,H);Te(this,se);he(this,ce,s),this.setOptions(o),this.bindMethods(),ge(this,ne,Pe).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var e;const o=this.options;this.options=M(this,ce).defaultMutationOptions(s),fn(this.options,o)||M(this,ce).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,H),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&Ct(o.mutationKey)!==Ct(this.options.mutationKey)?this.reset():((e=M(this,H))==null?void 0:e.state.status)==="pending"&&M(this,H).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=M(this,H))==null||s.removeObserver(this)}onMutationUpdate(s){ge(this,ne,Pe).call(this),ge(this,ne,it).call(this,s)}getCurrentResult(){return M(this,ue)}reset(){var s;(s=M(this,H))==null||s.removeObserver(this),he(this,H,void 0),ge(this,ne,Pe).call(this),ge(this,ne,it).call(this)}mutate(s,o){var e;return he(this,se,o),(e=M(this,H))==null||e.removeObserver(this),he(this,H,M(this,ce).getMutationCache().build(M(this,ce),this.options)),M(this,H).addObserver(this),M(this,H).execute(s)}},ce=new WeakMap,ue=new WeakMap,H=new WeakMap,se=new WeakMap,ne=new WeakSet,Pe=function(){var o;const s=((o=M(this,H))==null?void 0:o.state)??bn();he(this,ue,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},it=function(s){ts.batch(()=>{var o,e,r,l,a,u,m,p;if(M(this,se)&&this.hasListeners()){const $=M(this,ue).variables,T=M(this,ue).context;(s==null?void 0:s.type)==="success"?((e=(o=M(this,se)).onSuccess)==null||e.call(o,s.data,$,T),(l=(r=M(this,se)).onSettled)==null||l.call(r,s.data,null,$,T)):(s==null?void 0:s.type)==="error"&&((u=(a=M(this,se)).onError)==null||u.call(a,s.error,$,T),(p=(m=M(this,se)).onSettled)==null||p.call(m,void 0,s.error,$,T))}this.listeners.forEach($=>{$(M(this,ue))})})},zt);function Xn(t,s){return typeof t=="function"?t(...s):!!t}function jn(){}function Se(t,s){const o=Ne(),[e]=A.useState(()=>new Kn(o,t));A.useEffect(()=>{e.setOptions(t)},[e,t]);const r=A.useSyncExternalStore(A.useCallback(a=>e.subscribe(ts.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),l=A.useCallback((a,u)=>{e.mutate(a,u).catch(jn)},[e]);if(r.error&&Xn(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:l,mutateAsync:r.mutate}}function is(t,s){return function(){return t.apply(s,arguments)}}const{toString:Wn}=Object.prototype,{getPrototypeOf:ht}=Object,Ye=(t=>s=>{const o=Wn.call(s);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Q=t=>(t=t.toLowerCase(),s=>Ye(s)===t),Ke=t=>s=>typeof s===t,{isArray:Oe}=Array,Ce=Ke("undefined");function qn(t){return t!==null&&!Ce(t)&&t.constructor!==null&&!Ce(t.constructor)&&K(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ls=Q("ArrayBuffer");function Jn(t){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(t):s=t&&t.buffer&&ls(t.buffer),s}const zn=Ke("string"),K=Ke("function"),as=Ke("number"),Xe=t=>t!==null&&typeof t=="object",Qn=t=>t===!0||t===!1,De=t=>{if(Ye(t)!=="object")return!1;const s=ht(t);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Zn=Q("Date"),eo=Q("File"),to=Q("Blob"),so=Q("FileList"),no=t=>Xe(t)&&K(t.pipe),oo=t=>{let s;return t&&(typeof FormData=="function"&&t instanceof FormData||K(t.append)&&((s=Ye(t))==="formdata"||s==="object"&&K(t.toString)&&t.toString()==="[object FormData]"))},ro=Q("URLSearchParams"),[io,lo,ao,co]=["ReadableStream","Request","Response","Headers"].map(Q),uo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ke(t,s,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let e,r;if(typeof t!="object"&&(t=[t]),Oe(t))for(e=0,r=t.length;e0;)if(r=o[e],s===r.toLowerCase())return r;return null}const pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,us=t=>!Ce(t)&&t!==pe;function lt(){const{caseless:t}=us(this)&&this||{},s={},o=(e,r)=>{const l=t&&cs(s,r)||r;De(s[l])&&De(e)?s[l]=lt(s[l],e):De(e)?s[l]=lt({},e):Oe(e)?s[l]=e.slice():s[l]=e};for(let e=0,r=arguments.length;e(ke(s,(r,l)=>{o&&K(r)?t[l]=is(r,o):t[l]=r},{allOwnKeys:e}),t),$o=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),_o=(t,s,o,e)=>{t.prototype=Object.create(s.prototype,e),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:s.prototype}),o&&Object.assign(t.prototype,o)},mo=(t,s,o,e)=>{let r,l,a;const u={};if(s=s||{},t==null)return s;do{for(r=Object.getOwnPropertyNames(t),l=r.length;l-- >0;)a=r[l],(!e||e(a,t,s))&&!u[a]&&(s[a]=t[a],u[a]=!0);t=o!==!1&&ht(t)}while(t&&(!o||o(t,s))&&t!==Object.prototype);return s},To=(t,s,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=s.length;const e=t.indexOf(s,o);return e!==-1&&e===o},ho=t=>{if(!t)return null;if(Oe(t))return t;let s=t.length;if(!as(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=t[s];return o},go=(t=>s=>t&&s instanceof t)(typeof Uint8Array<"u"&&ht(Uint8Array)),Eo=(t,s)=>{const e=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=e.next())&&!r.done;){const l=r.value;s.call(t,l[0],l[1])}},fo=(t,s)=>{let o;const e=[];for(;(o=t.exec(s))!==null;)e.push(o);return e},bo=Q("HTMLFormElement"),Io=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,e,r){return e.toUpperCase()+r}),xt=(({hasOwnProperty:t})=>(s,o)=>t.call(s,o))(Object.prototype),So=Q("RegExp"),ds=(t,s)=>{const o=Object.getOwnPropertyDescriptors(t),e={};ke(o,(r,l)=>{let a;(a=s(r,l,t))!==!1&&(e[l]=a||r)}),Object.defineProperties(t,e)},Oo=t=>{ds(t,(s,o)=>{if(K(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const e=t[o];if(K(e)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Ro=(t,s)=>{const o={},e=r=>{r.forEach(l=>{o[l]=!0})};return Oe(t)?e(t):e(String(t).split(s)),o},Ao=()=>{},yo=(t,s)=>t!=null&&Number.isFinite(t=+t)?t:s,tt="abcdefghijklmnopqrstuvwxyz",Bt="0123456789",ps={DIGIT:Bt,ALPHA:tt,ALPHA_DIGIT:tt+tt.toUpperCase()+Bt},Lo=(t=16,s=ps.ALPHA_DIGIT)=>{let o="";const{length:e}=s;for(;t--;)o+=s[Math.random()*e|0];return o};function Co(t){return!!(t&&K(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const No=t=>{const s=new Array(10),o=(e,r)=>{if(Xe(e)){if(s.indexOf(e)>=0)return;if(!("toJSON"in e)){s[r]=e;const l=Oe(e)?[]:{};return ke(e,(a,u)=>{const m=o(a,r+1);!Ce(m)&&(l[u]=m)}),s[r]=void 0,l}}return e};return o(t,0)},ko=Q("AsyncFunction"),Mo=t=>t&&(Xe(t)||K(t))&&K(t.then)&&K(t.catch),$s=((t,s)=>t?setImmediate:s?((o,e)=>(pe.addEventListener("message",({source:r,data:l})=>{r===pe&&l===o&&e.length&&e.shift()()},!1),r=>{e.push(r),pe.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",K(pe.postMessage)),xo=typeof queueMicrotask<"u"?queueMicrotask.bind(pe):typeof process<"u"&&process.nextTick||$s,_={isArray:Oe,isArrayBuffer:ls,isBuffer:qn,isFormData:oo,isArrayBufferView:Jn,isString:zn,isNumber:as,isBoolean:Qn,isObject:Xe,isPlainObject:De,isReadableStream:io,isRequest:lo,isResponse:ao,isHeaders:co,isUndefined:Ce,isDate:Zn,isFile:eo,isBlob:to,isRegExp:So,isFunction:K,isStream:no,isURLSearchParams:ro,isTypedArray:go,isFileList:so,forEach:ke,merge:lt,extend:po,trim:uo,stripBOM:$o,inherits:_o,toFlatObject:mo,kindOf:Ye,kindOfTest:Q,endsWith:To,toArray:ho,forEachEntry:Eo,matchAll:fo,isHTMLForm:bo,hasOwnProperty:xt,hasOwnProp:xt,reduceDescriptors:ds,freezeMethods:Oo,toObjectSet:Ro,toCamelCase:Io,noop:Ao,toFiniteNumber:yo,findKey:cs,global:pe,isContextDefined:us,ALPHABET:ps,generateString:Lo,isSpecCompliantForm:Co,toJSONObject:No,isAsyncFn:ko,isThenable:Mo,setImmediate:$s,asap:xo};function y(t,s,o,e,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),e&&(this.request=e),r&&(this.response=r,this.status=r.status?r.status:null)}_.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const _s=y.prototype,ms={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ms[t]={value:t}});Object.defineProperties(y,ms);Object.defineProperty(_s,"isAxiosError",{value:!0});y.from=(t,s,o,e,r,l)=>{const a=Object.create(_s);return _.toFlatObject(t,a,function(m){return m!==Error.prototype},u=>u!=="isAxiosError"),y.call(a,t.message,s,o,e,r),a.cause=t,a.name=t.name,l&&Object.assign(a,l),a};const Bo=null;function at(t){return _.isPlainObject(t)||_.isArray(t)}function Ts(t){return _.endsWith(t,"[]")?t.slice(0,-2):t}function Pt(t,s,o){return t?t.concat(s).map(function(r,l){return r=Ts(r),!o&&l?"["+r+"]":r}).join(o?".":""):s}function Po(t){return _.isArray(t)&&!t.some(at)}const Do=_.toFlatObject(_,{},null,function(s){return/^is[A-Z]/.test(s)});function je(t,s,o){if(!_.isObject(t))throw new TypeError("target must be an object");s=s||new FormData,o=_.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,E){return!_.isUndefined(E[I])});const e=o.metaTokens,r=o.visitor||$,l=o.dots,a=o.indexes,m=(o.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(s);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!m&&_.isBlob(g))throw new y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?m&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function $(g,I,E){let L=g;if(g&&!E&&typeof g=="object"){if(_.endsWith(I,"{}"))I=e?I:I.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&Po(g)||(_.isFileList(g)||_.endsWith(I,"[]"))&&(L=_.toArray(g)))return I=Ts(I),L.forEach(function(k,v){!(_.isUndefined(k)||k===null)&&s.append(a===!0?Pt([I],v,l):a===null?I:I+"[]",p(k))}),!1}return at(g)?!0:(s.append(Pt(E,I,l),p(g)),!1)}const T=[],b=Object.assign(Do,{defaultVisitor:$,convertValue:p,isVisitable:at});function O(g,I){if(!_.isUndefined(g)){if(T.indexOf(g)!==-1)throw Error("Circular reference detected in "+I.join("."));T.push(g),_.forEach(g,function(L,R){(!(_.isUndefined(L)||L===null)&&r.call(s,L,_.isString(R)?R.trim():R,I,b))===!0&&O(L,I?I.concat(R):[R])}),T.pop()}}if(!_.isObject(t))throw new TypeError("data must be an object");return O(t),s}function Dt(t){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return s[e]})}function gt(t,s){this._pairs=[],t&&je(t,this,s)}const hs=gt.prototype;hs.append=function(s,o){this._pairs.push([s,o])};hs.toString=function(s){const o=s?function(e){return s.call(this,e,Dt)}:Dt;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function wo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gs(t,s,o){if(!s)return t;const e=o&&o.encode||wo,r=o&&o.serialize;let l;if(r?l=r(s,o):l=_.isURLSearchParams(s)?s.toString():new gt(s,o).toString(e),l){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class wt{constructor(){this.handlers=[]}use(s,o,e){return this.handlers.push({fulfilled:s,rejected:o,synchronous:e?e.synchronous:!1,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){_.forEach(this.handlers,function(e){e!==null&&s(e)})}}const Es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vo=typeof URLSearchParams<"u"?URLSearchParams:gt,Fo=typeof FormData<"u"?FormData:null,Uo=typeof Blob<"u"?Blob:null,Ho={isBrowser:!0,classes:{URLSearchParams:vo,FormData:Fo,Blob:Uo},protocols:["http","https","file","blob","url","data"]},Et=typeof window<"u"&&typeof document<"u",ct=typeof navigator=="object"&&navigator||void 0,Vo=Et&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),Go=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yo=Et&&window.location.href||"http://localhost",Ko=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Et,hasStandardBrowserEnv:Vo,hasStandardBrowserWebWorkerEnv:Go,navigator:ct,origin:Yo},Symbol.toStringTag,{value:"Module"})),V={...Ko,...Ho};function Xo(t,s){return je(t,new V.classes.URLSearchParams,Object.assign({visitor:function(o,e,r,l){return V.isNode&&_.isBuffer(o)?(this.append(e,o.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},s))}function jo(t){return _.matchAll(/\w+|\[(\w*)]/g,t).map(s=>s[0]==="[]"?"":s[1]||s[0])}function Wo(t){const s={},o=Object.keys(t);let e;const r=o.length;let l;for(e=0;e=o.length;return a=!a&&_.isArray(r)?r.length:a,m?(_.hasOwnProp(r,a)?r[a]=[r[a],e]:r[a]=e,!u):((!r[a]||!_.isObject(r[a]))&&(r[a]=[]),s(o,e,r[a],l)&&_.isArray(r[a])&&(r[a]=Wo(r[a])),!u)}if(_.isFormData(t)&&_.isFunction(t.entries)){const o={};return _.forEachEntry(t,(e,r)=>{s(jo(e),r,o,0)}),o}return null}function qo(t,s,o){if(_.isString(t))try{return(s||JSON.parse)(t),_.trim(t)}catch(e){if(e.name!=="SyntaxError")throw e}return(0,JSON.stringify)(t)}const Me={transitional:Es,adapter:["xhr","http","fetch"],transformRequest:[function(s,o){const e=o.getContentType()||"",r=e.indexOf("application/json")>-1,l=_.isObject(s);if(l&&_.isHTMLForm(s)&&(s=new FormData(s)),_.isFormData(s))return r?JSON.stringify(fs(s)):s;if(_.isArrayBuffer(s)||_.isBuffer(s)||_.isStream(s)||_.isFile(s)||_.isBlob(s)||_.isReadableStream(s))return s;if(_.isArrayBufferView(s))return s.buffer;if(_.isURLSearchParams(s))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let u;if(l){if(e.indexOf("application/x-www-form-urlencoded")>-1)return Xo(s,this.formSerializer).toString();if((u=_.isFileList(s))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return je(u?{"files[]":s}:s,m&&new m,this.formSerializer)}}return l||r?(o.setContentType("application/json",!1),qo(s)):s}],transformResponse:[function(s){const o=this.transitional||Me.transitional,e=o&&o.forcedJSONParsing,r=this.responseType==="json";if(_.isResponse(s)||_.isReadableStream(s))return s;if(s&&_.isString(s)&&(e&&!this.responseType||r)){const a=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(s)}catch(u){if(a)throw u.name==="SyntaxError"?y.from(u,y.ERR_BAD_RESPONSE,this,null,this.response):u}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],t=>{Me.headers[t]={}});const Jo=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zo=t=>{const s={};let o,e,r;return t&&t.split(` +`).forEach(function(a){r=a.indexOf(":"),o=a.substring(0,r).trim().toLowerCase(),e=a.substring(r+1).trim(),!(!o||s[o]&&Jo[o])&&(o==="set-cookie"?s[o]?s[o].push(e):s[o]=[e]:s[o]=s[o]?s[o]+", "+e:e)}),s},vt=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function we(t){return t===!1||t==null?t:_.isArray(t)?t.map(we):String(t)}function Qo(t){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let e;for(;e=o.exec(t);)s[e[1]]=e[2];return s}const Zo=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function st(t,s,o,e,r){if(_.isFunction(e))return e.call(this,s,o);if(r&&(s=o),!!_.isString(s)){if(_.isString(e))return s.indexOf(e)!==-1;if(_.isRegExp(e))return e.test(s)}}function er(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,e)=>o.toUpperCase()+e)}function tr(t,s){const o=_.toCamelCase(" "+s);["get","set","has"].forEach(e=>{Object.defineProperty(t,e+o,{value:function(r,l,a){return this[e].call(this,s,r,l,a)},configurable:!0})})}class G{constructor(s){s&&this.set(s)}set(s,o,e){const r=this;function l(u,m,p){const $=ye(m);if(!$)throw new Error("header name must be a non-empty string");const T=_.findKey(r,$);(!T||r[T]===void 0||p===!0||p===void 0&&r[T]!==!1)&&(r[T||m]=we(u))}const a=(u,m)=>_.forEach(u,(p,$)=>l(p,$,m));if(_.isPlainObject(s)||s instanceof this.constructor)a(s,o);else if(_.isString(s)&&(s=s.trim())&&!Zo(s))a(zo(s),o);else if(_.isHeaders(s))for(const[u,m]of s.entries())l(m,u,e);else s!=null&&l(o,s,e);return this}get(s,o){if(s=ye(s),s){const e=_.findKey(this,s);if(e){const r=this[e];if(!o)return r;if(o===!0)return Qo(r);if(_.isFunction(o))return o.call(this,r,e);if(_.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=ye(s),s){const e=_.findKey(this,s);return!!(e&&this[e]!==void 0&&(!o||st(this,this[e],e,o)))}return!1}delete(s,o){const e=this;let r=!1;function l(a){if(a=ye(a),a){const u=_.findKey(e,a);u&&(!o||st(e,e[u],u,o))&&(delete e[u],r=!0)}}return _.isArray(s)?s.forEach(l):l(s),r}clear(s){const o=Object.keys(this);let e=o.length,r=!1;for(;e--;){const l=o[e];(!s||st(this,this[l],l,s,!0))&&(delete this[l],r=!0)}return r}normalize(s){const o=this,e={};return _.forEach(this,(r,l)=>{const a=_.findKey(e,l);if(a){o[a]=we(r),delete o[l];return}const u=s?er(l):String(l).trim();u!==l&&delete o[l],o[u]=we(r),e[u]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return _.forEach(this,(e,r)=>{e!=null&&e!==!1&&(o[r]=s&&_.isArray(e)?e.join(", "):e)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const e=new this(s);return o.forEach(r=>e.set(r)),e}static accessor(s){const e=(this[vt]=this[vt]={accessors:{}}).accessors,r=this.prototype;function l(a){const u=ye(a);e[u]||(tr(r,a),e[u]=!0)}return _.isArray(s)?s.forEach(l):l(s),this}}G.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(G.prototype,({value:t},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>t,set(e){this[o]=e}}});_.freezeMethods(G);function nt(t,s){const o=this||Me,e=s||o,r=G.from(e.headers);let l=e.data;return _.forEach(t,function(u){l=u.call(o,l,r.normalize(),s?s.status:void 0)}),r.normalize(),l}function bs(t){return!!(t&&t.__CANCEL__)}function Re(t,s,o){y.call(this,t??"canceled",y.ERR_CANCELED,s,o),this.name="CanceledError"}_.inherits(Re,y,{__CANCEL__:!0});function Is(t,s,o){const e=o.config.validateStatus;!o.status||!e||e(o.status)?t(o):s(new y("Request failed with status code "+o.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function sr(t){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return s&&s[1]||""}function nr(t,s){t=t||10;const o=new Array(t),e=new Array(t);let r=0,l=0,a;return s=s!==void 0?s:1e3,function(m){const p=Date.now(),$=e[l];a||(a=p),o[r]=m,e[r]=p;let T=l,b=0;for(;T!==r;)b+=o[T++],T=T%t;if(r=(r+1)%t,r===l&&(l=(l+1)%t),p-a{o=$,r=null,l&&(clearTimeout(l),l=null),t.apply(null,p)};return[(...p)=>{const $=Date.now(),T=$-o;T>=e?a(p,$):(r=p,l||(l=setTimeout(()=>{l=null,a(r)},e-T)))},()=>r&&a(r)]}const Ue=(t,s,o=3)=>{let e=0;const r=nr(50,250);return or(l=>{const a=l.loaded,u=l.lengthComputable?l.total:void 0,m=a-e,p=r(m),$=a<=u;e=a;const T={loaded:a,total:u,progress:u?a/u:void 0,bytes:m,rate:p||void 0,estimated:p&&u&&$?(u-a)/p:void 0,event:l,lengthComputable:u!=null,[s?"download":"upload"]:!0};t(T)},o)},Ft=(t,s)=>{const o=t!=null;return[e=>s[0]({lengthComputable:o,total:t,loaded:e}),s[1]]},Ut=t=>(...s)=>_.asap(()=>t(...s)),rr=V.hasStandardBrowserEnv?function(){const s=V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent),o=document.createElement("a");let e;function r(l){let a=l;return s&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return e=r(window.location.href),function(a){const u=_.isString(a)?r(a):a;return u.protocol===e.protocol&&u.host===e.host}}():function(){return function(){return!0}}(),ir=V.hasStandardBrowserEnv?{write(t,s,o,e,r,l){const a=[t+"="+encodeURIComponent(s)];_.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),_.isString(e)&&a.push("path="+e),_.isString(r)&&a.push("domain="+r),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const s=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ar(t,s){return s?t.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):t}function Ss(t,s){return t&&!lr(s)?ar(t,s):s}const Ht=t=>t instanceof G?{...t}:t;function me(t,s){s=s||{};const o={};function e(p,$,T){return _.isPlainObject(p)&&_.isPlainObject($)?_.merge.call({caseless:T},p,$):_.isPlainObject($)?_.merge({},$):_.isArray($)?$.slice():$}function r(p,$,T){if(_.isUndefined($)){if(!_.isUndefined(p))return e(void 0,p,T)}else return e(p,$,T)}function l(p,$){if(!_.isUndefined($))return e(void 0,$)}function a(p,$){if(_.isUndefined($)){if(!_.isUndefined(p))return e(void 0,p)}else return e(void 0,$)}function u(p,$,T){if(T in s)return e(p,$);if(T in t)return e(void 0,p)}const m={url:l,method:l,data:l,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(p,$)=>r(Ht(p),Ht($),!0)};return _.forEach(Object.keys(Object.assign({},t,s)),function($){const T=m[$]||r,b=T(t[$],s[$],$);_.isUndefined(b)&&T!==u||(o[$]=b)}),o}const Os=t=>{const s=me({},t);let{data:o,withXSRFToken:e,xsrfHeaderName:r,xsrfCookieName:l,headers:a,auth:u}=s;s.headers=a=G.from(a),s.url=gs(Ss(s.baseURL,s.url),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let m;if(_.isFormData(o)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((m=a.getContentType())!==!1){const[p,...$]=m?m.split(";").map(T=>T.trim()).filter(Boolean):[];a.setContentType([p||"multipart/form-data",...$].join("; "))}}if(V.hasStandardBrowserEnv&&(e&&_.isFunction(e)&&(e=e(s)),e||e!==!1&&rr(s.url))){const p=r&&l&&ir.read(l);p&&a.set(r,p)}return s},cr=typeof XMLHttpRequest<"u",ur=cr&&function(t){return new Promise(function(o,e){const r=Os(t);let l=r.data;const a=G.from(r.headers).normalize();let{responseType:u,onUploadProgress:m,onDownloadProgress:p}=r,$,T,b,O,g;function I(){O&&O(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe($),r.signal&&r.signal.removeEventListener("abort",$)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function L(){if(!E)return;const k=G.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),C={data:!u||u==="text"||u==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:k,config:t,request:E};Is(function(Z){o(Z),I()},function(Z){e(Z),I()},C),E=null}"onloadend"in E?E.onloadend=L:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(L)},E.onabort=function(){E&&(e(new y("Request aborted",y.ECONNABORTED,t,E)),E=null)},E.onerror=function(){e(new y("Network Error",y.ERR_NETWORK,t,E)),E=null},E.ontimeout=function(){let v=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||Es;r.timeoutErrorMessage&&(v=r.timeoutErrorMessage),e(new y(v,C.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,t,E)),E=null},l===void 0&&a.setContentType(null),"setRequestHeader"in E&&_.forEach(a.toJSON(),function(v,C){E.setRequestHeader(C,v)}),_.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),u&&u!=="json"&&(E.responseType=r.responseType),p&&([b,g]=Ue(p,!0),E.addEventListener("progress",b)),m&&E.upload&&([T,O]=Ue(m),E.upload.addEventListener("progress",T),E.upload.addEventListener("loadend",O)),(r.cancelToken||r.signal)&&($=k=>{E&&(e(!k||k.type?new Re(null,t,E):k),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe($),r.signal&&(r.signal.aborted?$():r.signal.addEventListener("abort",$)));const R=sr(r.url);if(R&&V.protocols.indexOf(R)===-1){e(new y("Unsupported protocol "+R+":",y.ERR_BAD_REQUEST,t));return}E.send(l||null)})},dr=(t,s)=>{const{length:o}=t=t?t.filter(Boolean):[];if(s||o){let e=new AbortController,r;const l=function(p){if(!r){r=!0,u();const $=p instanceof Error?p:this.reason;e.abort($ instanceof y?$:new Re($ instanceof Error?$.message:$))}};let a=s&&setTimeout(()=>{a=null,l(new y(`timeout ${s} of ms exceeded`,y.ETIMEDOUT))},s);const u=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),t=null)};t.forEach(p=>p.addEventListener("abort",l));const{signal:m}=e;return m.unsubscribe=()=>_.asap(u),m}},pr=function*(t,s){let o=t.byteLength;if(o{const r=$r(t,s);let l=0,a,u=m=>{a||(a=!0,e&&e(m))};return new ReadableStream({async pull(m){try{const{done:p,value:$}=await r.next();if(p){u(),m.close();return}let T=$.byteLength;if(o){let b=l+=T;o(b)}m.enqueue(new Uint8Array($))}catch(p){throw u(p),p}},cancel(m){return u(m),r.return()}},{highWaterMark:2})},We=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rs=We&&typeof ReadableStream=="function",mr=We&&(typeof TextEncoder=="function"?(t=>s=>t.encode(s))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),As=(t,...s)=>{try{return!!t(...s)}catch{return!1}},Tr=Rs&&As(()=>{let t=!1;const s=new Request(V.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!s}),Gt=64*1024,ut=Rs&&As(()=>_.isReadableStream(new Response("").body)),He={stream:ut&&(t=>t.body)};We&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!He[s]&&(He[s]=_.isFunction(t[s])?o=>o[s]():(o,e)=>{throw new y(`Response type '${s}' is not supported`,y.ERR_NOT_SUPPORT,e)})})})(new Response);const hr=async t=>{if(t==null)return 0;if(_.isBlob(t))return t.size;if(_.isSpecCompliantForm(t))return(await new Request(V.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(_.isArrayBufferView(t)||_.isArrayBuffer(t))return t.byteLength;if(_.isURLSearchParams(t)&&(t=t+""),_.isString(t))return(await mr(t)).byteLength},gr=async(t,s)=>{const o=_.toFiniteNumber(t.getContentLength());return o??hr(s)},Er=We&&(async t=>{let{url:s,method:o,data:e,signal:r,cancelToken:l,timeout:a,onDownloadProgress:u,onUploadProgress:m,responseType:p,headers:$,withCredentials:T="same-origin",fetchOptions:b}=Os(t);p=p?(p+"").toLowerCase():"text";let O=dr([r,l&&l.toAbortSignal()],a),g;const I=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let E;try{if(m&&Tr&&o!=="get"&&o!=="head"&&(E=await gr($,e))!==0){let C=new Request(s,{method:"POST",body:e,duplex:"half"}),P;if(_.isFormData(e)&&(P=C.headers.get("content-type"))&&$.setContentType(P),C.body){const[Z,oe]=Ft(E,Ue(Ut(m)));e=Vt(C.body,Gt,Z,oe)}}_.isString(T)||(T=T?"include":"omit");const L="credentials"in Request.prototype;g=new Request(s,{...b,signal:O,method:o.toUpperCase(),headers:$.normalize().toJSON(),body:e,duplex:"half",credentials:L?T:void 0});let R=await fetch(g);const k=ut&&(p==="stream"||p==="response");if(ut&&(u||k&&I)){const C={};["status","statusText","headers"].forEach(de=>{C[de]=R[de]});const P=_.toFiniteNumber(R.headers.get("content-length")),[Z,oe]=u&&Ft(P,Ue(Ut(u),!0))||[];R=new Response(Vt(R.body,Gt,Z,()=>{oe&&oe(),I&&I()}),C)}p=p||"text";let v=await He[_.findKey(He,p)||"text"](R,t);return!k&&I&&I(),await new Promise((C,P)=>{Is(C,P,{data:v,headers:G.from(R.headers),status:R.status,statusText:R.statusText,config:t,request:g})})}catch(L){throw I&&I(),L&&L.name==="TypeError"&&/fetch/i.test(L.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,t,g),{cause:L.cause||L}):y.from(L,L&&L.code,t,g)}}),dt={http:Bo,xhr:ur,fetch:Er};_.forEach(dt,(t,s)=>{if(t){try{Object.defineProperty(t,"name",{value:s})}catch{}Object.defineProperty(t,"adapterName",{value:s})}});const Yt=t=>`- ${t}`,fr=t=>_.isFunction(t)||t===null||t===!1,ys={getAdapter:t=>{t=_.isArray(t)?t:[t];const{length:s}=t;let o,e;const r={};for(let l=0;l`adapter ${u} `+(m===!1?"is not supported by the environment":"is not available in the build"));let a=s?l.length>1?`since : `+l.map(Yt).join(` -`):" "+Yt(l[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return e},adapters:dt};function ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Re(null,t)}function Kt(t){return ot(t),t.headers=G.from(t.headers),t.data=nt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ys.getAdapter(t.adapter||Me.adapter)(t).then(function(e){return ot(t),e.data=nt.call(t,t.transformResponse,e),e.headers=G.from(e.headers),e},function(e){return bs(e)||(ot(t),e&&e.response&&(e.response.data=nt.call(t,t.transformResponse,e.response),e.response.headers=G.from(e.response.headers))),Promise.reject(e)})}const Ls="1.7.7",ft={};["object","boolean","number","function","string","symbol"].forEach((t,s)=>{ft[t]=function(e){return typeof e===t||"a"+(s<1?"n ":" ")+t}});const Xt={};ft.transitional=function(s,o,e){function r(l,a){return"[Axios v"+Ls+"] Transitional option '"+l+"'"+a+(e?". "+e:"")}return(l,a,u)=>{if(s===!1)throw new y(r(a," has been removed"+(o?" in "+o:"")),y.ERR_DEPRECATED);return o&&!Xt[a]&&(Xt[a]=!0,console.warn(r(a," has been deprecated since v"+o+" and will be removed in the near future"))),s?s(l,a,u):!0}};function Ir(t,s,o){if(typeof t!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const e=Object.keys(t);let r=e.length;for(;r-- >0;){const l=e[r],a=s[l];if(a){const u=t[l],m=u===void 0||a(u,l,t);if(m!==!0)throw new y("option "+l+" must be "+m,y.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new y("Unknown option "+l,y.ERR_BAD_OPTION)}}const pt={assertOptions:Ir,validators:ft},ie=pt.validators;class _e{constructor(s){this.defaults=s,this.interceptors={request:new wt,response:new wt}}async request(s,o){try{return await this._request(s,o)}catch(e){if(e instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const l=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?l&&!String(e.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(e.stack+=` -`+l):e.stack=l}catch{}}throw e}}_request(s,o){typeof s=="string"?(o=o||{},o.url=s):o=s||{},o=me(this.defaults,o);const{transitional:e,paramsSerializer:r,headers:l}=o;e!==void 0&&pt.assertOptions(e,{silentJSONParsing:ie.transitional(ie.boolean),forcedJSONParsing:ie.transitional(ie.boolean),clarifyTimeoutError:ie.transitional(ie.boolean)},!1),r!=null&&(_.isFunction(r)?o.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:ie.function,serialize:ie.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=l&&_.merge(l.common,l[o.method]);l&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete l[g]}),o.headers=G.concat(a,l);const u=[];let m=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(o)===!1||(m=m&&I.synchronous,u.unshift(I.fulfilled,I.rejected))});const p=[];this.interceptors.response.forEach(function(I){p.push(I.fulfilled,I.rejected)});let $,T=0,b;if(!m){const g=[Kt.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,p),b=g.length,$=Promise.resolve(o);T{if(!e._listeners)return;let l=e._listeners.length;for(;l-- >0;)e._listeners[l](r);e._listeners=null}),this.promise.then=r=>{let l;const a=new Promise(u=>{e.subscribe(u),l=u}).then(r);return a.cancel=function(){e.unsubscribe(l)},a},s(function(l,a,u){e.reason||(e.reason=new Re(l,a,u),o(e.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const o=this._listeners.indexOf(s);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const s=new AbortController,o=e=>{s.abort(e)};return this.subscribe(o),s.signal.unsubscribe=()=>this.unsubscribe(o),s.signal}static source(){let s;return{token:new bt(function(r){s=r}),cancel:s}}}function Sr(t){return function(o){return t.apply(null,o)}}function Or(t){return _.isObject(t)&&t.isAxiosError===!0}const $t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($t).forEach(([t,s])=>{$t[s]=t});function Cs(t){const s=new _e(t),o=is(_e.prototype.request,s);return _.extend(o,_e.prototype,s,{allOwnKeys:!0}),_.extend(o,s,null,{allOwnKeys:!0}),o.create=function(r){return Cs(me(t,r))},o}const B=Cs(Me);B.Axios=_e;B.CanceledError=Re;B.CancelToken=bt;B.isCancel=bs;B.VERSION=Ls;B.toFormData=je;B.AxiosError=y;B.Cancel=B.CanceledError;B.all=function(s){return Promise.all(s)};B.spread=Sr;B.isAxiosError=Or;B.mergeConfig=me;B.AxiosHeaders=G;B.formToJSON=t=>fs(_.isHTMLForm(t)?new FormData(t):t);B.getAdapter=ys.getAdapter;B.HttpStatusCode=$t;B.default=B;const le=B.create({baseURL:"http://localhost:3000",timeout:5e3,headers:{"Content-Type":"application/json"}}),Ae=()=>({createWorkspace:async(m,p=!1)=>(await le.post("/workspace",{userId:m},{headers:{"user-id":m,sample:p}})).data,getWorkspaceList:async(m,p)=>(await le.get(`/workspace/list${p!=="null"?`?cursor=${encodeURIComponent(p)}`:""}`,{headers:{"user-id":m}})).data,getWorkspace:async(m,p)=>(await le.get(`/workspace?workspaceId=${p}`,{headers:{"user-id":m}})).data,updateWorkspaceName:async(m,p,$)=>(await le.patch("/workspace/name",{workspaceId:p,newName:$},{headers:{"user-id":m}})).data,deleteWorkspace:async(m,p)=>{await le.delete(`/workspace?workspaceId=${p}`,{headers:{"user-id":m}})},saveWorkspace:async(m,p,$,T,b,O,g,I)=>{const E=new FormData;E.append("workspaceId",p),E.append("totalCssPropertyObj",JSON.stringify($)),E.append("canvas",JSON.stringify(T)),E.append("classBlockList",JSON.stringify(b)),E.append("cssResetStatus",O.toString()),E.append("thumbnail",g);const L=Object.fromEntries(I);E.append("imageMap",JSON.stringify(L)),await le.patch("/workspace",E,{headers:{"user-id":m,"Content-Type":"multipart/form-data"}})},postImage:async(m,p,$,T)=>{const b=new FormData;return b.append("workspaceId",p),b.append("imageName",$),b.append("image",T),(await le.post("/workspace/image",b,{headers:{"user-id":m,"Content-Type":"multipart/form-data"}})).data},deleteImage:async(m,p,$)=>(await le.delete(`/workspace/image?workspaceId=${encodeURIComponent(p)}&imageName=${encodeURIComponent($)}`,{headers:{"user-id":m}})).data}),It=(t=!1)=>{const s=Ae(),o=An(),e=_t(a=>a.setIsPending),r=Ne(),{mutate:l}=Se({mutationFn:()=>{e(!0);const a=Ie()||Ge();return s.createWorkspace(a,t)},onSuccess:a=>{r.invalidateQueries({queryKey:fe.list()}),t||o(`/workspace/${a.newWorkspaceId}`)},onError:()=>{x.error("워크스페이스 생성 실패")},onSettled:()=>{e(!1)}});return{mutate:l}},Rr={containerCategory:{colour:"FF3A61"},textCategory:{colour:"FFD900"},formCategory:{colour:"FF9821"},tableCategory:{colour:"B223F5"},listCategory:{colour:"3E84FF"},linkCategory:{colour:"3ED5FF"},etcCategory:{colour:"00AF6F"}},te={kind:"categoryToolbox",contents:[]},jt=J.dom,Ar=J.Svg;class tc extends wn{constructor(o,e,r){super(o,e,r);q(this,"backgroundRect_");q(this,"width",0);this.value_===""&&this.setValue("사진을 넣어주세요")}createTextElement_(){this.textElement_=jt.createSvgElement(Ar.TEXT,{class:"blocklyText",x:0,y:0,"dominant-baseline":"central",fill:"#1E272E"},this.fieldGroup_),this.textElement_.style.fontSize="10pt",this.textContent_=document.createTextNode(""),this.textElement_.appendChild(this.textContent_)}initView(){if(super.initView(),this.fieldGroup_){this.fieldGroup_.addEventListener("click",this.onClick_.bind(this));const o=this.fieldGroup_.querySelector(".blocklyFieldRect");o&&(this.fieldGroup_.onmouseenter=()=>{o.style.fill="#E2EDFF"},this.fieldGroup_.onmouseleave=()=>{o.style.fill="#fff"})}}onClick_(){var o;$e.getState().setIsModalOpen(!0),$e.getState().setNowId((o=this.getSourceBlock())==null?void 0:o.id),$e.getState().setNowImage(this.value_==="사진을 넣어주세요"?"":this.value_)}updateWidth(o){this.width=o,this.render_()}updateSize_(o){const e=this.getConstants(),r=o!==void 0?o:this.isFullBlockField()?0:this.getConstants().FIELD_BORDER_RECT_X_PADDING;let l=r*2,a=e.FIELD_TEXT_HEIGHT;this.width=Math.max(e.EMPTY_INLINE_INPUT_PADDING+8,this.width);let u=0;this.textElement_&&(u=jt.getFastTextWidth(this.textElement_,10,e.FIELD_TEXT_FONTWEIGHT,e.FIELD_TEXT_FONTFAMILY),l+=u),this.isFullBlockField()||(a=Math.max(a,e.FIELD_BORDER_RECT_HEIGHT)),this.size_.height=a,this.size_.width=Math.max(l,this.width),this.positionTextElement_(r,u),this.positionBorderRect_()}}const yr=J.dom;class sc extends Fn{constructor(){super(...arguments);q(this,"width",0)}updateWidth(o){this.width=o,this.render_()}updateSize_(o){const e=this.getConstants(),r=o!==void 0?o:this.isFullBlockField()?0:this.getConstants().FIELD_BORDER_RECT_X_PADDING;let l=r*2,a=e.FIELD_TEXT_HEIGHT;this.width=Math.max(e.EMPTY_INLINE_INPUT_PADDING+8,this.width);let u=0;this.textElement_&&(u=yr.getFastTextWidth(this.textElement_,e.FIELD_TEXT_FONTSIZE,e.FIELD_TEXT_FONTWEIGHT,e.FIELD_TEXT_FONTFAMILY),l+=u),this.isFullBlockField()||(a=Math.max(a,e.FIELD_BORDER_RECT_HEIGHT)),this.size_.height=a,this.size_.width=Math.max(l,this.width),this.positionTextElement_(r,u),this.positionBorderRect_()}}const Lr=J.dom,Cr=J.Svg;class nc extends os{createTextElement_(){this.textElement_=Lr.createSvgElement(Cr.TEXT,{class:"blocklyText",x:0,y:0,"dominant-baseline":"central"},this.fieldGroup_),this.textContent_=document.createTextNode(""),this.textElement_.appendChild(this.textContent_)}render_(){super.render_();const s=this.textElement_.getBBox();this.textElement_&&(this.textElement_.setAttribute("x",(s.x+6).toString()),this.textElement_.setAttribute("y",(s.y+9).toString()),this.textElement_.style.fill="#1E272E")}}const Wt=J.dom,qt=J.Svg;class oc extends os{constructor(){super(...arguments);q(this,"backgroundRect_")}createTextElement_(){this.backgroundRect_=Wt.createSvgElement(qt.RECT,{class:"blocklyTextBackground",x:0,y:0,rx:10,ry:10,fill:"#1E272E",stroke:"none"},this.fieldGroup_),this.textElement_=Wt.createSvgElement(qt.TEXT,{class:"blocklyText",x:0,y:0,"dominant-baseline":"central"},this.fieldGroup_),this.textContent_=document.createTextNode(""),this.textElement_.appendChild(this.textContent_)}render_(){var e,r;super.render_();const o=this.textElement_.getBBox();this.backgroundRect_.setAttribute("width",(o.width+12).toString()),this.backgroundRect_.setAttribute("height",(o.height+4).toString()),this.backgroundRect_.setAttribute("x",(o.x+6).toString()),this.backgroundRect_.setAttribute("y",(o.y-2).toString()),(e=this.textElement_)==null||e.setAttribute("x",(o.x+12).toString()),(r=this.textElement_)==null||r.setAttribute("y",(o.y+9).toString())}}const Nr=[{kind:"block",type:S("div"),description:`여러 내용을 담을 수 있는 상자예요. +`):" "+Yt(l[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return e},adapters:dt};function ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Re(null,t)}function Kt(t){return ot(t),t.headers=G.from(t.headers),t.data=nt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ys.getAdapter(t.adapter||Me.adapter)(t).then(function(e){return ot(t),e.data=nt.call(t,t.transformResponse,e),e.headers=G.from(e.headers),e},function(e){return bs(e)||(ot(t),e&&e.response&&(e.response.data=nt.call(t,t.transformResponse,e.response),e.response.headers=G.from(e.response.headers))),Promise.reject(e)})}const Ls="1.7.7",ft={};["object","boolean","number","function","string","symbol"].forEach((t,s)=>{ft[t]=function(e){return typeof e===t||"a"+(s<1?"n ":" ")+t}});const Xt={};ft.transitional=function(s,o,e){function r(l,a){return"[Axios v"+Ls+"] Transitional option '"+l+"'"+a+(e?". "+e:"")}return(l,a,u)=>{if(s===!1)throw new y(r(a," has been removed"+(o?" in "+o:"")),y.ERR_DEPRECATED);return o&&!Xt[a]&&(Xt[a]=!0,console.warn(r(a," has been deprecated since v"+o+" and will be removed in the near future"))),s?s(l,a,u):!0}};function br(t,s,o){if(typeof t!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const e=Object.keys(t);let r=e.length;for(;r-- >0;){const l=e[r],a=s[l];if(a){const u=t[l],m=u===void 0||a(u,l,t);if(m!==!0)throw new y("option "+l+" must be "+m,y.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new y("Unknown option "+l,y.ERR_BAD_OPTION)}}const pt={assertOptions:br,validators:ft},ie=pt.validators;class _e{constructor(s){this.defaults=s,this.interceptors={request:new wt,response:new wt}}async request(s,o){try{return await this._request(s,o)}catch(e){if(e instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const l=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?l&&!String(e.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(e.stack+=` +`+l):e.stack=l}catch{}}throw e}}_request(s,o){typeof s=="string"?(o=o||{},o.url=s):o=s||{},o=me(this.defaults,o);const{transitional:e,paramsSerializer:r,headers:l}=o;e!==void 0&&pt.assertOptions(e,{silentJSONParsing:ie.transitional(ie.boolean),forcedJSONParsing:ie.transitional(ie.boolean),clarifyTimeoutError:ie.transitional(ie.boolean)},!1),r!=null&&(_.isFunction(r)?o.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:ie.function,serialize:ie.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=l&&_.merge(l.common,l[o.method]);l&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete l[g]}),o.headers=G.concat(a,l);const u=[];let m=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(o)===!1||(m=m&&I.synchronous,u.unshift(I.fulfilled,I.rejected))});const p=[];this.interceptors.response.forEach(function(I){p.push(I.fulfilled,I.rejected)});let $,T=0,b;if(!m){const g=[Kt.bind(this),void 0];for(g.unshift.apply(g,u),g.push.apply(g,p),b=g.length,$=Promise.resolve(o);T{if(!e._listeners)return;let l=e._listeners.length;for(;l-- >0;)e._listeners[l](r);e._listeners=null}),this.promise.then=r=>{let l;const a=new Promise(u=>{e.subscribe(u),l=u}).then(r);return a.cancel=function(){e.unsubscribe(l)},a},s(function(l,a,u){e.reason||(e.reason=new Re(l,a,u),o(e.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const o=this._listeners.indexOf(s);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const s=new AbortController,o=e=>{s.abort(e)};return this.subscribe(o),s.signal.unsubscribe=()=>this.unsubscribe(o),s.signal}static source(){let s;return{token:new bt(function(r){s=r}),cancel:s}}}function Ir(t){return function(o){return t.apply(null,o)}}function Sr(t){return _.isObject(t)&&t.isAxiosError===!0}const $t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($t).forEach(([t,s])=>{$t[s]=t});function Cs(t){const s=new _e(t),o=is(_e.prototype.request,s);return _.extend(o,_e.prototype,s,{allOwnKeys:!0}),_.extend(o,s,null,{allOwnKeys:!0}),o.create=function(r){return Cs(me(t,r))},o}const B=Cs(Me);B.Axios=_e;B.CanceledError=Re;B.CancelToken=bt;B.isCancel=bs;B.VERSION=Ls;B.toFormData=je;B.AxiosError=y;B.Cancel=B.CanceledError;B.all=function(s){return Promise.all(s)};B.spread=Ir;B.isAxiosError=Sr;B.mergeConfig=me;B.AxiosHeaders=G;B.formToJSON=t=>fs(_.isHTMLForm(t)?new FormData(t):t);B.getAdapter=ys.getAdapter;B.HttpStatusCode=$t;B.default=B;const le=B.create({baseURL:"http://localhost:3000",timeout:5e3,headers:{"Content-Type":"application/json"}}),Ae=()=>({createWorkspace:async(m,p=!1)=>(await le.post("/workspace",{userId:m},{headers:{"user-id":m,sample:p}})).data,getWorkspaceList:async(m,p)=>(await le.get(`/workspace/list${p!=="null"?`?cursor=${encodeURIComponent(p)}`:""}`,{headers:{"user-id":m}})).data,getWorkspace:async(m,p)=>(await le.get(`/workspace?workspaceId=${p}`,{headers:{"user-id":m}})).data,updateWorkspaceName:async(m,p,$)=>(await le.patch("/workspace/name",{workspaceId:p,newName:$},{headers:{"user-id":m}})).data,deleteWorkspace:async(m,p)=>{await le.delete(`/workspace?workspaceId=${p}`,{headers:{"user-id":m}})},saveWorkspace:async(m,p,$,T,b,O,g,I)=>{const E=new FormData;E.append("workspaceId",p),E.append("totalCssPropertyObj",JSON.stringify($)),E.append("canvas",JSON.stringify(T)),E.append("classBlockList",JSON.stringify(b)),E.append("cssResetStatus",O.toString()),E.append("thumbnail",g);const L=Object.fromEntries(I);E.append("imageMap",JSON.stringify(L)),await le.patch("/workspace",E,{headers:{"user-id":m,"Content-Type":"multipart/form-data"}})},postImage:async(m,p,$,T)=>{const b=new FormData;return b.append("workspaceId",p),b.append("imageName",$),b.append("image",T),(await le.post("/workspace/image",b,{headers:{"user-id":m,"Content-Type":"multipart/form-data"}})).data},deleteImage:async(m,p,$)=>(await le.delete(`/workspace/image?workspaceId=${encodeURIComponent(p)}&imageName=${encodeURIComponent($)}`,{headers:{"user-id":m}})).data}),It=(t=!1)=>{const s=Ae(),o=An(),e=_t(a=>a.setIsPending),r=Ne(),{mutate:l}=Se({mutationFn:()=>{e(!0);const a=Ie()||Ge();return s.createWorkspace(a,t)},onSuccess:a=>{r.invalidateQueries({queryKey:fe.list()}),t||o(`/workspace/${a.newWorkspaceId}`)},onError:()=>{x.error("워크스페이스 생성 실패")},onSettled:()=>{e(!1)}});return{mutate:l}},Or={containerCategory:{colour:"FF3A61"},textCategory:{colour:"FFD900"},formCategory:{colour:"FF9821"},tableCategory:{colour:"B223F5"},listCategory:{colour:"3E84FF"},linkCategory:{colour:"3ED5FF"},etcCategory:{colour:"00AF6F"}},te={kind:"categoryToolbox",contents:[]},jt=J.dom,Rr=J.Svg;class tc extends Dn{constructor(o,e,r){super(o,e,r);q(this,"backgroundRect_");q(this,"width",0);this.value_===""&&this.setValue("사진을 넣어주세요")}createTextElement_(){this.textElement_=jt.createSvgElement(Rr.TEXT,{class:"blocklyText",x:0,y:0,"dominant-baseline":"central",fill:"#1E272E"},this.fieldGroup_),this.textElement_.style.fontSize="10pt",this.textContent_=document.createTextNode(""),this.textElement_.appendChild(this.textContent_)}initView(){if(super.initView(),this.fieldGroup_){this.fieldGroup_.addEventListener("click",this.onClick_.bind(this));const o=this.fieldGroup_.querySelector(".blocklyFieldRect");o&&(this.fieldGroup_.onmouseenter=()=>{o.style.fill="#E2EDFF"},this.fieldGroup_.onmouseleave=()=>{o.style.fill="#fff"})}}onClick_(){var o;$e.getState().setIsModalOpen(!0),$e.getState().setNowId((o=this.getSourceBlock())==null?void 0:o.id),$e.getState().setNowImage(this.value_==="사진을 넣어주세요"?"":this.value_)}updateWidth(o){this.width=o,this.render_()}updateSize_(o){const e=this.getConstants(),r=o!==void 0?o:this.isFullBlockField()?0:this.getConstants().FIELD_BORDER_RECT_X_PADDING;let l=r*2,a=e.FIELD_TEXT_HEIGHT;this.width=Math.max(e.EMPTY_INLINE_INPUT_PADDING+8,this.width);let u=0;this.textElement_&&(u=jt.getFastTextWidth(this.textElement_,10,e.FIELD_TEXT_FONTWEIGHT,e.FIELD_TEXT_FONTFAMILY),l+=u),this.isFullBlockField()||(a=Math.max(a,e.FIELD_BORDER_RECT_HEIGHT)),this.size_.height=a,this.size_.width=Math.max(l,this.width),this.positionTextElement_(r,u),this.positionBorderRect_()}}const Ar=J.dom;class sc extends vn{constructor(){super(...arguments);q(this,"width",0)}updateWidth(o){this.width=o,this.render_()}updateSize_(o){const e=this.getConstants(),r=o!==void 0?o:this.isFullBlockField()?0:this.getConstants().FIELD_BORDER_RECT_X_PADDING;let l=r*2,a=e.FIELD_TEXT_HEIGHT;this.width=Math.max(e.EMPTY_INLINE_INPUT_PADDING+8,this.width);let u=0;this.textElement_&&(u=Ar.getFastTextWidth(this.textElement_,e.FIELD_TEXT_FONTSIZE,e.FIELD_TEXT_FONTWEIGHT,e.FIELD_TEXT_FONTFAMILY),l+=u),this.isFullBlockField()||(a=Math.max(a,e.FIELD_BORDER_RECT_HEIGHT)),this.size_.height=a,this.size_.width=Math.max(l,this.width),this.positionTextElement_(r,u),this.positionBorderRect_()}}const yr=J.dom,Lr=J.Svg;class nc extends os{createTextElement_(){this.textElement_=yr.createSvgElement(Lr.TEXT,{class:"blocklyText",x:0,y:0,"dominant-baseline":"central"},this.fieldGroup_),this.textContent_=document.createTextNode(""),this.textElement_.appendChild(this.textContent_)}render_(){super.render_();const s=this.textElement_.getBBox();this.textElement_&&(this.textElement_.setAttribute("x",(s.x+6).toString()),this.textElement_.setAttribute("y",(s.y+9).toString()),this.textElement_.style.fill="#1E272E")}}const Wt=J.dom,qt=J.Svg;class oc extends os{constructor(){super(...arguments);q(this,"backgroundRect_")}createTextElement_(){this.backgroundRect_=Wt.createSvgElement(qt.RECT,{class:"blocklyTextBackground",x:0,y:0,rx:10,ry:10,fill:"#1E272E",stroke:"none"},this.fieldGroup_),this.textElement_=Wt.createSvgElement(qt.TEXT,{class:"blocklyText",x:0,y:0,"dominant-baseline":"central"},this.fieldGroup_),this.textContent_=document.createTextNode(""),this.textElement_.appendChild(this.textContent_)}render_(){var e,r;super.render_();const o=this.textElement_.getBBox();this.backgroundRect_.setAttribute("width",(o.width+12).toString()),this.backgroundRect_.setAttribute("height",(o.height+4).toString()),this.backgroundRect_.setAttribute("x",(o.x+6).toString()),this.backgroundRect_.setAttribute("y",(o.y-2).toString()),(e=this.textElement_)==null||e.setAttribute("x",(o.x+12).toString()),(r=this.textElement_)==null||r.setAttribute("y",(o.y+9).toString())}}const Cr=[{kind:"block",type:S("div"),description:`여러 내용을 담을 수 있는 상자예요. 레고 블록처럼 여러 개를 쌓을 수 있어요.`},{kind:"block",type:S("span"),description:`글자나 작은 내용을 감싸는 작은 상자예요. 문장 중간에 넣을 수 있어요.`},{kind:"block",type:S("header"),description:`웹페이지의 머리 부분이에요. 보통 로고나 메뉴가 들어가는 곳이에요.`},{kind:"block",type:S("section"),description:`비슷한 내용들을 모아두는 구역이에요. 책의 한 챕터같은 거예요.`},{kind:"block",type:S("nav"),description:"웹사이트에서 다른 페이지로 이동할 수 있는 메뉴가 있는 곳이에요."},{kind:"block",type:S("main"),description:`페이지에서 가장 중요한 내용이 들어가는 곳이에요. 책의 본문 같은 거예요.`},{kind:"block",type:S("article"),description:`하나의 완성된 이야기나 내용을 담는 곳이에요. 신문 기사처럼요.`},{kind:"block",type:S("footer"),description:`웹페이지의 맨 아래 부분이에요. -주소나 연락처 같은 정보가 들어가요.`}],kr=[{kind:"block",type:S("p"),description:`문단을 만드는 태그예요. +주소나 연락처 같은 정보가 들어가요.`}],Nr=[{kind:"block",type:S("p"),description:`문단을 만드는 태그예요. 하나의 생각이나 이야기를 묶어서 쓸 때 사용해요.`},{kind:"block",type:S("strong"),description:"정말 중요한 내용을 굵은 글씨로 보여줄 때 사용해요."},{kind:"block",type:S("h1"),description:`가장 큰 제목을 쓸 때 사용해요. 책의 제목같은 거예요.`},{kind:"block",type:S("h2"),description:`두 번째로 큰 제목이에요. 책의 장(章) 제목 같은 거예요.`},{kind:"block",type:S("h3"),description:`세 번째로 큰 제목이에요. @@ -20,51 +20,51 @@ var pn=Object.defineProperty;var yt=t=>{throw TypeError(t)};var $n=(t,s,o)=>s in 제일 세세한 주제를 쓸 때 사용해요.`},{kind:"block",type:S("small"),description:`작은 글씨로 보여주고 싶을 때 사용해요. 부가 설명을 쓸 때 좋아요.`},{kind:"block",type:S("br"),description:`줄을 바꾸고 싶을 때 사용해요. 엔터 키를 누른 것처럼요.`},{kind:"block",type:S("em"),description:"글씨를 기울여서 강조하고 싶을 때 사용해요."},{kind:"block",type:S("i"),description:"글씨를 기울여 쓰고 싶을 때 사용해요."},{kind:"block",type:S("blockquote"),description:`다른 사람의 말을 인용할 때 사용해요. -책에서 따온 문장 같은 거예요.`},{kind:"block",type:S("hr"),description:"가로줄을 그어서 내용을 구분하고 싶을 때 사용해요."}],Mr=[{kind:"block",type:S("button"),description:`클릭할 수 있는 버튼이에요. +책에서 따온 문장 같은 거예요.`},{kind:"block",type:S("hr"),description:"가로줄을 그어서 내용을 구분하고 싶을 때 사용해요."}],kr=[{kind:"block",type:S("button"),description:`클릭할 수 있는 버튼이에요. 제출하기나 확인 같은 동작을 할 때 사용해요.`},{kind:"block",type:S("option"),description:`선택할 수 있는 항목 하나를 나타내요. 여러 가지 중에 고를 수 있어요.`},{kind:"block",type:S("textarea"),description:`긴 글을 쓸 수 있는 큰 입력창이에요. 게시글이나 댓글을 쓸 때 사용해요.`},{kind:"block",type:S("select"),description:`여러 개 중에서 하나를 선택할 수 있는 목록이에요. -드롭다운 메뉴같은 거예요.`}],xr=[{kind:"block",type:S("td"),description:`표의 칸 하나예요. +드롭다운 메뉴같은 거예요.`}],Mr=[{kind:"block",type:S("td"),description:`표의 칸 하나예요. 내용을 채워 넣을 수 있어요.`},{kind:"block",type:S("tr"),description:`표의 가로줄 하나예요. 여러 칸을 옆으로 나열할 수 있어요.`},{kind:"block",type:S("th"),description:`표의 제목 칸이에요. 각 항목이 무엇을 의미하는지 설명해요.`},{kind:"block",type:S("caption"),description:`표의 제목이에요. 표가 어떤 내용인지 설명해줘요.`},{kind:"block",type:S("table"),description:`표를 만들 때 사용해요. -시간표나 성적표 같은 걸 만들 수 있어요.`}],Br=[{kind:"block",type:S("ul"),description:`순서가 없는 목록을 만들어요. +시간표나 성적표 같은 걸 만들 수 있어요.`}],xr=[{kind:"block",type:S("ul"),description:`순서가 없는 목록을 만들어요. 점이나 동그라미로 항목을 구분해요.`},{kind:"block",type:S("ol"),description:`순서가 있는 목록을 만들어요. 1, 2, 3처럼 숫자로 항목을 구분해요.`},{kind:"block",type:S("li"),description:`목록의 각 항목이에요. -하나하나의 내용을 적을 수 있어요.`}],Pr=[{kind:"block",type:S("a"),description:`다른 페이지나 웹사이트로 이동하는 버튼이에요. +하나하나의 내용을 적을 수 있어요.`}],Br=[{kind:"block",type:S("a"),description:`다른 페이지나 웹사이트로 이동하는 버튼이에요. 누르면 새로운 곳으로 가요. target의 속성은 아래와 같습니다. blank - 새로운 탭에서 열어요 parent - 현재 탭에서 열어요 -top - 현재 탭에서 열어요`}],Dr=[{kind:"block",type:S("text"),description:`일반 글자를 보여주는 기본 텍스트예요. +top - 현재 탭에서 열어요`}],Pr=[{kind:"block",type:S("text"),description:`일반 글자를 보여주는 기본 텍스트예요. 특별한 꾸밈이 없는 평범한 글자랍니다.`},{kind:"block",type:S("img"),description:`사진이나 그림을 보여주는 태그예요. -여기에 사진 주소를 적으면 사진이 나와요`}],ae={container:Nr,text:kr,form:Mr,table:xr,list:Br,link:Pr,etc:Dr},z=new Un("HTML"),St=t=>{z.forBlock[t]=function(s){var m;const o=s.getInputTargetBlock("css class"),e=(o==null?void 0:o.getFieldValue("CLASS"))||"",r=z.statementToCode(s,"children").trim(),l=s.id,a=hn(t);let u="";if(a==="a"){const p=((m=s.getField("HREF"))==null?void 0:m.getValue())||"",$=s.getFieldValue("TARGET")||"";u=`<${a}${e?` class="${e}"`:""} href="${p}" target="${$}" data-block-id="${l}">`}else u=`<${a}${o&&e!==""?` class="${e}"`:""} data-block-id="${l}">`;return r?u+` +여기에 사진 주소를 적으면 사진이 나와요`}],ae={container:Cr,text:Nr,form:kr,table:Mr,list:xr,link:Br,etc:Pr},z=new Fn("HTML"),St=t=>{z.forBlock[t]=function(s){var m;const o=s.getInputTargetBlock("css class"),e=(o==null?void 0:o.getFieldValue("CLASS"))||"",r=z.statementToCode(s,"children").trim(),l=s.id,a=hn(t);let u="";if(a==="a"){const p=((m=s.getField("HREF"))==null?void 0:m.getValue())||"",$=s.getFieldValue("TARGET")||"";u=`<${a}${e?` class="${e}"`:""} href="${p}" target="${$}" data-block-id="${l}">`}else u=`<${a}${o&&e!==""?` class="${e}"`:""} data-block-id="${l}">`;return r?u+` ${r} `:u+` `}},rc=t=>t.getTopBlocks(!0).filter(e=>e.getRootBlock().type===S("html")).map(e=>{try{return z.blockToCode(e)||""}catch(r){return console.error(`블록 ${e.type} 처리 중 오류 발생:`,r),""}}).join(` `),ic=t=>{let s=t.replace(/ data-block-id="[^"]*"/g,"");return s=s.replace(/]*data-type="text-block"[^>]*>(.*?)<\/span>/g,"$1"),s};z.forBlock[S("text")]=function(t){const s=t.getFieldValue("TEXT"),o=t.id,e=s.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">");return`${e}`};z.forBlock[S("css_style")]=function(t){return t.getFieldValue("CLASS")};z.forBlock[S("head")]=function(t){return` `};z.forBlock[S("hr")]=function(t){return`
`};z.forBlock[S("br")]=function(t){return`
`};z.forBlock[S("img")]=function(t){let s="";const o=t.getInputTargetBlock("css class");o&&(s=o.getFieldValue("CLASS")||"");let e="";const r=t.getField("SRC");return r&&(e=r.getValue(),e=e==="사진을 넣어주세요"?"":e),``};z.scrub_=function(t,s,o){if(t.getRootBlock().type!==S("html"))return"";const r=t.nextConnection&&t.nextConnection.targetBlock();return r&&!o?s+` -`+z.blockToCode(r):s};St(S("html"));St(S("body"));Object.values(ae).forEach(t=>{t.forEach(s=>{s.type!==S("text")&&s.type!==S("hr")&&s.type!==S("br")&&s.type!==S("img")&&St(s.type)})});const wr={kind:"categoryToolbox",contents:[{kind:"category",name:"컨테이너",categorystyle:"containerCategory",contents:ae.container},{kind:"category",name:"텍스트",categorystyle:"textCategory",contents:ae.text},{kind:"category",name:"폼",categorystyle:"formCategory",contents:ae.form},{kind:"category",name:"표",categorystyle:"tableCategory",contents:ae.table},{kind:"category",name:"리스트",categorystyle:"listCategory",contents:ae.list},{kind:"category",name:"링크",categorystyle:"linkCategory",contents:ae.link},{kind:"category",name:"내용",categorystyle:"etcCategory",contents:ae.etc}]};var Ns={exports:{}};(function(t,s){(function(o,e){t.exports=e(gn)})(_n,function(o){var e=o.__namespace__,r=e.createBlockDefinitionsFromJsonArray$$module$build$src$core$common([{type:"variables_get_dynamic",message0:"%1",args0:[{type:"field_variable",name:"VAR",variable:"%{BKY_VARIABLES_DEFAULT_NAME}"}],output:null,style:"variable_dynamic_blocks",helpUrl:"%{BKY_VARIABLES_GET_HELPURL}",tooltip:"%{BKY_VARIABLES_GET_TOOLTIP}",extensions:["contextMenu_variableDynamicSetterGetter"]},{type:"variables_set_dynamic",message0:"%{BKY_VARIABLES_SET}",args0:[{type:"field_variable",name:"VAR",variable:"%{BKY_VARIABLES_DEFAULT_NAME}"},{type:"input_value",name:"VALUE"}],previousStatement:null,nextStatement:null,style:"variable_dynamic_blocks",tooltip:"%{BKY_VARIABLES_SET_TOOLTIP}",helpUrl:"%{BKY_VARIABLES_SET_HELPURL}",extensions:["contextMenu_variableDynamicSetterGetter"]}]),l={customContextMenu:function(n){if(this.isInFlyout)(this.type==="variables_get_dynamic"||this.type==="variables_get_reporter_dynamic")&&(c={text:e.Msg$$module$build$src$core$msg.RENAME_VARIABLE,enabled:!0,callback:a(this)},d=this.getField("VAR").getText(),d={text:e.Msg$$module$build$src$core$msg.DELETE_VARIABLE.replace("%1",d),enabled:!0,callback:u(this)},n.unshift(c),n.unshift(d));else{if(this.type==="variables_get_dynamic")var i="variables_set_dynamic",c=e.Msg$$module$build$src$core$msg.VARIABLES_GET_CREATE_SET;else i="variables_get_dynamic",c=e.Msg$$module$build$src$core$msg.VARIABLES_SET_CREATE_GET;var d=this.getField("VAR");i={type:i,fields:{VAR:d.saveState(!0)}},n.push({enabled:0{this.updateType_(i)}),this.appendValueInput("TEXT").appendField(n,"TYPE"),this.setOutput(!0,"String"),this.setTooltip(()=>this.getFieldValue("TYPE")==="TEXT"?e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_TEXT:e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_NUMBER)}});var L=Object.assign({},E,{init:function(){this.mixin(R);var n=[[e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TYPE_TEXT,"TEXT"],[e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TYPE_NUMBER,"NUMBER"]];this.setHelpUrl(e.Msg$$module$build$src$core$msg.TEXT_PROMPT_HELPURL),this.setStyle("text_blocks"),n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:n}),n.setValidator(i=>{this.updateType_(i)}),this.appendDummyInput().appendField(n,"TYPE").appendField(this.newQuote_(!0)).appendField(e.fromJson$$module$build$src$core$field_registry({type:"field_input",text:""}),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,"String"),this.setTooltip(()=>this.getFieldValue("TYPE")==="TEXT"?e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_TEXT:e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_NUMBER)}});g.text_prompt=L,g.text_count={init:function(){this.jsonInit({message0:e.Msg$$module$build$src$core$msg.TEXT_COUNT_MESSAGE0,args0:[{type:"input_value",name:"SUB",check:"String"},{type:"input_value",name:"TEXT",check:"String"}],output:"Number",inputsInline:!0,style:"text_blocks",tooltip:e.Msg$$module$build$src$core$msg.TEXT_COUNT_TOOLTIP,helpUrl:e.Msg$$module$build$src$core$msg.TEXT_COUNT_HELPURL})}},g.text_replace={init:function(){this.jsonInit({message0:e.Msg$$module$build$src$core$msg.TEXT_REPLACE_MESSAGE0,args0:[{type:"input_value",name:"FROM",check:"String"},{type:"input_value",name:"TO",check:"String"},{type:"input_value",name:"TEXT",check:"String"}],output:"String",inputsInline:!0,style:"text_blocks",tooltip:e.Msg$$module$build$src$core$msg.TEXT_REPLACE_TOOLTIP,helpUrl:e.Msg$$module$build$src$core$msg.TEXT_REPLACE_HELPURL})}},g.text_reverse={init:function(){this.jsonInit({message0:e.Msg$$module$build$src$core$msg.TEXT_REVERSE_MESSAGE0,args0:[{type:"input_value",name:"TEXT",check:"String"}],output:"String",inputsInline:!0,style:"text_blocks",tooltip:e.Msg$$module$build$src$core$msg.TEXT_REVERSE_TOOLTIP,helpUrl:e.Msg$$module$build$src$core$msg.TEXT_REVERSE_HELPURL})}};var R={QUOTE_IMAGE_LEFT_DATAURI:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAQAAAAqJXdxAAAAn0lEQVQI1z3OMa5BURSF4f/cQhAKjUQhuQmFNwGJEUi0RKN5rU7FHKhpjEH3TEMtkdBSCY1EIv8r7nFX9e29V7EBAOvu7RPjwmWGH/VuF8CyN9/OAdvqIXYLvtRaNjx9mMTDyo+NjAN1HNcl9ZQ5oQMM3dgDUqDo1l8DzvwmtZN7mnD+PkmLa+4mhrxVA9fRowBWmVBhFy5gYEjKMfz9AylsaRRgGzvZAAAAAElFTkSuQmCC",QUOTE_IMAGE_RIGHT_DATAURI:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAQAAAAqJXdxAAAAqUlEQVQI1z3KvUpCcRiA8ef9E4JNHhI0aFEacm1o0BsI0Slx8wa8gLauoDnoBhq7DcfWhggONDmJJgqCPA7neJ7p934EOOKOnM8Q7PDElo/4x4lFb2DmuUjcUzS3URnGib9qaPNbuXvBO3sGPHJDRG6fGVdMSeWDP2q99FQdFrz26Gu5Tq7dFMzUvbXy8KXeAj57cOklgA+u1B5AoslLtGIHQMaCVnwDnADZIFIrXsoXrgAAAABJRU5ErkJggg==",QUOTE_IMAGE_WIDTH:12,QUOTE_IMAGE_HEIGHT:12,quoteField_:function(n){for(let i=0,c;c=this.inputList[i];i++)for(let d=0,h;h=c.fieldRow[d];d++)if(n===h.name){c.insertFieldAt(d,this.newQuote_(!0)),c.insertFieldAt(d+2,this.newQuote_(!1));return}console.warn('field named "'+n+'" not found in '+this.toDevString())},newQuote_:function(n){return n=this.RTL?!n:n,e.fromJson$$module$build$src$core$field_registry({type:"field_image",src:n?this.QUOTE_IMAGE_LEFT_DATAURI:this.QUOTE_IMAGE_RIGHT_DATAURI,width:this.QUOTE_IMAGE_WIDTH,height:this.QUOTE_IMAGE_HEIGHT,alt:n?"“":"”"})}},k=function(){this.mixin(R),this.quoteField_("TEXT")},v={itemCount_:0,mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("items",`${this.itemCount_}`),n},domToMutation:function(n){this.itemCount_=parseInt(n.getAttribute("items"),10),this.updateShape_()},saveExtraState:function(){return{itemCount:this.itemCount_}},loadExtraState:function(n){this.itemCount_=n.itemCount,this.updateShape_()},decompose:function(n){const i=n.newBlock("text_create_join_container");i.initSvg();let c=i.getInput("STACK").connection;for(let d=0;de.Msg$$module$build$src$core$msg.TEXT_INDEXOF_TOOLTIP.replace("%1",this.workspace.options.oneBasedIndex?"0":"-1"))},Z={isAt_:!1,mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("at",`${this.isAt_}`),n},domToMutation:function(n){n=n.getAttribute("at")!=="false",this.updateAt_(n)},updateAt_:function(n){this.removeInput("AT",!0),this.removeInput("ORDINAL",!0),n&&(this.appendValueInput("AT").setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)),e.Msg$$module$build$src$core$msg.TEXT_CHARAT_TAIL&&(this.removeInput("TAIL",!0),this.appendDummyInput("TAIL").appendField(e.Msg$$module$build$src$core$msg.TEXT_CHARAT_TAIL)),this.isAt_=n}},oe=function(){this.getField("WHERE").setValidator(function(n){n=n==="FROM_START"||n==="FROM_END";const i=this.getSourceBlock();n!==i.isAt_&&i.updateAt_(n)}),this.updateAt_(!0),this.setTooltip(()=>{var n=this.getFieldValue("WHERE");let i=e.Msg$$module$build$src$core$msg.TEXT_CHARAT_TOOLTIP;return(n==="FROM_START"||n==="FROM_END")&&(n=n==="FROM_START"?e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_START_TOOLTIP:e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_END_TOOLTIP)&&(i+=" "+n.replace("%1",this.workspace.options.oneBasedIndex?"#1":"#0")),i})};e.register$$module$build$src$core$extensions("text_indexOf_tooltip",P),e.register$$module$build$src$core$extensions("text_quotes",k),e.registerMixin$$module$build$src$core$extensions("quote_image_mixin",R),e.registerMutator$$module$build$src$core$extensions("text_join_mutator",v,C),e.registerMutator$$module$build$src$core$extensions("text_charAt_mutator",Z,oe),e.defineBlocks$$module$build$src$core$common(g);var de={blocks:g},Y={},D={setStatements_:function(n){this.hasStatements_!==n&&(n?(this.appendStatementInput("STACK").appendField(e.Msg$$module$build$src$core$msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=n)},updateParams_:function(){let n="";this.arguments_.length&&(n=e.Msg$$module$build$src$core$msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),e.disable$$module$build$src$core$events$utils();try{this.setFieldValue(n,"PARAMS")}finally{e.enable$$module$build$src$core$events$utils()}},mutationToDom:function(n){const i=e.createElement$$module$build$src$core$utils$xml("mutation");n&&i.setAttribute("name",this.getFieldValue("NAME"));for(let c=0;c{t.forEach(s=>{s.type!==S("text")&&s.type!==S("hr")&&s.type!==S("br")&&s.type!==S("img")&&St(s.type)})});const Dr={kind:"categoryToolbox",contents:[{kind:"category",name:"컨테이너",categorystyle:"containerCategory",contents:ae.container},{kind:"category",name:"텍스트",categorystyle:"textCategory",contents:ae.text},{kind:"category",name:"폼",categorystyle:"formCategory",contents:ae.form},{kind:"category",name:"표",categorystyle:"tableCategory",contents:ae.table},{kind:"category",name:"리스트",categorystyle:"listCategory",contents:ae.list},{kind:"category",name:"링크",categorystyle:"linkCategory",contents:ae.link},{kind:"category",name:"내용",categorystyle:"etcCategory",contents:ae.etc}]};var Ns={exports:{}};(function(t,s){(function(o,e){t.exports=e(gn)})(_n,function(o){var e=o.__namespace__,r=e.createBlockDefinitionsFromJsonArray$$module$build$src$core$common([{type:"variables_get_dynamic",message0:"%1",args0:[{type:"field_variable",name:"VAR",variable:"%{BKY_VARIABLES_DEFAULT_NAME}"}],output:null,style:"variable_dynamic_blocks",helpUrl:"%{BKY_VARIABLES_GET_HELPURL}",tooltip:"%{BKY_VARIABLES_GET_TOOLTIP}",extensions:["contextMenu_variableDynamicSetterGetter"]},{type:"variables_set_dynamic",message0:"%{BKY_VARIABLES_SET}",args0:[{type:"field_variable",name:"VAR",variable:"%{BKY_VARIABLES_DEFAULT_NAME}"},{type:"input_value",name:"VALUE"}],previousStatement:null,nextStatement:null,style:"variable_dynamic_blocks",tooltip:"%{BKY_VARIABLES_SET_TOOLTIP}",helpUrl:"%{BKY_VARIABLES_SET_HELPURL}",extensions:["contextMenu_variableDynamicSetterGetter"]}]),l={customContextMenu:function(n){if(this.isInFlyout)(this.type==="variables_get_dynamic"||this.type==="variables_get_reporter_dynamic")&&(c={text:e.Msg$$module$build$src$core$msg.RENAME_VARIABLE,enabled:!0,callback:a(this)},d=this.getField("VAR").getText(),d={text:e.Msg$$module$build$src$core$msg.DELETE_VARIABLE.replace("%1",d),enabled:!0,callback:u(this)},n.unshift(c),n.unshift(d));else{if(this.type==="variables_get_dynamic")var i="variables_set_dynamic",c=e.Msg$$module$build$src$core$msg.VARIABLES_GET_CREATE_SET;else i="variables_get_dynamic",c=e.Msg$$module$build$src$core$msg.VARIABLES_SET_CREATE_GET;var d=this.getField("VAR");i={type:i,fields:{VAR:d.saveState(!0)}},n.push({enabled:0{this.updateType_(i)}),this.appendValueInput("TEXT").appendField(n,"TYPE"),this.setOutput(!0,"String"),this.setTooltip(()=>this.getFieldValue("TYPE")==="TEXT"?e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_TEXT:e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_NUMBER)}});var L=Object.assign({},E,{init:function(){this.mixin(R);var n=[[e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TYPE_TEXT,"TEXT"],[e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TYPE_NUMBER,"NUMBER"]];this.setHelpUrl(e.Msg$$module$build$src$core$msg.TEXT_PROMPT_HELPURL),this.setStyle("text_blocks"),n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:n}),n.setValidator(i=>{this.updateType_(i)}),this.appendDummyInput().appendField(n,"TYPE").appendField(this.newQuote_(!0)).appendField(e.fromJson$$module$build$src$core$field_registry({type:"field_input",text:""}),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,"String"),this.setTooltip(()=>this.getFieldValue("TYPE")==="TEXT"?e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_TEXT:e.Msg$$module$build$src$core$msg.TEXT_PROMPT_TOOLTIP_NUMBER)}});g.text_prompt=L,g.text_count={init:function(){this.jsonInit({message0:e.Msg$$module$build$src$core$msg.TEXT_COUNT_MESSAGE0,args0:[{type:"input_value",name:"SUB",check:"String"},{type:"input_value",name:"TEXT",check:"String"}],output:"Number",inputsInline:!0,style:"text_blocks",tooltip:e.Msg$$module$build$src$core$msg.TEXT_COUNT_TOOLTIP,helpUrl:e.Msg$$module$build$src$core$msg.TEXT_COUNT_HELPURL})}},g.text_replace={init:function(){this.jsonInit({message0:e.Msg$$module$build$src$core$msg.TEXT_REPLACE_MESSAGE0,args0:[{type:"input_value",name:"FROM",check:"String"},{type:"input_value",name:"TO",check:"String"},{type:"input_value",name:"TEXT",check:"String"}],output:"String",inputsInline:!0,style:"text_blocks",tooltip:e.Msg$$module$build$src$core$msg.TEXT_REPLACE_TOOLTIP,helpUrl:e.Msg$$module$build$src$core$msg.TEXT_REPLACE_HELPURL})}},g.text_reverse={init:function(){this.jsonInit({message0:e.Msg$$module$build$src$core$msg.TEXT_REVERSE_MESSAGE0,args0:[{type:"input_value",name:"TEXT",check:"String"}],output:"String",inputsInline:!0,style:"text_blocks",tooltip:e.Msg$$module$build$src$core$msg.TEXT_REVERSE_TOOLTIP,helpUrl:e.Msg$$module$build$src$core$msg.TEXT_REVERSE_HELPURL})}};var R={QUOTE_IMAGE_LEFT_DATAURI:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAQAAAAqJXdxAAAAn0lEQVQI1z3OMa5BURSF4f/cQhAKjUQhuQmFNwGJEUi0RKN5rU7FHKhpjEH3TEMtkdBSCY1EIv8r7nFX9e29V7EBAOvu7RPjwmWGH/VuF8CyN9/OAdvqIXYLvtRaNjx9mMTDyo+NjAN1HNcl9ZQ5oQMM3dgDUqDo1l8DzvwmtZN7mnD+PkmLa+4mhrxVA9fRowBWmVBhFy5gYEjKMfz9AylsaRRgGzvZAAAAAElFTkSuQmCC",QUOTE_IMAGE_RIGHT_DATAURI:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAQAAAAqJXdxAAAAqUlEQVQI1z3KvUpCcRiA8ef9E4JNHhI0aFEacm1o0BsI0Slx8wa8gLauoDnoBhq7DcfWhggONDmJJgqCPA7neJ7p934EOOKOnM8Q7PDElo/4x4lFb2DmuUjcUzS3URnGib9qaPNbuXvBO3sGPHJDRG6fGVdMSeWDP2q99FQdFrz26Gu5Tq7dFMzUvbXy8KXeAj57cOklgA+u1B5AoslLtGIHQMaCVnwDnADZIFIrXsoXrgAAAABJRU5ErkJggg==",QUOTE_IMAGE_WIDTH:12,QUOTE_IMAGE_HEIGHT:12,quoteField_:function(n){for(let i=0,c;c=this.inputList[i];i++)for(let d=0,h;h=c.fieldRow[d];d++)if(n===h.name){c.insertFieldAt(d,this.newQuote_(!0)),c.insertFieldAt(d+2,this.newQuote_(!1));return}console.warn('field named "'+n+'" not found in '+this.toDevString())},newQuote_:function(n){return n=this.RTL?!n:n,e.fromJson$$module$build$src$core$field_registry({type:"field_image",src:n?this.QUOTE_IMAGE_LEFT_DATAURI:this.QUOTE_IMAGE_RIGHT_DATAURI,width:this.QUOTE_IMAGE_WIDTH,height:this.QUOTE_IMAGE_HEIGHT,alt:n?"“":"”"})}},k=function(){this.mixin(R),this.quoteField_("TEXT")},v={itemCount_:0,mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("items",`${this.itemCount_}`),n},domToMutation:function(n){this.itemCount_=parseInt(n.getAttribute("items"),10),this.updateShape_()},saveExtraState:function(){return{itemCount:this.itemCount_}},loadExtraState:function(n){this.itemCount_=n.itemCount,this.updateShape_()},decompose:function(n){const i=n.newBlock("text_create_join_container");i.initSvg();let c=i.getInput("STACK").connection;for(let d=0;de.Msg$$module$build$src$core$msg.TEXT_INDEXOF_TOOLTIP.replace("%1",this.workspace.options.oneBasedIndex?"0":"-1"))},Z={isAt_:!1,mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("at",`${this.isAt_}`),n},domToMutation:function(n){n=n.getAttribute("at")!=="false",this.updateAt_(n)},updateAt_:function(n){this.removeInput("AT",!0),this.removeInput("ORDINAL",!0),n&&(this.appendValueInput("AT").setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)),e.Msg$$module$build$src$core$msg.TEXT_CHARAT_TAIL&&(this.removeInput("TAIL",!0),this.appendDummyInput("TAIL").appendField(e.Msg$$module$build$src$core$msg.TEXT_CHARAT_TAIL)),this.isAt_=n}},oe=function(){this.getField("WHERE").setValidator(function(n){n=n==="FROM_START"||n==="FROM_END";const i=this.getSourceBlock();n!==i.isAt_&&i.updateAt_(n)}),this.updateAt_(!0),this.setTooltip(()=>{var n=this.getFieldValue("WHERE");let i=e.Msg$$module$build$src$core$msg.TEXT_CHARAT_TOOLTIP;return(n==="FROM_START"||n==="FROM_END")&&(n=n==="FROM_START"?e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_START_TOOLTIP:e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_END_TOOLTIP)&&(i+=" "+n.replace("%1",this.workspace.options.oneBasedIndex?"#1":"#0")),i})};e.register$$module$build$src$core$extensions("text_indexOf_tooltip",P),e.register$$module$build$src$core$extensions("text_quotes",k),e.registerMixin$$module$build$src$core$extensions("quote_image_mixin",R),e.registerMutator$$module$build$src$core$extensions("text_join_mutator",v,C),e.registerMutator$$module$build$src$core$extensions("text_charAt_mutator",Z,oe),e.defineBlocks$$module$build$src$core$common(g);var de={blocks:g},Y={},D={setStatements_:function(n){this.hasStatements_!==n&&(n?(this.appendStatementInput("STACK").appendField(e.Msg$$module$build$src$core$msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=n)},updateParams_:function(){let n="";this.arguments_.length&&(n=e.Msg$$module$build$src$core$msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),e.disable$$module$build$src$core$events$utils();try{this.setFieldValue(n,"PARAMS")}finally{e.enable$$module$build$src$core$events$utils()}},mutationToDom:function(n){const i=e.createElement$$module$build$src$core$utils$xml("mutation");n&&i.setAttribute("name",this.getFieldValue("NAME"));for(let c=0;c","GT"],["‏≥","GTE"]]},{type:"input_value",name:"B"}],inputsInline:!0,output:"Boolean",style:"logic_blocks",helpUrl:"%{BKY_LOGIC_COMPARE_HELPURL}",extensions:["logic_compare","logic_op_tooltip"]},{type:"logic_operation",message0:"%1 %2 %3",args0:[{type:"input_value",name:"A",check:"Boolean"},{type:"field_dropdown",name:"OP",options:[["%{BKY_LOGIC_OPERATION_AND}","AND"],["%{BKY_LOGIC_OPERATION_OR}","OR"]]},{type:"input_value",name:"B",check:"Boolean"}],inputsInline:!0,output:"Boolean",style:"logic_blocks",helpUrl:"%{BKY_LOGIC_OPERATION_HELPURL}",extensions:["logic_op_tooltip"]},{type:"logic_negate",message0:"%{BKY_LOGIC_NEGATE_TITLE}",args0:[{type:"input_value",name:"BOOL",check:"Boolean"}],output:"Boolean",style:"logic_blocks",tooltip:"%{BKY_LOGIC_NEGATE_TOOLTIP}",helpUrl:"%{BKY_LOGIC_NEGATE_HELPURL}"},{type:"logic_null",message0:"%{BKY_LOGIC_NULL}",output:null,style:"logic_blocks",tooltip:"%{BKY_LOGIC_NULL_TOOLTIP}",helpUrl:"%{BKY_LOGIC_NULL_HELPURL}"},{type:"logic_ternary",message0:"%{BKY_LOGIC_TERNARY_CONDITION} %1",args0:[{type:"input_value",name:"IF",check:"Boolean"}],message1:"%{BKY_LOGIC_TERNARY_IF_TRUE} %1",args1:[{type:"input_value",name:"THEN"}],message2:"%{BKY_LOGIC_TERNARY_IF_FALSE} %1",args2:[{type:"input_value",name:"ELSE"}],output:null,style:"logic_blocks",tooltip:"%{BKY_LOGIC_TERNARY_TOOLTIP}",helpUrl:"%{BKY_LOGIC_TERNARY_HELPURL}",extensions:["logic_ternary"]},{type:"controls_if_if",message0:"%{BKY_CONTROLS_IF_IF_TITLE_IF}",nextStatement:null,enableContextMenu:!1,style:"logic_blocks",tooltip:"%{BKY_CONTROLS_IF_IF_TOOLTIP}"},{type:"controls_if_elseif",message0:"%{BKY_CONTROLS_IF_ELSEIF_TITLE_ELSEIF}",previousStatement:null,nextStatement:null,enableContextMenu:!1,style:"logic_blocks",tooltip:"%{BKY_CONTROLS_IF_ELSEIF_TOOLTIP}"},{type:"controls_if_else",message0:"%{BKY_CONTROLS_IF_ELSE_TITLE_ELSE}",previousStatement:null,enableContextMenu:!1,style:"logic_blocks",tooltip:"%{BKY_CONTROLS_IF_ELSE_TOOLTIP}"}]),qs={EQ:"%{BKY_LOGIC_COMPARE_TOOLTIP_EQ}",NEQ:"%{BKY_LOGIC_COMPARE_TOOLTIP_NEQ}",LT:"%{BKY_LOGIC_COMPARE_TOOLTIP_LT}",LTE:"%{BKY_LOGIC_COMPARE_TOOLTIP_LTE}",GT:"%{BKY_LOGIC_COMPARE_TOOLTIP_GT}",GTE:"%{BKY_LOGIC_COMPARE_TOOLTIP_GTE}",AND:"%{BKY_LOGIC_OPERATION_TOOLTIP_AND}",OR:"%{BKY_LOGIC_OPERATION_TOOLTIP_OR}"};e.register$$module$build$src$core$extensions("logic_op_tooltip",e.buildTooltipForDropdown$$module$build$src$core$extensions("OP",qs));var Js={elseifCount_:0,elseCount_:0,mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;const n=e.createElement$$module$build$src$core$utils$xml("mutation");return this.elseifCount_&&n.setAttribute("elseif",String(this.elseifCount_)),this.elseCount_&&n.setAttribute("else","1"),n},domToMutation:function(n){this.elseifCount_=parseInt(n.getAttribute("elseif"),10)||0,this.elseCount_=parseInt(n.getAttribute("else"),10)||0,this.rebuildShape_()},saveExtraState:function(){if(!this.elseifCount_&&!this.elseCount_)return null;const n=Object.create(null);return this.elseifCount_&&(n.elseIfCount=this.elseifCount_),this.elseCount_&&(n.hasElse=!0),n},loadExtraState:function(n){this.elseifCount_=n.elseIfCount||0,this.elseCount_=n.hasElse?1:0,this.updateShape_()},decompose:function(n){const i=n.newBlock("controls_if_if");i.initSvg();let c=i.nextConnection;for(let d=1;d<=this.elseifCount_;d++){const h=n.newBlock("controls_if_elseif");h.initSvg(),c.connect(h.previousConnection),c=h.nextConnection}return this.elseCount_&&(n=n.newBlock("controls_if_else"),n.initSvg(),c.connect(n.previousConnection)),i},compose:function(n){n=n.nextConnection.targetBlock(),this.elseCount_=this.elseifCount_=0;const i=[null],c=[null];let d=null;for(;n;){if(!n.isInsertionMarker())switch(n.type){case"controls_if_elseif":this.elseifCount_++,i.push(n.valueConnection_),c.push(n.statementConnection_);break;case"controls_if_else":this.elseCount_++,d=n.statementConnection_;break;default:throw TypeError("Unknown block type: "+n.type)}n=n.getNextBlock()}this.updateShape_(),this.reconnectChildBlocks_(i,c,d)},saveConnections:function(n){n=n.nextConnection.targetBlock();let i=1;for(;n;){if(!n.isInsertionMarker())switch(n.type){case"controls_if_elseif":var c=this.getInput("IF"+i);const d=this.getInput("DO"+i);n.valueConnection_=c&&c.connection.targetConnection,n.statementConnection_=d&&d.connection.targetConnection,i++;break;case"controls_if_else":c=this.getInput("ELSE"),n.statementConnection_=c&&c.connection.targetConnection;break;default:throw TypeError("Unknown block type: "+n.type)}n=n.getNextBlock()}},rebuildShape_:function(){const n=[null],i=[null];let c=null;this.getInput("ELSE")&&(c=this.getInput("ELSE").connection.targetConnection);for(let d=1;this.getInput("IF"+d);d++){const h=this.getInput("IF"+d),N=this.getInput("DO"+d);n.push(h.connection.targetConnection),i.push(N.connection.targetConnection)}this.updateShape_(),this.reconnectChildBlocks_(n,i,c)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var n=1;this.getInput("IF"+n);n++)this.removeInput("IF"+n),this.removeInput("DO"+n);for(n=1;n<=this.elseifCount_;n++)this.appendValueInput("IF"+n).setCheck("Boolean").appendField(e.Msg$$module$build$src$core$msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+n).appendField(e.Msg$$module$build$src$core$msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(e.Msg$$module$build$src$core$msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(n,i,c){for(let d=1;d<=this.elseifCount_;d++){let h;(h=n[d])==null||h.reconnect(this,"IF"+d);let N;(N=i[d])==null||N.reconnect(this,"DO"+d)}c==null||c.reconnect(this,"ELSE")}};e.registerMutator$$module$build$src$core$extensions("controls_if_mutator",Js,null,["controls_if_elseif","controls_if_else"]);var zs=function(){this.setTooltip((function(){if(this.elseifCount_||this.elseCount_){if(!this.elseifCount_&&this.elseCount_)return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_2;if(this.elseifCount_&&!this.elseCount_)return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_3;if(this.elseifCount_&&this.elseCount_)return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_4}else return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_1;return""}).bind(this))};e.register$$module$build$src$core$extensions("controls_if_tooltip",zs);var Qs={onchange:function(n){this.prevBlocks_||(this.prevBlocks_=[null,null]);var i=this.getInputTargetBlock("A");const c=this.getInputTargetBlock("B");i&&c&&!this.workspace.connectionChecker.doTypeChecks(i.outputConnection,c.outputConnection)&&(e.setGroup$$module$build$src$core$events$utils(n.group),n=this.prevBlocks_[0],n!==i&&(i.unplug(),!n||n.isDisposed()||n.isShadow()||this.getInput("A").connection.connect(n.outputConnection)),i=this.prevBlocks_[1],i!==c&&(c.unplug(),!i||i.isDisposed()||i.isShadow()||this.getInput("B").connection.connect(i.outputConnection)),this.bumpNeighbours(),e.setGroup$$module$build$src$core$events$utils(!1)),this.prevBlocks_[0]=this.getInputTargetBlock("A"),this.prevBlocks_[1]=this.getInputTargetBlock("B")}},Zs=function(){this.mixin(Qs)};e.register$$module$build$src$core$extensions("logic_compare",Zs);var en={prevParentConnection_:null,onchange:function(n){const i=this.getInputTargetBlock("THEN"),c=this.getInputTargetBlock("ELSE"),d=this.outputConnection.targetConnection;if((i||c)&&d)for(let h=0;2>h;h++){const N=h===1?i:c;N&&!N.workspace.connectionChecker.doTypeChecks(N.outputConnection,d)&&(e.setGroup$$module$build$src$core$events$utils(n.group),d===this.prevParentConnection_?(this.unplug(),d.getSourceBlock().bumpNeighbours()):(N.unplug(),N.bumpNeighbours()),e.setGroup$$module$build$src$core$events$utils(!1))}this.prevParentConnection_=d}};e.registerMixin$$module$build$src$core$extensions("logic_ternary",en),e.defineBlocks$$module$build$src$core$common(ze);var tn={blocks:ze},W=e.createBlockDefinitionsFromJsonArray$$module$build$src$core$common([{type:"lists_create_empty",message0:"%{BKY_LISTS_CREATE_EMPTY_TITLE}",output:"Array",style:"list_blocks",tooltip:"%{BKY_LISTS_CREATE_EMPTY_TOOLTIP}",helpUrl:"%{BKY_LISTS_CREATE_EMPTY_HELPURL}"},{type:"lists_repeat",message0:"%{BKY_LISTS_REPEAT_TITLE}",args0:[{type:"input_value",name:"ITEM"},{type:"input_value",name:"NUM",check:"Number"}],output:"Array",style:"list_blocks",tooltip:"%{BKY_LISTS_REPEAT_TOOLTIP}",helpUrl:"%{BKY_LISTS_REPEAT_HELPURL}"},{type:"lists_reverse",message0:"%{BKY_LISTS_REVERSE_MESSAGE0}",args0:[{type:"input_value",name:"LIST",check:"Array"}],output:"Array",inputsInline:!0,style:"list_blocks",tooltip:"%{BKY_LISTS_REVERSE_TOOLTIP}",helpUrl:"%{BKY_LISTS_REVERSE_HELPURL}"},{type:"lists_isEmpty",message0:"%{BKY_LISTS_ISEMPTY_TITLE}",args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Boolean",style:"list_blocks",tooltip:"%{BKY_LISTS_ISEMPTY_TOOLTIP}",helpUrl:"%{BKY_LISTS_ISEMPTY_HELPURL}"},{type:"lists_length",message0:"%{BKY_LISTS_LENGTH_TITLE}",args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Number",style:"list_blocks",tooltip:"%{BKY_LISTS_LENGTH_TOOLTIP}",helpUrl:"%{BKY_LISTS_LENGTH_HELPURL}"}]),sn={init:function(){this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_CREATE_WITH_HELPURL),this.setStyle("list_blocks"),this.itemCount_=3,this.updateShape_(),this.setOutput(!0,"Array"),this.setMutator(new e.MutatorIcon$$module$build$src$core$icons$mutator_icon(["lists_create_with_item"],this)),this.setTooltip(e.Msg$$module$build$src$core$msg.LISTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("items",String(this.itemCount_)),n},domToMutation:function(n){if(n=n.getAttribute("items"),!n)throw new TypeError("element did not have items");this.itemCount_=parseInt(n,10),this.updateShape_()},saveExtraState:function(){return{itemCount:this.itemCount_}},loadExtraState:function(n){this.itemCount_=n.itemCount,this.updateShape_()},decompose:function(n){const i=n.newBlock("lists_create_with_container");i.initSvg();let c=i.getInput("STACK").connection;for(let d=0;de.Msg$$module$build$src$core$msg.LISTS_INDEX_OF_TOOLTIP.replace("%1",this.workspace.options.oneBasedIndex?"0":"-1"))}};W.lists_indexOf=rn;var ln={init:function(){var n=[[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_GET,"GET"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_GET_REMOVE,"GET_REMOVE"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_REMOVE,"REMOVE"]];this.WHERE_OPTIONS=[[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FIRST,"FIRST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_LAST,"LAST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_RANDOM,"RANDOM"]],this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_HELPURL),this.setStyle("list_blocks"),n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:n}),n.setValidator(function(i){i=i==="REMOVE",this.getSourceBlock().updateStatement_(i)}),this.appendValueInput("VALUE").setCheck("Array").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_INPUT_IN_LIST),this.appendDummyInput().appendField(n,"MODE").appendField("","SPACE"),this.appendDummyInput("AT"),e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0),this.setTooltip(()=>{const i=this.getFieldValue("MODE"),c=this.getFieldValue("WHERE");let d="";switch(i+" "+c){case"GET FROM_START":case"GET FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST;break;case"GET LAST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST;break;case"GET RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST;break;case"GET_REMOVE LAST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST;break;case"GET_REMOVE RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM;break;case"REMOVE FROM_START":case"REMOVE FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM;break;case"REMOVE FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST;break;case"REMOVE LAST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST;break;case"REMOVE RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM}return(c==="FROM_START"||c==="FROM_END")&&(d+=" "+(c==="FROM_START"?e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_START_TOOLTIP:e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_END_TOOLTIP).replace("%1",this.workspace.options.oneBasedIndex?"#1":"#0")),d})},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");n.setAttribute("statement",String(!this.outputConnection));const i=this.getInput("AT")instanceof e.ValueInput$$module$build$src$core$inputs$value_input;return n.setAttribute("at",String(i)),n},domToMutation:function(n){const i=n.getAttribute("statement")==="true";this.updateStatement_(i),n=n.getAttribute("at")!=="false",this.updateAt_(n)},saveExtraState:function(){return this.outputConnection?null:{isStatement:!0}},loadExtraState:function(n){n.isStatement?this.updateStatement_(!0):typeof n=="string"&&this.domToMutation(e.textToDom$$module$build$src$core$utils$xml(n))},updateStatement_:function(n){n!==!this.outputConnection&&(this.unplug(!0,!0),n?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(n){this.removeInput("AT"),this.removeInput("ORDINAL",!0),n?(this.appendValueInput("AT").setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT");const i=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:this.WHERE_OPTIONS});i.setValidator(function(c){const d=c==="FROM_START"||c==="FROM_END";if(d!==n){const h=this.getSourceBlock();return h.updateAt_(d),h.setFieldValue(c,"WHERE"),null}}),this.getInput("AT").appendField(i,"WHERE"),e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}};W.lists_getIndex=ln;var an={init:function(){var n=[[e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_SET,"SET"],[e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_INSERT,"INSERT"]];this.WHERE_OPTIONS=[[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FIRST,"FIRST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_LAST,"LAST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_RANDOM,"RANDOM"]],this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_HELPURL),this.setStyle("list_blocks"),this.appendValueInput("LIST").setCheck("Array").appendField(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_INPUT_IN_LIST),n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:n}),this.appendDummyInput().appendField(n,"MODE").appendField("","SPACE"),this.appendDummyInput("AT"),this.appendValueInput("TO").appendField(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_INPUT_TO),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP),this.updateAt_(!0),this.setTooltip(()=>{const i=this.getFieldValue("MODE"),c=this.getFieldValue("WHERE");let d="";switch(i+" "+c){case"SET FROM_START":case"SET FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM;break;case"SET FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST;break;case"SET LAST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST;break;case"SET RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM;break;case"INSERT FROM_START":case"INSERT FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM;break;case"INSERT FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST;break;case"INSERT LAST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST;break;case"INSERT RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM}return(c==="FROM_START"||c==="FROM_END")&&(d+=" "+e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",this.workspace.options.oneBasedIndex?"#1":"#0")),d})},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation"),i=this.getInput("AT")instanceof e.ValueInput$$module$build$src$core$inputs$value_input;return n.setAttribute("at",String(i)),n},domToMutation:function(n){n=n.getAttribute("at")!=="false",this.updateAt_(n)},saveExtraState:function(){return null},loadExtraState:function(){},updateAt_:function(n){this.removeInput("AT"),this.removeInput("ORDINAL",!0),n?(this.appendValueInput("AT").setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT");const i=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:this.WHERE_OPTIONS});i.setValidator(function(c){const d=c==="FROM_START"||c==="FROM_END";if(d!==n){const h=this.getSourceBlock();return h.updateAt_(d),h.setFieldValue(c,"WHERE"),null}}),this.moveInputBefore("AT","TO"),this.getInput("ORDINAL")&&this.moveInputBefore("ORDINAL","TO"),this.getInput("AT").appendField(i,"WHERE")}};W.lists_setIndex=an;var cn={init:function(){this.WHERE_OPTIONS_1=[[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_START_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_START_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_HELPURL),this.setStyle("list_blocks"),this.appendValueInput("LIST").setCheck("Array").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_INPUT_IN_LIST),this.appendDummyInput("AT1"),this.appendDummyInput("AT2"),e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TAIL&&this.appendDummyInput("TAIL").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TAIL),this.setInputsInline(!0),this.setOutput(!0,"Array"),this.updateAt_(1,!0),this.updateAt_(2,!0),this.setTooltip(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TOOLTIP)},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");var i=this.getInput("AT1")instanceof e.ValueInput$$module$build$src$core$inputs$value_input;return n.setAttribute("at1",String(i)),i=this.getInput("AT2")instanceof e.ValueInput$$module$build$src$core$inputs$value_input,n.setAttribute("at2",String(i)),n},domToMutation:function(n){const i=n.getAttribute("at1")==="true";n=n.getAttribute("at2")==="true",this.updateAt_(1,i),this.updateAt_(2,n)},saveExtraState:function(){return null},loadExtraState:function(){},updateAt_:function(n,i){this.removeInput("AT"+n),this.removeInput("ORDINAL"+n,!0),i?(this.appendValueInput("AT"+n).setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL"+n).appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT"+n);const c=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:this["WHERE_OPTIONS_"+n]});c.setValidator(function(d){const h=d==="FROM_START"||d==="FROM_END";if(h!==i){const N=this.getSourceBlock();return N.updateAt_(n,h),N.setFieldValue(d,"WHERE"+n),null}}),this.getInput("AT"+n).appendField(c,"WHERE"+n),n===1&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2")),e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TAIL&&this.moveInputBefore("TAIL",null)}};W.lists_getSublist=cn,W.lists_sort={init:function(){this.jsonInit({message0:"%{BKY_LISTS_SORT_TITLE}",args0:[{type:"field_dropdown",name:"TYPE",options:[["%{BKY_LISTS_SORT_TYPE_NUMERIC}","NUMERIC"],["%{BKY_LISTS_SORT_TYPE_TEXT}","TEXT"],["%{BKY_LISTS_SORT_TYPE_IGNORECASE}","IGNORE_CASE"]]},{type:"field_dropdown",name:"DIRECTION",options:[["%{BKY_LISTS_SORT_ORDER_ASCENDING}","1"],["%{BKY_LISTS_SORT_ORDER_DESCENDING}","-1"]]},{type:"input_value",name:"LIST",check:"Array"}],output:"Array",style:"list_blocks",tooltip:"%{BKY_LISTS_SORT_TOOLTIP}",helpUrl:"%{BKY_LISTS_SORT_HELPURL}"})}},W.lists_split={init:function(){const n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:[[e.Msg$$module$build$src$core$msg.LISTS_SPLIT_LIST_FROM_TEXT,"SPLIT"],[e.Msg$$module$build$src$core$msg.LISTS_SPLIT_TEXT_FROM_LIST,"JOIN"]]});if(!n)throw Error("field_dropdown not found");n.setValidator(i=>{this.updateType_(i)}),this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_SPLIT_HELPURL),this.setStyle("list_blocks"),this.appendValueInput("INPUT").setCheck("String").appendField(n,"MODE"),this.appendValueInput("DELIM").setCheck("String").appendField(e.Msg$$module$build$src$core$msg.LISTS_SPLIT_WITH_DELIMITER),this.setInputsInline(!0),this.setOutput(!0,"Array"),this.setTooltip(()=>{const i=this.getFieldValue("MODE");if(i==="SPLIT")return e.Msg$$module$build$src$core$msg.LISTS_SPLIT_TOOLTIP_SPLIT;if(i==="JOIN")return e.Msg$$module$build$src$core$msg.LISTS_SPLIT_TOOLTIP_JOIN;throw Error("Unknown mode: "+i)})},updateType_:function(n){if(this.getFieldValue("MODE")!==n){const i=this.getInput("INPUT").connection;i.setShadowDom(null);const c=i.targetBlock();c&&(i.disconnect(),c.isShadow()?c.dispose(!1):this.bumpNeighbours())}n==="SPLIT"?(this.outputConnection.setCheck("Array"),this.getInput("INPUT").setCheck("String")):(this.outputConnection.setCheck("String"),this.getInput("INPUT").setCheck("Array"))},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("mode",this.getFieldValue("MODE")),n},domToMutation:function(n){this.updateType_(n.getAttribute("mode"))},saveExtraState:function(){return null},loadExtraState:function(){}},e.defineBlocks$$module$build$src$core$common(W);var un={blocks:W},dn=Object.assign({},W,ze,Je,qe,Y,g,p,r),At={blocks:dn,lists:un,logic:tn,loops:Ws,math:Vs,procedures:Ds,texts:de,variables:O,variablesDynamic:m};return At.__namespace__=e,At})})(Ns);var lc=Ns.exports;const vr={...rs.Zelos.blockStyles,defaultBlock1:{colourPrimary:"#B2DAFF",colourSecondary:"#F4F8FA",colourTertiary:"#2677C3"},defaultBlock2:{colourPrimary:"#67B6FF",colourSecondary:"F4F8FA",colourTertiary:"#2677C3"},defaultBlock3:{colourPrimary:"#4195E4",colourSecondary:"#F4F8FA",colourTertiary:"#2677C3"},defaultBlockCss:{colourPrimary:"#FFF3AD",colourSecondary:"#41505B",colourTertiary:"#FFE241"}},ac=Hn.defineTheme("custom",{name:"custom",base:rs.Classic,componentStyles:{workspaceBackgroundColour:"#fafafa",toolboxBackgroundColour:"blackBackground",flyoutBackgroundColour:"white",flyoutOpacity:1,scrollbarColour:"#000000",insertionMarkerColour:"#fff",insertionMarkerOpacity:.3,scrollbarOpacity:.001,cursorColour:"#d0d0d0"},categoryStyles:Rr,blockStyles:vr});class Ot extends Vn{position(){if(!this.isVisible()||!this.targetWorkspace.isVisible())return;const s=this.targetWorkspace.getToolbox(),o=7,e=0;if(!s)throw new Error("no toolbox");const r=s.getContentAreaMetrics();this.width_=r.width,this.height_=r.height,this.positionAt_(r.width-7,r.height-s.getContentHeight(),o,e)}hide(){}getFlyoutScale(){return 1}positionNewBlock(s,o){const e=this.targetWorkspace,r=this.svgGroup_;if(!r)throw new Error("flyout의 element를 찾을 수 없습니다.");const l=e.getOriginOffsetInPixels(),a=r.getBoundingClientRect(),u=e.getParentSvg().getBoundingClientRect(),m=this.workspace_.getCanvas().getAttribute("transform");if(!m)throw new Error("blocklyBlockCanvas에서 transform 값을 찾을 수 없습니다.");const p=new J.Coordinate(a.x-u.x,a.y-u.y),$=this.getTranslate_(m);p.x=a.x-u.x,p.y=a.y-u.y+$.y;const T=s.getRelativeToSurfaceXY();T.scale(this.workspace_.scale);const b=J.Coordinate.sum(p,T),O=J.Coordinate.difference(b,l);O.scale(1/e.scale),o.moveTo(new J.Coordinate(O.x,O.y))}getTranslate_(s){const o=s==null?void 0:s.match(/translate\(\s*[\d.-]+,\s*([\d.-]+)\)/);if(!o)throw new Error("일치하는 translate 값이 없습니다.");return{x:parseFloat(o[0]),y:parseFloat(o[1])}}}q(Ot,"registryName","FixedFlyout");const Fr=t=>/^[a-zA-Z_-]/.test(t),Ur=t=>/^.[a-zA-Z0-9_-]*$/.test(t);class Hr extends vn{constructor(s,o,e){super(String(s??""),o,e)}initView(){super.initView(),this.textElement_&&(this.textElement_.style.fill="#1E272E")}}class ee{static createElement(s,o,e){const r=document.createElement(s);for(const l in o)r.setAttribute(l,`${o[l]}`);return e&&e.appendChild(r),r}static createSvgElement(s,o,e){const r=document.createElementNS(this.SVG_NS,`${s}`);for(const l in o)r.setAttribute(l,`${o[l]}`);return e&&e.appendChild(r),r}static insertAfter(s,o){const e=o.nextElementSibling,r=o.parentNode;if(!r)throw Error("Reference node has no parent.");e?r.insertBefore(s,e):r.appendChild(s)}}q(ee,"SVG_NS","http://www.w3.org/2000/svg");const Vr=({workspaceId:t,title:s,thumbnail:o,lastEdited:e,onClick:r})=>{const{openModal:l,closeModal:a,setModalContent:u,setHandleModalCloseButton:m,setHandleModalConfirmButton:p}=Zt(),{mutate:$}=oi(),T=()=>{u(`${s}을(를) - 삭제하겠습니까?`),m(()=>{a()}),p(()=>{$(t)}),l()};return f.jsxs("div",{className:"relative overflow-hidden rounded-lg bg-white shadow-md",children:[f.jsx("button",{className:"absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-full bg-white p-2 text-gray-300 transition-colors hover:bg-red-500 hover:text-white",onClick:T,"aria-label":"워크스페이스 삭제 버튼",children:f.jsx(In,{width:16})}),f.jsxs("div",{className:"cursor-pointer",onClick:r,children:[f.jsx("div",{className:"flex h-[180px] overflow-hidden border-b border-gray-50 bg-gray-50",children:o&&f.jsx("img",{src:o,alt:"workspace thumbnail",className:"w-full object-cover object-left-top"})}),f.jsxs("aside",{className:"p-4 pb-6",children:[f.jsx("h2",{className:"text-bold-md mb-1.5 text-gray-500",children:s}),f.jsx("p",{className:"text-medium-sm text-gray-400",children:Pn(e)})]})]})]})};Vr.__docgenInfo={description:`@description -워크스페이스 아이템 컴포넌트`,methods:[],displayName:"WorkspaceItem",props:{workspaceId:{required:!0,tsType:{name:"string"},description:""},title:{required:!0,tsType:{name:"string"},description:""},thumbnail:{required:!0,tsType:{name:"string"},description:""},lastEdited:{required:!0,tsType:{name:"string"},description:""},onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const Gr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M20.5 8.5L12 17L3.5 8.5",stroke:"#222222",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Yr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M3.5 15.5L12 7L20.5 15.5",stroke:"#222222",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}));var ks=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t))(ks||{});const Ms=({id:t,options:s,value:o,onChange:e,placeholder:r="",size:l="MEDIUM",disabled:a=!1})=>{var de,Y;const[u,m]=A.useState(!1),[p,$]=A.useState(o),[T,b]=A.useState("bottom"),[O,g]=A.useState(0),[I,E]=A.useState(!1),L=A.useRef(null),R=A.useRef(null),{screenHeight:k}=Bs();A.useEffect(()=>{$(o)},[o]),A.useEffect(()=>{const D=w=>{var re,xe;const F=(re=L.current)==null?void 0:re.contains(w.target),j=(xe=R.current)==null?void 0:xe.contains(w.target);!F&&!j&&m(!1)},X=w=>{var F;u&&((F=R.current)!=null&&F.contains(w.target)||m(!1))};return document.addEventListener("mousedown",D),document.addEventListener("scroll",X,!0),()=>{document.removeEventListener("mousedown",D),document.removeEventListener("scroll",X,!0)}},[u]),A.useEffect(()=>{if(u&&R.current){E(!1);const D=new ResizeObserver(X=>{const w=X[0].contentRect.height;if(w>0&&(g(w),L.current)){const F=L.current.getBoundingClientRect(),j=k-F.bottom,re=F.top;b(jw?"top":"bottom"),E(!0)}});return D.observe(R.current),()=>D.disconnect()}},[u,k]);const v=()=>{if(!a){if(u){m(!1);return}m(!0),b("bottom")}},C=D=>{$(D),e(D),m(!1)},P=D=>D.length===0?f.jsx(f.Fragment,{}):typeof D[0]=="string"?D.map(F=>f.jsx("li",{onClick:()=>C(F),className:`cursor-pointer rounded-lg px-4 py-2 hover:bg-yellow-200 ${F===p?"bg-yellow-500 text-gray-500":"text-gray-300"}`,children:F},F)):D.map(w=>f.jsx("li",{onClick:()=>C(w.value),className:`cursor-pointer rounded-lg px-4 py-2 hover:bg-yellow-200 ${w.value===p?"bg-yellow-500 text-gray-500":"text-gray-300"}`,children:w.label},w.value)),oe=((D,X)=>{var F;if(X.length===0)return r;if(typeof X[0]=="string"){const j=X;return j.find(re=>re===D)||j[0]}return((F=X.find(j=>j.value===D))==null?void 0:F.label)||r})(p,s);return f.jsxs("div",{className:`${l==="MEDIUM"?"w-52":"w-36"} relative text-ellipsis whitespace-nowrap`,ref:L,id:t||void 0,children:[f.jsx("button",{type:"button",onClick:v,disabled:a,className:"text-medium-md w-full rounded-lg border border-gray-100 bg-white px-4 py-1.5 text-left focus:outline-none disabled:border disabled:border-gray-100 disabled:bg-gray-50","aria-label":"선택 옵션 열고 닫기 버튼",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsx("span",{className:`${p?"text-gray-500":"text-gray-200"}`,children:oe}),u?f.jsx(Gr,{width:12}):f.jsx(Yr,{width:12})]})}),u&&Rn.createPortal(f.jsx("div",{ref:R,className:"fixed z-[9999] min-w-24 rounded-lg border border-gray-100 bg-white shadow-lg transition-opacity duration-200",style:{left:L.current?`${L.current.getBoundingClientRect().left}px`:"0",top:T==="bottom"?`${(((de=L.current)==null?void 0:de.getBoundingClientRect().bottom)||0)+4}px`:`${(((Y=L.current)==null?void 0:Y.getBoundingClientRect().top)||0)-O-4}px`,opacity:I?1:0,visibility:I?"visible":"hidden"},children:f.jsx("ul",{className:"flex max-h-48 flex-col gap-1 overflow-y-auto px-2 py-2",children:P(s)})}),document.getElementById("dropdownDiv"))]})};Ms.__docgenInfo={description:"",methods:[],displayName:"Select",props:{id:{required:!1,tsType:{name:"string"},description:""},options:{required:!0,tsType:{name:"union",raw:"TOption[] | string[]",elements:[{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +`))this.quarkIds_=i;else{if(i.length!==n.length)throw RangeError("paramNames and paramIds must be the same length.");this.quarkIds_||(this.quarkConnections_={},this.quarkIds_=[]);for(let h=0;h","GT"],["‏≥","GTE"]]},{type:"input_value",name:"B"}],inputsInline:!0,output:"Boolean",style:"logic_blocks",helpUrl:"%{BKY_LOGIC_COMPARE_HELPURL}",extensions:["logic_compare","logic_op_tooltip"]},{type:"logic_operation",message0:"%1 %2 %3",args0:[{type:"input_value",name:"A",check:"Boolean"},{type:"field_dropdown",name:"OP",options:[["%{BKY_LOGIC_OPERATION_AND}","AND"],["%{BKY_LOGIC_OPERATION_OR}","OR"]]},{type:"input_value",name:"B",check:"Boolean"}],inputsInline:!0,output:"Boolean",style:"logic_blocks",helpUrl:"%{BKY_LOGIC_OPERATION_HELPURL}",extensions:["logic_op_tooltip"]},{type:"logic_negate",message0:"%{BKY_LOGIC_NEGATE_TITLE}",args0:[{type:"input_value",name:"BOOL",check:"Boolean"}],output:"Boolean",style:"logic_blocks",tooltip:"%{BKY_LOGIC_NEGATE_TOOLTIP}",helpUrl:"%{BKY_LOGIC_NEGATE_HELPURL}"},{type:"logic_null",message0:"%{BKY_LOGIC_NULL}",output:null,style:"logic_blocks",tooltip:"%{BKY_LOGIC_NULL_TOOLTIP}",helpUrl:"%{BKY_LOGIC_NULL_HELPURL}"},{type:"logic_ternary",message0:"%{BKY_LOGIC_TERNARY_CONDITION} %1",args0:[{type:"input_value",name:"IF",check:"Boolean"}],message1:"%{BKY_LOGIC_TERNARY_IF_TRUE} %1",args1:[{type:"input_value",name:"THEN"}],message2:"%{BKY_LOGIC_TERNARY_IF_FALSE} %1",args2:[{type:"input_value",name:"ELSE"}],output:null,style:"logic_blocks",tooltip:"%{BKY_LOGIC_TERNARY_TOOLTIP}",helpUrl:"%{BKY_LOGIC_TERNARY_HELPURL}",extensions:["logic_ternary"]},{type:"controls_if_if",message0:"%{BKY_CONTROLS_IF_IF_TITLE_IF}",nextStatement:null,enableContextMenu:!1,style:"logic_blocks",tooltip:"%{BKY_CONTROLS_IF_IF_TOOLTIP}"},{type:"controls_if_elseif",message0:"%{BKY_CONTROLS_IF_ELSEIF_TITLE_ELSEIF}",previousStatement:null,nextStatement:null,enableContextMenu:!1,style:"logic_blocks",tooltip:"%{BKY_CONTROLS_IF_ELSEIF_TOOLTIP}"},{type:"controls_if_else",message0:"%{BKY_CONTROLS_IF_ELSE_TITLE_ELSE}",previousStatement:null,enableContextMenu:!1,style:"logic_blocks",tooltip:"%{BKY_CONTROLS_IF_ELSE_TOOLTIP}"}]),qs={EQ:"%{BKY_LOGIC_COMPARE_TOOLTIP_EQ}",NEQ:"%{BKY_LOGIC_COMPARE_TOOLTIP_NEQ}",LT:"%{BKY_LOGIC_COMPARE_TOOLTIP_LT}",LTE:"%{BKY_LOGIC_COMPARE_TOOLTIP_LTE}",GT:"%{BKY_LOGIC_COMPARE_TOOLTIP_GT}",GTE:"%{BKY_LOGIC_COMPARE_TOOLTIP_GTE}",AND:"%{BKY_LOGIC_OPERATION_TOOLTIP_AND}",OR:"%{BKY_LOGIC_OPERATION_TOOLTIP_OR}"};e.register$$module$build$src$core$extensions("logic_op_tooltip",e.buildTooltipForDropdown$$module$build$src$core$extensions("OP",qs));var Js={elseifCount_:0,elseCount_:0,mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;const n=e.createElement$$module$build$src$core$utils$xml("mutation");return this.elseifCount_&&n.setAttribute("elseif",String(this.elseifCount_)),this.elseCount_&&n.setAttribute("else","1"),n},domToMutation:function(n){this.elseifCount_=parseInt(n.getAttribute("elseif"),10)||0,this.elseCount_=parseInt(n.getAttribute("else"),10)||0,this.rebuildShape_()},saveExtraState:function(){if(!this.elseifCount_&&!this.elseCount_)return null;const n=Object.create(null);return this.elseifCount_&&(n.elseIfCount=this.elseifCount_),this.elseCount_&&(n.hasElse=!0),n},loadExtraState:function(n){this.elseifCount_=n.elseIfCount||0,this.elseCount_=n.hasElse?1:0,this.updateShape_()},decompose:function(n){const i=n.newBlock("controls_if_if");i.initSvg();let c=i.nextConnection;for(let d=1;d<=this.elseifCount_;d++){const h=n.newBlock("controls_if_elseif");h.initSvg(),c.connect(h.previousConnection),c=h.nextConnection}return this.elseCount_&&(n=n.newBlock("controls_if_else"),n.initSvg(),c.connect(n.previousConnection)),i},compose:function(n){n=n.nextConnection.targetBlock(),this.elseCount_=this.elseifCount_=0;const i=[null],c=[null];let d=null;for(;n;){if(!n.isInsertionMarker())switch(n.type){case"controls_if_elseif":this.elseifCount_++,i.push(n.valueConnection_),c.push(n.statementConnection_);break;case"controls_if_else":this.elseCount_++,d=n.statementConnection_;break;default:throw TypeError("Unknown block type: "+n.type)}n=n.getNextBlock()}this.updateShape_(),this.reconnectChildBlocks_(i,c,d)},saveConnections:function(n){n=n.nextConnection.targetBlock();let i=1;for(;n;){if(!n.isInsertionMarker())switch(n.type){case"controls_if_elseif":var c=this.getInput("IF"+i);const d=this.getInput("DO"+i);n.valueConnection_=c&&c.connection.targetConnection,n.statementConnection_=d&&d.connection.targetConnection,i++;break;case"controls_if_else":c=this.getInput("ELSE"),n.statementConnection_=c&&c.connection.targetConnection;break;default:throw TypeError("Unknown block type: "+n.type)}n=n.getNextBlock()}},rebuildShape_:function(){const n=[null],i=[null];let c=null;this.getInput("ELSE")&&(c=this.getInput("ELSE").connection.targetConnection);for(let d=1;this.getInput("IF"+d);d++){const h=this.getInput("IF"+d),N=this.getInput("DO"+d);n.push(h.connection.targetConnection),i.push(N.connection.targetConnection)}this.updateShape_(),this.reconnectChildBlocks_(n,i,c)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var n=1;this.getInput("IF"+n);n++)this.removeInput("IF"+n),this.removeInput("DO"+n);for(n=1;n<=this.elseifCount_;n++)this.appendValueInput("IF"+n).setCheck("Boolean").appendField(e.Msg$$module$build$src$core$msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+n).appendField(e.Msg$$module$build$src$core$msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(e.Msg$$module$build$src$core$msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(n,i,c){for(let d=1;d<=this.elseifCount_;d++){let h;(h=n[d])==null||h.reconnect(this,"IF"+d);let N;(N=i[d])==null||N.reconnect(this,"DO"+d)}c==null||c.reconnect(this,"ELSE")}};e.registerMutator$$module$build$src$core$extensions("controls_if_mutator",Js,null,["controls_if_elseif","controls_if_else"]);var zs=function(){this.setTooltip((function(){if(this.elseifCount_||this.elseCount_){if(!this.elseifCount_&&this.elseCount_)return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_2;if(this.elseifCount_&&!this.elseCount_)return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_3;if(this.elseifCount_&&this.elseCount_)return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_4}else return e.Msg$$module$build$src$core$msg.CONTROLS_IF_TOOLTIP_1;return""}).bind(this))};e.register$$module$build$src$core$extensions("controls_if_tooltip",zs);var Qs={onchange:function(n){this.prevBlocks_||(this.prevBlocks_=[null,null]);var i=this.getInputTargetBlock("A");const c=this.getInputTargetBlock("B");i&&c&&!this.workspace.connectionChecker.doTypeChecks(i.outputConnection,c.outputConnection)&&(e.setGroup$$module$build$src$core$events$utils(n.group),n=this.prevBlocks_[0],n!==i&&(i.unplug(),!n||n.isDisposed()||n.isShadow()||this.getInput("A").connection.connect(n.outputConnection)),i=this.prevBlocks_[1],i!==c&&(c.unplug(),!i||i.isDisposed()||i.isShadow()||this.getInput("B").connection.connect(i.outputConnection)),this.bumpNeighbours(),e.setGroup$$module$build$src$core$events$utils(!1)),this.prevBlocks_[0]=this.getInputTargetBlock("A"),this.prevBlocks_[1]=this.getInputTargetBlock("B")}},Zs=function(){this.mixin(Qs)};e.register$$module$build$src$core$extensions("logic_compare",Zs);var en={prevParentConnection_:null,onchange:function(n){const i=this.getInputTargetBlock("THEN"),c=this.getInputTargetBlock("ELSE"),d=this.outputConnection.targetConnection;if((i||c)&&d)for(let h=0;2>h;h++){const N=h===1?i:c;N&&!N.workspace.connectionChecker.doTypeChecks(N.outputConnection,d)&&(e.setGroup$$module$build$src$core$events$utils(n.group),d===this.prevParentConnection_?(this.unplug(),d.getSourceBlock().bumpNeighbours()):(N.unplug(),N.bumpNeighbours()),e.setGroup$$module$build$src$core$events$utils(!1))}this.prevParentConnection_=d}};e.registerMixin$$module$build$src$core$extensions("logic_ternary",en),e.defineBlocks$$module$build$src$core$common(ze);var tn={blocks:ze},W=e.createBlockDefinitionsFromJsonArray$$module$build$src$core$common([{type:"lists_create_empty",message0:"%{BKY_LISTS_CREATE_EMPTY_TITLE}",output:"Array",style:"list_blocks",tooltip:"%{BKY_LISTS_CREATE_EMPTY_TOOLTIP}",helpUrl:"%{BKY_LISTS_CREATE_EMPTY_HELPURL}"},{type:"lists_repeat",message0:"%{BKY_LISTS_REPEAT_TITLE}",args0:[{type:"input_value",name:"ITEM"},{type:"input_value",name:"NUM",check:"Number"}],output:"Array",style:"list_blocks",tooltip:"%{BKY_LISTS_REPEAT_TOOLTIP}",helpUrl:"%{BKY_LISTS_REPEAT_HELPURL}"},{type:"lists_reverse",message0:"%{BKY_LISTS_REVERSE_MESSAGE0}",args0:[{type:"input_value",name:"LIST",check:"Array"}],output:"Array",inputsInline:!0,style:"list_blocks",tooltip:"%{BKY_LISTS_REVERSE_TOOLTIP}",helpUrl:"%{BKY_LISTS_REVERSE_HELPURL}"},{type:"lists_isEmpty",message0:"%{BKY_LISTS_ISEMPTY_TITLE}",args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Boolean",style:"list_blocks",tooltip:"%{BKY_LISTS_ISEMPTY_TOOLTIP}",helpUrl:"%{BKY_LISTS_ISEMPTY_HELPURL}"},{type:"lists_length",message0:"%{BKY_LISTS_LENGTH_TITLE}",args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Number",style:"list_blocks",tooltip:"%{BKY_LISTS_LENGTH_TOOLTIP}",helpUrl:"%{BKY_LISTS_LENGTH_HELPURL}"}]),sn={init:function(){this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_CREATE_WITH_HELPURL),this.setStyle("list_blocks"),this.itemCount_=3,this.updateShape_(),this.setOutput(!0,"Array"),this.setMutator(new e.MutatorIcon$$module$build$src$core$icons$mutator_icon(["lists_create_with_item"],this)),this.setTooltip(e.Msg$$module$build$src$core$msg.LISTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("items",String(this.itemCount_)),n},domToMutation:function(n){if(n=n.getAttribute("items"),!n)throw new TypeError("element did not have items");this.itemCount_=parseInt(n,10),this.updateShape_()},saveExtraState:function(){return{itemCount:this.itemCount_}},loadExtraState:function(n){this.itemCount_=n.itemCount,this.updateShape_()},decompose:function(n){const i=n.newBlock("lists_create_with_container");i.initSvg();let c=i.getInput("STACK").connection;for(let d=0;de.Msg$$module$build$src$core$msg.LISTS_INDEX_OF_TOOLTIP.replace("%1",this.workspace.options.oneBasedIndex?"0":"-1"))}};W.lists_indexOf=rn;var ln={init:function(){var n=[[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_GET,"GET"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_GET_REMOVE,"GET_REMOVE"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_REMOVE,"REMOVE"]];this.WHERE_OPTIONS=[[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FIRST,"FIRST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_LAST,"LAST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_RANDOM,"RANDOM"]],this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_HELPURL),this.setStyle("list_blocks"),n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:n}),n.setValidator(function(i){i=i==="REMOVE",this.getSourceBlock().updateStatement_(i)}),this.appendValueInput("VALUE").setCheck("Array").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_INPUT_IN_LIST),this.appendDummyInput().appendField(n,"MODE").appendField("","SPACE"),this.appendDummyInput("AT"),e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0),this.setTooltip(()=>{const i=this.getFieldValue("MODE"),c=this.getFieldValue("WHERE");let d="";switch(i+" "+c){case"GET FROM_START":case"GET FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST;break;case"GET LAST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST;break;case"GET RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST;break;case"GET_REMOVE LAST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST;break;case"GET_REMOVE RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM;break;case"REMOVE FROM_START":case"REMOVE FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM;break;case"REMOVE FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST;break;case"REMOVE LAST":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST;break;case"REMOVE RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM}return(c==="FROM_START"||c==="FROM_END")&&(d+=" "+(c==="FROM_START"?e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_START_TOOLTIP:e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_END_TOOLTIP).replace("%1",this.workspace.options.oneBasedIndex?"#1":"#0")),d})},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");n.setAttribute("statement",String(!this.outputConnection));const i=this.getInput("AT")instanceof e.ValueInput$$module$build$src$core$inputs$value_input;return n.setAttribute("at",String(i)),n},domToMutation:function(n){const i=n.getAttribute("statement")==="true";this.updateStatement_(i),n=n.getAttribute("at")!=="false",this.updateAt_(n)},saveExtraState:function(){return this.outputConnection?null:{isStatement:!0}},loadExtraState:function(n){n.isStatement?this.updateStatement_(!0):typeof n=="string"&&this.domToMutation(e.textToDom$$module$build$src$core$utils$xml(n))},updateStatement_:function(n){n!==!this.outputConnection&&(this.unplug(!0,!0),n?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(n){this.removeInput("AT"),this.removeInput("ORDINAL",!0),n?(this.appendValueInput("AT").setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT");const i=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:this.WHERE_OPTIONS});i.setValidator(function(c){const d=c==="FROM_START"||c==="FROM_END";if(d!==n){const h=this.getSourceBlock();return h.updateAt_(d),h.setFieldValue(c,"WHERE"),null}}),this.getInput("AT").appendField(i,"WHERE"),e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}};W.lists_getIndex=ln;var an={init:function(){var n=[[e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_SET,"SET"],[e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_INSERT,"INSERT"]];this.WHERE_OPTIONS=[[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_FIRST,"FIRST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_LAST,"LAST"],[e.Msg$$module$build$src$core$msg.LISTS_GET_INDEX_RANDOM,"RANDOM"]],this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_HELPURL),this.setStyle("list_blocks"),this.appendValueInput("LIST").setCheck("Array").appendField(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_INPUT_IN_LIST),n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:n}),this.appendDummyInput().appendField(n,"MODE").appendField("","SPACE"),this.appendDummyInput("AT"),this.appendValueInput("TO").appendField(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_INPUT_TO),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP),this.updateAt_(!0),this.setTooltip(()=>{const i=this.getFieldValue("MODE"),c=this.getFieldValue("WHERE");let d="";switch(i+" "+c){case"SET FROM_START":case"SET FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM;break;case"SET FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST;break;case"SET LAST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST;break;case"SET RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM;break;case"INSERT FROM_START":case"INSERT FROM_END":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM;break;case"INSERT FIRST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST;break;case"INSERT LAST":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST;break;case"INSERT RANDOM":d=e.Msg$$module$build$src$core$msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM}return(c==="FROM_START"||c==="FROM_END")&&(d+=" "+e.Msg$$module$build$src$core$msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",this.workspace.options.oneBasedIndex?"#1":"#0")),d})},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation"),i=this.getInput("AT")instanceof e.ValueInput$$module$build$src$core$inputs$value_input;return n.setAttribute("at",String(i)),n},domToMutation:function(n){n=n.getAttribute("at")!=="false",this.updateAt_(n)},saveExtraState:function(){return null},loadExtraState:function(){},updateAt_:function(n){this.removeInput("AT"),this.removeInput("ORDINAL",!0),n?(this.appendValueInput("AT").setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT");const i=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:this.WHERE_OPTIONS});i.setValidator(function(c){const d=c==="FROM_START"||c==="FROM_END";if(d!==n){const h=this.getSourceBlock();return h.updateAt_(d),h.setFieldValue(c,"WHERE"),null}}),this.moveInputBefore("AT","TO"),this.getInput("ORDINAL")&&this.moveInputBefore("ORDINAL","TO"),this.getInput("AT").appendField(i,"WHERE")}};W.lists_setIndex=an;var cn={init:function(){this.WHERE_OPTIONS_1=[[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_START_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_START_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_HELPURL),this.setStyle("list_blocks"),this.appendValueInput("LIST").setCheck("Array").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_INPUT_IN_LIST),this.appendDummyInput("AT1"),this.appendDummyInput("AT2"),e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TAIL&&this.appendDummyInput("TAIL").appendField(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TAIL),this.setInputsInline(!0),this.setOutput(!0,"Array"),this.updateAt_(1,!0),this.updateAt_(2,!0),this.setTooltip(e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TOOLTIP)},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");var i=this.getInput("AT1")instanceof e.ValueInput$$module$build$src$core$inputs$value_input;return n.setAttribute("at1",String(i)),i=this.getInput("AT2")instanceof e.ValueInput$$module$build$src$core$inputs$value_input,n.setAttribute("at2",String(i)),n},domToMutation:function(n){const i=n.getAttribute("at1")==="true";n=n.getAttribute("at2")==="true",this.updateAt_(1,i),this.updateAt_(2,n)},saveExtraState:function(){return null},loadExtraState:function(){},updateAt_:function(n,i){this.removeInput("AT"+n),this.removeInput("ORDINAL"+n,!0),i?(this.appendValueInput("AT"+n).setCheck("Number"),e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL"+n).appendField(e.Msg$$module$build$src$core$msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT"+n);const c=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:this["WHERE_OPTIONS_"+n]});c.setValidator(function(d){const h=d==="FROM_START"||d==="FROM_END";if(h!==i){const N=this.getSourceBlock();return N.updateAt_(n,h),N.setFieldValue(d,"WHERE"+n),null}}),this.getInput("AT"+n).appendField(c,"WHERE"+n),n===1&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2")),e.Msg$$module$build$src$core$msg.LISTS_GET_SUBLIST_TAIL&&this.moveInputBefore("TAIL",null)}};W.lists_getSublist=cn,W.lists_sort={init:function(){this.jsonInit({message0:"%{BKY_LISTS_SORT_TITLE}",args0:[{type:"field_dropdown",name:"TYPE",options:[["%{BKY_LISTS_SORT_TYPE_NUMERIC}","NUMERIC"],["%{BKY_LISTS_SORT_TYPE_TEXT}","TEXT"],["%{BKY_LISTS_SORT_TYPE_IGNORECASE}","IGNORE_CASE"]]},{type:"field_dropdown",name:"DIRECTION",options:[["%{BKY_LISTS_SORT_ORDER_ASCENDING}","1"],["%{BKY_LISTS_SORT_ORDER_DESCENDING}","-1"]]},{type:"input_value",name:"LIST",check:"Array"}],output:"Array",style:"list_blocks",tooltip:"%{BKY_LISTS_SORT_TOOLTIP}",helpUrl:"%{BKY_LISTS_SORT_HELPURL}"})}},W.lists_split={init:function(){const n=e.fromJson$$module$build$src$core$field_registry({type:"field_dropdown",options:[[e.Msg$$module$build$src$core$msg.LISTS_SPLIT_LIST_FROM_TEXT,"SPLIT"],[e.Msg$$module$build$src$core$msg.LISTS_SPLIT_TEXT_FROM_LIST,"JOIN"]]});if(!n)throw Error("field_dropdown not found");n.setValidator(i=>{this.updateType_(i)}),this.setHelpUrl(e.Msg$$module$build$src$core$msg.LISTS_SPLIT_HELPURL),this.setStyle("list_blocks"),this.appendValueInput("INPUT").setCheck("String").appendField(n,"MODE"),this.appendValueInput("DELIM").setCheck("String").appendField(e.Msg$$module$build$src$core$msg.LISTS_SPLIT_WITH_DELIMITER),this.setInputsInline(!0),this.setOutput(!0,"Array"),this.setTooltip(()=>{const i=this.getFieldValue("MODE");if(i==="SPLIT")return e.Msg$$module$build$src$core$msg.LISTS_SPLIT_TOOLTIP_SPLIT;if(i==="JOIN")return e.Msg$$module$build$src$core$msg.LISTS_SPLIT_TOOLTIP_JOIN;throw Error("Unknown mode: "+i)})},updateType_:function(n){if(this.getFieldValue("MODE")!==n){const i=this.getInput("INPUT").connection;i.setShadowDom(null);const c=i.targetBlock();c&&(i.disconnect(),c.isShadow()?c.dispose(!1):this.bumpNeighbours())}n==="SPLIT"?(this.outputConnection.setCheck("Array"),this.getInput("INPUT").setCheck("String")):(this.outputConnection.setCheck("String"),this.getInput("INPUT").setCheck("Array"))},mutationToDom:function(){const n=e.createElement$$module$build$src$core$utils$xml("mutation");return n.setAttribute("mode",this.getFieldValue("MODE")),n},domToMutation:function(n){this.updateType_(n.getAttribute("mode"))},saveExtraState:function(){return null},loadExtraState:function(){}},e.defineBlocks$$module$build$src$core$common(W);var un={blocks:W},dn=Object.assign({},W,ze,Je,qe,Y,g,p,r),At={blocks:dn,lists:un,logic:tn,loops:Ws,math:Vs,procedures:Ds,texts:de,variables:O,variablesDynamic:m};return At.__namespace__=e,At})})(Ns);var lc=Ns.exports;const wr={...rs.Zelos.blockStyles,defaultBlock1:{colourPrimary:"#B2DAFF",colourSecondary:"#F4F8FA",colourTertiary:"#2677C3"},defaultBlock2:{colourPrimary:"#67B6FF",colourSecondary:"F4F8FA",colourTertiary:"#2677C3"},defaultBlock3:{colourPrimary:"#4195E4",colourSecondary:"#F4F8FA",colourTertiary:"#2677C3"},defaultBlockCss:{colourPrimary:"#FFF3AD",colourSecondary:"#41505B",colourTertiary:"#FFE241"}},ac=Un.defineTheme("custom",{name:"custom",base:rs.Classic,componentStyles:{workspaceBackgroundColour:"#fafafa",toolboxBackgroundColour:"blackBackground",flyoutBackgroundColour:"white",flyoutOpacity:1,scrollbarColour:"#000000",insertionMarkerColour:"#fff",insertionMarkerOpacity:.3,scrollbarOpacity:.001,cursorColour:"#d0d0d0"},categoryStyles:Or,blockStyles:wr});class Ot extends Hn{position(){if(!this.isVisible()||!this.targetWorkspace.isVisible())return;const s=this.targetWorkspace.getToolbox(),o=7,e=0;if(!s)throw new Error("no toolbox");const r=s.getContentAreaMetrics();this.width_=r.width,this.height_=r.height,this.positionAt_(r.width-7,r.height-s.getContentHeight(),o,e)}hide(){}getFlyoutScale(){return 1}positionNewBlock(s,o){const e=this.targetWorkspace,r=this.svgGroup_;if(!r)throw new Error("flyout의 element를 찾을 수 없습니다.");const l=e.getOriginOffsetInPixels(),a=r.getBoundingClientRect(),u=e.getParentSvg().getBoundingClientRect(),m=this.workspace_.getCanvas().getAttribute("transform");if(!m)throw new Error("blocklyBlockCanvas에서 transform 값을 찾을 수 없습니다.");const p=new J.Coordinate(a.x-u.x,a.y-u.y),$=this.getTranslate_(m);p.x=a.x-u.x,p.y=a.y-u.y+$.y;const T=s.getRelativeToSurfaceXY();T.scale(this.workspace_.scale);const b=J.Coordinate.sum(p,T),O=J.Coordinate.difference(b,l);O.scale(1/e.scale),o.moveTo(new J.Coordinate(O.x,O.y))}getTranslate_(s){const o=s==null?void 0:s.match(/translate\(\s*[\d.-]+,\s*([\d.-]+)\)/);if(!o)throw new Error("일치하는 translate 값이 없습니다.");return{x:parseFloat(o[0]),y:parseFloat(o[1])}}}q(Ot,"registryName","FixedFlyout");const vr=t=>/^[a-zA-Z_-]/.test(t),Fr=t=>/^.[a-zA-Z0-9_-]*$/.test(t);class Ur extends wn{constructor(s,o,e){super(String(s??""),o,e)}initView(){super.initView(),this.textElement_&&(this.textElement_.style.fill="#1E272E")}}class ee{static createElement(s,o,e){const r=document.createElement(s);for(const l in o)r.setAttribute(l,`${o[l]}`);return e&&e.appendChild(r),r}static createSvgElement(s,o,e){const r=document.createElementNS(this.SVG_NS,`${s}`);for(const l in o)r.setAttribute(l,`${o[l]}`);return e&&e.appendChild(r),r}static insertAfter(s,o){const e=o.nextElementSibling,r=o.parentNode;if(!r)throw Error("Reference node has no parent.");e?r.insertBefore(s,e):r.appendChild(s)}}q(ee,"SVG_NS","http://www.w3.org/2000/svg");const Hr=({workspaceId:t,title:s,thumbnail:o,lastEdited:e,onClick:r})=>{const{openModal:l,closeModal:a,setModalContent:u,setHandleModalCloseButton:m,setHandleModalConfirmButton:p}=Zt(),{mutate:$}=ni(),T=()=>{u(`${s}을(를) + 삭제하겠습니까?`),m(()=>{a()}),p(()=>{$(t)}),l()};return f.jsxs("div",{className:"relative overflow-hidden rounded-lg bg-white shadow-md",children:[f.jsx("button",{className:"absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-full bg-white p-2 text-gray-300 transition-colors hover:bg-red-500 hover:text-white",onClick:T,"aria-label":"워크스페이스 삭제 버튼",children:f.jsx(In,{width:16})}),f.jsxs("div",{className:"cursor-pointer",onClick:r,children:[f.jsx("div",{className:"flex h-[180px] overflow-hidden border-b border-gray-50 bg-gray-50",children:o&&f.jsx("img",{src:o,alt:"workspace thumbnail",className:"w-full object-cover object-left-top"})}),f.jsxs("aside",{className:"p-4 pb-6",children:[f.jsx("h2",{className:"text-bold-md mb-1.5 text-gray-500",children:s}),f.jsx("p",{className:"text-medium-sm text-gray-400",children:Pn(e)})]})]})]})};Hr.__docgenInfo={description:`@description +워크스페이스 아이템 컴포넌트`,methods:[],displayName:"WorkspaceItem",props:{workspaceId:{required:!0,tsType:{name:"string"},description:""},title:{required:!0,tsType:{name:"string"},description:""},thumbnail:{required:!0,tsType:{name:"string"},description:""},lastEdited:{required:!0,tsType:{name:"string"},description:""},onClick:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const Vr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M20.5 8.5L12 17L3.5 8.5",stroke:"#222222",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Gr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M3.5 15.5L12 7L20.5 15.5",stroke:"#222222",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}));var ks=(t=>(t.SMALL="SMALL",t.MEDIUM="MEDIUM",t))(ks||{});const Ms=({id:t,options:s,value:o,onChange:e,placeholder:r="",size:l="MEDIUM",disabled:a=!1})=>{var de,Y;const[u,m]=A.useState(!1),[p,$]=A.useState(o),[T,b]=A.useState("bottom"),[O,g]=A.useState(0),[I,E]=A.useState(!1),L=A.useRef(null),R=A.useRef(null),{screenHeight:k}=Bs();A.useEffect(()=>{$(o)},[o]),A.useEffect(()=>{const D=w=>{var re,xe;const F=(re=L.current)==null?void 0:re.contains(w.target),j=(xe=R.current)==null?void 0:xe.contains(w.target);!F&&!j&&m(!1)},X=w=>{var F;u&&((F=R.current)!=null&&F.contains(w.target)||m(!1))};return document.addEventListener("mousedown",D),document.addEventListener("scroll",X,!0),()=>{document.removeEventListener("mousedown",D),document.removeEventListener("scroll",X,!0)}},[u]),A.useEffect(()=>{if(u&&R.current){E(!1);const D=new ResizeObserver(X=>{const w=X[0].contentRect.height;if(w>0&&(g(w),L.current)){const F=L.current.getBoundingClientRect(),j=k-F.bottom,re=F.top;b(jw?"top":"bottom"),E(!0)}});return D.observe(R.current),()=>D.disconnect()}},[u,k]);const v=()=>{if(!a){if(u){m(!1);return}m(!0),b("bottom")}},C=D=>{$(D),e(D),m(!1)},P=D=>D.length===0?f.jsx(f.Fragment,{}):typeof D[0]=="string"?D.map(F=>f.jsx("li",{onClick:()=>C(F),className:`cursor-pointer rounded-lg px-4 py-2 hover:bg-yellow-200 ${F===p?"bg-yellow-500 text-gray-500":"text-gray-300"}`,children:F},F)):D.map(w=>f.jsx("li",{onClick:()=>C(w.value),className:`cursor-pointer rounded-lg px-4 py-2 hover:bg-yellow-200 ${w.value===p?"bg-yellow-500 text-gray-500":"text-gray-300"}`,children:w.label},w.value)),oe=((D,X)=>{var F;if(X.length===0)return r;if(typeof X[0]=="string"){const j=X;return j.find(re=>re===D)||j[0]}return((F=X.find(j=>j.value===D))==null?void 0:F.label)||r})(p,s);return f.jsxs("div",{className:`${l==="MEDIUM"?"w-52":"w-36"} relative text-ellipsis whitespace-nowrap`,ref:L,id:t||void 0,children:[f.jsx("button",{type:"button",onClick:v,disabled:a,className:"text-medium-md w-full rounded-lg border border-gray-100 bg-white px-4 py-1.5 text-left focus:outline-none disabled:border disabled:border-gray-100 disabled:bg-gray-50","aria-label":"선택 옵션 열고 닫기 버튼",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsx("span",{className:`${p?"text-gray-500":"text-gray-200"}`,children:oe}),u?f.jsx(Vr,{width:12}):f.jsx(Gr,{width:12})]})}),u&&Rn.createPortal(f.jsx("div",{ref:R,className:"fixed z-[9999] min-w-24 rounded-lg border border-gray-100 bg-white shadow-lg transition-opacity duration-200",style:{left:L.current?`${L.current.getBoundingClientRect().left}px`:"0",top:T==="bottom"?`${(((de=L.current)==null?void 0:de.getBoundingClientRect().bottom)||0)+4}px`:`${(((Y=L.current)==null?void 0:Y.getBoundingClientRect().top)||0)-O-4}px`,opacity:I?1:0,visibility:I?"visible":"hidden"},children:f.jsx("ul",{className:"flex max-h-48 flex-col gap-1 overflow-y-auto px-2 py-2",children:P(s)})}),document.getElementById("dropdownDiv"))]})};Ms.__docgenInfo={description:"",methods:[],displayName:"Select",props:{id:{required:!1,tsType:{name:"string"},description:""},options:{required:!0,tsType:{name:"union",raw:"TOption[] | string[]",elements:[{name:"Array",elements:[{name:"signature",type:"object",raw:`{ value: string; label: string; -}`,signature:{properties:[{key:"value",value:{name:"string",required:!0}},{key:"label",value:{name:"string",required:!0}}]}}],raw:"TOption[]"},{name:"Array",elements:[{name:"string"}],raw:"string[]"}]},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},placeholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},size:{required:!1,tsType:{name:"SelectSize"},description:"",defaultValue:{value:"SelectSize.MEDIUM",computed:!0}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};const Kr=()=>{const{mutate:t}=It(),{isPending:s}=_t(),o=()=>{t()};return f.jsx(mt,{width:"w-5",height:"h-5",onClick:o,disable:s,"aria-label":"워크스페이스 추가 버튼",children:f.jsx(On,{width:"12",height:"12"})})};Kr.__docgenInfo={description:`@description -워크스페이스 추가 버튼 컴포넌트`,methods:[],displayName:"WorkspaceAddBtn"};const Xr=()=>{const{mutate:t}=It(!0),{isPending:s}=_t(),o=()=>{t()};return f.jsx("button",{onClick:o,className:"text-bold-rg rounded-full border border-gray-100 px-4 py-2 text-gray-400 transition-colors ease-in-out hover:border-gray-300 hover:bg-gray-50 hover:text-gray-300",disabled:s,"aria-label":"예시 워크스페이스 만들기 버튼",children:s?f.jsx(Ve,{width:4,height:4,backgroundColor:"gray200",foregroundColor:"grayWhite"}):f.jsx("p",{children:"예시 불러오기"})})};Xr.__docgenInfo={description:`@description -Workspace 샘플을 생성하는 버튼입니다.`,methods:[],displayName:"WorkspaceSampleButton"};const jr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M8.5 3.5L17 12L8.5 20.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Wr=()=>{const{workspace:t}=be(),s=()=>{t!==null&&t.undo(!0)};return f.jsx(mt,{onClick:s,width:"w-[30px]",height:"h-[30px] ","aria-label":"redo 버튼",children:f.jsx(jr,{})})};Wr.__docgenInfo={description:`@description -워크스페이스 캔버스에서 redo 기능을 실행시키는 버튼입니다.`,methods:[],displayName:"RedoButton"};const qr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M15.5 20.5L7 12L15.5 3.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Jr=()=>{const{workspace:t}=be(),s=()=>{t!==null&&t.undo(!1)};return f.jsx(mt,{onClick:s,width:"w-[30px]",height:"h-[30px] ","aria-label":"undo 버튼",children:f.jsx(qr,{})})};Jr.__docgenInfo={description:`@description -워크스페이스 캔버스에서 undo 기능을 실행시키는 버튼입니다.`,methods:[],displayName:"UndoButton"};const zr=()=>{const t=Tt().workspaceId,{mutate:s,isPending:o}=ri(t),{totalCssPropertyObj:e}=Ee(),{workspace:r}=be(),{isResetCssChecked:l}=ve(),[a,u]=A.useState(!1),m=async()=>{try{const p=Gn.workspaces.save(r);u(!0);const $=await Yn();s({totalCssPropertyObj:e,canvas:p,classBlockList:te.contents,cssResetStatus:l,thumbnail:$}),u(!1)}catch(p){p instanceof Error&&x.error(p.message)}finally{u(!1)}};return f.jsx(f.Fragment,{children:f.jsx("button",{onClick:m,className:"text-bold-rg w-16 rounded-[30px] bg-green-500 py-2 text-green-100 hover:border hover:border-green-500 hover:bg-green-100 hover:text-green-500",disabled:o,"aria-label":"워크스페이스 저장 버튼",children:o||a?f.jsx(Ve,{width:4,height:4,backgroundColor:"gray200",foregroundColor:"grayWhite"}):f.jsx("p",{children:"저장"})})})};zr.__docgenInfo={description:`@description +}`,signature:{properties:[{key:"value",value:{name:"string",required:!0}},{key:"label",value:{name:"string",required:!0}}]}}],raw:"TOption[]"},{name:"Array",elements:[{name:"string"}],raw:"string[]"}]},description:""},value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},placeholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},size:{required:!1,tsType:{name:"SelectSize"},description:"",defaultValue:{value:"SelectSize.MEDIUM",computed:!0}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};const Yr=()=>{const{mutate:t}=It(),{isPending:s}=_t(),o=()=>{t()};return f.jsx(mt,{width:"w-5",height:"h-5",onClick:o,disable:s,"aria-label":"워크스페이스 추가 버튼",children:f.jsx(On,{width:"12",height:"12"})})};Yr.__docgenInfo={description:`@description +워크스페이스 추가 버튼 컴포넌트`,methods:[],displayName:"WorkspaceAddBtn"};const Kr=()=>{const{mutate:t}=It(!0),{isPending:s}=_t(),o=()=>{t()};return f.jsx("button",{onClick:o,className:"text-bold-rg rounded-full border border-gray-100 px-4 py-2 text-gray-400 transition-colors ease-in-out hover:border-gray-300 hover:bg-gray-50 hover:text-gray-300",disabled:s,"aria-label":"예시 워크스페이스 만들기 버튼",children:s?f.jsx(Ve,{width:4,height:4,backgroundColor:"gray200",foregroundColor:"grayWhite"}):f.jsx("p",{children:"예시 불러오기"})})};Kr.__docgenInfo={description:`@description +Workspace 샘플을 생성하는 버튼입니다.`,methods:[],displayName:"WorkspaceSampleButton"};const Xr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M8.5 3.5L17 12L8.5 20.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),jr=()=>{const{workspace:t}=be(),s=()=>{t!==null&&t.undo(!0)};return f.jsx(mt,{onClick:s,width:"w-[30px]",height:"h-[30px] ","aria-label":"redo 버튼",children:f.jsx(Xr,{})})};jr.__docgenInfo={description:`@description +워크스페이스 캔버스에서 redo 기능을 실행시키는 버튼입니다.`,methods:[],displayName:"RedoButton"};const Wr=t=>A.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},A.createElement("path",{d:"M15.5 20.5L7 12L15.5 3.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),qr=()=>{const{workspace:t}=be(),s=()=>{t!==null&&t.undo(!1)};return f.jsx(mt,{onClick:s,width:"w-[30px]",height:"h-[30px] ","aria-label":"undo 버튼",children:f.jsx(Wr,{})})};qr.__docgenInfo={description:`@description +워크스페이스 캔버스에서 undo 기능을 실행시키는 버튼입니다.`,methods:[],displayName:"UndoButton"};const Jr=()=>{const t=Tt().workspaceId,{mutate:s,isPending:o}=oi(t),{totalCssPropertyObj:e}=Ee(),{workspace:r}=be(),{isResetCssChecked:l}=ve(),[a,u]=A.useState(!1),m=async()=>{try{const p=Vn.workspaces.save(r);u(!0);const $=await Gn();s({totalCssPropertyObj:e,canvas:p,classBlockList:te.contents,cssResetStatus:l,thumbnail:$}),u(!1)}catch(p){p instanceof Error&&x.error(p.message)}finally{u(!1)}};return f.jsx(f.Fragment,{children:f.jsx("button",{onClick:m,className:"text-bold-rg w-16 rounded-[30px] bg-green-500 py-2 text-green-100 hover:border hover:border-green-500 hover:bg-green-100 hover:text-green-500",disabled:o,"aria-label":"워크스페이스 저장 버튼",children:o||a?f.jsx(Ve,{width:4,height:4,backgroundColor:"gray200",foregroundColor:"grayWhite"}):f.jsx("p",{children:"저장"})})})};Jr.__docgenInfo={description:`@description Workspace 상태를 저장하는 버튼입니다. -저장 항목 : css 속성, 캔버스 블록 상태, css class 블록, css 리셋 여부, 미리보기 썸네일`,methods:[],displayName:"SaveButton"};const Qr=()=>{const{workspaceId:t}=Tt(),{mutate:s,isPending:o}=ni(),{name:e}=be(),[r,l]=A.useState("");A.useEffect(()=>{l(e)},[e]);const a=$=>{l($)},u=$=>{$.target.value===e||$.target.value===""||s({workspaceId:t,newName:$.target.value})},m=$=>{$.key==="Enter"&&p($)},p=$=>{$.currentTarget.blur(),!(e===$.currentTarget.value||$.currentTarget.value==="")&&(s({workspaceId:t,newName:$.currentTarget.value}),$.preventDefault())};return f.jsx(f.Fragment,{children:f.jsxs("div",{className:"relative flex items-center",children:[f.jsx("input",{placeholder:"이름을 입력해주세요",className:"placeholder:text-semibold-rg w-[272px] rounded-md border border-green-500 px-3 py-1 placeholder:text-gray-100 focus:outline-none",onBlur:u,onKeyDown:m,maxLength:20,disabled:o,value:r,onChange:$=>a($.target.value)}),o&&f.jsx("div",{className:"absolute right-5",children:f.jsx(Ve,{width:4,height:4,foregroundColor:"green500",backgroundColor:"gray200"})})]})})};Qr.__docgenInfo={description:`@description -워크스페이스 이름을 수정할 수 있는 컴포넌트입니다.`,methods:[],displayName:"WorkspaceNameInput"};const Zr=({cssItem:t,index:s})=>{const{totalCssPropertyObj:o,currentCssClassName:e}=Ee(),{handleCssPropertyCheckboxChange:r,handleCssOptionChange:l,handleColorChange:a}=Ps(),{cssOptionValue:u,isHover:m,indexOfHover:p,isChecked:$,cssOption:T,handleMouseEnter:b,handleEnterKey:O,handleMouseLeave:g,handleChangeInputValue:I}=ci(t),{leftX:E,topY:L}=ai();return f.jsxs("div",{className:`flex h-[66px] w-full flex-shrink-0 items-center justify-between rounded-lg px-4 ${o[e]&&o[e].checkedCssPropertyObj[t.label]?"bg-yellow-500":"bg-gray-50"} `,children:[f.jsxs("div",{className:"flex items-center gap-5",children:[f.jsx("input",{type:"checkbox",checked:$,onChange:()=>r(t.label,$,T),title:t.label,className:"h-5 w-5 appearance-none rounded border border-gray-100 bg-center bg-no-repeat checked:bg-white checked:bg-[url('@/shared/assets/check.svg')]",disabled:e.length===0}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("p",{className:"text-semibold-md text-gray-black max-w-36 border-gray-100",children:t.label}),f.jsx(yn,{onMouseEnter:R=>b(R,s),onMouseLeave:g}),f.jsx(ss,{description:t.description,isOpen:m&&p===s,leftX:E,topY:L})]})]}),t.type==="select"&&f.jsx(Ms,{id:t.label,options:t.option,value:T,onChange:R=>l(t.label,R),disabled:e.length===0,size:ks.SMALL}),t.type==="input"&&f.jsx("input",{type:"text",className:"text-medium-md placeholder:text-medium-md w-36 rounded-lg border border-gray-100 px-4 py-1.5 text-gray-500 placeholder-gray-100 focus:border-gray-200 focus:outline-none disabled:border disabled:border-gray-100 disabled:bg-gray-50",placeholder:"값을 입력하세요",onBlur:R=>l(t.label,R.target.value),onKeyDown:R=>O(t.label,R),value:u,onChange:I,disabled:e.length===0}),t.type==="color"&&f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("p",{className:"text-medium-md text-gray-500",children:T}),f.jsx("input",{type:"color",title:T,onChange:R=>a(t.label,R.target.value),value:T,className:"h-5 w-5 cursor-pointer appearance-none bg-transparent",disabled:e.length===0})]})]})};Zr.__docgenInfo={description:`@description +저장 항목 : css 속성, 캔버스 블록 상태, css class 블록, css 리셋 여부, 미리보기 썸네일`,methods:[],displayName:"SaveButton"};const zr=()=>{const{workspaceId:t}=Tt(),{mutate:s,isPending:o}=si(),{name:e}=be(),[r,l]=A.useState("");A.useEffect(()=>{l(e)},[e]);const a=$=>{l($)},u=$=>{$.target.value===e||$.target.value===""||s({workspaceId:t,newName:$.target.value})},m=$=>{$.key==="Enter"&&p($)},p=$=>{$.currentTarget.blur(),!(e===$.currentTarget.value||$.currentTarget.value==="")&&(s({workspaceId:t,newName:$.currentTarget.value}),$.preventDefault())};return f.jsx(f.Fragment,{children:f.jsxs("div",{className:"relative flex items-center",children:[f.jsx("input",{placeholder:"이름을 입력해주세요",className:"placeholder:text-semibold-rg w-[272px] rounded-md border border-green-500 px-3 py-1 placeholder:text-gray-100 focus:outline-none",onBlur:u,onKeyDown:m,maxLength:20,disabled:o,value:r,onChange:$=>a($.target.value)}),o&&f.jsx("div",{className:"absolute right-5",children:f.jsx(Ve,{width:4,height:4,foregroundColor:"green500",backgroundColor:"gray200"})})]})})};zr.__docgenInfo={description:`@description +워크스페이스 이름을 수정할 수 있는 컴포넌트입니다.`,methods:[],displayName:"WorkspaceNameInput"};const Qr=({cssItem:t,index:s})=>{const{totalCssPropertyObj:o,currentCssClassName:e}=Ee(),{handleCssPropertyCheckboxChange:r,handleCssOptionChange:l,handleColorChange:a}=Ps(),{cssOptionValue:u,isHover:m,indexOfHover:p,isChecked:$,cssOption:T,handleMouseEnter:b,handleEnterKey:O,handleMouseLeave:g,handleChangeInputValue:I}=ai(t),{leftX:E,topY:L}=li();return f.jsxs("div",{className:`flex h-[66px] w-full flex-shrink-0 items-center justify-between rounded-lg px-4 ${o[e]&&o[e].checkedCssPropertyObj[t.label]?"bg-yellow-500":"bg-gray-50"} `,children:[f.jsxs("div",{className:"flex items-center gap-5",children:[f.jsx("input",{type:"checkbox",checked:$,onChange:()=>r(t.label,$,T),title:t.label,className:"h-5 w-5 appearance-none rounded border border-gray-100 bg-center bg-no-repeat checked:bg-white checked:bg-[url('@/shared/assets/check.svg')]",disabled:e.length===0}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("p",{className:"text-semibold-md text-gray-black max-w-36 border-gray-100",children:t.label}),f.jsx(yn,{onMouseEnter:R=>b(R,s),onMouseLeave:g}),f.jsx(ss,{description:t.description,isOpen:m&&p===s,leftX:E,topY:L})]})]}),t.type==="select"&&f.jsx(Ms,{id:t.label,options:t.option,value:T,onChange:R=>l(t.label,R),disabled:e.length===0,size:ks.SMALL}),t.type==="input"&&f.jsx("input",{type:"text",className:"text-medium-md placeholder:text-medium-md w-36 rounded-lg border border-gray-100 px-4 py-1.5 text-gray-500 placeholder-gray-100 focus:border-gray-200 focus:outline-none disabled:border disabled:border-gray-100 disabled:bg-gray-50",placeholder:"값을 입력하세요",onBlur:R=>l(t.label,R.target.value),onKeyDown:R=>O(t.label,R),value:u,onChange:I,disabled:e.length===0}),t.type==="color"&&f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("p",{className:"text-medium-md text-gray-500",children:T}),f.jsx("input",{type:"color",title:T,onChange:R=>a(t.label,R.target.value),value:T,className:"h-5 w-5 cursor-pointer appearance-none bg-transparent",disabled:e.length===0})]})]})};Qr.__docgenInfo={description:`@description CSS 속성을 선택할 수 있는 컴포넌트`,methods:[],displayName:"CssOptionItem",props:{cssItem:{required:!0,tsType:{name:"signature",type:"object",raw:`{ label: string; type: 'select' | 'input' | 'color'; option?: string[]; description: string; -}`,signature:{properties:[{key:"label",value:{name:"string",required:!0}},{key:"type",value:{name:"union",raw:"'select' | 'input' | 'color'",elements:[{name:"literal",value:"'select'"},{name:"literal",value:"'input'"},{name:"literal",value:"'color'"}],required:!0}},{key:"option",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!1}},{key:"description",value:{name:"string",required:!0}}]}},description:""},index:{required:!0,tsType:{name:"number"},description:""}}};let rt=null;const Jt=(t,s)=>{rt||(rt=Ln(s)),rt.render(ss(t))},ei=({tagSrc:t,onSetTagSrc:s})=>{const o=Tt().workspaceId,{mutate:e}=li(),{imageList:r}=$e(),l=A.useRef(null),{mutate:a}=ii(),u=b=>{var g;const O=(g=b.target.files)==null?void 0:g[0];if(O){const I=new FileReader;I.onload=E=>{if(E.target){if(!["image/png","image/jpg","image/jpeg","image/svg+xml"].includes(O.type))return p("파일이 존재하지 않거나 유효하지 않은 타입입니다.");const R=O.name.replace(/\.(png|jpeg|jpg|svg)$/i,"");if(/[\\/:*?"<>|]/.test(R))return p('파일 이름에 다음 문자를 포함할 수 없습니다: \\ / : * ? " < > | .');const v=O.name.replace(/\.(png|jpeg|jpg|svg)$/i,"<$1");if(r.has(v))return p("이미 존재하는 파일 이름입니다.");a({workspaceId:o,imageName:v,image:O})}},I.readAsDataURL(O),l.current&&(l.current.value="")}},m=()=>{var b;(b=l.current)==null||b.click()},p=b=>(l.current&&(l.current.value=""),x.error(b),!1),$=b=>{s(b===t?"":b)},T=(b,O)=>{e({workspaceId:o,imageName:b}),O===t&&s("")};return f.jsxs("div",{className:"flex h-full w-[36rem] flex-col gap-3",children:[f.jsx("span",{className:"text-semibold-md w-full text-gray-400",children:"업로드된 이미지"}),f.jsx("div",{className:"relative h-full w-full overflow-auto",children:f.jsx("div",{className:"absolute flex w-full flex-col",children:Array.from(r.entries()).map(([b,O],g)=>f.jsx(Sn,{isSelected:t===O,onDeleteImage:()=>T(b,O),onSelectImage:()=>$(O),filename:b},`imageList${g}`))})}),f.jsx("button",{className:"w-full rounded-lg bg-black py-3 text-center align-middle text-gray-50",onClick:m,"aria-label":"이미지 업로드 버튼",children:"이미지 업로드하기"}),f.jsx("input",{title:"이미지 업로드",className:"hidden",type:"file",accept:"image/png, image/jpg, image/jpeg, image/svg+xml",onChange:u,ref:l})]})};ei.__docgenInfo={description:`@component +}`,signature:{properties:[{key:"label",value:{name:"string",required:!0}},{key:"type",value:{name:"union",raw:"'select' | 'input' | 'color'",elements:[{name:"literal",value:"'select'"},{name:"literal",value:"'input'"},{name:"literal",value:"'color'"}],required:!0}},{key:"option",value:{name:"Array",elements:[{name:"string"}],raw:"string[]",required:!1}},{key:"description",value:{name:"string",required:!0}}]}},description:""},index:{required:!0,tsType:{name:"number"},description:""}}};let rt=null;const Jt=(t,s)=>{rt||(rt=Ln(s)),rt.render(ss(t))},Zr=({tagSrc:t,onSetTagSrc:s})=>{const o=Tt().workspaceId,{mutate:e}=ii(),{imageList:r}=$e(),l=A.useRef(null),{mutate:a}=ri(),u=b=>{var g;const O=(g=b.target.files)==null?void 0:g[0];if(O){const I=new FileReader;I.onload=E=>{if(E.target){if(!["image/png","image/jpg","image/jpeg","image/svg+xml"].includes(O.type))return p("파일이 존재하지 않거나 유효하지 않은 타입입니다.");const R=O.name.replace(/\.(png|jpeg|jpg|svg)$/i,"");if(/[\\/:*?"<>|]/.test(R))return p('파일 이름에 다음 문자를 포함할 수 없습니다: \\ / : * ? " < > | .');const v=O.name.replace(/\.(png|jpeg|jpg|svg)$/i,"<$1");if(r.has(v))return p("이미 존재하는 파일 이름입니다.");a({workspaceId:o,imageName:v,image:O})}},I.readAsDataURL(O),l.current&&(l.current.value="")}},m=()=>{var b;(b=l.current)==null||b.click()},p=b=>(l.current&&(l.current.value=""),x.error(b),!1),$=b=>{s(b===t?"":b)},T=(b,O)=>{e({workspaceId:o,imageName:b}),O===t&&s("")};return f.jsxs("div",{className:"flex h-full w-[36rem] flex-col gap-3",children:[f.jsx("span",{className:"text-semibold-md w-full text-gray-400",children:"업로드된 이미지"}),f.jsx("div",{className:"relative h-full w-full overflow-auto",children:f.jsx("div",{className:"absolute flex w-full flex-col",children:Array.from(r.entries()).map(([b,O],g)=>f.jsx(Sn,{isSelected:t===O,onDeleteImage:()=>T(b,O),onSelectImage:()=>$(O),filename:b},`imageList${g}`))})}),f.jsx("button",{className:"w-full rounded-lg bg-black py-3 text-center align-middle text-gray-50",onClick:m,"aria-label":"이미지 업로드 버튼",children:"이미지 업로드하기"}),f.jsx("input",{title:"이미지 업로드",className:"hidden",type:"file",accept:"image/png, image/jpg, image/jpeg, image/svg+xml",onChange:u,ref:l})]})};Zr.__docgenInfo={description:`@component @description -실제 해당 워크스페이스 db 내에 저장되어있는 imgList 목록의 파일 이름들을 보여주는 컴포넌트입니다.`,methods:[],displayName:"ImageTagModalList",props:{tagSrc:{required:!0,tsType:{name:"string"},description:""},onSetTagSrc:{required:!0,tsType:{name:"signature",type:"function",raw:"(src: string) => void",signature:{arguments:[{type:{name:"string"},name:"src"}],return:{name:"void"}}},description:""}}};const ti=()=>{const[t,s]=A.useState(!1),o=()=>{try{s(!0),Kn()}catch(e){e instanceof Error&&x.error(e.message)}finally{s(!1)}};return f.jsx("button",{onClick:o,className:"text-bold-rg rounded-full border border-gray-100 px-4 py-2 text-gray-400 transition-colors ease-in-out hover:border-gray-300 hover:bg-gray-50 hover:text-gray-300",disabled:t,children:t?f.jsx(Ve,{width:4,height:4,foregroundColor:"grayWhite",backgroundColor:"gray200"}):f.jsx("p",{children:"코드 내보내기"})})};ti.__docgenInfo={description:"",methods:[],displayName:"CodeExportButton"};const si="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_921_1400'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='16'%20height='16'%3e%3crect%20width='16'%20height='16'%20fill='%23D9D9D9'%20/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_921_1400)'%3e%3cpath%20d='M7.99826%2012.0006C8.22171%2012.0006%208.41121%2011.9234%208.56676%2011.7691C8.72232%2011.6149%208.8001%2011.426%208.8001%2011.2024C8.8001%2010.979%208.72293%2010.7895%208.5686%2010.6339C8.41438%2010.4784%208.22549%2010.4006%208.00193%2010.4006C7.77849%2010.4006%207.58899%2010.4778%207.43343%2010.6321C7.27788%2010.7863%207.2001%2010.9752%207.2001%2011.1988C7.2001%2011.4222%207.27726%2011.6117%207.4316%2011.7673C7.58582%2011.9228%207.77471%2012.0006%207.99826%2012.0006ZM8.00476%2014.4006C7.12388%2014.4006%206.29454%2014.2339%205.51676%2013.9006C4.73899%2013.5673%204.05843%2013.1089%203.4751%2012.5256C2.89176%2011.9423%202.43343%2011.2619%202.1001%2010.4846C1.76676%209.70725%201.6001%208.8767%201.6001%207.99292C1.6001%207.10914%201.76676%206.28114%202.1001%205.50892C2.43343%204.7367%202.89176%204.05892%203.4751%203.47559C4.05843%202.89225%204.73876%202.43392%205.5161%202.10059C6.29343%201.76725%207.12399%201.60059%208.00776%201.60059C8.89154%201.60059%209.71954%201.76725%2010.4918%202.10059C11.264%202.43392%2011.9418%202.89225%2012.5251%203.47559C13.1084%204.05892%2013.5668%204.73792%2013.9001%205.51259C14.2334%206.28736%2014.4001%207.11514%2014.4001%207.99592C14.4001%208.87681%2014.2334%209.70614%2013.9001%2010.4839C13.5668%2011.2617%2013.1084%2011.9423%2012.5251%2012.5256C11.9418%2013.1089%2011.2628%2013.5673%2010.4881%2013.9006C9.71332%2014.2339%208.88554%2014.4006%208.00476%2014.4006ZM8.0536%205.16725C8.32393%205.16725%208.56593%205.25159%208.7796%205.42025C8.99327%205.58892%209.1001%205.79975%209.1001%206.05275C9.1001%206.28464%209.0296%206.49503%208.8886%206.68392C8.74749%206.87281%208.58465%207.04503%208.4001%207.20059C8.14454%207.42281%207.91121%207.66725%207.7001%207.93392C7.48899%208.20059%207.38343%208.50059%207.38343%208.83392C7.38343%209.00059%207.44276%209.13947%207.56143%209.25059C7.6801%209.3617%207.81854%209.41725%207.97676%209.41725C8.15532%209.41725%208.3066%209.35892%208.4306%209.24225C8.55471%209.12559%208.63343%208.97836%208.66676%208.80059C8.71121%208.56725%208.81121%208.36092%208.96676%208.18159C9.12232%208.00236%209.28899%207.83125%209.46676%207.66825C9.72232%207.43425%209.93899%207.16897%2010.1168%206.87242C10.2945%206.57586%2010.3834%206.25747%2010.3834%205.91725C10.3834%205.35059%2010.1529%204.8867%209.69176%204.52559C9.23065%204.16447%208.69404%203.98392%208.08193%203.98392C7.65904%203.98392%207.25915%204.07836%206.88226%204.26725C6.50526%204.45614%206.19365%204.72986%205.94743%205.08842C5.86032%205.20853%205.83621%205.34059%205.8751%205.48459C5.91399%205.62859%205.99454%205.75059%206.11676%205.85059C6.27232%205.97281%206.43899%206.00892%206.61676%205.95892C6.79454%205.90892%206.94454%205.80614%207.06676%205.65059C7.18899%205.49503%207.33538%205.37559%207.50593%205.29225C7.67649%205.20892%207.85904%205.16725%208.0536%205.16725Z'%20fill='%2390A2B6'%20/%3e%3c/g%3e%3c/svg%3e";class xs extends Ot{constructor(){super(...arguments);q(this,"pElement",null);q(this,"inputElement",null);q(this,"buttonElement",null)}init(o){super.init(o);const e=this.targetWorkspace.getToolbox(),r=ee.createElement("div",{class:"contentCreatingBlock"}),l=ee.createElement("label",{for:"creatingBlockInput",class:"creatingBlockLabel"});l.textContent="클래스 생성하기",this.inputElement=ee.createElement("input",{type:"text",placeholder:"클래스명을 정해주세요",class:"creatingBlockInput",id:"creatingBlockInput",maxlength:"30"}),this.inputElement.addEventListener("keydown",I=>{I.key==="Enter"&&this.createStyleBlock()});const a=ee.createElement("button",{class:"creatingBlockButton"});a.textContent="+",a.addEventListener("click",()=>this.createStyleBlock());const u=ee.createElement("label",{class:"listBlockLabel"});u.textContent="클래스 블록 목록";const m=ee.createElement("div",{class:"resetCssDiv"}),p=ee.createElement("input",{type:"checkbox",class:"resetCssCheckbox"});p.checked=ve.getState().isResetCssChecked,p.addEventListener("change",()=>{ve.getState().toggleResetCss(),Le.getState().setIsCssChanged(!0)});const $=ee.createElement("span",{class:"resetCssText"});$.textContent="reset CSS 적용하기";const T=ee.createElement("img",{src:si,alt:"reset CSS Info",class:"questionImage"}),b=document.createElement("div");document.body.appendChild(b);const O=()=>{const{left:I,top:E}=T.getBoundingClientRect();Jt({description:"브라우저마다 다른 기본 스타일을 일관되게 만들기 위해, 모든 요소의 기본 스타일을 초기화하는 CSS입니다.",isOpen:!0,leftX:I,topY:E},b)},g=()=>{Jt({description:"",isOpen:!1,leftX:0,topY:0},b)};T.addEventListener("mouseenter",O),T.addEventListener("mouseleave",g),m.appendChild(p),m.appendChild($),m.appendChild(T),[l,this.inputElement,a,m,u].forEach(I=>r.appendChild(I)),e.addElementToContentArea(r,!0),this.registerCustomContextMenu(),this.show(te.contents)}addPrefixToClassName(o){return`CSS_${o}`}registerCustomContextMenu(){const o="deleteBlock";if(et.registry.getItem(o))return;const e={id:o,scopeType:et.ScopeType.BLOCK,displayText:"블록 삭제",weight:100,preconditionFn:r=>{const l=r.block.type;return te.contents.some(u=>u.type===l)&&r.block.isDeletable()?"enabled":"hidden"},callback:r=>{const l=r.block,a=l.type;Mt().getBlocksByType(a).forEach(T=>{T.dispose(!1,!0)}),l.dispose(!1,!0),Ee.getState().removeCssClass(a),Le.getState().setIsBlockChanged(!0),te.contents=te.contents.filter(T=>T.type!==a);const{removeClassBlock:p}=Lt.getState();p(a),Mt().getToolbox().getFlyout().show(te.contents),x.success(`"${a.replace("CSS_","")}" 클래스 블록이 삭제되었습니다.`)}};et.registry.register(e),document.addEventListener("click",r=>{const l=document.querySelector(".blocklyContextMenu");l&&!l.contains(r.target)&&(l.style.display="none")})}createStyleBlock(){var u;const o=(u=this.inputElement)==null?void 0:u.value;if(!o)return x.error("클래스명을 입력해주세요.");if(Fr(o)){if(!Ur(o))return x.error("클래스명은 영문자, 밑줄(_), 하이픈(-), 숫자만 포함해주세요")}else return x.error("클래스명 첫 글자는 영문자, 밑줄(_), 하이픈(-)만 가능해요");const e=this.addPrefixToClassName(o),r=te.contents||[];if(r.some(m=>m.type===e))return x.error(`"${o}" 입력한 클래스명 블록은 이미 존재합니다.`);kt[e]||(kt[e]={init:function(){this.appendDummyInput().appendField(new Hr(o),"CLASS"),this.setOutput(!0),this.setStyle("defaultBlockCss"),this.showContextMenu=m=>{if(this.getSvgRoot().transform.baseVal[0].matrix.e!==8)return;const $=this.generateContextMenu();Dn.show(m,$,this.RTL)}}}),Ee.getState().addNewCssClass(e),Le.getState().setIsBlockChanged(!0),te.contents=[...r,{kind:"block",type:e,enabled:!0}];const{addClassBlock:a}=Lt.getState();a(e),this.show(te.contents),x.success(`입력한 클래스명 블록 "${o}"이(가) 추가되었습니다.`),this.inputElement&&(this.inputElement.value="")}}q(xs,"registryName","StyleFlyout");const cc={tabs:{html:{label:"HTML 태그",toolboxConfig:wr,flyoutRegistryName:Ot.registryName},css:{label:"CSS 클래스",toolboxConfig:te,flyoutRegistryName:xs.registryName}},defaultSelectedTab:"html"},ni=()=>{const t=Ne(),s=Ae(),o=Ie()||Ge(),{setName:e}=be(),{mutate:r,isPending:l}=Se({mutationFn:({workspaceId:a,newName:u})=>s.updateWorkspaceName(o,a,u),onSuccess:a=>{x.success("워크스페이스 이름이 변경되었습니다."),e(a.name),t.invalidateQueries({queryKey:fe.list()})},onError:()=>{x.error("워크스페이스 이름 변경을 실패했습니다.")}});return{mutate:r,isPending:l}},oi=()=>{const t=Ne(),s=Ae(),o=Ie()||Ge(),{closeModal:e,setIsLoading:r}=Zt(),{mutate:l}=Se({mutationFn:a=>(r(!0),s.deleteWorkspace(o,a)),onSuccess:()=>{t.invalidateQueries({queryKey:fe.list()}),x.success("워크스페이스 삭제 성공")},onError:()=>{x.error("워크스페이스 삭제 실패")},onSettled:()=>{r(!1),e()}});return{mutate:l}},fe={all:["workspace"],list:()=>[...fe.all,"list"],detail:t=>[...fe.all,"detail",t]},ri=t=>{const s=Ae(),o=Ie()||Ge(),{resetChangedStatusState:e}=Le(),{imageMap:r}=$e(),l=Ne(),{mutate:a,isPending:u}=Se({mutationFn:({totalCssPropertyObj:m,canvas:p,classBlockList:$,cssResetStatus:T,thumbnail:b})=>s.saveWorkspace(o,t,m,p,$,T,b,r),onSuccess:()=>{e(),l.invalidateQueries({queryKey:fe.list()}),x.success("성공적으로 저장되었습니다.")},onError:()=>{x.error("저장에 실패했습니다.")}});return{mutate:a,isPending:u}},ii=()=>{const t=Ae(),s=Ie()||"",{pushImagePath:o,setNowImage:e}=$e(),{mutate:r,isPending:l}=Se({mutationFn:({workspaceId:a,imageName:u,image:m})=>t.postImage(s,a,u,m),onSuccess:a=>{o(a.imageName,a.imageUrl),e(a.imageUrl),x.success("성공적으로 저장되었습니다.")},onError:()=>{x.error("저장에 실패했습니다.")}});return{mutate:r,isPending:l}},li=()=>{const t=Ae(),s=Ie()||"",{deleteImagePath:o}=$e(),{mutate:e}=Se({mutationFn:({workspaceId:r,imageName:l})=>t.deleteImage(s,r,l),onSuccess:r=>{o(r.imageName),x.success("이미지 삭제 성공")},onError:()=>{x.error("이미지 삭제 실패")}});return{mutate:e}},Bs=()=>{const[t,s]=A.useState(window.innerWidth),[o,e]=A.useState(window.innerHeight);return A.useEffect(()=>{const r=ns(()=>{s(window.innerWidth),e(window.innerHeight)},200);return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),{screenWidth:t,setScreenWidth:s,screenHeight:o,setScreenHeight:e}},ai=()=>{const{leftX:t,topY:s,offsetX:o,offsetY:e,setLeftX:r,setTopY:l}=es(),{screenWidth:a,screenHeight:u}=Bs();return A.useEffect(()=>{r(o),e+40>u?l(-e+40):l(e)},[o,e,a,u]),{leftX:t,topY:s}},Ps=()=>{const{setCheckedCssPropertyObj:t,setCssOptionObj:s,currentCssClassName:o}=Ee(),{setIsCssChanged:e}=Le(),r=(u,m,p)=>{e(!0),t(o,u,!m),m||s(o,u,p)},l=(u,m)=>{e(!0),s(o,u,m)},a=A.useCallback(ns((u,m)=>{l(u,m)},200),[l]);return{handleCssPropertyCheckboxChange:r,handleCssOptionChange:l,handleColorChange:a}},ci=t=>{const{handleCssOptionChange:s}=Ps(),{setOffsetX:o,setOffsetY:e}=es(),{currentCssClassName:r,totalCssPropertyObj:l,selectedCssCategory:a}=Ee(),[u,m]=A.useState(""),[p,$]=A.useState(!1),[T,b]=A.useState(-1),[O,g]=A.useState(!1),[I,E]=A.useState(t.type==="select"&&t.option.length>0?t.option[0]:"");return A.useEffect(()=>{l[r]&&m(l[r].cssOptionObj[t.label]||"")},[r,l,t.label]),A.useEffect(()=>{if(!l[r]){g(!1),E(t.type==="select"?t.option[0]:t.type==="color"?"#000000":"");return}if(g(l[r].checkedCssPropertyObj[t.label]??!1),!l[r].cssOptionObj[t.label]){E(t.type==="select"?t.option[0]:t.type==="color"?"#000000":"");return}E(l[r].cssOptionObj[t.label])},[l,r,t,a]),{cssOptionValue:u,isHover:p,indexOfHover:T,isChecked:O,cssOption:I,handleEnterKey:(C,P)=>{P.key==="Enter"&&(s(C,P.currentTarget.value),P.currentTarget.blur(),P.preventDefault())},handleMouseEnter:(C,P)=>{$(!0),b(P),o(C.currentTarget.getBoundingClientRect().x),e(C.currentTarget.getBoundingClientRect().y)},handleMouseLeave:()=>{$(!1),b(-1)},handleChangeInputValue:C=>{m(C.target.value)}}},ui=()=>{const{mutate:t}=It(),s=()=>{t()};return f.jsx("div",{className:"flex h-[23rem] items-center justify-center border-4 border-dashed border-green-300 bg-green-100",onClick:s,children:f.jsx(Cn,{fill:"green"})})};ui.__docgenInfo={description:`@description -빈 워크스페이스에 마우스를 올렸을 때 보여지는 컴포넌트`,methods:[],displayName:"HoveredEmptyWorkspace"};export{rc as $,ja as A,kt as B,ti as C,ee as D,Wl as E,wn as F,ec as G,ui as H,ei as I,Ta as J,xs as K,zl as L,pa as M,ae as N,kl as O,Ba as P,wr as Q,Wr as R,zr as S,Zl as T,Jr as U,ac as V,Kr as W,cc as X,Gn as Y,_a as Z,ol as _,Vr as a,ic as a0,Xr as b,Zr as c,Qr as d,Ms as e,Ie as f,Mt as g,Ge as h,Hr as i,Dn as j,te as k,Ae as l,oc as m,Wn as n,sc as o,nc as p,ll as q,tc as r,jn as s,Za as t,J as u,Bn as v,fe as w,Qi as x,jl as y,Ot as z}; +실제 해당 워크스페이스 db 내에 저장되어있는 imgList 목록의 파일 이름들을 보여주는 컴포넌트입니다.`,methods:[],displayName:"ImageTagModalList",props:{tagSrc:{required:!0,tsType:{name:"string"},description:""},onSetTagSrc:{required:!0,tsType:{name:"signature",type:"function",raw:"(src: string) => void",signature:{arguments:[{type:{name:"string"},name:"src"}],return:{name:"void"}}},description:""}}};const ei=()=>{const[t,s]=A.useState(!1),o=()=>{try{s(!0),Yn()}catch(e){e instanceof Error&&x.error(e.message)}finally{s(!1)}};return f.jsx("button",{onClick:o,className:"text-bold-rg rounded-full border border-gray-100 px-4 py-2 text-gray-400 transition-colors ease-in-out hover:border-gray-300 hover:bg-gray-50 hover:text-gray-300",disabled:t,children:t?f.jsx(Ve,{width:4,height:4,foregroundColor:"grayWhite",backgroundColor:"gray200"}):f.jsx("p",{children:"코드 내보내기"})})};ei.__docgenInfo={description:"",methods:[],displayName:"CodeExportButton"};const ti="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_921_1400'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='16'%20height='16'%3e%3crect%20width='16'%20height='16'%20fill='%23D9D9D9'%20/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_921_1400)'%3e%3cpath%20d='M7.99826%2012.0006C8.22171%2012.0006%208.41121%2011.9234%208.56676%2011.7691C8.72232%2011.6149%208.8001%2011.426%208.8001%2011.2024C8.8001%2010.979%208.72293%2010.7895%208.5686%2010.6339C8.41438%2010.4784%208.22549%2010.4006%208.00193%2010.4006C7.77849%2010.4006%207.58899%2010.4778%207.43343%2010.6321C7.27788%2010.7863%207.2001%2010.9752%207.2001%2011.1988C7.2001%2011.4222%207.27726%2011.6117%207.4316%2011.7673C7.58582%2011.9228%207.77471%2012.0006%207.99826%2012.0006ZM8.00476%2014.4006C7.12388%2014.4006%206.29454%2014.2339%205.51676%2013.9006C4.73899%2013.5673%204.05843%2013.1089%203.4751%2012.5256C2.89176%2011.9423%202.43343%2011.2619%202.1001%2010.4846C1.76676%209.70725%201.6001%208.8767%201.6001%207.99292C1.6001%207.10914%201.76676%206.28114%202.1001%205.50892C2.43343%204.7367%202.89176%204.05892%203.4751%203.47559C4.05843%202.89225%204.73876%202.43392%205.5161%202.10059C6.29343%201.76725%207.12399%201.60059%208.00776%201.60059C8.89154%201.60059%209.71954%201.76725%2010.4918%202.10059C11.264%202.43392%2011.9418%202.89225%2012.5251%203.47559C13.1084%204.05892%2013.5668%204.73792%2013.9001%205.51259C14.2334%206.28736%2014.4001%207.11514%2014.4001%207.99592C14.4001%208.87681%2014.2334%209.70614%2013.9001%2010.4839C13.5668%2011.2617%2013.1084%2011.9423%2012.5251%2012.5256C11.9418%2013.1089%2011.2628%2013.5673%2010.4881%2013.9006C9.71332%2014.2339%208.88554%2014.4006%208.00476%2014.4006ZM8.0536%205.16725C8.32393%205.16725%208.56593%205.25159%208.7796%205.42025C8.99327%205.58892%209.1001%205.79975%209.1001%206.05275C9.1001%206.28464%209.0296%206.49503%208.8886%206.68392C8.74749%206.87281%208.58465%207.04503%208.4001%207.20059C8.14454%207.42281%207.91121%207.66725%207.7001%207.93392C7.48899%208.20059%207.38343%208.50059%207.38343%208.83392C7.38343%209.00059%207.44276%209.13947%207.56143%209.25059C7.6801%209.3617%207.81854%209.41725%207.97676%209.41725C8.15532%209.41725%208.3066%209.35892%208.4306%209.24225C8.55471%209.12559%208.63343%208.97836%208.66676%208.80059C8.71121%208.56725%208.81121%208.36092%208.96676%208.18159C9.12232%208.00236%209.28899%207.83125%209.46676%207.66825C9.72232%207.43425%209.93899%207.16897%2010.1168%206.87242C10.2945%206.57586%2010.3834%206.25747%2010.3834%205.91725C10.3834%205.35059%2010.1529%204.8867%209.69176%204.52559C9.23065%204.16447%208.69404%203.98392%208.08193%203.98392C7.65904%203.98392%207.25915%204.07836%206.88226%204.26725C6.50526%204.45614%206.19365%204.72986%205.94743%205.08842C5.86032%205.20853%205.83621%205.34059%205.8751%205.48459C5.91399%205.62859%205.99454%205.75059%206.11676%205.85059C6.27232%205.97281%206.43899%206.00892%206.61676%205.95892C6.79454%205.90892%206.94454%205.80614%207.06676%205.65059C7.18899%205.49503%207.33538%205.37559%207.50593%205.29225C7.67649%205.20892%207.85904%205.16725%208.0536%205.16725Z'%20fill='%2390A2B6'%20/%3e%3c/g%3e%3c/svg%3e";class xs extends Ot{constructor(){super(...arguments);q(this,"pElement",null);q(this,"inputElement",null);q(this,"buttonElement",null)}init(o){super.init(o);const e=this.targetWorkspace.getToolbox(),r=ee.createElement("div",{class:"contentCreatingBlock"}),l=ee.createElement("label",{for:"creatingBlockInput",class:"creatingBlockLabel"});l.textContent="클래스 생성하기",this.inputElement=ee.createElement("input",{type:"text",placeholder:"클래스명을 정해주세요",class:"creatingBlockInput",id:"creatingBlockInput",maxlength:"30"}),this.inputElement.addEventListener("keydown",I=>{I.key==="Enter"&&this.createStyleBlock()});const a=ee.createElement("button",{class:"creatingBlockButton"});a.textContent="+",a.addEventListener("click",()=>this.createStyleBlock());const u=ee.createElement("label",{class:"listBlockLabel"});u.textContent="클래스 블록 목록";const m=ee.createElement("div",{class:"resetCssDiv"}),p=ee.createElement("input",{type:"checkbox",class:"resetCssCheckbox"});p.checked=ve.getState().isResetCssChecked,p.addEventListener("change",()=>{ve.getState().toggleResetCss(),Le.getState().setIsCssChanged(!0)});const $=ee.createElement("span",{class:"resetCssText"});$.textContent="reset CSS 적용하기";const T=ee.createElement("img",{src:ti,alt:"reset CSS Info",class:"questionImage"}),b=document.createElement("div");document.body.appendChild(b);const O=()=>{const{left:I,top:E}=T.getBoundingClientRect();Jt({description:"브라우저마다 다른 기본 스타일을 일관되게 만들기 위해, 모든 요소의 기본 스타일을 초기화하는 CSS입니다.",isOpen:!0,leftX:I,topY:E},b)},g=()=>{Jt({description:"",isOpen:!1,leftX:0,topY:0},b)};T.addEventListener("mouseenter",O),T.addEventListener("mouseleave",g),m.appendChild(p),m.appendChild($),m.appendChild(T),[l,this.inputElement,a,m,u].forEach(I=>r.appendChild(I)),e.addElementToContentArea(r,!0),this.registerCustomContextMenu(),this.show(te.contents)}addPrefixToClassName(o){return`CSS_${o}`}registerCustomContextMenu(){const o="deleteBlock";if(et.registry.getItem(o))return;const e={id:o,scopeType:et.ScopeType.BLOCK,displayText:"블록 삭제",weight:100,preconditionFn:r=>{const l=r.block.type;return te.contents.some(u=>u.type===l)&&r.block.isDeletable()?"enabled":"hidden"},callback:r=>{const l=r.block,a=l.type;Mt().getBlocksByType(a).forEach(T=>{T.dispose(!1,!0)}),l.dispose(!1,!0),Ee.getState().removeCssClass(a),Le.getState().setIsBlockChanged(!0),te.contents=te.contents.filter(T=>T.type!==a);const{removeClassBlock:p}=Lt.getState();p(a),Mt().getToolbox().getFlyout().show(te.contents),x.success(`"${a.replace("CSS_","")}" 클래스 블록이 삭제되었습니다.`)}};et.registry.register(e),document.addEventListener("click",r=>{const l=document.querySelector(".blocklyContextMenu");l&&!l.contains(r.target)&&(l.style.display="none")})}createStyleBlock(){var u;const o=(u=this.inputElement)==null?void 0:u.value;if(!o)return x.error("클래스명을 입력해주세요.");if(vr(o)){if(!Fr(o))return x.error("클래스명은 영문자, 밑줄(_), 하이픈(-), 숫자만 포함해주세요")}else return x.error("클래스명 첫 글자는 영문자, 밑줄(_), 하이픈(-)만 가능해요");const e=this.addPrefixToClassName(o),r=te.contents||[];if(r.some(m=>m.type===e))return x.error(`"${o}" 입력한 클래스명 블록은 이미 존재합니다.`);kt[e]||(kt[e]={init:function(){this.appendDummyInput().appendField(new Ur(o),"CLASS"),this.setOutput(!0),this.setStyle("defaultBlockCss")}}),Ee.getState().addNewCssClass(e),Le.getState().setIsBlockChanged(!0),te.contents=[...r,{kind:"block",type:e,enabled:!0}];const{addClassBlock:a}=Lt.getState();a(e),this.show(te.contents),x.success(`입력한 클래스명 블록 "${o}"이(가) 추가되었습니다.`),this.inputElement&&(this.inputElement.value="")}}q(xs,"registryName","StyleFlyout");const cc={tabs:{html:{label:"HTML 태그",toolboxConfig:Dr,flyoutRegistryName:Ot.registryName},css:{label:"CSS 클래스",toolboxConfig:te,flyoutRegistryName:xs.registryName}},defaultSelectedTab:"html"},si=()=>{const t=Ne(),s=Ae(),o=Ie()||Ge(),{setName:e}=be(),{mutate:r,isPending:l}=Se({mutationFn:({workspaceId:a,newName:u})=>s.updateWorkspaceName(o,a,u),onSuccess:a=>{x.success("워크스페이스 이름이 변경되었습니다."),e(a.name),t.invalidateQueries({queryKey:fe.list()})},onError:()=>{x.error("워크스페이스 이름 변경을 실패했습니다.")}});return{mutate:r,isPending:l}},ni=()=>{const t=Ne(),s=Ae(),o=Ie()||Ge(),{closeModal:e,setIsLoading:r}=Zt(),{mutate:l}=Se({mutationFn:a=>(r(!0),s.deleteWorkspace(o,a)),onSuccess:()=>{t.invalidateQueries({queryKey:fe.list()}),x.success("워크스페이스 삭제 성공")},onError:()=>{x.error("워크스페이스 삭제 실패")},onSettled:()=>{r(!1),e()}});return{mutate:l}},fe={all:["workspace"],list:()=>[...fe.all,"list"],detail:t=>[...fe.all,"detail",t]},oi=t=>{const s=Ae(),o=Ie()||Ge(),{resetChangedStatusState:e}=Le(),{imageMap:r}=$e(),l=Ne(),{mutate:a,isPending:u}=Se({mutationFn:({totalCssPropertyObj:m,canvas:p,classBlockList:$,cssResetStatus:T,thumbnail:b})=>s.saveWorkspace(o,t,m,p,$,T,b,r),onSuccess:()=>{e(),l.invalidateQueries({queryKey:fe.list()}),x.success("성공적으로 저장되었습니다.")},onError:()=>{x.error("저장에 실패했습니다.")}});return{mutate:a,isPending:u}},ri=()=>{const t=Ae(),s=Ie()||"",{pushImagePath:o,setNowImage:e}=$e(),{mutate:r,isPending:l}=Se({mutationFn:({workspaceId:a,imageName:u,image:m})=>t.postImage(s,a,u,m),onSuccess:a=>{o(a.imageName,a.imageUrl),e(a.imageUrl),x.success("성공적으로 저장되었습니다.")},onError:()=>{x.error("저장에 실패했습니다.")}});return{mutate:r,isPending:l}},ii=()=>{const t=Ae(),s=Ie()||"",{deleteImagePath:o}=$e(),{mutate:e}=Se({mutationFn:({workspaceId:r,imageName:l})=>t.deleteImage(s,r,l),onSuccess:r=>{o(r.imageName),x.success("이미지 삭제 성공")},onError:()=>{x.error("이미지 삭제 실패")}});return{mutate:e}},Bs=()=>{const[t,s]=A.useState(window.innerWidth),[o,e]=A.useState(window.innerHeight);return A.useEffect(()=>{const r=ns(()=>{s(window.innerWidth),e(window.innerHeight)},200);return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),{screenWidth:t,setScreenWidth:s,screenHeight:o,setScreenHeight:e}},li=()=>{const{leftX:t,topY:s,offsetX:o,offsetY:e,setLeftX:r,setTopY:l}=es(),{screenWidth:a,screenHeight:u}=Bs();return A.useEffect(()=>{r(o),e+40>u?l(-e+40):l(e)},[o,e,a,u]),{leftX:t,topY:s}},Ps=()=>{const{setCheckedCssPropertyObj:t,setCssOptionObj:s,currentCssClassName:o}=Ee(),{setIsCssChanged:e}=Le(),r=(u,m,p)=>{e(!0),t(o,u,!m),m||s(o,u,p)},l=(u,m)=>{e(!0),s(o,u,m)},a=A.useCallback(ns((u,m)=>{l(u,m)},200),[l]);return{handleCssPropertyCheckboxChange:r,handleCssOptionChange:l,handleColorChange:a}},ai=t=>{const{handleCssOptionChange:s}=Ps(),{setOffsetX:o,setOffsetY:e}=es(),{currentCssClassName:r,totalCssPropertyObj:l,selectedCssCategory:a}=Ee(),[u,m]=A.useState(""),[p,$]=A.useState(!1),[T,b]=A.useState(-1),[O,g]=A.useState(!1),[I,E]=A.useState(t.type==="select"&&t.option.length>0?t.option[0]:"");return A.useEffect(()=>{l[r]&&m(l[r].cssOptionObj[t.label]||"")},[r,l,t.label]),A.useEffect(()=>{if(!l[r]){g(!1),E(t.type==="select"?t.option[0]:t.type==="color"?"#000000":"");return}if(g(l[r].checkedCssPropertyObj[t.label]??!1),!l[r].cssOptionObj[t.label]){E(t.type==="select"?t.option[0]:t.type==="color"?"#000000":"");return}E(l[r].cssOptionObj[t.label])},[l,r,t,a]),{cssOptionValue:u,isHover:p,indexOfHover:T,isChecked:O,cssOption:I,handleEnterKey:(C,P)=>{P.key==="Enter"&&(s(C,P.currentTarget.value),P.currentTarget.blur(),P.preventDefault())},handleMouseEnter:(C,P)=>{$(!0),b(P),o(C.currentTarget.getBoundingClientRect().x),e(C.currentTarget.getBoundingClientRect().y)},handleMouseLeave:()=>{$(!1),b(-1)},handleChangeInputValue:C=>{m(C.target.value)}}},ci=()=>{const{mutate:t}=It(),s=()=>{t()};return f.jsx("div",{className:"flex h-[23rem] items-center justify-center border-4 border-dashed border-green-300 bg-green-100",onClick:s,children:f.jsx(Cn,{fill:"green"})})};ci.__docgenInfo={description:`@description +빈 워크스페이스에 마우스를 올렸을 때 보여지는 컴포넌트`,methods:[],displayName:"HoveredEmptyWorkspace"};export{ic as $,Wl as A,kt as B,ei as C,ee as D,ec as E,Dn as F,Ta as G,ci as H,Zr as I,xs as J,zl as K,pa as L,ae as M,Ba as N,kl as O,Dr as P,ac as Q,jr as R,Jr as S,Zl as T,qr as U,cc as V,Yr as W,Vn as X,ol as Y,_a as Z,rc as _,Hr as a,Kr as b,Qr as c,zr as d,Ms as e,Ie as f,Mt as g,Ge as h,Ur as i,te as j,Ae as k,oc as l,sc as m,jn as n,nc as o,ll as p,tc as q,Za as r,Xn as s,Qi as t,J as u,Bn as v,fe as w,jl as x,Ot as y,ja as z}; diff --git a/assets/HoveredEmptyWorkspace.stories-9uefTMUv.js b/assets/HoveredEmptyWorkspace.stories-Cv2-uVjA.js similarity index 95% rename from assets/HoveredEmptyWorkspace.stories-9uefTMUv.js rename to assets/HoveredEmptyWorkspace.stories-Cv2-uVjA.js index 93d4a4db..0b282aa4 100644 --- a/assets/HoveredEmptyWorkspace.stories-9uefTMUv.js +++ b/assets/HoveredEmptyWorkspace.stories-Cv2-uVjA.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{H as i}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{a as s}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const A={title:"entities/home/HoveredEmptyWorkspace",component:i,parameters:{layout:"fullscreen"},decorators:[e=>r.jsx("div",{onClick:s("HoveredEmptyWorkspace clicked"),children:r.jsx(e,{})})],tags:["autodocs"]},o={};var t,m,p;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(p=(m=o.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};const B=["Default"];export{o as Default,B as __namedExportsOrder,A as default}; +import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{H as i}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{a as s}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const A={title:"entities/home/HoveredEmptyWorkspace",component:i,parameters:{layout:"fullscreen"},decorators:[e=>r.jsx("div",{onClick:s("HoveredEmptyWorkspace clicked"),children:r.jsx(e,{})})],tags:["autodocs"]},o={};var t,m,p;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(p=(m=o.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};const B=["Default"];export{o as Default,B as __namedExportsOrder,A as default}; diff --git a/assets/ImageTagModal-DbH7oCNi.js b/assets/ImageTagModal-D2PPsknK.js similarity index 97% rename from assets/ImageTagModal-DbH7oCNi.js rename to assets/ImageTagModal-D2PPsknK.js index a532296c..5fa869cd 100644 --- a/assets/ImageTagModal-DbH7oCNi.js +++ b/assets/ImageTagModal-D2PPsknK.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{I as x,g as u}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{r as n}from"./index-DRjF_FHU.js";import{_ as r}from"./index-D1AAVYfs.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import{M as I}from"./ModalConfirm-BDuYJlbG.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{a as j}from"./html2canvas.esm-BTtajP0W.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import{I as h}from"./ImageTagModalImg-BJAMLe19.js";import{I as c}from"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";const M=()=>{const{isModalOpen:p,nowImage:t,setIsModalOpen:l,updateImageMap:d,nowId:f}=j(),[a,s]=n.useState(t);n.useEffect(()=>{s(t)},[t]);const g=()=>{const o=u();if(!o)return r.error("워크스페이스를 찾을 수 없습니다.");const i=o.getBlockById(f);if(!i)return r.error("블록을 찾을 수 없습니다.");const m=i.getField("SRC");if(!m)return r.error("이미지 필드를 찾을 수 없습니다.");m.setValue(a),d(a),r.success("이미지가 성공적으로 저장되었습니다."),l(!1)};return e.jsx(I,{isOpen:p,children:e.jsxs("div",{className:"flex h-[42.5rem] w-[63rem] flex-col",children:[e.jsx("span",{className:"text-semibold-lg mb-6 w-full text-black",children:"이미지 선택하기"}),e.jsxs("div",{className:"flex h-full flex-row gap-6",children:[e.jsx(x,{tagSrc:a,onSetTagSrc:s}),e.jsxs("div",{className:"flex h-full w-full flex-col gap-3",children:[e.jsx("span",{className:"text-semibold-md w-full text-gray-400",children:"이미지 미리보기"}),e.jsx(h,{imageSrc:a}),e.jsx("input",{className:"w-full rounded-lg border-[1px] px-5 py-3 align-middle text-gray-200 focus:outline-none",value:a,onChange:o=>s(o.target.value),placeholder:"이미지 URL을 일력해주세요."})]})]}),e.jsxs("div",{className:"mt-9 flex w-full flex-row justify-end gap-3",children:[e.jsx(c,{content:"닫기",isBlue:!1,onClick:()=>{l(!1)},"aria-label":"이미지 태그 모달 닫기 버튼"}),e.jsx(c,{content:"이미지 선택하기",isBlue:!0,onClick:()=>g(),"aria-label":"이미지 선택하기 버튼"})]})]})})};M.__docgenInfo={description:`@component +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{I as x,g as u}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{r as n}from"./index-DRjF_FHU.js";import{_ as r}from"./index-D1AAVYfs.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import{M as I}from"./ModalConfirm-BDuYJlbG.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{a as j}from"./html2canvas.esm-BTtajP0W.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import{I as h}from"./ImageTagModalImg-BJAMLe19.js";import{I as c}from"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";const M=()=>{const{isModalOpen:p,nowImage:t,setIsModalOpen:l,updateImageMap:d,nowId:f}=j(),[a,s]=n.useState(t);n.useEffect(()=>{s(t)},[t]);const g=()=>{const o=u();if(!o)return r.error("워크스페이스를 찾을 수 없습니다.");const i=o.getBlockById(f);if(!i)return r.error("블록을 찾을 수 없습니다.");const m=i.getField("SRC");if(!m)return r.error("이미지 필드를 찾을 수 없습니다.");m.setValue(a),d(a),r.success("이미지가 성공적으로 저장되었습니다."),l(!1)};return e.jsx(I,{isOpen:p,children:e.jsxs("div",{className:"flex h-[42.5rem] w-[63rem] flex-col",children:[e.jsx("span",{className:"text-semibold-lg mb-6 w-full text-black",children:"이미지 선택하기"}),e.jsxs("div",{className:"flex h-full flex-row gap-6",children:[e.jsx(x,{tagSrc:a,onSetTagSrc:s}),e.jsxs("div",{className:"flex h-full w-full flex-col gap-3",children:[e.jsx("span",{className:"text-semibold-md w-full text-gray-400",children:"이미지 미리보기"}),e.jsx(h,{imageSrc:a}),e.jsx("input",{className:"w-full rounded-lg border-[1px] px-5 py-3 align-middle text-gray-200 focus:outline-none",value:a,onChange:o=>s(o.target.value),placeholder:"이미지 URL을 일력해주세요."})]})]}),e.jsxs("div",{className:"mt-9 flex w-full flex-row justify-end gap-3",children:[e.jsx(c,{content:"닫기",isBlue:!1,onClick:()=>{l(!1)},"aria-label":"이미지 태그 모달 닫기 버튼"}),e.jsx(c,{content:"이미지 선택하기",isBlue:!0,onClick:()=>g(),"aria-label":"이미지 선택하기 버튼"})]})]})})};M.__docgenInfo={description:`@component @description 이미지 업로드 및 태그 선택을 위한 모달 컴포넌트입니다. 사용자는 이미지를 업로드하거나, 태그를 선택하고, 업로드된 이미지를 저장할 수 있습니다.`,methods:[],displayName:"ImageTagModal"};export{M as I}; diff --git a/assets/ImageTagModal.stories-CkMqjJ4O.js b/assets/ImageTagModal.stories-Bilj1Xz8.js similarity index 90% rename from assets/ImageTagModal.stories-CkMqjJ4O.js rename to assets/ImageTagModal.stories-Bilj1Xz8.js index f5d8b43b..81d36c73 100644 --- a/assets/ImageTagModal.stories-CkMqjJ4O.js +++ b/assets/ImageTagModal.stories-Bilj1Xz8.js @@ -1 +1 @@ -import{I as p}from"./ImageTagModal-DbH7oCNi.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ModalConfirm-BDuYJlbG.js";const v={title:"widgets/workspace/ImageTagModal",component:p,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,r,m;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(m=(r=t.parameters)==null?void 0:r.docs)==null?void 0:m.source}}};const z=["Default"];export{t as Default,z as __namedExportsOrder,v as default}; +import{I as p}from"./ImageTagModal-D2PPsknK.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ModalConfirm-BDuYJlbG.js";const v={title:"widgets/workspace/ImageTagModal",component:p,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,r,m;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(m=(r=t.parameters)==null?void 0:r.docs)==null?void 0:m.source}}};const z=["Default"];export{t as Default,z as __namedExportsOrder,v as default}; diff --git a/assets/ImageTagModalList.stories-DV0djgRj.js b/assets/ImageTagModalList.stories-DpekBuu4.js similarity index 97% rename from assets/ImageTagModalList.stories-DV0djgRj.js rename to assets/ImageTagModalList.stories-DpekBuu4.js index 69535b1d..57758a94 100644 --- a/assets/ImageTagModalList.stories-DV0djgRj.js +++ b/assets/ImageTagModalList.stories-DpekBuu4.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{I as o}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{r as n}from"./index-DRjF_FHU.js";import{a as S}from"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const B={title:"entities/workspace/ImageTagModalList",component:o,parameters:{layout:"centered",docs:{description:{component:"img 태그 src 속성 적용을 위한 모달창에 사용되는 이미지 리스트 컴포넌트"}}},tags:["autodocs"]},e={args:{tagSrc:"/mock/image2.png",onSetTagSrc:()=>{}},render:g=>{const[i,s]=n.useState(g.tagSrc),p=JSON.stringify(Object.fromEntries(new Map([["example1{}},render:g=>{const[i,s]=n.useState(g.tagSrc),p=JSON.stringify(Object.fromEntries(new Map([["example1 {} diff --git a/assets/NotFound-D7Own4ne.js b/assets/NotFound-BUCDSp1S.js similarity index 79% rename from assets/NotFound-D7Own4ne.js rename to assets/NotFound-BUCDSp1S.js index 17f69381..cfda2929 100644 --- a/assets/NotFound-D7Own4ne.js +++ b/assets/NotFound-BUCDSp1S.js @@ -1,3 +1,3 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{H as t}from"./index.esm-zFJIz-4f.js";import{E as e}from"./ErrorContent-BILLHmWU.js";const n=()=>o.jsxs(o.Fragment,{children:[o.jsxs(t,{children:[o.jsx("title",{children:"BooLock - 페이지를 찾을 수 없음"}),o.jsx("meta",{name:"description",content:"요청한 페이지를 찾을 수 없습니다. 다른 페이지를 확인해 주세요."})]}),o.jsx(e,{description:`유효한 페이지가 아닙니다! +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{H as t}from"./index.esm-zFJIz-4f.js";import{E as e}from"./ErrorContent-D7ex5NJl.js";const n=()=>o.jsxs(o.Fragment,{children:[o.jsxs(t,{children:[o.jsx("title",{children:"BooLock - 페이지를 찾을 수 없음"}),o.jsx("meta",{name:"description",content:"요청한 페이지를 찾을 수 없습니다. 다른 페이지를 확인해 주세요."})]}),o.jsx(e,{description:`유효한 페이지가 아닙니다! 다른 페이지에서 만나요!`})]});n.__docgenInfo={description:`@description 404 페이지 컴포넌트`,methods:[],displayName:"NotFound"};export{n as N}; diff --git a/assets/NotFound.stories-YmFj178k.js b/assets/NotFound.stories-By56dNKE.js similarity index 63% rename from assets/NotFound.stories-YmFj178k.js rename to assets/NotFound.stories-By56dNKE.js index db411ef9..fe2cdd9b 100644 --- a/assets/NotFound.stories-YmFj178k.js +++ b/assets/NotFound.stories-By56dNKE.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{N as e}from"./NotFound-D7Own4ne.js";import"./index-DRjF_FHU.js";import"./index.esm-zFJIz-4f.js";import"./ErrorContent-BILLHmWU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-C4R-4nDE.js";import"./WorkspaceModal-DaqQAmWl.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const or={title:"pages/NotFound",component:e,parameters:{layout:"fullscreen"},decorators:[i=>o.jsx("div",{className:"h-screen",children:o.jsx(i,{})})],tags:["autodocs"]},r={args:{}};var t,m,p;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{N as e}from"./NotFound-BUCDSp1S.js";import"./index-DRjF_FHU.js";import"./index.esm-zFJIz-4f.js";import"./ErrorContent-D7ex5NJl.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./CssPropsSelectBox-CWdNthdf.js";import"./WorkspaceModal-DhaiX4aW.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const or={title:"pages/NotFound",component:e,parameters:{layout:"fullscreen"},decorators:[i=>o.jsx("div",{className:"h-screen",children:o.jsx(i,{})})],tags:["autodocs"]},r={args:{}};var t,m,p;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/RedoButton.stories-D7eyygJg.js b/assets/RedoButton.stories-Ck1f1xKh.js similarity index 95% rename from assets/RedoButton.stories-D7eyygJg.js rename to assets/RedoButton.stories-Ck1f1xKh.js index 6c0e8fbc..06d4e8c3 100644 --- a/assets/RedoButton.stories-D7eyygJg.js +++ b/assets/RedoButton.stories-Ck1f1xKh.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{R as s}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{a as c}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const H={title:"entities/workspace/RedoButton",component:s,parameters:{layout:"centered"},decorators:[m=>{const p=a=>{a.preventDefault(),c("redo button clicked")()};return o.jsx("div",{onClick:p,children:o.jsx(m,{})})}],tags:["autodocs"]},t={};var r,e,i;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(i=(e=t.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};const I=["Default"];export{t as Default,I as __namedExportsOrder,H as default}; +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{R as s}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{a as c}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const H={title:"entities/workspace/RedoButton",component:s,parameters:{layout:"centered"},decorators:[m=>{const p=a=>{a.preventDefault(),c("redo button clicked")()};return o.jsx("div",{onClick:p,children:o.jsx(m,{})})}],tags:["autodocs"]},t={};var r,e,i;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(i=(e=t.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};const I=["Default"];export{t as Default,I as __namedExportsOrder,H as default}; diff --git a/assets/SaveButton.stories-B3p_QSOd.js b/assets/SaveButton.stories-BN4-ycfX.js similarity index 95% rename from assets/SaveButton.stories-B3p_QSOd.js rename to assets/SaveButton.stories-BN4-ycfX.js index a5ee90d4..3d14c163 100644 --- a/assets/SaveButton.stories-B3p_QSOd.js +++ b/assets/SaveButton.stories-BN4-ycfX.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{S as s}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{a as c}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const H={title:"entities/workspace/SaveButton",component:s,parameters:{layout:"centered"},decorators:[m=>{const p=a=>{a.preventDefault(),c("save button clicked")()};return o.jsx("div",{onClick:p,children:o.jsx(m,{})})}],tags:["autodocs"]},t={};var r,e,i;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(i=(e=t.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};const I=["Default"];export{t as Default,I as __namedExportsOrder,H as default}; +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{S as s}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{a as c}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const H={title:"entities/workspace/SaveButton",component:s,parameters:{layout:"centered"},decorators:[m=>{const p=a=>{a.preventDefault(),c("save button clicked")()};return o.jsx("div",{onClick:p,children:o.jsx(m,{})})}],tags:["autodocs"]},t={};var r,e,i;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(i=(e=t.parameters)==null?void 0:e.docs)==null?void 0:i.source}}};const I=["Default"];export{t as Default,I as __namedExportsOrder,H as default}; diff --git a/assets/Select.stories-BpCjMs0I.js b/assets/Select.stories-BTOnjg5m.js similarity index 96% rename from assets/Select.stories-BpCjMs0I.js rename to assets/Select.stories-BTOnjg5m.js index db90b228..39419db1 100644 --- a/assets/Select.stories-BpCjMs0I.js +++ b/assets/Select.stories-BTOnjg5m.js @@ -1,4 +1,4 @@ -import{e as p}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const z={title:"shared/ui/Select/Select",component:p,parameters:{layout:"centered"},tags:["autodocs"]},o={args:{options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"},{value:"3",label:"Option 3"}],value:"",placeholder:"Select an option",onChange:a=>console.log(a)}};var t,e,r;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{e as p}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const z={title:"shared/ui/Select/Select",component:p,parameters:{layout:"centered"},tags:["autodocs"]},o={args:{options:[{value:"1",label:"Option 1"},{value:"2",label:"Option 2"},{value:"3",label:"Option 3"}],value:"",placeholder:"Select an option",onChange:a=>console.log(a)}};var t,e,r;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { options: [{ value: '1', diff --git a/assets/UndoButton.stories-DeBTDe3r.js b/assets/UndoButton.stories-B747gNkl.js similarity index 95% rename from assets/UndoButton.stories-DeBTDe3r.js rename to assets/UndoButton.stories-B747gNkl.js index 6fe66187..f097cd6b 100644 --- a/assets/UndoButton.stories-DeBTDe3r.js +++ b/assets/UndoButton.stories-B747gNkl.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{U as s}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{a as n}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const G={title:"entities/workspace/UndoButton",component:s,parameters:{layout:"centered"},decorators:[p=>{const e=a=>{a.preventDefault(),n("undo button clicked")()};return o.jsx("div",{onClick:e,children:o.jsx(p,{})})}],tags:["autodocs"]},t={};var r,i,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(m=(i=t.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};const H=["Default"];export{t as Default,H as __namedExportsOrder,G as default}; +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{U as s}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{a as n}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const G={title:"entities/workspace/UndoButton",component:s,parameters:{layout:"centered"},decorators:[p=>{const e=a=>{a.preventDefault(),n("undo button clicked")()};return o.jsx("div",{onClick:e,children:o.jsx(p,{})})}],tags:["autodocs"]},t={};var r,i,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(m=(i=t.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};const H=["Default"];export{t as Default,H as __namedExportsOrder,G as default}; diff --git a/assets/WorkspaceAddBtn.stories-DQgKlxDR.js b/assets/WorkspaceAddBtn.stories-CY1ZOG0k.js similarity index 95% rename from assets/WorkspaceAddBtn.stories-DQgKlxDR.js rename to assets/WorkspaceAddBtn.stories-CY1ZOG0k.js index 9fa01e0f..f677575d 100644 --- a/assets/WorkspaceAddBtn.stories-DQgKlxDR.js +++ b/assets/WorkspaceAddBtn.stories-CY1ZOG0k.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{W as e}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{a}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const z={title:"entities/home/WorkspaceAddBtn",component:e,parameters:{layout:"centered"},decorators:[i=>o.jsx("div",{onClick:a("WorkspaceAdd Button clicked"),children:o.jsx(i,{})})],tags:["autodocs"]},t={};var r,m,p;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(p=(m=t.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};const F=["Default"];export{t as Default,F as __namedExportsOrder,z as default}; +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{W as e}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{a}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const z={title:"entities/home/WorkspaceAddBtn",component:e,parameters:{layout:"centered"},decorators:[i=>o.jsx("div",{onClick:a("WorkspaceAdd Button clicked"),children:o.jsx(i,{})})],tags:["autodocs"]},t={};var r,m,p;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(p=(m=t.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};const F=["Default"];export{t as Default,F as __namedExportsOrder,z as default}; diff --git a/assets/WorkspaceContainer.stories-DXGgcS_J.js b/assets/WorkspaceContainer.stories-X92PftVG.js similarity index 63% rename from assets/WorkspaceContainer.stories-DXGgcS_J.js rename to assets/WorkspaceContainer.stories-X92PftVG.js index faf696bb..1d377dc0 100644 --- a/assets/WorkspaceContainer.stories-DXGgcS_J.js +++ b/assets/WorkspaceContainer.stories-X92PftVG.js @@ -1,4 +1,4 @@ -import{W as m}from"./CssPropsSelectBox-C4R-4nDE.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DaqQAmWl.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const X={title:"widgets/home/WorkspaceContainer",component:m,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}};var o,t,p;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{W as m}from"./CssPropsSelectBox-CWdNthdf.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DhaiX4aW.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const X={title:"widgets/home/WorkspaceContainer",component:m,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}};var o,t,p;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/WorkspaceContent.stories-CXY4nPEO.js b/assets/WorkspaceContent.stories-rP4W9iPW.js similarity index 65% rename from assets/WorkspaceContent.stories-CXY4nPEO.js rename to assets/WorkspaceContent.stories-rP4W9iPW.js index 7c56152c..470560cd 100644 --- a/assets/WorkspaceContent.stories-CXY4nPEO.js +++ b/assets/WorkspaceContent.stories-rP4W9iPW.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{a as e}from"./CssPropsSelectBox-C4R-4nDE.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DaqQAmWl.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import"./ImageTagModal-DbH7oCNi.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const Z={title:"widgets/workspace/WorkspaceContent",component:e,parameters:{layout:"fullscreen"},decorators:[i=>t.jsx("div",{className:"flex h-screen w-screen flex-1",children:t.jsx(i,{})})],tags:["autodocs"]},r={args:{}};var o,p,m;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{a as e}from"./CssPropsSelectBox-CWdNthdf.js";import"./index-DRjF_FHU.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./html2canvas.esm-BTtajP0W.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import"./WorkspaceModal-DhaiX4aW.js";import"./ModalConfirm-BDuYJlbG.js";import"./PreviewBox-L0Yy0i69.js";import"./useCoachMarkStore-B_Mp-SD7.js";import"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./cssCategoryList-CHFX1k4S.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import"./ImageTagModal-D2PPsknK.js";import"./infiniteQueryBehavior-DdhmIwcw.js";const Z={title:"widgets/workspace/WorkspaceContent",component:e,parameters:{layout:"fullscreen"},decorators:[i=>t.jsx("div",{className:"flex h-screen w-screen flex-1",children:t.jsx(i,{})})],tags:["autodocs"]},r={args:{}};var o,p,m;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/WorkspaceGrid.stories-bi2t6aVh.js b/assets/WorkspaceGrid.stories-BZXbhW_z.js similarity index 98% rename from assets/WorkspaceGrid.stories-bi2t6aVh.js rename to assets/WorkspaceGrid.stories-BZXbhW_z.js index 692deec3..67827e78 100644 --- a/assets/WorkspaceGrid.stories-bi2t6aVh.js +++ b/assets/WorkspaceGrid.stories-BZXbhW_z.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{W as d}from"./WorkspaceGrid-C2jJPMUx.js";import{a as l,v as I}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{a as k}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./question-BUxmZXrP.js";import"./v4-CQkTLCs1.js";const H={title:"widgets/home/WorkspaceGrid",component:d,parameters:{layout:"fullscreen"},decorators:[a=>t.jsx("div",{className:"p-4",children:t.jsx(a,{})})],tags:["autodocs"]},e={args:{children:t.jsx(l,{workspaceId:I(),title:"예시 1",thumbnail:"",lastEdited:new Date().toISOString(),onClick:()=>{k("workspaceItem clicked")()}})}},r={render:()=>{const a=[{workspaceId:"1234",title:"예시 1",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 2",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 3",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 4",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 5",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"}];return t.jsx(d,{children:a.map(o=>t.jsx(l,{...o,onClick:()=>{k("workspaceItem clicked")()}},o.workspaceId))})}};var i,s,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{W as d}from"./WorkspaceGrid-C2jJPMUx.js";import{a as l,v as I}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{a as k}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./question-BUxmZXrP.js";import"./v4-CQkTLCs1.js";const H={title:"widgets/home/WorkspaceGrid",component:d,parameters:{layout:"fullscreen"},decorators:[a=>t.jsx("div",{className:"p-4",children:t.jsx(a,{})})],tags:["autodocs"]},e={args:{children:t.jsx(l,{workspaceId:I(),title:"예시 1",thumbnail:"",lastEdited:new Date().toISOString(),onClick:()=>{k("workspaceItem clicked")()}})}},r={render:()=>{const a=[{workspaceId:"1234",title:"예시 1",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 2",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 3",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 4",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"},{workspaceId:"1234",title:"예시 5",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00"}];return t.jsx(d,{children:a.map(o=>t.jsx(l,{...o,onClick:()=>{k("workspaceItem clicked")()}},o.workspaceId))})}};var i,s,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { children: { action('workspaceItem clicked')(); diff --git a/assets/WorkspaceHeader-BigAUUkC.js b/assets/WorkspaceHeader-BOFktQY9.js similarity index 92% rename from assets/WorkspaceHeader-BigAUUkC.js rename to assets/WorkspaceHeader-BOFktQY9.js index 08007ca5..1c9a0fce 100644 --- a/assets/WorkspaceHeader-BigAUUkC.js +++ b/assets/WorkspaceHeader-BOFktQY9.js @@ -1,2 +1,2 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{W as r,b as s}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";const t=()=>e.jsxs("header",{className:"mb-5 mt-[60px] flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h2",{className:"text-bold-xl",children:"워크스페이스"}),e.jsx(r,{})]}),e.jsx(s,{})]});t.__docgenInfo={description:`@description +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{W as r,b as s}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";const t=()=>e.jsxs("header",{className:"mb-5 mt-[60px] flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h2",{className:"text-bold-xl",children:"워크스페이스"}),e.jsx(r,{})]}),e.jsx(s,{})]});t.__docgenInfo={description:`@description 워크스페이스 헤더 컴포넌트`,methods:[],displayName:"WorkspaceHeader"};export{t as W}; diff --git a/assets/WorkspaceHeader.stories-BCT-sagY.js b/assets/WorkspaceHeader.stories-DudoqoOG.js similarity index 91% rename from assets/WorkspaceHeader.stories-BCT-sagY.js rename to assets/WorkspaceHeader.stories-DudoqoOG.js index b2605a65..6feb0fb8 100644 --- a/assets/WorkspaceHeader.stories-BCT-sagY.js +++ b/assets/WorkspaceHeader.stories-DudoqoOG.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{W as a}from"./WorkspaceHeader-BigAUUkC.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const q={title:"widgets/home/WorkspaceHeader",component:a,parameters:{layout:"fullscreen"},decorators:[e=>o.jsx("div",{className:"p-4",children:o.jsx(e,{})})],tags:["autodocs"]},r={args:{}};var t,m,p;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{W as a}from"./WorkspaceHeader-BOFktQY9.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const q={title:"widgets/home/WorkspaceHeader",component:a,parameters:{layout:"fullscreen"},decorators:[e=>o.jsx("div",{className:"p-4",children:o.jsx(e,{})})],tags:["autodocs"]},r={args:{}};var t,m,p;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/WorkspaceHeaderButtons-DtKBgv7W.js b/assets/WorkspaceHeaderButtons-u6rliLN5.js similarity index 92% rename from assets/WorkspaceHeaderButtons-DtKBgv7W.js rename to assets/WorkspaceHeaderButtons-u6rliLN5.js index dad7140c..f30bb842 100644 --- a/assets/WorkspaceHeaderButtons-DtKBgv7W.js +++ b/assets/WorkspaceHeaderButtons-u6rliLN5.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{C as r,S as s,U as e,R as p}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{u as m}from"./useCoachMarkStore-B_Mp-SD7.js";const a=()=>{const{currentStep:o}=m();return t.jsxs("div",{className:`flex items-center gap-3 ${o===4?"z-[99999]":""}`,children:[t.jsx(r,{}),t.jsx(s,{}),t.jsx(e,{}),t.jsx(p,{})]})};a.__docgenInfo={description:"",methods:[],displayName:"WorkspaceHeaderButtons"};export{a as W}; +import{j as t}from"./jsx-runtime-DR9Q75dM.js";import{C as r,S as s,U as e,R as p}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{u as m}from"./useCoachMarkStore-B_Mp-SD7.js";const a=()=>{const{currentStep:o}=m();return t.jsxs("div",{className:`flex items-center gap-3 ${o===4?"z-[99999]":""}`,children:[t.jsx(r,{}),t.jsx(s,{}),t.jsx(e,{}),t.jsx(p,{})]})};a.__docgenInfo={description:"",methods:[],displayName:"WorkspaceHeaderButtons"};export{a as W}; diff --git a/assets/WorkspaceHeaderButtons.stories-DLWxKga4.js b/assets/WorkspaceHeaderButtons.stories-Pb3CzoXs.js similarity index 91% rename from assets/WorkspaceHeaderButtons.stories-DLWxKga4.js rename to assets/WorkspaceHeaderButtons.stories-Pb3CzoXs.js index c861a21d..5e7315cf 100644 --- a/assets/WorkspaceHeaderButtons.stories-DLWxKga4.js +++ b/assets/WorkspaceHeaderButtons.stories-Pb3CzoXs.js @@ -1 +1 @@ -import{W as m}from"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./useCoachMarkStore-B_Mp-SD7.js";const v={title:"entities/workspace/WorkspaceHeaderButtons",component:m,parameters:{layout:"centered",docs:{description:{component:"워크스페이스 헤더 버튼 모음 컴포넌트"}}},tags:["autodocs"]},t={};var o,r,p;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(p=(r=t.parameters)==null?void 0:r.docs)==null?void 0:p.source}}};const z=["Default"];export{t as Default,z as __namedExportsOrder,v as default}; +import{W as m}from"./WorkspaceHeaderButtons-u6rliLN5.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./useCoachMarkStore-B_Mp-SD7.js";const v={title:"entities/workspace/WorkspaceHeaderButtons",component:m,parameters:{layout:"centered",docs:{description:{component:"워크스페이스 헤더 버튼 모음 컴포넌트"}}},tags:["autodocs"]},t={};var o,r,p;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(p=(r=t.parameters)==null?void 0:r.docs)==null?void 0:p.source}}};const z=["Default"];export{t as Default,z as __namedExportsOrder,v as default}; diff --git a/assets/WorkspaceItem.stories-BNI5aWjC.js b/assets/WorkspaceItem.stories-DUFiwSOj.js similarity index 97% rename from assets/WorkspaceItem.stories-BNI5aWjC.js rename to assets/WorkspaceItem.stories-DUFiwSOj.js index 99c60c22..05c79152 100644 --- a/assets/WorkspaceItem.stories-BNI5aWjC.js +++ b/assets/WorkspaceItem.stories-DUFiwSOj.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{a as i}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{a as s}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const q={title:"entities/home/WorkspaceItem",component:i,parameters:{layout:"fullscreen"},tags:["autodocs"]},t={args:{workspaceId:"4ddcbf25-acb0-42cd-8a97-aeda515e26db",title:"스토리북용 워크스페이스",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00",onClick:()=>{s("workspaceItem clicked")()}},render:m=>e.jsx("div",{className:"flex items-center justify-center p-4",children:e.jsx("ul",{className:"w-[264px]",children:e.jsx(i,{...m})})})};var r,o,a;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import{a as i}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{a as s}from"./chunk-D5ZWXAHU-CGElDDNX.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const q={title:"entities/home/WorkspaceItem",component:i,parameters:{layout:"fullscreen"},tags:["autodocs"]},t={args:{workspaceId:"4ddcbf25-acb0-42cd-8a97-aeda515e26db",title:"스토리북용 워크스페이스",thumbnail:"",lastEdited:"2024-11-28T09:34:45.106+00:00",onClick:()=>{s("workspaceItem clicked")()}},render:m=>e.jsx("div",{className:"flex items-center justify-center p-4",children:e.jsx("ul",{className:"w-[264px]",children:e.jsx(i,{...m})})})};var r,o,a;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { workspaceId: '4ddcbf25-acb0-42cd-8a97-aeda515e26db', title: '스토리북용 워크스페이스', diff --git a/assets/WorkspaceList-E8ahMSIZ.js b/assets/WorkspaceList-m-7GHa-8.js similarity index 97% rename from assets/WorkspaceList-E8ahMSIZ.js rename to assets/WorkspaceList-m-7GHa-8.js index 56edf2da..3b39b994 100644 --- a/assets/WorkspaceList-E8ahMSIZ.js +++ b/assets/WorkspaceList-m-7GHa-8.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{a as s}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{u as i}from"./index-x70cJmE6.js";const a=({workspaceList:t})=>{const n=i();return r.jsx(r.Fragment,{children:t.map(e=>r.jsx(s,{workspaceId:e.workspace_id,title:e.name,thumbnail:e.thumbnail||"",lastEdited:e.updated_at,onClick:()=>{n(`/workspace/${e.workspace_id}`)}},e.workspace_id))})};a.__docgenInfo={description:`@description +import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{a as s}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import{u as i}from"./index-x70cJmE6.js";const a=({workspaceList:t})=>{const n=i();return r.jsx(r.Fragment,{children:t.map(e=>r.jsx(s,{workspaceId:e.workspace_id,title:e.name,thumbnail:e.thumbnail||"",lastEdited:e.updated_at,onClick:()=>{n(`/workspace/${e.workspace_id}`)}},e.workspace_id))})};a.__docgenInfo={description:`@description 워크스페이스 목록 컴포넌트`,methods:[],displayName:"WorkspaceList",props:{workspaceList:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ name: string; updated_at: string; diff --git a/assets/WorkspaceList.stories-nt9wjUqV.js b/assets/WorkspaceList.stories-DhBjHqN4.js similarity index 95% rename from assets/WorkspaceList.stories-nt9wjUqV.js rename to assets/WorkspaceList.stories-DhBjHqN4.js index d60220a7..35cd2670 100644 --- a/assets/WorkspaceList.stories-nt9wjUqV.js +++ b/assets/WorkspaceList.stories-DhBjHqN4.js @@ -1,4 +1,4 @@ -import{j as s}from"./jsx-runtime-DR9Q75dM.js";import{W as O}from"./WorkspaceList-E8ahMSIZ.js";import{f as c,h as d,v as l}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./index-x70cJmE6.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./question-BUxmZXrP.js";const q={title:"widgets/home/WorkspaceList",component:O,parameters:{layout:"fullscreen"},decorators:[r=>s.jsx("div",{className:"p-4",children:s.jsx(r,{})})],tags:["autodocs"]},e={args:{workspaceList:[{name:"Workspace 1",updated_at:new Date().toISOString(),user_id:c()||d(),workspace_id:l(),isCssReset:!1,thumbnail:"",totalTotalCssPropertyObj:{example:{checkedCssPropertyObj:{},cssOptionObj:{}}}}]}},t={args:{workspaceList:Array.from({length:4}).map((r,u)=>({name:`Workspace ${u}`,updated_at:new Date().toISOString(),user_id:c()||d(),workspace_id:l(),isCssReset:!1,thumbnail:"",totalTotalCssPropertyObj:{example:{checkedCssPropertyObj:{},cssOptionObj:{}}}}))}};var a,o,p;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{ +import{j as s}from"./jsx-runtime-DR9Q75dM.js";import{W as O}from"./WorkspaceList-m-7GHa-8.js";import{f as c,h as d,v as l}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./index-DRjF_FHU.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./index-x70cJmE6.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./question-BUxmZXrP.js";const q={title:"widgets/home/WorkspaceList",component:O,parameters:{layout:"fullscreen"},decorators:[r=>s.jsx("div",{className:"p-4",children:s.jsx(r,{})})],tags:["autodocs"]},e={args:{workspaceList:[{name:"Workspace 1",updated_at:new Date().toISOString(),user_id:c()||d(),workspace_id:l(),isCssReset:!1,thumbnail:"",totalTotalCssPropertyObj:{example:{checkedCssPropertyObj:{},cssOptionObj:{}}}}]}},t={args:{workspaceList:Array.from({length:4}).map((r,u)=>({name:`Workspace ${u}`,updated_at:new Date().toISOString(),user_id:c()||d(),workspace_id:l(),isCssReset:!1,thumbnail:"",totalTotalCssPropertyObj:{example:{checkedCssPropertyObj:{},cssOptionObj:{}}}}))}};var a,o,p;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{ args: { workspaceList: [{ name: 'Workspace 1', diff --git a/assets/WorkspaceModal-DaqQAmWl.js b/assets/WorkspaceModal-DhaiX4aW.js similarity index 95% rename from assets/WorkspaceModal-DaqQAmWl.js rename to assets/WorkspaceModal-DhaiX4aW.js index ca2ce1cb..9e7746d2 100644 --- a/assets/WorkspaceModal-DaqQAmWl.js +++ b/assets/WorkspaceModal-DhaiX4aW.js @@ -1,2 +1,2 @@ -import{j as e}from"./jsx-runtime-DR9Q75dM.js";import"./plus-C7enkl2d.js";import{S as d}from"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import{M as m}from"./ModalConfirm-BDuYJlbG.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import{S as c}from"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import{b as p}from"./html2canvas.esm-BTtajP0W.js";const h=()=>{const{isModalOpen:t,modalContent:a,handleModalConfirmButton:r,handleModalCloseButton:s,isLoading:i}=p(),n=[{name:"아차차~",func:s,type:"neutral"},{name:"지울래요",func:r,type:"danger",isDisabled:i}];return e.jsx(m,{isOpen:t,children:e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"mb-10 flex flex-col items-center justify-center gap-3 text-center",children:[e.jsx("img",{src:"https://kr.object.ncloudstorage.com/boolock-storage/static/booduck_modal.png",width:100,height:100,alt:"Booduck Modal"}),e.jsx("p",{className:"text-semibold-lg whitespace-pre-line text-gray-500",children:a})]}),e.jsx("div",{className:"flex gap-3",children:n.map((o,l)=>e.jsx(d,{onClick:()=>o.func(),variant:o.type,isDisabled:o.isDisabled,"aria-label":"워크스페이스 삭제 여부 버튼",children:e.jsx(e.Fragment,{children:o.isDisabled?e.jsx(c,{width:4,height:4,foregroundColor:"grayWhite",backgroundColor:"gray200"}):o.name})},l))})]})})};h.__docgenInfo={description:`@description +import{j as e}from"./jsx-runtime-DR9Q75dM.js";import"./plus-C7enkl2d.js";import{S as d}from"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import{M as m}from"./ModalConfirm-BDuYJlbG.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import{S as c}from"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{b as p}from"./html2canvas.esm-BTtajP0W.js";const h=()=>{const{isModalOpen:t,modalContent:a,handleModalConfirmButton:r,handleModalCloseButton:s,isLoading:i}=p(),n=[{name:"아차차~",func:s,type:"neutral"},{name:"지울래요",func:r,type:"danger",isDisabled:i}];return e.jsx(m,{isOpen:t,children:e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"mb-10 flex flex-col items-center justify-center gap-3 text-center",children:[e.jsx("img",{src:"https://kr.object.ncloudstorage.com/boolock-storage/static/booduck_modal.png",width:100,height:100,alt:"Booduck Modal"}),e.jsx("p",{className:"text-semibold-lg whitespace-pre-line text-gray-500",children:a})]}),e.jsx("div",{className:"flex gap-3",children:n.map((o,l)=>e.jsx(d,{onClick:()=>o.func(),variant:o.type,isDisabled:o.isDisabled,"aria-label":"워크스페이스 삭제 여부 버튼",children:e.jsx(e.Fragment,{children:o.isDisabled?e.jsx(c,{width:4,height:4,foregroundColor:"grayWhite",backgroundColor:"gray200"}):o.name})},l))})]})})};h.__docgenInfo={description:`@description 워크스페이스 삭제 모달 컴포넌트`,methods:[],displayName:"WorkspaceModal"};export{h as W}; diff --git a/assets/WorkspaceModal.stories-BvCRkHjS.js b/assets/WorkspaceModal.stories-SqnlApMm.js similarity index 93% rename from assets/WorkspaceModal.stories-BvCRkHjS.js rename to assets/WorkspaceModal.stories-SqnlApMm.js index e2ba64e0..62ed605f 100644 --- a/assets/WorkspaceModal.stories-BvCRkHjS.js +++ b/assets/WorkspaceModal.stories-SqnlApMm.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{W as c}from"./WorkspaceModal-DaqQAmWl.js";import{a as e}from"./chunk-D5ZWXAHU-CGElDDNX.js";import{r as u}from"./index-DRjF_FHU.js";import{b as f}from"./html2canvas.esm-BTtajP0W.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ModalConfirm-BDuYJlbG.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const L={title:"widgets/home/WorkspaceModal",component:c,parameters:{layout:"centered"},decorators:[p=>{const{setModalContent:i,setHandleModalCloseButton:n,setHandleModalConfirmButton:d,openModal:l,closeModal:t}=f();return u.useEffect(()=>{i("워크스페이스 관련 모달창입니다"),n(()=>{e("closeModal")(),t()}),d(()=>{e("confirmModal")(),t()})},[]),o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:()=>l(),className:"rounded-2xl border px-4 py-2",children:"모달 열기"}),o.jsx(p,{})]})}],tags:["autodocs"]},r={args:{}};var a,m,s;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{ +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import{W as c}from"./WorkspaceModal-DhaiX4aW.js";import{a as e}from"./chunk-D5ZWXAHU-CGElDDNX.js";import{r as u}from"./index-DRjF_FHU.js";import{b as f}from"./html2canvas.esm-BTtajP0W.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ModalConfirm-BDuYJlbG.js";import"./ToasterWithMax-D4jPvwZi.js";import"./index-D1AAVYfs.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./QueryClientProvider-BdRu95_o.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./v4-CQkTLCs1.js";const L={title:"widgets/home/WorkspaceModal",component:c,parameters:{layout:"centered"},decorators:[p=>{const{setModalContent:i,setHandleModalCloseButton:n,setHandleModalConfirmButton:d,openModal:l,closeModal:t}=f();return u.useEffect(()=>{i("워크스페이스 관련 모달창입니다"),n(()=>{e("closeModal")(),t()}),d(()=>{e("confirmModal")(),t()})},[]),o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:()=>l(),className:"rounded-2xl border px-4 py-2",children:"모달 열기"}),o.jsx(p,{})]})}],tags:["autodocs"]},r={args:{}};var a,m,s;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/WorkspaceNameInput.stories-CysUBGqj.js b/assets/WorkspaceNameInput.stories-CriIje7n.js similarity index 95% rename from assets/WorkspaceNameInput.stories-CysUBGqj.js rename to assets/WorkspaceNameInput.stories-CriIje7n.js index 33625223..285c26bd 100644 --- a/assets/WorkspaceNameInput.stories-CysUBGqj.js +++ b/assets/WorkspaceNameInput.stories-CriIje7n.js @@ -1 +1 @@ -import{d as m}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const j={title:"entities/workspace/WorkspaceNameInput",component:m,parameters:{layout:"centered"},tags:["autodocs"]},t={};var r,o,p;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(p=(o=t.parameters)==null?void 0:o.docs)==null?void 0:p.source}}};const q=["Default"];export{t as Default,q as __namedExportsOrder,j as default}; +import{d as m}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const j={title:"entities/workspace/WorkspaceNameInput",component:m,parameters:{layout:"centered"},tags:["autodocs"]},t={};var r,o,p;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(p=(o=t.parameters)==null?void 0:o.docs)==null?void 0:p.source}}};const q=["Default"];export{t as Default,q as __namedExportsOrder,j as default}; diff --git a/assets/WorkspacePage.stories-CFuAcDwn.js b/assets/WorkspacePage.stories-CFuAcDwn.js new file mode 100644 index 00000000..62b173ca --- /dev/null +++ b/assets/WorkspacePage.stories-CFuAcDwn.js @@ -0,0 +1,6 @@ +import{j as o}from"./jsx-runtime-DR9Q75dM.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-C8BV9Y6D.js";import"./WorkspaceList-m-7GHa-8.js";import"./WorkspaceHeader-BOFktQY9.js";import"./EmptyWorkspace-C_olE9C4.js";import"./WorkspaceGrid-C2jJPMUx.js";import{u as S,Q as D,a as P}from"./CssPropsSelectBox-CWdNthdf.js";import"./WorkspaceModal-DhaiX4aW.js";import"./PreviewBox-L0Yy0i69.js";import{C as I}from"./CoachMark-CMgIOAJW.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import{W as b}from"./WorkspacePageHeader-aZtuRt_K.js";import"./CssCategoryBar-DrLnwxhd.js";import"./CssOptionItemList-BWXhZs3U.js";import"./CssPropsSelectBoxHeader-B3hshmtR.js";import{I as B}from"./ImageTagModal-D2PPsknK.js";import{r as j,u as E,c as M,g as O,h as w,i as W,a as N}from"./html2canvas.esm-BTtajP0W.js";import{B as k,i as _,f as F,h as H,j as Q,w as R,k as q}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import{_ as A}from"./index-D1AAVYfs.js";import{r as m}from"./index-DRjF_FHU.js";import{a as T,b as U}from"./index-x70cJmE6.js";import{H as K}from"./index.esm-zFJIz-4f.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import{L as z}from"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{N as G}from"./NotFound-BUCDSp1S.js";import{u as J}from"./useCoachMarkStore-B_Mp-SD7.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./QueryClientProvider-BdRu95_o.js";import"./infiniteQueryBehavior-DdhmIwcw.js";import"./ModalConfirm-BDuYJlbG.js";import"./question-BUxmZXrP.js";import"./cssCategoryList-CHFX1k4S.js";import"./ErrorContent-D7ex5NJl.js";function $(e,t){return S(e,D)}const V=e=>{k[e]||(k[e]={init:function(){this.appendDummyInput().appendField(new _(j(e)),"CLASS"),this.setOutput(!0),this.setStyle("defaultBlockCss")}})},X=e=>{const t=q(),r=F()||H(),{initCssPropertyObj:n}=E(),{initClassBlockList:a}=M(),{setCanvasInfo:c,setName:p}=O(),{resetChangedStatusState:i}=w(),{setIsResetCssChecked:u}=W(),{setInitialImageMap:v,setInitialImageList:y}=N(),{data:s,isPending:L,isError:f}=$({queryKey:R.detail(e),queryFn:()=>t.getWorkspace(r,e)});return m.useEffect(()=>{i()},[]),m.useEffect(()=>{if(f){A.error("워크스페이스 정보 불러오기 실패");return}s&&s.workspaceDto&&(p(s.workspaceDto.name),Object.keys(s.workspaceDto.totalCssPropertyObj).forEach(d=>{V(d)}),n(s.workspaceDto.totalCssPropertyObj),a(Object.keys(s.workspaceDto.totalCssPropertyObj).map(d=>j(d))),c(s.workspaceDto.canvas),Q.contents=s.workspaceDto.classBlockList?JSON.parse(s.workspaceDto.classBlockList):[],u(s.workspaceDto.isCssReset),v(s.workspaceDto.imageMap),y(s.workspaceDto.imageList))},[f,s]),{data:s,isPending:L,isError:f}},Y=()=>{const{isBlockChanged:e,isCssChanged:t}=w();let r=T(({currentLocation:i,nextLocation:u})=>i.pathname!==u.pathname&&(e||t));const n="저장하지 않은 변경사항이 있습니다. 정말로 떠나시겠습니까?";m.useEffect(()=>{r.state==="blocked"&&(window.confirm(n)?r.proceed():r.reset())},[r.state,e,t]);const a=i=>{i.preventDefault()},c=()=>{window.addEventListener("beforeunload",a)},p=()=>{window.removeEventListener("beforeunload",a)};m.useEffect(()=>(e||t?c():p(),()=>{p()}),[e,t])},x=()=>{const{workspaceId:e}=U(),{isPending:t,isError:r}=X(e);Y();const{isCoachMarkOpen:n,openCoachMark:a,closeCoachMark:c}=J();return r?o.jsx(G,{}):(m.useLayoutEffect(()=>{localStorage.getItem("isCoachMarkDismissed")?c():a()},[]),o.jsxs(o.Fragment,{children:[o.jsxs(K,{children:[o.jsx("title",{children:"BooLock - 작업 공간"}),o.jsx("meta",{name:"description",content:`작업 공간 ID: ${e}에서 HTML과 CSS를 연습해보세요.`})]}),o.jsxs("div",{className:"flex h-screen flex-col",children:[t&&o.jsx(z,{}),n&&o.jsx(I,{}),o.jsx(b,{}),o.jsx(P,{})]}),o.jsx(B,{})]}))};x.__docgenInfo={description:`@description +워크스페이스 페이지 컴포넌트`,methods:[],displayName:"WorkspacePage"};const Ge={title:"pages/WorkspacePage",component:x,parameters:{layout:"fullscreen"},decorators:[e=>o.jsx("div",{className:"h-screen w-screen",children:o.jsx(e,{})})],tags:["autodocs"]},l={args:{}};var C,g,h;l.parameters={...l.parameters,docs:{...(C=l.parameters)==null?void 0:C.docs,source:{originalSource:`{ + args: { + // propsname: value, + } +}`,...(h=(g=l.parameters)==null?void 0:g.docs)==null?void 0:h.source}}};const Je=["Default"];export{l as Default,Je as __namedExportsOrder,Ge as default}; diff --git a/assets/WorkspacePage.stories-w2KOajrq.js b/assets/WorkspacePage.stories-w2KOajrq.js deleted file mode 100644 index aa89b7dc..00000000 --- a/assets/WorkspacePage.stories-w2KOajrq.js +++ /dev/null @@ -1,6 +0,0 @@ -import{j as t}from"./jsx-runtime-DR9Q75dM.js";import"./Banner-Cmxe5cZT.js";import"./HomeHeader-DYXMEvCV.js";import"./WorkspaceList-E8ahMSIZ.js";import"./WorkspaceHeader-BigAUUkC.js";import"./EmptyWorkspace-C-zl3eeh.js";import"./WorkspaceGrid-C2jJPMUx.js";import{u as y,Q as D,a as P}from"./CssPropsSelectBox-C4R-4nDE.js";import"./WorkspaceModal-DaqQAmWl.js";import"./PreviewBox-L0Yy0i69.js";import{C as b}from"./CoachMark-DESJ10-F.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import{W as I}from"./WorkspacePageHeader-wp4p4uQQ.js";import"./CssCategoryBar-D1UKcKt2.js";import"./CssOptionItemList-BIQBJ29P.js";import"./CssPropsSelectBoxHeader-BZsI6_U6.js";import{I as M}from"./ImageTagModal-DbH7oCNi.js";import{r as x,u as B,c as E,g as O,h as w,i as W,a as N}from"./html2canvas.esm-BTtajP0W.js";import{B as k,i as R,j as _,f as F,h as H,k as Q,w as T,l as q}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import{_ as A}from"./index-D1AAVYfs.js";import{r as m}from"./index-DRjF_FHU.js";import{a as U,b as K}from"./index-x70cJmE6.js";import{H as X}from"./index.esm-zFJIz-4f.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import{L as z}from"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{N as G}from"./NotFound-D7Own4ne.js";import{u as J}from"./useCoachMarkStore-B_Mp-SD7.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./QueryClientProvider-BdRu95_o.js";import"./infiniteQueryBehavior-DdhmIwcw.js";import"./ModalConfirm-BDuYJlbG.js";import"./question-BUxmZXrP.js";import"./cssCategoryList-CHFX1k4S.js";import"./ErrorContent-BILLHmWU.js";function V(e,o){return y(e,D)}const $=e=>{k[e]||(k[e]={init:function(){this.appendDummyInput().appendField(new R(x(e)),"CLASS"),this.setOutput(!0),this.setStyle("defaultBlockCss"),this.showContextMenu=o=>{if(this.getSvgRoot().transform.baseVal[0].matrix.e!==8)return;const a=this.generateContextMenu();_.show(o,a,this.RTL)}}})},Y=e=>{const o=q(),r=F()||H(),{initCssPropertyObj:a}=B(),{initClassBlockList:i}=E(),{setCanvasInfo:c,setName:p}=O(),{resetChangedStatusState:n}=w(),{setIsResetCssChecked:u}=W(),{setInitialImageMap:v,setInitialImageList:L}=N(),{data:s,isPending:S,isError:f}=V({queryKey:T.detail(e),queryFn:()=>o.getWorkspace(r,e)});return m.useEffect(()=>{n()},[]),m.useEffect(()=>{if(f){A.error("워크스페이스 정보 불러오기 실패");return}s&&s.workspaceDto&&(p(s.workspaceDto.name),Object.keys(s.workspaceDto.totalCssPropertyObj).forEach(d=>{$(d)}),a(s.workspaceDto.totalCssPropertyObj),i(Object.keys(s.workspaceDto.totalCssPropertyObj).map(d=>x(d))),c(s.workspaceDto.canvas),Q.contents=s.workspaceDto.classBlockList?JSON.parse(s.workspaceDto.classBlockList):[],u(s.workspaceDto.isCssReset),v(s.workspaceDto.imageMap),L(s.workspaceDto.imageList))},[f,s]),{data:s,isPending:S,isError:f}},Z=()=>{const{isBlockChanged:e,isCssChanged:o}=w();let r=U(({currentLocation:n,nextLocation:u})=>n.pathname!==u.pathname&&(e||o));const a="저장하지 않은 변경사항이 있습니다. 정말로 떠나시겠습니까?";m.useEffect(()=>{r.state==="blocked"&&(window.confirm(a)?r.proceed():r.reset())},[r.state,e,o]);const i=n=>{n.preventDefault()},c=()=>{window.addEventListener("beforeunload",i)},p=()=>{window.removeEventListener("beforeunload",i)};m.useEffect(()=>(e||o?c():p(),()=>{p()}),[e,o])},j=()=>{const{workspaceId:e}=K(),{isPending:o,isError:r}=Y(e);Z();const{isCoachMarkOpen:a,openCoachMark:i,closeCoachMark:c}=J();return r?t.jsx(G,{}):(m.useLayoutEffect(()=>{localStorage.getItem("isCoachMarkDismissed")?c():i()},[]),t.jsxs(t.Fragment,{children:[t.jsxs(X,{children:[t.jsx("title",{children:"BooLock - 작업 공간"}),t.jsx("meta",{name:"description",content:`작업 공간 ID: ${e}에서 HTML과 CSS를 연습해보세요.`})]}),t.jsxs("div",{className:"flex h-screen flex-col",children:[o&&t.jsx(z,{}),a&&t.jsx(b,{}),t.jsx(I,{}),t.jsx(P,{})]}),t.jsx(M,{})]}))};j.__docgenInfo={description:`@description -워크스페이스 페이지 컴포넌트`,methods:[],displayName:"WorkspacePage"};const Ge={title:"pages/WorkspacePage",component:j,parameters:{layout:"fullscreen"},decorators:[e=>t.jsx("div",{className:"h-screen w-screen",children:t.jsx(e,{})})],tags:["autodocs"]},l={args:{}};var C,g,h;l.parameters={...l.parameters,docs:{...(C=l.parameters)==null?void 0:C.docs,source:{originalSource:`{ - args: { - // propsname: value, - } -}`,...(h=(g=l.parameters)==null?void 0:g.docs)==null?void 0:h.source}}};const Je=["Default"];export{l as Default,Je as __namedExportsOrder,Ge as default}; diff --git a/assets/WorkspacePageHeader-wp4p4uQQ.js b/assets/WorkspacePageHeader-aZtuRt_K.js similarity index 91% rename from assets/WorkspacePageHeader-wp4p4uQQ.js rename to assets/WorkspacePageHeader-aZtuRt_K.js index ac9f4afd..d8053cba 100644 --- a/assets/WorkspacePageHeader-wp4p4uQQ.js +++ b/assets/WorkspacePageHeader-aZtuRt_K.js @@ -1,2 +1,2 @@ -import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{d as o}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import{L as t}from"./Logo-DlHd6_yt.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{W as s}from"./WorkspaceHeaderButtons-DtKBgv7W.js";import{u as i}from"./useCoachMarkStore-B_Mp-SD7.js";import{S as a}from"./question-BUxmZXrP.js";const m=()=>{const{openCoachMark:e}=i();return r.jsxs("div",{className:"flex h-14 w-full flex-shrink-0 items-center justify-between border-b border-gray-100 bg-white pl-8 pr-4",children:[r.jsxs("div",{className:"flex items-center gap-5",children:[r.jsx(t,{isBlack:!1}),r.jsx(o,{})]}),r.jsxs("div",{className:"flex gap-11",children:[r.jsxs("button",{className:"text-medium-rg hover flex items-center gap-1 text-gray-300",onClick:e,"aria-label":"도움말 버튼",children:["도움말 ",r.jsx(a,{})]}),r.jsx(s,{})]})]})};m.__docgenInfo={description:`@description +import{j as r}from"./jsx-runtime-DR9Q75dM.js";import{d as o}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./index-BXCeiWJk.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import{L as t}from"./Logo-DlHd6_yt.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import{W as s}from"./WorkspaceHeaderButtons-u6rliLN5.js";import{u as i}from"./useCoachMarkStore-B_Mp-SD7.js";import{S as a}from"./question-BUxmZXrP.js";const m=()=>{const{openCoachMark:e}=i();return r.jsxs("div",{className:"flex h-14 w-full flex-shrink-0 items-center justify-between border-b border-gray-100 bg-white pl-8 pr-4",children:[r.jsxs("div",{className:"flex items-center gap-5",children:[r.jsx(t,{isBlack:!1}),r.jsx(o,{})]}),r.jsxs("div",{className:"flex gap-11",children:[r.jsxs("button",{className:"text-medium-rg hover flex items-center gap-1 text-gray-300",onClick:e,"aria-label":"도움말 버튼",children:["도움말 ",r.jsx(a,{})]}),r.jsx(s,{})]})]})};m.__docgenInfo={description:`@description 워크스페이스 페이지 헤더 컴포넌트`,methods:[],displayName:"WorkspacePageHeader"};export{m as W}; diff --git a/assets/WorkspacePageHeader.stories-24YhCDht.js b/assets/WorkspacePageHeader.stories-CyaKLKen.js similarity index 86% rename from assets/WorkspacePageHeader.stories-24YhCDht.js rename to assets/WorkspacePageHeader.stories-CyaKLKen.js index 69d6fdc2..670fdea1 100644 --- a/assets/WorkspacePageHeader.stories-24YhCDht.js +++ b/assets/WorkspacePageHeader.stories-CyaKLKen.js @@ -1,4 +1,4 @@ -import{W as m}from"./WorkspacePageHeader-wp4p4uQQ.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceHeaderButtons-DtKBgv7W.js";import"./useCoachMarkStore-B_Mp-SD7.js";const z={title:"widgets/workspace/WorkspacePageHeader",component:m,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}};var o,t,p;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{W as m}from"./WorkspacePageHeader-aZtuRt_K.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";import"./WorkspaceHeaderButtons-u6rliLN5.js";import"./useCoachMarkStore-B_Mp-SD7.js";const z={title:"widgets/workspace/WorkspacePageHeader",component:m,parameters:{layout:"fullscreen"},tags:["autodocs"]},r={args:{}};var o,t,p;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { // propsname: value, } diff --git a/assets/WorkspaceSampleButton.stories-B7umvfKo.js b/assets/WorkspaceSampleButton.stories-DhtdsW07.js similarity index 95% rename from assets/WorkspaceSampleButton.stories-B7umvfKo.js rename to assets/WorkspaceSampleButton.stories-DhtdsW07.js index bb20c8a2..5aa250f6 100644 --- a/assets/WorkspaceSampleButton.stories-B7umvfKo.js +++ b/assets/WorkspaceSampleButton.stories-DhtdsW07.js @@ -1 +1 @@ -import{b as p}from"./HoveredEmptyWorkspace-B1GBnKX9.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const v={title:"entities/home/WorkspaceSampleButton",component:p,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,r,m;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(m=(r=t.parameters)==null?void 0:r.docs)==null?void 0:m.source}}};const w=["Default"];export{t as Default,w as __namedExportsOrder,v as default}; +import{b as p}from"./HoveredEmptyWorkspace-BMs7Nsgo.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-DRjF_FHU.js";import"./html2canvas.esm-BTtajP0W.js";import"./QueryClientProvider-BdRu95_o.js";import"./index-D1AAVYfs.js";import"./ImageTagModalListItem-D30WR0c8.js";import"./plus-C7enkl2d.js";import"./SquareButton-eIFPi1Hz.js";import"./Logo-DlHd6_yt.js";import"./index-x70cJmE6.js";import"./index-BXCeiWJk.js";import"./ToasterWithMax-D4jPvwZi.js";import"./Loading-CVQUyNmW.js";import"./Spinner-DNSVRT5F.js";import"./SkeletonWorkspace-D4UalYBK.js";import"./SkeletonWorkspaceList-LqBByOXs.js";import"./WorkspaceLoadError-BuktD2D2.js";import"./NotHoveredEmptyWorkspace-loFxOJJf.js";import"./question-BUxmZXrP.js";import"./CssCategoryButton-C0Kelp6b.js";import"./client-Dbo3a7kb.js";import"./ImageTagModalHeader-Kpuzz1BJ.js";import"./ImageTagModalImg-BJAMLe19.js";import"./ImageTagModalButton-DJiJ58eG.js";const v={title:"entities/home/WorkspaceSampleButton",component:p,parameters:{layout:"centered"},tags:["autodocs"]},t={};var o,r,m;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(m=(r=t.parameters)==null?void 0:r.docs)==null?void 0:m.source}}};const w=["Default"];export{t as Default,w as __namedExportsOrder,v as default}; diff --git a/assets/entry-preview-n-EAC44k.js b/assets/entry-preview-_EqQ61Wc.js similarity index 99% rename from assets/entry-preview-n-EAC44k.js rename to assets/entry-preview-_EqQ61Wc.js index 71584b99..b96857fa 100644 --- a/assets/entry-preview-n-EAC44k.js +++ b/assets/entry-preview-_EqQ61Wc.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-CeYYHeGS.js","./index-DRjF_FHU.js","./client-Dbo3a7kb.js","./index-BXCeiWJk.js"])))=>i.map(i=>d[i]); -import{_ as tr}from"./iframe-Br-BqK10.js";import{_ as sr,a as nr,b as L}from"./chunk-XP5HYGXS-BGCqD1aY.js";import{r as Y,R as re}from"./index-DRjF_FHU.js";import{r as ar}from"./index-BXCeiWJk.js";import"../sb-preview/runtime.js";var b={};/** +import{_ as tr}from"./iframe-B3pNietc.js";import{_ as sr,a as nr,b as L}from"./chunk-XP5HYGXS-BGCqD1aY.js";import{r as Y,R as re}from"./index-DRjF_FHU.js";import{r as ar}from"./index-BXCeiWJk.js";import"../sb-preview/runtime.js";var b={};/** * @license React * react-dom-test-utils.production.min.js * diff --git a/assets/iframe-Br-BqK10.js b/assets/iframe-B3pNietc.js similarity index 76% rename from assets/iframe-Br-BqK10.js rename to assets/iframe-B3pNietc.js index 22f277d6..5a873d0e 100644 --- a/assets/iframe-Br-BqK10.js +++ b/assets/iframe-B3pNietc.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./HoveredEmptyWorkspace.stories-9uefTMUv.js","./jsx-runtime-DR9Q75dM.js","./index-DRjF_FHU.js","./HoveredEmptyWorkspace-B1GBnKX9.js","./html2canvas.esm-BTtajP0W.js","./QueryClientProvider-BdRu95_o.js","./index-D1AAVYfs.js","./ImageTagModalListItem-D30WR0c8.js","./plus-C7enkl2d.js","./SquareButton-eIFPi1Hz.js","./Logo-DlHd6_yt.js","./index-x70cJmE6.js","./index-BXCeiWJk.js","./ToasterWithMax-D4jPvwZi.js","./Loading-CVQUyNmW.js","./Spinner-DNSVRT5F.js","./SkeletonWorkspace-D4UalYBK.js","./SkeletonWorkspaceList-LqBByOXs.js","./WorkspaceLoadError-BuktD2D2.js","./NotHoveredEmptyWorkspace-loFxOJJf.js","./question-BUxmZXrP.js","./CssCategoryButton-C0Kelp6b.js","./client-Dbo3a7kb.js","./ImageTagModalHeader-Kpuzz1BJ.js","./ImageTagModalImg-BJAMLe19.js","./ImageTagModalButton-DJiJ58eG.js","./chunk-D5ZWXAHU-CGElDDNX.js","./v4-CQkTLCs1.js","./NotHoveredEmptyWorkspace.stories-6ph6F66O.js","./WorkspaceAddBtn.stories-DQgKlxDR.js","./WorkspaceItem.stories-BNI5aWjC.js","./WorkspaceLoadError.stories-BEs6Mho4.js","./WorkspaceSampleButton.stories-B7umvfKo.js","./CodeExportButton.stories-Bc7P7zXG.js","./CssCategoryButton.stories-D1LbruiA.js","./CssOptionItem.stories-BFk8Czd3.js","./cssCategoryList-CHFX1k4S.js","./CssTooltip.stories-BFiP6WgX.js","./ImageTagModalButton.stories-DbEBaesO.js","./ImageTagModalHeader.stories-BKKKgOrm.js","./ImageTagModalImg.stories-Bec7M76d.js","./ImageTagModalList.stories-DV0djgRj.js","./ImageTagModalListItem.stories-IXbibFiq.js","./RedoButton.stories-D7eyygJg.js","./SaveButton.stories-B3p_QSOd.js","./UndoButton.stories-DeBTDe3r.js","./WorkspaceNameInput.stories-CysUBGqj.js","./ErrorPage.stories-f9-_tl3x.js","./index.esm-zFJIz-4f.js","./ErrorContent-BILLHmWU.js","./Banner-Cmxe5cZT.js","./HomeHeader-DYXMEvCV.js","./WorkspaceList-E8ahMSIZ.js","./WorkspaceHeader-BigAUUkC.js","./EmptyWorkspace-C-zl3eeh.js","./WorkspaceGrid-C2jJPMUx.js","./CssPropsSelectBox-C4R-4nDE.js","./WorkspaceModal-DaqQAmWl.js","./ModalConfirm-BDuYJlbG.js","./PreviewBox-L0Yy0i69.js","./useCoachMarkStore-B_Mp-SD7.js","./PreviewBox-B2m_yoUG.css","./CoachMark-DESJ10-F.js","./WorkspaceHeaderButtons-DtKBgv7W.js","./WorkspacePageHeader-wp4p4uQQ.js","./CssCategoryBar-D1UKcKt2.js","./CssOptionItemList-BIQBJ29P.js","./CssPropsSelectBoxHeader-BZsI6_U6.js","./ImageTagModal-DbH7oCNi.js","./infiniteQueryBehavior-DdhmIwcw.js","./HomePage.stories-nuWGS5Gb.js","./NotFound.stories-YmFj178k.js","./NotFound-D7Own4ne.js","./WorkspacePage.stories-w2KOajrq.js","./CircleButton.stories-CAEzdKco.js","./SquareButton.stories-qCk9iuR9.js","./ErrorContent.stories-rjA0C6F1.js","./Loading.stories-CMBR5846.js","./Spinner.stories-BYvKAjp0.js","./Logo.stories-_eRPHyws.js","./ModalConfirm.stories-B5jpzorV.js","./Select.stories-BpCjMs0I.js","./SkeletonWorkspace.stories-Bqah0udJ.js","./SkeletonWorkspaceList.stories-CzguX1lG.js","./ToasterWithMax.stories-Dweln7-_.js","./Banner.stories-CT2zfr_x.js","./EmptyWorkspace.stories-rY0lL7Pm.js","./HomeHeader.stories-CuRhFSiO.js","./WorkspaceContainer.stories-DXGgcS_J.js","./WorkspaceGrid.stories-bi2t6aVh.js","./WorkspaceHeader.stories-BCT-sagY.js","./WorkspaceList.stories-nt9wjUqV.js","./WorkspaceModal.stories-BvCRkHjS.js","./CoachMark.stories-BnuOcWNj.js","./ImageTagModal.stories-CkMqjJ4O.js","./PreviewBox.stories-B7GO-QBB.js","./WorkspaceContent.stories-CXY4nPEO.js","./WorkspaceHeaderButtons.stories-DLWxKga4.js","./WorkspacePageHeader.stories-24YhCDht.js","./CssCategoryBar.stories-B-DvKVaP.js","./CssOptionItemList.stories-PbySAeJT.js","./CssPropsSelectBox.stories-QeQH_zEo.js","./CssPropsSelectBoxHeader.stories-CcHVZcKY.js","./entry-preview-n-EAC44k.js","./chunk-XP5HYGXS-BGCqD1aY.js","./entry-preview-docs-CL0gtcRG.js","./index-CzpEL4_8.js","./preview-D0N1Y6iQ.js","./preview-D77C14du.js","./index-DrFu-skq.js","./preview-BWzBA1C2.js","./preview-B0pulBH0.js","./preview-rfTk8b28.css"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const s of e)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function c(e){const s={};return e.integrity&&(s.integrity=e.integrity),e.referrerPolicy&&(s.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?s.credentials="include":e.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(e){if(e.ep)return;e.ep=!0;const s=c(e);fetch(e.href,s)}})();const T="modulepreload",L=function(r,_){return new URL(r,_).href},O={},t=function(_,c,n){let e=Promise.resolve();if(c&&c.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.allSettled(c.map(a=>{if(a=L(a,n),a in O)return;O[a]=!0;const p=a.endsWith(".css"),I=p?'[rel="stylesheet"]':"";if(!!n)for(let u=i.length-1;u>=0;u--){const d=i[u];if(d.href===a&&(!p||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${I}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":T,p||(m.as="script"),m.crossOrigin="",m.href=a,l&&m.setAttribute("nonce",l),document.head.appendChild(m),p)return new Promise((u,d)=>{m.addEventListener("load",u),m.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return e.then(i=>{for(const o of i||[])o.status==="rejected"&&s(o.reason);return _().catch(s)})},{createBrowserChannel:R}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,E=R({page:"preview"});P.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const g={"./src/entities/home/HoveredEmptyWorkspace/HoveredEmptyWorkspace.stories.tsx":async()=>t(()=>import("./HoveredEmptyWorkspace.stories-9uefTMUv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/home/NotHoveredEmptyWorkspace/NotHoveredEmptyWorkspace.stories.tsx":async()=>t(()=>import("./NotHoveredEmptyWorkspace.stories-6ph6F66O.js"),__vite__mapDeps([28,19,1,2]),import.meta.url),"./src/entities/home/WorkspaceAddBtn/WorkspaceAddBtn.stories.tsx":async()=>t(()=>import("./WorkspaceAddBtn.stories-DQgKlxDR.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/home/WorkspaceItem/WorkspaceItem.stories.tsx":async()=>t(()=>import("./WorkspaceItem.stories-BNI5aWjC.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/home/WorkspaceLoadError/WorkspaceLoadError.stories.tsx":async()=>t(()=>import("./WorkspaceLoadError.stories-BEs6Mho4.js"),__vite__mapDeps([31,18,1,2]),import.meta.url),"./src/entities/home/WorkspaceSampleButton/WorkspaceSampleButton.stories.tsx":async()=>t(()=>import("./WorkspaceSampleButton.stories-B7umvfKo.js"),__vite__mapDeps([32,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/entities/workspace/CodeExportButton/CodeExportButton.stories.tsx":async()=>t(()=>import("./CodeExportButton.stories-Bc7P7zXG.js"),__vite__mapDeps([33,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/entities/workspace/CssCategoryButton/CssCategoryButton.stories.tsx":async()=>t(()=>import("./CssCategoryButton.stories-D1LbruiA.js"),__vite__mapDeps([34,1,2,21,4]),import.meta.url),"./src/entities/workspace/CssOptionItem/CssOptionItem.stories.tsx":async()=>t(()=>import("./CssOptionItem.stories-BFk8Czd3.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36]),import.meta.url),"./src/entities/workspace/CssTooltip/CssTooltip.stories.tsx":async()=>t(()=>import("./CssTooltip.stories-BFiP6WgX.js"),__vite__mapDeps([37,1,2,20,12]),import.meta.url),"./src/entities/workspace/ImageTagModalButton/ImageTagModalButton.stories.tsx":async()=>t(()=>import("./ImageTagModalButton.stories-DbEBaesO.js"),__vite__mapDeps([38,1,2,25]),import.meta.url),"./src/entities/workspace/ImageTagModalHeader/ImageTagModalHeader.stories.tsx":async()=>t(()=>import("./ImageTagModalHeader.stories-BKKKgOrm.js"),__vite__mapDeps([39,1,2,23,4]),import.meta.url),"./src/entities/workspace/ImageTagModalImg/ImageTagModalImg.stories.tsx":async()=>t(()=>import("./ImageTagModalImg.stories-Bec7M76d.js"),__vite__mapDeps([40,1,2,24]),import.meta.url),"./src/entities/workspace/ImageTagModalList/ImageTagModalList.stories.tsx":async()=>t(()=>import("./ImageTagModalList.stories-DV0djgRj.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/entities/workspace/ImageTagModalListItem/ImageTagModalListItem.stories.tsx":async()=>t(()=>import("./ImageTagModalListItem.stories-IXbibFiq.js"),__vite__mapDeps([42,1,2,7]),import.meta.url),"./src/entities/workspace/RedoButton/RedoButton.stories.tsx":async()=>t(()=>import("./RedoButton.stories-D7eyygJg.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/workspace/SaveButton/SaveButton.stories.tsx":async()=>t(()=>import("./SaveButton.stories-B3p_QSOd.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/workspace/UndoButton/UndoButton.stories.tsx":async()=>t(()=>import("./UndoButton.stories-DeBTDe3r.js"),__vite__mapDeps([45,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/workspace/WorkspaceNameInput/WorkspaceNameInput.stories.tsx":async()=>t(()=>import("./WorkspaceNameInput.stories-CysUBGqj.js"),__vite__mapDeps([46,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/pages/ErrorPage/ErrorPage.stories.tsx":async()=>t(()=>import("./ErrorPage.stories-f9-_tl3x.js"),__vite__mapDeps([47,1,2,48,49,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/pages/HomePage/HomePage.stories.tsx":async()=>t(()=>import("./HomePage.stories-nuWGS5Gb.js"),__vite__mapDeps([70,1,2,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69,48]),import.meta.url),"./src/pages/NotFound/NotFound.stories.tsx":async()=>t(()=>import("./NotFound.stories-YmFj178k.js"),__vite__mapDeps([71,1,2,72,48,49,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/pages/Workspacepage/WorkspacePage.stories.tsx":async()=>t(()=>import("./WorkspacePage.stories-w2KOajrq.js"),__vite__mapDeps([73,1,2,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69,48,72,49]),import.meta.url),"./src/shared/ui/button/CircleButton.stories.tsx":async()=>t(()=>import("./CircleButton.stories-CAEzdKco.js"),__vite__mapDeps([74,1,2,8,26,27]),import.meta.url),"./src/shared/ui/button/SquareButton.stories.tsx":async()=>t(()=>import("./SquareButton.stories-qCk9iuR9.js"),__vite__mapDeps([75,1,2,9,26,27]),import.meta.url),"./src/shared/ui/error/ErrorContent.stories.tsx":async()=>t(()=>import("./ErrorContent.stories-rjA0C6F1.js"),__vite__mapDeps([76,1,2,49,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/shared/ui/loading/Loading.stories.tsx":async()=>t(()=>import("./Loading.stories-CMBR5846.js"),__vite__mapDeps([77,1,2,14]),import.meta.url),"./src/shared/ui/loading/Spinner.stories.tsx":async()=>t(()=>import("./Spinner.stories-BYvKAjp0.js"),__vite__mapDeps([78,15,1,2,4]),import.meta.url),"./src/shared/ui/logo/Logo.stories.tsx":async()=>t(()=>import("./Logo.stories-_eRPHyws.js"),__vite__mapDeps([79,1,2,10,11,12,26,27]),import.meta.url),"./src/shared/ui/modal/ModalConfirm.stories.tsx":async()=>t(()=>import("./ModalConfirm.stories-B5jpzorV.js"),__vite__mapDeps([80,1,2,58,12]),import.meta.url),"./src/shared/ui/select/Select.stories.tsx":async()=>t(()=>import("./Select.stories-BpCjMs0I.js"),__vite__mapDeps([81,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/shared/ui/skeleton/SkeletonWorkspace.stories.tsx":async()=>t(()=>import("./SkeletonWorkspace.stories-Bqah0udJ.js"),__vite__mapDeps([82,16,1,2]),import.meta.url),"./src/shared/ui/skeleton/SkeletonWorkspaceList.stories.tsx":async()=>t(()=>import("./SkeletonWorkspaceList.stories-CzguX1lG.js"),__vite__mapDeps([83,17,1,2,16]),import.meta.url),"./src/shared/ui/toast/ToasterWithMax.stories.tsx":async()=>t(()=>import("./ToasterWithMax.stories-Dweln7-_.js"),__vite__mapDeps([84,1,2,6,13]),import.meta.url),"./src/widgets/home/Banner/Banner.stories.tsx":async()=>t(()=>import("./Banner.stories-CT2zfr_x.js"),__vite__mapDeps([85,50,1,2]),import.meta.url),"./src/widgets/home/EmptyWorkspace/EmptyWorkspace.stories.tsx":async()=>t(()=>import("./EmptyWorkspace.stories-rY0lL7Pm.js"),__vite__mapDeps([86,54,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/HomeHeader/HomeHeader.stories.tsx":async()=>t(()=>import("./HomeHeader.stories-CuRhFSiO.js"),__vite__mapDeps([87,51,1,2,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/WorkspaceContainer/WorkspaceContainer.stories.tsx":async()=>t(()=>import("./WorkspaceContainer.stories-DXGgcS_J.js"),__vite__mapDeps([88,56,1,2,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/widgets/home/WorkspaceGrid/WorkspaceGrid.stories.tsx":async()=>t(()=>import("./WorkspaceGrid.stories-bi2t6aVh.js"),__vite__mapDeps([89,1,2,55,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/widgets/home/WorkspaceHeader/WorkspaceHeader.stories.tsx":async()=>t(()=>import("./WorkspaceHeader.stories-BCT-sagY.js"),__vite__mapDeps([90,1,2,53,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/WorkspaceList/WorkspaceList.stories.tsx":async()=>t(()=>import("./WorkspaceList.stories-nt9wjUqV.js"),__vite__mapDeps([91,1,2,52,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/WorkspaceModal/WorkspaceModal.stories.tsx":async()=>t(()=>import("./WorkspaceModal.stories-BvCRkHjS.js"),__vite__mapDeps([92,1,2,57,8,9,10,11,12,58,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/widgets/workspace/CoachMark/CoachMark.stories.tsx":async()=>t(()=>import("./CoachMark.stories-BnuOcWNj.js"),__vite__mapDeps([93,1,2,62,60,4,8,9,10,11,12,13,6,14,15,16,17,3,5,7,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/workspace/ImageTagModal/ImageTagModal.stories.tsx":async()=>t(()=>import("./ImageTagModal.stories-CkMqjJ4O.js"),__vite__mapDeps([94,68,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,58]),import.meta.url),"./src/widgets/workspace/PreviewBox/PreviewBox.stories.tsx":async()=>t(()=>import("./PreviewBox.stories-B7GO-QBB.js"),__vite__mapDeps([95,1,2,59,4,60,6,61]),import.meta.url),"./src/widgets/workspace/WorkspaceContent/WorkspaceContent.stories.tsx":async()=>t(()=>import("./WorkspaceContent.stories-CXY4nPEO.js"),__vite__mapDeps([96,1,2,56,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/widgets/workspace/WorkspaceHeaderButtons/WorkspaceHeaderButtons.stories.tsx":async()=>t(()=>import("./WorkspaceHeaderButtons.stories-DLWxKga4.js"),__vite__mapDeps([97,63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,60]),import.meta.url),"./src/widgets/workspace/WorkspacePageHeader/WorkspacePageHeader.stories.tsx":async()=>t(()=>import("./WorkspacePageHeader.stories-24YhCDht.js"),__vite__mapDeps([98,64,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,63,60]),import.meta.url),"./src/widgets/workspace/css/CssCategoryBar/CssCategoryBar.stories.tsx":async()=>t(()=>import("./CssCategoryBar.stories-B-DvKVaP.js"),__vite__mapDeps([99,65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36]),import.meta.url),"./src/widgets/workspace/css/CssOptionItemList/CssOptionItemList.stories.tsx":async()=>t(()=>import("./CssOptionItemList.stories-PbySAeJT.js"),__vite__mapDeps([100,1,2,66,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36]),import.meta.url),"./src/widgets/workspace/css/CssPropsSelectBox/CssPropsSelectBox.stories.tsx":async()=>t(()=>import("./CssPropsSelectBox.stories-QeQH_zEo.js"),__vite__mapDeps([101,1,2,56,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/widgets/workspace/css/CssPropsSelectBoxHeader/CssPropsSelectBoxHeader.stories.tsx":async()=>t(()=>import("./CssPropsSelectBoxHeader.stories-CcHVZcKY.js"),__vite__mapDeps([102,1,2,67,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25]),import.meta.url)};async function y(r){return g[r]()}const{composeConfigs:v,PreviewWeb:V,ClientApi:w}=__STORYBOOK_MODULE_PREVIEW_API__,D=async(r=[])=>{const _=await Promise.all([r[0]??t(()=>import("./entry-preview-n-EAC44k.js"),__vite__mapDeps([103,104,2,12]),import.meta.url),r[1]??t(()=>import("./entry-preview-docs-CL0gtcRG.js"),__vite__mapDeps([105,104,106,2]),import.meta.url),r[2]??t(()=>import("./preview-Pxvs7-8_.js"),[],import.meta.url),r[3]??t(()=>import("./preview-D0N1Y6iQ.js"),__vite__mapDeps([107,27]),import.meta.url),r[4]??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([108,109]),import.meta.url),r[5]??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),r[7]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([110,109]),import.meta.url),r[8]??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??t(()=>import("./preview-BJ6EHSBF.js"),[],import.meta.url),r[10]??t(()=>import("./preview-B0pulBH0.js"),__vite__mapDeps([111,1,2,48,11,12,5,69,112]),import.meta.url)]);return v(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(y,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./HoveredEmptyWorkspace.stories-Cv2-uVjA.js","./jsx-runtime-DR9Q75dM.js","./index-DRjF_FHU.js","./HoveredEmptyWorkspace-BMs7Nsgo.js","./html2canvas.esm-BTtajP0W.js","./QueryClientProvider-BdRu95_o.js","./index-D1AAVYfs.js","./ImageTagModalListItem-D30WR0c8.js","./plus-C7enkl2d.js","./SquareButton-eIFPi1Hz.js","./Logo-DlHd6_yt.js","./index-x70cJmE6.js","./index-BXCeiWJk.js","./ToasterWithMax-D4jPvwZi.js","./Loading-CVQUyNmW.js","./Spinner-DNSVRT5F.js","./SkeletonWorkspace-D4UalYBK.js","./SkeletonWorkspaceList-LqBByOXs.js","./WorkspaceLoadError-BuktD2D2.js","./NotHoveredEmptyWorkspace-loFxOJJf.js","./question-BUxmZXrP.js","./CssCategoryButton-C0Kelp6b.js","./client-Dbo3a7kb.js","./ImageTagModalHeader-Kpuzz1BJ.js","./ImageTagModalImg-BJAMLe19.js","./ImageTagModalButton-DJiJ58eG.js","./chunk-D5ZWXAHU-CGElDDNX.js","./v4-CQkTLCs1.js","./NotHoveredEmptyWorkspace.stories-6ph6F66O.js","./WorkspaceAddBtn.stories-CY1ZOG0k.js","./WorkspaceItem.stories-DUFiwSOj.js","./WorkspaceLoadError.stories-BEs6Mho4.js","./WorkspaceSampleButton.stories-DhtdsW07.js","./CodeExportButton.stories-D599SYKt.js","./CssCategoryButton.stories-D1LbruiA.js","./CssOptionItem.stories-_rigQ6-T.js","./cssCategoryList-CHFX1k4S.js","./CssTooltip.stories-BFiP6WgX.js","./ImageTagModalButton.stories-DbEBaesO.js","./ImageTagModalHeader.stories-BKKKgOrm.js","./ImageTagModalImg.stories-Bec7M76d.js","./ImageTagModalList.stories-DpekBuu4.js","./ImageTagModalListItem.stories-IXbibFiq.js","./RedoButton.stories-Ck1f1xKh.js","./SaveButton.stories-BN4-ycfX.js","./UndoButton.stories-B747gNkl.js","./WorkspaceNameInput.stories-CriIje7n.js","./ErrorPage.stories-D8KQAKLZ.js","./index.esm-zFJIz-4f.js","./ErrorContent-D7ex5NJl.js","./Banner-Cmxe5cZT.js","./HomeHeader-C8BV9Y6D.js","./WorkspaceList-m-7GHa-8.js","./WorkspaceHeader-BOFktQY9.js","./EmptyWorkspace-C_olE9C4.js","./WorkspaceGrid-C2jJPMUx.js","./CssPropsSelectBox-CWdNthdf.js","./WorkspaceModal-DhaiX4aW.js","./ModalConfirm-BDuYJlbG.js","./PreviewBox-L0Yy0i69.js","./useCoachMarkStore-B_Mp-SD7.js","./PreviewBox-B2m_yoUG.css","./CoachMark-CMgIOAJW.js","./WorkspaceHeaderButtons-u6rliLN5.js","./WorkspacePageHeader-aZtuRt_K.js","./CssCategoryBar-DrLnwxhd.js","./CssOptionItemList-BWXhZs3U.js","./CssPropsSelectBoxHeader-B3hshmtR.js","./ImageTagModal-D2PPsknK.js","./infiniteQueryBehavior-DdhmIwcw.js","./HomePage.stories-C3QbMGkg.js","./NotFound.stories-By56dNKE.js","./NotFound-BUCDSp1S.js","./WorkspacePage.stories-CFuAcDwn.js","./CircleButton.stories-CAEzdKco.js","./SquareButton.stories-qCk9iuR9.js","./ErrorContent.stories-BZ4U5NZ1.js","./Loading.stories-CMBR5846.js","./Spinner.stories-BYvKAjp0.js","./Logo.stories-_eRPHyws.js","./ModalConfirm.stories-B5jpzorV.js","./Select.stories-BTOnjg5m.js","./SkeletonWorkspace.stories-Bqah0udJ.js","./SkeletonWorkspaceList.stories-CzguX1lG.js","./ToasterWithMax.stories-Dweln7-_.js","./Banner.stories-CT2zfr_x.js","./EmptyWorkspace.stories-DKt4U6ds.js","./HomeHeader.stories-7Orf3bfd.js","./WorkspaceContainer.stories-X92PftVG.js","./WorkspaceGrid.stories-BZXbhW_z.js","./WorkspaceHeader.stories-DudoqoOG.js","./WorkspaceList.stories-DhBjHqN4.js","./WorkspaceModal.stories-SqnlApMm.js","./CoachMark.stories-BVRTBrZc.js","./ImageTagModal.stories-Bilj1Xz8.js","./PreviewBox.stories-B7GO-QBB.js","./WorkspaceContent.stories-rP4W9iPW.js","./WorkspaceHeaderButtons.stories-Pb3CzoXs.js","./WorkspacePageHeader.stories-CyaKLKen.js","./CssCategoryBar.stories-55z6K7mT.js","./CssOptionItemList.stories-rgxtEXCr.js","./CssPropsSelectBox.stories-B-QohfUN.js","./CssPropsSelectBoxHeader.stories-BJGNCLEN.js","./entry-preview-_EqQ61Wc.js","./chunk-XP5HYGXS-BGCqD1aY.js","./entry-preview-docs-CL0gtcRG.js","./index-CzpEL4_8.js","./preview-D0N1Y6iQ.js","./preview-D77C14du.js","./index-DrFu-skq.js","./preview-BWzBA1C2.js","./preview-B0pulBH0.js","./preview-rfTk8b28.css"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const s of e)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function c(e){const s={};return e.integrity&&(s.integrity=e.integrity),e.referrerPolicy&&(s.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?s.credentials="include":e.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(e){if(e.ep)return;e.ep=!0;const s=c(e);fetch(e.href,s)}})();const T="modulepreload",L=function(r,_){return new URL(r,_).href},O={},t=function(_,c,n){let e=Promise.resolve();if(c&&c.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.allSettled(c.map(a=>{if(a=L(a,n),a in O)return;O[a]=!0;const p=a.endsWith(".css"),I=p?'[rel="stylesheet"]':"";if(!!n)for(let u=i.length-1;u>=0;u--){const d=i[u];if(d.href===a&&(!p||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${I}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":T,p||(m.as="script"),m.crossOrigin="",m.href=a,l&&m.setAttribute("nonce",l),document.head.appendChild(m),p)return new Promise((u,d)=>{m.addEventListener("load",u),m.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return e.then(i=>{for(const o of i||[])o.status==="rejected"&&s(o.reason);return _().catch(s)})},{createBrowserChannel:R}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,E=R({page:"preview"});P.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const g={"./src/entities/home/HoveredEmptyWorkspace/HoveredEmptyWorkspace.stories.tsx":async()=>t(()=>import("./HoveredEmptyWorkspace.stories-Cv2-uVjA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/home/NotHoveredEmptyWorkspace/NotHoveredEmptyWorkspace.stories.tsx":async()=>t(()=>import("./NotHoveredEmptyWorkspace.stories-6ph6F66O.js"),__vite__mapDeps([28,19,1,2]),import.meta.url),"./src/entities/home/WorkspaceAddBtn/WorkspaceAddBtn.stories.tsx":async()=>t(()=>import("./WorkspaceAddBtn.stories-CY1ZOG0k.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/home/WorkspaceItem/WorkspaceItem.stories.tsx":async()=>t(()=>import("./WorkspaceItem.stories-DUFiwSOj.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/home/WorkspaceLoadError/WorkspaceLoadError.stories.tsx":async()=>t(()=>import("./WorkspaceLoadError.stories-BEs6Mho4.js"),__vite__mapDeps([31,18,1,2]),import.meta.url),"./src/entities/home/WorkspaceSampleButton/WorkspaceSampleButton.stories.tsx":async()=>t(()=>import("./WorkspaceSampleButton.stories-DhtdsW07.js"),__vite__mapDeps([32,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/entities/workspace/CodeExportButton/CodeExportButton.stories.tsx":async()=>t(()=>import("./CodeExportButton.stories-D599SYKt.js"),__vite__mapDeps([33,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/entities/workspace/CssCategoryButton/CssCategoryButton.stories.tsx":async()=>t(()=>import("./CssCategoryButton.stories-D1LbruiA.js"),__vite__mapDeps([34,1,2,21,4]),import.meta.url),"./src/entities/workspace/CssOptionItem/CssOptionItem.stories.tsx":async()=>t(()=>import("./CssOptionItem.stories-_rigQ6-T.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36]),import.meta.url),"./src/entities/workspace/CssTooltip/CssTooltip.stories.tsx":async()=>t(()=>import("./CssTooltip.stories-BFiP6WgX.js"),__vite__mapDeps([37,1,2,20,12]),import.meta.url),"./src/entities/workspace/ImageTagModalButton/ImageTagModalButton.stories.tsx":async()=>t(()=>import("./ImageTagModalButton.stories-DbEBaesO.js"),__vite__mapDeps([38,1,2,25]),import.meta.url),"./src/entities/workspace/ImageTagModalHeader/ImageTagModalHeader.stories.tsx":async()=>t(()=>import("./ImageTagModalHeader.stories-BKKKgOrm.js"),__vite__mapDeps([39,1,2,23,4]),import.meta.url),"./src/entities/workspace/ImageTagModalImg/ImageTagModalImg.stories.tsx":async()=>t(()=>import("./ImageTagModalImg.stories-Bec7M76d.js"),__vite__mapDeps([40,1,2,24]),import.meta.url),"./src/entities/workspace/ImageTagModalList/ImageTagModalList.stories.tsx":async()=>t(()=>import("./ImageTagModalList.stories-DpekBuu4.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/entities/workspace/ImageTagModalListItem/ImageTagModalListItem.stories.tsx":async()=>t(()=>import("./ImageTagModalListItem.stories-IXbibFiq.js"),__vite__mapDeps([42,1,2,7]),import.meta.url),"./src/entities/workspace/RedoButton/RedoButton.stories.tsx":async()=>t(()=>import("./RedoButton.stories-Ck1f1xKh.js"),__vite__mapDeps([43,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/workspace/SaveButton/SaveButton.stories.tsx":async()=>t(()=>import("./SaveButton.stories-BN4-ycfX.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/workspace/UndoButton/UndoButton.stories.tsx":async()=>t(()=>import("./UndoButton.stories-B747gNkl.js"),__vite__mapDeps([45,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/entities/workspace/WorkspaceNameInput/WorkspaceNameInput.stories.tsx":async()=>t(()=>import("./WorkspaceNameInput.stories-CriIje7n.js"),__vite__mapDeps([46,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/pages/ErrorPage/ErrorPage.stories.tsx":async()=>t(()=>import("./ErrorPage.stories-D8KQAKLZ.js"),__vite__mapDeps([47,1,2,48,49,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/pages/HomePage/HomePage.stories.tsx":async()=>t(()=>import("./HomePage.stories-C3QbMGkg.js"),__vite__mapDeps([70,1,2,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69,48]),import.meta.url),"./src/pages/NotFound/NotFound.stories.tsx":async()=>t(()=>import("./NotFound.stories-By56dNKE.js"),__vite__mapDeps([71,1,2,72,48,49,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/pages/Workspacepage/WorkspacePage.stories.tsx":async()=>t(()=>import("./WorkspacePage.stories-CFuAcDwn.js"),__vite__mapDeps([73,1,2,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69,48,72,49]),import.meta.url),"./src/shared/ui/button/CircleButton.stories.tsx":async()=>t(()=>import("./CircleButton.stories-CAEzdKco.js"),__vite__mapDeps([74,1,2,8,26,27]),import.meta.url),"./src/shared/ui/button/SquareButton.stories.tsx":async()=>t(()=>import("./SquareButton.stories-qCk9iuR9.js"),__vite__mapDeps([75,1,2,9,26,27]),import.meta.url),"./src/shared/ui/error/ErrorContent.stories.tsx":async()=>t(()=>import("./ErrorContent.stories-BZ4U5NZ1.js"),__vite__mapDeps([76,1,2,49,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,56,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/shared/ui/loading/Loading.stories.tsx":async()=>t(()=>import("./Loading.stories-CMBR5846.js"),__vite__mapDeps([77,1,2,14]),import.meta.url),"./src/shared/ui/loading/Spinner.stories.tsx":async()=>t(()=>import("./Spinner.stories-BYvKAjp0.js"),__vite__mapDeps([78,15,1,2,4]),import.meta.url),"./src/shared/ui/logo/Logo.stories.tsx":async()=>t(()=>import("./Logo.stories-_eRPHyws.js"),__vite__mapDeps([79,1,2,10,11,12,26,27]),import.meta.url),"./src/shared/ui/modal/ModalConfirm.stories.tsx":async()=>t(()=>import("./ModalConfirm.stories-B5jpzorV.js"),__vite__mapDeps([80,1,2,58,12]),import.meta.url),"./src/shared/ui/select/Select.stories.tsx":async()=>t(()=>import("./Select.stories-BTOnjg5m.js"),__vite__mapDeps([81,3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/shared/ui/skeleton/SkeletonWorkspace.stories.tsx":async()=>t(()=>import("./SkeletonWorkspace.stories-Bqah0udJ.js"),__vite__mapDeps([82,16,1,2]),import.meta.url),"./src/shared/ui/skeleton/SkeletonWorkspaceList.stories.tsx":async()=>t(()=>import("./SkeletonWorkspaceList.stories-CzguX1lG.js"),__vite__mapDeps([83,17,1,2,16]),import.meta.url),"./src/shared/ui/toast/ToasterWithMax.stories.tsx":async()=>t(()=>import("./ToasterWithMax.stories-Dweln7-_.js"),__vite__mapDeps([84,1,2,6,13]),import.meta.url),"./src/widgets/home/Banner/Banner.stories.tsx":async()=>t(()=>import("./Banner.stories-CT2zfr_x.js"),__vite__mapDeps([85,50,1,2]),import.meta.url),"./src/widgets/home/EmptyWorkspace/EmptyWorkspace.stories.tsx":async()=>t(()=>import("./EmptyWorkspace.stories-DKt4U6ds.js"),__vite__mapDeps([86,54,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/HomeHeader/HomeHeader.stories.tsx":async()=>t(()=>import("./HomeHeader.stories-7Orf3bfd.js"),__vite__mapDeps([87,51,1,2,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/WorkspaceContainer/WorkspaceContainer.stories.tsx":async()=>t(()=>import("./WorkspaceContainer.stories-X92PftVG.js"),__vite__mapDeps([88,56,1,2,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/widgets/home/WorkspaceGrid/WorkspaceGrid.stories.tsx":async()=>t(()=>import("./WorkspaceGrid.stories-BZXbhW_z.js"),__vite__mapDeps([89,1,2,55,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/widgets/home/WorkspaceHeader/WorkspaceHeader.stories.tsx":async()=>t(()=>import("./WorkspaceHeader.stories-DudoqoOG.js"),__vite__mapDeps([90,1,2,53,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/WorkspaceList/WorkspaceList.stories.tsx":async()=>t(()=>import("./WorkspaceList.stories-DhBjHqN4.js"),__vite__mapDeps([91,1,2,52,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/home/WorkspaceModal/WorkspaceModal.stories.tsx":async()=>t(()=>import("./WorkspaceModal.stories-SqnlApMm.js"),__vite__mapDeps([92,1,2,57,8,9,10,11,12,58,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,26,27]),import.meta.url),"./src/widgets/workspace/CoachMark/CoachMark.stories.tsx":async()=>t(()=>import("./CoachMark.stories-BVRTBrZc.js"),__vite__mapDeps([93,1,2,62,60,4,8,9,10,11,12,13,6,14,15,16,17,3,5,7,18,19,20,21,22,23,24,25]),import.meta.url),"./src/widgets/workspace/ImageTagModal/ImageTagModal.stories.tsx":async()=>t(()=>import("./ImageTagModal.stories-Bilj1Xz8.js"),__vite__mapDeps([94,68,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,58]),import.meta.url),"./src/widgets/workspace/PreviewBox/PreviewBox.stories.tsx":async()=>t(()=>import("./PreviewBox.stories-B7GO-QBB.js"),__vite__mapDeps([95,1,2,59,4,60,6,61]),import.meta.url),"./src/widgets/workspace/WorkspaceContent/WorkspaceContent.stories.tsx":async()=>t(()=>import("./WorkspaceContent.stories-rP4W9iPW.js"),__vite__mapDeps([96,1,2,56,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/widgets/workspace/WorkspaceHeaderButtons/WorkspaceHeaderButtons.stories.tsx":async()=>t(()=>import("./WorkspaceHeaderButtons.stories-Pb3CzoXs.js"),__vite__mapDeps([97,63,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,60]),import.meta.url),"./src/widgets/workspace/WorkspacePageHeader/WorkspacePageHeader.stories.tsx":async()=>t(()=>import("./WorkspacePageHeader.stories-CyaKLKen.js"),__vite__mapDeps([98,64,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,63,60]),import.meta.url),"./src/widgets/workspace/css/CssCategoryBar/CssCategoryBar.stories.tsx":async()=>t(()=>import("./CssCategoryBar.stories-55z6K7mT.js"),__vite__mapDeps([99,65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36]),import.meta.url),"./src/widgets/workspace/css/CssOptionItemList/CssOptionItemList.stories.tsx":async()=>t(()=>import("./CssOptionItemList.stories-rgxtEXCr.js"),__vite__mapDeps([100,1,2,66,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36]),import.meta.url),"./src/widgets/workspace/css/CssPropsSelectBox/CssPropsSelectBox.stories.tsx":async()=>t(()=>import("./CssPropsSelectBox.stories-B-QohfUN.js"),__vite__mapDeps([101,1,2,56,50,51,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25,52,53,54,55,57,58,59,60,61,62,63,64,65,36,66,67,68,69]),import.meta.url),"./src/widgets/workspace/css/CssPropsSelectBoxHeader/CssPropsSelectBoxHeader.stories.tsx":async()=>t(()=>import("./CssPropsSelectBoxHeader.stories-BJGNCLEN.js"),__vite__mapDeps([102,1,2,67,8,9,10,11,12,13,6,14,15,4,16,17,3,5,7,18,19,20,21,22,23,24,25]),import.meta.url)};async function y(r){return g[r]()}const{composeConfigs:v,PreviewWeb:V,ClientApi:w}=__STORYBOOK_MODULE_PREVIEW_API__,D=async(r=[])=>{const _=await Promise.all([r[0]??t(()=>import("./entry-preview-_EqQ61Wc.js"),__vite__mapDeps([103,104,2,12]),import.meta.url),r[1]??t(()=>import("./entry-preview-docs-CL0gtcRG.js"),__vite__mapDeps([105,104,106,2]),import.meta.url),r[2]??t(()=>import("./preview-Dcu9G6AI.js"),[],import.meta.url),r[3]??t(()=>import("./preview-D0N1Y6iQ.js"),__vite__mapDeps([107,27]),import.meta.url),r[4]??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([108,109]),import.meta.url),r[5]??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),r[7]??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([110,109]),import.meta.url),r[8]??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??t(()=>import("./preview-BJ6EHSBF.js"),[],import.meta.url),r[10]??t(()=>import("./preview-B0pulBH0.js"),__vite__mapDeps([111,1,2,48,11,12,5,69,112]),import.meta.url)]);return v(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(y,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-hp3BBEcD.js b/assets/index-Bd8KzZft.js similarity index 92% rename from assets/index-hp3BBEcD.js rename to assets/index-Bd8KzZft.js index 10d21695..4455a570 100644 --- a/assets/index-hp3BBEcD.js +++ b/assets/index-Bd8KzZft.js @@ -1 +1 @@ -import{m as c,a as T,G as b,K as d,P as S,g as B,L,b as C,v as H,w as u,c as g,E as y,$ as I,y as h,d as k,N as P,e as W,D as A,x as F,C as x,f as D,S as R,R as f,I as v,h as E,i as M,A as N,F as q,j as w,k as O,l as U,W as Z,n as j,T as z,t as G,o as J,p as K,q as Q,r as V,s as X,u as Y,z as _,B as $,H as aa,J as sa,M as oa,V as ta,O as ea,Q as ra,U as pa,X as ia,Y as na,Z as ma,_ as la,a0 as ca,a1 as Ta,a2 as ba,a3 as da,a4 as Sa,a5 as Ba,a6 as La,a7 as Ca,a8 as Ha,a9 as ua,aa as ga,ab as ya,ac as Ia,ad as ha}from"./DocsRenderer-CFRXHY34-wwSIYXp0.js";import"./iframe-Br-BqK10.js";import"../sb-preview/runtime.js";import"./index-DRjF_FHU.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BXCeiWJk.js";import"./index-CzpEL4_8.js";import"./index-DrFu-skq.js";import"./react-18-CeYYHeGS.js";import"./client-Dbo3a7kb.js";export{c as A,T as ActionBar,b as AddonPanel,d as Badge,S as Bar,B as Blockquote,L as Button,C as ClipboardCode,H as Code,u as DL,g as Div,y as DocumentWrapper,I as EmptyTabContent,h as ErrorFormatter,k as FlexBar,P as Form,W as H1,A as H2,F as H3,x as H4,D as H5,R as H6,f as HR,v as IconButton,E as IconButtonSkeleton,M as Icons,N as Img,q as LI,w as Link,O as ListItem,U as Loader,Z as Modal,j as OL,z as P,G as Placeholder,J as Pre,K as ResetWrapper,Q as ScrollArea,V as Separator,X as Spaced,Y as Span,_ as StorybookIcon,$ as StorybookLogo,aa as Symbols,sa as SyntaxHighlighter,oa as TT,ta as TabBar,ea as TabButton,ra as TabWrapper,pa as Table,ia as Tabs,na as TabsState,ma as TooltipLinkList,la as TooltipMessage,ca as TooltipNote,Ta as UL,ba as WithTooltip,da as WithTooltipPure,Sa as Zoom,Ba as codeCommon,La as components,Ca as createCopyToClipboardFunction,Ha as getStoryHref,ua as icons,ga as interleaveSeparators,ya as nameSpaceClassNames,Ia as resetComponents,ha as withReset}; +import{m as c,a as T,G as b,K as d,P as S,g as B,L,b as C,v as H,w as u,c as g,E as y,$ as I,y as h,d as k,N as P,e as W,D as A,x as F,C as x,f as D,S as R,R as f,I as v,h as E,i as M,A as N,F as q,j as w,k as O,l as U,W as Z,n as j,T as z,t as G,o as J,p as K,q as Q,r as V,s as X,u as Y,z as _,B as $,H as aa,J as sa,M as oa,V as ta,O as ea,Q as ra,U as pa,X as ia,Y as na,Z as ma,_ as la,a0 as ca,a1 as Ta,a2 as ba,a3 as da,a4 as Sa,a5 as Ba,a6 as La,a7 as Ca,a8 as Ha,a9 as ua,aa as ga,ab as ya,ac as Ia,ad as ha}from"./DocsRenderer-CFRXHY34-Ak6QnDix.js";import"./iframe-B3pNietc.js";import"../sb-preview/runtime.js";import"./index-DRjF_FHU.js";import"./jsx-runtime-DR9Q75dM.js";import"./index-BXCeiWJk.js";import"./index-CzpEL4_8.js";import"./index-DrFu-skq.js";import"./react-18-CeYYHeGS.js";import"./client-Dbo3a7kb.js";export{c as A,T as ActionBar,b as AddonPanel,d as Badge,S as Bar,B as Blockquote,L as Button,C as ClipboardCode,H as Code,u as DL,g as Div,y as DocumentWrapper,I as EmptyTabContent,h as ErrorFormatter,k as FlexBar,P as Form,W as H1,A as H2,F as H3,x as H4,D as H5,R as H6,f as HR,v as IconButton,E as IconButtonSkeleton,M as Icons,N as Img,q as LI,w as Link,O as ListItem,U as Loader,Z as Modal,j as OL,z as P,G as Placeholder,J as Pre,K as ResetWrapper,Q as ScrollArea,V as Separator,X as Spaced,Y as Span,_ as StorybookIcon,$ as StorybookLogo,aa as Symbols,sa as SyntaxHighlighter,oa as TT,ta as TabBar,ea as TabButton,ra as TabWrapper,pa as Table,ia as Tabs,na as TabsState,ma as TooltipLinkList,la as TooltipMessage,ca as TooltipNote,Ta as UL,ba as WithTooltip,da as WithTooltipPure,Sa as Zoom,Ba as codeCommon,La as components,Ca as createCopyToClipboardFunction,Ha as getStoryHref,ua as icons,ga as interleaveSeparators,ya as nameSpaceClassNames,Ia as resetComponents,ha as withReset}; diff --git a/assets/preview-Pxvs7-8_.js b/assets/preview-Dcu9G6AI.js similarity index 77% rename from assets/preview-Pxvs7-8_.js rename to assets/preview-Dcu9G6AI.js index 67eed57e..fc37ab3f 100644 --- a/assets/preview-Pxvs7-8_.js +++ b/assets/preview-Dcu9G6AI.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-wwSIYXp0.js","./iframe-Br-BqK10.js","./index-DRjF_FHU.js","./jsx-runtime-DR9Q75dM.js","./index-BXCeiWJk.js","./index-CzpEL4_8.js","./index-DrFu-skq.js","./react-18-CeYYHeGS.js","./client-Dbo3a7kb.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-Br-BqK10.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-wwSIYXp0.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-Ak6QnDix.js","./iframe-B3pNietc.js","./index-DRjF_FHU.js","./jsx-runtime-DR9Q75dM.js","./index-BXCeiWJk.js","./index-CzpEL4_8.js","./index-DrFu-skq.js","./react-18-CeYYHeGS.js","./client-Dbo3a7kb.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-B3pNietc.js";import"../sb-preview/runtime.js";var i=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-Ak6QnDix.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters}; diff --git a/iframe.html b/iframe.html index 60335292..c3a78460 100644 --- a/iframe.html +++ b/iframe.html @@ -509,7 +509,7 @@ } - + diff --git a/project.json b/project.json index 1c63bb3d..d9836136 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1733366131398,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"packageManager":{"type":"pnpm","version":"9.14.4"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.4.2","storybookVersionSpecifier":"8.4.2","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"8.4.5"},"storybook":{"version":"8.4.2"},"@storybook/blocks":{"version":"8.4.2"},"@storybook/react":{"version":"8.4.2"},"@storybook/react-vite":{"version":"8.4.2"},"@storybook/test":{"version":"8.4.2"},"@types/storybook__addon-actions":{"version":"5.2.1"},"eslint-plugin-storybook":{"version":"0.11.0"}},"addons":{"@storybook/addon-onboarding":{"version":"8.4.2"},"@storybook/addon-essentials":{"version":"8.4.2"},"@chromatic-com/storybook":{"version":"3.2.2"},"@storybook/addon-interactions":{"version":"8.4.2"}}} \ No newline at end of file +{"generatedAt":1733367538127,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"packageManager":{"type":"pnpm","version":"9.14.4"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.4.2","storybookVersionSpecifier":"8.4.2","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"8.4.5"},"storybook":{"version":"8.4.2"},"@storybook/blocks":{"version":"8.4.2"},"@storybook/react":{"version":"8.4.2"},"@storybook/react-vite":{"version":"8.4.2"},"@storybook/test":{"version":"8.4.2"},"@types/storybook__addon-actions":{"version":"5.2.1"},"eslint-plugin-storybook":{"version":"0.11.0"}},"addons":{"@storybook/addon-onboarding":{"version":"8.4.2"},"@storybook/addon-essentials":{"version":"8.4.2"},"@chromatic-com/storybook":{"version":"3.2.2"},"@storybook/addon-interactions":{"version":"8.4.2"}}} \ No newline at end of file