diefra_ecm_ui 1.2.0 → 1.2.1
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.
- package/dist/index.cjs +10 -10
- package/dist/index.js +470 -470
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),H=require("react-hook-form"),ne=require("react-imask"),B=require("@fluig-kit/ecm"),D=require("date-fns");function M({title:t,isOpen:l,onOpen:u,onClose:m,content:i,footer:a,width:h}){const d=o.useCallback(x=>{x.key==="Escape"&&m()},[m]);return o.useEffect(()=>(l&&(document.addEventListener("keydown",d),u==null||u(),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow="auto"}),[l,d,u]),l?e.jsx("div",{className:"modal-overlay",onClick:m,"aria-modal":"true",role:"dialog",children:e.jsxs("div",{style:{maxWidth:h},className:"modal-container",onClick:x=>x.stopPropagation(),children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h3",{children:t}),e.jsx("div",{className:"btn-close-modal",onClick:m,role:"button","aria-label":"Fechar modal",children:e.jsx("i",{className:"flaticon flaticon-close icon-sm","aria-hidden":"true"})})]}),e.jsx("div",{className:"modal-content",children:i}),a&&e.jsx("div",{className:"modal-footer",children:a})]})}):null}function re({text:t,title:l="Ajuda & Informações",width:u="500px",className:m=""}){const[i,a]=o.useState(!1),h=d=>{d.preventDefault(),d.stopPropagation(),a(!0)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`dfe-help-indicator ${m}`,onClick:h,role:"button",tabIndex:0,"aria-label":"Botão de ajuda",title:"Clique para obter ajuda",children:e.jsx("span",{children:"?"})}),e.jsx(M,{title:l,isOpen:i,onClose:()=>a(!1),width:u,content:e.jsx("div",{className:"dfe-help-modal-body",children:t}),footer:e.jsx("div",{className:"dfe-help-modal-footer",children:e.jsx("button",{type:"button",className:"btn btn-info dfe-help-btn",onClick:()=>a(!1),children:"Entendido"})})})]})}const U=o.memo(re),le={cpf:"000.000.000-00",cnpj:"00.000.000/0000-00",telefone:"(00) 00000-0000",cep:"00000-000"};function ce({name:t,label:l="",placeholder:u="",type:m="text",mask:i,className:a="",forceReadOnly:h=!1,forceHidden:d=!1,helpText:x,helpTitle:c,helpWidth:p,valueManual:O,onChangeManual:S,errorManual:V}){var E,T;const v=O!==void 0&&!!S,{isReadOnly:R,isHidden:F}=B.useSection(),k=h||!!R(t),y=d||!!F(t),{isView:n}=B.useFluigRuntime();let r=null;try{r=H.useFormContext()}catch{}const s=!v&&r?H.useController({name:t,control:r.control}):null,f=!v&&r?H.useFormState({name:t}):null,g=v?O:s==null?void 0:s.field.value,A=v?V:(T=(E=f==null?void 0:f.errors)==null?void 0:E[t])==null?void 0:T.message,I=o.useMemo(()=>i?le[i]??i:null,[i]),C=o.useCallback(L=>{if(!L)return"";const q=L.replace(/\D/g,"");return(Number(q)/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})},[]),w=o.useCallback(L=>m==="monetary"?C(L):L,[m,C]),N=L=>{const q=w(L);v?S==null||S(q):s==null||s.field.onChange(q)},b=()=>{v||s==null||s.field.onBlur()};if(y)return null;const $=`form-control ${k?"readOnly":""} ${A?"border-red":""} ${a}`,j=()=>I?e.jsx(ne.IMaskInput,{name:t,mask:I,value:String(g??""),unmask:!1,onAccept:L=>N(L),placeholder:u,readOnly:k,className:$,inputRef:v||s==null?void 0:s.field.ref,onBlur:b}):e.jsx("input",{type:m==="number"?"number":"text",name:t,value:g??"",onChange:L=>N(L.target.value),onBlur:b,placeholder:u,readOnly:k,className:$});return n?e.jsxs("div",{className:"form-group",children:[l&&e.jsx("label",{children:l}),e.jsxs("div",{className:x?"dfe-flex-input-wrapper":"",children:[e.jsx("span",{className:$,children:g||"-"}),x&&e.jsx(U,{text:x,title:c,width:p})]})]}):e.jsxs("div",{className:`form-group ${y?"hidden":""}`,children:[l&&e.jsx("label",{children:l}),e.jsxs("div",{className:x?"dfe-flex-input-wrapper":"",children:[j(),x&&e.jsx(U,{text:x,title:c,width:p})]}),A&&e.jsx("p",{className:"text-danger",children:String(A)})]})}const ie=o.memo(ce);function oe({name:t,label:l="",options:u=[],placeholder:m="",labelKey:i="label",valueKey:a="value",enableSearch:h=!1,searchPlaceholder:d="Buscar...",loading:x=!1,onSearchChange:c,debounceTime:p=300,onSelect:O,forceReadOnly:S=!1,forceHidden:V=!1,helpText:v,helpTitle:R,helpWidth:F,valueManual:k,onChangeManual:y,errorManual:n}){var Q;const r=k!==void 0&&!!y,{isReadOnly:s,isHidden:f}=B.useSection(),g=S||!!s(t),A=V||!!f(t),{isView:I}=B.useFluigRuntime();let C="",w=()=>{},N,b=null,$=()=>{};if(r)C=k;else try{const _=H.useFormContext(),P=H.useController({name:t,control:_.control});C=P.field.value,w=P.field.onChange,N=P.field.ref,b=(Q=P.fieldState)==null?void 0:Q.error,$=_.clearErrors}catch{}const[j,E]=o.useState(!1),[T,L]=o.useState(""),q=o.useRef(null),Y=o.useRef(c);o.useEffect(()=>{Y.current=c},[c]),o.useEffect(()=>{const _=P=>{q.current&&!q.current.contains(P.target)&&E(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]),o.useEffect(()=>{j||L("")},[j]),o.useEffect(()=>{if(!h)return;const _=setTimeout(()=>{var P;(P=Y.current)==null||P.call(Y,T)},p);return()=>clearTimeout(_)},[T,h,p]);const G=o.useMemo(()=>h&&!c&&T.trim()?u.filter(_=>String((_==null?void 0:_[i])??"").toLowerCase().includes(T.toLowerCase())):u??[],[u,h,c,T,i]),W=o.useMemo(()=>{if(C==null)return"";if(typeof C=="object")return String(C[a]??"");const _=(u||[]).find(P=>String(P==null?void 0:P[a])===String(C));return String(_?(_==null?void 0:_[i])??"":C)},[C,u,a,i]),se=_=>{g||(r?y==null||y(_[a]):(w(_[a]),$==null||$(t)),O==null||O(_),E(!1))};return A?null:e.jsxs("div",{className:`select-wrapper form-group ${A?"hidden":""}`,ref:q,children:[e.jsx("label",{className:"control-label",children:l}),I?e.jsxs("div",{className:v?"dfe-flex-input-wrapper":"",children:[e.jsx("span",{className:"form-control",style:v?{flex:1}:void 0,children:W||"-"}),v&&e.jsx(U,{text:v,title:R,width:F})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:v?"dfe-flex-input-wrapper":"",children:[e.jsxs("div",{className:`select-control ${b?"border-red":""} ${g?"readOnly":""}`,onClick:()=>!g&&E(_=>!_),ref:N,style:v?{flex:1}:void 0,children:[e.jsx("span",{className:`select-display ${g?"readOnly":""}`,children:W||m}),e.jsx("i",{className:"flaticon flaticon-chevron-down select-icon"})]}),v&&e.jsx(U,{text:v,title:R,width:F})]}),j&&!g&&e.jsxs("div",{className:"select-dropdown",children:[h&&e.jsx("div",{className:"select-search",children:e.jsx("input",{type:"text",className:"select-search-input",value:T,onChange:_=>L(_.target.value),placeholder:x?"Carregando...":d,autoFocus:!0,onClick:_=>_.stopPropagation()})}),e.jsx("ul",{className:"select-options",children:x?e.jsx("li",{className:"select-option readOnly",children:"Carregando..."}):G.length>0?G.map(_=>e.jsx("li",{onClick:()=>se(_),className:"select-option handleHover",children:_[i]},_[a])):e.jsx("li",{className:"select-option readOnly",children:"Sem resultados"})})]})]}),!r&&e.jsx("input",{type:"hidden",name:t,value:C||""}),(b||n)&&e.jsx("p",{className:"text-danger",children:String((b==null?void 0:b.message)??n)})]})}const J=o.memo(oe);function de({name:t,options:l=[],label:u="",valueKey:m="value",labelKey:i="label",forceReadOnly:a=!1,forceHidden:h=!1,valueManual:d,onChangeManual:x}){var I,C;let c=null;try{c=H.useFormContext()}catch{}const p=d!==void 0&&!!x,{isView:O,isReadOnly:S}=B.useFluigRuntime(),{isReadOnly:V,isHidden:v}=B.useSection(),R=V?V(t):!1,F=v?v(t):!1,k=a||R,y=h||F,n=k||S||O,r=()=>l?l.reduce((w,N)=>{const b=String(N[m]);if(p)w[b]=!!(d!=null&&d[b]);else if(c){const $=c.getValues(b);w[b]=$==="on"}else w[b]=!1;return w},{}):{},s=!p&&c?c.watch(t):void 0,f=o.useMemo(()=>p&&d?d:s&&typeof s=="object"?s:r(),[s,d,l]);o.useEffect(()=>{if(p||!c)return;const w=c.getValues(t);(!w||typeof w!="object")&&c.setValue(t,f,{shouldDirty:!1,shouldValidate:!1})},[f,t,c,p]);const g=(w,N)=>{if(n)return;const b={...f,[w]:N};if(p){x&&x(b);return}c&&(c.setValue(t,b,{shouldDirty:!0,shouldValidate:!0}),c.setValue(w,N?"on":"",{shouldValidate:!1}))},A=p?null:(C=(I=c==null?void 0:c.formState)==null?void 0:I.errors)==null?void 0:C[t];return e.jsxs("div",{className:`form-group ${y?"hidden":""}`,children:[u&&e.jsx("label",{children:u}),e.jsx("div",{className:`checkbox-group-custom ${n?"readOnly":""}`,children:l.map(w=>{const N=String(w[m]),b=f[N]===!0;return e.jsxs("div",{children:[!p&&c&&e.jsx("input",{type:"hidden",...c.register(N)}),e.jsxs("label",{className:`custom-checkbox ${b?"checked":""} ${n?"readOnly":""}`,children:[e.jsx("input",{type:"checkbox",checked:b,disabled:n,onChange:$=>g(N,$.target.checked)}),e.jsx("span",{className:"checkmark"}),e.jsx("span",{children:w[i]})]})]},N)})}),A&&e.jsx("p",{className:"text-danger",children:String(A.message)})]})}function ae({name:t,label:l="",options:u=[],valueKey:m="value",labelKey:i="label",iconKey:a="icon",forceReadOnly:h=!1,forceHidden:d=!1,valueManual:x,onChangeManual:c,errorManual:p}){var I,C;const O=x!==void 0&&!!c,{isReadOnly:S,isHidden:V}=B.useSection(),v=h||!!S(t),R=d||!!V(t),{isView:F,isReadOnly:k}=B.useFluigRuntime();let y=null;try{y=H.useFormContext()}catch{}const n=!O&&y?H.useController({name:t,control:y.control,defaultValue:""}):null,r=!O&&y?H.useFormState({name:t}):null,s=O?p:(C=(I=r==null?void 0:r.errors)==null?void 0:I[t])==null?void 0:C.message,f=v||k||F,g=O?x:(n==null?void 0:n.field.value)??"",A=o.useCallback(w=>{f||(O?c==null||c(w):(n==null||n.field.onChange(w),n==null||n.field.onBlur()))},[f,O,c,n]);return e.jsxs("div",{className:`form-group column ${R?"hidden":""}`,children:[l&&e.jsx("label",{className:"control-label",children:l}),e.jsx("div",{className:`btn-group ${f?"view-mode":""}`,"data-field-name":t,children:u.map(w=>{const N=w[m],b=g===N,$=w.color?{"--customColor":w.color}:void 0;return e.jsxs("div",{style:$,className:`btn fs-ellipsis ${b?"active":""}`,onClick:()=>A(N),children:[w[a]&&e.jsx("i",{className:`${w[a]} icon-sm`})," ",w[i]]},N)})}),!O&&e.jsx("input",{type:"hidden",name:t,value:g||"",ref:n==null?void 0:n.field.ref}),(s||p)&&e.jsx("p",{className:"text-danger",children:String(s??p)})]})}const ue=o.memo(ae),fe=({name:t,label:l="",placeholder:u="",className:m="",rows:i=4,maxLength:a,forceReadOnly:h=!1,forceHidden:d=!1,valueManual:x,onChangeManual:c,errorManual:p})=>{var f;const O=x!==void 0&&!!c,{isReadOnly:S,isHidden:V}=B.useSection(),v=h||!!S(t),R=d||!!V(t),{isView:F}=B.useFluigRuntime(),k=o.useRef(null);let y={value:x??"",onChange:g=>c==null?void 0:c(g)},n=null;if(!O)try{const{control:g}=H.useFormContext(),A=H.useController({name:t,control:g});y=A.field,n=(f=A.fieldState)==null?void 0:f.error}catch{}const r=()=>{k.current&&(k.current.style.height="auto",k.current.style.height=`${k.current.scrollHeight}px`)};if(o.useEffect(()=>{r()},[y.value]),F)return e.jsxs("div",{className:`form-group ${R?"hidden":""}`,children:[e.jsx("label",{children:l}),e.jsx("span",{className:"form-control",children:y.value||"-"})]});const s=`form-control ${v?"readOnly":""} ${n||p?"border-red":""} ${m}`;return e.jsxs("div",{className:`form-group ${R?"hidden":""}`,children:[l&&e.jsx("label",{children:l}),e.jsx("textarea",{ref:k,rows:i,maxLength:a,value:y.value||"",placeholder:u,readOnly:v,className:s,style:{resize:"none",maxHeight:"400px",overflowY:"auto"},onChange:g=>{O?c==null||c(g.target.value):y.onChange(g)},onInput:r}),(n||p)&&e.jsx("p",{className:"text-danger",children:String((n==null?void 0:n.message)??p)})]})},me=o.memo(fe);/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),B=require("react-hook-form"),ne=require("react-imask"),L=require("@fluig-kit/ecm"),H=require("date-fns");function M({title:t,isOpen:l,onOpen:u,onClose:f,content:c,footer:a,width:h}){const d=o.useCallback(p=>{p.key==="Escape"&&f()},[f]);return o.useEffect(()=>(l&&(document.addEventListener("keydown",d),u==null||u(),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow="auto"}),[l,d,u]),l?e.jsx("div",{className:"modal-overlay",onClick:f,"aria-modal":"true",role:"dialog",children:e.jsxs("div",{style:{maxWidth:h},className:"modal-container",onClick:p=>p.stopPropagation(),children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h3",{children:t}),e.jsx("div",{className:"btn-close-modal",onClick:f,role:"button","aria-label":"Fechar modal",children:e.jsx("i",{className:"flaticon flaticon-close icon-sm","aria-hidden":"true"})})]}),e.jsx("div",{className:"modal-content",children:c}),a&&e.jsx("div",{className:"modal-footer",children:a})]})}):null}function re({text:t,title:l="Ajuda & Informações",width:u="500px",className:f=""}){const[c,a]=o.useState(!1),h=d=>{d.preventDefault(),d.stopPropagation(),a(!0)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`dfe-help-indicator ${f}`,onClick:h,role:"button",tabIndex:0,"aria-label":"Botão de ajuda",title:"Clique para obter ajuda",children:e.jsx("span",{children:"?"})}),e.jsx(M,{title:l,isOpen:c,onClose:()=>a(!1),width:u,content:e.jsx("div",{className:"dfe-help-modal-body",children:t}),footer:e.jsx("div",{className:"dfe-help-modal-footer",children:e.jsx("button",{type:"button",className:"btn btn-info dfe-help-btn",onClick:()=>a(!1),children:"Entendido"})})})]})}const Y=o.memo(re),le={cpf:"000.000.000-00",cnpj:"00.000.000/0000-00",telefone:"(00) 00000-0000",cep:"00000-000"};function ie({name:t,label:l="",placeholder:u="",type:f="text",mask:c,className:a="",forceReadOnly:h=!1,forceHidden:d=!1,helpText:p,helpTitle:i,helpWidth:v,valueManual:O,onChangeManual:S,errorManual:V}){var T,U;const j=O!==void 0&&!!S,{isReadOnly:R,isHidden:F}=L.useSection(),w=h||!!R(t),y=d||!!F(t),{isView:n}=L.useFluigRuntime();let r=null;try{r=B.useFormContext()}catch{}const s=!j&&r?B.useController({name:t,control:r.control}):null,m=!j&&r?B.useFormState({name:t}):null,b=j?O:s==null?void 0:s.field.value,A=j?V:(U=(T=m==null?void 0:m.errors)==null?void 0:T[t])==null?void 0:U.message,I=o.useMemo(()=>c?le[c]??c:null,[c]),C=o.useCallback(D=>{if(!D)return"";const P=D.replace(/\D/g,"");return(Number(P)/100).toFixed(2)},[]),k=o.useCallback(D=>{if(D===""||D===null||D===void 0)return"";const P=Number(D);return isNaN(P)?"":P.toLocaleString("pt-BR",{style:"currency",currency:"BRL"})},[]),N=D=>{let P=D;f==="monetary"&&(P=C(D)),j?S==null||S(P):s==null||s.field.onChange(P)},g=()=>{j||s==null||s.field.onBlur()},$=o.useMemo(()=>f==="monetary"?k(b):String(b??""),[b,f,k]);if(y)return null;const x=`form-control ${w?"readOnly":""} ${A?"border-red":""} ${a}`,E=()=>I?e.jsx(ne.IMaskInput,{mask:I,value:$,unmask:!0,onAccept:D=>N(D),placeholder:u,readOnly:w,className:x,inputRef:j||s==null?void 0:s.field.ref,onBlur:g}):e.jsx("input",{type:f==="number"?"number":"text",value:$,onChange:D=>N(D.target.value),onBlur:g,placeholder:u,readOnly:w,className:x});return n?e.jsxs("div",{className:"form-group",children:[l&&e.jsx("label",{children:l}),e.jsxs("div",{className:p?"dfe-flex-input-wrapper":"",children:[e.jsx("span",{className:x,children:$||"-"}),p&&e.jsx(Y,{text:p,title:i,width:v})]})]}):e.jsxs("div",{className:`form-group ${y?"hidden":""}`,children:[l&&e.jsx("label",{children:l}),e.jsxs("div",{className:p?"dfe-flex-input-wrapper":"",children:[E(),p&&e.jsx(Y,{text:p,title:i,width:v})]}),!j&&e.jsx("input",{type:"hidden",name:t,value:b||""}),A&&e.jsx("p",{className:"text-danger",children:String(A)})]})}const ce=o.memo(ie);function oe({name:t,label:l="",options:u=[],placeholder:f="",labelKey:c="label",valueKey:a="value",enableSearch:h=!1,searchPlaceholder:d="Buscar...",loading:p=!1,onSearchChange:i,debounceTime:v=300,onSelect:O,forceReadOnly:S=!1,forceHidden:V=!1,helpText:j,helpTitle:R,helpWidth:F,valueManual:w,onChangeManual:y,errorManual:n}){var Q;const r=w!==void 0&&!!y,{isReadOnly:s,isHidden:m}=L.useSection(),b=S||!!s(t),A=V||!!m(t),{isView:I}=L.useFluigRuntime();let C="",k=()=>{},N,g=null,$=()=>{};if(r)C=w;else try{const _=B.useFormContext(),q=B.useController({name:t,control:_.control});C=q.field.value,k=q.field.onChange,N=q.field.ref,g=(Q=q.fieldState)==null?void 0:Q.error,$=_.clearErrors}catch{}const[x,E]=o.useState(!1),[T,U]=o.useState(""),D=o.useRef(null),P=o.useRef(i);o.useEffect(()=>{P.current=i},[i]),o.useEffect(()=>{const _=q=>{D.current&&!D.current.contains(q.target)&&E(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]),o.useEffect(()=>{x||U("")},[x]),o.useEffect(()=>{if(!h)return;const _=setTimeout(()=>{var q;(q=P.current)==null||q.call(P,T)},v);return()=>clearTimeout(_)},[T,h,v]);const J=o.useMemo(()=>h&&!i&&T.trim()?u.filter(_=>String((_==null?void 0:_[c])??"").toLowerCase().includes(T.toLowerCase())):u??[],[u,h,i,T,c]),W=o.useMemo(()=>{if(C==null)return"";if(typeof C=="object")return String(C[a]??"");const _=(u||[]).find(q=>String(q==null?void 0:q[a])===String(C));return String(_?(_==null?void 0:_[c])??"":C)},[C,u,a,c]),se=_=>{b||(r?y==null||y(_[a]):(k(_[a]),$==null||$(t)),O==null||O(_),E(!1))};return A?null:e.jsxs("div",{className:`select-wrapper form-group ${A?"hidden":""}`,ref:D,children:[e.jsx("label",{className:"control-label",children:l}),I?e.jsxs("div",{className:j?"dfe-flex-input-wrapper":"",children:[e.jsx("span",{className:"form-control",style:j?{flex:1}:void 0,children:W||"-"}),j&&e.jsx(Y,{text:j,title:R,width:F})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:j?"dfe-flex-input-wrapper":"",children:[e.jsxs("div",{className:`select-control ${g?"border-red":""} ${b?"readOnly":""}`,onClick:()=>!b&&E(_=>!_),ref:N,style:j?{flex:1}:void 0,children:[e.jsx("span",{className:`select-display ${b?"readOnly":""}`,children:W||f}),e.jsx("i",{className:"flaticon flaticon-chevron-down select-icon"})]}),j&&e.jsx(Y,{text:j,title:R,width:F})]}),x&&!b&&e.jsxs("div",{className:"select-dropdown",children:[h&&e.jsx("div",{className:"select-search",children:e.jsx("input",{type:"text",className:"select-search-input",value:T,onChange:_=>U(_.target.value),placeholder:p?"Carregando...":d,autoFocus:!0,onClick:_=>_.stopPropagation()})}),e.jsx("ul",{className:"select-options",children:p?e.jsx("li",{className:"select-option readOnly",children:"Carregando..."}):J.length>0?J.map(_=>e.jsx("li",{onClick:()=>se(_),className:"select-option handleHover",children:_[c]},_[a])):e.jsx("li",{className:"select-option readOnly",children:"Sem resultados"})})]})]}),!r&&e.jsx("input",{type:"hidden",name:t,value:C||""}),(g||n)&&e.jsx("p",{className:"text-danger",children:String((g==null?void 0:g.message)??n)})]})}const z=o.memo(oe);function de({name:t,options:l=[],label:u="",valueKey:f="value",labelKey:c="label",forceReadOnly:a=!1,forceHidden:h=!1,valueManual:d,onChangeManual:p}){var I,C;let i=null;try{i=B.useFormContext()}catch{}const v=d!==void 0&&!!p,{isView:O,isReadOnly:S}=L.useFluigRuntime(),{isReadOnly:V,isHidden:j}=L.useSection(),R=V?V(t):!1,F=j?j(t):!1,w=a||R,y=h||F,n=w||S||O,r=()=>l?l.reduce((k,N)=>{const g=String(N[f]);if(v)k[g]=!!(d!=null&&d[g]);else if(i){const $=i.getValues(g);k[g]=$==="on"}else k[g]=!1;return k},{}):{},s=!v&&i?i.watch(t):void 0,m=o.useMemo(()=>v&&d?d:s&&typeof s=="object"?s:r(),[s,d,l]);o.useEffect(()=>{if(v||!i)return;const k=i.getValues(t);(!k||typeof k!="object")&&i.setValue(t,m,{shouldDirty:!1,shouldValidate:!1})},[m,t,i,v]);const b=(k,N)=>{if(n)return;const g={...m,[k]:N};if(v){p&&p(g);return}i&&(i.setValue(t,g,{shouldDirty:!0,shouldValidate:!0}),i.setValue(k,N?"on":"",{shouldValidate:!1}))},A=v?null:(C=(I=i==null?void 0:i.formState)==null?void 0:I.errors)==null?void 0:C[t];return e.jsxs("div",{className:`form-group ${y?"hidden":""}`,children:[u&&e.jsx("label",{children:u}),e.jsx("div",{className:`checkbox-group-custom ${n?"readOnly":""}`,children:l.map(k=>{const N=String(k[f]),g=m[N]===!0;return e.jsxs("div",{children:[!v&&i&&e.jsx("input",{type:"hidden",...i.register(N)}),e.jsxs("label",{className:`custom-checkbox ${g?"checked":""} ${n?"readOnly":""}`,children:[e.jsx("input",{type:"checkbox",checked:g,disabled:n,onChange:$=>b(N,$.target.checked)}),e.jsx("span",{className:"checkmark"}),e.jsx("span",{children:k[c]})]})]},N)})}),A&&e.jsx("p",{className:"text-danger",children:String(A.message)})]})}function ae({name:t,label:l="",options:u=[],valueKey:f="value",labelKey:c="label",iconKey:a="icon",forceReadOnly:h=!1,forceHidden:d=!1,valueManual:p,onChangeManual:i,errorManual:v}){var I,C;const O=p!==void 0&&!!i,{isReadOnly:S,isHidden:V}=L.useSection(),j=h||!!S(t),R=d||!!V(t),{isView:F,isReadOnly:w}=L.useFluigRuntime();let y=null;try{y=B.useFormContext()}catch{}const n=!O&&y?B.useController({name:t,control:y.control,defaultValue:""}):null,r=!O&&y?B.useFormState({name:t}):null,s=O?v:(C=(I=r==null?void 0:r.errors)==null?void 0:I[t])==null?void 0:C.message,m=j||w||F,b=O?p:(n==null?void 0:n.field.value)??"",A=o.useCallback(k=>{m||(O?i==null||i(k):(n==null||n.field.onChange(k),n==null||n.field.onBlur()))},[m,O,i,n]);return e.jsxs("div",{className:`form-group column ${R?"hidden":""}`,children:[l&&e.jsx("label",{className:"control-label",children:l}),e.jsx("div",{className:`btn-group ${m?"view-mode":""}`,"data-field-name":t,children:u.map(k=>{const N=k[f],g=b===N,$=k.color?{"--customColor":k.color}:void 0;return e.jsxs("div",{style:$,className:`btn fs-ellipsis ${g?"active":""}`,onClick:()=>A(N),children:[k[a]&&e.jsx("i",{className:`${k[a]} icon-sm`})," ",k[c]]},N)})}),!O&&e.jsx("input",{type:"hidden",name:t,value:b||"",ref:n==null?void 0:n.field.ref}),(s||v)&&e.jsx("p",{className:"text-danger",children:String(s??v)})]})}const ue=o.memo(ae),fe=({name:t,label:l="",placeholder:u="",className:f="",rows:c=4,maxLength:a,forceReadOnly:h=!1,forceHidden:d=!1,valueManual:p,onChangeManual:i,errorManual:v})=>{var m;const O=p!==void 0&&!!i,{isReadOnly:S,isHidden:V}=L.useSection(),j=h||!!S(t),R=d||!!V(t),{isView:F}=L.useFluigRuntime(),w=o.useRef(null);let y={value:p??"",onChange:b=>i==null?void 0:i(b)},n=null;if(!O)try{const{control:b}=B.useFormContext(),A=B.useController({name:t,control:b});y=A.field,n=(m=A.fieldState)==null?void 0:m.error}catch{}const r=()=>{w.current&&(w.current.style.height="auto",w.current.style.height=`${w.current.scrollHeight}px`)};if(o.useEffect(()=>{r()},[y.value]),F)return e.jsxs("div",{className:`form-group ${R?"hidden":""}`,children:[e.jsx("label",{children:l}),e.jsx("span",{className:"form-control",children:y.value||"-"})]});const s=`form-control ${j?"readOnly":""} ${n||v?"border-red":""} ${f}`;return e.jsxs("div",{className:`form-group ${R?"hidden":""}`,children:[l&&e.jsx("label",{children:l}),e.jsx("textarea",{ref:w,rows:c,maxLength:a,value:y.value||"",placeholder:u,readOnly:j,className:s,style:{resize:"none",maxHeight:"400px",overflowY:"auto"},onChange:b=>{O?i==null||i(b.target.value):y.onChange(b)},onInput:r}),(n||v)&&e.jsx("p",{className:"text-danger",children:String((n==null?void 0:n.message)??v)})]})},me=o.memo(fe);/**
|
|
2
2
|
* @license lucide-react v0.575.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const ee=(...t)=>t.filter((l,u,
|
|
6
|
+
*/const ee=(...t)=>t.filter((l,u,f)=>!!l&&l.trim()!==""&&f.indexOf(l)===u).join(" ").trim();/**
|
|
7
7
|
* @license lucide-react v0.575.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const xe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,
|
|
16
|
+
*/const xe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,f)=>f?f.toUpperCase():u.toLowerCase());/**
|
|
17
17
|
* @license lucide-react v0.575.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const je=o.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:
|
|
36
|
+
*/const je=o.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:f,className:c="",children:a,iconNode:h,...d},p)=>o.createElement("svg",{ref:p,...pe,width:l,height:l,stroke:t,strokeWidth:f?Number(u)*24/Number(l):u,className:ee("lucide",c),...!a&&!ve(d)&&{"aria-hidden":"true"},...d},[...h.map(([i,v])=>o.createElement(i,v)),...Array.isArray(a)?a:[a]]));/**
|
|
37
37
|
* @license lucide-react v0.575.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const G=(t,l)=>{const u=o.forwardRef(({className:f,...c},a)=>o.createElement(je,{ref:a,iconNode:l,className:ee(`lucide-${he(Z(t))}`,`lucide-${t}`,f),...c}));return u.displayName=Z(t),u};/**
|
|
42
42
|
* @license lucide-react v0.575.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const ye=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],be=
|
|
46
|
+
*/const ye=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],be=G("calendar",ye);/**
|
|
47
47
|
* @license lucide-react v0.575.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const ge=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ne=
|
|
51
|
+
*/const ge=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ne=G("chevron-left",ge);/**
|
|
52
52
|
* @license lucide-react v0.575.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const ke=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],we=
|
|
57
|
-
${
|
|
56
|
+
*/const ke=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],we=G("chevron-right",ke),te="dd/MM/yyyy",X=t=>{if(!t)return null;const l=H.parse(t,te,new Date);return H.isValid(l)?l:null},Se=t=>t?H.format(t,te):"",Re=[{value:0,label:"Janeiro"},{value:1,label:"Fevereiro"},{value:2,label:"Março"},{value:3,label:"Abril"},{value:4,label:"Maio"},{value:5,label:"Junho"},{value:6,label:"Julho"},{value:7,label:"Agosto"},{value:8,label:"Setembro"},{value:9,label:"Outubro"},{value:10,label:"Novembro"},{value:11,label:"Dezembro"}],K=1940,_e=2100,Oe=Array.from({length:_e-K+1},(t,l)=>{const u=K+l;return{value:u,label:String(u)}});function $e({name:t,label:l="",placeholder:u="dd/mm/aaaa",className:f="",forceReadOnly:c=!1,forceHidden:a=!1,valueManual:h,onChangeManual:d,errorManual:p}){var $;const i=h!==void 0&&!!d,{isReadOnly:v,isHidden:O}=L.useSection(),S=c||!!v(t),V=a||!!O(t),{isView:j}=L.useFluigRuntime();let R="",F=()=>{},w,y=null,n=()=>{};if(i)R=h;else try{const x=B.useFormContext(),E=B.useController({name:t,control:x.control});R=E.field.value,F=E.field.onChange,w=E.field.ref,y=($=E.fieldState)==null?void 0:$.error,n=x.clearErrors}catch{}const[r,s]=o.useState(!1),[m,b]=o.useState(new Date),A=o.useRef(null);o.useEffect(()=>{if(r){const x=X(R);b(x&&H.isValid(x)?x:new Date)}},[r,R]),o.useEffect(()=>{const x=E=>{A.current&&!A.current.contains(E.target)&&s(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const I=o.useMemo(()=>X(R),[R]),C=x=>{if(S)return;const E=Se(x);i?d==null||d(E):(F(E),n==null||n(t)),s(!1)},k=o.useMemo(()=>H.eachDayOfInterval({start:H.startOfWeek(H.startOfMonth(m)),end:H.endOfWeek(H.endOfMonth(m))}),[m]),N=m.getMonth(),g=H.getYear(m);return e.jsxs("div",{className:`dfe-datepicker-wrapper form-group ${V?"hidden":""} ${f}`,ref:A,children:[e.jsx("label",{className:"control-label",children:l}),j?e.jsx("span",{className:"form-control",children:R||"-"}):e.jsxs("div",{className:"dfe-datepicker-inner-container",children:[e.jsxs("div",{className:`dfe-datepicker-control ${y?"border-red":""} ${S?"readOnly":""}`,onClick:()=>!S&&s(x=>!x),ref:w,children:[e.jsx("span",{className:`dfe-datepicker-display ${S?"readOnly":""}`,children:R||u}),e.jsx(be,{size:16,className:"dfe-datepicker-icon"})]}),r&&!S&&e.jsxs("div",{className:"dfe-datepicker-dropdown",onClick:x=>x.stopPropagation(),children:[e.jsxs("div",{className:"dfe-datepicker-header",children:[e.jsx("button",{type:"button",onClick:()=>b(H.subMonths(m,1)),className:"dfe-datepicker-nav-btn",children:e.jsx(Ne,{size:16})}),e.jsxs("div",{className:"dfe-datepicker-selectors",children:[e.jsx(z,{name:"datepicker_internal_month",valueManual:N,onChangeManual:x=>b(H.setMonth(m,Number(x))),options:Re,placeholder:"Mês"}),e.jsx(z,{name:"datepicker_internal_year",valueManual:g,onChangeManual:x=>b(H.setYear(m,Number(x))),options:Oe,enableSearch:!0,searchPlaceholder:"Buscar ano...",placeholder:"Ano"})]}),e.jsx("button",{type:"button",onClick:()=>b(H.addMonths(m,1)),className:"dfe-datepicker-nav-btn",children:e.jsx(we,{size:16})})]}),e.jsx("div",{className:"dfe-datepicker-grid-header",children:["D","S","T","Q","Q","S","S"].map((x,E)=>e.jsx("span",{children:x},E))}),e.jsx("div",{className:"dfe-datepicker-grid",children:k.map((x,E)=>{const T=!H.isSameMonth(x,m),U=I&&H.isSameDay(x,I);return e.jsx("div",{onClick:()=>!T&&C(x),className:`dfe-datepicker-day
|
|
57
|
+
${U?"selected":"handleHover"}
|
|
58
58
|
${T?"outside":""}
|
|
59
|
-
${
|
|
59
|
+
${H.isToday(x)?"today":""}`,children:H.format(x,"d")},E)})})]})]}),!i&&e.jsx("input",{type:"hidden",name:t,value:R||""}),(y||p)&&e.jsx("p",{className:"text-danger",children:String((y==null?void 0:y.message)??p)})]})}const Ae=o.memo($e);function Ce({mapping:t={},defaultLabel:l="Não reconhecido",className:u="",hidden:f=!1,label:c}){const{activityId:a}=L.useFluigRuntime(),h=o.useMemo(()=>!t||a===null||a===void 0?null:t[a],[a,t]);if(!h)return e.jsxs("div",{className:`form-group ${f?"hidden":""}`,children:[c&&e.jsx("label",{children:c}),e.jsx("div",{className:`status-badge default ${u}`,children:l})]});const d={"--customColor":h.color};return e.jsxs("div",{className:`form-group ${f?"hidden":""}`,children:[c&&e.jsx("label",{children:c}),e.jsxs("div",{className:`status-badge ${u}`,style:d,children:[h.icon&&e.jsx("i",{className:h.icon}),e.jsx("span",{children:h.label})]})]})}const Ee=o.memo(Ce);function Fe({name:t,control:l,defaultRowValue:u,isView:f,isReadOnly:c,filters:a=[]}){const{field:h}=B.useController({name:t,control:l}),[d,p]=o.useState([]),[i,v]=o.useState([]),O=()=>Date.now()+Math.random(),S=r=>{try{const s=JSON.parse(r);return Array.isArray(s)?s.map(m=>({...m,_uid:m._uid||O()})):[]}catch(s){return console.error(`Erro ao ler dados da tabela "${t}":`,s),[]}};o.useEffect(()=>{if(!(d.length>0&&!f)&&h.value&&typeof h.value=="string"){const r=JSON.stringify(d);if(h.value===r)return;const s=S(h.value);p(s)}},[h.value,f]),o.useEffect(()=>{if(c)return;const r=JSON.stringify(d);h.value!==r&&h.onChange(r)},[d,h,c]);const V=o.useCallback(()=>{const r={_uid:O(),...u};p(s=>[...s,r])},[u]),j=o.useCallback(()=>{p(r=>r.filter(s=>!i.includes(s._uid))),v([])},[i]),R=o.useCallback((r,s,m)=>{p(b=>b.map(A=>A._uid===r?{...A,[s]:m}:A))},[]),F=o.useCallback(r=>{v(s=>s.includes(r)?s.filter(m=>m!==r):[...s,r])},[]),w=o.useCallback(r=>{v(r?d.map(s=>s._uid):[])},[d]),y=d.length>0&&i.length===d.length,n=o.useMemo(()=>!a||a.length===0?d:d.filter(r=>a.every(s=>{if("custom"in s)return s.custom(r);const m=r[s.field];switch(s.operator){case"===":return m===s.value;case"!==":return m!==s.value;case">":return m>s.value;case"<":return m<s.value;case">=":return m>=s.value;case"<=":return m<=s.value;default:return!0}})),[d,a]);return{field:h,tableRows:d,visibleRows:n,selectedRowIds:i,isAllSelected:y,handle:{addRow:V,removeRows:j,updateCellValue:R,toggleSelection:F,toggleSelectAll:w}}}const Ie=({name:t,title:l="Tabela Dinâmica",columns:u,defaultRowValue:f={},forceReadOnly:c=!1,layout:a="fluid",actions:h=!0,filters:d=[]})=>{const{control:p}=B.useFormContext(),{isView:i,isReadOnly:v}=L.useFluigRuntime(),{isReadOnly:O}=L.useSection(),S=c||i||v||O&&O(t),{field:V,visibleRows:j,selectedRowIds:R,isAllSelected:F,handle:w}=Fe({name:t,control:p,defaultRowValue:f,isView:i,isReadOnly:!!S,filters:d}),y=a==="fixed";return e.jsxs("div",{className:`table-wrapper ${y?"table-fixed":"table-fluid"}`,children:[e.jsx("input",{type:"hidden",...V}),e.jsxs("div",{className:"header-handle",children:[e.jsx("h3",{children:l}),!S&&h&&e.jsxs("div",{className:"handle-actions",children:[e.jsxs("button",{type:"button",className:`btn ${R.length>0?"btn-danger":"btn-primary"}`,disabled:R.length===0,onClick:w.removeRows,children:["Remover (",R.length,")"]}),e.jsx("button",{type:"button",className:"btn-add",onClick:w.addRow,children:"Adicionar"})]})]}),e.jsx("div",{className:"table-scroll",children:e.jsxs("table",{className:"table-custom",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[!S&&e.jsx("th",{style:{width:"50px"},children:e.jsx("input",{type:"checkbox",checked:F,onChange:n=>w.toggleSelectAll(n.target.checked)})}),u.map(n=>e.jsx("th",{style:n.width?{minWidth:y?n.width:"100%"}:{width:"max-content"},children:n.label},String(n.key)))]})}),e.jsxs("tbody",{children:[j.map((n,r)=>e.jsxs("tr",{children:[!S&&e.jsx("td",{children:e.jsx("input",{type:"checkbox",checked:R.includes(n._uid),onChange:()=>w.toggleSelection(n._uid)})}),u.map(s=>e.jsx("td",{children:s.render?s.render.length<=1?s.render({row:n,index:r,updateRow:(m,b)=>w.updateCellValue(n._uid,String(m),b),isLocked:!!S,isView:!!i}):s.render(n,r,(m,b)=>w.updateCellValue(n._uid,m,b),!!S,!!i):n[s.key]},`${n._uid}-${String(s.key)}`))]},n._uid)),j.length===0&&e.jsx("tr",{className:"empty-row",children:e.jsx("td",{colSpan:100,className:"text-center",children:S?"Nenhum registro encontrado.":"Nenhum registro."})})]})]})})]})},Ve=(t,l)=>{const[u,f]=o.useState(null);let c=null;try{c=B.useFormContext().watch}catch{}const a=l!==void 0?l:c?c(t):void 0,h=o.useCallback(()=>{try{const p=window.top.__REACT_ATTACHMENT_BRIDGE__;if(p){const i=p.getAttachment(t,a);f(i||(a?{name:a,documentId:0}:null))}else f(a?{name:a,documentId:0}:null)}catch{f(a?{name:a,documentId:0}:null)}},[t,a,l]);return o.useEffect(()=>{h();const d=setInterval(h,2e3);return()=>clearInterval(d)},[h]),{attachment:u,sync:h}},De=({name:t,label:l,help:u,valueManual:f,onChangeManual:c,forceReadOnly:a=!1,forceHidden:h=!1,helpText:d,helpTitle:p,helpWidth:i})=>{const v=!!c,{isReadOnly:O,isHidden:S}=L.useSection(),{isView:V}=L.useFluigRuntime(),j=a||V||!!O(t),R=h||!!S(t),[F,w]=o.useState(!1);let y=null;try{y=B.useFormContext().control}catch{}const n=y&&!v?B.useController({name:t,control:y}).field:{value:f,onChange:N=>c==null?void 0:c(N)},{attachment:r,sync:s}=Ve(t,f),m=()=>{var N;try{const g=window.top;return{bridge:g.__REACT_ATTACHMENT_BRIDGE__,toast:(N=g.FLUIGC)==null?void 0:N.toast}}catch{return{bridge:null,toast:null}}},b=o.useCallback(()=>{if(j)return;const N=document.createElement("input");N.type="file",N.onchange=g=>{const $=g.target.files[0];if(!$)return;const{bridge:x,toast:E}=m();w(!0),x?x.upload($,t,T=>{v?c==null||c(T.name):n.onChange(T.name),setTimeout(()=>{w(!1),s()},1e3),E&&E({title:"Sucesso",message:"Arquivo enviado",type:"success"})}):(v?c==null||c($.name):n.onChange($.name),w(!1))},N.click()},[t,n,s,c,j,v]),A=N=>{if(N.stopPropagation(),j)return;const g=(r==null?void 0:r.name)||f||n.value;if(!g)return;const{bridge:$,toast:x}=m();$?$.removeByFileName(g)?(v?c==null||c(""):n.onChange(""),s()):x&&x({title:"Erro",message:"Erro ao remover anexo",type:"danger"}):(v?c==null||c(""):n.onChange(""),s())},I=!!r&&!F,C=(r==null?void 0:r.name)||f||n.value,k=["fluig-attachment__box",I?"fluig-attachment__box--has-file":"",F?"fluig-attachment__box--uploading":"",j&&!I?"readOnly":"",j&&I?"fluig-attachment__box--readonly-view":""].join(" ");return R?null:e.jsxs("div",{className:"form-group fluig-attachment",children:[l&&e.jsx("label",{className:"fluig-attachment__label",children:l}),e.jsxs("div",{className:d?"dfe-flex-input-wrapper":"",children:[e.jsxs("div",{className:k,style:d?{flex:1}:void 0,onClick:()=>{if(I){const N=m(),g=(r==null?void 0:r.physicalFileName)||(r==null?void 0:r.description)||(r==null?void 0:r.name)||C;N.bridge&&g&&N.bridge.view(g)}else b()},children:[e.jsxs("span",{className:"fluig-attachment__content",children:[e.jsx("i",{className:`flaticon icon-sm ${F?"flaticon-loading":I?"flaticon-file":"flaticon-paperclip"} fluig-attachment__icon`}),e.jsx("span",{className:"fluig-attachment__filename",children:F?" Enviando...":I?C:j?"Nenhum arquivo":u||"Anexar"})]}),I&&!j&&e.jsx("button",{type:"button",className:"fluig-attachment__btn-remove btn btn-link text-danger",onClick:A,children:e.jsx("i",{className:"flaticon flaticon-trash icon-sm"})})]}),d&&e.jsx(Y,{text:d,title:p,width:i})]}),!v&&y&&e.jsx("input",{type:"hidden",name:t,value:n.value||""})]})},He=o.memo(De);exports.Attachment=He;exports.Checkbox=de;exports.DatePicker=Ae;exports.Help=Y;exports.Input=ce;exports.Modal=M;exports.RadioBtn=ue;exports.Select=z;exports.SimpleTable=Ie;exports.StatusBadge=Ee;exports.TextArea=me;
|