1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1652],{91652:function(e,r,n){n.r(r);var t=n(30266),a=n(809),u=n.n(a),s=n(67294),i=n(9669),o=n.n(i),c=n(40420),l=n(40849),d=n(99763),f=n(59400),h=n(96150),p=n(61130),v=n(52772),x=n(85893);r.default=function(e){var r=e.error,n=void 0===r?null:r,a=(0,s.useContext)(v.default),i=a.profile,w=a.saveProfile,j=(0,s.useState)([]),b=j[0],Z=j[1],k=(0,s.useState)(!!i.referralModule),m=k[0],y=k[1],C=(0,s.useState)(!1),M=C[0],N=C[1];(0,s.useEffect)((function(){(function(){var e=(0,t.Z)(u().mark((function e(){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o().get("".concat(p.apiUrl,"/channel"));case 2:r=e.sent,Z(r.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);return(0,x.jsx)("div",{className:"card blue-theme",children:(0,x.jsxs)("div",{className:"card-inner",style:{position:"relative"},children:[(0,x.jsx)(c.Z,{inverted:!0,active:M,children:(0,x.jsx)(l.Z,{active:!0})}),(0,x.jsxs)("div",{style:{width:"100%"},children:[(0,x.jsx)("h4",{children:"How did you hear about us?"}),m?(0,x.jsx)(d.Z,{color:"blue",children:(0,x.jsxs)(d.Z.Content,{children:[(0,x.jsx)("p",{children:i.referralModule}),(0,x.jsx)(f.Z,{fluid:!0,content:"Update",onClick:function(){return y(null)}})]})}):(0,x.jsx)(h.Z.Dropdown,{upward:!0,selection:!0,floating:!0,fluid:!0,"aria-label":"How did you hear about us?",options:b,name:"referralModule",error:n,onChange:function(e,r){N(!0),setTimeout((0,t.Z)(u().mark((function e(){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=b.find((function(e){return e.value===r.value})),i.referralModule=n.text,e.next=4,w(i,"how did you hear about us?");case 4:y(!0),N(!1);case 6:case"end":return e.stop()}}),e)}))),1e3)}})]})]})})}}}]);
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.