@getontime/cli
Version:
Time keeping for live events
3 lines (2 loc) • 2.23 kB
JavaScript
import{j as e,bz as m,bA as x,bB as y,bC as g,bD as j,bE as w,bF as v,aR as C,aS as P,bG as k,bH as D,bd as S,bI as p,bJ as I}from"./vendor-q6fv0YT2.js";import{e as d,aC as b}from"./index-B81u4hxi.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="6f5a0b42-2233-440a-a128-7045be53961e",s._sentryDebugIdIdentifier="sentry-dbid-6f5a0b42-2233-440a-a128-7045be53961e")}catch{}})();const N="_blink_10e6s_1",R="_fourtyfive_10e6s_13",T="_medium_10e6s_43",E="_large_10e6s_51",O="_thumb_10e6s_59",i={blink:N,fourtyfive:R,switch:"_switch_10e6s_17",medium:T,large:E,thumb:O};function M({size:s="medium",...o}){return e.jsx(m,{className:d([i.switch,i[s]]),...o,children:e.jsx(x,{className:i.thumb})})}const $="_popup_1xpg9_17",z="_title_1xpg9_34",u={popup:$,title:z};function A({title:s,className:o,children:t,...n}){return e.jsx(y,{children:e.jsx(g,{sideOffset:8,...n,children:e.jsxs(j,{className:u.popup,children:[s&&e.jsx(w,{className:u.title,children:s}),e.jsx(v,{className:o,render:e.jsx("div",{}),children:t})]})})})}const F="_input_jz3ye_17",H={input:F};function _({color:s,onChange:o,children:t}){return e.jsxs(C,{children:[e.jsx(P,{children:t}),e.jsxs(A,{children:[e.jsx(k,{color:s,onChange:o}),e.jsx(D,{color:s,onChange:o,className:H.input,prefixed:!0})]})]})}const B="_list_1tpdr_17",G="_swatch_1tpdr_23",J="_selected_1tpdr_33",q="_selectable_1tpdr_36",l={list:B,swatch:G,selected:J,selectable:q};function Q(s){const{color:o,onChange:t,isSelected:n,alwaysDisplayColor:c}=s,a=S(f=>{t(f)},100),r=c||n?o:"",{color:h}=b(r);return e.jsx(_,{color:r,onChange:a,children:e.jsx("div",{className:d([l.swatch,n&&l.selected,l.selectable]),style:{backgroundColor:r},children:e.jsx(p,{color:h})})})}function U(s){const{name:o,control:t}=s,{field:{onChange:n,value:c}}=I({control:t,name:o}),a=typeof c=="string"?c:"",{color:r}=b(a);return e.jsx(_,{color:c,onChange:n,children:e.jsx("div",{className:d([l.swatch,l.selectable]),style:{backgroundColor:a},children:e.jsx(p,{color:r})})})}export{A as P,M as S,U as a,Q as b,l as s};
//# sourceMappingURL=SwatchPicker-Cm5Eicvv.js.map