import{gI as s}from"./index-9PRMimni.js";const o={OFFICE:"office",VESSEL:"vessel"},c=o.VESSEL;function i(t){return t=t.replace("#",""),t.length===3&&(t=t.split("").map(e=>e+e).join("")),t.toUpperCase()}function n(t,e){const a=i(t),r=Math.round(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0").toUpperCase();return`#${a}${r}`}const p=s(["#3FC33F","#EDB716","#E2792E","#D24C4C","#E36BB5","#696969"],t=>({color:n(t,.12),borderColor:n(t,.5),textColor:n(t,1)})),E=[{label:"是",labelEn:"YES",value:1},{label:"否",labelEn:"NO",value:0}];function m(t){return Object.fromEntries(Object.entries(t).filter(([a,r])=>r.isActive===!0).map(([a])=>[`is${a.charAt(0).toUpperCase()+a.slice(1)}`,1]))}export{o as C,c as a,E as c,m as g,p as t};
