openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 1.58 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Ch as t,Dh as n,QA as r,Sf as i,Th as a,ZA as o,xf as s}from"./control-ui-boot-shared-DFTSUQQ0.js";import{B as c,U as l,f as u,j as d,u as f}from"./solid-runtime-C416s-HC.js";import{n as p,t as m}from"./session-icon-picker-solid-uafoRGFt.js";import"./sidebar-menus-BoYI0e98.js";var h,g;function _(){return(_=e((()=>{f(),l(),a(),r(),i(),p(),h=o(`openclaw-appearance-picker`,e=>{let[t,r]=c(`grid`),[i,a]=c(``),o,s=(t,n)=>{e.props.disabled||e.props.onChange({icon:t,color:n})},l=()=>{r(`grid`),a(``),o?.(`grid`)};return d(m,{ref:e=>o=e,get clearable(){return e.props.clearable},get mode(){return t()},get currentIcon(){return e.props.icon},get currentColor(){return e.props.color},get disabled(){return e.props.disabled??!1},get colorDisabled(){return e.props.disabled??!1},get customIconValue(){return i()},onSelectColor:(t,n)=>s(e.props.icon,n),onSelect:(t,n)=>s(n,e.props.color),onReset:()=>s(null,null),onShowCustom:()=>{r(`custom`),a(``),o?.(`custom`)},onBack:l,onInput:e=>a(e.currentTarget.value),onApply:()=>{let t=n(i());t&&!e.props.disabled&&(s(t,e.props.color),l())}})},{properties:{props:{default:{icon:null,color:null,onChange:()=>{}},attribute:!1}}}),g=o(`openclaw-appearance-glyph`,e=>{let n=()=>e.props.icon?.trim();return u(()=>u(()=>!!n())()?u(()=>!!(t.some(e=>e===n())||n().startsWith(`data:image/svg+xml,`)))()?d(s,{get icon(){return n()}}):n():e.props.fallback)},{properties:{props:{default:{icon:null,color:null,fallback:``},attribute:!1}}})})))()}_();export{g as AppearanceGlyph,h as AppearancePicker};