PageSourceSearch

https://www.grx.com.tw/_next/static/chunks/685-69e33eb651c8d02e.js

js grx.com.tw collected 2026-10-08 02:44:45 UTC 15,770 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[685],{80685:function(e,t,r){r.d(t,{Z:function(){return er}});var n=r(59499),o=r(67294),s=r(2664),c=r(64593),i=r(63105),a=r.n(i),l=r(40288),u=r(16860),p=r(42464),d=r(8566),h=r(92777),m=r(82262),f=r(10748),b=r(81531),j=r(63553),y=r(37247),v=r(76775),g=r(73727),x=r(45697),O=r.n(x),P=r(28134),w=r(85893);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Z=["location","children","Routes"],C=function(e){(0,b.Z)(o,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,y.Z)(o);if(t){var n=(0,y.Z)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,j.Z)(this,e)});function o(){var e;(0,h.Z)(this,o);for(var t=arguments.length,s=Array(t),c=0;c<t;c++)s[c]=arguments[c];return e=r.call.apply(r,[this].concat(s)),(0,n.Z)((0,f.Z)(e),"state",{isMounted:!1}),e}return(0,m.Z)(o,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"getChildContext",value:function(){return{Routes:this.props.Routes,routerProps:(0,P.delKeys)(this.props,Z)}}},{key:"render",value:function(){var e=this.props,t=e.location,r=e.children,n=(0,P.delKeys)(this.props,Z);return this.state.isMounted?(0,w.jsx)(g.BrowserRouter,D(D({},(0,P.delKeys)(n,["history"])),{},{forceRefresh:!0,children:r})):(0,w.jsx)(v.gx,D(D({location:t,context:{}}
1,(0,P.delKeys)(n,["history"])),{},{children:r}))}}]),o}(o.Component);(0,n.Z)(C,"childContextTypes",{Routes:O().object,routerProps:O().object});var k=r(94537),E=r(83180),L=r(19029),S=r(52474),R=r(20695),T=r(68975),I=r(55512),B=r(24385),M=r(27812),A=r(44529),_=r(49777),F=r.n(_);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var z=function(e){var t=e.id,r=e.subject,o=e.bgColor,s=void 0===o?"#ffeaed":o,c=F().apply(void 0,[s].concat((0,M.Z)(A.bo.HEADING))),i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{backgroundColor:s});return(0,w.jsx)(A.im,{id:t,withlink:!0,children:(0,w.jsx)("div",{className:"promo-small-banner mb-2",style:i,children:(0,w.jsx)("h3",{className:"heading",style:{color:c},children:r})})})},G=r(65041);function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Q=function(e){(0,b.Z)(o,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,y.Z)(o);if(t){var n=(0,y.Z)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,j.Z)(this,e)});function o(){var e;return(0,h.Z)(this,o),e=r.call(this),(0,n.Z)((0,f.Z)(e),"handleClose",function(){e.setState({show:!e.state.show})}),(0,n.Z)((0,f.Z)(e),"renderPromotionList",function(t){var r=t.coupons,n=t.promos,o=(0,w.jsx)("div",{className:"overflow-auto bg-light rounded p-3 mb-3 promo-list small-banner",style:{maxHeight:"200px"},children:n.map(function(e){return(0,w.jsx)(z,q({},e),e.id)})}),s=(0,w.jsx)("div",{className:"d-grid gap-3 overflow-auto bg-light rounded p-3",style:{maxHeight:"320px"},children:r.map(function(t,r){return(0,w.jsx)(B.ZP,q(q({},t),{},{showInfo:!1,couponTypes:e.props.couponTypes}),r)})});return(0,w.jsxs)("div",{className:"text-secondary",children:[(0,w.jsxs)(I.Z,{color:"warning",children:[(0,w.jsx)("i",{className:"fas fa-exclamation-circle me-2"}),(0,G.t)("publisher.coupon.discountWithCartPage")]}),(0,w.jsx)("p",{children:(0,G.t)("publisher.coupon.useCouponsToCart")}),o,s]})}),(0,n.Z)((0,f.Z)(e),"renderSammeryButton",function(t){var r,n,o=t.coupons,s=t.promos;if(o.length){var c=o[0];r=(0,w.jsxs)("div",{className:"rounded me-1 label coupon",children:[(0,B._)(c),(0,G.t)(B.$F[c.couponType])]})}if(s.length){var i=s[0];n=(0,w.jsx)("div",{className:"rounded me-1 label ".concat(i.type),children:i.subject})}return(0,w.jsxs)("div",{className:"promotions-popover-btn promotions-item d-flex align-items-center",role:"button",onClick:e.handleClose,children:[(0,w.jsx)("label",{className:"align-middle mb-0 me-2",children:(0,G.t)("publisher.promotions.popoverLabel")}),r," ",n,(0,w.jsxs)("div",{className:"overflow-hidden",children:[(0,G.t)("publisher.common.more")," ",(0,w.jsx)("i",{className:"fas fa-angle-right"})]})]})}),e.state={show:!1},e}return(0,m.Z)(o,[{key:"render",value:function(){var e=this.state.show,t=this.props,r=t.promotions,n=t.className,o=r.coupons,s=r.promos;return 0===o.length&&0===s.length?null:(0,w.jsxs)("div",{className:n,children:[this.renderSammeryButton({coupons:o,promos:s}),(0,w.jsxs)(S.default,{className:"yep-coupons-modal",isOpen:e,toggle:this.handleClose,children:[(0,w.jsx)(R.default,{toggle:this.handleClose,children:(0,G.t)("publisher.promotions.popoverHeading")}),(0,w.jsx)(T.default,{children:this.renderPromotionList(r)})]})]})}}]),o}
1(o.PureComponent),W=r(5152),$=r.n(W),U=r(41664),V=r.n(U),J=r(11163),X=r(39700);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var et=$()(function(){return Promise.all([r.e(9774),r.e(2598),r.e(2679),r.e(7986),r.e(4918),r.e(9044)]).then(r.bind(r,10704))},{loadableGenerated:{webpack:function(){return[10704]}}}),er=(0,s.connect)(function(e){return e},p.dsBlockActions)(function(e){var t=e.meta.error.statusCode,r=(0,J.useRouter)();if(t)return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(c.q,ee({},e.header)),(0,w.jsx)(d.default,{meta:e.meta})]});var n=e.header,o=e.meta,s=o.siteId,i=o.query,p=o.search,h=o.currentPage,m=o.pathname,f=o.homePage,b=o.categoryId,j=o.detail,y=o.detailId,v=o.newsDetailId,g=e.siteData,x=g.overview,O=g.appearance,P=g.blocks,N=g.sharedStore,D=g.pages,Z=g.globalStore,S=e.member,R=S.user,T=S.wishList,I=e.shopping.cart,B=e.i18n.locale,M=e.actions,A=e.pageQuery,_=L.MEMBER_NAV.getConfig(R,I);h&&A.viewType&&(A.viewType=A.viewType[h.type]);var F={pages:D,page:h,editMode:!1,sid:s,appearance:O,overview:x,blocks:P,sharedStore:N,globalStore:Z,memberNav:_,actions:M,wishList:T,Link:V(),Router:C,NextRouter:r,NextImage:X.Z,renderPromotionPopovers:function(t){var r=t.className,n=e.siteData.sharedStore,o=n.productDetail.coupons,s=n.productEvents,c=a()(s,{type:"promo"});return(0,w.jsx)(Q,{className:r,promotions:{coupons:o,promos:c},couponTypes:x.couponTypes})},routerProps:{history:{location:{pathname:m,search:p}}},pageQuery:ee(ee({search:p,homePage:f,categoryId:b,detail:j,detailId:y,newsDetailId:v},i),A),lang:B};return(0,w.jsx)(et,{overview:x,render:function(e){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(c.q,ee({},n)),(0,w.jsx)(l.Z,ee(ee({},F),{},{dsModule:e})),(0,w.jsxs)(u.default,{children:[(0,w.jsx)(E.Z,{bulletin:x.bulletin}),x.cookiePolicy&&(0,w.jsx)(k.Z,{})]})]})}})})},44529:function(e,t,r){r.d(t,{bo:function(){return m},im:function(){return b}});var n=r(59499),o=r(27812);r(67294);var s=r(32475),c=r.n(s),i=r(49777),a=r.n(i),l=r(2664),u=r(85893);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var h=function(e){var t=e.color;return(0,u.jsx)("div",{children:(0,u.jsx)("svg",{width:"15px",height:"17px",viewBox:"0 0 15 17",children:(0,u.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,u.jsx)("g",{id:"3-PromoPage",fill:t,opacity:"0.4",children:(0,u.jsx)("path",{d:"M7.42947204,0.33399592 L7.54259054,0.436239569 L14.4102412,7.30218726 C15,8 15,8 15,8.49941083 C15,9 15,9 14.4102412,9.69781274 L7.54259054,16.5637604 C6.96093778,17.1454132 6.01789233,17.1454132 5.43623957,16.5637604 C4.85458681,15.9821077 4.85458681,15.0390622 5.43623957,14.4574095 L9.893,10 L1.5,10 C0.671572875,10 0,9.32842712 0,8.5 C0,7.67157288 0.671572875,7 1.5,7 L9.893,7 L5.43623957,2.54259054 C4.89094011,1.99729108 4.85685889,1.13436132 5.33399592,0.549358071 L5.43623957,0.436239569 C5.98153903,-0.109059892 6.84446879,-0.143141109 7.42947204,0.33399592 Z"})})})})})},m={DATE:["rgba(0, 0, 0, .6)","rgba(255, 255, 255, .6)"],HEADING:["rgba(0, 0, 0, .7)","rgba(255, 255, 255, .8)"]},f=function(e){var t=e.years,r=e.months,n=e.date,o=e.hours,s=e.minutes;return o=c()(o,2,"0"),s=c()(s,2,"0"),(0,u.jsxs)("div",{children:[(0,u.jsx)("span",{className:"year",children:t}),(0,u.jsx)("span",{className:"day",children:"".concat(r+1,"/").concat(n)}),(0,u.jsx)("span",{className:"time",children:"".concat(o,":").concat(s)})]})},b=function(e){var t=e.children,r=e.withlink,n=e.id,o=(0,l.useSelector)(function(e){return e}).meta,s=null==o?void 0:o.categoryId;return r?(0,u.jsx)("a",{href:"/promo/".concat(n).concat(s?"?category=".concat(s):""),className:"promo-link",children:t}):(0,u.jsx)(u.Fragment,{children:t})};function j(e){var t=e.id,r=e.subject,n=e.bgColor,s=e.bgImageUrl,c=e.startDate,i=e.endDate,l=e.withlink,p=a().apply(void 0,[n].concat((0,o.Z)(m.DATE))),j=a().apply(void 0,[n].concat((0,o.Z)(m.HEADING))),y=d(d({color:p},{backgroundColor:n}),s?{backgroundImage:"url(".concat(s,")")}:{});return(0,u.jsx)(b,{id:t,withlink:l,children:(0,u.jsxs)("div",{className:"promo-banner",style:y,children:[(0,u.jsx)("h3",{className:"heading line-clamp-2",style:{color:j},children:r}),(0,u.jsxs)("div",{className:"date",children:[(0,u.jsx)(f,d({},c.toObject())),(0,u.jsx)(h,{color:p}),(0,u.jsx)(f,d({},i.toObject()))]})]})})}j.defaultProps={withlink:!1},t.ZP=j},24385:function(e,t,r){r.d(t,{$F:function(){return b},_:function(){return j}});var n=r(59499),o=r(67294),s=r(54798),c=r(30571),i=r(13180),a=r(65041),l=r(27484),u=r.n(l),p=r(56176),d=r.n(p),h=r(85893);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}u().extend(d()),u().locale("zh-tw");var b={cash:"publisher.common.cashDiscount",rate:"publisher.common.discount"},j=function(e){var t=e.couponType,r=e.value,n=e.size;return"cash"===t?(0,h.jsx)(s.default,{className:"coupon-value mb-1",price:r,size:void 0===n?"1":n}):(0,h.jsxs)("span",{className:"coupon-value",children:[r,"折"]})},y=function(e){var t=e.name,r=e.couponType,n=e.value,o=e.minimum,s=e.endDate,i=e.isLocal,l=e.couponLabel;return(0,h.jsxs)("div",{className:"ui-coupon d-flex flex-row",children:[(0,h.jsxs)("div",{className:"left d-flex flex-column align-items-center justify-content-center",children:[j({couponType:r,value:n,size:"6"}),(0,h.jsx)(c.Z,{color:"",children:(0,a.t)(b[r])})]}),(0,h.jsxs)("div",{className:"right",children:[!i&&(0,h.jsx)("span",{className:"badge bg-transparent text-secondary fw-normal",children:l}),(0,h.jsx)("div",{className:"name pb-2 my-2",children:t}),(0,h.jsxs)("div",{className:"cond text-secondary",children:[(0,h.jsx)("div",{children:o>0&&(0,a.t)("publisher.common.minPaid",{minimum:o})}),(0,h.jsxs)("div",{className:"date",children:[(0,a.t)("publisher.common.validPeriod"),(0,h.jsx)("small",{className:"ms-1",children:u()(s).format("L")})]})]})]})]})};t.ZP=function(e){var t=e.name,r=e.code,n=void 0===r?"":r,l=e.couponType,p=e.value,d=e.minimum,m=e.discount,v=e.startDate,g=e.endDate,x=e.excludeCategories,O=void 0===x?[]:x,P=e.excludeItems,w=e.showInfo,N=void 0===w||w,D=e.removeCoupon,Z=e.couponTypes,C=e.belong,k=Z.find(function(e){return"local"!==e.name}),E=k?k.label:null,L="local"===C,S=O.length>0?O.map(function(e,t){return(0,h.jsx)(c.Z,{className:"me-1",children:e.name},t)}):(0,h.jsx)("span",{className:"text-secondary",children:(0,a.t)("publisher.common.no")});return(0,h.jsxs)("div",{children:[(0,h.jsx)(y,f(f({},e),{},{isLocal:L,couponLabel:E})),D?(0,h.jsx)("div",{className:"text-center mt-2",children:(0,h.jsx)(i.default,{color:"link",className:"remove-coupon-btn",onClick:D,size:"sm",children:(0,a.t)("publisher.member.remove")})}):null,function(){if(!N)return null;var e=[{dt:(0,a.t)("publisher.common.name"),dd:(0,h.jsxs)("div",{children:[t,!L&&(0,h.jsx)("span",{className:"badge badge-info fw-normal ms-1",children:E})]})},{dt:(0,a.t)("publisher.shopping.type"),dd:(0,a.t)(b[l])},{dt:(0,a.t)("publisher.shopping.denomination"),dd:j({couponType:l,value:p})},{dt:(0,a.t)("publisher.shopping.couponCode"),dd:n},{dt:(0,a.t)("publisher.shopping.minCost"),dd:(0,h.jsx)(s.default,{className:"text-secondary",price:d})},{dt:(0,a.t)("publisher.shopping.actualDiscountLowPrice"),dd:(0,h.jsx)(s.default,{className:"",price:m})},{dt:P.length>0?(0,a.t)("publisher.shopping.includeCate"):(0,a.t)("publisher.shopping.excludeCate"),dd:S},{dt:(0,a.t)("publisher.common.validPeriod"),dd:"".concat(u()(v).format("L"),"~").concat(u()(g).format("L"))}];return(0,h.jsx)("div",{className:"info",children:(0,h.jsx)("dl",{className:"row px-md-4 mt-2",children:e.map(function(e,t){var r=e.dt,n=e.dd;return(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)("dt",{className:"col-sm-4",children:r}),(0,h.jsx)("dd",{className:"col-sm-8",children:n})]},"info".concat(t))})})})}()]})}}}]);

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.