(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(t,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return l(34579)}])},9676:function(t,n,l){"use strict";l.d(n,{T:function(){return a}});var i=l(85893),e=l(67294),o=l(71146),u=l(33640),d=l(37081),r=l(50914);function a(t){let{data:n}=t,{sections:l}=n,a=(0,e.useContext)(u.z);return(0,i.jsx)(i.Fragment,{children:l&&(null==l?void 0:l.map((t,n)=>{var l,e,u,s,v,c,p,f;let _=(null==t?void 0:t._type)==="slotCart"?"cartSection":(null==t?void 0:t._type)==="slotWishlist"?"wishlistSection":null==t?void 0:t._type,m=(null==t?void 0:t._type)==="featuredProducts"?{id:null==t?void 0:null===(e=t.variants)||void 0===e?void 0:null===(l=e.collections)||void 0===l?void 0:l._id,type:null==t?void 0:null===(s=t.variants)||void 0===s?void 0:null===(u=s.collections)||void 0===u?void 0:u._type}:(null==t?void 0:t._type)==="pages_productInfo"?{id:null==t?void 0:null===(c=t.variants)||void 0===c?void 0:null===(v=c.products)||void 0===v?void 0:v._id,type:null==t?void 0:null===(f=t.variants)||void 0===f?void 0:null===(p=f.products)||void 0===p?void 0:p._type}:{id:null==t?void 0:t._id,type:null==t?void 0:t._type},h=null===o.z||void 0===o.z?void 0:o.z[_];return h?(0,i.jsx)(d.Z,{document:m,showInlineEditor:a,children:(null==t?void 0:t._type)==="socialMediaFeed"?(0,i.jsx)(r.t,{children:(0,i.jsx)(h,{template:{bg:"gray",color:"webriq"},[t._type]:t,data:t})}):(0,i.jsx)(h,{template:{bg:"gray",color:"webriq"},[t._type]:t,data:t})},n):null}))})}},50914:function(t,n,l){"use strict";l.d(n,{L:function(){return d},t:function(){return r}});var i=l(85893),e=l(67294),o=l(48211);let u=(0,e.createContext)(null);function d(){return(0,e.useContext)(u)}function r(t){let{children:n}=t,[l,d]=(0,e.useState)({itemId:"",platform:"",userName:"",status:"loading",media:[]});return(0,e.useEffect)(()=>{(async function(){fetch("".concat(o.EK,"/media"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({platform:null==l?void 0:l.platform,studioId:o.Cj,itemId:null==l?void 0:l.itemId})}).then(t=>t.json()).then(t=>{let n=null==t?void 0:t.data;n&&d({itemId:null==l?void 0:l.itemId,platform:null==l?void 0:l.platform,userName:null==l?void 0:l.userName,status:"success",media:n})}).catch(t=>{d(t=>({...t,status:"error",media:[]}))})})()},[null==l?void 0:l.itemId,null==l?void 0:l.platform,null==l?void 0:l.userName]),(0,i.jsx)(u.Provider,{value:{profileFeed:l,setProfileFeed:d},children:n})}},34579:function(t,n,l){"use strict";l.r(n),l.d(n,{__N_SSG:function(){return p}});var i=l(85893);l(67294);var e=l(70386),o=l(1641),u=l(72535),d=l(9676),r=l(74975),a=l(47503),s=l(33640);function v(t){let{data:n}=t,l=null==n?void 0:n.pageData;return l?(null==n?void 0:n.pageData)&&(0,i.jsx)(d.T,{data:l}):null}function c(t){var n;let{data:l,token:e=null}=t,a=(0,u.u)(e,o.YG),s=(null==a?void 0:a[0])||a;return s?(0,i.jsxs)(i.Fragment,{children:[(!s||!(null==s?void 0:s.sections)||(null==s?void 0:null===(n=s.sections)||void 0===n?void 0:n.length)===0)&&(0,i.jsx)(r.Y,{}),(null==l?void 0:l.pageData)&&(0,i.jsx)(d.T,{data:s})]}):null}var p=!0;n.default=function(t){let{data:n,preview:l,token:o,source:u}=t;return l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.a,{}),(0,i.jsx)(e.Dz,{fallback:"Loading...",children:(0,i.jsx)(s.Z,{showInlineEditor:"studio"===u,children:(0,i.jsx)(c,{data:n,token:o})})})]}):(0,i.jsx)(v,{data:n})}}},function(t){t.O(0,[7546,9089,2888,9774,179],function(){return t(t.s=48312)}),_N_E=t.O()}]);