1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5305],{27714:function(e,t,r){"use strict";var n=r(57446);Object.defineProperty(t,"R",{enumerable:!0,get:function(){return n.useScrollPosition}})},21971:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;let n=r(67294);t.useIsomorphicLayoutEffect="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},57446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollPosition=void 0;let n=r(67294),i=r(21971),o="undefined"!=typeof window,s={x:0,y:0},c=e=>null==e?void 0:e.getBoundingClientRect(),a=({element:e,useWindow:t,boundingElement:r})=>{if(!o)return s;if(t)return{x:window.scrollX,y:window.scrollY};let n=c((null==e?void 0:e.current)||document.body),i=c(null==r?void 0:r.current);return n?i?{x:(i.x||0)-(n.x||0),y:(i.y||0)-(n.y||0)}:{x:n.left,y:n.top}:s};t.useScrollPosition=(e,t,r,s,c,u)=>{let l=n.useRef(a({useWindow:s,boundingElement:u})),d=null,f=()=>{let t=a({element:r,useWindow:s,boundingElement:u});e({prevPos:l.current,currPos:t}),l.current=t,d=null};i.useIsomorphicLayoutEffect(()=>{var e;if(!o)return;let t=()=>{c?null===d&&(d=setTimeout(f,c)):f()};return u?null===(e=u.current)||void 0===e||e.addEventListener("scroll",t,{passive:!0}):window.addEventListener("scroll",t,{passive:!0}),()=>{var e;u?null===(e=u.current)||void 0===e||e.removeEventListener("scroll",t):window.removeEventListener("scroll",t),d&&clearTimeout(d)}},t)},t.useScrollPosition.defaultProps={deps:[],element:!1,useWindow:!1,wait:null,boundingElement:!1}},82701:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(15109);let i=(0,n.Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},78455:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(15109);let i=(0,n.Z)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]])},37838:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(15109);let i=(0,n.Z)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},39560:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(15109);let i=(0,n.Z)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},40726:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(15109);let i=(0,n.Z)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},3833:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product-sunglazed",function(){return r(66642)}])},66642:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return w}});var n=r(47568),i=r(41799),o=r(69396),s=r(828),c=r(20414),a=r(85893),u=r(67294),l=r(9008),d=r.n(l),f=r(41664),p=r.n(f),m=r(11163),h=r(9669),y=r.n(h),v=r(24678),g=r(30563),b=r(52813);r(49876),r(73271);var x=r(82071),w=function(){var e="https://api.sunpower.id/api",t="https://api.sunpower.id",r=(0,s.Z)(u.useState([]),2),l=r[0],f=r[1];(0,m.useRouter)();var h,w=(h=(0,n.Z)(function(){var r,n,s,a,u,l,d,p,m,h;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return c.trys.push([0,7,,8]),[4,y().get(e+"/products?by=seri&filter[meta_tipe_floor]=".concat(244))];case 1:return r=c.sent(),[4,y().get(e+"/products?by=seri&filter[meta_tipe_wall]=".concat(246))];case 2:return n=c.sent(),[4,r.data];case 3:return a=(s=c.sent()).success,s.message,s.data,[4,r.data.data];case 4:return u=c.sent(),[4,n.data.data];case 5:return l=c.sent(),p=u.concat,[4,l];case 6:return m=p.apply(u,[c.sent()]).filter(function(e,t,r){return t===r.findIndex(function(t){return JSON.stringify(t)===JSON.stringify(e)})}),a?f(m.map(function(e){return(0,o.Z)((0,i.Z)({},e),{link:"/product/sunglazed/".concat((0,x.Z)(e.product.id)),tags:e.product.product_meta_detail.meta_dimension.map(function(e){return e.name}).concat(e.product.product_meta_detail.meta_surface.map(function(e){return e.name})),photo_ambience:e.product.product_photo.filter(function(e){return e.photo.toLowerCase().includes("ambience")}).map(function(e){return t+e.photo_path})})})):f([]),[3,8];case 7:return alert(c.sent()),[3,8];case 8:return[2]}})}),function(){return h.apply(this,arguments)});return u.useEffect(function(){w()},[244,"ceramics"]),(0,a.jsxs)("div",{children:[(0,a.jsx)(d(),{children:(0,a.jsx)("title",{children:"Sun Power - Product Sun Glazed"})}),(0,a.jsxs)("main",{children:[(0,a.jsx)(v.Z,{}),(0,a.jsxs)("div",{className:"text-white relative",children:[(0,a.jsx)("img",{src:"/images/product-ceramics-bg.jpg",className:"w-full h-auto h-screen"}),(0,a.jsxs)("div",{className:"absolute top-0 w-full h-full bg-black/25 text-white flex flex-col justify-center px-8 items-center text-center lg:items-start lg:text-left lg:px-12 xl:px-32",children:[(0,a.jsx)("h1",{className:"font-centaur font-normal uppercase mb-8 text-5xl mt-20 lg:mb-12 lg:mt-32",children:"Sun Glazed"}),(0,a.jsx)("div",{className:"w-5/6 sm:w-3/4 md:w-8/12",children:(0,a.jsx)("p",{className:"text-white font-centaur mb-2 text-xl",children:"Sun Power Sun Glazed products stand out for their high resistance, innovative design, and meticulous finishes. This type of wall and flooring increases warmth to spaces. The pieces are designed in various formats and different structures. This composition makes it possible to unify different areas like living rooms, kitchens, bathrooms, or terraces."})})]})]}),(0,a.jsxs)("div",{className:"bg-gray-100 px-4 py-4 lg:px-12 lg:pt-12 xl:px-32 xl:pt-24",children:[(0,a.jsx)("div",{className:"grid grid-cols-1 gap-4 mb-4 sm:grid-cols-2 lg:gap-6",children:l.reverse().map(function(e,r){return(0,a.jsx)(p(),{href:e.link,children:(0,a.jsx)("a",{children:(0,a.jsxs)("div",{className:"w-full relative",children:[e.photo_ambience.length>0?(0,a.jsx)("img",{className:"w-full object-cover",style:{height:325},src:e.photo_ambience[0]}):(0,a.jsx)("img",{className:"w-full object-cover",style:{height:325},src:t+e.product.cover_photo_path}),(0,a.jsxs)("div",{className:"w-full px-4 py-4 flex md:px-8",style:{background:"#6d6d6d"},children:[(0,a.jsx)("p",{className:"uppercase text-white text-2xl font-myriad-condensed leading-none mt-1",children:e.meta_detail.name.toUpperCase()}),(0,a.jsx)("div",{className:"flex ml-auto items-center font-myriad-condensed leading-none",children:e.tags.map(function(t,r){var n=r===e.tags.length-1;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"uppercase text-white text-md mt-1",children:t},t),!n&&(0,a.jsx)("div",{className:"h-3 mx-2 border-r border-white"})]})})})]})]})})},r)})}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(b.Z,{})})]}),(0,a.jsx)(g.Z,{})]})]})}},20943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},13375:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},828:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(13375),i=r(91566);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,n.Z)(e,t)||(0,i.Z)(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},91566:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(20943);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}},25054:function(e,t,r){"use strict";r.d(t,{w_:function(){return d}});var n=r(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){var n,i;return(n=t,i=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(n,"string"),(t="symbol"==typeof i?i:i+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){return t=>n.createElement(f,c({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var r,{attr:i,size:o,title:a}=e,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s),d=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,l,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&n.createElement("title",null,a),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>t(e)):t(i)}}},function(e){e.O(0,[3365,838,2685,7142,5450,563,4678,4541,2071,9774,2888,179],function(){return e(e.s=3833)}),_N_E=e.O()}]);
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.