"use strict";(self.webpackChunkname=self.webpackChunkname||[]).push([[961],{70961:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(81672),a=r(79895),o=r(33206),l=r(91057),c=r(21023),i=r(22715);function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}function b(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var f=(0,o.ZL)()((function(e){return{compact:{fontSize:"x-small"},input:{fontSize:e.typography.body1.fontSize},noLabelInput:{padding:e.spacing(1)},transparent:{backgroundColor:"transparent"}}})),d=function(e){var t=e.label,r=e.position,n=e.children,a=!t&&{style:{marginTop:0}};return React.createElement(l.Z,s({},a,{position:r}),n)};const y=(0,n.forwardRef)((function(e,t){var r=e.StartAdornment,n=e.EndAdornment,o=e.label,l=e.error,y=e.ariaLabel,O=e.dataTestId,m=e.transparent,g=void 0!==m&&m,j=e.size,v=e.displayErrorInTooltip,P=void 0!==v&&v,h=e.className,w=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["StartAdornment","EndAdornment","label","error","ariaLabel","dataTestId","transparent","size","displayErrorInTooltip","className"]),E=f(),S=E.classes,k=E.cx,I=P&&!(0,a.kKJ)(l)?l:"";return React.createElement(c.Z,{placement:"top",title:I},React.createElement(i.Z,s({InputProps:b(u({},w.InputProps),{className:k(p({},S.transparent,g),h),disableUnderline:!0,endAdornment:n&&React.createElement(d,{label:o,position:"end"},React.createElement(n,null)),startAdornment:r&&React.createElement(d,{label:o,position:"start"},React.createElement(r,null))}),error:!(0,a.kKJ)(l),helperText:P?void 0:l,inputProps:b(u({},w.inputProps),{"aria-label":y,"data-testid":O}),label:o,ref:t,size:j||"small"},w)))}))}}]);