@processhub-lib/react 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +0,0 @@
1
- "use strict";const T=require("react"),F=require("./classnames-BqI3URgS.cjs");function xr(c){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const b in c)if(b!=="default"){const g=Object.getOwnPropertyDescriptor(c,b);Object.defineProperty(f,b,g.get?g:{enumerable:!0,get:()=>c[b]})}}return f.default=c,Object.freeze(f)}const n=xr(T);var fe={exports:{}},U={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ze;function yr(){if(Ze)return U;Ze=1;var c=T,f=Symbol.for("react.element"),b=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,R=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function S(y,u,p){var s,h={},j=null,k=null;p!==void 0&&(j=""+p),u.key!==void 0&&(j=""+u.key),u.ref!==void 0&&(k=u.ref);for(s in u)g.call(u,s)&&!_.hasOwnProperty(s)&&(h[s]=u[s]);if(y&&y.defaultProps)for(s in u=y.defaultProps,u)h[s]===void 0&&(h[s]=u[s]);return{$$typeof:f,type:y,key:j,ref:k,props:h,_owner:R.current}}return U.Fragment=b,U.jsx=S,U.jsxs=S,U}var B={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ie;function Er(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var c=T,f=Symbol.for("react.element"),b=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),Z=Symbol.iterator,H="@@iterator";function q(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[H];return typeof r=="function"?r:null}var P=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];$("error",e,t)}}function $(e,r,t){{var a=P.ReactDebugCurrentFrame,i=a.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var d=t.map(function(l){return String(l)});d.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,d)}}var z=!1,ee=!1,J=!1,w=!1,M=!1,ve;ve=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===_||M||e===R||e===p||e===s||w||e===k||z||ee||J||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===h||e.$$typeof===S||e.$$typeof===y||e.$$typeof===u||e.$$typeof===ve||e.getModuleId!==void 0))}function Be(e,r,t){var a=e.displayName;if(a)return a;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function be(e){return e.displayName||"Context"}function L(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case g:return"Fragment";case b:return"Portal";case _:return"Profiler";case R:return"StrictMode";case p:return"Suspense";case s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return be(r)+".Consumer";case S:var t=e;return be(t._context)+".Provider";case u:return Be(e,e.render,"ForwardRef");case h:var a=e.displayName||null;return a!==null?a:L(e.type)||"Memo";case j:{var i=e,d=i._payload,l=i._init;try{return L(l(d))}catch{return null}}}return null}var D=Object.assign,W=0,ge,pe,he,me,xe,ye,Ee;function we(){}we.__reactDisabledLog=!0;function He(){{if(W===0){ge=console.log,pe=console.info,he=console.warn,me=console.error,xe=console.group,ye=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function qe(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:ge}),info:D({},e,{value:pe}),warn:D({},e,{value:he}),error:D({},e,{value:me}),group:D({},e,{value:xe}),groupCollapsed:D({},e,{value:ye}),groupEnd:D({},e,{value:Ee})})}W<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=P.ReactCurrentDispatcher,te;function K(e,r,t){{if(te===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||""}return`
18
- `+te+e}}var ae=!1,G;{var ze=typeof WeakMap=="function"?WeakMap:Map;G=new ze}function Re(e,r){if(!e||ae)return"";{var t=G.get(e);if(t!==void 0)return t}var a;ae=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=re.current,re.current=null,He();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var o=C.stack.split(`
19
- `),A=a.stack.split(`
20
- `),m=o.length-1,x=A.length-1;m>=1&&x>=0&&o[m]!==A[x];)x--;for(;m>=1&&x>=0;m--,x--)if(o[m]!==A[x]){if(m!==1||x!==1)do if(m--,x--,x<0||o[m]!==A[x]){var O=`
21
- `+o[m].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,O),O}while(m>=1&&x>=0);break}}}finally{ae=!1,re.current=d,qe(),Error.prepareStackTrace=i}var V=e?e.displayName||e.name:"",N=V?K(V):"";return typeof e=="function"&&G.set(e,N),N}function Je(e,r,t){return Re(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function X(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,Ke(e));if(typeof e=="string")return K(e);switch(e){case p:return K("Suspense");case s:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Je(e.render);case h:return X(e.type,r,t);case j:{var a=e,i=a._payload,d=a._init;try{return X(d(i),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,_e={},je=P.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=X(e.type,e._source,r?r.type:null);je.setExtraStackFrame(t)}else je.setExtraStackFrame(null)}function Ge(e,r,t,a,i){{var d=Function.call.bind(Y);for(var l in e)if(d(e,l)){var o=void 0;try{if(typeof e[l]!="function"){var A=Error((a||"React class")+": "+t+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}o=e[l](r,l,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){o=m}o&&!(o instanceof Error)&&(Q(i),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,l,typeof o),Q(null)),o instanceof Error&&!(o.message in _e)&&(_e[o.message]=!0,Q(i),E("Failed %s type: %s",t,o.message),Q(null))}}}var Xe=Array.isArray;function ne(e){return Xe(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function Se(e){if(er(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),Ae(e)}var Ce=P.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Te;function tr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){typeof e.ref=="string"&&Ce.current}function or(e,r){{var t=function(){Oe||(Oe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function lr(e,r){{var t=function(){Te||(Te=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,a,i,d,l){var o={$$typeof:f,type:e,key:r,ref:t,props:l,_owner:d};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ir(e,r,t,a,i){{var d,l={},o=null,A=null;t!==void 0&&(Se(t),o=""+t),ar(r)&&(Se(r.key),o=""+r.key),tr(r)&&(A=r.ref,nr(r,i));for(d in r)Y.call(r,d)&&!rr.hasOwnProperty(d)&&(l[d]=r[d]);if(e&&e.defaultProps){var m=e.defaultProps;for(d in m)l[d]===void 0&&(l[d]=m[d])}if(o||A){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&or(l,x),A&&lr(l,x)}return sr(e,o,A,i,a,Ce.current,l)}}var oe=P.ReactCurrentOwner,Pe=P.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=X(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var le;le=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function ke(){{if(oe.current){var e=L(oe.current.type);if(e)return`
22
-
23
- Check the render method of \``+e+"`."}return""}}function ur(e){return""}var Le={};function cr(e){{var r=ke();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
-
25
- Check the top-level render call using <`+t+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Le[t])return;Le[t]=!0;var a="";e&&e._owner&&e._owner!==oe.current&&(a=" It was passed a child from "+L(e._owner.type)+"."),I(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),I(null)}}function Me(e,r){{if(typeof e!="object")return;if(ne(e))for(var t=0;t<e.length;t++){var a=e[t];se(a)&&Fe(a,r)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var i=q(e);if(typeof i=="function"&&i!==e.entries)for(var d=i.call(e),l;!(l=d.next()).done;)se(l.value)&&Fe(l.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===h))t=r.propTypes;else return;if(t){var a=L(r);Ge(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!le){le=!0;var i=L(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){I(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),I(null);break}}e.ref!==null&&(I(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var De={};function Ne(e,r,t,a,i,d){{var l=Ue(e);if(!l){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A=ur();A?o+=A:o+=ke();var m;e===null?m="null":ne(e)?m="array":e!==void 0&&e.$$typeof===f?(m="<"+(L(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,o)}var x=ir(e,r,t,i,d);if(x==null)return x;if(l){var O=r.children;if(O!==void 0)if(a)if(ne(O)){for(var V=0;V<O.length;V++)Me(O[V],e);Object.freeze&&Object.freeze(O)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Me(O,e)}if(Y.call(r,"key")){var N=L(e),C=Object.keys(r).filter(function(mr){return mr!=="key"}),ie=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!De[N+ie]){var hr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,ie,N,hr,N),De[N+ie]=!0}}return e===g?dr(x):fr(x),x}}function vr(e,r,t){return Ne(e,r,t,!0)}function br(e,r,t){return Ne(e,r,t,!1)}var gr=br,pr=vr;B.Fragment=g,B.jsx=gr,B.jsxs=pr}()),B}process.env.NODE_ENV==="production"?fe.exports=yr():fe.exports=Er();var v=fe.exports;const ue={green:{solid:{bg:"bg-green-500",hover:"hover:bg-green-600",text:"text-white",border:"border-green-500"},outline:{bg:"bg-transparent",hover:"hover:bg-green-500 hover:text-white",text:"text-green-600",border:"border-green-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-green-100",text:"text-green-600",border:"border-transparent"}},blue:{solid:{bg:"bg-blue-500",hover:"hover:bg-blue-600",text:"text-white",border:"border-blue-500"},outline:{bg:"bg-transparent",hover:"hover:bg-blue-500 hover:text-white",text:"text-blue-600",border:"border-blue-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-blue-100",text:"text-blue-600",border:"border-transparent"}},red:{solid:{bg:"bg-red-500",hover:"hover:bg-red-600",text:"text-white",border:"border-red-500"},outline:{bg:"bg-transparent",hover:"hover:bg-red-500 hover:text-white",text:"text-red-600",border:"border-red-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-red-100",text:"text-red-600",border:"border-transparent"}},yellow:{solid:{bg:"bg-yellow-500",hover:"hover:bg-yellow-600",text:"text-black",border:"border-yellow-500"},outline:{bg:"bg-transparent",hover:"hover:bg-yellow-500 hover:text-black",text:"text-yellow-600",border:"border-yellow-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-yellow-100",text:"text-yellow-600",border:"border-transparent"}},primary:{solid:{bg:"bg-primary",hover:"hover:bg-primary/90",text:"text-primary-foreground",border:"border-primary"},outline:{bg:"bg-transparent",hover:"hover:bg-primary hover:text-primary-foreground",text:"text-primary",border:"border-primary"},ghost:{bg:"bg-transparent",hover:"hover:bg-primary/10",text:"text-primary",border:"border-transparent"}},secondary:{solid:{bg:"bg-secondary",hover:"hover:bg-secondary/80",text:"text-secondary-foreground",border:"border-secondary"},outline:{bg:"bg-transparent",hover:"hover:bg-secondary hover:text-secondary-foreground",text:"text-secondary",border:"border-secondary"},ghost:{bg:"bg-transparent",hover:"hover:bg-secondary/10",text:"text-secondary",border:"border-transparent"}},destructive:{solid:{bg:"bg-destructive",hover:"hover:bg-destructive/90",text:"text-destructive-foreground",border:"border-destructive"},outline:{bg:"bg-transparent",hover:"hover:bg-destructive hover:text-destructive-foreground",text:"text-destructive",border:"border-destructive"},ghost:{bg:"bg-transparent",hover:"hover:bg-destructive/10",text:"text-destructive",border:"border-transparent"}},card:{solid:{bg:"bg-card",hover:"hover:bg-accent",text:"text-card-foreground",border:"border-border"},outline:{bg:"bg-transparent",hover:"hover:bg-accent",text:"text-card-foreground",border:"border-border"},ghost:{bg:"bg-transparent",hover:"hover:bg-accent/50",text:"text-card-foreground",border:"border-transparent"}}};function Ve({title:c,icon:f,positionIcon:b,color:g="green",variant:R="solid",disable:_=!1,className:S,type:y="button",onClick:u=()=>{}}){const p=g in ue?ue[g]:ue.green,s=p[R]||p.solid,h=F.classnames("cursor-pointer flex items-center justify-center gap-2 px-4 py-2 rounded-lg transition-colors shadow-sm font-medium text-sm border",s.bg,s.hover,s.text,s.border,{"opacity-50 cursor-not-allowed":_},S);return v.jsxs("button",{type:y,onClick:j=>!_&&(u==null?void 0:u(j)),disabled:_,className:h,children:[b==="left"&&f,c&&v.jsx("span",{className:"first-letter:uppercase",children:c}),b==="right"&&f]})}function $e({field:c,title:f,id:b,type:g,placeholder:R,className:_,value:S,iconPosition:y,icon:u,error:p,...s}){return v.jsxs("div",{className:"flex flex-col gap-2",children:[f&&v.jsxs("label",{htmlFor:b,className:F.classnames("block text-md font-medium text-foreground",{"text-red-700":p}),children:[s.required&&v.jsx("span",{className:"text-red-500",children:"* "}),f,":"]}),v.jsxs("div",{className:F.classnames("flex items-center justify-between border border-border text-foreground text-sm rounded-lg w-full",{"text-red-500 placeholder-red-500 border-red-500 focus:ring-red-500 focus:border-red-500":p,"p-2.5":u,"bg-input cursor-pointer":!s.disabled,"bg-gray-400/40 cursor-not-allowed":s.disabled}),children:[y==="left"&&u,v.jsx("input",{type:g,id:b,name:String(c),value:S,placeholder:R,className:F.classnames("bg-transparent border-none text-foreground text-sm focus:outline-none w-full",{"ml-3":y==="left","p-2.5":!u,"cursor-pointer":!s.disabled,"cursor-not-allowed":s.disabled,className:_}),onChange:s.onChange,...s}),y==="right"&&u]}),p&&v.jsx("div",{className:"mt-2",children:v.jsx("p",{className:"text-sm text-red-600 dark:text-red-500",children:p})})]})}const wr=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"}),n.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"}))]]),Rr=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),n.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),_r=T.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),de=n.forwardRef((c,f)=>{const{alt:b,color:g,size:R,weight:_,mirrored:S,children:y,weights:u,...p}=c,{color:s="currentColor",size:h,weight:j="regular",mirrored:k=!1,...Z}=n.useContext(_r);return n.createElement("svg",{ref:f,xmlns:"http://www.w3.org/2000/svg",width:R??h,height:R??h,fill:g??s,viewBox:"0 0 256 256",transform:S||k?"scale(-1, 1)":void 0,...Z,...p},!!b&&n.createElement("title",null,b),y,u.get(_??j))});de.displayName="IconBase";const We=n.forwardRef((c,f)=>n.createElement(de,{ref:f,...c,weights:wr}));We.displayName="BroomIcon";const Ye=n.forwardRef((c,f)=>n.createElement(de,{ref:f,...c,weights:Rr}));Ye.displayName="MagnifyingGlassIcon";function ce(c,f){return f.split(".").reduce((b,g)=>b?b[g]:void 0,c)}function jr({field:c,title:f,id:b,placeholder:g,value:R,options:_,icon:S,iconPosition:y="right",optionPosition:u="left",error:p,required:s,onChange:h,selected:j,isClearable:k,searchable:Z=!1}){const[H,q]=T.useState(""),[P,E]=T.useState(!1),$=T.useRef(null),[z,ee]=T.useState("");T.useEffect(()=>{function w(M){$.current&&!$.current.contains(M.target)&&E(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const J=w=>{h==null||h(w),E(!1)};return T.useEffect(()=>{ee(R)},[R]),v.jsxs("div",{className:"flex flex-col gap-2 w-full relative",ref:$,children:[f&&v.jsxs("label",{htmlFor:b,className:F.classnames("block text-md font-medium text-foreground",{"text-red-700":p}),children:[s&&v.jsx("span",{className:"text-red-500",children:"*"})," ",f?`${f}:`:""]}),v.jsxs("div",{className:F.classnames("cursor-pointer flex items-center justify-between bg-input border border-border text-foreground text-sm rounded-lg w-full p-2.5 pr-8",{"border-red-500":p}),onClick:()=>E(!P),children:[y==="left"&&S,v.jsx("span",{className:`flex-1 ${y==="left"&&"ml-3"}`,children:z||g||"Selecione..."}),y==="right"&&S]}),P&&v.jsxs("ul",{className:F.classnames("absolute top-full w-auto max-h-72 overflow-y-auto border border-border rounded-lg bg-card z-50 shadow-lg mt-1",{"left-0":u==="left","right-0":u==="right"}),children:[v.jsx("li",{className:"p-3 cursor-pointer text-foreground",onClick:()=>k&&J({}),children:g||"Selecione..."},"select-placeholder"),Z&&v.jsxs("li",{className:"px-2 cursor-pointer text-foreground flex gap-2 items-center justify-start",children:[v.jsx("div",{className:"flex-1",children:v.jsx($e,{field:"",title:"",id:"search-select",name:"search-select",placeholder:"Buscar",icon:v.jsx(Ye,{}),iconPosition:"left",onChange:w=>q(w.target.value),value:H})}),v.jsx(Ve,{color:"blue",title:"",icon:v.jsx(We,{}),positionIcon:"left",onClick:w=>{w==null||w.stopPropagation(),h==null||h({}),q("")},className:"m-0"})]}),_.filter(w=>{const M=ce(w,c);return String(M).toLowerCase().includes(H.toLowerCase())}).map((w,M)=>v.jsx("li",{className:F.classnames("p-2 hover:bg-primary cursor-pointer text-foreground",{"bg-primary":ce(w,c)===R||(j==null?void 0:j[c])===w[c]}),onClick:()=>J(w),children:ce(w,c)},`select-option-${M}`))]}),p&&v.jsx("p",{className:"text-sm text-red-600 mt-1",children:p})]})}exports.Button=Ve;exports.Input=$e;exports.Select=jr;