import{i as e}from"./useAnalytics-D7ict_xi.js";import{Kn as t}from"./src-CD6Jsigc.js";var n=t(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),r=`style-editor-default-version`,i=`style-editor-v2-intro-seen`;function a(){return localStorage.getItem(r)===`v2`?`v2`:`v1`}var o=e(`styleEditorPreference`,{state:()=>({defaultVersion:a(),hasSeenV2Introduction:localStorage.getItem(i)===`true`}),actions:{setDefaultVersion(e){this.defaultVersion=e,localStorage.setItem(r,e),e===`v2`&&this.markV2IntroductionSeen()},markV2IntroductionSeen(){this.hasSeenV2Introduction=!0,localStorage.setItem(i,`true`)}}});export{o as n,n as r,a as t};