PageSourceSearch

https://ruler.online/_next/static/chunks/pages/roadmap-7349adf1144fdf4d.js

js ruler.online collected 2026-10-02 00:14:00 UTC 17,326 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6845],{78696:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(92777),r=n(82262),o=n(45959),i=n(63553),a=n(37247),u=n(67294),c=n(94184),l=n.n(c),d=n(82745),h=n(85893);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,a.Z)(e);if(t){var r=(0,a.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,i.Z)(this,n)}}var f=function(e){(0,o.Z)(n,e);var t=p(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,[{key:"subtitlePresent",get:function(){return this.props.subtitle||this.props.subtitleSlug}},{key:"renderSubtitle",value:function(){if(!this.subtitlePresent)return null;var e=this.props,t=e.subtitle,n=e.subtitleSlug;return(0,h.jsx)("div",{className:"page-subtitle",children:n?(0,h.jsx)(d.Z,{hideLoader:!0,slug:n}):t})}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.titleSlug,s=e.className,r=e.extraContent;return(0,h.jsx)("div",{className:l()(s,"hero-section"),children:(0,h.jsx)("div",{className:"grid-container",children:(0,h.jsx)("div",{className:"grid-x grid-padding-x",children:(0,h.jsxs)("div",{className:"small-12 medium-12 large-8 cell",children:[(0,h.jsx)("h1",{className:l()("page-title",{"margin-bottom-0":!this.subtitlePresent}),children:n?(0,h.jsx)(d.Z,{slug:n}):t}),this.renderSubtitle(),r]})})})})}}]),n}(u.Component)},37781:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return F}});var s,r=n(92777),o=n(82262),i=n(45959),a=n(63553),u=n(37247),c=n(67294),l=n(2664),d=n(87411),h=n(15182),p=n(32152),f=n(88901),g=n(25815),m=n(78696),v=n(96486),y=n.n(v),b=n(28315),x=n(34293),Z=n(59499),k=n(94184),S=n.n(k),N=n(66131),j=n(58547),_=n(86296),R=n(85893);function T(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var C,w=(0,l.$j)((function(e){return{user:e.root.user,userStats:y().get(e.school.userStats,"items.0.people_in_school"),school:e.school.details.item}}),(function(e){return{completeNudge:function(t){return e((0,_.Ju)(t))}}}))(s=function(e){(0,i.Z)(n,e);var t=T(n);function n(e){var s;return(0,r.Z)(this,n),(s=t.call(this,e)).actionLink=c.createRef(),s}return(0,o.Z)(n,[{key:"totalPeople",get:function(){return y().get(this.props.userStats,"enabled")}},{key:"completeNudgeHandler",value:function(){var e=this,t=this.props.task,n=t.id,s=t.completed_nudge,r=b.NU.schoolImplementationTeam(this.props.user);return function(){s||e.props.completeNudge({id:n,nudgeDescription:e.props.task.body,nudgeSetId:e.props.nudgeSet.id,nudgeSetName:e.props.nudgeSet.title,isImplementationTeam:r})}}},{key:"replaceLink",value:function(e){var t=this;return y().each(j.Z,(function(n){var s=n.action,r=n.url;e=e.replace(s,r({school:t.props.school}))})),e}},{key:"render",value:function(){var e=this.props.task,t=e.id,n=e.body,s=e.completed_nudge,r=e.completed_my_school,o=0;this.totalPeople>1&&(o=r/this.totalPeople*100);var i={width:"".concat(o,"%")};return(0,R.jsxs)("li",{children:[this.props.showStats?(0,R.jsx)("div",{className:"progress",role:"progressbar",tabIndex:"0","aria-valuenow":o,"aria-valuemin":"0","aria-valuetext":"".concat(o," percent"),"aria-valuemax":"100",children:(0,R.jsx)("div",{className:"progress-meter",style:i})}):null,(0,R.jsxs)("div",{className:"nudge-task-body",children:[this.props.showStats?(0,R.jsx)("p",{className:"nudge-task-stats",children:(0,b.gx)(1===r?d.Z.dashboard.nudges.personCompleted:d.Z.dashboard.nudges.peopleCompleted,[r])}):null,(0,R.jsx)("p",{ref:this.actionLink,dangerouslySetInnerHTML:{__html:this.replaceLink(n)}})]}),this.props.showAction?(0,R.jsx)("div",{className:"nudge-task-action",children:(0,R.jsx)("button",{type:"button",onClick:this.completeNudgeHandler(),className:S()("hollow","complete","button",{done:s}),children:s?d.Z.dashboard.nudges.completed:d.Z.dashboard.nudges.markCompleted})}):null]},t)}}]),n}(c.Component))||s;function B(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var I,P=(0,l.$j)(null,(function(e){return{changeModal:function(t){return e((0,N.ID)(t))}}}))(C=function(e){(0,i.Z)(n,e);var t=B(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"closeModal",value:function(){this.props.changeModal({isOpen:!1})}},{key:"render",value:function(){var e=this;return(0,R.jsxs)("div",{className:"modal-wrapper",children:[(0,R.jsxs)("div",{className:"modal-header",children:[(0,R.jsx)("h2",{children:d.Z.dashboard.nudges.confirmAssignmentHeader}),(0,R.jsx)("p",{className:"lead",children:this.props.bodyText})]}),(0,R.jsxs)("div",{className:"modal-footer",children:[(0,R.jsx)("button",{type:"button",className:S()("button hollow",{alert:this.props.alert}),onClick:function(){return e.props.onClickHandler()},children:this.props.confirmText}),(0,R.jsx)("button",{type:"button",className:"button clear cancel",onClick:function(){return e.closeModal()},children:this.props.cancelText})]})]})}}]),n}(c.Component))||C;function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var H=(0,l.$j)((function(e){return{user:e.root.user}}),(function(e){return{publishNudge:function(t){return e((0,_.mX)(t))},unpublishNudge:function(t){return e((0,_.K9)(t))},changeModal:function(t){return e((0,N.ID)(t))}}}))(I=function(e){(0,i.Z)(n,e);var t=A(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"isAssigned",get:function(){return this.props.nudgeSet.is_static||this.props.nudgeSet.assigned_nudge_set}},{key:"assignmentAllowed",get:function(){return!this.props.nudgeSet.is_static}},{key:"publishHandler",value:function(){var e=this;return function(){var t=e.props,n=t.nudgeSet,s=t.user;s.school_id&&e.props.publishNudge({nudgeSetId:n.id,nudgeSetName:n.title,schoolId:s.school_id,schoolName:s.school,personId:s.id})}}},{key:"confirmPublishHandler",value:function(){var e=this;return function(){e.props.changeModal({isOpen:!0,hideCloseButton:!0,aria:{labelledby:"confirm-nudge-assignment-header"},className:"confirm-nudge-assignment",content:(0,R.jsx)(P,{bodyText:d.Z.dashboard.nudges.publishText,confirmText:d.Z.dashboard.nudges.confirmPublishButton,cancelText:d.Z.dashboard.nudges.cancelAssignmentButton,onClickHandler:e.publishHandler()})})}}},{key:"unpublishHandler",value:function(){var e=this;return function(){var t=e.props,n=t.nudgeSet,s=t.user;s.school_id&&e.props.unpublishNudge({nudgeSetId:n.id,nudgeSetName:n.title,schoolId:s.school_id,schoolName:s.school})}}},{key:"confirmUnpublishHandler",value:function(){var e=this;return function(){e.props.changeModal({isOpen:!0,hideCloseButton:!0,aria:{labelledby:"confirm-nudge-assignment-header"},className:"confirm-nudge-assignment",content:(0,R.jsx)(P,{alert:!0,bodyText:d.Z.dashboard.nudges.unpublishText,confirmText:d.Z.dashboard.nudges.confirmUnpublishButton,cancelText:d.Z.cancelButton,onClickHandler:e.unpublishHandler()})})}}},{key:"renderActions",value:function(){var e=this.isAssigned;return(0,R.jsxs)("div",{className:"nudge-task-action",children:[e&&(0,R.jsxs)("div",{className:"assigned-label",children:[(0,R.jsx)("i",{className:"icon icon-check"}),d.Z.dashboard.nudges.published]}),(0,R.jsx)("button",{type:"button",onClick:e?this.confirmUnpublishHandler():this.confirmPublishHandler(),disabled:!this.assignmentAllowed,className:"hollow assign button",children:e?d.Z.dashboard.nudges.unpublish:d.Z.dashboard.nudges.publish})]})}},{key:"render",value:function(){var e=this.props.nudgeSet,t=this.isAssigned;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("li",{className:"setup",children:[(0,R.jsx)("ul",{className:"nudges-task-list",children:y().map(e.nudges,(function(n){return(0,R.jsx)(w,{task:n,showStats:t,showAction:t,nudgeSet:e},n.id)}))}),this.renderActions()]}),e.guide_instructions?(0,R.jsx)("li",{className:"instructions",children:(0,R.jsx)("p",{dangerouslySetInnerHTML:{__html:e.guide_instructions}})}):null]})}}]),n}(c.Component))||I;function L(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var M=function(e){(0,i.Z)(n,e);var t=L(n);function n(e){var s;return(0,r.Z)(this,n),(s=t.call(this,e)).state={active:0===s.props.index||!1},s}return(0,o.Z)(n,[{key:"tasksLeft",get:function(){var e=this.props.stats;return e.total_persons*e.total_nudges-e.total_completed}},{key:"toggleTab",value:function(){this.setState((function(e){return{active:!e.active}}))}},{key:"renderStats",value:function(){var e=this.props,t=e.disableStats,n=e.stats;if(t||y().isEmpty(n))return null;if(n.completed_nudge_set)return d.Z.dashboard.nudges.everybodyCompleted;var s=this.tasksLeft;return y().isNumber(s)?1===s?d.Z.dashboard.nudges.oneTaskToCompleteInSchool:(0,b.gx)(d.Z.dashboard.nudges.tasksToCompleteInSchool,[s]):void 0}},{key:"render",value:function(){var e=this,t=this.props,n=t.nudgeSet,s=t.nudgeType,r=t.stats;return(0,R.jsxs)("li",{className:S()("accordion-item",{"is-active":this.state.active}),children:[(0,R.jsxs)("a",{onClick:function(){return e.toggleTab()},onKeyDown:function(){return e.toggleTab()},tabIndex:"0",className:"accordion-title","aria-controls":"accordion",role:"tab","aria-expanded":"true","aria-selected":"true",children:[(0,R.jsxs)("h3",{className:"nudges-group-title",children:[(0,R.jsx)("span",{children:"".concat(s.name," ").concat(n.index.toString().padStart(2,"0"))}),(0,R.jsx)("div",{children:n.guide_title?n.guide_title:n.title})]}),(0,R.jsx)("p",{className:S()("nudges-counter",{done:r&&r.completed_nudge_set}),children:this.renderStats()}),(0,R.jsx)("p",{className:"nudges-desc",dangerouslySetInnerHTML:{__html:n.guide_description?n.guide_description:n.description}})]}),(0,R.jsx)("div",{className:"accordion-content",role:"tabpanel","aria-labelledby":"accordion-label","aria-hidden":"false",style:{display:this.state.active?"block":"none"},children:(0,R.jsx)("ul",{className:"nudges-task-list",children:(0,R.jsx)(H,{nudgeSet:n})})})]})}}]),n}(c.Component);function O(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}(0,Z.Z)(M,"defaultProps",{disableStats:!0});var U,E=function(e){(0,i.Z)(n,e);var t=O(n);function n(e){var s;return(0,r.Z)(this,n),(s=t.call(this,e)).state={active:0===s.props.index||!1},s}return(0,o.Z)(n,[{key:"tasksLeft",get:function(){return y().sumBy(this.props.nudgeSet.nudges,(function(e){return!e.completed_nudge}))}},{key:"toggleTab",value:function(){this.setState((function(e){return{active:!e.active}}))}},{key:"renderTasksLeft",value:function(){return this.tasksLeft?1===this.tasksLeft?d.Z.dashboard.nudges.oneTaskToComplete:(0,b.gx)(d.Z.dashboard.nudges.tasksToComplete,[this.tasksLeft]):d.Z.dashboard.nudges.allCompleted}},{key:"render",value:function(){var e=this,t=this.props,n=t.index,s=t.nudgeSet,r=t.nudgeType,o=0===n;return"setup"===r.slug?null:(0,R.jsxs)("li",{className:S()("accordion-item",{"is-active":this.state.active}),children:[(0,R.jsxs)("a",{onClick:function(){return e.toggleTab()},onKeyDown:function(){return e.toggleTab()},tabIndex:"0",className:"accordion-title","aria-controls":"accordion",role:"tab","aria-expanded":"true","aria-selected":"true",children:[(0,R.jsxs)("h3",{className:"nudges-group-title",children:[(0,R.jsx)("span",{children:"".concat(r.name," ").concat(s.index.toString().padStart(2,"0"))}),(0,R.jsx)("div",{children:s.title})]}),(0,R.jsx)("p",{className:S()("nudges-counter",{done:!this.tasksLeft}),children:this.renderTasksLeft()}),(0,R.jsx)("p",{className:"nudges-desc",children:s.description})]}),(0,R.jsxs)("div",{className:"accordion-content",role:"tabpanel","aria-labelledby":"accordion-label","aria-hidden":"false",style:{display:this.state.active?"block":"none"},children:[(0,R.jsx)("ul",{className:"nudges-task-list",children:y().map(s.nudges,(function(e){return(0,R.jsx)(w,{task:e,nudgeSet:s,showAction:!0,showStats:!0},e.id)}))}),o?(0,R.jsx)("p",{children:(0,R.jsx)("small",{children:(0,R.jsx)("strong",{children:d.Z.dashboard.nudges.completedNote})})}):null]})]})}}]),n}(c.Component);function D(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var $,q,K=(0,l.$j)((function(e){return{user:e.root.user,mySets:e.nudges.mySets.items,allSets:e.nudges.allSets.items,nudgeSchoolStats:e.nudges.nudgeSchoolStats.items}}),(function(e){return{loadMyNudgeSets:function(){return e((0,_.CH)())},loadAllNudgeSets:function(){return e((0,_.qE)())},schoolUserStatsRequest:function(){return e(x.V1.actions.request())}}}))(U=function(e){(0,i.Z)(n,e);var t=D(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}
1return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.canSeeAssignments?(this.props.loadAllNudgeSets(),this.props.schoolUserStatsRequest()):this.props.loadMyNudgeSets()}},{key:"canSeeAssignments",get:function(){return b.NU.schoolImplementationTeam(this.props.user)}},{key:"renderNudgeSets",value:function(){var e=this;return this.canSeeAssignments?y().map(this.props.allSets,(function(t,n){return(0,R.jsx)(M,{index:n,nudgeSet:t,nudgeType:t.nudge_set_type,stats:y().find(e.props.nudgeSchoolStats,{id:t.id})},t.id)})):y().map(this.props.mySets,(function(e,t){return(0,R.jsx)(E,{index:t,nudgeSet:e,nudgeType:e.nudge_set_type},e.id)}))}},{key:"render",value:function(){return(0,R.jsx)("ul",{className:"accordion nudges-list",role:"tablist",children:this.renderNudgeSets()})}}]),n}(c.Component))||U;function X(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,s=(0,u.Z)(e);if(t){var r=(0,u.Z)(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return(0,a.Z)(this,n)}}var F=($=(0,l.$j)((function(e){return{user:e.root.user}})),(0,f.Z)(q=$(q=function(e){(0,i.Z)(n,e);var t=X(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"canSeeAssignments",get:function(){return g.NU.schoolImplementationTeam(this.props.user)}},{key:"subtitleSlug",get:function(){return this.canSeeAssignments?"dashboard/roadmap-description/impl":"dashboard/roadmap-description/staff"}},{key:"render",value:function(){return(0,R.jsxs)(h.Z,{children:[(0,R.jsx)(p.Z,{title:d.Z.page.roadmap.headTitle}),(0,R.jsxs)("div",{className:"roadmap",children:[(0,R.jsx)(m.Z,{titleSlug:"dashboard/roadmap-title",subtitleSlug:this.subtitleSlug}),(0,R.jsx)("div",{className:"grid-container margin-top-3",children:(0,R.jsx)("div",{className:"grid-x grid-padding-x",children:(0,R.jsx)("div",{className:"small-12 medium-10 cell medium-offset-1",children:(0,R.jsx)(K,{})})})})]})]})}}]),n}(c.Component))||q)||q)},76070:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/roadmap",function(){return n(37781)}])}},function(e){e.O(0,[4186,1445,1111,5999,4885,1845,3253,1664,174,7296,8901,9774,2888,179],(function(){return t=76070,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=roadmap-7349adf1144fdf4d.js.map

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.