1/*! @version pwa-studio: 0.0.1, @magento/venia-ui: ~11.3.0, @magento/upward-security-headers: ~1.0.14, @magento/pwa-theme-venia: ~2.4.0, @magento/pwa-buildpack: ~11.4.3, @magento/peregrine: ~14.2.1, @magento/pagebuilder: ~9.2.1, @magento/eslint-config: ~1.5.0, @magento/babel-preset-peregrine: ~1.2.3, @apollo/client: ~3.5.0 */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{Wqea:function(e,t,n){"use strict" 3n.r(t),n.d(t,"default",function(){return ne}) 4var a,i=n("q1tI"),r=n.n(i),o=n("Ty5D"),s=n("+TN3"),l={queries:{getPostQuery:{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPost"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blogPost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canonical_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filtered_content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured_image"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author_url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"post_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publish_time"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views_count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tag_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tag_url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category_level"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"breadcrumbs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category_uid"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"related_posts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"short_filtered_content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"post_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publish_time"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views_count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category_url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"featured_image"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"related_products"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1178,source:{body:"\n query GetPost ($postId: String) {\n blogPost (id: $postId) {\n post_id\n meta_title\n meta_description\n canonical_url\n title\n filtered_content\n featured_image\n author {\n author_id\n name\n author_url\n }\n post_url\n publish_time\n views_count\n tags {\n tag_id\n title\n tag_url\n }\n categories {\n category_id\n title\n category_url\n category_level\n breadcrumbs {\n category_uid\n }\n }\n related_posts {\n post_id\n title\n short_filtered_content\n post_url\n publish_time\n views_count\n categories {\n category_id\n title\n category_url\n }\n featured_image\n }\n related_products\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}}}},c=n("KGRd"),d=n("RIqP"),m=n.n(d),p=n("J4zp"),u=n.n(p),g=n("55Ip"),v=n("dDsW"),k=n("kriW"),f=n("lcLu"),h=n("STDB"),_=n("LboF"),b=n.n(_),x=n("zgGT"),N={injectType:"singletonStyleTag",insert:"head",singleton:!0},y=(b()(x.a,N),x.a.locals||{}),w=n("sAbx"),E={injectType:"singletonStyleTag",insert:"head",singleton:!0},F=(b()(w.a,E),w.a.locals||{}),S=function Categories(e){var t=e.categories 5return t.length>0?r.a.createElement("div",{className:F.category},t.map(function(e){var t=e.category_id,n=e.title,a=e.category_url 6return r.a.createElement(g.b,{key:t,className:F.categoryName,to:new URL(a).pathname,title:n},n)})):null},C=n("hGPe"),T=function ViewCount(e){var t=e.views_count 7return r.a.createElement("span",{className:F.viewCount},r.a.createElement("img",{src:"/venia-static-assets/icons/health/eye.svg",className:F.iconEye}),t," ",r.a.createElement(k.a,{id:"healthArticle.view",defaultMessage:"views"}))},I=n("dgmk"),M=n("juT5"),A=n("9itn"),D=function RelatedPosts(e){var t=e.relatedPosts,n=e.category,a=e.classes,o=Object(i.useMemo)(function(){return n?"/health/ac/".concat(n.title):null},[n]),s="zh-HK"===Object(v.a)().locale?"YYYYå¹´MMæDDæ¥":"DD MMMM YYYY" 8return t.length>0?r.a.createElement("div",{className:a.related},r.a.createElement("div",{className:a.relatedTitle},r.a.createElement("div",{className:a.relatedTitleText},r.a.createElement(k.a,{id:"healthArticle.relatedArticle",defaultMessage:"Related Articles"}
8)),o&&r.a.createElement(g.b,{className:a.viewAll,to:o},r.a.createElement(k.a,{id:"healthArticle.viewAll",defaultMessage:"View all"}),r.a.createElement(I.a,{src:M.a,size:16}))),r.a.createElement("div",{className:a.postList},t.map(function(e){var t,n=e.post_id,i=e.title,o=e.post_url,l=e.short_filtered_content,c=e.publish_time,d=e.views_count,m=e.categories,p=e.featured_image 9return r.a.createElement("div",{key:n,className:a.postItem},"false"!==p&&r.a.createElement("div",{className:a.imageContainer},r.a.createElement(g.b,{className:a.imageWrapper,to:new URL(o).pathname},(t=Object(A.c)(p,A.a),r.a.createElement("img",{className:a.postImage,srcSet:t.srcSet,src:t.src,sizes:"100vw",alt:i,loading:"lazy",decoding:"async"})))),r.a.createElement("div",{className:a.blockInfo},r.a.createElement(S,{categories:m}),r.a.createElement("div",{className:a.postItemData},r.a.createElement(C.a,{publish_time:c,postDate:a.postDate,formatType:s}),r.a.createElement(T,{views_count:d})),r.a.createElement("div",{className:a.postTitle},r.a.createElement(g.b,{className:a.postItemName,to:new URL(o).pathname},i)),r.a.createElement("div",{className:a.postDesc},r.a.createElement(h.a,{html:l}))))}))):null},O=n("wVoG"),P={queries:{getRelatedProductsQuery:{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getRelatedProducts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"relatedProducts"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productsV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"sku"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"in"},value:{kind:"Variable",name:{kind:"Name",value:"relatedProducts"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_suffix"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stock_status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"max_order_qty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"atp_qty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"only_x_left_in_stock"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"express_delivery"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"small_image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"product_size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price_range"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"maximum_price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"regular_price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"final_price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"discount"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount_off"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percent_off"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"brand_information"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brand_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_path"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"offers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promo_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"distribution_promo_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rule_code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"store_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"is_yuu_promotion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:1762,source:{body:"\n query getRelatedProducts($relatedProducts: [String]) {\n productsV3(filter: { sku: { in: $relatedProducts } }) {\n items {\n uid\n name\n url_key\n url_suffix\n stock_status\n max_order_qty\n atp_qty\n only_x_left_in_stock\n express_delivery\n sku\n small_image {\n url\n }\n product_size\n price_range {\n maximum_price {\n regular_price {\n value\n currency\n }\n final_price {\n value\n currency\n }\n discount {\n amount_off\n percent_off\n }\n }\n }\n categories {\n uid\n name\n }\n brand_information {\n brand_id\n name\n url_path\n }\n offers {\n id\n promo_id\n distribution_promo_id\n name\n rule_code\n image\n description\n content {\n store_id\n message\n description\n }\n is_yuu_promotion\n __typename\n }\n }\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}}}},z=n("qQMA"),j=function RelatedProducts(e){var t=Object(z.b)().innerWidth<=767,n=(e.appearance,e.auto
9play),a=e.autoplaySpeed,i=(e.infinite,e.arrows),o=void 0===i?!t:i,l=e.dots,c=(e.draggable,e.carouselMode,e.centerPadding,e.pathNames,e.textAlign,e.border,e.borderColor,e.borderWidth,e.borderRadius,e.marginTop,e.marginRight,e.marginBottom,e.marginLeft,e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft,e.cssClasses,e.slidesToShow,e.slidesToShowMedium,e.slidesToShowSmall,e.slidesToShowSmallCenterMode,e.moduleTitle,e.moreName,e.moreLink),d=e.relatedProducts,m=e.classes,p=P.queries.getRelatedProductsQuery,u=Object(s.a)(p,{variables:{relatedProducts:d},skip:!d.length,fetchPolicy:"cache-and-network"}),v=u.data 10u.error,u.loading 11if(v){var f=v.productsV3.items,h={autoplay:n,autoplaySpeed:a,arrows:o,dots:l,breakpoints:{0:{slidesPerView:2,spaceBetween:8},768:{slidesPerView:6,spaceBetween:16}}} 12return null!=f&&f.length?r.a.createElement("div",{className:m.relatedProducts},r.a.createElement("div",{className:m.relatedTitle},r.a.createElement("div",{className:m.relatedTitleText},r.a.createElement(k.a,{id:"healthArticle.relatedProduct",defaultMessage:"Related Product"})),c&&r.a.createElement(g.b,{className:m.viewAll,to:c},r.a.createElement(k.a,{id:"healthArticle.viewAll",defaultMessage:"View all"}),r.a.createElement(I.a,{src:M.a,size:16,attrs:{color:"#FF8300"}}))),r.a.createElement(O.a,{settings:h,items:f})):null}return null},L={23:"HKHCCat06",2:"HKHCCat01",5:"HKHCCat03",8:"HKHCCat04",11:"HKHCCat05",20:"HKHCCat02"},H=function Categories(e){var t=e.categories,n=e.classes,a=t.filter(function(e){return 0===e.category_level}) 13return a.length>0?r.a.createElement(i.Fragment,null,r.a.createElement("div",{className:n.cateTitle},r.a.createElement(k.a,{id:"healthArticle.articleCategory",defaultMessage:"Article Category"})),r.a.createElement("div",{className:n.postCategories},a.map(function(e){var t=e.category_id,n=e.title,a=e.category_url,i="/venia-static-assets/icons/health/".concat(L[t]||"HKHCCat01",".png") 14return r.a.createElement(g.b,{key:t,className:"category-name",to:new URL(a).pathname,title:n},r.a.createElement("img",{src:i,alt:n}),r.a.createElement("span",null,n))}))):null},R=n("+QRC"),W=n.n(R) 15function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t] 16for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var V,G=function SvgPhone(e){return i.createElement("svg",_extends({fill:"none","data-icon":"phone",viewBox:"0 0 17 17",width:"1em",height:"1em"},e),a||(a=i.createElement("path",{d:"M13.944 3.13A7.87 7.87 0 008.337.805a7.937 7.937 0 00-6.871 11.893L.34 16.805 4.544 15.7a7.904 7.904 0 003.79.964h.003c4.3
1668 0 8.004-3.557 8.004-7.928 0-2.118-.9-4.107-2.397-5.607zm-5.607 12.2a6.578 6.578 0 01-3.357-.918l-.24-.143-2.492.653.664-2.432-.157-.25a6.568 6.568 0 01-1.007-3.507c0-3.632 2.957-6.589 6.593-6.589 1.76 0 3.414.686 4.657 1.932 1.243 1.247 2.007 2.9 2.004 4.66 0 3.636-3.033 6.594-6.665 6.594zm3.614-4.936c-.196-.1-1.17-.579-1.353-.643-.182-.068-.314-.1-.447.1-.132.2-.51.643-.628.779-.114.132-.232.15-.429.05-1.164-.582-1.928-1.04-2.696-2.357-.204-.35.204-.325.582-1.083.064-.132.032-.246-.018-.346-.05-.1-.446-1.075-.61-1.471-.161-.386-.325-.333-.447-.34-.114-.007-.246-.007-.378-.007a.734.734 0 00-.53.247c-.181.2-.692.678-.692 1.653s.71 1.918.807 2.05c.1.132 1.397 2.132 3.386 2.993 1.257.543 1.75.59 2.379.496.382-.057 1.17-.478 1.335-.943.165-.464.165-.86.114-.942-.046-.09-.178-.14-.375-.236z",fill:"#212121"})))},q=n("yAu9") 17function facebook_extends(){return(facebook_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t] 18for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var Y,B=function SvgFacebook(e){return i.createElement("svg",facebook_extends({fill:"none","data-icon":"facebook",viewBox:"0 0 17 17",width:"1em",height:"1em"},e),V||(V=i.createElement("path",{d:"M16.34 8.834c0-4.435-3.58-8.03-8-8.03-4.418 0-8 3.595-8 8.03a8.032 8.032 0 006.07 7.795v-5.342H4.76V8.834h1.65V7.777c0-2.732 1.23-3.999 3.906-3.999.506 0 1.381.1 1.74.201v2.22a10.501 10.501 0 00-.925-.03c-1.312 0-1.818.498-1.818 1.794v.871h2.612l-.45 2.453H9.31v5.518c3.962-.48 7.03-3.865 7.03-7.97z",fill:"#212121"})))} 19function link_extends(){return(link_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t] 20for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var U=function SvgLink(e){return i.createElement("svg",link_extends({fill:"none","data-icon":"link",viewBox:"0 -6 24 24",width:"1em",height:"1em"},e),Y||(Y=i.createElement("path",{d:"M21.481 10.227l-3.972 3.972c-2.004 1.969-5.203 1.969-7.172 0-1.863-1.898-1.969-4.886-.246-6.89l.176-.211a.84.84 0 011.195-.07.84.84 0 01.07 1.195l-.14.175a3.336 3.336 0 00.14 4.606c1.301 1.3 3.445 1.3 4.781 0l3.973-3.973a3.417 3.417 0 000-4.781 3.407 3.407 0 00-4.605-.14l-.211.175a.84.84 0 01-1.196-.07.84.84 0 01.07-1.195l.212-.176c2.004-1.758 5.027-1.653 6.925.21 1.97 1.97 1.97 5.169 0 7.173zM3.165 9.418l4.008-3.973a5.05 5.05 0 017.136 0 5.017 5.017 0 01.247 6.89l-.211.212c-.282.351-.844.422-1.196.105a.84.84 0 01-.07-1.195l.211-.21a3.373 3.373 0 00-.176-4.606 3.311 3.311 0 00-4.746 0L4.36 10.613c-1.3 1.301-1.3 3.446 0 4.782a3.407 3.407 0 004.606.14l.21-.176a.84.84 0 011.196.07.84.84 0 01-.07 1.196l-.211.176c-2.004 1.758-5.028 1.652-6.926-.211-1.969-1.969-1.969-5.203 0-7.172z",fill:"#212121"})))},K=n("Z2Vb"),Q=n("yfPB"),J=n("i8i4"),X=n("Q9JZ"),Z=function ShareWith(e){var t=Object(v.a)().formatMessage,n=Object(o.i)().id,a=Object(i.useState)(""),s=u()(a,2),l=s[0],c=s[1],d=function handleShare(e){switch(Object(K.c)({articleSocialTarget:"cmsitem_"+n,articleSocialNetwork:e}),Object(Q.h)({method:e}),e){case"facebook":!function shareToFacebook(){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(document.URL))}() 21break 22case"link":!function openToolTips(){c(t({id:"health.tooltips",defaultMessage:"Copied link"})),setTimeout(function(){c("")},2e3)}(),function copyToClipboard(){W()(document.URL)}() 23break 24case"whatsapp":!function shareToWhatsapp(){window.open("https://wa.me/?text="+encodeURIComponent(document.URL))}() 25break 26case"email":!function shareToEmail(){window.open("mailto:?body="+encodeURIComponent(document.URL))}()}} 27return r.a.createElement("span",{className:F.shareWith},r.a.createElement(k.a,{id:"healthArticle.share",defaultMessage:"Share"}),r.a.createElement(I.a,{src:G,size:20,onClick:function onClick(){return d("whatsapp")}}),r.a.createElement(I.a,{src:q.a,size:20,onClick:function onClick(){return d("email")}}),r.a.createElement(I.a,{src:B,size:20,onClick:function onClick(){return d("facebook")}}),r.a.createElement(i.Fragment,null,r.a.createElement("div",{"data-tooltip-id":"link-tooltip","data-tooltip-content":l},r.a.createElement(I.a,{src:U,size:20,onClick:function onClick(){return d("link")}})),Object(J.createPortal)(r.a.createElement(X.a,{id:"link-tooltip",className:F.custom_tooltip,classNameArrow:F.custom_tooltip_arrow,isOpen:!!l,place:"bottom"}),document.body)))},$=function Tags(e){var t=e.tags 28return t.length>0?r.a.createElement("div",{className:F.postTags},t.map(function(e){var t=e.tag_id,n=e.title,a=e.tag_url 29return r.a.createElement(g.b,{key:t,className:F.postTag,to:new URL(a).pathname,title:n},n)})):null},ee=function PostDetails(e){var t,n=e.post,a=Object(v.a)().locale,o=Object(i.useState)([]),s=u()(o,2),l=s[0],c=s[1],d=Object(i.useState)(""),p=u()(d,2),_=p[0],b=p[1],x="zh-HK"===a?"YYYYå¹´MMæDDæ¥":"DD MMMM YYYY",N=Object(i.useMemo)(function(){return n&&n.categories&&0!==n.categories.length?m()(n.categories).sort(function(e,t){return t.category_level-e.category_level})[0]:null},[n]) 30if(Object(i.useEffect)(function(){if(n&&n.filtered_content){var e=(new DOMParser).parseFromString(n.filtered_content,"text/html"),t=e.querySelectorAll("h1,h2,h3,h4,h5,h6"),a=Array.from(t).map(function(e,t){var n="heading-".concat(t),a=document.createElement("a"),i=document.createElement("div") 31return a.className="article-anchor",a.id=n,a.setAttribute("style","margin-top: -50px;padding-top: 50px;"),i.setAttribute("data-content-type","text"),i.setAttribute("data-appearance","default"),i.append(a),e.parentNode.insertBefore(i,e),{id:n,text:e.textContent}}) 32c(a),b(e.body.innerHTML)}Object(K.a)(n)},[n]),Object(i.useEffect)(function(){if(l.length>0){var e=window.location.hash 33if(e){var t=document.querySelector(e) 34t&&t.scrollIntoView()}}},[l]),n){n.post_id,n.post_url 35var w=n.title,E=(n.author,n.categories),F=n.views_count,S=n.publish_time,I=n.featured_image,M=n.tags,O=(n.filtered_content,n.meta_title,n.meta_description,n.related_posts),P=n.related_products 36return n.canonical_url,r.a.createElement("div",{className:y.pageContent},r.a.createElement(f.b,null,w),r.a.createElement("div",{className:y.columns},r.a.createElement("div",{className:y.column},r.a.createElement("article",{className:y.postWrapper},r.a.createElement("div",{className:y.pageTitleWrapper},r.a.createElement("div",{className:y.pageTitle},w)),r.a.createElement("div",{className:y.postView},r.a.createElement("div",{className:y.postHolder},r.a.createElement("div",{className:y.postHeader},N&&r.a.createElement("div",{className:y.postCategory},r.a.createElement("img",{src:"/venia-static-assets/images/orange_health-care.png",alt:""}),r.a.createElement(g.b,{to:new URL(N.category_url).pathname,title:N.title},r.a.createElement("span",null,N.title))),l.length>0&&r.a.createElement("div",{className:y.postAnchor},r.a.createElement("h3",null,r.a.createElement(k.a,{id:"healthArticle.articleContent",defaultMessage:"Content:"})),r.a.createElement("div",{className:y.postAnchorList},l.map(function(e,t){return r.a.createElement(i.Fragment,{key:e.id},r.a.createElement("a",{href:"#".concat(e.id)},e.text),t<l.length-1&&" | ")}))),r.a.createElement("div",{className:y.postDataWrapper},r.a.createElement("div",null,r.a.createElement(C.a,{publish_time:S,postDate:y.postDate,formatType:x}),r.a.createElement(T,{views_count:F})),r.a.createElement(Z,null)),r.a.createElement("p",{className:y.postDisclaimer}
36,r.a.createElement(k.a,{id:"healthArticle.articleDisclaimer",defaultMessage:"*æ¬æç« å §å®¹ç´å±¬å°å®¶å人æè¦ï¼è©³æ è«è«®è©¢å°æ¥äººå£«æè¦ã"}))),r.a.createElement("div",{className:y.postContent},r.a.createElement("div",{className:y.clearfix},"false"!==I&&r.a.createElement("div",{className:y.postFeaturedImage},(t=Object(A.c)(I,A.a),r.a.createElement("img",{srcSet:t.srcSet,src:t.src,sizes:"100vw",alt:w,loading:"lazy",decoding:"async"}))),r.a.createElement("div",{className:y.postDescription},r.a.createElement(h.a,{html:_}))))))),r.a.createElement("div",{className:y.relatedLabelWrapper},M.length>0?r.a.createElement("div",{className:y.readMore},r.a.createElement("div",{className:y.blockTitle},r.a.createElement(k.a,{id:"healthArticle.readMore",defaultMessage:"Read More"})),r.a.createElement($,{tags:M})):null)),r.a.createElement("div",{className:y.sidebar},r.a.createElement(H,{categories:E,classes:y}),r.a.createElement(D,{relatedPosts:O,category:N,classes:y}))),r.a.createElement(j,{moduleTitle:r.a.createElement(k.a,{id:"healthArticle.relatedProducts",defaultMessage:"Related Products in this Article"}),relatedProducts:P,classes:y}))}return null},te=n("32P0") 37Object(te.b)({url:location.pathname,name:"HealthArticle"}) 38var ne=function Post(){var e=Object(o.i)().id,t=Object(o.h)() 39new URLSearchParams(t.search).get("post_id") 40Object(i.useEffect)(function(){window.scrollTo(0,0)},[]) 41var n=l.queries.getPostQuery,a=Object(s.a)(n,{variables:{postId:e},skip:!e,fetchPolicy:"cache-and-network"}),d=a.data,m=a.error 42if(a.loading&&!d)return null 43if(m)return r.a.createElement("div",null,"Data Fetch Error") 44var p=(d||{}).blogPost 45return r.a.createElement(i.Fragment,null,r.a.createElement(f.a,{property:"og:title",name:"title",content:p.meta_title}),r.a.createElement(f.a,{property:"og:description",name:"description",content:p.meta_description}),r.a.createElement(f.a,{property:"og:image",itemprop:"image",content:p.featured_image}),r.a.createElement(f.a,{property:"og:url",content:t.href}),r.a.createElement(f.a,{property:"og:image:type",content:"image/png"}),r.a.createElement(f.a,{property:"og:image:height",content:"1260"}),r.a.createElement(f.a,{property:"og:image:width",content:"640"}),r.a.createElement(f.a,{property:"og:sitename",content:"è¬å¯§å¥åº·é »é"}),r.a.createElement(f.a,{name:"google-site-verification",content:"AYehx8sgWhhK-SRa6iIvhjV8lZWGnNlYGnHO-kJGcQ0"}),r.a.createElement("div",{className:y.blogMenuWrapper},r.a.createElement(c.a,null)),r.a.createElement(ee,{post:p}))}},Z2Vb:function(e,t,n){"use strict" 46n.d(t,"c",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r}) 47var a=function trackContentShareClick(e){var t 48null!==(t=window)&&void 0!==t&&t.dataLayer&&window.dataLayer.push({event:"content_share_click",ecommerce:{ecomm_articleSocialNetwork:e.articleSocialNetwork,ecomm_articleSocialAction:"Share",ecomm_articleSocialTarget:"cmsitem_00315086"}})},i=function trackContentArticleCategoryClick(e){var t 49null!==(t=window)&&void 0!==t&&t.dataLayer&&window.dataLayer.push({event:"content_article_category_click",categoryname:e})},r=function trackArticleView(e){var t 50if(null!==(t=window)&&void 0!==t&&t.dataLayer){var n,a,i=null===(n=e.post_url)||void 0===n?void 0:n.split("/") 51window.dataLayer.push({event:"article_view",article:[{acticle_name:e.title,article_category:e.categories?null===(a=e.categories[0])||void 0===a?void 0:a.title:"",article_id:i?i[i.length-1]:""}]})}}},sAbx:function(e,t,n){"use strict" 52var a=n("JPst"),i=n.n(a)()(function(e){return e[1]}) 53i.push([e.i,'/* Tags */\n.postInfo-postTag-tBi {\n border: 1px solid #DCD6D1;\n border-radius: 20px;\n padding: 6px 15px;\n text-align: center;\n /* margin: 3px; */\n white-space: nowrap;\n display: inline-block;\n max-width: -moz-fit-content;\n max-width: fit-content;\n font-size: 12px;\n color: #373737;\n}\n\n.postInfo-postTags-faX {\n display: flex;\n flex-wrap: wrap;\n gap: 7px;\n}\n\n/* viewCount */\n\n.postInfo-viewCount-GBj {\n display: inline-flex;\n align-items: center;\n margin-right: 10px;\n}\n\n.postInfo-viewCount-GBj i {\n margin: 0 5px;\n}\n\n/* shareWith */\n\n.postInfo-shareWith-g50 {\n display: inline-flex;
53\n align-items: center;\n gap: 10px;\n}\n\n.postInfo-shareWith-g50 [class^="icon-root"] {\n cursor: pointer;\n}\n\n/* categories */\n\n.postInfo-category-vmM {\n display: flex;\n gap: 10px;\n}\n\n.postInfo-categoryName-HoB {\n font-size: 14px;\n font-weight: 700;\n color: #F5670D;\n margin-bottom: 5px;\n}\n\n.postInfo-iconEye-HQp {\n display: inline-block;\n padding-right: 5px;\n}\n\n.postInfo-custom_tooltip-Mpr {\n z-index: 9999!important;\n max-width: 320px!important;\n opacity: 1!important;\n padding: 12px!important;\n border-radius: 4px!important;\n background: #616161!important;\n font-size: 12px!important;\n line-height: 18px!important;\n}\n\n.postInfo-custom_tooltip_arrow-HA7 {\n width: 16px!important;\n height: 16px!important;\n background: #616161!important;\n border-radius: 2px!important;\n}\n',""]),i.locals={postTag:"postInfo-postTag-tBi",postTags:"postInfo-postTags-faX",viewCount:"postInfo-viewCount-GBj",shareWith:"postInfo-shareWith-g50",category:"postInfo-category-vmM",categoryName:"postInfo-categoryName-HoB",iconEye:"postInfo-iconEye-HQp",custom_tooltip:"postInfo-custom_tooltip-Mpr",custom_tooltip_arrow:"postInfo-custom_tooltip_arrow-HA7"},t.a=i},zgGT:function(e,t,n){"use strict" 54var a=n("JPst"),i=n.n(a),r=n("BLwb"),o=n("OMXT"),s=i()(function(e){return e[1]}) 55s.i(r.a,"",!0),s.i(o.a,"",!0),s.push([e.i,".post-columns--M- {\n /* composes: pt-2.5 from global; */\n}\n.post-column-bX0 {\n /* composes: grid from global; */\n width: 100%;\n align-self: flex-start;\n /* gap: 15px; */\n}\n.post-sidebar-F-U {\n}\n\n.post-postWrapper-4ok {\n border-radius: 8px;\n background-color: white;\n}\n\n.post-pageTitle-dCq {\n font-size: 24px;\n font-weight: 700;\n color: #000000;\n margin-bottom: 17px;\n}\n\n.post-postCategory-cnl {\n margin-bottom: 17px;\n}\n.post-postCategory-cnl span {\n font-size: 16px;\n font-weight: 700;\n color: #212529;\n}\n\n.post-postCategory-cnl img{\n width: 16px;\n height: 16px;\n margin-right: 10px;\n}\n\n.post-postAnchor-Oe0 h3 {\n color: #292929;\n font-size: 16px;\n padding-bottom: 4px;\n}\n\n.post-postAnchorList-SrG {\n color: #0182dc !important;\n}\n\n.post-postAnchor-Oe0 a:visited {\n color: #0182dc !important;\n}\n\n.post-postAnchor-Oe0 a {\n font-size: 14px;\n margin: 0px 5px 0px 5px;\n}\n\n.post-readMore-nM7 {\n /* background-color: #fff; */\n border-radius: 5px;\n padding: 17px 19px;\n}\n\n.post-relatedLabelWrapper-bHM {\n margin-top: 8px;\n margin-bottom: 1rem;\n}\n\n\n.post-blockTitle-1zw {\n color: #000;\n margin-bottom: 13px;\n font-size: 18px;\n font-weight: 700;\n}\n\n.post-cateTitle-G9b {\n color: #333333;\n font-size: 16px;\n font-weight: 700;\n margin-bottom: 16px;\n}\n\n.post-relatedTitle-x-7 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 16px;\n}\n\n.post-relatedTitleText-i24 {\n font-size: 16px;\n font-weight: 700;\n color: #000;\n}\n\n.post-viewAll-3l9 {\n display: flex;\n align-items: end;\n color: #333333;\n font-size: 12px;\n font-weight: 500;\n text-decoration: none;\n background-color: white;\n padding: 5px 10px;\n border-radius: 15px;\n}\n\n.post-viewAll-3l9 span {\n margin-left: 5px;\n}\n\n/* Post Categories */\n\n.post-postCategories-HRC {\n margin-bottom: 1.5rem;\n margin-bottom: 16px;\n gap: 65px;\n}\n.post-postCategories-HRC a {\n /* margin: 0 5px 0 0; */\n /* padding: 7px; */\n font-size: 11px;\n font-weight: 500;\n text-decoration: none;\n text-transform: uppercase;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 5px;\n}\n\n.post-postCategories-HRC img {\n width: 35px;\n height: auto;\n}\n\n.post-postCategories-HRC span {\n padding: 5px 0;\n}\n\n.post-postDataWrapper-vKF {\n font-size: 14px;\n font-weight: 500;\n color: #000000;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.post-postDate-fCX {\n margin-right: 40px;\n}\n\n.post-postDisclaimer-JvF {\n margin-top: 4px;\n color: #000000;\n font-size: 12px;\n font-weight: 500;\n}\n\n/* Image */\n.post-postFeaturedImage-2O6 {\n font-size: 0;\n margin-bottom: 17px;\n}\n/* Post Text */\n.post-postContent-oEY {\n margin-top: 20px;\n}\n.post-postContent-oEY .post-postDescription-OHG img {\n /* margin: 15px 0; */\n max-width: 100%;\n /* height: auto; */\n}\n.post-postContent-oEY .post-postDescription-OHG ul,\n.post-postContent-oEY .post-postDescription-OHG ol {\n list-style-position: inside;\n}\n\n/* Related Products */\n.post-relatedProducts-Evf {\n margin-top: 16px;\n margin-bottom: 20px;\n padding: 0 2.5rem;\n}\n\n.post-relatedProducts-Evf [class^='viewmore-moduleTitle'] {\n color: #292929;\n font-size: 16px;\n font-weight: 400;\n}\n\n/* Block Related */\n\n.post-postList-I7J {\n gap: 10px;\n /* margin-top: 16px; */\n}\n\n.post-postItem-WCL {\n border: 1px solid #eee;\n background-color: white;\n overflow: hidden;\n}
55\n\n.post-postImage-3jZ {\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n}\n\n.post-blockInfo-XCh {\n padding: 8px 30px;\n}\n\n.post-postItemData-mct {\n font-size: 11px;\n color: #8c8c8c;\n font-size: 500;\n}\n\n.post-postTitle-IqE {\n font-size: 16px;\n font-weight: 700;\n color: #333333;\n}\n.post-postDesc-n-n {\n font-size: 12px;\n color: #616161;\n font-weight: 400;\n margin-top: 8px;\n margin-bottom: 10px;\n}\n.post-viewAllWrapper-nmV {\n display: flex;\n justify-content: end;\n}\n.post-blogMenuWrapper-ntR {\n}\n/* pc */\n.post-pageContent-8GH {\n}\n@media (min-width: 768px) {\n .post-columns--M- {\n padding: 0 2.5rem;\n background-color: transparent;\n }\n .post-postDataWrapper-vKF {\n flex-direction: row;\n align-items: center;\n }\n .post-blockInfo-XCh {\n padding: 8px 15px;\n }\n}\n\n",""]),s.locals={columns:"post-columns--M- grid grid-cols-1 md_grid-cols-3 pb-5 px-xs md_px-10",column:"post-column-bX0 col-span-2",sidebar:"post-sidebar-F-U col-span-1 px-0 md_px-[25px]",postWrapper:"post-postWrapper-4ok px-[1rem] py-[1rem] md_px-[20px] md_py-s",pageTitle:"post-pageTitle-dCq",postCategory:"post-postCategory-cnl flex items-center",postAnchor:"post-postAnchor-Oe0",postAnchorList:"post-postAnchorList-SrG mb-2",readMore:"post-readMore-nM7",relatedLabelWrapper:"post-relatedLabelWrapper-bHM",blockTitle:"post-blockTitle-1zw flex items-center",cateTitle:"post-cateTitle-G9b",relatedTitle:"post-relatedTitle-x-7",relatedTitleText:"post-relatedTitleText-i24",viewAll:"post-viewAll-3l9",postCategories:"post-postCategories-HRC grid grid-cols-3",postDataWrapper:"post-postDataWrapper-vKF",postDate:"post-postDate-fCX",postDisclaimer:"post-postDisclaimer-JvF",postFeaturedImage:"post-postFeaturedImage-2O6",postContent:"post-postContent-oEY",postDescription:"post-postDescription-OHG",relatedProducts:"post-relatedProducts-Evf "+r.a.locals.root+" "+o.a.locals.root,postList:"post-postList-I7J grid grid-cols-1",postItem:"post-postItem-WCL rounded-[10px] shadow-sm",postImage:"post-postImage-3jZ",blockInfo:"post-blockInfo-XCh",postItemData:"post-postItemData-mct",postTitle:"post-postTitle-IqE",postDesc:"post-postDesc-n-n",viewAllWrapper:"post-viewAllWrapper-nmV",blogMenuWrapper:"post-blogMenuWrapper-ntR max-w-site w-full m-auto px-0 md_px-10",pageContent:"post-pageContent-8GH max-w-site mx-auto pt-4 md_pt-[20px]"},t.a=s}}])
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.