1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{97:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=r(14232).useLayoutEffect},6834:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(38175);let i=(0,r(45547).N)(n.w.color).reduce((e,[t,r])=>(e[t]=r,e),{})},12856:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/ad_mini_product_parts/[id]/edit",function(){return r(42627)}])},25099:(e,t,r)=>{"use strict";r.d(t,{T:()=>c});var n=r(18153),i=r(38993),o=r(87799),a=r(61344),d=r(64457),s=r(38175);let c=({value:e,label:t,placeholder:r,isAsterisk:i=!1,minRows:s=3,isError:c,errorText:u,onChange:h,onFocus:p,isDisabled:m,isReadOnly:g,dataTest:f})=>(0,n.FD)(a.OK,{gap:"p4",direction:"column",children:[!!t&&(0,n.FD)(d.v,{size:"s3",fontWeight:"bold",lineHeight:"snug",children:[t,i&&(0,n.Y)("sup",{css:l.asterisk,children:"*"})]}),(0,n.Y)(o.A,{minRows:s,placeholder:r,css:[l.textarea,c&&l.textareaError],onChange:e=>h?.(e.target.value),onFocus:p,value:e,disabled:m,readOnly:g,"data-testid":f}),c&&(0,n.Y)(d.v,{color:"status.negative.normal",size:"s2",children:u})]}),l={textarea:(0,i.AH)("background-color:",s.w.color.background.primary.normal,";border:solid ",s.w.borderWidth.s1," ",s.w.color.border.primary.normal,";border-radius:",s.w.borderRadius.s2,";font-size:",s.w.fontSize.s3,";padding:",s.w.spacing.p8,";width:100%;&:focus{border-color:",s.w.color.border.primary.veryProminent,";}&:disabled{background-color:",s.w.color.background.secondary.strong,";color:",s.w.color.text.secondary.normal,";cursor:not-allowed;}&[readonly]{background-color:",s.w.color.background.secondary.normal,";border-color:",s.w.color.background.secondary.normal,";cursor:not-allowed;&:focus{border-color:",s.w.color.background.secondary.normal,";}}&::placeholder{color:",s.w.color.text.secondary.normal,";}"),textareaError:(0,i.AH)("border-color:",s.w.color.status.negative.normal,";"),asterisk:(0,i.AH)("color:",s.w.color.status.negative.normal,";")}},27026:(e,t,r)=>{"use strict";r.d(t,{f:()=>c});var n=r(18153),i=r(38993),o=r(59232),a=r(60504),d=r(71550),s=r(38175);let c=({callback:e,isSubmitting:t})=>{let{t:r}=(0,o.Bd)(["admin/common","admin/components"]);return(0,n.Y)("div",{css:l.container,children:(0,n.Y)("div",{css:l.floatingActionButton,"data-testid":"snackbar-save-button",children:(0,n.Y)(a.$,{text:r(t?"admin/common:button.saving":"admin/common:button.save"),variant:"outlineFilled",shape:"rounded",fullWidth:!0,onClick:e})})})},l={container:(0,i.AH)("align-items:center;bottom:30px;display:flex;justify-content:center;position:sticky;width:100%;z-index:",d.Mu.floatingButton,";"),floatingActionButton:(0,i.AH)("border-radius:",s.w.borderRadius.full,";box-shadow:0px 4px 8px 3px rgba(0,0,0,0.15),0px 1px 3px 0px rgba(0,0,0,0.3);width:400px;")}},40625:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>h,pL:()=>u});var n=r(14232),i=Object.defineProperty,o=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?i(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},a=new Map,d=new WeakMap,s=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:o,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(d.has(r)||(s+=1,d.set(r,s.toString())),d.get(r)):e[t]}`}).toString(),r=a.get(t);if(!r){let n,i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=i.get(t.target))||r.forEach(e=>{e(o,t)})})},e);n=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:i},a.set(t,r)}return r}(r),h=u.get(e)||[];return u.has(e)||u.set(e,h),h.push(t),o.observe(e),function(){h.splice(h.indexOf(t),1),0===h.length&&(u.delete(e),o.unobserve(e)),0===u.size&&(o.disconnect(),a.delete(i))}}var u=class extends n.Component{constructor(e){super(e),o(this,"node",null),o(this,"_unobserveCb",null),o(this,"handleNode",e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),o(this,"handleChange",(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"==typeof this.props.children&&this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:i,fallbackInView:o}=this.props;this._unobserveCb=l(this.node,this.handleChange,{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:i},o)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:r}=this.state;return e({inView:t,entry:r,ref:this.handleNode})}let{as:t,triggerOnce:r,threshold:i,root:o,rootMargin:a,onChange:d,skip:s,trackVisibility:c,delay:l,initialInView:u,fallbackInView:h,...p}=this.props;return n.createElement(t||"div",{ref:this.handleNode,...p},e)}};function h({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:o,triggerOnce:a,skip:d,initialInView:s,fallbackInView:c,onChange:u}={}){var p;let[m,g]=n.useState(null),f=n.useRef(u),[v,b]=n.useState({inView:!!s,entry:void 0});f.current=u,n.useEffect(()=>{let n;if(!d&&m)return n=l(m,(e,t)=>{b({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)},{root:o,rootMargin:i,threshold:e,trackVisibility:r,delay:t},c),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,m,o,i,a,d,r,c,t]);let y=null==(p=v.entry)?void 0:p.target,w=n.useRef(void 0);m||!y||a||d||w.current===y||(w.current=y,b({inView:!!s,entry:void 0}));let k=[g,v.inView,v.entry];return k.ref=k[0],k.inView=k[1],k.entry=k[2],k}},42627:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>E,default:()=>_});var n=r(18153),i=r(89099),o=r(14232),a=r(54431),d=r(64177),s=r(59232),c=r(19705),l=r(9393),u=r(64675),h=r(30383),p=r(77846),m=r(53393),g=r(12494),f=r(59064),v=r(3133),b=r(61344),y=r(66556),w=r(52083),k=r(25099),x=r(65670),Y=r(78632),P=r(30469),C=r(3385);let S=(0,Y.UG)(` 2 query AdMiniProductPart($id: ID!) { 3 adMiniProductPart(id: $id) { 4 id 5 catchcopy 6 promoLabel 7 contents { 8 id 9 pressId 10 } 11 siteLinks { 12 id 13 name 14 url 15 microcopy 16 } 17 adProduct { 18 id 19 } 20 } 21 } 22`),A=(0,Y.UG)(`
23 mutation UpdateAdMiniProductPart($input: AdMiniProductPartInput!) { 24 updateAdMiniProductPart(input: { adMiniProductPartInput: $input }) { 25 errors { 26 message 27 } 28 } 29 } 30`),z=()=>{let e=(0,i.useRouter)(),{t}=(0,s.Bd)(["admin/common","admin/pages"]),[r,Y]=(0,o.useState)(null),[P,C]=(0,o.useState)([]),[z,E]=(0,o.useState)(""),_=(0,o.useMemo)(()=>e.query.id,[e]),{error:H,data:R,refetch:F}=(0,a.IT)(S,{variables:{id:_}}),[M]=(0,d.n)(A);if((0,o.useEffect)(()=>{R&&(Y(R.adMiniProductPart),E(R.adMiniProductPart?.contents?.map(e=>e.pressId).join("\n")||""))},[R]),H)return(0,n.Y)("p",{children:"Error!!"});if(!r)return(0,n.Y)("p",{children:"Loadingâ¦"});let O=e=>{Y({...r,...e})},I=async()=>{let e=await M({variables:{input:{...(0,x.s)(r,["adProduct","contents"]),adProductId:r.adProduct?.id??"",pressIds:z.split("\n").filter(Boolean)}}});C(e?.data?.updateAdMiniProductPart?.errors||[]),F()};return(0,n.Y)(p.H,{title:t("admin/pages:adMiniProductPart.[id].edit.title"),children:(0,n.FD)(g.d,{children:[(0,n.Y)(l.Q,{adProductId:r.adProduct?.id??""}),(0,n.FD)(h.M,{children:[(0,n.Y)(y.D,{as:"h1",size:"md",children:t("admin/common:creativeBasicInfo")}),(0,n.Y)(v.J,{marginTop:"p24",children:(0,n.Y)(u.y,{cachedData:R?.adMiniProductPart,data:r,onSubmit:I,previewURL:"",errors:P,children:(0,n.Y)(f.a,{children:(0,n.FD)(b.OK,{direction:"column",gap:"p24",children:[(0,n.Y)(c.V,{title:t("admin/pages:adMiniProductPart.[id].edit.publishedPressIds"),children:(0,n.Y)(k.T,{minRows:10,value:z,onChange:e=>{E(e)},placeholder:t("admin/pages:adMiniProductPart.[id].edit.targetPressIdsPlaceholder")})}),(0,n.Y)(c.V,{title:t("admin/common:label"),children:(0,n.Y)(w.k,{value:r.promoLabel??"",onChange:e=>O({promoLabel:e}),placeholder:t("admin/pages:adMiniProductPart.[id].edit.promoLabelPlaceholder")})}),(0,n.Y)(c.V,{title:t("admin/common:catchCopy"),children:(0,n.Y)(w.k,{value:r.catchcopy??"",onChange:e=>O({catchcopy:e}),placeholder:t("admin/common:catchCopy")})}),(0,n.Y)(c.V,{title:t("admin/common:remittingCustomerButton"),children:(0,n.Y)(m.c,{records:r.siteLinks,keyName:"name",keyPlaceholder:t("admin/common:label"),valueName:"url",valuePlaceholder:t("admin/common:url"),secondValueName:"microcopy",secondValuePlaceholder:t("admin/pages:adCreatives.[id].edit.microcopy"),onUpdate:e=>{O({siteLinks:e})}})})]})})})})]})]})})};var E=!0;let _=()=>(0,n.Y)(P.oM,{children:(0,n.Y)(C.v,{children:(0,n.Y)(z,{})})})},53393:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(18153),i=r(59232),o=r(10022),a=r(3133),d=r(61344),s=r(64457),c=r(60504),l=r(52083);let u=({records:e,keyName:t,keyPlaceholder:r,valueName:u,valuePlaceholder:h,secondValueName:p,secondValuePlaceholder:m,indexShown:g,onUpdate:f})=>{let{t:v}=(0,i.Bd)("admin/common"),b=(t,r)=>{f(e.map((e,n)=>t===n?{...e,...r}:e))};return(0,n.FD)("div",{children:[(0,n.Y)(d.OK,{as:"ul",gap:"p12",direction:"column",children:e.filter(e=>!e._destroy).map((e,i)=>(0,n.Y)("li",{"data-testid":"key-value-list",children:(0,n.FD)(d.OK,{gap:"p8",alignItems:"start",children:[g&&(0,n.Y)(d.r$,{children:(0,n.Y)(a.J,{height:"p40",children:(0,n.Y)(d.OK,{alignItems:"center",children:(0,n.Y)(s.v,{lineHeight:"snug",size:"s4",children:i+1})})})}),(0,n.Y)(d.p3,{children:(0,n.Y)(l.k,{value:e[t],onChange:e=>b(i,{[t]:e}),placeholder:r})}),(0,n.Y)(d.p3,{children:(0,n.FD)(d.OK,{direction:"column",gap:"p8",children:[(0,n.Y)(l.k,{value:e[u],onChange:e=>b(i,{[u]:e}),placeholder:h}),p&&(0,n.Y)(l.k,{value:e[p],onChange:e=>b(i,{[p]:e}),placeholder:m})]})}),(0,n.Y)(d.r$,{children:(0,n.Y)(c.$,{variant:"filled",color:"secondary",onClick:()=>b(i,{_destroy:!0}),text:v("admin/common:delete"),size:"md",testId:"delete-key-value"})})]})},i))}),(0,n.Y)(a.J,{marginTop:"p24",children:(0,n.Y)(o.a,{size:"small",text:v("admin/common:add"),callback:()=>{f([...e,{[t]:"",[u]:"",...p?{[p]:""}:{}}])},dataTest:"add-key-value"})})]})}},53995:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(18153),i=r(38993),o=r(6834);let a=({href:e,targetBlank:t,keepReferrer:r=!1,nofollow:i,sponsored:o,onClick:a,externalDsa:s,className:c,testId:l,color:u,noUnderline:h,alwaysUnderline:p,children:m})=>
30{let g=[!r&&"noreferrer",i&&"nofollow",o&&"sponsored"].filter(Boolean).join(" ")||void 0;return t?(0,n.Y)("a",{href:e,target:"_blank",rel:`noopener${g?` ${g}`:""}`,onClick:a&&a,className:[s?"external-dsa":"",c??""].join(" "),css:[u?d.color(u):d.noColor,h&&d.noUnderline,p&&d.alwaysUnderline],"data-testid":l,children:m}):(0,n.Y)("a",{href:e,onClick:a&&a,"data-testid":l,rel:i?"nofollow":void 0,css:[u?d.color(u):d.noColor,h&&d.noUnderline,p&&d.alwaysUnderline],children:m})},d={color:e=>(0,i.AH)("&:hover{color:",o.X[e],";}"),noColor:(0,i.AH)("color:inherit;"),noUnderline:(0,i.AH)("&:hover{text-decoration:none;}"),alwaysUnderline:(0,i.AH)("text-decoration:underline;text-decoration-style:solid;text-decoration-thickness:2px;text-underline-offset:3px;text-underline-position:auto;&:hover{text-decoration:underline;text-decoration-thickness:2px;}")}},64675:(e,t,r)=>{"use strict";r.d(t,{y:()=>h});var n=r(18153),i=r(14232),o=r(38993),a=r(61344),d=r(3385),s=r(38175),c=r(27026),l=r(67378);let u=e=>{e.preventDefault(),e.returnValue=""},h=({cachedData:e,data:t,onSubmit:r,previewURL:o,errors:s,checkDirty:h=!0,children:m})=>{let[g,f]=(0,i.useState)(""),[v,b]=(0,i.useState)(!1),y=(0,i.useContext)(d.R);(0,i.useEffect)(()=>{o&&f(o)},[o]),(0,i.useEffect)(()=>{h&&(JSON.stringify(e)!==JSON.stringify(t)?window.addEventListener("beforeunload",u):window.removeEventListener("beforeunload",u))},[e,t,h]),(0,i.useEffect)(()=>{f(e=>`${e}&version=${Date.now()}`)},[e]);let w=(0,i.useCallback)(async()=>{b(!0),window.dataLayer.push({event:"form_submit",admin_user_id:y.id,page_path:window.location.pathname,timestamp:new Date().toISOString()}),await r(),b(!1)},[r,y]);return(0,i.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"s"===e.key&&(e.preventDefault(),w())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[w]),(0,n.FD)(a.OK,{gap:"p24",children:[(0,n.FD)(a.p3,{children:[(0,n.Y)(l.R,{errors:s,isSubmitting:v}),m,(0,n.Y)(c.f,{callback:w,isSubmitting:v})]}),!!o&&(0,n.Y)("aside",{css:p.previewAside,children:(0,n.Y)("iframe",{src:g,css:p.preview})})]})},p={previewAside:(0,o.AH)("background-color:",s.w.color.background.primary.normal,";flex:0 0 375px;height:calc(100vh - 180px);overflow:hidden;position:sticky;top:64px;width:375px;"),preview:(0,o.AH)("border:0;height:inherit;width:inherit;")}},65670:(e,t,r)=>{"use strict";r.d(t,{K:()=>i,s:()=>n});let n=(e,t=[])=>{let r=JSON.parse(JSON.stringify(e));delete r.__typename,delete r._id;let i=[],o={};return t.forEach(e=>{switch(typeof e){case"string":i.push(e);break;case"object":Object.assign(o,e)}}
30),i.forEach(e=>{delete r[e]}),Object.keys(r).forEach(e=>{let t=r[e];t&&"object"==typeof t&&(Array.isArray(t)?r[e]=t.map(t=>n(t,o[e]||[])):r[e]=n(t,o[e]||[]))}),r},i=e=>{let t=parseInt(e);return isNaN(t)?null:t}},67378:(e,t,r)=>{"use strict";r.d(t,{R:()=>u});var n=r(18153),i=r(14232),o=r(38993),a=r(59232),d=r(3133),s=r(44690),c=r(71550),l=r(38175);let u=({errors:e,isSubmitting:t})=>{let{t:r}=(0,a.Bd)("admin/common"),[o,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1),h=(0,i.useMemo)(()=>0===e.length,[e]);return((0,i.useEffect)(()=>{c(!t)},[t]),(0,i.useEffect)(()=>{c(!1)},[]),(0,i.useEffect)(()=>{o&&h?(u(!0),window.setTimeout(()=>{c(!1)},2e3)):u(!1)},[o,h]),o)?(0,n.Y)("div",{css:[p.container,l&&p.containerFade],children:h?(0,n.Y)(s.B,{type:"success",dataTest:"status-alert-success",message:r("admin/common:successSave"),isCloseIconVisible:!1}):(0,n.Y)("ul",{children:e.map((e,t)=>(0,n.Y)("li",{children:(0,n.Y)(d.J,{marginTop:"p4",children:(0,n.Y)(s.B,{type:"error",dataTest:"status-alert-error",message:e.message})})},t))})}):null},h=(0,o.i7)("0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}"),p={container:(0,o.AH)("margin-top:",l.w.spacing.p32,";padding:0 ",l.w.spacing.p48,";position:sticky;top:80px;z-index:",c.Mu.stickyHeader,";"),containerFade:(0,o.AH)("animation:",h," 2s ease forwards;")}},77846:(e,t,r)=>{"use strict";r.d(t,{H:()=>g});var n=r(18153),i=r(38993),o=r(59232),a=r(4431),d=r(3133),s=r(53995),c=r(61344),l=r(64457),u=r(60504),h=r(37805),p=r(71550),m=r(38175);let g=({title:e,previewUrl:t,withPublishButton:r=!1,onClickPublishButton:i,children:p})=>{let[m]=(0,h.i)(),{t:g}=(0,o.Bd)(["admin/common","admin/components"]);return(0,n.FD)(c.OK,{children:[(0,n.Y)(a.X,{isCloseNavPage:!0}),(0,n.FD)("div",{css:f.mainContainer,children:[(0,n.Y)("header",{css:f.header,children:(0,n.Y)(d.J,{paddingHorizontal:"p20",height:"p64",children:(0,n.FD)(c.OK,{justifyContent:"spaceBetween",alignItems:"center",children:[(0,n.Y)(l.v,{size:"s4",fontWeight:"bold",color:"text.white.normal",children:e}),(0,n.FD)(c.OK,{gap:"p16",children:[t&&(0,n.Y)(s.s,{href:t,targetBlank:!0,children:(0,n.Y)(u.$,{variant:"outlineFilled",color:"secondary",size:"sm",text:g("admin/components:domains.EditPageFrame.pcPreviewScreen")})}),m(["operator_and_above"])&&r&&i&&(0,n.Y)(u.$,{size:"sm",text:g("admin/common:button.publish"),onClick:i})]})]})})}),p]})]})},f={mainContainer:(0,i.AH)("flex:1;"),header:(0,i.AH)("background-color:",m.w.color.background.primaryReverse.strong,";position:sticky;top:0;z-index:",p.Mu.stickyHeader,";")}},87799:(e,t,r)=>{"use strict";r.d(t,{A:()=>Y});var n=r(44501),i=r(40670),o=r(14232),a=r(97),d=function(e){var t=o.useRef(e);return(0,a.A)(function(){t.current=e}),t},s=function(e,t){"function"==typeof e?e(t):e.current=t},c=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&s(r.current,null),r.current=t,t&&s(t,n)},[t])},l={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},u=function(e){Object.keys(l).forEach(function(t){e.style.setProperty(t,l[t],"important")})},h=null,p=function(e,t){var r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize},m=function(){},g=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],f=!!document.documentElement.currentStyle,v=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var r=g.reduce(function(e,r){return e[r]=t[r],e},{}),n=r.boxSizing;if(""===n)return null;f&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:o}};function b(e,t,r){var n=d(r);o.useLayoutEffect(function(){var r=function(e){return n.current(e)};if(e)return e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}},[])}var y=function(e,t){b(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},w=function(e){b(window,"resize",e)},k=function(e){b(document.fonts,"loadingdone",e)},x=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Y=o.forwardRef(function(e,t){var r=e.cac
30heMeasurements,a=e.maxRows,d=e.minRows,s=e.onChange,l=void 0===s?m:s,g=e.onHeightChange,f=void 0===g?m:g,b=(0,i.A)(e,x),Y=void 0!==b.value,P=o.useRef(null),C=c(P,t),S=o.useRef(0),A=o.useRef(),z=function(){var e=P.current,t=r&&A.current?A.current:v(e);if(t){A.current=t;var n,i,o,s,c,l,m,g,b,y,w,k=(n=e.value||e.placeholder||"x",void 0===(i=d)&&(i=1),void 0===(o=a)&&(o=1/0),h||((h=document.createElement("textarea")).setAttribute("tabindex","-1"),h.setAttribute("aria-hidden","true"),u(h)),null===h.parentNode&&document.body.appendChild(h),s=t.paddingSize,c=t.borderSize,m=(l=t.sizingStyle).boxSizing,Object.keys(l).forEach(function(e){h.style[e]=l[e]}),u(h),h.value=n,g=p(h,t),h.value=n,g=p(h,t),h.value="x",y=(b=h.scrollHeight-s)*i,"border-box"===m&&(y=y+s+c),g=Math.max(y,g),w=b*o,"border-box"===m&&(w=w+s+c),[g=Math.min(w,g),b]),x=k[0],Y=k[1];S.current!==x&&(S.current=x,e.style.setProperty("height",x+"px","important"),f(x,{rowHeight:Y}))}};return o.useLayoutEffect(z),y(P,function(){if(!Y){var e=P.current.value;requestAnimationFrame(function(){var t=P.current;t&&e!==t.value&&z()})}}),w(z),k(z),o.createElement("textarea",(0,n.A)({},b,{onChange:function(e){Y||z(),l(e)},ref:C}))})},92535:(e,t,r)=>{"use strict";r.d(t,{z:()=>s,W:()=>c});var n=r(18153),i=r(38993),o=r(61344),a=r(64457),d=r(38175);let s=({children:e,gapInItems:t="p4"})=>(0,n.Y)("nav",{css:l.container,children:(0,n.Y)("div",{css:l.inner,children:(0,n.Y)(o.OK,{direction:"column",gap:t,children:e})})}),c=({href:e,label:t,isCurrent:r,dataTest:i})=>(0,n.Y)("a",{href:e,css:[l.item,r&&l.isCurrent],"data-testid":i,children:(0,n.Y)(a.v,{size:"s3",lineHeight:"snug",fontWeight:r?"bold":"normal",children:t})}),l={container:(0,i.AH)("background-color:",d.w.color.background.primary.normal,";flex-shrink:0;min-height:calc(100vh - 50px);width:",d.w.size.p160,";"),inner:(0,i.AH)("padding:",d.w.spacing.p12,";position:sticky;top:",d.w.size.p64,";"),item:(0,i.AH)("border-radius:",d.w.size.p4,";display:block;padding:",d.w.spacing.p8,";&:hover{text-decoration:none;}"),isCurrent:(0,i.AH)("background-color:",d.w.color.background.secondary.strong,";")}}},e=>{e.O(0,[68252,54431,54421,67424,13789,4431,75316,81594,90636,46593,38792],()=>e(e.s=12856)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.