1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11454],{57935:function(e,i,t){"use strict";var d=t(24246),l=t(25467),n=t(14789),a=t(79894),s=t.n(a),o=t(23615),c=t.n(o),r=t(64927),u=t.n(r);let _=(e,i)=>{let t={...e};return i.forEach(e=>{delete t[e]}),t},p=(e,i,t)=>{let d=e;return i.map(e=>{let i=t[e];d=d.replace("[".concat(e,"]"),i)}),d},v=e=>{{var i,t;if(!e.href)return(0,d.jsx)(s(),{...e});let a={...e},o=location.pathname,c=null===l.Z||void 0===l.Z?void 0:null===(i=l.Z.locales)||void 0===i?void 0:i.find(e=>(null==o?void 0:o.startsWith("/".concat(e,"/")))||o==="/".concat(e)),r=c&&c!==(null===l.Z||void 0===l.Z?void 0:l.Z.defaultLocale)?"/".concat(c):"",v=null==e?void 0:e.href;if("object"==typeof v){if(null==v?void 0:v.pathname){let e;let i=/\[([^\]]*)\]/g,d=[];for(;null!==(e=i.exec(a.href.pathname));)d.push(e[1]);if(0!==r.length){if(!(null==v?void 0:null===(t=v.pathname)||void 0===t?void 0:t.includes(r.concat("/")))){a.href.pathname=v.pathname.replace(r,"");let e=p("".concat(r).concat(null==v?void 0:v.pathname),d,null==v?void 0:v.query);a.as=e}let e=_(v.query,d),i=u().stringify(e);i&&(a.as="".concat(a.as,"?").concat(i))}}return(0,d.jsx)(s(),{...a})}let f="string"==typeof v&&v.includes(r.concat("/"));return(0,n.X)(v)||f?a.href=v:a.as=r+v,(0,d.jsx)(s(),{...a})}};i.Z=v,v.propTypes={href:c().oneOfType([c().string,c().object]).isRequired}},11454:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return h}});var d=t(24246),l=t(22501),n=t(57935),a=t(25467),s=t(73406),o=t(70892),c=t(38944),r=t(23615),u=t.n(r),_=t(27378),p=t(82022),v=t(56876),f=t.n(v);function h(e){var i,t;let{product:r}=e,{t:u,i18n:v}=(0,p.$G)("common"),[h,m]=(0,_.useState)(!1),[x,g]=(0,_.useState)(null),[b,y]=(0,_.useState)(!1),[j,N]=(0,_.useState)(v.language),w=(0,_.useRef)(null),k=(0,_.useRef)(null),A=(0,_.useRef)(null),Z=(0,s.L)(null==r?void 0:r.brand,"name",v.language),C=(0,_.useMemo)(()=>Array.isArray(null==r?void 0:r.breadcrumb)?[...r.breadcrumb].pop():null,[null==r?void 0:r.product_id]),W=(0,_.useCallback)(()=>{var e;(null===(e=window)||void 0===e?void 0:e.location)&&(window.location.href+="?layout=web-mobile&lang=".concat("en"!==v.language?"th":"en"))});(0,_.useCallback)(()=>(null==r?void 0:r.flix_media)&&(null==r?void 0:r.model)?(0,d.jsxs)("div",{className:f().desc,children:[(0,d.jsx)("div",{id:"flix-inpage"}),(0,d.jsx)("div",{id:"flix-minisite"})]}):null,[null==r?void 0:r.product_id]),(0,_.useEffect)(()=>{N(v.language!==a.Z.defaultLocale?"/"+v.language:"")},[v.language]),(0,_.useEffect)(()=>{if(g(null),m(!1),(null==r?void 0:r.flix_media)&&r.model){var e;(0,o.Z)({model:(null==r?void 0:r.model)||"",brand:null==r?void 0:null===(e=r.brand)||void 0===e?void 0:e.name,lang:(null==v?void 0:v.language)==="th"?"ti":"en",sku:null==r?void 0:r.sku,setDisplayProductDescription:e=>{m(e)}})}},[null==r?void 0:r.product_id]),(0,_.useEffect)(()=>{var e;L("brandandcategory","brand","category"),L("tisiandfad","tisi","fad"),(null==w?void 0:null===(e=w.current)||void 0===e?void 0:e.offsetHeight)&&parseInt(w.current.offsetHeight)/20>5&&(y(!0),setTimeout(()=>{let e=k.current.offsetHeight-100;A.current.style.height="100px",A.current.style.marginTop=e+"px"},100))},[]);let E=()=>{A.current.style.display="none",w.current.style.maxHeight="unset"},L=(e,i,t)=>{let d=document.querySelectorAll('div[class^="description_'.concat(e,'_"]')),l=document.querySelectorAll('div[class^="description_'.concat(i,'_"]')),n=document.querySelectorAll('div[class^="description_'.concat(t,'_"]'));if(d.length){var a,s,o,c,r,u;let e=(d[0].offsetWidth-16)/2,i=(null===(a=l[0])||void 0===a?void 0:a.offsetWidth)||0,t=(null===(s=n[0])||void 0===s?void 0:s.offsetWidth)||0;i<e&&t>e?(null===(o=n[0])||void 0===o?void 0:o.offsetWidth)&&(n[0].style.maxWidth=e+(e-i)+"px"):i>e&&t<e?(null===(c=l[0])||void 0===c?void 0:c.offsetWidth)&&(l[0].style.maxWidth=e+(e-t)+"px"):i>e&&t>e&&((null===(r=n[0])||void 0===r?void 0:r.offsetWidth)&&(l[0].style.maxWidth=e+"px"),(null===(u=l[0])||void 0===u?void 0:u.offsetWidth)&&(n[0].style.maxWidth=e+"px"))}};return(0,d.jsxs)("section",{className:f().section_product_desc,id:"pdp_mobile-productDesc",children:[(0,d.jsxs)("div",{className:f().header,children:[(0,d.jsx)("div",{className:f().title,children:u("product:product-desc")}),h&&(0,d.jsx)("div",{onClick:()=>W(),children:(0,d.jsx)(l.Z,{path:"chevron-down",w:"16",h:"16",className:(0,
1c.Z)(!x&&f()["icon-right"])})})]}),(0,d.jsxs)("div",{ref:k,className:(0,c.Z)(f().box,x&&f()["box--hide"],null!==x&&!x&&f()["box--show"]),children:[(0,d.jsxs)("div",{className:f().brandandcategory,children:[(0,s.L)(null==r?void 0:r.brand,"name",v.language)&&(0,d.jsxs)("div",{className:f().brand,children:[(0,d.jsxs)("div",{className:f().title,children:[u("product:product-brand"),":"]}),(0,d.jsx)("div",{className:f().value,id:"pdp_brand-title",children:(null==r?void 0:null===(i=r.brand)||void 0===i?void 0:i.shop_slug)?(0,d.jsx)(n.Z,{legacyBehavior:!0,href:j+"/shop/".concat(null==r?void 0:null===(t=r.brand)||void 0===t?void 0:t.shop_slug),children:Z}):Z})]}),(0,s.L)(null==r?void 0:r.brand,"name",v.language)&&C&&(0,d.jsx)("div",{className:f().pipe}),C&&(0,d.jsxs)("div",{className:f().category,children:[(0,d.jsxs)("div",{className:f().title,children:[u("product:category"),":"]}),(0,d.jsx)("div",{className:f().categorylink,children:(0,d.jsx)("h2",{children:(0,d.jsx)(n.Z,{legacyBehavior:!0,href:j+"/category/".concat(C.slug),children:(0,s.L)(C,"name",v.language)})})})]})]}),(0,d.jsxs)("div",{className:f().tisiandfad,id:"pdp_section-tisi-and-fad-no",children:[(null==r?void 0:r.thai_industrial_standard_no)&&(0,d.jsxs)("div",{className:f().tisi,children:[(0,d.jsx)("div",{className:f().title,children:u("product:TISI")}),(0,d.jsx)("div",{className:f().value,id:"pdp_tisi-title",children:null==r?void 0:r.thai_industrial_standard_no})]}),(null==r?void 0:r.thai_industrial_standard_no)&&(null==r?void 0:r.fad_no)&&(0,d.jsx)("div",{className:f().pipe}),(null==r?void 0:r.fad_no)&&(0,d.jsxs)("div",{className:f().fad,children:[(0,d.jsx)("div",{className:f().title,children:u("product:FDA")}),(0,d.jsx)("div",{className:f().value,id:"pdp_fda-title",children:null==r?void 0:r.fad_no})]})]}),!h&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{ref:w,className:(0,c.Z)(f().desc,b&&f().show5line),dangerouslySetInnerHTML:{__html:(0,s.L)(r,"desc",v.language)}}),(0,d.jsx)("div",{ref:A,className:f().area_desc,children:b&&(0,d.jsxs)("div",{className:f().readmore,onClick:()=>E(),children:["...",u("common:pdp-rademore")]})})]})]})]})}h.propTypes={product:u().object.isRequired}},70892:function(e,i,t){"use strict";function d(e){var i;let{model:t,brand:d,lang:l,sku:n,setDisplayProductDescription:a}=e,s=document.getElementsByTagName("head")[0];null===(i=document.getElementById("flix-script"))||void 0===i||i.remove();let o=document.createElement("script");o.id="flix-script",o.type="text/javascript",o.async=!0,o.src="//media.flixfacts.com/js/loader.js",o.setAttribute("data-flix-distributor",9254),o.setAttribute("data-flix-language","e6"),o.setAttribute("data-flix-fallback-language",l),o.setAttribute("data-flix-brand",d),o.setAttribute("data-flix-mpn",t),o.setAttribute("data-flix-button","flix-minisite"),o.setAttribute("data-flix-inpage","flix-inpage"),o.setAttribute("data-flix-price",""),o.setAttribute("data-flix-sku",n),s.appendChild(o),o.onload=()=>{"object"==typeof window.flixJsCallbacks&&window.flixJsCallbacks.setLoadCallback(()=>{a(!0)},"inpage")}}t.d(i,{Z:function(){return d}})},14789:function(e,i,t){"use strict";t.d(i,{X:function(){return l},m:function(){return d}});let d=e=>!!RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e),l=e=>/^(http:\/\/|https:\/\/)/.test(e)},56876:function(e){e.exports={section_product_desc:"description_section_product_desc__DJHls",tisiandfad:"description_tisiandfad__666Lo",tisi:"description_tisi__qJQU3",value:"description_value__1Q4zB",fad:"description_fad__gAAG5",brandandcategory:"description_brandandcategory__QL_ul",brand:"description_brand__ez_oE",categorylink:"description_categorylink__ub3nv",category:"description_category__4Jtc5",header:"description_header__AI4_0",title:"description_title__P7Y1a","icon-up":"description_icon-up__20Qq_","icon-right":"description_icon-right__M4HsF",box:"description_box__2khVI","box--hide":"description_box--hide__vVlfJ",slideout:"description_slideout__YSFBM","box--show":"description_box--show__l_rX
1B",slidein:"description_slidein__OFK6C",pipe:"description_pipe__V6Q_S",desc:"description_desc__1kRCw",show5line:"description_show5line__pv2Wj",area_desc:"description_area_desc__CwX5i",readmore:"description_readmore__bEhNX",hide:"description_hide__ZgneQ"}}}]);
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.