(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8364],{748364(__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__(303280);__webpack_require__.n(e);var t=__webpack_require__(860012);var a=__webpack_require__(556734);var r=__webpack_require__(305142);var n=__webpack_require__(706794);var l=__webpack_require__(126528);var i=__webpack_require__(805600);var o=__webpack_require__(107495);var s=__webpack_require__(917214);var c=__webpack_require__(697141);var d=__webpack_require__(779865);var u=__webpack_require__(423533);let h=h=>{let b=(0,e.c)(30);let{title:m,isPopupOrSidepanel:f,isOnSettingsRoot:p,onClose:g,isSearchOpen:v,onOpenSearch:C,onCloseSearch:k,searchValue:w,searchPlaceholder:S,onSearchChange:E,onSearchClear:M,showSearchBorder:R}=h;let L=w===undefined?"":w;let N=(0,s.P)();let P=(0,o.Zp)();let T=!(f===undefined?!1:f)||(p===undefined?!1:p);if(v===undefined?!1:v){let e=(R===undefined?!0:R)?"border-b border-border-muted":"";let a;b[0]!==k||b[1]!==M?(a=()=>{k?.(),M?.()},b[0]=k,b[1]=M,b[2]=a):a=b[2];let r;b[3]!==S||b[4]!==N?(r=S??N("search"),b[3]=S,b[4]=N,b[5]=r):r=b[5];let n;b[6]===Symbol.for("react.memo_cache_sentinel")?(n={"data-testid":"settings-header-search-input"},b[6]=n):n=b[6];let l;b[7]!==E||b[8]!==M||b[9]!==L||b[10]!==r?(l={value:L,placeholder:r,className:"rounded-full border border-border-muted",onChangeText:E,onClickClearButton:M,showClearButton:!1,autoFocus:!0,inputProps:n},b[7]=E,b[8]=M,b[9]=L,b[10]=r,b[11]=l):l=b[11];let i;return b[12]!==l||b[13]!==e||b[14]!==a?(i=t.createElement(d.mu,{variant:d.XP.Inline,className:e,padding:3,paddingHorizontal:4,onClickCancelButton:a,textFieldSearchProps:l}),b[12]=l,b[13]=e,b[14]=a,b[15]=i):i=b[15],i}let $;b[16]!==P||b[17]!==C||b[18]!==T||b[19]!==N?($=t.createElement(l.a,{flexDirection:a.uV.Row,alignItems:a.RE.Center,gap:1},T?t.createElement(i.a,{iconName:r.$M.Search,ariaLabel:N("search"),size:n.f.Md,onClick:C,"data-testid":"settings-header-search-button"}):t.createElement(i.a,{iconName:r.$M.Close,ariaLabel:N("close"),size:n.f.Md,onClick:()=>P(u.Sg),"data-testid":"settings-header-close-button"})),b[16]=P,b[17]=C,b[18]=T,b[19]=N,b[20]=$):$=b[20];let x=$;let z;b[21]!==N?(z=N("back"),b[21]=N,b[22]=z):z=b[22];let B;b[23]!==g||b[24]!==z?(B=t.createElement(l.a,{flexDirection:a.uV.Row,alignItems:a.RE.Center,gap:1},t.createElement(i.a,{iconName:r.$M.ArrowLeft,ariaLabel:z,size:n.f.Md,onClick:g,"data-testid":"settings-header-back-button"})),b[23]=g,b[24]=z,b[25]=B):B=b[25];let _=B;let y;return b[26]!==x||b[27]!==_||b[28]!==m?(y=t.createElement(c.Y9,{startAccessory:_,endAccessory:x},m),b[26]=x,b[27]=_,b[28]=m,b[29]=y):y=b[29],y}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);