adpro-react 0.0.22-rc.11 → 0.0.22-rc.12

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.
@@ -734,7 +734,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
734
734
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
735
735
  * See the License for the specific language governing permissions and
736
736
  * limitations under the License.
737
- */function B2(e){return e.variant===N1.FIDELITY||e.variant===N1.CONTENT}function Gt(e){return e.variant===N1.MONOCHROME}function pO(e,t,n,r){let i=n,a=Oo.from(e,t,n);if(a.chroma<t){let s=a.chroma;for(;a.chroma<t;){i+=r?-1:1;const l=Oo.from(e,t,i);if(s>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),u=Math.abs(a.chroma-t);c<u&&(a=l),s=Math.max(s,l.chroma)}}return i}function fO(e){return dr.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function bc(e,t){const n=e.inViewingConditions(fO(t));return De.tonePrefersLightForeground(e.tone)&&!De.toneAllowsLightForeground(n.tone)?De.enableLightForeground(e.tone):De.enableLightForeground(n.tone)}class le{static highestSurface(t){return t.isDark?le.surfaceBright:le.surfaceDim}}le.contentAccentToneDelta=15;le.primaryPaletteKeyColor=De.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});le.secondaryPaletteKeyColor=De.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});le.tertiaryPaletteKeyColor=De.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});le.neutralPaletteKeyColor=De.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});le.neutralVariantPaletteKeyColor=De.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});le.background=De.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});le.onBackground=De.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>le.background,contrastCurve:new et(3,3,4.5,7)});le.surface=De.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});le.surfaceDim=De.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});le.surfaceBright=De.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});le.surfaceContainerLowest=De.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});le.surfaceContainerLow=De.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});le.surfaceContainer=De.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});le.surfaceContainerHigh=De.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});le.surfaceContainerHighest=De.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});le.onSurface=De.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>le.highestSurface(e),contrastCurve:new et(4.5,7,11,21)});le.surfaceVariant=De.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});le.onSurfaceVariant=De.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11)});le.inverseSurface=De.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});le.inverseOnSurface=De.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>le.inverseSurface,contrastCurve:new et(4.5,7,11,21)});le.outline=De.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>le.highestSurface(e),contrastCurve:new et(1.5,3,4.5,7)});le.outlineVariant=De.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7)});le.shadow=De.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});le.scrim=De.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});le.surfaceTint=De.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});le.primary=De.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Gt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.primaryContainer,le.primary,15,"nearer",!1)});le.onPrimary=De.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Gt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>le.primary,contrastCurve:new et(4.5,7,11,21)});le.primaryContainer=De.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>B2(e)?bc(e.sourceColorHct,e):Gt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.primaryContainer,le.primary,15,"nearer",!1)});le.onPrimaryContainer=De.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>B2(e)?De.foregroundTone(le.primaryContainer.tone(e),4.5):Gt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>le.primaryContainer,contrastCurve:new et(4.5,7,11,21)});le.inversePrimary=De.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>le.inverseSurface,contrastCurve:new et(3,4.5,7,11)});le.secondary=De.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.secondaryContainer,le.secondary,15,"nearer",!1)});le.onSecondary=De.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>le.secondary,contrastCurve:new et(4.5,7,11,21)});le.secondaryContainer=De.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(Gt(e))return e.isDark?30:85;if(!B2(e))return t;let n=pO(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return n=bc(e.secondaryPalette.getHct(n),e),n},isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.secondaryContainer,le.secondary,15,"nearer",!1)});le.onSecondaryContainer=De.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>B2(e)?De.foregroundTone(le.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>le.secondaryContainer,contrastCurve:new et(4.5,7,11,21)});le.tertiary=De.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.tertiaryContainer,le.tertiary,15,"nearer",!1)});le.onTertiary=De.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>le.tertiary,contrastCurve:new et(4.5,7,11,21)});le.tertiaryContainer=De.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Gt(e))return e.isDark?60:49;if(!B2(e))return e.isDark?30:90;const t=bc(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),n=e.tertiaryPalette.getHct(t);return yc.fixIfDisliked(n).tone},isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.tertiaryContainer,le.tertiary,15,"nearer",!1)});le.onTertiaryContainer=De.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?e.isDark?0:100:B2(e)?De.foregroundTone(le.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>le.tertiaryContainer,contrastCurve:new et(4.5,7,11,21)});le.error=De.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.errorContainer,le.error,15,"nearer",!1)});le.onError=De.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>le.error,contrastCurve:new et(4.5,7,11,21)});le.errorContainer=De.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.errorContainer,le.error,15,"nearer",!1)});le.onErrorContainer=De.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>le.errorContainer,contrastCurve:new et(4.5,7,11,21)});le.primaryFixed=De.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Gt(e)?40:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.primaryFixed,le.primaryFixedDim,10,"lighter",!0)});le.primaryFixedDim=De.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Gt(e)?30:80,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.primaryFixed,le.primaryFixedDim,10,"lighter",!0)});le.onPrimaryFixed=De.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Gt(e)?100:10,background:e=>le.primaryFixedDim,secondBackground:e=>le.primaryFixed,contrastCurve:new et(4.5,7,11,21)});le.onPrimaryFixedVariant=De.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Gt(e)?90:30,background:e=>le.primaryFixedDim,secondBackground:e=>le.primaryFixed,contrastCurve:new et(3,4.5,7,11)});le.secondaryFixed=De.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?80:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.secondaryFixed,le.secondaryFixedDim,10,"lighter",!0)});le.secondaryFixedDim=De.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?70:80,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.secondaryFixed,le.secondaryFixedDim,10,"lighter",!0)});le.onSecondaryFixed=De.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>le.secondaryFixedDim,secondBackground:e=>le.secondaryFixed,contrastCurve:new et(4.5,7,11,21)});le.onSecondaryFixedVariant=De.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?25:30,background:e=>le.secondaryFixedDim,secondBackground:e=>le.secondaryFixed,contrastCurve:new et(3,4.5,7,11)});le.tertiaryFixed=De.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?40:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.tertiaryFixed,le.tertiaryFixedDim,10,"lighter",!0)});le.tertiaryFixedDim=De.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?30:80,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.tertiaryFixed,le.tertiaryFixedDim,10,"lighter",!0)});le.onTertiaryFixed=De.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?100:10,background:e=>le.tertiaryFixedDim,secondBackground:e=>le.tertiaryFixed,contrastCurve:new et(4.5,7,11,21)});le.onTertiaryFixedVariant=De.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?90:30,background:e=>le.tertiaryFixedDim,secondBackground:e=>le.tertiaryFixed,contrastCurve:new et(3,4.5,7,11)});const vc={...Ul,components:{...Ul.components,MuiTableHead:{styleOverrides:{root:{th:{padding:"0.2rem 0.5rem !important",borderBottom:"1px solid rgba(226, 227, 232, 1) !important",color:"text-primary",background:nl[50]},"th .MuiButtonBase-root":{color:"text-primary",cursor:"pointer"},td:{borderLeft:"none"}}}},MuiTableBody:{styleOverrides:{root:{".MuiTableCell-root":{padding:"0.1rem 0.5rem !important"},".MuiTableRow-root:hover":{backgroundColor:nl[100]}}}},MuiTableFooter:{styleOverrides:{root:{".MuiTableCell-footer":{padding:"2px 4px !important"}}}}}},mO=e=>{const{label:t,helperText:n,inputRef:r,name:i,customTheme:a,required:s,error:l,placeholder:c,size:u,type:d,labelText:p,optionAll:f}=e,{dataList:g,loading:h,isFocused:m,autocompleteValue:y,textFieldValue:T,handleAutocompleteValue:R,handleTextFieldValue:E,handleReasonChangeTextField:x,setIsFocused:v,clearValues:M}=N8(e);let D=a||vc,$=f?[f,...g]:g;const B=b.useMemo(()=>{const C={...e};return delete C.handleValue,delete C.labelText,delete C.labelKey,delete C.helperText,delete C.error,delete C.ref,delete C.inputRef,delete C.name,delete C.labelSelection,delete C.size,delete C.optionAll,C},[e]);return O.jsx(C5,{theme:D,children:O.jsx(A3,{...B,filterOptions:C=>C,noOptionsText:"No se encontraron resultados.",options:$,onChange:(C,P)=>R(P),onInputChange:(C,P,A)=>{E(P),x(A)},getOptionLabel:e.getOptionLabel?e.getOptionLabel:C=>C?C[p]:"",renderOption:(C,P)=>b.createElement(N5,{component:"li",...C,key:`${P[e.labelKey]}-${P[e.labelText]}`,sx:{borderBottom:P[e.labelKey]==="-1"||P[e.labelKey]===-1?`${Ul.palette.divider} 1px solid`:"inherit"}},P[e.labelText]),value:y,inputValue:T,loading:h,loadingText:"Consultando...",size:u,onBlur:()=>{v(!1)},renderInput:C=>O.jsx(K1,{...C,label:t,value:T,error:l,helperText:n,placeholder:c,required:s,ref:r,name:i??"",size:u,onFocus:P=>{v(!0)},InputProps:{...C.InputProps,endAdornment:O.jsxs(O.Fragment,{children:[T&&d!=="list"?O.jsx(qr,{size:"small",onClick:M,children:O.jsx(Cw,{fontSize:"small"})}):null,h?O.jsx(z5,{color:"primary",size:20}):d==="list"?m?O.jsx(mw,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):O.jsx(fw,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):O.jsx(xw,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"})]})}})})})},Ql=e=>{const{primaryMessage:t,secondaryMessage:n,details:r,finishAction:i,severity:a="success",timeProgress:s=5,customContent:l}=e,[c,u]=b.useState(0),d=b.useRef(null),[p,f]=b.useState(!0),g=()=>{u(T=>T>=100?(m(),100):T+parseFloat(`1.${10/s}`))},h=()=>{d.current=setInterval(()=>{g()},s*10)},m=()=>{d.current&&(clearInterval(d.current),d.current=null),f(!1)},y=b.useCallback(T=>{T?d.current&&(clearInterval(d.current),d.current=null):h()},[]);return b.useEffect(()=>{u(0),f(!0),h()},[e]),b.useEffect(()=>{!p&&i&&i()},[p]),p&&O.jsxs(To,{children:[O.jsxs(E5,{"data-testid":"alert-toast-adpro",severity:a,onMouseOver:()=>y(!0),onMouseOut:()=>y(!1),sx:{boxShadow:"1px 5px 2px rgba(0,0,0,.2)",borderRadius:"4px 4px 0px 0px","& .MuiAlert-action":{marginBottom:"auto"},"& .MuiAlert-message ":{width:"100%"}},action:O.jsx(qr,{onClick:()=>f(!1),sx:{padding:0},children:O.jsx(gw,{fontSize:"small",sx:{cursor:"pointer"}})}),children:[O.jsx(S5,{children:t}),n||"",r&&r.length>0&&O.jsx(To,{maxHeight:"9rem",overflow:"auto",children:r.map((T,R)=>O.jsx(on,{variant:"caption",color:"text.secondary",children:T},R))}),O.jsx(To,{paddingTop:1,children:l&&l})]}),O.jsx(G5,{value:c,variant:"determinate",color:a,sx:{borderEndEndRadius:4,borderEndStartRadius:4}})]})},xc=b.memo(e=>{const{elements:t}=e,[n,r]=b.useState(!0);return b.useEffect(()=>{r(!0)},[t]),n&&O.jsx(To,{position:"fixed",top:25,right:25,zIndex:1500,maxWidth:"45%",minWidth:"25%",children:O.jsx(To,{gap:1,sx:{flexDirection:"column"},children:n&&!Array.isArray(t)?O.jsx(Ql,{...t}):Array.isArray(t)&&t.map((i,a)=>O.jsx(Ql,{...i},a))})})});function F7(e){const{options:t,value:n,onSelected:r,labelKey:i,labelText:a,todos:s}=e,l=s?{[i]:"-1",[a]:"Todos"}:null,c=s&&l?[l,...t]:t,u=c.filter(f=>f[i]!=="-1"),d=n.length===u.length;return b.useEffect(()=>{s&&n.length===0&&u.length>0&&r(u)},[]),{updatedOptions:c,handleChange:(f,g)=>{if(!s||!l){r(g);return}const h=g.some(m=>m[i]===l[i]);r(h?d?[]:u:g)},isAllSelected:d}}const H7=({text:e,variant:t="body3",align:n,placement:r})=>{const i=b.useRef(null),[a,s]=b.useState(!1);b.useEffect(()=>{const c=i.current;c&&s(c.offsetWidth<c.scrollWidth)},[e]);const l=O.jsx(on,{variant:t,noWrap:!0,ref:i,textAlign:n,children:e});return a?O.jsx(u8,{title:e,arrow:!0,placement:r,children:l}):l},hO=e=>{const{value:t,placeholder:n,labelKey:r,labelText:i,label:a,todos:s,showSelectedCount:l,customTheme:c}=e,{isAllSelected:u,updatedOptions:d,handleChange:p}=F7(e);let f=c||vc;return O.jsx(C5,{theme:f,children:O.jsx(A3,{multiple:!0,fullWidth:!0,limitTags:1,id:"checkboxes-multiselect",options:d,value:t,onChange:p,disableCloseOnSelect:!0,isOptionEqualToValue:(g,h)=>g[r]===h[r],getOptionLabel:g=>String(g[i]),renderTags:g=>l?u?s?"Todos":`${g.length} seleccionados`:`${g.length} seleccionados`:O.jsx(O.Fragment,{}),renderOption:(g,h,{selected:m})=>{const{key:y,...T}=g,R=h[r]==="-1",E=R?u:m;return O.jsxs(o8,{...T,sx:{borderBottom:s&&h[i]==="Todos"?"1px #0000001F solid":"",gap:1,padding:"7px 16px !important"},children:[O.jsx(_5,{checked:E}),O.jsx(J5,{children:O.jsx(H7,{text:R?"Todos":String(h[i]),variant:"body1",placement:"bottom"})})]},String(h[r]))},renderInput:g=>O.jsx(K1,{...g,label:a,placeholder:l?"":n,fullWidth:!0})})})},j7=[];let Eo=0;for(;Eo<64;)j7[Eo]=0|Math.sin(++Eo%Math.PI)*4294967296;function CO(e){const t=[];let n,r,i,a=unescape(encodeURI(e))+"€",s=a.length;const l=[n=1732584193,r=4023233417,~n,~r];for(e=--s/4+2|15,t[--e]=s*8;~s;)t[s>>2]|=a.charCodeAt(s)<<8*s--;for(Eo=a=0;Eo<e;Eo+=16){for(s=l;a<64;s=[i=s[3],n+((i=s[0]+[n&r|~n&i,i&n|~i&r,n^r^i,r^(n|~i)][s=a>>4]+j7[a]+~~t[Eo|[a,5*a+1,3*a+5,7*a][s]&15])<<(s=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*s+a++%4])|i>>>-s),n,r])n=s[1]|0,r=s[2];for(a=4;a;)l[--a]+=s[a]}for(e="";a<32;)e+=(l[a>>3]>>(1^a++)*4&15).toString(16);return e}const Ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_7=e=>{let t="",n,r,i,a,s,l,c,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)a=Ti.indexOf(e.charAt(u++)),s=Ti.indexOf(e.charAt(u++)),l=Ti.indexOf(e.charAt(u++)),c=Ti.indexOf(e.charAt(u++)),n=a<<2|s>>4,r=(s&15)<<4|l>>2,i=(l&3)<<6|c,t=t+String.fromCharCode(n),l!=64&&(t=t+String.fromCharCode(r)),c!=64&&(t=t+String.fromCharCode(i));return t},gO=["pro","premium"],yO=["perpetual","annual","subscription"],bO=typeof window<"u"&&window.location.hostname.endsWith(".csb.app");function F2(e){(bO?console.log:console.error)(["*************************************************************","",...e,"","*************************************************************"].join(`
737
+ */function B2(e){return e.variant===N1.FIDELITY||e.variant===N1.CONTENT}function Gt(e){return e.variant===N1.MONOCHROME}function pO(e,t,n,r){let i=n,a=Oo.from(e,t,n);if(a.chroma<t){let s=a.chroma;for(;a.chroma<t;){i+=r?-1:1;const l=Oo.from(e,t,i);if(s>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),u=Math.abs(a.chroma-t);c<u&&(a=l),s=Math.max(s,l.chroma)}}return i}function fO(e){return dr.make(void 0,void 0,e.isDark?30:80,void 0,void 0)}function bc(e,t){const n=e.inViewingConditions(fO(t));return De.tonePrefersLightForeground(e.tone)&&!De.toneAllowsLightForeground(n.tone)?De.enableLightForeground(e.tone):De.enableLightForeground(n.tone)}class le{static highestSurface(t){return t.isDark?le.surfaceBright:le.surfaceDim}}le.contentAccentToneDelta=15;le.primaryPaletteKeyColor=De.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});le.secondaryPaletteKeyColor=De.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});le.tertiaryPaletteKeyColor=De.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});le.neutralPaletteKeyColor=De.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});le.neutralVariantPaletteKeyColor=De.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});le.background=De.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});le.onBackground=De.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>le.background,contrastCurve:new et(3,3,4.5,7)});le.surface=De.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});le.surfaceDim=De.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});le.surfaceBright=De.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});le.surfaceContainerLowest=De.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});le.surfaceContainerLow=De.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});le.surfaceContainer=De.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});le.surfaceContainerHigh=De.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});le.surfaceContainerHighest=De.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});le.onSurface=De.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>le.highestSurface(e),contrastCurve:new et(4.5,7,11,21)});le.surfaceVariant=De.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});le.onSurfaceVariant=De.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11)});le.inverseSurface=De.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});le.inverseOnSurface=De.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>le.inverseSurface,contrastCurve:new et(4.5,7,11,21)});le.outline=De.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>le.highestSurface(e),contrastCurve:new et(1.5,3,4.5,7)});le.outlineVariant=De.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7)});le.shadow=De.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0});le.scrim=De.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0});le.surfaceTint=De.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});le.primary=De.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Gt(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.primaryContainer,le.primary,15,"nearer",!1)});le.onPrimary=De.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Gt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>le.primary,contrastCurve:new et(4.5,7,11,21)});le.primaryContainer=De.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>B2(e)?bc(e.sourceColorHct,e):Gt(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.primaryContainer,le.primary,15,"nearer",!1)});le.onPrimaryContainer=De.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>B2(e)?De.foregroundTone(le.primaryContainer.tone(e),4.5):Gt(e)?e.isDark?0:100:e.isDark?90:10,background:e=>le.primaryContainer,contrastCurve:new et(4.5,7,11,21)});le.inversePrimary=De.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>le.inverseSurface,contrastCurve:new et(3,4.5,7,11)});le.secondary=De.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.secondaryContainer,le.secondary,15,"nearer",!1)});le.onSecondary=De.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?e.isDark?10:100:e.isDark?20:100,background:e=>le.secondary,contrastCurve:new et(4.5,7,11,21)});le.secondaryContainer=De.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(Gt(e))return e.isDark?30:85;if(!B2(e))return t;let n=pO(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return n=bc(e.secondaryPalette.getHct(n),e),n},isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.secondaryContainer,le.secondary,15,"nearer",!1)});le.onSecondaryContainer=De.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>B2(e)?De.foregroundTone(le.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>le.secondaryContainer,contrastCurve:new et(4.5,7,11,21)});le.tertiary=De.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.tertiaryContainer,le.tertiary,15,"nearer",!1)});le.onTertiary=De.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?e.isDark?10:90:e.isDark?20:100,background:e=>le.tertiary,contrastCurve:new et(4.5,7,11,21)});le.tertiaryContainer=De.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Gt(e))return e.isDark?60:49;if(!B2(e))return e.isDark?30:90;const t=bc(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),n=e.tertiaryPalette.getHct(t);return yc.fixIfDisliked(n).tone},isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.tertiaryContainer,le.tertiary,15,"nearer",!1)});le.onTertiaryContainer=De.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?e.isDark?0:100:B2(e)?De.foregroundTone(le.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>le.tertiaryContainer,contrastCurve:new et(4.5,7,11,21)});le.error=De.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(3,4.5,7,11),toneDeltaPair:e=>new $n(le.errorContainer,le.error,15,"nearer",!1)});le.onError=De.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>le.error,contrastCurve:new et(4.5,7,11,21)});le.errorContainer=De.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.errorContainer,le.error,15,"nearer",!1)});le.onErrorContainer=De.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>le.errorContainer,contrastCurve:new et(4.5,7,11,21)});le.primaryFixed=De.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Gt(e)?40:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.primaryFixed,le.primaryFixedDim,10,"lighter",!0)});le.primaryFixedDim=De.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Gt(e)?30:80,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.primaryFixed,le.primaryFixedDim,10,"lighter",!0)});le.onPrimaryFixed=De.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Gt(e)?100:10,background:e=>le.primaryFixedDim,secondBackground:e=>le.primaryFixed,contrastCurve:new et(4.5,7,11,21)});le.onPrimaryFixedVariant=De.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Gt(e)?90:30,background:e=>le.primaryFixedDim,secondBackground:e=>le.primaryFixed,contrastCurve:new et(3,4.5,7,11)});le.secondaryFixed=De.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?80:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.secondaryFixed,le.secondaryFixedDim,10,"lighter",!0)});le.secondaryFixedDim=De.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?70:80,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.secondaryFixed,le.secondaryFixedDim,10,"lighter",!0)});le.onSecondaryFixed=De.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>le.secondaryFixedDim,secondBackground:e=>le.secondaryFixed,contrastCurve:new et(4.5,7,11,21)});le.onSecondaryFixedVariant=De.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Gt(e)?25:30,background:e=>le.secondaryFixedDim,secondBackground:e=>le.secondaryFixed,contrastCurve:new et(3,4.5,7,11)});le.tertiaryFixed=De.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?40:90,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.tertiaryFixed,le.tertiaryFixedDim,10,"lighter",!0)});le.tertiaryFixedDim=De.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?30:80,isBackground:!0,background:e=>le.highestSurface(e),contrastCurve:new et(1,1,3,7),toneDeltaPair:e=>new $n(le.tertiaryFixed,le.tertiaryFixedDim,10,"lighter",!0)});le.onTertiaryFixed=De.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?100:10,background:e=>le.tertiaryFixedDim,secondBackground:e=>le.tertiaryFixed,contrastCurve:new et(4.5,7,11,21)});le.onTertiaryFixedVariant=De.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Gt(e)?90:30,background:e=>le.tertiaryFixedDim,secondBackground:e=>le.tertiaryFixed,contrastCurve:new et(3,4.5,7,11)});const vc={...Ul,components:{...Ul.components,MuiTableHead:{styleOverrides:{root:{th:{padding:"0.2rem 0.5rem !important",borderBottom:"1px solid rgba(226, 227, 232, 1) !important",color:"text-primary",background:nl[50]},"th .MuiButtonBase-root":{color:"text-primary",cursor:"pointer"},td:{borderLeft:"none"}}}},MuiTableBody:{styleOverrides:{root:{".MuiTableCell-root":{padding:"0.1rem 0.5rem !important"},".MuiTableRow-root:hover":{backgroundColor:nl[100]}}}},MuiTableFooter:{styleOverrides:{root:{".MuiTableCell-footer":{padding:"2px 4px !important"}}}}}},mO=e=>{const{label:t,helperText:n,inputRef:r,name:i,customTheme:a,required:s,error:l,placeholder:c,size:u,type:d,labelText:p,optionAll:f}=e,{dataList:g,loading:h,isFocused:m,autocompleteValue:y,textFieldValue:T,handleAutocompleteValue:R,handleTextFieldValue:E,handleReasonChangeTextField:x,setIsFocused:v,clearValues:M}=N8(e);let D=a||vc,$=f?[f,...g]:g;const B=b.useMemo(()=>{const C={...e};return delete C.handleValue,delete C.labelText,delete C.labelKey,delete C.helperText,delete C.error,delete C.ref,delete C.inputRef,delete C.name,delete C.labelSelection,delete C.size,delete C.optionAll,C},[e]);return O.jsx(C5,{theme:D,children:O.jsx(A3,{...B,filterOptions:C=>C,noOptionsText:"No se encontraron resultados.",options:$,onChange:(C,P)=>R(P),onInputChange:(C,P,A)=>{E(P),x(A)},getOptionLabel:e.getOptionLabel?e.getOptionLabel:C=>C?C[p]:"",renderOption:(C,P)=>b.createElement(N5,{component:"li",...C,key:`${P[e.labelKey]}-${P[e.labelText]}`,sx:{borderBottom:P[e.labelKey]==="-1"||P[e.labelKey]===-1?`${Ul.palette.divider} 1px solid`:"inherit"}},P[e.labelText]),value:y,inputValue:T,loading:h,loadingText:"Consultando...",size:u,onBlur:()=>{v(!1)},renderInput:C=>O.jsx(K1,{...C,label:t,value:T,error:l,helperText:n,placeholder:c,required:s,ref:r,name:i??"",size:u,onFocus:P=>{v(!0)},InputProps:{...C.InputProps,endAdornment:O.jsxs(O.Fragment,{children:[T&&d!=="list"?O.jsx(qr,{size:"small",onClick:M,children:O.jsx(Cw,{fontSize:"small"})}):null,h?O.jsx(z5,{color:"primary",size:20}):d==="list"?m?O.jsx(mw,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):O.jsx(fw,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"}):O.jsx(xw,{sx:{color:"rgba(16,24,64,0.6)"},fontSize:"small"})]})}})})})},Ql=e=>{const{primaryMessage:t,secondaryMessage:n,details:r,finishAction:i,severity:a="success",timeProgress:s=5,customContent:l}=e,[c,u]=b.useState(0),d=b.useRef(null),[p,f]=b.useState(!0),g=()=>{u(T=>T>=100?(m(),100):T+parseFloat(`1.${10/s}`))},h=()=>{d.current=setInterval(()=>{g()},s*10)},m=()=>{d.current&&(clearInterval(d.current),d.current=null),f(!1)},y=b.useCallback(T=>{T?d.current&&(clearInterval(d.current),d.current=null):h()},[]);return b.useEffect(()=>{u(0),f(!0),h()},[e]),b.useEffect(()=>{!p&&i&&i()},[p]),p&&O.jsxs(To,{children:[O.jsxs(E5,{"data-testid":"alert-toast-adpro",severity:a,onMouseOver:()=>y(!0),onMouseOut:()=>y(!1),sx:{boxShadow:"1px 5px 2px rgba(0,0,0,.2)",borderRadius:"4px 4px 0px 0px","& .MuiAlert-action":{marginBottom:"auto"},"& .MuiAlert-message ":{width:"100%"}},action:O.jsx(qr,{onClick:()=>f(!1),sx:{padding:0},children:O.jsx(gw,{fontSize:"small",sx:{cursor:"pointer"}})}),children:[O.jsx(S5,{children:t}),n||"",r&&r.length>0&&O.jsx(To,{maxHeight:"9rem",overflow:"auto",children:r.map((T,R)=>O.jsx(on,{variant:"caption",color:"text.secondary",children:T},R))}),O.jsx(To,{paddingTop:1,children:l&&l})]}),O.jsx(G5,{value:c,variant:"determinate",color:a,sx:{borderEndEndRadius:4,borderEndStartRadius:4}})]})},xc=b.memo(e=>{const{elements:t}=e,[n,r]=b.useState(!0);return b.useEffect(()=>{r(!0)},[t]),n&&O.jsx(To,{position:"fixed",top:25,right:25,zIndex:1500,maxWidth:"45%",minWidth:"25%",children:O.jsx(To,{gap:1,sx:{flexDirection:"column"},children:n&&!Array.isArray(t)?O.jsx(Ql,{...t}):Array.isArray(t)&&t.map((i,a)=>O.jsx(Ql,{...i},a))})})});function F7(e){const{options:t,value:n,onSelected:r,labelKey:i,labelText:a,todos:s}=e,l=s?{[i]:"-1",[a]:"Todos"}:null,c=s&&l?[l,...t]:t,u=c.filter(f=>f[i]!=="-1"),d=n.length===u.length;return b.useEffect(()=>{s&&n.length===0&&u.length>0&&r(u)},[]),{updatedOptions:c,handleChange:(f,g)=>{if(!s||!l){r(g);return}const h=g.some(m=>m[i]===l[i]);r(h?d?[]:u:g)},isAllSelected:d}}const H7=({text:e,variant:t="body3",align:n,placement:r,color:i})=>{const a=b.useRef(null),[s,l]=b.useState(!1);b.useEffect(()=>{const u=a.current;u&&l(u.offsetWidth<u.scrollWidth)},[e]);const c=O.jsx(on,{variant:t,noWrap:!0,ref:a,textAlign:n,color:i,children:e});return s?O.jsx(u8,{title:e,arrow:!0,placement:r,children:c}):c},hO=e=>{const{value:t,placeholder:n,labelKey:r,labelText:i,label:a,todos:s,showSelectedCount:l,customTheme:c}=e,{isAllSelected:u,updatedOptions:d,handleChange:p}=F7(e);let f=c||vc;return O.jsx(C5,{theme:f,children:O.jsx(A3,{multiple:!0,fullWidth:!0,limitTags:1,id:"checkboxes-multiselect",options:d,value:t,onChange:p,disableCloseOnSelect:!0,isOptionEqualToValue:(g,h)=>g[r]===h[r],getOptionLabel:g=>String(g[i]),renderTags:g=>l?u?s?"Todos":`${g.length} seleccionados`:`${g.length} seleccionados`:O.jsx(O.Fragment,{}),renderOption:(g,h,{selected:m})=>{const{key:y,...T}=g,R=h[r]==="-1",E=R?u:m;return O.jsxs(o8,{...T,sx:{borderBottom:s&&h[i]==="Todos"?"1px #0000001F solid":"",gap:1,padding:"7px 16px !important"},children:[O.jsx(_5,{checked:E}),O.jsx(J5,{children:O.jsx(H7,{text:R?"Todos":String(h[i]),variant:"body1",placement:"bottom"})})]},String(h[r]))},renderInput:g=>O.jsx(K1,{...g,label:a,placeholder:l?"":n,fullWidth:!0})})})},j7=[];let Eo=0;for(;Eo<64;)j7[Eo]=0|Math.sin(++Eo%Math.PI)*4294967296;function CO(e){const t=[];let n,r,i,a=unescape(encodeURI(e))+"€",s=a.length;const l=[n=1732584193,r=4023233417,~n,~r];for(e=--s/4+2|15,t[--e]=s*8;~s;)t[s>>2]|=a.charCodeAt(s)<<8*s--;for(Eo=a=0;Eo<e;Eo+=16){for(s=l;a<64;s=[i=s[3],n+((i=s[0]+[n&r|~n&i,i&n|~i&r,n^r^i,r^(n|~i)][s=a>>4]+j7[a]+~~t[Eo|[a,5*a+1,3*a+5,7*a][s]&15])<<(s=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*s+a++%4])|i>>>-s),n,r])n=s[1]|0,r=s[2];for(a=4;a;)l[--a]+=s[a]}for(e="";a<32;)e+=(l[a>>3]>>(1^a++)*4&15).toString(16);return e}const Ti="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_7=e=>{let t="",n,r,i,a,s,l,c,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)a=Ti.indexOf(e.charAt(u++)),s=Ti.indexOf(e.charAt(u++)),l=Ti.indexOf(e.charAt(u++)),c=Ti.indexOf(e.charAt(u++)),n=a<<2|s>>4,r=(s&15)<<4|l>>2,i=(l&3)<<6|c,t=t+String.fromCharCode(n),l!=64&&(t=t+String.fromCharCode(r)),c!=64&&(t=t+String.fromCharCode(i));return t},gO=["pro","premium"],yO=["perpetual","annual","subscription"],bO=typeof window<"u"&&window.location.hostname.endsWith(".csb.app");function F2(e){(bO?console.log:console.error)(["*************************************************************","",...e,"","*************************************************************"].join(`
738
738
  `))}function vO(){F2(["MUI X: Invalid license key.","","Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.","","To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument","Please check the license key installation https://mui.com/r/x-license-key-installation."])}function xO(){F2(["MUI X: License key plan mismatch.","","Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use Data Grid Premium with a license key for the Pro plan.","","To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.","Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."])}function wO(){F2(["MUI X: Component not included in your license.","","The component you are trying to use is not included in the Pro Plan you purchased.","","Your license is from an old version of the Pro Plan that is only compatible with the `@mui/x-data-grid-pro` and `@mui/x-date-pickers-pro` commercial packages.","","To start using another Pro package, please consider reaching to our sales team to upgrade your license or visit https://mui.com/r/x-get-license to get a new license key."])}function EO({plan:e,packageName:t}){F2(["MUI X: Missing license key.","",`The license key is missing. You might not be allowed to use \`${t}\` which is part of MUI X ${e}.`,"","To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.","If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately."])}function SO({packageName:e}){F2(["MUI X: Expired package version.","",`You have installed a version of \`${e}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`,"","To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key."])}function TO({plan:e,licenseKey:t,expiryTimestamp:n}){F2(["MUI X: Expired license key.","",`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(n)}`,`- Installed license key: ${t}`,""])}function RO({plan:e,licenseKey:t,expiryTimestamp:n}){throw new Error(["MUI X: Expired license key.","",`Your annual license key to use MUI X ${e} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${e} component (more details in https://mui.com/r/x-license-annual).`,"","To solve the problem you can either:","","- Renew your license https://mui.com/r/x-get-license and use the new key",`- Stop making changes to code depending directly or indirectly on MUI X ${e}'s APIs`,"","Note that your license is perpetual in production environments with any version released before your license term ends.","",`- License key expiry timestamp: ${new Date(n)}`,`- Installed license key: ${t}`,""].join(`
739
739
  `))}ll.__MUI_LICENSE_INFO__=ll.__MUI_LICENSE_INFO__||{key:void 0};class pa{static getLicenseInfo(){return ll.__MUI_LICENSE_INFO__}static getLicenseKey(){return pa.getLicenseInfo().key}static setLicenseKey(t){const n=pa.getLicenseInfo();n.key=t}}let St=function(e){return e.NotFound="NotFound",e.Invalid="Invalid",e.ExpiredAnnual="ExpiredAnnual",e.ExpiredAnnualGrace="ExpiredAnnualGrace",e.ExpiredVersion="ExpiredVersion",e.Valid="Valid",e.OutOfScope="OutOfScope",e.NotAvailableInInitialProPlan="NotAvailableInInitialProPlan",e}({});function MO(e,t){let n;return e.includes("-pro")?n=["pro","premium"]:e.includes("-premium")?n=["premium"]:n=[],n.includes(t)}const OO=/^.*EXPIRY=([0-9]+),.*$/,PO=["x-data-grid-pro","x-date-pickers-pro"],DO=e=>{let t;try{t=parseInt(e.match(OO)[1],10),(!t||Number.isNaN(t))&&(t=null)}catch{t=null}return{planScope:"pro",licenseModel:"perpetual",expiryTimestamp:t,planVersion:"initial"}},LO=e=>{const t={planScope:null,licenseModel:null,expiryTimestamp:null,planVersion:"initial"};return e.split(",").map(n=>n.split("=")).filter(n=>n.length===2).forEach(([n,r])=>{if(n==="S"&&(t.planScope=r),n==="LM"&&(t.licenseModel=r),n==="E"){const i=parseInt(r,10);i&&!Number.isNaN(i)&&(t.expiryTimestamp=i)}n==="PV"&&(t.planVersion=r)}),t},$O=e=>{const t=_7(e);return t.includes("KEYVERSION=1")?DO(t):t.includes("KV=2")?LO(t):null};function kO({releaseInfo:e,licenseKey:t,packageName:n}){if(!e)throw new Error("MUI X: The release information is missing. Not able to validate license.");if(!t)return{status:St.NotFound};const r=t.substr(0,32),i=t.substr(32);if(r!==CO(i))return{status:St.Invalid};const a=$O(i);if(a==null)return console.error("MUI X: Error checking license. Key version not found!"),{status:St.Invalid};if(a.licenseModel==null||!yO.includes(a.licenseModel))return console.error("MUI X: Error checking license. Licensing model not found or invalid!"),{status:St.Invalid};if(a.expiryTimestamp==null)return console.error("MUI X: Error checking license. Expiry timestamp not found or invalid!"),{status:St.Invalid};if(a.licenseModel==="perpetual"||process.env.NODE_ENV==="production"){const s=parseInt(_7(e),10);if(Number.isNaN(s))throw new Error("MUI X: The release information is invalid. Not able to validate license.");if(a.expiryTimestamp<s)return{status:St.ExpiredVersion}}else if((a.licenseModel==="subscription"||a.licenseModel==="annual")&&new Date().getTime()>a.expiryTimestamp)return new Date().getTime()<a.expiryTimestamp+1e3*3600*24*30||process.env.NODE_ENV!=="development"?{status:St.ExpiredAnnualGrace,meta:{expiryTimestamp:a.expiryTimestamp,licenseKey:t}}:{status:St.ExpiredAnnual,meta:{expiryTimestamp:a.expiryTimestamp,licenseKey:t}};return a.planScope==null||!gO.includes(a.planScope)?(console.error("MUI X: Error checking license. planScope not found or invalid!"),{status:St.Invalid}):MO(n,a.planScope)?a.planVersion==="initial"&&a.planScope==="pro"&&!PO.includes(n)?{status:St.NotAvailableInInitialProPlan}:{status:St.Valid}:{status:St.OutOfScope}}const z7=w.createContext({key:void 0});process.env.NODE_ENV!=="production"&&(z7.displayName="MuiLicenseInfoContext");const Ri={};function fs(e,t){const{key:n}=w.useContext(z7);return w.useMemo(()=>{const r=n??pa.getLicenseKey();if(Ri[e]&&Ri[e].key===r)return Ri[e].licenseVerifier;const i=e.includes("premium")?"Premium":"Pro",a=kO({releaseInfo:t,licenseKey:r,packageName:e}),s=`@mui/${e}`;if(a.status!==St.Valid){if(a.status===St.Invalid)vO();else if(a.status===St.NotAvailableInInitialProPlan)wO();else if(a.status===St.OutOfScope)xO();else if(a.status===St.NotFound)EO({plan:i,packageName:s});else if(a.status===St.ExpiredAnnualGrace)TO(K({plan:i},a.meta));else if(a.status===St.ExpiredAnnual)RO(K({plan:i},a.meta));else if(a.status===St.ExpiredVersion)SO({packageName:s});else if(process.env.NODE_ENV!=="production")throw new Error("missing status handler")}return Ri[e]={key:r,licenseVerifier:a},a},[e,t,n])}function IO(e){switch(e){case St.ExpiredAnnualGrace:case St.ExpiredAnnual:return"MUI X Expired license key";case St.ExpiredVersion:return"MUI X Expired package version";case St.Invalid:return"MUI X Invalid license key";case St.OutOfScope:return"MUI X License key plan mismatch";case St.NotAvailableInInitialProPlan:return"MUI X Product not covered by plan";case St.NotFound:return"MUI X Missing license key";default:throw new Error("Unhandled MUI X license status.")}}function VO(e){const{packageName:t,releaseInfo:n}=e,r=fs(t,n);return r.status===St.Valid?null:O.jsx("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24},children:IO(r.status)})}const AO=["localeText"],fa=w.createContext(null);process.env.NODE_ENV!=="production"&&(fa.displayName="MuiPickersAdapterContext");const Z7=function(t){const{localeText:n}=t,r=ze(t,AO),{utils:i,localeText:a}=w.useContext(fa)??{utils:void 0,localeText:void 0},s=$t({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:f}=s,g=w.useMemo(()=>K({},f,a,n),[f,a,n]),h=w.useMemo(()=>{if(!c)return i||null;const T=new c({locale:p,formats:u,instance:d});if(!T.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
740
740
  `));return T},[c,p,u,d,i]),m=w.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),y=w.useMemo(()=>({utils:h,defaultDates:m,localeText:g}),[m,h,g]);return O.jsx(fa.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(Z7.propTypes={adapterLocale:o.any,children:o.node,dateAdapter:o.func,dateFormats:o.shape({dayOfMonth:o.string,dayOfMonthFull:o.string,fullDate:o.string,fullTime:o.string,fullTime12h:o.string,fullTime24h:o.string,hours12h:o.string,hours24h:o.string,keyboardDate:o.string,keyboardDateTime:o.string,keyboardDateTime12h:o.string,keyboardDateTime24h:o.string,meridiem:o.string,minutes:o.string,month:o.string,monthShort:o.string,normalDate:o.string,normalDateWithWeekday:o.string,seconds:o.string,shortDate:o.string,weekday:o.string,weekdayShort:o.string,year:o.string}),dateLibInstance:o.any,localeText:o.object});const NO=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:K({},e)}}}}),U7={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},BO=U7;NO(U7);const Fo=()=>{const e=w.useContext(fa);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
@@ -42395,14 +42395,14 @@ function EO(e) {
42395
42395
  isAllSelected: d
42396
42396
  };
42397
42397
  }
42398
- const SO = ({ text: e, variant: t = "body3", align: n, placement: r }) => {
42399
- const i = p4(null), [a, s] = Rn(!1);
42398
+ const SO = ({ text: e, variant: t = "body3", align: n, placement: r, color: i }) => {
42399
+ const a = p4(null), [s, l] = Rn(!1);
42400
42400
  Qn(() => {
42401
- const c = i.current;
42402
- c && s(c.offsetWidth < c.scrollWidth);
42401
+ const u = a.current;
42402
+ u && l(u.offsetWidth < u.scrollWidth);
42403
42403
  }, [e]);
42404
- const l = /* @__PURE__ */ O.jsx(on, { variant: t, noWrap: !0, ref: i, textAlign: n, children: e });
42405
- return a ? /* @__PURE__ */ O.jsx(h8, { title: e, arrow: !0, placement: r, children: l }) : l;
42404
+ const c = /* @__PURE__ */ O.jsx(on, { variant: t, noWrap: !0, ref: a, textAlign: n, color: i, children: e });
42405
+ return s ? /* @__PURE__ */ O.jsx(h8, { title: e, arrow: !0, placement: r, children: c }) : c;
42406
42406
  }, jk = (e) => {
42407
42407
  const {
42408
42408
  value: t,
@@ -4,6 +4,7 @@ interface EllipsisWithTooltipProps {
4
4
  variant?: 'body1' | 'body2' | 'caption' | 'subtitle1' | 'subtitle2' | 'inherit' | 'body3' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
5
  align?: 'left' | 'center' | 'right' | 'justify' | 'inherit';
6
6
  placement?: "left" | "right" | "top" | "bottom" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start";
7
+ color?: string;
7
8
  }
8
9
  export declare const EllipsisWithTooltip: React.FC<EllipsisWithTooltipProps>;
9
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"EllipsisTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/EllipsisTooltip/view/EllipsisTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,wBAAwB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAC7E,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACpD,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;CACvK;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwBlE,CAAC"}
1
+ {"version":3,"file":"EllipsisTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/EllipsisTooltip/view/EllipsisTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,wBAAwB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACpI,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;IACpK,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwBlE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adpro-react",
3
- "version": "0.0.22-rc.11",
3
+ "version": "0.0.22-rc.12",
4
4
  "author": "Joel Mateo Robles Atuesta",
5
5
  "main": "dist/adpro-react.cjs.js",
6
6
  "module": "dist/adpro-react.es.js",