1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3698],{84154:function(e,t,i){"use strict";var n=i(31096),o=i(41664),a=i.n(o),r=i(89583),l=i(67294),c=i(10404),s=i(67162),d=i(85893),u=n.ZP.div.withConfig({displayName:"BreadCrumbs__Wrapper",componentId:"sc-6wfaya-0"})(["display:flex;align-items:center;gap:8px;margin-bottom:",";"],(function(e){return null!==e&&void 0!==e&&e.marginBottom?e.marginBottom:"20px"})),p=n.ZP.div.withConfig({displayName:"BreadCrumbs__Link",componentId:"sc-6wfaya-1"})(["display:flex;align-items:center;gap:8px;"]),m=n.ZP.a.withConfig({displayName:"BreadCrumbs__LinkText",componentId:"sc-6wfaya-2"})(["font-size:12px;font-weight:",";color:inherit;font-family:inherit;text-decoration:none;cursor:",";"],(function(e){return e.isActive?700:400}),(function(e){return e.isActive?"default":"pointer"}));t.Z=function(e){var t=e.links,i=e.customAction,n=e.marginBottom,o=e.showOnMobile,f=void 0!==o&&o,h=(0,c.P)().isTabletOrMobile,b=(0,s.vH)().textColor;return h&&!f?null:(0,d.jsx)(u,{marginBottom:n,children:t.map((function(e,n){return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)(p,{children:i&&e.href?(0,d.jsx)(m,{isActive:n===t.length-1,onClick:function(){return i(e.href)},children:e.text}):e.href?(0,d.jsx)(a(),{href:e.href,passHref:!0,children:(0,d.jsx)(m,{isActive:n===t.length-1,children:e.text})}):(0,d.jsx)(m,{isActive:n===t.length-1,children:e.text})}),n!==t.length-1&&(0,d.jsx)(r.anP,{fontSize:"7px",color:b})]},e.text+n)}))})}},52984:function(e,t,i){"use strict";i.r(t);var n=i(59499),o=i(56181),a=i(67294),r=i(13185),l=i(13959),c=i(10404),s=i(84154),d=i(57953),u=i(11163),p=i(77327),m=i(81668),f=i(31096),h=i(60407),b=i(56257),g=i(58352),v=i(41392),x=i(98091),y=i(36430),w=i(85893);function O(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function j(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?O(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}t.default=function(){var e=(0,u.useRouter)(),t=(0,c.P)().isTabletOrMobile,i=e.query.childId,n=(0,d.Tu)().handleMutate,f=(0,m.l)().setNoti,h=(0,a.useState)(""),O=h[0],P=h[1],N=(0,v.useAuthContext)().profile,C=(0,d.Ap)("/parentchildaccount/detail/".concat(i),{shouldFetch:!!i}).data,I=null===C||void 0===C?void 0:C.data;(0,a.useEffect)((function(){null!==I&&void 0!==I&&I.profileImageUrl&&P(I.profileImageUrl)}),[I]);var Z=[{text:"Family account",href:"/account/family_account"},{text:I?"Edit ".concat(I.firstName,"'s profile").toString():"",href:e.asPath}],E=j(j({},I),{},{phoneNumber:{code:(null===I||void 0===I?void 0:I.mobileCode)||"",number:(null===I||void 0===I?void 0:I.mobile)||"",formattedValue:"".concat(null===I||void 0===I?void 0:I.mobileCode).concat(null===I||void 0===I?void 0:I.mobile)},name:I?"".concat(null===I||void 0===I?void 0:I.firstName," ").concat(null===I||void 0===I?void 0:I.lastName):"",dob:I?(0,b.p6)(null===I||void 0===I?void 0:I.dob,"yyyy-MM-dd"):"",isHasOwnMobile:null!==I&&void 0!==I&&I.isHasOwnMobile?"yes":"no",isHasOwnEmail:null!==I&&void 0!==I&&I.isUsedParentEmail?"no":"yes",path:null===I||void 0===I?void 0:I.path,signedWaiverIdList:[]}),A=function(t){var o={firstName:t.firstName,lastName:t.lastName,code:"yes"===t.isHasOwnMobile?t.phoneNumber.code:0,mobile:"yes"===t.isHasOwnMobile?t.phoneNumber.number:"",dob:t.dob,email:"yes"===t.isHasOwnEmail?t.email:N.email,gender:t.gender,profileImageUrl:O,isHasOwnMobile:"yes"===t.isHasOwnMobile,isUsedParentEmail:"no"===t.isHasOwnEmail,uploadedPdfs:[],status:"Active"};n({url:"/parentchildaccount/".concat(null===I||void 0===I?void 0:I.cUserId),method:"put",data:o,validateUrl:["/parentchildaccount/detail/".concat(null===I||void 0===I?void 0:I.cUserId)],onSuccess:function(){f({type:"success",msg:"Child account saved."}),e.push("/account/family_account/".concat(i))}})};return(0,w.jsx)(o.Z,{children:I?(0,w.jsxs)(r.im,{children:[!t&&(0,w.jsx)(r.h4,{children:(0,w.jsx)(s.Z,{links:Z})}),(0,w.jsx)(_,{children:I?(0,w.jsx)(x.Z,{enableReinitialize:!0,defaultValues:E,schema:y.l,children:function(t){return(0,w.jsx)(p.Z,{handleCancel:function(){return e.push("/account/family_account/".concat(i))},loading:!1,onSubmit:A,handleProfileImgUrl:function(e){return P(e)},update:!0,isRestricted:I.isRestricted,formProps:t})}}):(0,w.jsx)(l.Z,{width:"100px",height:"100px"})}),(0,w.jsx)(g.Z,{color:"#010101",type:"horizontal"})]}):(0,w.jsx)(l.Z,{width:"100px",height:"100px"})})};f.ZP.div.withConfig({displayName:"edit__AccountInfo",componentId:"sc-yhpzp9-0"})(["padding:40px 0;h4{font-weight:bold;font-size:20px;}border-bottom:1px solid black;span{line-height:24px;@media ","{line-height:21px;font-size:14px;}}&:last-child{border-bottom:none;}.buttonWrapper{grid-column:2/2;display:flex;gap:40px;@media ","{grid-column:span 2;gap:20px;}}"],h.vb.tabletAndDown,h.vb.tabletAndDown),f.ZP.div.withConfig({displayName:"edit__Content",componentId:"sc-yhpzp9-1"})(["display:grid;margin-top:40px;grid-template-columns:1fr 1fr;gap:16px;row-gap:40px;label{font-size:12px;text-transform:capitalize;opacity:0.6;}.d-flex{display:flex;gap:40px;}@media ","{row-gap:20px;div{grid-column:span 2;}grid-template-columns:1fr;}"],h.vb.tabletAndDown);var _=(0,f.ZP)(r.uT).withConfig({displayName:"edit___StyledBody",componentId:"sc-yhpzp9-2"})(["margin-bottom:40px;"])},31675:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/family_account/[childId]/edit",function(){return i(52984)}])}},function(e){e.O(0,[4885,5445,4171,5890,6949,3775,5670,6181,6430,9774,2888,179],(function(){return t=31675,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.