PageSourceSearch

https://www.anker-jml.com/1018.a6eecbe2.async.js

js anker-jml.com collected 2026-10-07 15:38:57 UTC 6,207 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkxtest=self.webpackChunkxtest||[]).push([[1018],{51862:function(V,b,t){t.r(b),t.d(b,{default:function(){return _}});var B=t(35968),L=t.n(B),d=t(19412),y=t.n(d),C=t(88424),u=t.n(C),m=t(74863),v=t(99011),R=t(93400),S=t(33895),W=t(4600),f=t(17600),p=t(19918),I=t(59242),x=t(41594),n={page:"page___Ljm7Q",container:"container___D0X6J",breadcrumbWrap:"breadcrumbWrap___XjTvt",scrollArea:"scrollArea___g4gJe",grid:"grid___UTRtL",couponCard:"couponCard___QZuSv",couponLeft:"couponLeft___rUt43",expired:"expired___bKjVd",notchTop:"notchTop___wR7Tq",notchBottom:"notchBottom____UPpI",dividerLine:"dividerLine___kINDI",couponRight:"couponRight___S_i78",ruleText:"ruleText___MOkGH",discountWrap:"discountWrap___t2cW0",discountNum:"discountNum___j8cDY",discountWrapCurrency:"discountWrapCurrency___zGCUw",discountSymbol:"discountSymbol___UfTPF",discountNumLarge:"discountNumLarge___MyLu1",discountUnit:"discountUnit___HJ51Q",useBtn:"useBtn___LK4J2",couponRightInfo:"couponRightInfo___UjbHS",couponRightCode:"couponRightCode___MvaFN",loadingWrap:"loadingWrap___ek3tQ",empty:"empty___eDf8w",emptyImg:"emptyImg___hRvX5",emptyTitle:"emptyTitle___jo7CR",emptyDesc:"emptyDesc___KypXF",cardTitle:"cardTitle___YQpcs",cardMeta:"cardMeta___vW48V",codeBox:"codeBox___rcniM",codeText:"codeText___d3pgn",copyIcon:"copyIcon___lLVWg"},e=t(63724),M=t(25971),h=M.default.useLocale;function _(l){var g=l.coupons,T=l.loading,j=l.scrollRef,a=h(),O=(0,x.useState)(!1),A=u()(O,2),$=A[0],D=A[1],F=(0,x.useState)(""),U=u()(F,2),Q=U[0],z=U[1],G=function(s){navigator.clipboard.writeText(s).then(function(){I.y8.show({content:a("benefit_toast_copied")})})},H=function(){var i=y()(L()().mark(function s(c){var r;return L()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,v.getCouponTerms)(c.id);case 3:r=o.sent,z((r==null?void 0:r.data)||a("benefit_rule_no_terms")),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(0),z(a("benefit_rule_fetch_failed"));case 10:D(!0);case 11:case"end":return o.stop()}},s,null,[[0,7]])}));return function(c){return i.apply(this,arguments)}}();return(0,e.jsxs)("div",{className:n.page,children:[(0,e.jsxs)("div",{className:n.container,children:[(0,e.jsx)("div",{className:n.breadcrumbWrap,children:(0,e.jsx)(f.A,{itemRender:function(s,c,r){var N,o=(s==null?void 0:s.path)===((N=r[r.length-1])===null||N===void 0?void 0:N.path);return o?(0,e.jsx)("span",{className:"text-[14px] font-[700] leading-[22px] text-[#1d2129]",children:s.title}):(0,e.jsx)(W.Link,{to:s.path,children:(0,e.jsx)("span",{className:"text-[14px] leading-[22px] cursor-pointer",children:s.title})})},items:[{title:a("index_tab_home"),path:"/"},{title:a("profile_personal_center"),path:"/me"},{title:a("benefit_page_title_benefits"),path:"/benefits"},{title:a("benefit_page_title_coupon"),path:"/benefits/coupon"}]})}),(0,e.jsxs)("div",{className:n.scrollArea,ref:j,children:[g.length===0&&!T&&(0,e.jsxs)("div",{className:n.empty,children:[(0,e.jsx)("img",{src:t(63697),alt:"",className:n.emptyImg}),(0,e.jsx)("div",{className:n.emptyTitle,children:a("benefit_empty_coupon_title")}),(0,e.jsx)("div",{className:n.emptyDesc,children:a("benefit_empty_coupon_desc")})]}),(0,e.jsx)("div",{className:n.grid,children:g.map(function(i){var s=i.status===3;return(0,e.jsxs)("div",{className:n.couponCard,children:[(0,e.jsxs)("div",{className:"".concat(n.couponLeft," ").concat(s?n.expired:""),children:[(0,e.jsxs)("span",{className:n.ruleText,onClick:function(){return H(i)},children:[a("benefit_card_rule")," \u203A"]}),function(){var c=i.discountValue.length,r=c<=3?"32px":c===4?"28px":"22px",N=c<=3?"13px":c===4?"11px":"9px";return i.currency===null?(0,e.jsxs)("div",{className:n.discountWrap,children:[(0,e.jsx)("span",{className:n.discountNum,style:{fontSize:r},children:i.discountValue}),(0,e.jsxs)("div",{className:n.discountUnit,children:[(0,e.jsx)("span",{style:{fontSize:c<=3?"16px":c===4?"14px":"11px"},children:"%"}),(0,e.jsx)("span",{style:{fontSize:c<=3?"9px":c===4?"8px":"6px"},children:"OFF"})]})]}):(0,e.jsxs)("div",{className:n.discountWrapCurrency,children:[(0,e.jsx)("span",{className:n.discountSymbol,style:{fontSize:N},children:i.currency}),(0,e.jsx)("span",{className:n.discountNumLarge,style:{fontSize:r},children:i.discountValue})]})}(),(0,e.jsx)("div",{className:n.useBtn,onClick:function(){return!s&&window.open(i.siteUrl,"_blank")},children:a(s?"benefit_card_status_expired":"benefit_card_action_use")}),(0,e.jsx)("div",{className:n.notchTop}),(0,e.jsx)("div",{className:n.notchBottom}),(0,e.jsx)("div",{className:n.dividerLine})]}),(0,e.jsxs)("div",{className:"".concat(n.couponRight," ").concat(s?n.expired:""),children:[(0,e.jsxs)("div",{className:n.couponRightInfo,children:[(0,e.jsx)("div",{className:n.cardTitle,children:i.siteName}
1),(0,e.jsxs)("div",{className:n.cardMeta,children:[a("benefit_card_valid_until"),(0,R.w3)(i.validUntil)||a("benefit_card_valid_forever")]}),(0,e.jsxs)("div",{className:n.cardMeta,children:[a("benefit_card_source"),i.sourceProjectName]})]}),(0,e.jsxs)("div",{className:"".concat(n.codeBox," ").concat(n.couponRightCode),children:[(0,e.jsx)("span",{className:n.codeText,children:i.couponCode}),(0,e.jsx)(S.A,{className:n.copyIcon,onClick:function(){return G(i.couponCode)}})]})]})]},i.id)})}),T&&(0,e.jsx)("div",{className:n.loadingWrap,children:(0,e.jsx)(p.A,{size:"small"})})]})]}),(0,e.jsx)(m.A,{visible:$,title:a("benefit_rule_title_coupon"),content:Q,onClose:function(){return D(!1)}})]})}},5335:function(V,b,t){t.d(b,{s:function(){return L}});function B(d,y,C){var u=C||{},m=u.noTrailing,v=m===void 0?!1:m,R=u.noLeading,S=R===void 0?!1:R,W=u.debounceMode,f=W===void 0?void 0:W,p,I=!1,x=0;function n(){p&&clearTimeout(p)}function e(h){var _=h||{},l=_.upcomingOnly,g=l===void 0?!1:l;n(),I=!g}function M(){for(var h=arguments.length,_=new Array(h),l=0;l<h;l++)_[l]=arguments[l];var g=this,T=Date.now()-x;if(I)return;function j(){x=Date.now(),y.apply(g,_)}function a(){p=void 0}!S&&f&&!p&&j(),n(),f===void 0&&T>d?S?(x=Date.now(),v||(p=setTimeout(f?a:j,d))):j():v!==!0&&(p=setTimeout(f?a:j,f===void 0?d-T:d))}return M.cancel=e,M}function L(d,y,C){var u=C||{},m=u.atBegin,v=m===void 0?!1:m;return B(d,y,{debounceMode:v!==!1})}}}]);

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.