1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[114],{178:function(a){!function(c,b){a.exports=b()}(this,function(){"use strict";var a="minute",b=/[+-]\d\d(?::?\d\d)?/g,c=/([+-]|\d\d)/g;return function(g,e,f){var d=e.prototype;f.utc=function(a){return new e({date:a,utc:!0,args:arguments})},d.utc=function(c){var b=f(this.toDate(),{locale:this.$L,utc:!0});return c?b.add(this.utcOffset(),a):b},d.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var h=d.parse;d.parse=function(a){a.utc&&(this.$u=!0),this.$utils().u(a.$offset)||(this.$offset=a.$offset),h.call(this,a)};var i=d.init;d.init=function(){if(this.$u){var a=this.$d;this.$y=a.getUTCFullYear(),this.$M=a.getUTCMonth(),this.$D=a.getUTCDate(),this.$W=a.getUTCDay(),this.$H=a.getUTCHours(),this.$m=a.getUTCMinutes(),this.$s=a.getUTCSeconds(),this.$ms=a.getUTCMilliseconds()}else i.call(this)};var j=d.utcOffset;d.utcOffset=function(d,i){var g=this.$utils().u;if(g(d))return this.$u?0:g(this.$offset)?j.call(this):this.$offset;if("string"==typeof d&&null===(d=function(a){void 0===a&&(a="");var f=a.match(b);if(!f)return null;var d=(""+f[0]).match(c)||["-",0,0],g=d[0],e=60*+d[1]+ +d[2];return 0===e?0:"+"===g?e:-e}(d)))return this;var f=16>=Math.abs(d)?60*d:d,e=this;if(i)return e.$offset=f,e.$u=0===d,e;if(0!==d){var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(e=this.local().add(f+h,a)).$offset=f,e.$x.$localOffset=h}else e=this.utc();return e};var k=d.format;d.format=function(a){var b=a||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return k.call(this,b)},d.valueOf=function(){var a=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*a},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var l=d.toDate;d.toDate=function(a){return"s"===a&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var m=d.diff;d.diff=function(a,b,c){if(a&&this.$u===a.$u)return m.call(this,a,b,c);var d=this.local(),e=f(a).local();return m.call(d,e,b,c)}}})},8114:function(m,b,a){"use strict";a.d(b,{Z:function(){return Q}});var n=a(5893),o=a(1291),p=a(9008),c=a(5675),q=a.n(c),r=a(7294),s=a(5009),t=a(2609),d=a(4594),u=a.n(d),v=function(a){var b=a.url,c=a.domain,d=a.className;return(0,n.jsx)(o.Z.div,{className:"".concat(u().box," ").concat(d),children:(0,n.jsx)(o.Z.a,{className:u().logoBox,href:"".concat("https://www.youhui.hk","/").concat("pass/route","?").concat("mercht","=http://").concat(c),target:"_blank",children:(0,n.jsx)(q(),{src:"".concat("https://www.youhui.hk").concat(b),alt:"Logo",layout:"fill"})})})},w=a(9046),x=a(9382),y=a(47),z=a(1675),A=a(4030),B={src:"https://www.youhui.hk/_next/static/media/icon_text_star.250a4c35.svg",height:11,width:12},C=a(3276),D=a(1163),E=a(4202),e=a(4087),F=a.n(e),G=function(a){var c=a.text,b=a.data;return(0,n.jsxs)(o.Z.a,{className:"".concat(F().item," ").concat(b.isChecked?F().isChecked:""),href:b.url,children:[(0,n.jsx)(o.Z.i,{className:F().optionalBox}),(0,n.jsx)(o.Z.p,{children:c})]})},H=function(t){var b=t.total,c=b.coupons_count,d=b.deals_count,u=b.percent_off_count,v=b.price_off_count,e=(0,D.useRouter)(),a=e.query,f=e.asPath,g=(0,r.useState)({url:"",isChecked:!1}),h=g[0],A=g[1],i=(0,r.useState)({url:"",isChecked:!1}),j=i[0],B=i[1],k=(0,r.useState)({url:"",isChecked:!1}),l=k[0],C=k[1],m=(0,r.useState)({url:"",isChecked:!1}),p=m[0],H=m[1],q=(0,r.useState)({url:"",isChecked:!1}),s=q[0],I=q[1],x=(0,r.useRef)();(0,r.useEffect)(function(){(null==a?void 0:a.discount_filter)&&(x.current.scrollLeft=375)},[null==a?void 0:a.discount_filter]);var y=(0,E.yk)(["coupon_filter","discount_filter","top","page","offer"],f),z=(0,w.Z)();return(0,r.useEffect)(function(){A({url:y,isChecked:!(null==a?void 0:a.coupon_filter)&&!(null==a?void 0:a.discount_filter)}),B({url:(0,E.jp)("coupon_filter","coupons",y),isChecked:(null==a?void 0:a.coupon_filter)==="coupons"}),C({url:(0,E.jp)("coupon_filter","deals",y),isChecked:(null==a?void 0:a.coupon_filter)==="deals"}),H({url:(0,E.jp)("discount_filter","percent_off",y),isChecked:(null==a?void 0:a.discount_filter)==="percent_off"}),I({url:(0,E.jp)("discount_filter","price_off",y),isChecked:(null==a?void 0:a.discount_filter)==="price_off"})},[f,y,null==a?void 0:a.coupon_filter,null==a?void 0:a.discount_filter]),z?(0,n.jsxs)(o.Z.div,{className:F().box,ref:x,children:[(0,n.jsx)(G,{text:"\u5168\u90E8\u512A\u60E0\u6D3B\u52D5",data:h}),(0,n.jsx)(G,{text:"\u512A\u60E0\u78BC",data:j}),(0,n.jsx)(G,{text:"\u6298\u6263",data:l}),(0,n.jsx)(G,{text:"% \u6298\u6263",data:p}),(0,n.jsx)(G,{text:"$ \u6298\u6263",data:s})]}):(0,n.jsxs)(o.Z.div,{className:F().box,children:[(0,n.jsx)(G,{text:"\u5168\u90E8\u512A\u60E0\u6D3B\u52D5 (".concat(c+d,")"),data:h}),(0,n.jsx)(G,{text:"\u512A\u60E0\u78BC (".concat(c,")"),data:j}),(0,n.jsx)(G,{text:"\u6298\u6263 (".concat(d,")"),data:l}),(0,n.jsx)(G,{text:"% \u6298\u6263 (".concat(u,")"),data:p}),(0,n.jsx)(G,{text:"$ \u6298\u6263 (".concat(v,")"),data:s})]})},I=function(a){var b=a.total;return(0,n.jsx)(H,{total:b})},f=a(2797),J=a.n(f),K=function(){var a=(0,t.L)();return(0,n.jsx)(o.Z.div,{className:J().box,children:(0,n.jsx)(o.Z.div,{className:J().boxShadow,children:(0,n.jsx)(I,{total:a})})})},L=a(800),M=a(2600),g=a(7484),h=a.n(g),i=a(178),j=a.n(i);h().extend(j());var k=a(7759),N=a.n(k),O=function(){var c=(0,w.Z)(),a=(0,s.fA)(),b=(0,s.GE)();return b&&a.length?(0,n.jsxs)(o.Z.div,{className:N().box,children:[(0,n.jsx)(M.Z,{title:b.name,bottom:"".concat(c?"0.28rem":"46px")}),(0,n.jsx)(o.Z.div,{className:N().codeBox,children:a.map(function(a){var b;return(0,n.jsxs)(o.Z.div,{className:N().codeItem,children:[(0,n.jsxs)(o.Z.div,{className:N().top,children:[(0,n.jsxs)(o.Z.div,{className:N().code,children:[(0,n.jsx)(o.Z.span,{children:"\u512A\u60E0\u78BC\uFF1A"}),(0,n.jsx)(o.Z.span,{children:(null==a?void 0:a.coupon_code)||"\u7121\u9700\u512A\u60E0\u78BC"})]}),(0,n.jsxs)(o.Z.div,{children:[(0,n.jsx)(o.Z.span,{children:"\u904E\u671F\u6642\u9593\uFF1A"}),(0,n.jsx)(o.Z.span,{children:(null==a?void 0:a.expire)?(b=a.expire,h().unix(b).utc()).format("DD/MM/YYYY"):"\u672A\u77E5"})]})]}),(0,n.jsxs)(o.Z.div,{className:N().titleBox,children:[(0,n.jsx)(o.Z.div,{className:N().codeTitle,children:(0,n.jsx)(o.Z.span,{children:"\u8A73\u60C5\uFF1A"})}),(0,n.jsx)(o.Z.div,{className:"hidden_2 ".concat(N().title),children:(0,n.jsx)(L.Z,{coupon_id:a.coupon_id,children:a.title})})]})]},a.coupon_id)})})]}):(0,n.jsx)(n.Fragment,{})},l=a(1969),P=a.n(l),Q=function(){var c=(0,w.Z)(),a=(0,s.GE)(),b=(0,t.L)(),d=(0,s.Kk)(),e=(0,s.Wp)(),f=(0,s.ZX)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.default,{children:[(0,n.jsx)("title",{children:a.search_heading}),(0,n.jsx)("meta",{name:"description",content:a.search_description})]}),(0,n.jsxs)(o.Z.div,{className:P().Info_Coupon_Box,children:[c?(0,n.jsx)(r.Suspense,{fallback:!0,children:(0,n.jsxs)(o.Z.div,{className:P().mobTopBox,children:[(0,n.jsx)(o.Z.div,{className:"".concat(P().mobLogoBox),children:(0,n.jsx)(v,{url:a.image,domain:a.domain})}),(0,n.jsxs)(o.Z.div,{className:P().mobTopInfo,children:[(0,n.jsx)(o.Z.h1,{className:P().mobTopTitle,children:a.name}),(0,n.jsxs)(o.Z.div,{className:P().mobTopMsg,children:[(0,n.jsx)(o.Z.div,{className:P().star,children:(0,n.jsx)(q(),{src:B,alt:"star",layout:"fill"})}),(0,n.jsxs)(o.Z.span,{children:["\u73FE\u6709\u512A\u60E0\uFF1A",b.available_count]})]})]})]})}):(0,n.jsx)(z.Z,{}),(0,n.jsxs)(o.Z.div,{className:P().couponListBox,children:[c?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z.div,{className:P().storeTitle,children:(0,n.jsx)(o.Z.h3,{children:a.name})}),(0,n.jsxs)(o.Z.div,{className:P().storeTopMsg,children:[(0,n.jsxs)(o.Z.div,{className:P().msg1,children:[(0,n.jsx)(q(),{src:A.Z,alt:"Correct"}),(0,n.jsxs)(o.Z.span,{className:P().text,children:["\u5DF2\u9A57\u8B49\u6709\u6548\u512A\u60E0\uFF1A",b.available_count]})]}),(0,n.jsxs)(o.Z.div,{className:P().msg2,children:[(0,n.jsx)(q(),{src:C.Z,alt:"Verified"}),(0,n.jsxs)(o.Z.span,{className:P().text,children:[b.used_today_init,"\u4EBA\u5DF2\u4F7F\u7528"]})]})]})]}),(0,n.jsx)(r.Suspense,{fallback:!0,children:(0,n.jsx)(K,{})}),(0,n.jsxs)(o.Z.div,{className:P().couponList,children:[d.map(function(b){return(0,n.jsx)(x.Z,{type:"staff_pick",coupon:b,store:a},b.coupon_id)}),e.map(function(b){return(0,n.jsx)(x.Z,{type:"default",store:a,coupon:b},b.coupon_id)}),(0,n.jsx)(o.Z.h3,{className:P().expiredTitle,children:"\u904E\u671F\u512A\u60E0\u5238"}),f.map(function(b){return(0,n.jsx)(x.Z,{type:"default",coupon:b,store:a},b.coupon_id)})]})]})]}),(0,n.jsx)(r.Suspense,{fallback:!0,children:(0,n.jsx)(y.Z,{})}),(0,n.jsx)(r.Suspense,{fallback:!0,children:(0,n.jsx)(O,{})})]})}},4087:function(a){a.exports={box:"youhuihk_U3Ki7w",item:"youhuihk_iIWhi6",isChecked:"youhuihk_koZRkl",optionalBox:"youhuihk_yVp9hE"}},2797:function(a){a.exports={box:"youhuihk_eHmpgz",boxShadow:"youhuihk_QyhaB0"}},7759:function(a){a.exports={box:"youhuihk_mmWIAt",codeBox:"youhuihk_NOMgoQ",codeItem:"youhuihk_SPWBf2",top:"youhuihk_cbp8jK",code:"youhuihk_MsOjAs",titleBox:"youhuihk_yZ_I0K",title:"youhuihk_tf2wP7",codeTitle:"youhuihk__9Ev3BO"}}
1,1969:function(a){a.exports={Info_Coupon_Box:"youhuihk_VeYd6x",couponListBox:"youhuihk__64ps7",couponList:"youhuihk_ZG9Bja",storeTitle:"youhuihk_MKh9Ro",expiredTitle:"youhuihk_FqwC0g",storeTopMsg:"youhuihk_o8TnhZ",msg1:"youhuihk_Y044Vo",msg2:"youhuihk__9wbI7o",text:"youhuihk_jl3oUx",mobTopBox:"youhuihk_EwFqRk",mobLogoBox:"youhuihk_Tx12dQ",mobTopInfo:"youhuihk_oHCQR_",mobTopTitle:"youhuihk_TJzoBW",mobTopMsg:"youhuihk_aD2LeT",star:"youhuihk_ePvnpO"}},4594:function(a){a.exports={box:"youhuihk_Pf_xFa",logoBox:"youhuihk__7A3bFJ"}}}])
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.