PageSourceSearch

https://www.xfyun.cn/_next/static/chunks/ec365e7cb7f348afe1eaffbda057a43345d9f9fa.c70acdc62c6db5e439f6.js

js xfyun.cn collected 2026-09-24 08:52:03 UTC 50,361 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{"/Wek":function(e,t,n){},"3Fcl":function(e,t,n){"use strict";t.a=function(e,t){var n,r=e,o=!0;return function(){var e=arguments,i=this;return o?(r.apply(i,e),o=!1):!n&&void(n=setTimeout((function(){clearTimeout(n),n=null,r.apply(i,e)}),t||500))}}},"3IO0":function(e,t){e.exports=function(e){return n.test(e)?e.toLowerCase():r.test(e)?(function(e){return e.replace(i,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():o.test(e)?function(e){return e.replace(a,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var n=/\s/,r=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/;var i=/[\W_]+(.|$)/g;var a=/(.)([A-Z]+)/g},EiQ3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}},F39V:function(e,t,n){var r=n("NtLt");e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},HF17:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},J1sY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n("xEkU"),a=g(i),l=g(n("cegH")),c=n("q1tI"),u=g(n("17x9")),s=g(n("HF17")),d=g(n("KSAl")),f=g(n("ToH2")),h=g(n("EiQ3")),v=g(n("eYAL")),p=n("yXmM"),m=n("h27F");function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(o)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,i=e.scrollWidth,a=void 0===i?0:i,l=e.scrollHeight,c=void 0===l?0:l,u=e.clientWidth,s=void 0===u?0:u,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-s)||0,top:o/(c-f)||0,scrollLeft:n,scrollTop:o,scrollWidth:a,scrollHeight:c,clientWidth:s,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollWidth,i=r.clientWidth,a=(0,h.default)(this.trackHorizontal),l=Math.ceil(i/o*a);return a===l?0:t||Math.max(l,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollHeight,i=r.clientHeight,a=(0,v.default)(this.trackVertical),l=Math.ceil(i/o*a);return a===l?0:t||Math.max(l,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,h.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,v.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,l.default)(document.body,p.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,l.default)(document.body,p.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,l.default)(this.trackHorizontal,{opacity:1}),(0,l.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,l.default)(e.trackHorizontal,{opacity:0}
1),(0,l.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var i=o.scrollLeft,a=o.clientWidth,c=o.scrollWidth,u=(0,h.default)(this.trackHorizontal),s=this.getThumbHorizontalWidth(),f={width:s,transform:"translateX("+i/(c-a)*(u-s)+"px)"},p=o.scrollTop,m=o.clientHeight,g=o.scrollHeight,b=(0,v.default)(this.trackVertical),y=this.getThumbVerticalHeight(),w={height:y,transform:"translateY("+p/(g-m)*(b-y)+"px)"};if(r){var k={visibility:c>a?"visible":"hidden"},T={visibility:g>m?"visible":"hidden"};(0,l.default)(this.trackHorizontal,k),(0,l.default)(this.trackVertical,T)}(0,l.default)(this.thumbHorizontal,f),(0,l.default)(this.thumbVertical,w)}n&&n(o),"function"===typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,l=n.renderThumbHorizontal,u=n.renderThumbVertical,f=n.tagName,h=(n.hideTracksWhenNotNeeded,n.autoHide),v=(n.autoHideTimeout,n.autoHideDuration),m=(n.thumbSize,n.thumbMinSize,n.universal),g=n.autoHeight,b=n.autoHeightMin,y=n.autoHeightMax,w=n.style,k=n.children,T=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),S=this.state.didMountUniversal,O=r({},p.containerStyleDefault,g&&r({},p.containerStyleAutoHeight,{minHeight:b,maxHeight:y}),w),H=r({},p.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},g&&r({},p.viewStyleAutoHeight,{minHeight:(0,s.default)(b)?"calc("+b+" + "+t+"px)":b+t,maxHeight:(0,s.default)(y)?"calc("+y+" + "+t+"px)":y+t}),g&&m&&!S&&{minHeight:b,maxHeight:y},m&&!S&&p.viewStyleUniversalInitial),N={transition:"opacity "+v+"ms",opacity:0},j=r({},p.trackHorizontalStyleDefault,h&&N,(!t||m&&!S)&&{display:"none"}),E=r({},p.trackVerticalStyleDefault,h&&N,(!t||m&&!S)&&{display:"none"});return(0,c.createElement)(f,r({},T,{style:O,ref:function(t){e.container=t}}),[(0,c.cloneElement)(o({style:H}),{key:"view",ref:function(t){e.view=t}},k),(0,c.cloneElement)(i({style:j}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,c.cloneElement)(l({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,c.cloneElement)(a({style:E}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,c.cloneElement)(u({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(c.Component);t.default=b,b.propTypes={onScroll:u.default.func,onScrollFrame:u.default.func,onScrollStart:u.default.func,onScrollStop:u.default.func,onUpdate:u.default.func,renderView:u.default.func,renderTrackHorizontal:u.default.func,renderTrackVertical:u.default.func,renderThumbHorizontal:u.default.func,renderThumbVertical:u.default.func,tagName:u.default.string,thumbSize:u.default.number,thumbMinSize:u.default.number,hideTracksWhenNotNeeded:u.default.bool,autoHide:u.default.bool,autoHideTimeout:u.default.number,autoHideDuration:u.default.number,autoHeight:u.default.bool,autoHeightMin:u.default.oneOfType([u.default.number,u.default.string]),autoHeightMax:u.default.oneOfType([u.default.number,u.default.string]),universal:u.default.bool,style:u.default.object,children:u.default.node},b.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},JX6S:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
1)),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n("dRp0");function o(){return r.a.request({url:"/herapi/invitation/spec/create",method:"post"})}function i(){return r.a.request({url:"/herapi/invitation/count",method:"get"})}function a(){return r.a.request({url:"/herapi/invitation/getDetail",method:"get"})}function l(){return r.a.request({url:"/herapi/invitation/address/getDetail",method:"get"})}function c(e){return r.a.request({url:"/herapi/invitation/address/update",method:"post",data:e,headers:{"content-type":"application/json"}})}function u(e){return r.a.request({url:"/herapi/invitation/reward/exchange",method:"post",data:e,headers:{"content-type":"application/json"}})}function s(){return r.a.request({url:"/herapi/invitation/reward/history",method:"get"})}function d(){return r.a.request({url:"/herapi/invitation/get/goodsInfo",method:"get"})}},KSAl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==a)return a;if("undefined"!==typeof document){var e=document.createElement("div");(0,i.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0};var r,o=n("cegH"),i=(r=o)&&r.__esModule?r:{default:r};var a=!1},NtLt:function(e,t,n){var r=n("3IO0");e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},QFUi:function(e,t,n){},T2yH:function(e,t,n){},ToH2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},YFqc:function(e,t,n){e.exports=n("cTJO")}
1,a5VT:function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return H})),n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return W}));var r=n("rePB"),o=n("HaE+"),i=n("q1tI"),a=n.n(i),l=n("J66h"),c=n("G5J5"),u=n("JX6S"),s=(n("T2yH"),a.a.createElement);function d(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return v(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function h(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t<s.length;t++){var o,i=s[t],h=f.p,v=i[2];n>3?(o=v===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(l=0,f.v=r,f.n=i[1]):h<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&h(s,v),l=s,c=v;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),h(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(v(t={},r,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,v(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,v(d,"constructor",u),v(u,"constructor",c),c.displayName="GeneratorFunction",v(u,o,"GeneratorFunction"),v(d),v(d,o,"Generator"),v(d,r,(function(){return this})),v(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:f}})()}function v(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(v=function(e,t,n,r){function i(t,n){v(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}var p=function(e){var t=e.isLogin,n=void 0!==t&&t,r=e.callbackFn,a=Object(i.useRef)(),d=Object(i.useState)(null),v=d[0],p=d[1],m=Object(i.useState)([]),g=m[0],b=m[1],y=function(){var e=l.Base64.encode(window.location.href);window.location.href="".concat(c.a.PASSPORT,"/login?jump=").concat(e)},w=function(){var e=Object(o.a)(h().m((function e(t){var r;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!n){e.n=2;break}return e.n=1,p(t);case 1:(0,a.current.openEnsureModal)(),e.n=3;break;case 2:y();case 3:e.n=5;break;case 4:e.p=4,r=e.v,console.log(r);case 5:return e.a(2)}}),e,null,[[0,4]])})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=Object(o.a)(h().m((function e(){var t,n;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Object(u.c)();case 1:t=e.v,b(t),e.n=3;break;case 2:e.p=2,n=e.v,console.log("e",n);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}();return Object(i.useEffect)((function(){k()}),[]),s("div",{className:"integral-shop"},s("div",{className:"section-title"},s("p",{className:"cn-title"},"\u79ef\u5206\u5151\u6362"),s("p",{className:"en-title"},"EXCHANGE")),s("ul",{className:"rmr-goods"},null===g||void 0===g?void 0:g.map((function(e){return s("li",{className:"goods-item",key:null===e||void 0===e?void 0:e.id},s("div",{className:"gt-picwrap"}
1,s("img",{className:"gt-pic",src:null===e||void 0===e?void 0:e.rewardImage,alt:"loading..."})),s("p",{className:"gt-name",title:null===e||void 0===e?void 0:e.rewardName},null===e||void 0===e?void 0:e.rewardName),s("div",{className:"gt-info"},s("div",null,s("div",null,s("span",{className:"gt-num"},null===e||void 0===e?void 0:e.integral),s("span",{className:"gt-unit"},"\u79ef\u5206")),s("div",{className:"gt-leftnum"},s("span",null,"\u5269\u4f59\uff1a",null===e||void 0===e?void 0:e.rewardLeftNum,"\u4ef6"))),s("div",{className:"gt-btn ".concat(e.rewardStatus?"":"disabled"),onClick:w.bind(void 0,e)},(null===e||void 0===e?void 0:e.rewardStatus)?"\u7acb\u5373\u5151\u6362":"\u6682\u65e0\u5e93\u5b58")))}))),s(W,f(f({},v),{},{ref:a,callbackFn:function(){r(),k()}})))},m=n("FGyW"),g=n("3Fcl"),b=n("7Qib"),y=(n("fP9h"),a.a.createElement);function w(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return k(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function h(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t<s.length;t++){var o,i=s[t],h=f.p,v=i[2];n>3?(o=v===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(l=0,f.v=r,f.n=i[1]):h<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&h(s,v),l=s,c=v;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),h(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(k(t={},r,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,k(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,k(d,"constructor",u),k(u,"constructor",c),c.displayName="GeneratorFunction",k(u,o,"GeneratorFunction"),k(d),k(d,o,"Generator"),k(d,r,(function(){return this})),k(d,"toString",(function(){return"[object Generator]"})),(w=function(){return{w:i,m:f}})()}function k(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(k=function(e,t,n,r){function i(t,n){k(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}var T=/^[1][3|4|5|6|7|8|9][0-9]{9}$/,S=function(){var e=Object(i.useState)(""),t=e[0],n=e[1],r=Object(i.useState)(""),a=r[0],l=r[1],c=Object(i.useState)(""),s=c[0],d=c[1],f=Object(i.useState)(""),h=f[0],v=f[1],p=Object(i.useState)(!1),k=p[0],S=p[1],O=Object(i.useState)(!1),H=O[0],N=O[1],j=Object(i.useState)(!1),E=j[0],M=j[1],D=Object(i.useState)([]),L=D[0],z=D[1],x=Object(b.n)(),V=function(){var e=Object(o.a)(w().m((function e(){var t,r,o,i,a,c;return w().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Object(u.b)();case 1:a=e.v,n(null!==(t=null===a||void 0===a?void 0:a.id)&&void 0!==t?t:""),l(null!==(r=null===a||void 0===a?void 0:a.userName)&&void 0!==r?r:""),d(null!==(o=null===a||void 0===a?void 0:a.mobile)&&void 0!==o?o:""),v(null!==(i=null===a||void 0===a?void 0:a.detail)&&void 0!==i?i:""),e.n=3;break;case 2:e.p=2,c=e.v,console.log(c);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=Object(o.a)(w().m((function e(){var t,n;return w().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Object(u.g)();case 1:t=e.v,z(t||[]),(null===x||void 0===x?void 0:x.address)&&document.getElementsByTagName("body")[0].scrollIntoView(!1),e.n=3;break;case 2:e.p=2,n=e.v,console.log(n);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=Object(o.a)(w().m((function e(t){var n,r;return w().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Object(u.h)(t);case 1:m.b.success("\u5730\u5740\u4fdd\u5b58\u6210\u529f",{autoClose:2e3}),e.n=3;break;case 2:e.p=2,r=e.v,console.log(r),m.b.error(null!==(n=null===r||void 0===r?void 0:r.msg)&&void 0!==n?n:"\u5730\u5740\u4fdd\u5b58\u5931\u8d25");case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(t){return e.apply(this,arguments)}}(),C=Object(g.a)((function(){if((null===a||void 0===a?void 0:a.trim())?S(!1):S(!0),T.test(s)?N(!1):N(!0),(null===h||void 0===h?void 0:h.trim())?M(!1):M(!0),!(null===a||void 0===a?void 0:a.trim())||!T.test(s)||!(null===h||void 0===h?void 0:h.trim()))return!1;P({userName:a.trim(),mobile:s,detail:h.trim(),id:t})}),500);return Object(i.useEffect)((function(){V(),_()}),[]),y("div",{className:"integral-record"},y("div",{className:"section-title"},y("p",{className:"cn-title"},"\u5151\u6362\u8bb0\u5f55"),y("p",{className:"en-title"},"EXCHANGE RECORD")),y("div",{className:"record-table"},y("ul",{className:"re-head"},y("li",{className:"re-head-item"},"\u5151\u6362\u65f6\u95f4"),y("li",{className:"re-head-item"},"\u5956\u54c1"),y("li",{className:"re-head-item"},"\u5bc4\u51fa\u72b6\u6001"),y("li",{className:"re-head-item"},"\u7269\u6d41\u4fe1\u606f")),y("ul",{className:"re-body"},L.length>0?L.map((function(e){return y("li",{className:"re-content",key:e.createTime},y("div",{className:"re-content-item"},e.createTime),y("div",{className:"re-content-item"},e.rewardName),y("div",{className:"re-content-item"},e.logisticsStatus),y("div",{className:"re-content-item"},e.logisticsNum||"--"))})):y("li",{className:"empty-tip"},"\u6682\u65e0\u6570\u636e"))),y("div",{className:"section-title"},y("p",{className:"cn-title"},"\u6536\u8d27\u5730\u5740"),y("p",{className:"en-title"},"ADDRESS MANAGEMENT")),y("div",{className:"form-item"},y("span",{className:"form-title"}
1,"\u6536\u4ef6\u4eba\uff1a"),y("input",{type:"text",onChange:function(e){return function(e){var t=e.target.value;l(t),(null===t||void 0===t?void 0:t.trim())?S(!1):S(!0)}(e)},placeholder:"\u8bf7\u586b\u5199\u6536\u4ef6\u4eba\u59d3\u540d",maxLength:"30",value:a}),y("span",{className:"error-tip ".concat(k?"show":"")},"\u8bf7\u586b\u5199\u6536\u4ef6\u4eba\u59d3\u540d")),y("div",{className:"form-item"},y("span",{className:"form-title"},"\u8054\u7cfb\u7535\u8bdd\uff1a"),y("input",{type:"text",onChange:function(e){return function(e){var t=e.target.value;d(t),T.test(t)?N(!1):N(!0)}(e)},placeholder:"\u8bf7\u586b\u5199\u6536\u4ef6\u4eba\u8054\u7cfb\u7535\u8bdd",value:s}),y("span",{className:"error-tip ".concat(H?"show":"")},"\u8bf7\u586b\u5199\u6b63\u786e\u7684\u8054\u7cfb\u7535\u8bdd")),y("div",{className:"form-item"},y("span",{className:"form-title"},"\u8be6\u7ec6\u5730\u5740\uff1a"),y("input",{type:"text",onChange:function(e){return function(e){var t=e.target.value;v(t),(null===t||void 0===t?void 0:t.trim())?M(!1):M(!0)}(e)},placeholder:"\u8bf7\u586b\u5199\u8be6\u7ec6\u6536\u8d27\u5730\u5740",maxLength:"100",value:h}),y("span",{className:"error-tip ".concat(E?"show":"")},"\u8bf7\u586b\u5199\u8be6\u7ec6\u6536\u8d27\u5730\u5740")),y("div",{className:"form-item"},y("span",{className:"form-title"}),y("div",{className:"form-content"},y("div",{className:"submit-btn",onClick:C},"\u4fdd\u5b58\u5730\u5740"),y("span",{className:"submit-desc"},"*\u5728\u5956\u54c1\u5bc4\u51fa\u4e4b\u524d\uff0c\u60a8\u968f\u65f6\u53ef\u4ee5\u4fee\u6539\u6536\u8d27\u5730\u5740\u3002"))))},O=(n("QFUi"),a.a.createElement),H=Object(i.memo)((function(e){var t=e.ruleList,n=void 0===t?[]:t;return O("div",{className:"integral-rule"},O("div",{className:"section-title"},O("p",{className:"cn-title"},"\u79ef\u5206\u89c4\u5219"),O("p",{className:"en-title"},"REGULATIONS")),n.map((function(e,t){return O("div",{className:"rule-item",key:e.id},O("div",{className:"rule-item-title"},O("span",{className:"rule-index"},t+1),O("span",{className:"rule-title"},e.title)),O("div",{className:"rule-content"},e.descList.map((function(e,t){switch(e.type){case"txt":return O(i.Fragment,{key:"".concat(t+1)},O("div",{className:"rule-desc",dangerouslySetInnerHTML:{__html:e.desc}}));case"table":return O(i.Fragment,{key:"".concat(t+1)},O("div",{className:"rule-table"},O("ul",{className:"re-head"},e.tableData.head.map((function(e,t){return O("li",{className:"re-head-item",key:"".concat(t+1),style:{width:e.width}},e.headTitle)}))),O("div",{className:"re-body"},e.tableData.list.map((function(t,n){return O("div",{className:"re-body-item",key:"".concat(n+1)},e.tableData.tabKey.map((function(n,r){return O("div",{className:"re-body-item-desc",key:"".concat(r+1),style:{width:e.tableData.head[r].width}},t[n])})))})))));default:return""}}))))})))})),N=n("Jd93"),j=n("k82f"),E=n("wd/R"),M=n.n(E),D=(n("l8eY"),a.a.createElement);function L(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return z(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function h(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t<s.length;t++){var o,i=s[t],h=f.p,v=i[2];n>3?(o=v===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(l=0,f.v=r,f.n=i[1]):h<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&h(s,v),l=s,c=v;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),h(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,z(d,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(d),z(d,o,"Generator"),z(d,r,(function(){return this})),z(d,"toString",(function(){return"[object Generator]"})),(L=function(){return{w:i,m:f}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(z=function(e,t,n,r){function i(t,n){z(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}var x=Object(i.forwardRef)((function(e,t){var n=Object(i.useState)(!1),r=n[0],a=n[1],l=Object(i.useState)([]),c=l[0],s=l[1],d=function(){var e=Object(o.a)(L().m((function e(){var t,n;return L().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,u.d();case 1:t=e.v,s(t||[]),e.n=3;break;case 2:e.p=2,n=e.v,console.log(n);case 3:return e.a(2)}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}();Object(i.useImperativeHandle)(t,(function(){return{setModalVisible:function(e){return a(e)}}}),[r]),Object(i.useEffect)((function(){r&&d()}),[r]);
1return D(N.c,{visible:r,title:"\u79ef\u5206\u660e\u7ec6",footer:null,width:574,children:D("div",{className:"integral-wrap"},D("div",{className:"table-head"},D("div",null,"\u53d1\u751f\u65f6\u95f4"),D("div",null,"\u79ef\u5206\u6570\u91cf"),D("div",null,"\u79ef\u5206\u53d8\u5316\u8be6\u60c5")),D(j.Scrollbars,{style:{width:"100%"},autoHeight:!0,autoHeightMin:150},c.length>0?D("div",{className:"table-body"},D("ul",null,c.map((function(e){return D("li",{key:e.createTime},M()(e.createTime).format("YYYY-MM-DD HH:mm:ss"))}))),D("ul",null,c.map((function(e){return D("li",{key:e.createTime},e.score)}))),D("ul",null,c.map((function(e){return D("li",{className:"intgral-detail",key:e.createTime,title:e.msg},e.msg)})))):D("div",{style:{textAlign:"center",paddingTop:"10px"}},"\u6682\u65e0\u6570\u636e"))),onCancel:function(){return a(!1)}})})),V=n("YFqc"),_=n.n(V),P=(n("/Wek"),a.a.createElement);function C(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return F(u,"_invoke",function(n,r,o){var i,l,c,u=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function h(n,r){for(l=n,c=r,t=0;!d&&u&&!o&&t<s.length;t++){var o,i=s[t],h=f.p,v=i[2];n>3?(o=v===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(l=0,f.v=r,f.n=i[1]):h<v&&(o=n<3||i[0]>r||r>v)&&(i[4]=n,i[5]=r,f.n=v,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,s,v){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&h(s,v),l=s,c=v;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),h(l,c)):f.n=c:f.v=c);try{if(u=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,(function(){return this})),t),d=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,F(d,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(d),F(d,o,"Generator"),F(d,r,(function(){return this})),F(d,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:i,m:f}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(F=function(e,t,n,r){function i(t,n){F(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}var W=Object(i.forwardRef)((function(e,t){var n=e.integral,r=void 0===n?"":n,a=e.rewardName,l=void 0===a?"":a,c=e.rewardType,s=e.id,d=e.callbackFn,f=Object(i.useState)(!1),h=f[0],v=f[1],p=Object(i.useState)(4),b=p[0],y=p[1],w=function(e){y(e),v(!0)},k=function(){"material"===c?w(3):"virtual"===c&&w(4)},T=Object(g.a)(Object(o.a)(C().m((function e(){var t,n,r;return C().w((function(e){for(;;)switch(e.p=e.n){case 0:return v(!1),e.p=1,e.n=2,Object(u.f)({id:s});case 2:"material"===c&&w(5),"virtual"===c&&w(6),d(),e.n=4;break;case 3:e.p=3,r=e.v,console.log("e",r),10009===(t=r.detail.code)?w(2):10010===t?w(1):(m.b.error(null!==(n=null===r||void 0===r?void 0:r.msg)&&void 0!==n?n:"\u5151\u6362\u5931\u8d25"),v(!1));case 4:return e.a(2)}}),e,null,[[1,3]])}))),500);Object(i.useImperativeHandle)(t,(function(){return{setModalVisible:function(e){return v(e)},openEnsureModal:k}}));var S="";switch(b){case 1:S=P("div",{className:"integral-modal-content"},P("span",{className:"modal-desc"},"\u79ef\u5206\u4e0d\u8db3\uff0c\u65e0\u6cd5\u5151\u6362\u8be5\u793c\u54c1\u3002"),P("div",{className:"modal-footer"},P("div",{className:"btn ensure-btn",onClick:function(){return v(!1)}},"\u786e\u5b9a")));break;case 2:S=P("div",{className:"integral-modal-content"},P("span",{className:"modal-desc"},"\u5f88\u62b1\u6b49\uff0c\u8be5\u793c\u54c1\u5e93\u5b58\u4e0d\u8db3\uff0c\u8bf7\u5151\u6362\u5176\u4ed6\u793c\u54c1\u3002"),P("div",{className:"modal-footer"},P("div",{className:"btn ensure-btn",onClick:function(){return v(!1)}},"\u786e\u5b9a")));break;case 3:S=P("div",{className:"integral-modal-content"},P("span",{className:"modal-desc"},"\u60a8\u786e\u5b9a\u7528",r,"\u79ef\u5206\u5151\u6362",l,"\u793
1c\u54c1\u5417\uff1f"),P("div",{className:"modal-footer"},P("div",{className:"btn ensure-btn",onClick:T},"\u786e\u5b9a"),P("div",{className:"btn cancel-btn",onClick:function(){return v(!1)}},"\u53d6\u6d88")));break;case 4:S=P("div",{className:"integral-modal-content"},P("span",{className:"modal-desc"},"\u60a8\u786e\u5b9a\u7528",r,"\u79ef\u5206\u5151\u6362",l,"\u793c\u54c1\u5417\uff1f",P("br",null),"\u8be5\u793c\u54c1\u4e3a\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u7684\u6743\u76ca\u5956\u793c\u54c1\uff0c\u76f8\u5173\u6743\u76ca\u5c06\u76f4\u63a5\u81f3\u60a8\u5f53\u524d\u767b\u5f55\u65b9\u5f0f\u5bf9\u5e94\u7684\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u8d26\u6237\u5185\u3002"),P("div",{className:"modal-footer"},P("div",{className:"btn ensure-btn",onClick:T},"\u786e\u5b9a"),P("div",{className:"btn cancel-btn",onClick:function(){return v(!1)}},"\u53d6\u6d88")));break;case 5:S=P("div",{className:"integral-modal-content"},P("span",{className:"modal-desc"},"\u5df2\u6210\u529f\u5151\u6362",l,"\u793c\u54c1\uff0c\u8bf7\u5b8c\u5584\u6536\u8d27\u5730\u5740\uff0c\u5de5\u4f5c\u4eba\u5458\u5c06\u572830\u4e2a\u5de5\u4f5c\u65e5\u5185\u4e3a\u60a8\u5bc4\u51fa\u3002"),P("div",{className:"modal-footer"},P(_.a,{href:"/activities/recommend/integralCenter?tabKey=tab2&address=true"},P("a",{className:"btn address-btn",target:"_blank"},"\u7acb\u5373\u5b8c\u5584\u6536\u8d27\u5730\u5740"))));break;case 6:S=P("div",{className:"integral-modal-content"},P("span",{className:"modal-desc"},"\u5df2\u6210\u529f\u5151\u6362",l,"\u793c\u54c1\uff0c\u76f8\u5173\u6743\u76ca\u5df2\u53d1\u9001\u81f3\u60a8\u5f53\u524d\u767b\u5f55\u65b9\u5f0f\u5bf9\u5e94\u7684\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u8d26\u6237\u5185\u3002"),P("div",{className:"modal-footer"},P("div",{className:"btn ensure-btn",onClick:function(){return v(!1)}},"\u786e\u5b9a")))}return P(N.c,{visible:h,headerRender:!1,footer:null,width:450,children:S,onCancel:function(){return v(!1)}})}))},amwb:function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),i=r.length;i>=0;i--){var a=r[i]+o;if(a in t)return a}return!1}},bQgK:function(e,t,n){(function(t){(function(){var n,r,o,i,a,l;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,i=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),l=1e9*t.uptime(),a=i-l):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n("8oxB"))},cTJO:function(e,t,n){"use strict";var r=n("/GRZ"),o=n("i2R6"),i=n("tCBg"),a=n("T0f4"),l=n("48fX");function c(e,t,n){return t=a(t),i(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}var u=n("AroE"),s=n("7KCV");t.__esModule=!0,t.default=void 0;var d,f=s(n("q1tI")),h=n("QmWs"),v=n("g/15"),p=u(n("nOHt")),m=n("elyg");function g(e){return e&&"object"===typeof e?(0,v.formatWithValidation)(e):e}var b=new Map,y=window.IntersectionObserver,w={};function k(){return d||(y?d=new y((function(e){e.forEach((function(e){if(b.has(e.target)){var t=b.get(e.target);(e.isIntersecting||e.intersectionRatio>0)&&(d.unobserve(e.target),b.delete(e.target),t())}}))}),{rootMargin:"200px"}):void 0)}var T=function(e){function t(e){var n;return r(this,t),(n=c(this,t,[e])).p=void 0,n.cleanUpListeners=function(){},n.formatUrls=function(e){var t=null,n=null,r=null;return function(o,i){if(r&&o===t&&i===n)return r;var a=e(o,i);return t=o,n=i,r=a,a}}((function(e,t){return{href:(0,m.addBasePath)(g(e)),as:t?(0,m.addBasePath)(g(t)):t}})),n.linkClicked=function(e){var t=e.currentTarget,r=t.nodeName,o=t.target;if("A"!==r||!(o&&"_self"!==o||e.metaKey||e.ctrlKey||e.shiftKey||e.nativeEvent&&2===e.nativeEvent.which)){var i=n.formatUrls(n.props.href,n.props.as),a=i.href,l=i.as;if(function(e){var t=(0,h.parse)(e,!1,!0),n=(0,h.parse)((0,v.getLocationOrigin)(),!1,!0);return!t.host||t.protocol===n.protocol&&t.host===n.host}(a)){var c=window.location.pathname;a=(0,h.resolve)(c,a),l=l?(0,h.resolve)(c,l):a,e.preventDefault();var u=n.props.scroll;null==u&&(u=l.indexOf("#")<0),p.default[n.props.replace?"replace":"push"](a,l,{shallow:n.props.shallow}).then((function(e){e&&u&&(window.scrollTo(0,0),document.body.focus())}))}}},n.p=!1!==e.prefetch,n}
1return l(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.cleanUpListeners()}},{key:"getPaths",value:function(){var e=window.location.pathname,t=this.formatUrls(this.props.href,this.props.as),n=t.href,r=t.as,o=(0,h.resolve)(e,n);return[o,r?(0,h.resolve)(e,r):o]}},{key:"handleRef",value:function(e){var t=this;this.p&&y&&e&&e.tagName&&(this.cleanUpListeners(),w[this.getPaths().join("%")]||(this.cleanUpListeners=function(e,t){var n=k();return n?(n.observe(e),b.set(e,t),function(){try{n.unobserve(e)}catch(t){console.error(t)}b.delete(e)}):function(){}}(e,(function(){t.prefetch()}))))}},{key:"prefetch",value:function(e){if(this.p){var t=this.getPaths();p.default.prefetch(t[0],t[1],e).catch((function(e){0})),w[t.join("%")]=!0}}},{key:"render",value:function(){var e=this,t=this.props.children,n=this.formatUrls(this.props.href,this.props.as),r=n.href,o=n.as;"string"===typeof t&&(t=f.default.createElement("a",null,t));var i=f.Children.only(t),a={ref:function(t){e.handleRef(t),i&&"object"===typeof i&&i.ref&&("function"===typeof i.ref?i.ref(t):"object"===typeof i.ref&&(i.ref.current=t))},onMouseEnter:function(t){i.props&&"function"===typeof i.props.onMouseEnter&&i.props.onMouseEnter(t),e.prefetch({priority:!0})},onClick:function(t){i.props&&"function"===typeof i.props.onClick&&i.props.onClick(t),t.defaultPrevented||e.linkClicked(t)}};return!this.props.passHref&&("a"!==i.type||"href"in i.props)||(a.href=o||r),f.default.cloneElement(i,a)}}])}(f.Component);t.default=T},cegH:function(e,t,n){var r=n("amwb"),o=n("F39V"),i={float:"cssFloat"},a=n("z/Nc");function l(e,t,n){var l=i[t];if("undefined"===typeof l&&(l=function(e){var t=o(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),l){if(void 0===n)return e.style[l];e.style[l]=a(l,n)}}function c(){2===arguments.length?"string"===typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var n in t)t.hasOwnProperty(n)&&l(e,n,t[n])}(arguments[0],arguments[1]):l(arguments[0],arguments[1],arguments[2])}e.exports=c,e.exports.set=c,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=l(e,n||""),t}),{}):l(e,t||"")}},eYAL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},fP9h:function(e,t,n){},h27F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=l(e,["style"]),o=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=l(e,["style"]),o=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=l(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=l(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))};var o,i=n("q1tI"),a=(o=i)&&o.__esModule?o:{default:o};function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},k82f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var r,o=n("J1sY"),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,t.Scrollbars=i.default},l8eY:function(e,t,n){},xEkU:function(e,t,n){(function(t){for(var r=n("bQgK"),o="undefined"===typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],u=0;!l&&u<i.length;u++)l=o[i[u]+"Request"+a],c=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!l||!c){var s=0,d=0,f=[];l=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-s));s=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(s)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}
1return f.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){c.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=l,e.cancelAnimationFrame=c}}).call(this,n("yLpj"))},yXmM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},"z/Nc":function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!==typeof t||n[e]?t:t+"px"}}}]);

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.