PageSourceSearch

https://www.victoriassecret.co.uk/static-content/header/js/903.58a7bde4.chunk.js

js victoriassecret.co.uk collected 2026-09-29 05:17:56 UTC 10,442 bytes, 1 lines download raw bytes

1"use strict";(self.loadable_header=self.loadable_header||[]).push([[903],{55026(e,t,n){var o=n(41594);const r=o.createContext();n.d(t,["A",0,r])},31576(e,t,n){function o(e){let{props:t,states:n,muiFormControl:o}=e;return n.reduce((e,n)=>(e[n]=t[n],o&&"undefined"===typeof t[n]&&(e[n]=o[n]),e),{})}n.d(t,{A:()=>o})},8670(e,t,n){n.d(t,{A:()=>l});var o=n(41594),r=n(55026);function l(){return o.useContext(r.A)}},37903(e,t,n){n.d(t,{f3:()=>H,Sh:()=>j,Ay:()=>P,Oj:()=>N,WC:()=>B});var o=n(61927),r=n(77940),l=n(90383),a=n(41594),i=n(6935),s=n(62077),u=n(75206),d=n(77229),c=n(94583),p=n(3187),m=n(78595),f=n(38834);const h=["onChange","maxRows","minRows","style","value"];function b(e,t){return parseInt(e[t],10)||0}const A={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function y(e){return void 0===e||null===e||0===Object.keys(e).length}const v=a.forwardRef(function(e,t){const{onChange:n,maxRows:l,minRows:i=1,style:s,value:v}=e,g=(0,o.A)(e,h),{current:w}=a.useRef(null!=v),S=a.useRef(null),x=(0,d.A)(t,S
1),C=a.useRef(null),R=a.useRef(0),[z,k]=a.useState({}),F=a.useCallback(()=>{const t=S.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{};const o=C.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const r=n["box-sizing"],a=b(n,"padding-bottom")+b(n,"padding-top"),s=b(n,"border-bottom-width")+b(n,"border-top-width"),u=o.scrollHeight;o.value="x";const d=o.scrollHeight;let p=u;i&&(p=Math.max(Number(i)*d,p)),l&&(p=Math.min(Number(l)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===r?a+s:0),overflow:Math.abs(p-u)<=1}},[l,i,e.placeholder]),E=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return R.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(R.current+=1,{overflow:o,outerHeightStyle:n}):e},L=a.useCallback(()=>{const e=F();y(e)||k(t=>E(t,e))},[F]);a.useEffect(()=>{const e=(0,p.A)(()=>{R.current=0,S.current&&(()=>{const e=F();y(e)||(0,u.flushSync)(()=>{k(t=>E(t,e))})})()}),t=(0,c.A)(S.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(S.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),(0,m.A)(()=>{L()}),a.useEffect(()=>{R.current=0},[v]);return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)("textarea",(0,r.A)({value:v,onChange:e=>{R.current=0,w||L(),n&&n(e)},ref:x,rows:i,style:(0,r.A)({height:z.outerHeightStyle,overflow:z.overflow?"hidden":null},s)},g)),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:(0,r.A)({},A,s,{padding:0})})]})});var g=n(11081),w=n(31576),S=n(55026),x=n(8670),C=n(13358),R=n(1459),z=n(60020),k=n(71418),F=n(77452),E=n(78026),L=n(589),M=n(77693);const W=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],B=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,z.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},N=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},j=(0,C.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:B})(e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(M.A.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,r.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})}),H=(0,C.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:N})(e=>{let{theme:t,ownerState:n}=e;const o="light"===t.palette.mode,l=(0,r.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,r.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(M.A.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(M.A.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})}),I=(0,f.jsx)(E.A,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),O=a.forwardRef(function(e,t){var n;const u=(0,R.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":d,autoComplete:c,autoFocus:p,className:m,components:h={},componentsProps:b={},defaultValue:A,disabled:y,disableInjectingGlobalStyles:C,endAdornment:E,fullWidth:B=!1,id:N,inputComponent:O="input",inputProps:P={},inputRef:T,maxRows:K,minRows:_,multiline:q=!1,name:D,onBlur:V,onChange:U,onClick:G,onFocus:Z,onKeyDown:J,onKeyUp:Q,placeholder:X,readOnly:Y,renderSuffix:$,rows:ee,slotProps:te={},slots:ne={},startAdornment:oe,type:re="text",value:le}=u,ae=(0,o.A)(u,W),ie=null!=P.value?P.value:le,{current:se}=a.useRef(null!=ie),ue=a.useRef(),de=a.useCallback(e=>{0},[]),ce=(0,k.A)(ue,T,P.ref,de),[pe,me]=a.useState(!1),fe=(0,x.A)();const he=(0,w.A)({props:u,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=fe?fe.focused:pe,a.useEffect(()=>{!fe&&y&&pe&&(me(!1),V&&V())},[fe,y,pe,V]);const be=fe&&fe.onFilled,Ae=fe&&fe.onEmpty,ye=a.useCallback(e=>{(0,L.lq)(e)?be&&be():Ae&&Ae()},[be,Ae]);(0,F.A)(()=>{se&&ye({value:ie})},[ie,ye,se]);a.useEffect(()=>{ye(ue.current)},[]);let ve=O,ge=P;q&&"input"===ve&&(ge=ee?(0,r.A)({type:void 0,minRows:ee,maxRows:ee},ge):(0,r.A)({type:void 0,maxRows:K,minRows:_},ge),ve=v);a.useEffect(()=>{fe&&fe.setAdornedStart(Boolean(oe))},[fe,oe]);const we=(0,r.A)({},u,{color:he.color||"primary",disabled:he.disabled,endAdornment:E,error:he.error,focused:he.focused,formControl:fe,fullWidth:B,hiddenLabel:he.hiddenLabel,multiline:q,size:he.size,startAdornment:oe,type:re}),Se=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:l,focused:a,formControl:i,fullWidth:u,hiddenLabel:d,multiline:c,readOnly:p,size:m,startAdornment:f,type:h}=e,b={root:["root","color".concat((0,z.A)(n)),o&&"disabled",r&&"error",u&&"fullWidth",a&&"focu
1sed",i&&"formControl","small"===m&&"sizeSmall",c&&"multiline",f&&"adornedStart",l&&"adornedEnd",d&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===m&&"inputSizeSmall",d&&"inputHiddenLabel",f&&"inputAdornedStart",l&&"inputAdornedEnd",p&&"readOnly"]};return(0,s.A)(b,M.g,t)})(we),xe=ne.root||h.Root||j,Ce=te.root||b.root||{},Re=ne.input||h.Input||H;return ge=(0,r.A)({},ge,null!=(n=te.input)?n:b.input),(0,f.jsxs)(a.Fragment,{children:[!C&&I,(0,f.jsxs)(xe,(0,r.A)({},Ce,!(0,g.A)(xe)&&{ownerState:(0,r.A)({},we,Ce.ownerState)},{ref:t,onClick:e=>{ue.current&&e.currentTarget===e.target&&ue.current.focus(),G&&G(e)}},ae,{className:(0,i.A)(Se.root,Ce.className,m),children:[oe,(0,f.jsx)(S.A.Provider,{value:null,children:(0,f.jsx)(Re,(0,r.A)({ownerState:we,"aria-invalid":he.error,"aria-describedby":d,autoComplete:c,autoFocus:p,defaultValue:A,disabled:he.disabled,id:N,onAnimationStart:e=>{ye("mui-auto-fill-cancel"===e.animationName?ue.current:{value:"x"})},name:D,placeholder:X,readOnly:Y,required:he.required,rows:ee,value:ie,onKeyDown:J,onKeyUp:Q,type:re},ge,!(0,g.A)(Re)&&{as:ve,ownerState:(0,r.A)({},we,ge.ownerState)},{ref:ce,className:(0,i.A)(Se.input,ge.className),onBlur:e=>{V&&V(e),P.onBlur&&P.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):me(!1)},onChange:function(e){if(!se){const t=e.target||ue.current;if(null==t)throw new Error((0,l.A)(1));ye({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];P.onChange&&P.onChange(e,...n),U&&U(e,...n)},onFocus:e=>{he.disabled?e.stopPropagation():(Z&&Z(e),P.onFocus&&P.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):me(!0))}}))}),E,$?$((0,r.A)({},he,{startAdornment:oe})):null]}))]})}),P=O},77693(e,t,n){n.d(t,{g:()=>l});var o=n(9295),r=n(96307);function l(e){return(0,r.Ay)("MuiInputBase",e)}const a=(0,o.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);n.d(t,["A",0,a])},589(e,t,n){function o(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(o(e.value)&&""!==e.value||t&&o(e.defaultValue)&&""!==e.defaultValue)}function l(e){return e.startAdornment}n.d(t,{gr:()=>l,lq:()=>r})},77452(e,t,n){const o=n(78595).A;n.d(t,["A",0,o])}}]),__v__="next-header: v7.33.0";

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.