1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{277:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var i=n(59499),r=n(67294),o=n(27929),a=n(11163),l=n(8026),c=n(46670),s=n(34313),u=n.n(s),d=n(36696),f=n(46799),g=n(3930),v=n(85379),m=n(39567),b=n(80364),p=n(15186);function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.position,n=void 0===t?"":t,i=e.positionSub,r=void 0===i?"":i;return(0,p.v_)("/act/api/v1/advertising/marketingAD/list",{body:JSON.stringify({device:"0",position:n,positionSub:r})})}function y(e){return(0,p.v_)("/act/api/v1/advertising/marketingAD/record",{body:JSON.stringify(e)})}var O=n(23182);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){return String(null!==e&&void 0!==e?e:"")}function w(){var e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(i)}function M(e,t,n){return"webMarketingAdsSeq_".concat(j(e),"_").concat(t,"_").concat(function(e){return String(null!==e&&void 0!==e?e:"")}(n))}function D(e){return"webMaketingModal".concat(O.Z.brand).concat(j(e))}var Z=new Map;function _(e,t,n){var i=M(e,t,n),r=Z.get(i);r&&clearTimeout(r);var o=window.setTimeout((function(){N(e,t,n),Z.delete(i)}),function(){var e=new Date;return e.setDate(e.getDate()+1),e.setHours(0,0,0,0),Math.max(0,e.getTime()-Date.now())}());Z.set(i,o)}function C(e,t,n,i){var r=M(e,t,n),o=S(S({},i),{},{cachedOnLocalDay:w()});localStorage.setItem(r,JSON.stringify(o)),_(e,t,n)}function P(e){j(e)&&localStorage.setItem(D(e),"1")}function N(e,t,n){var i=M(e,t,n),r=Z.get(i);r&&(clearTimeout(r),Z.delete(i)),localStorage.removeItem(i),j(e)&&localStorage.removeItem(D(e))}var x=n(1585);function A(e,t,n){return function(e,t,n){var i=M(e,t,n),r=localStorage.getItem(i);if(r)try{var o=JSON.parse(r);if(o&&Array.isArray(o.items)&&(0===o.cursor||1===o.cursor||2===o.cursor)){var a=w();if(o.cachedOnLocalDay&&o.cachedOnLocalDay!==a){localStorage.removeItem(i);var l=Z.get(i);l&&(clearTimeout(l),Z.delete(i))}else if(!o.cachedOnLocalDay||o.cachedOnLocalDay===a)return{items:o.items,cursor:o.cursor}}}catch(c){}return j(e)&&localStorage.getItem(D(e))&&!localStorage.getItem(i)?{items:[],cursor:2}:null}(e,t,n)}function I(e){var t,n=e.position,i=e.positionSub,o=e.routePath,a=e.onClose,l=e.router,c=e.startGame,s=b.Z.setMaketingModalStatus,u=b.Z.maketingModalVisible,d=b.Z.setMaketingModalVisible,p=(0,r.useState)(!0),O=p[0],k=p[1],S=(0,r.useState)(!1),j=S[0],w=S[1],M=(0,r.useState)([]),D=M[0],Z=M[1],_=(0,r.useState)(0),I=_[0],L=_[1],T=D[I],V=!!(0,v.r)(),E=(0,r.useMemo)((function(){var e;return null!==T&&void 0!==T&&null!==(e=T.base)&&void 0!==e&&e.id?{list:[{adId:T.base.id}]}:{list:[]}}),[T]),z=(0,f.Z)(y,{manual:!0}).run;(0,r.useEffect)((function(){w(!1)}),[I,null===T||void 0===T||null===(t=T.base)||void 0===t?void 0:t.id]),(0,r.useEffect)((function(){return function(){s(0),d(!1)}}),[s,d]);var R=(0,r.useCallback)((function(e){N(o,n,i);var t=e.length>2?e.slice(0,2):e;C(o,n,i,{items:t,cursor:0}),Z(t),L(0),s(1)}),[o,n,i,s]),B=(0,r.useCallback)((function(){var e,t=A(o,n,i);return 2===(null===t||void 0===t?void 0:t.cursor)?(Z([]),L(0),void s(2)):null!==t&&void 0!==t&&null!==(e=t.items)&&void 0!==e&&e.length&&t.cursor<2?1===t.cursor&&t.items.length<2?(C(o,n,i,{items:[],cursor:2}),P(o),Z([]),L(0),void s(2)):(Z(t.items),L(t.cursor),void s(1)):(Z([]),L(0),void s(2))}),[o,n,i,s]),W=(0,g.Z)(R),J=(0,g.Z)(B),Y=(0,f.Z)(h,{manual:!0,onSuccess:function(e){var t=function(e){return Array.isArray(e)?e:[]}(e);t.length>0?W.current(t):J.current()},onError:function(e){var t;m.Z.error(null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:"\u7f51\u7edc\u5f02\u5e38")}}).run,F=(0,r.useCallback)((function(){("6"!==n&&"7"!==n||i)&&V&&n&&Y({position:n,positionSub:i})}),[n,i,V,Y]);(0,r.useEffect)((function(){F()}),[F]);var G=(0,r.useCallback)((function(){if(1===D.length)return C(o,n,i,{items:[],cursor:2}),void P(o);2===D.length&&(0!==I?1===I&&(C(o,n,i,{items:[],cursor:2}),P(o)):C(o,n,i,{items:D,cursor:1}))}),[D,I,o,n,i]),U=(0,r.useCallback)((function(){var e=2===D.length&&0===I;if(j&&z(E),e){return C(o,n,i,{items:D,cursor:1}),void L(1)}C(o,n,i,{items:[],cursor:2}),P(o),Z([]),L(0),d(!1),s(0),null===a||void 0===a||a()}),[D,I,j,E,o,n,i,a,z,d,s]),X=(0,r.useCallback)((function(e){G();var t=e.detail,n=t.limitLinkUrl,i=t.limitLinkType,r=t.pcRelativeUrl;if(0===t.urlType)switch(i){case 0:default:break;case 1:l.push(r);break;case 2:case 3:l.push(n);break;case 5:if(k(!1),n.includes("DZ"))return void l.push("".concat(x.Z.egame,"?code=").concat(n));if(/BY/.test(n)||n.includes("SPYL")||n.includes("YGRBY")||n.includes("OBHX"))return void l.push("".concat(x.Z.fishing,"?code=").concat(n));c(n)}else window.location.href=n}),[l,c,G]),H=(0,r.useCallback)((function(){w((function(e){return!e}))}),[]);return{selfVisible:O,marketingAdList:D,displayedAd:T,dontRemindChecked:j,maketingModalVisible:u,handleCloseModal:U,handleClickMarketingAd:X,handleToggleDontRemind:H}}var L=n(85893);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=(0,c.Pi)((function(e){var t,n,i,r,c=(0,a.useRouter)(),s=(0,d.a)().startGame,f=I(V(V({},e),{},{router:c,startGame:s})),g=f.selfVisible,v=f.marketingAdList,m=f.displayedAd,b=f.dontRemindChecked,p=f.maketingModalVisible,h=f.handleCloseModal,y=f.handleClickMarketingAd,O=f.handleToggleDontRemind;return null!==v&&void 0!==v&&v.length&&m&&!e.isBlock?(0,L.jsx)(L.Fragment,{children:g&&p?(0,L.jsx)("div",{className:u().mask,children:(0,L.jsxs)("div",{className:u().box,children:[1===(null===m||void 0===m||null===(t=m.base)||void 0===t?void 0:t.displayCloseType)?(0,L.jsx)("div",{className:u().close,onClick:h}):null,(0,L.jsx)("div",{className:u().imgWrap,children:(0,L.jsx)("div",{className:(0,l.z)(u().imgStyle,u().oneImgStyle),onClick:function(){return y(m)},children:(0,L.jsx)(o.Z,{src:null===m||void 0===m||null===(n=m.base)||void 0===n?void 0:n.webNavigationUrl,width:"100%",height:"100%"},null===m||void 0===m||null===(i=m.base)||void 0===i?void 0:i.id)})}),1===(null===m||void 0===m||null===(r=m.base)||void 0===r?void 0:r.displayHitType)?(0,L.jsxs)("div",{className:u().tipWrap,onClick:O,children:[(0,L.jsx)("i",{className:b?u().selected:""}),(0,L.jsx)("span",{children:"\u4e0d\u518d\u63d0\u793a"})]}):null]})}):null}):(0,L.jsx)(L.Fragment,{})}))},80364:function(e,t,n){"use strict";var i,r,o,a,l,c=n(12831),s=n(92777),u=n(71218),d=n(68949),f=(i=function e(){(0,s.Z)(this,e),(0,c.Z)(this,"maketingModalStatus",r,this),(0,c.Z)(this,"maketingModalVisible",o,this),(0,c.Z)(this,"setMaketingModalStatus",a,this),(0,c.Z)(this,"setMaketingModalVisible",l,this),(0,d.rC)(this)},r=(0,u.Z)(i.prototype,"maketingModalStatus",[d.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),o=(0,u.Z)(i.prototype,"maketingModalVisible",[d.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,u.Z)(i.prototype,"setMaketingModalStatus",[d.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){(0,d.z)((function(){e.maketingModalStatus=t}))}}}),l=(0,u.Z)(i.prototype,"setMaketingModalVisible",[d.aD],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){(0,d.z)((function(){e.maketingModalVisible=t}))}}}),i);t.Z=new f},34313:function(e){e.exports={mask:"DXNbXQiljNkW01uPe1MZ8g__",box:"n8dC8u5ZPBcdOugYlD_xIA__",close:"ust_0Z628e8nGWQ_NO5OdA__",imgWrap:"qIW56hO6O3unXA8T4dmyxw__",imgStyle:"UZgNLOaUFElCtyIfz8zJrA__",oneImgStyle:"yFwgOq40mw5jsL9yMfai3w__",tipWrap:"dmBva5MNH_dhjNBnbDniIg__",selected:"n7QOVeyJsna1okR2mDXo6Q__"}}}]);
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.