import{c}from"./main-few-lands-burn.js";const p={id:"",isOpen:!1},l={clientX:0,clientY:0,id:"",isOpen:!1,type:void 0},m={clientX:0,clientY:0,isOpen:!1},d={isSaving:!1,nodeEdgeContextMenu:l,paneContextMenu:m,setupModal:p,stickyNoteEditing:""},x=c()(n=>({...d,actions:{reset:()=>n({...d}),resetSetupModal:()=>n({setupModal:p}),setIsSaving:t=>n({isSaving:t}),setNodeEdgeContextMenu:t=>n({nodeEdgeContextMenu:t}),setPaneContextMenu:t=>n({paneContextMenu:t}),setSetupModal:t=>n({setupModal:t}),setStickyNoteEditing:t=>n({stickyNoteEditing:t})}})),r={ai:"alignItems",b:"bottom",bdr:"border",bdrclr:"borderColor",bg:"backgroundColor",brs:"borderRadius",clr:"color",cur:"cursor",d:"display",dir:"flexDirection",dis:"display",fs:"fontSize",gp:"gap",h:"height",jc:"justifyContent",l:"left",m:"margin",mb:"marginBottom",ml:"marginLeft",mnh:"minHeight",mnw:"minWidth",mr:"marginRight",mt:"marginTop",mx:"marginInline",mxh:"maxHeight",mxw:"maxWidth",my:"marginBlock",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingInline",py:"paddingBlock",r:"right",sdw:"boxShadow",ta:"textAlign",top:"top",w:"width",z:"zIndex"},E=n=>({token:t})=>{const o={},i=Object.keys(n);for(const s of i){const e=s;if(e&&r[e]&&n[e]){const a=r[e],g=f(r[e],n[e],t);o[a]=g}}return o};function f(n,t,o){if(t==null)return"unknown";if(n==="zIndex"&&typeof t=="number")return t.toString();let i=t;return t&&o&&o[t]&&(i=o[t]),typeof i=="number"&&(i=`${i}px`),typeof t=="string"&&t.endsWith("*")&&(i=`${t.replace("*","")}!important`),i.toString()}export{E as a,x as u};
