(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[991],{520991(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>h});var e=__webpack_require__(515863);__webpack_require__.n(e);var t=__webpack_require__(67659);var a=__webpack_require__(503223);var r=__webpack_require__(330791);var n=__webpack_require__(876919);var i=__webpack_require__(954817);var l=__webpack_require__(330189);var s=__webpack_require__(147928);var c=__webpack_require__(308571);var o=__webpack_require__(532194);var d=__webpack_require__(636370);var u=__webpack_require__(992996);let h=h=>{let m=(0,e.c)(30);let{title:b,isPopupOrSidepanel:p,isOnSettingsRoot:f,onClose:g,isSearchOpen:v,onOpenSearch:C,onCloseSearch:k,searchValue:S,searchPlaceholder:w,onSearchChange:E,onSearchClear:M,showSearchBorder:R}=h;let L=S===undefined?"":S;let P=(0,c.P)();let T=(0,s.Zp)();let $=!(p===undefined?!1:p)||(f===undefined?!1:f);if(v===undefined?!1:v){let e=(R===undefined?!0:R)?"border-b border-border-muted":"";let a;m[0]!==k||m[1]!==M?(a=()=>{k?.(),M?.()},m[0]=k,m[1]=M,m[2]=a):a=m[2];let r;m[3]!==w||m[4]!==P?(r=w??P("search"),m[3]=w,m[4]=P,m[5]=r):r=m[5];let n;m[6]===Symbol.for("react.memo_cache_sentinel")?(n={"data-testid":"settings-header-search-input"},m[6]=n):n=m[6];let i;m[7]!==E||m[8]!==M||m[9]!==L||m[10]!==r?(i={value:L,placeholder:r,onChangeText:E,onClickClearButton:M,autoFocus:!0,inputProps:n},m[7]=E,m[8]=M,m[9]=L,m[10]=r,m[11]=i):i=m[11];let l;return m[12]!==i||m[13]!==e||m[14]!==a?(l=t.createElement(d.mu,{variant:d.XP.Inline,className:e,padding:3,paddingHorizontal:4,onClickCancelButton:a,textFieldSearchProps:i}),m[12]=i,m[13]=e,m[14]=a,m[15]=l):l=m[15],l}let x;m[16]!==T||m[17]!==C||m[18]!==$||m[19]!==P?(x=t.createElement(i.a,{flexDirection:a.uV.Row,alignItems:a.RE.Center,gap:1},$?t.createElement(l.a,{iconName:r.$M.Search,ariaLabel:P("search"),size:n.f.Md,onClick:C,"data-testid":"settings-header-search-button"}):t.createElement(l.a,{iconName:r.$M.Close,ariaLabel:P("close"),size:n.f.Md,onClick:()=>T(u.Sg),"data-testid":"settings-header-close-button"})),m[16]=T,m[17]=C,m[18]=$,m[19]=P,m[20]=x):x=m[20];let z=x;let N;m[21]!==P?(N=P("back"),m[21]=P,m[22]=N):N=m[22];let _;m[23]!==g||m[24]!==N?(_=t.createElement(i.a,{flexDirection:a.uV.Row,alignItems:a.RE.Center,gap:1},t.createElement(l.a,{iconName:r.$M.ArrowLeft,ariaLabel:N,size:n.f.Sm,onClick:g,"data-testid":"settings-header-back-button"})),m[23]=g,m[24]=N,m[25]=_):_=m[25];let y=_;let A;return m[26]!==z||m[27]!==y||m[28]!==b?(A=t.createElement(o.Y9,{startAccessory:y,endAccessory:z},b),m[26]=z,m[27]=y,m[28]=b,m[29]=A):A=m[29],A}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);