PageSourceSearch

https://www.loot.co.za/_next/static/chunks/524-7e6506c786142f3bbf5d.js

js loot.co.za collected 2026-10-01 10:32:16 UTC 24,638 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[524],{3446:function(e,t,n){"use strict";n.d(t,{R:function(){return Z}});var r,o,i=n(67294),a=n(87731),c=n(93477),l=n(24851),s=n(9960),u=n(37797),p=n(70627),f=n(1404),d=n(63551),v=n(11812),b=n(92877),h=n(83551),m=n(74783),y=n(42078),O=n(57994),x=n(50542),g=n(62482),R=n(81336),S=n(9077),w=n(58515),P=n(59678),T=n(8154),E=n(7255),j=n(29564),C=((o=C||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),k=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(k||{}),I=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(I||{}),L=((r=L||{})[r.OpenListbox=0]="OpenListbox",r[r.CloseListbox=1]="CloseListbox",r[r.GoToOption=2]="GoToOption",r[r.Search=3]="Search",r[r.ClearSearch=4]="ClearSearch",r[r.RegisterOption=5]="RegisterOption",r[r.UnregisterOption=6]="UnregisterOption",r[r.RegisterLabel=7]="RegisterLabel",r);function D(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,S.z2)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let N={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=D(e),o=(0,g.d)(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=D(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=D(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},M=(0,i.createContext)(null);function z(e){let t=(0,i.useContext)(M);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,z),t}return t}M.displayName="ListboxActionsContext";let W=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(W);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function A(e,t){return(0,P.E)(t.type,N,e,t)}W.displayName="ListboxDataContext";let F=i.Fragment;let Q=E.AN.RenderStrategy|E.AN.Static;let V=(0,E.yV)((function(e,t){let{value:n,defaultValue:r,form:o,name:a,onChange:u,by:f=((e,t)=>e===t),disabled:v=!1,horizontal:h=!1,multiple:m=!1,...x}=e;const R=h?"horizontal":"vertical";let T=(0,b.T)(t),[j=(m?[]:void 0),C]=(0,c.q)(n,u,r),[k,I]=(0,i.useReducer)(A,{dataRef:(0,i.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),L=(0,i.useRef)({static:!1,hold:!1}),D=(0,i.useRef)(null),N=(0,i.useRef)(null),z=(0,i.useRef)(null),_=(0,s.z)("string"==typeof f?(e,t)=>{let n=f;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:f),Q=(0,i.useCallback)((e=>(0,P.E)(V.mode,{1:()=>j.some((t=>_(t,e))),0:()=>_(j,e)})),[j]),V=(0,i.useMemo)((()=>({...k,value:j,disabled:v,mode:m?1:0,orientation:R,compare:_,isSelected:Q,optionsPropsRef:L,labelRef:D,buttonRef:N,optionsRef:z})),[j,v,m,k]);(0,p.e)((()=>{k.dataRef.current=V}),[V]),(0,d.O)([V.buttonRef,V.optionsRef],((e,t)=>{var n;I({type:1}),(0,S.sP)(t,S.tJ.Loose)||(e.preventDefault(),null==(n=V.buttonRef.current)||n.focus())}),0===V.listboxState);let $=(0,i.useMemo)((()=>({open:0===V.listboxState,disabled:v,value:j})),[V,v,j]),U=(0,s.z)((e=>{let t=V.options.find((t=>t.id===e));t&&H(t.dataRef.current.value)})),G=(0,s.z)((()=>
1{if(null!==V.activeOptionIndex){let{dataRef:e,id:t}=V.options[V.activeOptionIndex];H(e.current.value),I({type:2,focus:g.T.Specific,id:t})}})),Y=(0,s.z)((()=>I({type:0}))),Z=(0,s.z)((()=>I({type:1}))),B=(0,s.z)(((e,t,n)=>e===g.T.Specific?I({type:2,focus:g.T.Specific,id:t,trigger:n}):I({type:2,focus:e,trigger:n}))),K=(0,s.z)(((e,t)=>(I({type:5,id:e,dataRef:t}),()=>I({type:6,id:e})))),q=(0,s.z)((e=>(I({type:7,id:e}),()=>I({type:7,id:null})))),H=(0,s.z)((e=>(0,P.E)(V.mode,{0:()=>null==C?void 0:C(e),1(){let t=V.value.slice(),n=t.findIndex((t=>_(t,e)));return-1===n?t.push(e):t.splice(n,1),null==C?void 0:C(t)}}))),J=(0,s.z)((e=>I({type:3,value:e}))),X=(0,s.z)((()=>I({type:4}))),ee=(0,i.useMemo)((()=>({onChange:H,registerOption:K,registerLabel:q,goToOption:B,closeListbox:Z,openListbox:Y,selectActiveOption:G,selectOption:U,search:J,clearSearch:X})),[]),te={ref:T},ne=(0,i.useRef)(null),re=(0,l.G)();return(0,i.useEffect)((()=>{ne.current&&void 0!==r&&re.addEventListener(ne.current,"reset",(()=>{null==C||C(r)}))}),[ne,C]),i.createElement(M.Provider,{value:ee},i.createElement(W.Provider,{value:V},i.createElement(O.up,{value:(0,P.E)(V.listboxState,{0:O.ZM.Open,1:O.ZM.Closed})},null!=a&&null!=j&&(0,w.t)({[a]:j}).map((([e,t],n)=>i.createElement(y._,{features:y.A.Hidden,ref:0===n?e=>{var t;ne.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,E.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:v,name:e,value:t})}))),(0,E.sY)({ourProps:te,theirProps:x,slot:$,defaultTag:F,name:"Listbox"}))))})),$=(0,E.yV)((function(e,t){var n;let r=(0,u.M)(),{id:o=`headlessui-listbox-button-${r}`,...c}=e,p=_("Listbox.Button"),f=z("Listbox.Button"),d=(0,b.T)(p.buttonRef,t),h=(0,l.G)(),m=(0,s.z)((e=>{switch(e.key){case j.R.Space:case j.R.Enter:case j.R.ArrowDown:e.preventDefault(),f.openListbox(),h.nextFrame((()=>{p.value||f.goToOption(g.T.First)}));break;case j.R.ArrowUp:e.preventDefault(),f.openListbox(),h.nextFrame((()=>{p.value||f.goToOption(g.T.Last)}))}})),y=(0,s.z)((e=>{switch(e.key){case j.R.Space:e.preventDefault()}})),O=(0,s.z)((e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();0===p.listboxState?(f.closeListbox(),h.nextFrame((()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))):(e.preventDefault(),f.openListbox())})),R=(0,a.v)((()=>{if(p.labelId)return[p.labelId,o].join(" ")}),[p.labelId,o]),S=(0,i.useMemo)((()=>({open:0===p.listboxState,disabled:p.disabled,value:p.value})),[p]),w={ref:d,id:o,type:(0,v.f)(e,p.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=p.optionsRef.current)?void 0:n.id,"aria-expanded":0===p.listboxState,"aria-labelledby":R,disabled:p.disabled,onKeyDown:m,onKeyUp:y,onClick:O};return(0,E.sY)({ourProps:w,theirProps:c,slot:S,defaultTag:"button",name:"Listbox.Button"})})),U=(0,E.yV)((function(e,t){let n=(0,u.M)(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,a=_("Listbox.Label"),c=z("Listbox.Label"),l=(0,b.T)(a.labelRef,t);(0,p.e)((()=>c.registerLabel(r)),[r]);let f=(0,s.z)((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),d=(0,i.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return(0,E.sY)({ourProps:{ref:l,id:r,onClick:f},theirProps:o,slot:d,defaultTag:"label",name:"Listbox.Label"})})),G=(0,E.yV)((function(e,t){var n;let r=(0,u.M)(),{id:o=`headlessui-listbox-options-${r}`,...c}=e,p=_("Listbox.Options"),f=z("Listbox.Options"),d=(0,b.T)(p.optionsRef,t),v=(0,l.G)(),h=(0,l.G)(),m=(0,O.oJ)(),y=null!==m?(m&O.ZM.Open)===O.ZM.Open:0===p.listboxState;(0,i.useEffect)((()=>{var e;let t=p.optionsRef.current;t&&0===p.listboxState&&t!==(null==(e=(0,T.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[p.listboxState,p.optionsRef]);let x=(0,s.z)((e=>{switch(h.dispose(),e.key){case j.R.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),f.search(e.key);case j.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==p.activeOptionIndex){let{dataRef:e}=p.options[p.activeOptionIndex];f.onChange(e.current.value)}0===p.mode&&(f.closeListbox(),(0,R.k)().nextFrame((()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)));break;case(0,P.E)(p.orientation,{vertical:j.R.ArrowDown,horizontal:j.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),f.goToOption(g.T.Next);case(0,P.E)(p.orientation,{vertical:j.R.ArrowUp,horizontal:j.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),f.goToOption(g.T.Previous);case j.R.Home:case j.R.PageUp:return e.preventDefault(),e.stopPropagation(),f.goToOption(g.T.First);case j.R.End:case j.R.PageDown:return e.preventDefault(),e.stopPropagation(),f.goToOption(g.T.Last);case j.R.Escape:return e.preventDefault(),e.stopPropagation(),f.closeListbox(),v.nextFrame((()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case j.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(f.search(e.key),h.setTimeout((()=>f.clearSearch()),350))}})),S=(0,a.v)((()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.id}),[p.buttonRef.current]),w=(0,i.useMemo)((()=>({open:0===p.listboxState})),[p]),C={"aria-activedescendant":null===p.activeOptionIndex||null==(n=p.options[p.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===p.mode||void 0,"aria-labelledby":S,"aria-orientation":p.orientation,id:o,onKeyDown:x,role:"listbox",tabIndex:0,ref:d};return(0,E.sY)({ourProps:C,theirProps:c,slot:w,defaultTag:"ul",features:Q,visible:y,name:"Listbox.Options"})})),Y=(0,E.yV)((function(e,t){let n=(0,u.M)(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:a,...c}=e,l=_("Listbox.Option"),d=z("Listbox.Option"),v=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===r,y=l.isSelected(a),O=(0,i.useRef)(null),x=(0,h.x)(O),S=(0,f.E)({disabled:o,value:a,domRef:O,get textValue(){return x()}}),w=(0,b.T)(t,O);(0,p.e)((()=>{if(0!==l.listboxState||!v||0===l.activationTrigger)return;let e=(0,R.k)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=O.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[O,v,l.listboxState,l.activationTrigger,l.activeOptionIndex]),(0,p.e)((()=>d.registerOption(r,S)),[S,r]);let P=(0,s.z)((e=>{if(o)return e.preventDefault();d.onChange(a),0===l.mode&&(d.closeListbox(),(0,R.k)().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)))})),T=(0,s.z)((()=>{if(o)return d.goToOption(g.T.Nothing);d.goToOption(g.T.Specific,r)})),j=(0,m.g)(),C=(0,s.z)((e=>j.update(e))),k=(0,s.z)((e=>{j.wasMoved(e)&&(o||v||d.goToOption(g.T.Specific,r,0))})),I=(0,s.z)((e=>{j.wasMoved(e)&&(o||v&&d.goToOption(g.T.Nothing))})),L=(0,i.useMemo)((()=>({active:v,selected:y,disabled:o})),[v,y,o]);return(0,E.sY)({ourProps:{id:r,ref:w,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":y,disabled:void 0,onClick:P,onFocus:T,onPointerEnter:C,onMouseEnter:C,onPointerMove:k,onMouseMove:k,onPointerLeave:I,onMouseLeave:I},theirProps:c,slot:L,defaultTag:"li",name:"Listbox.Option"})})),Z=Object.assign(V,{Button:$,Label:U,Options:G,Option:Y})},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,c=Math.min;e.exports=function(e,t,n){var l,s,u,p,f,d,v=0,b=!1,h=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=s;return l=s=void 0,v=t,p=e.apply(r,n)}function O(e){return v=e,f=setTimeout(g,t),b?y(e):p}function x(e){var n=e-d;return void 0===d||n>=t||n<0||h&&e-v>=u}function g(){var e=o();if(x(e))return R(e);f=setTimeout(g,function(e){var n=t-(e-d);return h?c(n,u-(e-v)):n}(e))}function R(e){return f=void 0,m&&l?y(e):(l=s=void 0,p)}function S(){var e=o(),n=x(e);if(l=arguments,s=this,d=e,n){if(void 0===f)return O(d);if(h)return clearTimeout(f),f=setTimeout(g,t),y(d)}return void 0===f&&(f=setTimeout(g,t)),p}return t=i(t)||0,r(n)&&(b=!!n.leading,u=(h="maxWait"in n)?a(i(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),S.cancel=function(){void 0!==f&&clearTimeout(f),v=0,l=d=s=f=void 0},S.flush=function(){return void 0===f?p:R(o())},S}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||l.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},30007:function(e,t,n){"use strict";n.d(t,{h:function(){return D},Z:function(){return N}});var r=n(67294),o=n(73935),i=n(94184),a=n.n(i),c=n(23279),l=n.n(c);function s(){if("undefined"!==typeof window&&window.document&&window.document.documentElement){var e=window.document.documentElement;return"flex"in e.style||"webkitFlex"in e.style||"Flex"in e.style||"msFlex"in e.style}return!1}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(h,e);var t,n,i,c=b(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),O(m(t=c.call(this,e)),"onStepClick",(function(e){var n=t.props,r=n.onChange,o=n.current;r&&o!==e&&r(e)})),O(m(t),"calcStepOffsetWidth",(function(){if(!s()){var e=t.state.lastStepOffsetWidth,n=(0,o.findDOMNode)(m(t));n.children.length>0&&(t.calcTimeout&&clearTimeout(t.calcTimeout),t.calcTimeout=setTimeout((function(){var r=(n.lastChild.offsetWidth||0)+1;e===r||Math.abs(e-r)<=3||t.setState({lastStepOffsetWidth:r})})))}})),t.state={flexSupported:!0,lastStepOffsetWidth:0},t.calcStepOffsetWidth=l()(t.calcStepOffsetWidth,150),t}return t=h,(n=[{key:"componentDidMount",value:function(){this.calcStepOffsetWidth(),s()||this.setState({flexSupported:!1})}},{key:"componentDidUpdate",value:function(){this.calcStepOffsetWidth()}},{key:"componentWillUnmount",value:function(){this.calcTimeout&&clearTimeout(this.calcTimeout),this.calcStepOffsetWidth&&this.calcStepOffsetWidth.cancel&&this.calcStepOffsetWidth.cancel()}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.prefixCls,i=n.style,c=void 0===i?{}:i,l=n.className,s=n.children,d=n.direction,v=n.type,b=n.labelPlacement,h=n.iconPrefix,m=n.status,y=n.size,x=n.current,g=n.progressDot,R=n.initial,S=n.icons,w=n.onChange,P=f(n,["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","onChange"]),T="navigation"===v,E=this.state,j=E.lastStepOffsetWidth,C=E.flexSupported,k=r.Children.toArray(s).filter((function(e){return!!e})),I=k.length-1,L=g?"vertical":b,D=a()(o,"".concat(o,"-").concat(d),l,(O(e={},"".concat(o,"-").concat(y),y),O(e,"".concat(o,"-label-").concat(L),"horizontal"===d),O(e,"".concat(o,"-dot"),!!g),O(e,"".concat(o,"-navigation"),T),O(e,"".concat(o,"-flex-not-supported"),!C),e));return r.createElement("div",u({className:D,style:c},P),r.Children.map(k,(function(e,n){if(!e)return null;var i=R+n,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({stepNumber:"".concat(i+1),stepIndex:i,prefixCls:o,iconPrefix:h,wrapperStyle:c,progressDot:g,icons:S,onStepClick:w&&t.onStepClick},e.props);return C||"vertical"===d||(T?(a.itemWidth="".concat(100/(I+1),"%"),a.adjustMarginRight=0):n!==I&&(a.itemWidth="".concat(100/I,"%"),a.adjustMarginRight=-Math.round(j/I+1))),"error"===m&&n===x-1&&(a.className="".concat(o,"-next-error")),e.props.status||(a.status=i===x?m:i<x?"finish":"wait"),a.active=i===x,(0,r.cloneElement)(e,a)})))}}])&&d(t.prototype,n),i&&d(t,i),h}(r.Component);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){return"string"===typeof e}O(x,"defaultProps",{type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1});var D=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(c,e);var t,n,o,i=E(c);function c(){var e;w(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return I(C(e=i.call.apply(i,[this].concat(n))),"onClick",(function(){var t=e.props,n=t.onClick,r=t.onStepClick,o=t.stepIndex;n&&n.apply(void 0,arguments),r(o)})),e}return t=c,(n=[{key:"renderIconNode",value:function(){var e,t=this.props,n=t.prefixCls,o=t.progressDot,i=t.stepNumber,c=t.status,l=t.title,s=t.description,u=t.icon,p=t.iconPrefix,f=t.icons,d=a()("".concat(n,"-icon"),"".concat(p,"icon"),(I(e={},"".concat(p,"icon-").concat(u),u&&L(u)),I(e,"".concat(p,"icon-check"),!u&&"finish"===c&&(f&&!f.finish||!f)),I(e,"".concat(p,"icon-cross"),!u&&"error"===c&&(f&&!f.error||!f)),e)),v=r.createElement("span",{className:"".concat(n,"-icon-dot")});return o?"function"===typeof o?r.createElement("span",{className:"".concat(n,"-icon")},o(v,{index:i-1,status:c,title:l,description:s})):r.createElement("span",{className:"".concat(n,"-icon")},v):u&&!L(u)?r.createElement("span",{className:"".concat(n,"-icon")},u):f&&f.finish&&"finish"===c?r.createElement("span",{className:"".concat(n,"-icon")},f.finish):f&&f.error&&"error"===c?r.createElement("span",{className:"".concat(n,"-icon")},f.error):u||"finish"===c||"error"===c?r.createElement("span",{className:d}):r.createElement("span",{className:"".concat(n,"-icon")},i)}},{key:"render",value:function(){var e,t=this.props,n=t.className,o=t.prefixCls,i=t.style,c=t.itemWidth,l=t.active,s=t.status,u=void 0===s?"wait":s,p=(t.iconPrefix,t.icon),f=(t.wrapperStyle,t.adjustMarginRight),d=(t.stepNumber,t.disabled),v=t.description,b=t.title,h=t.subTitle,m=(t.progressDot,t.tailContent),y=(t.icons,t.stepIndex,t.onStepClick),O=t.onClick,x=S(t,["className","prefixCls","style","itemWidth","active","status","iconPrefix","icon","wrapperStyle","adjustMarginRight","stepNumber","disabled","description","title","subTitle","progressDot","tailContent","icons","stepIndex","onStepClick","onClick"]),w=a()("".concat(o,"-item"),"".concat(o,"-item-").concat(u),n,(I(e={},"".concat(o,"-item-custom"),p),I(e,"".concat(o,"-item-active"),l),I(e,"".concat(o,"-item-disabled"),!0===d),e)),P=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i);c&&(P.width=c),f&&(P.marginRight=f);var T={};return y&&!d&&(T.role="button",T.tabIndex=0,T.onClick=this.onClick),r.createElement("div",g({},x,{className:w,style:P}),r.createElement("div",g({onClick:O},T,{className:"".concat(o,"-item-container")}),r.createElement("div",{className:"".concat(o,"-item-tail")},m),r.createElement("div",{className:"".concat(o,"-item-icon")},this.renderIconNode()),r.createElement("div",{className:"".concat(o,"-item-content")},r.createElement("div",{className:"".concat(o,"-item-title")},b,h&&r.createElement("div",{title:"string"===typeof h?h:void 0,className:"".concat(o,"-item-subtitle")},h)),v&&r.createElement("div",{className:"".concat(o,"-item-description")},v))))}}])&&P(t.prototype,n),o&&P(t,o),c}(r.Component);x.Step=D;var N=x}}]);

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.