_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[21],{BsWD:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var o=a("a3WO");function r(e,t){if(e){if("string"===typeof e)return Object(o.a)(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Object(o.a)(e,t):void 0}}},KQm4:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var o=a("a3WO");var r=a("BsWD");function n(e){return function(e){if(Array.isArray(e))return Object(o.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},Sc2W:function(e,t,a){"use strict";a.r(t);var o=a("KQm4"),r=a("MX0m"),n=a.n(r),s=a("q1tI"),i=a.n(s),c=a("8Kt/"),l=a.n(c),d=a("YFqc"),p=a.n(d),u=a("4xQG"),m=a("4gQ6"),g=a("ilO0"),x=a("6AVX"),f=a("aZ9c"),b=a("bTu8"),h=a("g0Ox"),j=a("Xchd"),_=a("0Xqd"),w=a("42op"),y=i.a.createElement;b.a.use([h.a,j.a,_.a,w.a]);var v=Object(m.a)((function(e){var t=e.slug,a=e.productName,o=e.brand,r=e.descriptionEn,c=e.price,l=e.carousels,d=Object(s.useRef)(null);return Object(s.useEffect)((function(){d.current=new b.a(".swiper-container",{spaceBetween:0,slidersPerView:1,autoplay:{delay:2500,disableOnInteraction:!1},speed:2500,loop:!0,effect:"fade",fadeEffect:{crossFade:!0}})}),[]),y(i.a.Fragment,null,y(p.a,{href:"/product/[slug]",as:"/product/".concat(t)},y("a",{className:"jsx-4005590565"},y("div",{className:"jsx-4005590565 card__product-focus"},y("div",{className:"jsx-4005590565 card__product-area"},y("div",{className:"jsx-4005590565 carousel__content"},y("div",{className:"jsx-4005590565 swiper-container sheet"},y("div",{className:"jsx-4005590565 swiper-wrapper"},l.map((function(e,t){return y("span",{key:t.toString(),style:{backgroundImage:"url(".concat(e.image,")")},role:"img","aria-label":e.altImage,title:e.imageTitle,className:"jsx-4005590565 swiper-slide figure"},y("span",{className:"jsx-4005590565 shade"}))}))),y("div",{className:"jsx-4005590565 detail"},y("span",{className:"jsx-4005590565 title"},o.name," ",a),""!==r?y("span",{dangerouslySetInnerHTML:{__html:"".concat(r)},className:"jsx-4005590565 description"}):"",y("span",{className:"jsx-4005590565 price"},"\u0e23\u0e32\u0e04\u0e32 ",y(f.a,{value:c,displayType:"text",thousandSeparator:!0})," \u0e1a\u0e32\u0e17")))))))),y(n.a,{id:"4005590565"},[".card__product-focus.jsx-4005590565{background:#fff;display:block;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;border-radius:2px;-webkit-backface-visibility:hidden;}",".card__product-focus.jsx-4005590565 .card__product-area.jsx-4005590565{display:block;width:100%;height:100%;position:relative;}",".card__product-focus.jsx-4005590565 .carousel__content.jsx-4005590565{position:absolute;top:0;left:0;right:0;bottom:0;display:block;overflow:hidden;}",".carousel__content.jsx-4005590565 .sheet.jsx-4005590565{position:absolute;display:block;top:0;left:0;right:0;bottom:0;display:block;overflow:hidden;}",".carousel__content.jsx-4005590565 .figure.jsx-4005590565{width:100%;height:100%;box-sizing:border-box;background-color:#ececec;background-size:cover;background-position:center;background-repeat:no-repeat;}",".carousel__content.jsx-4005590565 .shade.jsx-4005590565{pointer-events:none;position:absolute;top:0;left:0;right:0;bottom:0;display:block;overflow:hidden;border-radius:2px;-webkit-backface-visibility:hidden;background-image:linear-gradient(180deg,rgba(0,0,0,0.00) 0%,rgba(0,0,0,0.40) 100%);}",".carousel__content.jsx-4005590565 .detail.jsx-4005590565{display:block;height:140px;position:absolute;bottom:20px;left:20px;right:20px;color:#fff;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:999;}",".carousel__content.jsx-4005590565 .detail.jsx-4005590565 .title.jsx-4005590565{display:block;height:24px;font-weight:400;font-size:21px;line-height:1.22em;font-family:'Kanit',sans-serif;margin-bottom:20px;overflow:hidden;}",".carousel__content.jsx-4005590565 .detail.jsx-4005590565 .description.jsx-4005590565{display:block;margin-bottom:20px;height:42px;overflow:hidden;}",".carousel__content.jsx-4005590565 .detail.jsx-4005590565 .price.jsx-4005590565{font-size:15px;font-weight:500;line-height:1.22em;font-family:'Kanit',sans-serif;margin-bottom:20px;color:#fff;}"]))})),N=i.a.createElement,k=Object(m.a)((function(){var e=Object(u.a)(g.g),t=e.loading,a=e.error,o=e.data;if(t)return"Loading...";if(a)return"Error! ".concat(a.message);var r=o.hightlights.edges;return N(i.a.Fragment,null,r.map((function(e,t){return N(i.a.Fragment,{key:t.toString()},N(v,{slug:e.node.product.slug,productName:e.node.product.name,brand:e.node.product.brand,descriptionEn:e.node.product.descriptionEn,price:e.node.product.price,carousels:e.node.product.carousels}))})))})),O=a("QrGo"),S=i.a.createElement;t.default=Object(m.a)((function(){var e=Object(s.useState)(""),t=e[0],a=e[1],r=Object(s.useState)(""),c=r[0],d=r[1],m=function(){var e=Object(u.a)(g.a),t=e.loading,a=e.error,o=e.data;return t||a?"":o.allBrands.edges}(),f=function(){var e=Object(u.a)(g.c),t=e.loading,a=e.error,o=e.data;return t||a?"":o.allCategories.edges}(),b=Object(u.a)(g.f,{variables:{after:null,category_Slug:t,brand_Slug:c}}),h=b.loading,j=(b.error,b.data),_=b.fetchMore;return S(i.a.Fragment,null,S(l.a,null,S("title",{className:"jsx-2110769774"},"\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14 | Elpa Shaw"),S("meta",{name:"description",content:"\u0e0a\u0e49\u0e2d\u0e1b\u0e41\u0e25\u0e30\u0e40\u0e22\u0e35\u0e48\u0e22\u0e21\u0e0a\u0e21\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e2a\u0e35\u0e22\u0e07 Hi-End \u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e\u0e14\u0e35\u0e40\u0e22\u0e35\u0e48\u0e22\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e41\u0e25\u0e30\u0e42\u0e0a\u0e27\u0e4c\u0e23\u0e39\u0e21 Elpa Shaw \u0e21\u0e35\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e43\u0e2b\u0e49\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2b\u0e25\u0e32\u0e01\u0e2b\u0e25\u0e32\u0e22 \u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e2b\u0e25\u0e31\u0e07\u0e01\u0e32\u0e23\u0e02\u0e32\u0e22\u0e08\u0e32\u0e01\u0e21\u0e37\u0e2d\u0e2d\u0e32\u0e0a\u0e35\u0e1e\u0e17\u0e35\u0e48\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e2a\u0e1b\u0e01\u0e32\u0e23\u0e13\u0e4c\u0e22\u0e32\u0e27\u0e19\u0e32\u0e19\u0e01\u0e27\u0e48\u0e32 25 \u0e1b\u0e35",className:"jsx-2110769774"}),S("meta",{property:"og:type",content:"website",key:"ogtype",className:"jsx-2110769774"}),S("meta",{property:"og:title",content:"\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14",key:"ogtitle",className:"jsx-2110769774"}),S("meta",{property:"og:description",content:"\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e2a\u0e35\u0e22\u0e07 Hi-End \u0e19\u0e33\u0e40\u0e02\u0e49\u0e32\u0e08\u0e32\u0e01\u0e41\u0e1a\u0e23\u0e19\u0e14\u0e4c\u0e0a\u0e31\u0e49\u0e19\u0e19\u0e33 Thrones Audiovector DALI MOON by Simaudio Transparent Gryphon \u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e1e\u0e23\u0e35\u0e40\u0e21\u0e35\u0e48\u0e22\u0e21 \u0e16\u0e39\u0e01\u0e43\u0e08\u0e19\u0e31\u0e01\u0e40\u0e25\u0e48\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e42\u0e14\u0e22\u0e40\u0e09\u0e1e\u0e32\u0e30",key:"ogdesc",className:"jsx-2110769774"}),S("meta",{property:"og:site_name",content:"elpashaw.com",key:"ogsitename",className:"jsx-2110769774"}),S("meta",{property:"og:url",content:"https://elpashaw.com/product",key:"ogurl",className:"jsx-2110769774"}),S("meta",{property:"og:image",content:"https://cdn-elpashaw.sgp1.digitaloceanspaces.com/media/bucket/images/ogimage-elpashaw.jpg",key:"ogimage",className:"jsx-2110769774"}),S("meta",{property:"og:image:secure_url",content:"https://cdn-elpashaw.sgp1.digitaloceanspaces.com/media/bucket/images/ogimage-elpashaw.jpg",key:"ogimagesecure",className:"jsx-2110769774"}),S("meta",{property:"og:image:width",content:"1200",className:"jsx-2110769774"}),S("meta",{property:"og:image:height",content:"630",className:"jsx-2110769774"})),!0!==h&&S(i.a.Fragment,null,S("main",{className:"jsx-2110769774 main offset"},S("section",{className:"jsx-2110769774 section__content"},S("div",{className:"jsx-2110769774 section__wrap"},S("div",{className:"jsx-2110769774 section-header"},S("h1",{className:"jsx-2110769774 header-text header-title"},"Product")),S("div",{className:"jsx-2110769774 section-header"},S("span",{className:"jsx-2110769774 header-text"},"Explore"),m.length>0&&S("span",{className:"jsx-2110769774 header-text form__dropdown"},S("select",{id:"brand",onChange:function(e){var a=e.target.value;d(a);var o=t,r=a;""==t&&"all"==a?(o="",r=""):""==t&&"all"!==a?(o="",r=a):"all"!==t&&""==a?(o=t,r=""):(o=t,r=a),_({variables:{category_Slug:o,brand_Slug:r},updateQuery:function(e,t){var a=t.fetchMoreResult;return a.allProducts.edges=a.allProducts.edges,a},fetchPolicy:"cache-and-network"})},value:c,className:"jsx-2110769774"},S("option",{value:"",className:"jsx-2110769774"},"all brand"),m.map((function(e,t){return S("option",{key:t.toString(),value:"".concat(e.node.slug),className:"jsx-2110769774"},e.node.name)})))),S("br",{className:"jsx-2110769774"}),S("span",{className:"jsx-2110769774 header-text"},"for"),f.length>0&&S("span",{className:"jsx-2110769774 header-text form__dropdown"},S("select",{id:"category",onChange:function(e){var o=e.target.value;a(o);var r=t,n=o;""==o&&"all"==c?(r="",n=""):"all"!==o&&""==c?(r=o,n=""):""==o&&"all"!==c?(r="",n=c):(r=o,n=c),_({variables:{category_Slug:r,brand_Slug:n},updateQuery:function(e,t){var a=t.fetchMoreResult;return a.allProducts.edges=a.allProducts.edges,a},fetchPolicy:"cache-and-network"})},value:t,className:"jsx-2110769774"},S("option",{value:"",className:"jsx-2110769774"},"all categories"),f.map((function(e,t){return S("option",{key:t.toString(),value:"".concat(e.node.slug),className:"jsx-2110769774"},e.node.title)}))))),S("div",{className:"jsx-2110769774 grid__product"},""===t&&""===c?S("div",{className:"jsx-2110769774 col col-focus"},S(k,null)):"",null===j||void 0===j?void 0:j.allProducts.edges.map((function(e,t){return S("div",{key:t.toString(),className:"jsx-2110769774 col"},S(p.a,{href:"/product/[slug]",as:"/product/".concat(e.node.slug)},S("a",{className:"jsx-2110769774"},S(x.a,{slug:e.node.slug,product:e.node.name,brand:e.node.brand.name,cover:e.node.cover,altImage:e.node.altImage,imageTitle:e.node.imageTitle,description:e.node.descriptionEn,price:e.node.price}))))}))),S(i.a.Fragment,null,!0===(null===j||void 0===j?void 0:j.allProducts.pageInfo.hasNextPage)&&S("div",{className:"jsx-2110769774 section__loadmore"},S("button",{onClick:function(){var e=j.allProducts.pageInfo.endCursor;_({variables:{after:e},updateQuery:function(e,t){var a=t.fetchMoreResult;return a.allProducts.edges=[].concat(Object(o.a)(e.allProducts.edges),Object(o.a)(a.allProducts.edges)),a}})},className:"jsx-2110769774 btn__loadmore"},"more")))))),S(O.a,null)),S(n.a,{id:"2110769774"},[".section-header.jsx-2110769774{box-sizing:border-box;margin-top:40px;margin-bottom:40px;font-family:'Kanit',sans-serif;font-weight:400;font-size:30px;color:#2F3134;line-height:1.4em;}",".header-title.jsx-2110769774{font-size:48px;}",".grid__product.jsx-2110769774{display:grid;grid-template-columns:1fr 1fr 1fr;grid-column-gap:10px;grid-row-gap:10px;margin-top:40px;margin-bottom:40px;}",".grid__product.jsx-2110769774 .col-focus.jsx-2110769774{grid-column:span 2;min-height:480px;position:relative;}",".grid__product.jsx-2110769774 .col.jsx-2110769774{background-color:#ccc;}",".form__dropdown.jsx-2110769774{position:relative;border-bottom:2px solid #2F3134;margin-left:10px;}",'.form__dropdown.jsx-2110769774::after{content:" ";width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #333;position:absolute;bottom:16px;right:10px;pointer-events:none;}',".form__dropdown.jsx-2110769774 select.jsx-2110769774{background-color:#E6E6E6;font-family:'Kanit',sans-serif;font-weight:500;font-size:30px;color:#2F3134;line-height:1.22em;margin:0;border-top:0;border-left:0;border-right:0;border-bottom:0;border-radius:0px;text-indent:0px;text-overflow:' ';outline:none;box-sizing:border-box;-webkit-appearance:button;position:relative;padding-right:40px;-moz-appearance:window;-webkit-appearance:none;cursor:pointer;}",".form__dropdown.jsx-2110769774 .option.jsx-2110769774{font-family:'Kanit',sans-serif;font-weight:normal;font-size:18px;color:#2F3134;line-height:1.4em;margin:0;padding:0;}",".section__loadmore.jsx-2110769774{padding-top:40px;padding-bottom:40px;width:100%;display:block;}",".section__loadmore.jsx-2110769774 .btn__loadmore.jsx-2110769774{margin:0 auto;width:100px;height:44px;display:block;cursor:pointer;border:none;outline:none;background:#0096A7;font-family:'kanit';font-weight:400;line-height:1.2em;text-transform:uppercase;font-size:15px;color:#fff;border-radius:22px;-webkit-transition:all 300ms ease;transition:all 300ms ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".section__loadmore.jsx-2110769774 .btn__loadmore.jsx-2110769774:hover{opacity:0.4;-webkit-transition:all 300ms ease;transition:all 300ms ease;}","@media only screen and (max-width:1024px){.grid__product.jsx-2110769774{grid-template-columns:1fr 1fr;}.grid__product.jsx-2110769774 .col-focus.jsx-2110769774{grid-column-start:span 2;height:480px;width:100%;}}",'@media only screen and (max-width:768px){.section-header.jsx-2110769774{font-size:18px;color:#2F3134;line-height:1.4em;}.header-text.jsx-2110769774{display:block;margin:0;}.header-title.jsx-2110769774{font-size:42px;}.form__dropdown.jsx-2110769774 select.jsx-2110769774{font-size:18px;width:100%;}.form__dropdown.jsx-2110769774::after{content:" ";width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #333;position:absolute;bottom:10px;right:10px;}.grid__product.jsx-2110769774{grid-template-columns:1fr;}.grid__product.jsx-2110769774 .col-focus.jsx-2110769774{grid-column-start:1;height:480px;width:100%;}}']))}))},a3WO:function(e,t,a){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a