1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2968],{21036:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(59499),a=n(94184),s=n.n(a),i=n(74654),l=n.n(i),u=n(67294),o=n(11163),c=n(78491),d=n(85893);function _(e){var t=e.data,n=e.headings,a=(0,o.useRouter)().locale,i=(0,c.$G)().t,_=(0,u.useMemo)((function(){return Object.keys(n)}),[n]),b=(0,u.useCallback)((function(e){var t=typeof e;return(0,u.isValidElement)(e)?(0,d.jsx)(d.Fragment,{children:e}):e instanceof Date?e.toLocaleString(a,{year:"numeric",month:"long",day:"numeric"}):"string"===t||"number"===t?e:null}),[a]),h=(0,u.useMemo)((function(){return t.map((function(e){return{row:e,render:function(t){return(0,d.jsx)("tr",{className:l().tr,children:_.map((function(t){var a,i,u,o;return(0,d.jsx)("td",{className:s()(l().td,(o={},(0,r.Z)(o,l().left,"left"===(null===(a=n[t])||void 0===a?void 0:a.align)),(0,r.Z)(o,l().center,"center"===(null===(i=n[t])||void 0===i?void 0:i.align)),(0,r.Z)(o,l().right,"right"===(null===(u=n[t])||void 0===u?void 0:u.align)),o)),children:b(e[t]||null)},t)}))},t)}}}))}),[t,_,b]);return(0,d.jsx)("div",{className:l().root,children:(0,d.jsxs)("table",{className:l().table,children:[(0,d.jsx)("thead",{className:l().thead,children:(0,d.jsx)("tr",{className:l().tr,children:_.map((function(e){var t,r;return(0,d.jsx)("th",{className:l().th,children:null!==(t=null===(r=n[e])||void 0===r?void 0:r.label)&&void 0!==t?t:n[e]},e)}))})}),(0,d.jsx)("tbody",{className:l().tbody,children:t.length>0?h.map((function(e,t){return e.render(t)})):(0,d.jsx)("tr",{className:l().tr,children:(0,d.jsx)("td",{colSpan:_.length,className:l().td,children:i("noDataAvailable")})})})]})})}},12024:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return j},default:function(){return g}});var r=n(4730),a=n(74678),s=n(75143),i=n(72970),l=n(5977),u=n(67294),o=n(32527),c=n(78491),d=n(33299),_=n(11163),b=n(82487),h=n(91327),p=n.n(h),f=n(21036),v=n(85893);function m(e){var t=e.surveys,n=(0,c.$G)().t,r=(0,u.useMemo)((function(){return{supplierName:n("surveySupplierName"),duration:n("surveyDuration"),reward:n("surveyReward"),surveyUrl:""}}),[n]),a=(0,u.useMemo)((function(){return t.map((function(e){return{supplierName:e.supplierName,duration:e.duration,reward:e.reward.toFixed(3),surveyUrl:(0,v.jsxs)("a",{style:{color:"blue"},target:"_blank",href:e.surveyUrl,rel:"noreferrer",children:[n("read")," ",">>"]})}}))}),[t,n]);return(0,v.jsx)("div",{className:p().tableWrapper,children:(0,v.jsx)(f.Z,{data:a,headings:r})})}var y=n(26444),x=n.n(y),N=["data"],j=!0;function g(e){var t,n=e.subscription,h=e.hideHeader,p=e.survey,f=e.surveys,y=(0,l.Vk)().dispatch,j=(0,i.L)(n),g=j.data,T=(0,r.Z)(j,N),w=g.allPages[0],S=(0,c.$G)().t,k=(0,_.useRouter)().locale,E=(0,b.kK)().setToastMessage,Z=(0,u.useState)(p),A=Z[0],L=Z[1],M=(0,u.useState)(!1),O=M[0],P=M[1],U=null===(t=(0,d.useSession)().data)||void 0===t?void 0:t.user.userId;return(0,u.useEffect)((function(){n.enabled&&y({type:"enter",payload:T})}),[T.status,y]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o.Z,{SEO:w.seo}),(0,v.jsxs)("div",{style:h?{}:{padding:"32px 0"},children:[(0,v.jsx)(s.w,{sections:w.sections}),O&&(0,v.jsx)("div",{className:x().formNotice,children:A.isActive?S("surveySubscribeSuccess"):S("surveyUnsubscribe")}),A&&(0,v.jsx)("div",{children:(0,v.jsx)("button",{type:"button",className:"button button--primary top-spacing",onClick:function(){U&&A&&(0,a.Xl)({path:"/api/partner-api/users/".concat(U,"/mailingLists/").concat(A.mailingListId),method:"POST",locale:k,body:{isActive:!A.isActive}}).then((function(e){L(e),P(!0)})).catch((function(e){Array.isArray(e)&&"MUST_BE_KNOWN"===e[0].code&&E({type:"error",message:S("userProfileMustBeKnown")})}))},children:A.isActive?S("unsubscribe"):S("subscribe")})}),(0,v.jsx)("div",{style:{paddingTop:"16px"},children:(0,v.jsx)(m,{surveys:f})})]})]})}},84189:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/onlinepanel",function(){return n(12024)}])},74654:function(e){e.exports={root:"Table_root__uHb7L",table:"Table_table__Kor_h",thead:"Table_thead__n2c9d",th:"Table_th__3EDMR",td:"Table_td__4V_ZR",left:"Table_left__AI5jU",center:"Table_center__IOLv8",right:"Table_right__ojbkj",tbody:"Table_tbody__7cYtQ",tr:"Table_tr__LVZFZ"}},26444:function(e){e.exports={formNotice:"OnlinePanel_formNotice__cbLp1"}},91327:function(e){e.exports={tableWrapper:"Balance_tableWrapper__P69mn"}}},function(e){e.O(0,[2970,9774,2888,179],(function(){return t=84189,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.