1"use strict";(self.webpackChunkJomashop=self.webpackChunkJomashop||[]).push([[1558],{21558:(t,e,r)=>{r.d(e,{Zw:()=>useUncontrolled,iC:()=>useUncontrolledProp}) 2var n=r(58168),o=r(98587),i=r(96540) 3r(20311) 4function defaultKey(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function _toPropertyKey(t){var e=function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t 5var r=t[Symbol.toPrimitive] 6if(void 0!==r){var n=r.call(t,e||"default") 7if("object"!=typeof n)return n 8throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string") 9return"symbol"==typeof e?e:String(e)}function useUncontrolledProp(t,e,r){var n=(0,i.useRef)(void 0!==t),o=(0,i.useState)(e),s=o[0],a=o[1],u=void 0!==t,p=n.current 10return n.current=u,!u&&p&&s!==e&&a(e),[u?t:s,(0,i.useCallback)(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o] 11r&&r.apply(void 0,[t].concat(n)),a(t)},[r])]}function useUncontrolled(t,e){return Object.keys(e).reduce(function(r,i){var s,a=r,u=a[defaultKey(i)],p=a[i],l=(0,o.A)(a,[defaultKey(i),i].map(_toPropertyKey)),c=e[i],f=useUncontrolledProp(p,u,t[c]),h=f[0],d=f[1] 12return(0,n.A)({},l,((s={})[i]=h,s[c]=d,s))},t)}function componentWillMount(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state) 13null!=t&&this.setState(t)}function componentWillReceiveProps(t){this.setState(function updater(e){var r=this.constructor.getDerivedStateFromProps(t,e) 14return null!=r?r:null}.bind(this))}function componentWillUpdate(t,e){try{var r=this.props,n=this.state 15this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!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.