PageSourceSearch

https://app.youthfully.com/_next/static/chunks/5584.f9b95e7b54a64c03.js

js youthfully.com collected 2026-10-06 16:46:16 UTC 25,701 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5584],{66856:function(t,e,n){var i=n(87462),o=n(45987),a=n(67294),r=n(86010),s=n(1591),l=a.forwardRef((function(t,e){var n=t.disableSpacing,s=void 0!==n&&n,l=t.classes,c=t.className,d=(0,o.Z)(t,["disableSpacing","classes","className"]);return a.createElement("div",(0,i.Z)({className:(0,r.Z)(l.root,c,!s&&l.spacing),ref:e},d))}));e.Z=(0,s.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(l)},7212:function(t,e,n){var i=n(87462),o=n(67294),a=n(1591),r=n(22318),s=o.forwardRef((function(t,e){return o.createElement(r.Z,(0,i.Z)({component:"p",variant:"body1",color:"textSecondary",ref:e},t))}));e.Z=(0,a.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},66083:function(t,e,n){var i=n(87462),o=n(45987),a=n(67294),r=n(86010),s=n(1591),l=n(22318),c=a.forwardRef((function(t,e){var n=t.children,s=t.classes,c=t.className,d=t.disableTypography,u=void 0!==d&&d,p=(0,o.Z)(t,["children","classes","className","disableTypography"]);return a.createElement("div",(0,i.Z)({className:(0,r.Z)(s.root,c),ref:e},p),u?n:a.createElement(l.Z,{component:"h2",variant:"h6"},n))}));e.Z=(0,s.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(c)},41749:function(t,e,n){var i=n(45987),o=n(87462),a=n(67294),r=n(86010),s=n(1591),l=[0,1,2,3,4,5,6,7,8,9,10],c=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(t);return"".concat(n/e).concat(String(t).replace(String(n),"")||"px")}var u=a.forwardRef((function(t,e){var n=t.alignContent,s=void 0===n?"stretch":n,l=t.alignItems,c=void 0===l?"stretch":l,d=t.classes,u=t.className,p=t.component,f=void 0===p?"div":p,m=t.container,h=void 0!==m&&m,x=t.direction,g=void 0===x?"row":x,y=t.item,v=void 0!==y&&y,w=t.justify,j=t.justifyContent,E=void 0===j?"flex-start":j,b=t.lg,N=void 0!==b&&b,C=t.md,S=void 0!==C&&C,T=t.sm,Z=void 0!==T&&T,k=t.spacing,I=void 0===k?0:k,O=t.wrap,D=void 0===O?"wrap":O,M=t.xl,L=void 0!==M&&M,R=t.xs,G=void 0!==R&&R,B=t.zeroMinWidth,P=void 0!==B&&B,_=(0,i.Z)(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),W=(0,r.Z)(d.root,u,h&&[d.container,0!==I&&d["spacing-xs-".concat(String(I))]],v&&d.item,P&&d.zeroMinWidth,"row"!==g&&d["direction-xs-".concat(String(g))],"wrap"!==D&&d["wrap-xs-".concat(String(D))],"stretch"!==c&&d["align-items-xs-".concat(String(c))],"stretch"!==s&&d["align-content-xs-".concat(String(s))],"flex-start"!==(w||E)&&d["justify-content-xs-".concat(String(w||E))],!1!==G&&d["grid-xs-".concat(String(G))],!1!==Z&&d["grid-sm-".concat(String(Z))],!1!==S&&d["grid-md-".concat(String(S))],!1!==N&&d["grid-lg-".concat(String(N))],!1!==L&&d["grid-xl-".concat(String(L))]);return a.createElement(f,(0,o.Z)({className:W,ref:e},_))})),p=(0,s.Z)((function(t){return(0,o.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(t,e){var n={};return l.forEach((function(i){var o=t.spacing(i);0!==o&&(n["spacing-".concat(e,"-").concat(i)]={margin:"-".concat(d(o,2)),width:"calc(100% + ".concat(d(o),")"),"& > $item":{padding:d(o,2)}})})),n}(t,"xs"),t.breakpoints.keys.reduce((function(e,n){return function(t,e,n){var i={};
1c.forEach((function(t){var e="grid-".concat(n,"-").concat(t);if(!0!==t)if("auto"!==t){var o="".concat(Math.round(t/12*1e8)/1e6,"%");i[e]={flexBasis:o,flexGrow:0,maxWidth:o}}else i[e]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else i[e]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,o.Z)(t,i):t[e.breakpoints.up(n)]=i}(e,t,n),e}),{}))}),{name:"MuiGrid"})(u);e.Z=p},22318:function(t,e,n){var i=n(87462),o=n(45987),a=n(67294),r=n(86010),s=n(1591),l=n(93871),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},d=a.forwardRef((function(t,e){var n=t.align,s=void 0===n?"inherit":n,d=t.classes,u=t.className,p=t.color,f=void 0===p?"initial":p,m=t.component,h=t.display,x=void 0===h?"initial":h,g=t.gutterBottom,y=void 0!==g&&g,v=t.noWrap,w=void 0!==v&&v,j=t.paragraph,E=void 0!==j&&j,b=t.variant,N=void 0===b?"body1":b,C=t.variantMapping,S=void 0===C?c:C,T=(0,o.Z)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),Z=m||(E?"p":S[N]||c[N])||"span";return a.createElement(Z,(0,i.Z)({className:(0,r.Z)(d.root,u,"inherit"!==N&&d[N],"initial"!==f&&d["color".concat((0,l.Z)(f))],w&&d.noWrap,y&&d.gutterBottom,E&&d.paragraph,"inherit"!==s&&d["align".concat((0,l.Z)(s))],"initial"!==x&&d["display".concat((0,l.Z)(x))]),ref:e},T))}));e.Z=(0,s.Z)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(d)},41120:function(t,e,n){var i=n(87462),o=n(68989),a=n(90953);e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.Z)(t,(0,i.Z)({defaultTheme:a.Z},e))}},8920:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(41601),o=(n(67294),n(90953));function a(){return(0,i.Z)()||o.Z}},5653:function(t,e,n){n.d(e,{C:function(){return o},n:function(){return i}});var i=function(t){return t.scrollTop};function o(t,e){var n=t.timeout,i=t.style,o=void 0===i?{}:i;return{duration:o.transitionDuration||"number"===typeof n?n:n[e.mode]||0,delay:o.transitionDelay}}},93871:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(60288);function o(t){if("string"!==typeof t)throw new Error((0,i.Z)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},34236:function(t,e,n){function i(t,e){"function"===typeof t?t(e):t&&(t.current=e)}n.d(e,{Z:function(){return i}})},55192:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(67294),o="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;function a(t){var e=i.useRef(t);return o((function(){e.current=t})),i.useCallback((function(){return e.current.apply(void 0,arguments)}),[])}},17294:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(67294),o=n(34236);function a(t,e){return i.useMemo((function(){return null==t&&null==e?null:function(n){(0,o.Z)(t,n),(0,o.Z)(e,n)}}),[t,e])}},24896:function(t,e,n){n.d(e,{Z:function(){return m}});var i=n(67294),o=n(73935),a=!0,r=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(t){t.metaKey||t.altKey||t.ctrlKey||(a=!0)}function d(){a=!1}function u(){"hidden"===this.visibilityState&&r&&(a=!0)}function p(t){var e=t.target;try{return e.matches(":focus-visible")}catch(n){}return a||function(t){var e=t.type,n=t.tagName;return!("INPUT"!==n||!l[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}function f(){r=!0,window.clearTimeout(s),s=window.setTimeout((function(){r=!1}),100)}function m(){return{isFocusVisible:p,onBlurVisible:f,ref:i.useCallback((function(t){var e,n=o.findDOMNode(t);null!=n&&((e=n.ownerDocument).addEventListener("keydown",c,!0),e.addEventListener("mousedown",d,!0),e.addEventListener("pointerdown",d,!0),e.addEventListener("touchstart",d,!0),e.addEventListener("visibilitychange",u,!0))}),[])}}},12325:function(t,e,n){n.r(e),n.d(e,{default:function(){return P}});var i=n(85893),o=n(67294),a=n(2497),r=n(7696),s=n(19854),l=n(29403),c=n(95784),d=n(69079),u=n(93871),p=n(93181),f=n(52091),m=n(30080),h=n(60675),x=function(t){var e=t.goal;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"card-content pl-3 pr-6 pt-4 pb-0 ".concat(e.boardShow),children:(0,i.jsx)("div",{className:"content",children:e.goalTitle})}),e.boardShow===s.sO.IN_PROGRESS?(0,i.jsxs)("div",{className:"goal-type is-flex level-left pt-2",children:[(0,i.jsx)("figure",{children:(0,i.jsx)("p",{className:"image is-16x16 ".concat(e.goalTypeId)})}),(0,i.jsx)("p",{className:"px-2 goal-type-title",children:e.goalType})]}):(0,i.jsx)(w,{status:e.goalStatus,typeId:e.goalTypeId})]})},g=[{goalType:"Learning/Development",typeId:"learning"},{goalType:"Health/Wellness",typeId:"health"},{goalType:"Extracurricular/Initiative",typeId:"extracurricular"},{goalType:"Award/Certification",typeId:"award"},{goalType:"Academic/Post-Secondary",typeId:"academic"},{goalType:"Employment/Internship",typeId:"employment"}],y=function(t){var e=t.goal,n=t.onFinish,r=(0,o.useState)(!1),s=r[0],l=r[1],d=(0,o.useState)(e.goalTitle),u=d[0],p=d[1],f=(0,o.useState)({goalType:e.goalType,typeId:e.goalTypeId}),h=f[0],x=f[1];(0,o.useEffect)((function(){x({goalType:e.goalType,typeId:e.goalTypeId})}),[e.goalType,e.goalTypeId]);var y=(0,a.I0)(),v=(0,o.useRef)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"card-content px-3 py-2",children:[(0,i.jsx)("textarea",{ref:v,rows:3,maxLength:56,onChange:function(t){return p(t.target.value)},className:"textarea has-fixed-size",value:u,placeholder:"Fixed size textarea",onKeyDown:function(t){return function(t){var e;t&&"Enter"==t.key&&(t.preventDefault(),null===(e=v.current)||void 0===e||e.blur())}(t)}}),(0,i.jsx)("button",{className:"button is-link goal-update-btn",onClick:function(){return e.goalTitle!==u&&y((0,c.hm)({id:e.id,goalTitle:u})),void n()},children:"OK"})]}),(0,i.jsx)("div",{className:"edit-goal-type-list is-flex level-left pt-1 mt-0 is-justify-content-center",children:(0,i.jsxs)("div",{className:"dropdown ".concat(s?"is-active":""," full-width"),children:[(0,i.jsx)("div",{className:"dropdown-trigger full-width px-3",children:(0,i.jsxs)("button",{className:"button py-0 full-width",onClick:function(){l(!s)},children:[(0,i.jsx)("span",{className:"icon is-small",children:(0,i.jsx)(m.gwH,{size:26,color:"#21C4F7"})}),(0,i.jsx)("span",{children:h.goalType})]})}),(0,i.jsx)("div",{className:"dropdown-menu pt-1",id:"dropdown-menu",role:"menu",children:(0,i.jsx)("div",{className:"dropdown-content py-0",children:g.map((function(t){return(0,i.jsx)("a",{className:" ".concat(h.typeId===t.typeId?"is-active":""," dropdown-item"),onClick:function(){return function(t){x(t),y((0,c.hm)({id:e.id,goalType:t.goalType,goalTypeId:t.typeId})),l(!1)}(t)},children:t.goalType},t.typeId)}))})})]})})]})},v=function(t){var e=t.onFinish,n=t.scroll,r=(0,o.useState)(!1),s=r[0],l=r[1],p=(0,o.useState)(""),f=p[0],x=p[1],y=(0,o.useState)(),v=y[0],w=y[1];(0,o.useEffect)((function(){if(n){var t=document.getElementById("root-new-goal-section");t&&t.scrollIntoView({behavior:"smooth"})}}),[n]);var j=(0,a.I0)(),E=function(){return f.trim().length<5?j((0,h.hh)({life:3e3,severity:"error",summary:"Goal is not Clear",detail:""})):v?(j((0,c.P4)({goal:{title:f,type:{typeStr:v.goalType,typeId:v.typeId}}})),e()):j((0,h.hh)({life:3e3,severity:"error",summary:"Goal Type required",detail
1:""}))},b=(0,o.useRef)(null),N=(0,d.O)((function(){e()}));return(0,o.useEffect)((function(){var t;null===(t=b.current)||void 0===t||t.focus()}),[]),(0,i.jsxs)("div",{className:"card backlog-goals-card m-3 in-backlog-card goals-card",id:"root-new-goal-section",ref:N,children:[(0,i.jsxs)("div",{className:"card-content px-3 py-2",children:[(0,i.jsx)("textarea",{ref:b,rows:3,maxLength:56,onChange:function(t){return x((0,u.Z)(t.target.value))},className:"textarea has-fixed-size",value:f,placeholder:"Name the Goal",onKeyDown:function(t){return function(t){t&&"Enter"==t.key&&(t.preventDefault(),v?E():l(!0))}(t)}}),(0,i.jsx)("button",{className:"button is-link goal-update-btn",onClick:function(){return E()},children:"OK"})]}),(0,i.jsx)("div",{className:"edit-goal-type-list is-flex level-left pt-1 mt-0 is-justify-content-center",children:(0,i.jsxs)("div",{className:"dropdown ".concat(s?"is-active":""," full-width"),children:[(0,i.jsx)("div",{className:"dropdown-trigger full-width px-3",children:(0,i.jsxs)("button",{className:"button py-0 full-width",onClick:function(){l(!s)},children:[(0,i.jsx)("span",{className:"icon is-small",children:(0,i.jsx)(m.gwH,{size:26,color:"#21C4F7"})}),(0,i.jsx)("span",{children:v?v.goalType:"Select Goal type"})]})}),(0,i.jsx)("div",{className:"dropdown-menu pt-1",id:"dropdown-menu",role:"menu",children:(0,i.jsx)("div",{className:"dropdown-content py-0",children:g.map((function(t){return(0,i.jsx)("a",{className:" ".concat((null===v||void 0===v?void 0:v.typeId)===t.typeId?"is-active":""," dropdown-item"),onClick:function(){return function(t){w(t),l(!1)}(t)},children:t.goalType},t.typeId)}))})})]})})]})},w=function(t){var e=t.status,n=t.typeId;return e===s._T.INCOMPLETE?(0,i.jsxs)("div",{className:"goal-type is-flex level-left pt-2","data-goal-type":n,children:[(0,i.jsx)(p.Moj,{color:"#43464B",size:"18"}),(0,i.jsx)("p",{className:"px-2",children:"Incomplete"})]}):(0,i.jsxs)("div",{className:"goal-type is-flex level-left pt-2","data-goal-type":n,children:[(0,i.jsx)(f.FJM,{color:"#68D6C0",size:"16",className:"mr-2"}),(0,i.jsx)("p",{className:"px-2",children:"Complete"})]})};function j(t){var e=t.goal,n=t.onDelete,u=(0,o.useState)(!1),p=u[0],f=u[1],m=(0,o.useState)(!1),h=m[0],g=m[1],v=(0,d.O)((function(){f(!1),g(!1)})),w=(0,a.I0)(),j=function(t){t===s._T.COMPLETED?(w((0,c.hm)({goalStatus:t,id:e.id,boardShow:s.sO.DONE})),w((0,l.F0)(e.id))):(w((0,c.hm)({goalStatus:t,id:e.id,boardShow:s.sO.BACKLOG})),w((0,l.t_)(e.id)))};return(0,i.jsxs)("div",{className:"card goals-card inprogress-goal-card","data-board":e.boardShow,ref:v,children:[(0,i.jsx)("div",{className:"".concat(h?"display-none":"goal-edit-mask"," is-justify-content-center is-align-items-center"),children:(0,i.jsxs)("div",{className:"dropdown ".concat(p?"is-active":""),children:[(0,i.jsx)("div",{className:"dropdown-trigger",children:(0,i.jsx)("div",{className:"box pt-2 pb-0 px-3 edit-options","data-tooltip":"Edit this goal",onClick:function(){return f(!p)},"data-flow":"bottom",children:(0,i.jsx)(r.job,{size:25})})}),(0,i.jsx)("div",{className:"dropdown-menu ",id:"dropdown-menu3",role:"menu",children:(0,i.jsxs)("div",{className:"dropdown-content py-0",children:[(0,i.jsx)("a",{onClick:function(){g(!0),f(!1)},className:"dropdown-item",children:"Edit"}),(0,i.jsx)("a",{className:"dropdown-item",onClick:function(){return n(e)},children:"Delete"}),e.goalStatus===s._T.INCOMPLETE?(0,i.jsx)("a",{className:"dropdown-item",onClick:function(){return j(s._T.COMPLETED)},children:"Mark complete"}):(0,i.jsx)("a",{className:"dropdown-item",onClick:function(){return j(s._T.INCOMPLETE)},children:"Mark incomplete"})]})})]})}),h?(0,i.jsx)(y,{goal:e,onFinish:function(){return g(!1)}}):(0,i.jsx)(x,{goal:e})]},e.id)}function E(t){var e=t.goal,n=t.nextStep,u=t.onDelete,p=(0,o.useState)(!1),f=p[0],m=p[1],h=(0,o.useState)(!1),g=h[0],v=h[1],w=(0,d.O)((function(){m(!1),v(!1)})),j=(0,a.I0)(),E=function(t){t===s._T.COMPLETED?(j((0,c.hm)({goalStatus:t,id:e.id,boardShow:s.sO.DONE})),j((0,l.bo)(e.id))):(j((0,c.hm)({goalStatus:t,id:e.id,boardShow:n||s.sO.BACKLOG})),n===s.sO.IN_PROGRESS?j((0,l.O4)(e.id)):j((0,l.t_)(e.id)))};return(0,i.jsxs)("div",{className:"card goals-card m-3 in-backlog-card",ref:w,children:[(0,i.jsx)("div",{className:"".concat(g?"display-none":"goal-edit-mask"," is-justify-content-center is-align-items-center"),children:(0,i.jsxs)("div",{className:"dropdown ".concat(f?"is-active":""),children:[(0,i.jsx)("div",{className:"dropdown-trigger",children:(0,i.jsx)("div",{className:"box pt-2 pb-0 px-3 edit-options","data-tooltip":"Edit this goal",onClick:function(){return m(!f)},"data-flow":"bottom",children:(0,i.jsx)(r.job,{size:25})})}),(0,i.jsx)("div",{className:"dropdown-menu ",id:"dropdown-menu3",role:"menu",children:(0,i.jsxs)("div",{className:"dropdown-content py-0",children:[(0,i.jsx)("a",{onClick:function(){v(!0),m(!1)},className:"dropdown-item",children:"Edit"}),(0,i.jsx)("a",{onClick:function(){return u(e)},className:"dropdown-item",children:"Delete"}),e.goalStatus===s._T.INCOMPLETE?(0,i.jsx)("a",{className:"dropdown-item",onClick:function(){return E(s._T.COMPLETED)},children:"Mark complete"}):(0,i.jsx)("a",{className:"dropdown-item",onClick:function(){return E(s._T.INCOMPLETE)},children:"Mark incomplete"})]})})]})}),g?(0,i.jsx)(y,{goal:e,onFinish:function(){return v(!1)}}):(0,i.jsx)(x,{goal:e})]},e.id)}var b=n(51351),N=n(41120),C=n(87083),S=n(8704);function T(t){t=null!==t?t:(0,b.Z)(new TypeError("Cannot destructure undefined"));var e=(0,o.useState)(!1),n=e[0],r=e[1],s=(0,a.v9)((function(t){return t})).goalsBoard,c=(0,a.I0)(),u=(0,N.Z)((function(){return{arrow:{color:"#43464B"},tooltip:{backgroundColor:"#43464B",fontSize:"12px",borderRadius:"0px",maxWidth:"200px",padding:"10px 20px",textAlign:"center"}}}))(),p=(0,d.O)((function(){r(!1)}));return(0,o.useEffect)((function(){s.scrollToNewGoal&&(r(!0),c((0,l.Ny)(!1)))}),[s.scrollToNewGoal]),n?(0,i.jsx)(v,{onFinish:function(){return r(!1)},scroll:!0}):(0,i.jsx)("div",{ref:p,className:"card goals-card new-goal-card is-flex is-justify-content-center is-align-items-center",children:(0,i.jsx)(C.ZP,{title:"Add new goal",arrow:!0,placement:"bottom",classes:u,children:(0,i.jsx)("div",{className:"box py-3 px-3 cursor-pointer",onClick:function(){return r(!0)},children:(0,i.jsx)(S.ueT,{size:25,className:"pt-2 new-goal-btn"})})})})}
1var Z=n(41749),k=n(96486),I=n.n(k),O=n(32158),D=n(66856),M=n(29525),L=n(7212),R=n(66083),G=n(11057),B=function(t){var e=t.goal,n=t.close,o=(0,a.I0)();return(0,i.jsx)("div",{children:(0,i.jsxs)(O.Z,{open:!0,onClose:n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,i.jsx)(R.Z,{id:"alert-dialog-title",children:"Delete Goal"}),(0,i.jsx)(M.Z,{children:(0,i.jsxs)(L.Z,{id:"alert-dialog-description",className:"delete-goal-desc",children:["Are you sure you want to delete ",(0,i.jsx)("strong",{children:e.goalTitle})," and all the actions under this goal"]})}),(0,i.jsxs)(D.Z,{children:[(0,i.jsx)(G.Z,{onClick:n,color:"primary",children:"Disagree"}),(0,i.jsx)(G.Z,{onClick:function(){o((0,c.Zb)(e.id,e.boardShow)),n()},color:"primary",autoFocus:!0,children:"Agree"})]})]})})};function P(){var t=(0,a.v9)((function(t){return t})).goalsBoard,e=(0,o.useState)(null),n=e[0],r=e[1],l=function(t){r(t)};return(0,i.jsxs)(Z.Z,{container:!0,justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(Z.Z,{item:!0,xs:12,className:"full-width mt-3",children:(0,i.jsx)("h1",{className:"board-section-title",children:"Goals"})}),(0,i.jsxs)(Z.Z,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:[I().sortBy(t.inprogressGoals,["goalOrder"]).map((function(t){return"sys_init_action"!==t.goalTitle?(0,i.jsx)(Z.Z,{item:!0,xs:12,md:3,className:"full-width mt-3",children:(0,i.jsx)(j,{goal:t,onDelete:l},t.id)},t.id):(0,i.jsx)("span",{},t.id)})),t.backlogGoals.map((function(t){return(0,i.jsx)(Z.Z,{item:!0,xs:12,md:3,className:"full-width mt-3",children:(0,i.jsx)(E,{goal:t,onDelete:l},t.id)},t.id)})),t.doneGoals.map((function(t){return(0,i.jsx)(Z.Z,{item:!0,xs:12,md:3,className:"full-width mt-3",children:(0,i.jsx)(E,{goal:t,onDelete:l,nextStep:t.actions.items.length?s.sO.IN_PROGRESS:s.sO.BACKLOG},t.id)},t.id)})),(0,i.jsx)(Z.Z,{item:!0,xs:12,md:3,className:"full-width mt-3",children:(0,i.jsx)(T,{})})]}),n&&(0,i.jsx)(B,{goal:n,close:function(){r(null)}})]})}},69079:function(t,e,n){n.d(e,{O:function(){return o}});var i=n(67294),o=function(t){var e=(0,i.useRef)();return(0,i.useEffect)((function(){var n=function(n){e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}})),e}},96630:function(t,e,n){n.d(e,{Ix:function(){return m},cn:function(){return f},d0:function(){return p}});var i=n(63366),o=n(75068),a=n(67294),r=n(73935),s=n(6035),l=n(220),c=n(59391),d="unmounted",u="exited",p="entering",f="entered",m="exiting",h=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?a?(o=u,i.appearStatus=p):o=f:o=e.unmountOnExit||e.mountOnEnter?d:u,i.state={status:o},i.nextCallback=null,i}(0,o.Z)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===d?{status:u}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(e=p):n!==p&&n!==f||(e=m)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!==typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&(0,c.Q)(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:d})},n.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[r.findDOMNode(this),i],a=o[0],l=o[1],c=this.getTimeouts(),d=i?c.appear:c.enter;!t&&!n||s.Z.disabled?this.safeSetState({status:f},(function(){e.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:p},(function(){e.props.onEntering(a,l),e.onTransitionEnd(d,(function(){e.safeSetState({status:f}
1,(function(){e.props.onEntered(a,l)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:r.findDOMNode(this);e&&!s.Z.disabled?(this.props.onExit(i),this.safeSetState({status:m},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:u},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:u},(function(){t.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===d)return null;var e=this.props,n=e.children,o=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,i.Z)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(l.Z.Provider,{value:null},"function"===typeof n?n(t,o):a.cloneElement(a.Children.only(n),o))},e}(a.Component);function x(){}h.contextType=l.Z,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},h.UNMOUNTED=d,h.EXITED=u,h.ENTERING=p,h.ENTERED=f,h.EXITING=m,e.ZP=h},6035:function(t,e){e.Z={disabled:!1}},59391:function(t,e,n){n.d(e,{Q:function(){return i}});var i=function(t){return t.scrollTop}},51351:function(t,e,n){function i(t){throw t}n.d(e,{Z:function(){return i}})}}]);

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.