1!function(){"use strict";function t(){return(t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,i){var o=e(t,n);if(o){var s=Object.getOwnPropertyDescriptor(o,n);return s.get?s.get.call(arguments.length<3?t:i):s.value}}).apply(this,arguments)}function e(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,o,s=[],a=!0,r=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);a=!0);}catch(c){r=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(r)throw o}}return s}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(self.webpackChunkwizer=self.webpackChunkwizer||[]).push([[885],{21885:function(e,o,s){var c,g,p,f;s.r(o),s.d(o,{AssessmentModule:function(){return Ui}});var m=s(38583),v=s(3679),C=s(51095),x=s(7539),w=s(22238),_=s(98295),M=s(76627),O=s(4885),b=s(67441),k=s(94935),P=s(45396),y=s(11494),Z=s(32789),S=s(65939),A=s(11436),T=s(17538),q=s(44466),D=s(67036),I=s(37716),z=s(67772),J=s(88544),U=s(46782),F=s(66118),Q=s(25379),N=["dropdown"],Y=["searchRef"];function L(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"p",17),I._uU(2),I.qZA(),I.qZA()),2&t){var n=I.oxw();I.xp6(2),I.Oqu(n.placeholder)}}function j(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"p",19),I._uU(2),I.qZA(),I.TgZ(3,"button",20),I.NdJ("click",function(t){var e=I.CHM(n).$implicit;return I.oxw().removeChip(e,t)}),I.TgZ(4,"mat-icon"),I._uU(5,"clear"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit;I.xp6(1),I.Q6J("matTooltip",i.label),I.xp6(1),I.hij(" ",i.label," ")}}function $(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"button",20),I.NdJ("click",function(){return I.CHM(n),I.oxw(2).search=""}),I.TgZ(1,"mat-icon"),I._uU(2,"clear"),I.qZA(),I.qZA()}}function R(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",21),I.TgZ(1,"mat-icon"),I._uU(2,"search"),I.qZA(),I.TgZ(3,"input",22,23),I.NdJ("LazyInputChange",function(t){return I.CHM(n),I.oxw().search=t}),I.qZA(),I.YNc(5,$,3,0,"button",24),I.qZA()}if(2&t){var i=I.oxw();I.xp6(3),I.Q6J("disabled",i.checkPremium&&!i.isPremium)("placeholder",i.searchPlaceholder)("ngModel",i.search)("delay",500)("minChars",2),I.xp6(2),I.Q6J("ngIf",i.search)}}function E(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-checkbox",26),I.NdJ("ngModelChange",function(){var t=I.CHM(n).$implicit;return I.oxw().toggleSelect(t)}),I.qZA(),I.TgZ(2,"p",27),I.NdJ("click",function(){var t=I.CHM(n).$implicit;return I.oxw().toggleSelect(t)}),I._uU(3),I.qZA(),I.TgZ(4,"span"),I._uU(5),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit,o=I.oxw();I.xp6(1),I.Q6J("ngModel",o.selectionMap[i.uid]),I.xp6(1),I.Q6J("matTooltip",i.label),I.xp6(1),I.hij(" ",i.label," "),I.xp6(2),I.hij(" ",i.label2," ")}}function H(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",28),I.TgZ(1,"p",17),I._uU(2),I.qZA(),I.TgZ(3,"div",29),I.TgZ(4,"span",17),I._uU(5,"Get Unlimited classes and assignments."),I.qZA(),I.TgZ(6,"button",30),I.NdJ("click",function(){return I.CHM(n),I.oxw().upgrade()}),I._uU(7," Upgrade now "),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=I.oxw();I.xp6(2),I.hij("",i.moreLabel," more")}}function W(t,e){1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"p",31),I._uU(2,"No items found"),I.qZA(),I.qZA())}var B,V=["*"],X=((B=function(t){u(n,t);var e=d(n);function n(t,i){var o;return r(this,n),(o=e.call(this)).dlg=t,o.chgDet=i,o.nonPremiumLimit=3,o.inited=!1,o._search="",o.chips=[],o.filteredItems=[],o.moreLabel=0,o.selectionMap={},o.checkPremium=!0,o.emitOnClose=!1,o.isPremium=!1,o.placeholder="",o.selectFirst=!1,o.searchPlaceholder="",o.withSearch=!1,o.selectionChanged=new I.vpe,o}return l(n,[{key:"items",set:function(t){this._items=t||[],this.emittedSelections=[],this.inited&&this.parseItems()}},{key:"search",get:function(){return this._search},set:function(t){var e,n=null==t?void 0:t.toLowerCase().trim(),i=null===(e=this._search)||void 0===e?void 0:e.toLowerCase().trim();0!==(null==i?void 0:i.localeCompare(n))&&(this._search=t,this.filter(),this.chgDet.markForCheck())}},{key:"ngOnInit",value:function(){this.inited=!0,this.parseItems(),this.preSelect()}},{key:"ngAfterViewInit",value:function(){var t=this;this.dropdown.opened.pipe((0,U.R)(this.ngDestroyed$)).subscribe(function(e){t.searchRef.nativeElement.focus(),t.emitChange(!e)})}},{key:"filter",value:function(){var t,e=null===(t=this._search)||void 0===t?void 0:t.toLowerCase().trim();this.filteredItems=this.innerItems.filter(function(t){var n;return((null===(n=t.label)||void 0===n?void 0:n.toLowerCase().trim())||"").includes(e)})}},{key:"emitChange",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.emitOnClose||e||n){var i=[];Object.keys(this.selectionMap).filter(function(e){return t.selectionMap[e]}
1).forEach(function(e){i.push(t.itemsToInnerItems[e])}),T.Lz.hasDiffs(i,this.emittedSelections,!0)&&(this.emittedSelections=i,this.selectionChanged.emit(i))}}},{key:"removeChip",value:function(t,e){var n=this;e.stopPropagation(),e.stopImmediatePropagation();var i=t.uid;this.chips=this.chips.filter(function(t){return t.uid!==i}),this.selectionMap[i]=!1,setTimeout(function(){return n.dropdown.updatePosition()},10),this.chgDet.markForCheck(),this.emitChange(!1,!0)}},{key:"toggleSelect",value:function(t){var e=this,n=t.uid;this.selectionMap[n]=!this.selectionMap[n],this.selectionMap[n]?this.chips.push(t):this.chips=this.chips.filter(function(t){return t.uid!==n}),setTimeout(function(){return e.dropdown.updatePosition()},10),this.chgDet.markForCheck()}},{key:"upgrade",value:function(){this.dlg.open(T.yi)}},{key:"limitPremium",value:function(){!this.checkPremium||this.checkPremium&&this.isPremium||(this.filteredItems=this.filteredItems.slice(0,this.nonPremiumLimit),this.moreLabel=this._items.length-this.filteredItems.length,this.chgDet.markForCheck())}},{key:"parseItems",value:function(){var t=this,e="function"==typeof this.labelMapper,n="function"==typeof this.label2Mapper,i="function"==typeof this.valMapper;this.selectionMap={},this.itemsToInnerItems={},this.innerItems=this._items.map(function(o){var s=(0,F.Z)(),a={uid:s,label:e?t.labelMapper(o):o[t.labelMapper],label2:n?t.label2Mapper(o):o[t.label2Mapper],value:i?t.valMapper(o):o[t.valMapper]};return t.sortField&&(a[t.sortField]=o[t.sortField]),t.itemsToInnerItems[s]=o,t.selectionMap[s]=!1,a}),this.filter(),this.sort()}},{key:"preSelect",value:function(){var t=this;(this.filteredItems||[]).filter(function(e){return t.selected.includes(e.value)}).forEach(function(e){t.toggleSelect(e)}),this.emitChange(!0)}},{key:"sort",value:function(){var t,e=this;!this.sortField||(this.filteredItems=null===(t=this.filteredItems)||void 0===t?void 0:t.sort(function(t,n){return n[e.sortField]-t[e.sortField]}))}}]),n}(T.H6)).\u0275fac=function(t){return new(t||B)(I.Y36(T.Vc),I.Y36(I.sBO))},B.\u0275cmp=I.Xpm({type:B,selectors:[["wizer-chip-autocomplete"]],viewQuery:function(t,e){var n;1&t&&(I.Gf(N,5,J.J),I.Gf(Y,5,I.SBq)),2&t&&(I.iGM(n=I.CRH())&&(e.dropdown=n.first),I.iGM(n=I.CRH())&&(e.searchRef=n.first))},inputs:{checkPremium:"checkPremium",emitOnClose:"emitOnClose",isPremium:"isPremium",labelMapper:"labelMapper",label2Mapper:"label2Mapper",placeholder:"placeholder",selectFirst:"selectFirst",searchPlaceholder:"searchPlaceholder",selected:"selected",sortField:"sortField",withSearch:"withSearch",valField:"valField",valMapper:"valMapper",items:"items"},outputs:{selectionChanged:"selectionChanged"},features:[I.qOj],ngContentSelectors:V,decls:19,vars:7,consts:[[1,"chip-autocomplete"],[1,"chip-dropdown"],["containerRef",""],[1,"chips"],["class","empty",4,"ngIf"],["class","chip",4,"ngFor","ngForOf"],["mat-icon-button","",1,"open-btn"],["svgIcon","arrow_down"],[3,"reference"],["dropdown",""],[1,"dropdown-wrapper"],["class","search",4,"ngIf"],[1,"items-wrapper"],["class","item",4,"ngFor","ngForOf"],["class","non-premium-info",4,"ngIf"],["mat-flat-button","",1,"legacy","size-16","select-btn",3,"click"],[1,"empty"],[1,"subtitle2"],[1,"chip"],[3,"matTooltip"],["mat-icon-button","",3,"click"],[1,"search"],["type","text","wizerLazyInput","",3,"disabled","placeholder","ngModel","delay","minChars","LazyInputChange"],["searchRef",""],["mat-icon-button","",3,"click",4,"ngIf"],[1,"item"],[1,"tiel",3,"ngModel","ngModelChange"],[1,"subtitle2",3,"matTooltip","click"],[1,"non-premium-info"],[1,"get-access"],["mat-flat-button","",1,"legacy","size-16","uppercase",3,"click"],[1,"subtitle1"]],template:function(t,e){if(1&t&&(I.F$t(),I.TgZ(0,"div",0),I.TgZ(1,"div",1,2),I.TgZ(3,"div",3),I.YNc(4,L,3,1,"div",4),I.YNc(5,j,6,2,"div",5),I.qZA(),I.TgZ(6,"button",6),I._UZ(7,"mat-icon",7),I.qZA(),I.TgZ(8,"wizer-dropdown",8,9),I.TgZ(10,"div",10),I.YNc(11,R,6,6,"div",11),I.TgZ(12,"div",12),I.YNc(13,E,6,4,"div",13),I.YNc(14,H,8,1,"div",14),I.YNc(15,W,3,0,"div",4),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(16,"button",15),I.NdJ("click",function(){return e.emitChange()}),I._uU(17," Select "),I.qZA(),I.qZA(),I.Hsn(18)),2&t){var n=I.MAs(2);I.xp6(4),I.Q6J("ngIf",!(null!=e.chips&&e.chips.length)),I.xp6(1),I.Q6J("ngForOf",e.chips),I.xp6(3),I.Q6J("reference",n),I.xp6(3),I.Q6J("ngIf",e.withSearch),I.xp6(2),I.Q6J("ngForOf",e.filteredItems),I.xp6(1),I.Q6J("ngIf",e.checkPremium&&!e.isPremium&&(null==e.filteredItems?null:e.filteredItems.length)),I.xp6(1),I.Q6J("ngIf",!(null!=e.f
1ilteredItems&&e.filteredItems.length))}},directives:[m.O5,m.sg,C.lW,M.Hw,J.J,A.gM,v.Fj,Q.v,v.JJ,v.On,x.oG],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}[_nghost-%COMP%]{width:100%;display:block}.chip-autocomplete[_ngcontent-%COMP%]{display:inline-flex;width:100%;max-width:100%;min-width:100%}.chip-autocomplete[_ngcontent-%COMP%] .chip-dropdown[_ngcontent-%COMP%]{width:100%;max-width:calc(100% - 110px);flex-grow:1;background-color:#fff;min-height:50px;border-bottom:1px solid #adadad;position:relative;display:flex;align-items:center}.chip-autocomplete[_ngcontent-%COMP%] .chip-dropdown[_ngcontent-%COMP%] .open-btn[_ngcontent-%COMP%]{position:absolute;right:0;top:6px}.chip-autocomplete[_ngcontent-%COMP%] .chip-dropdown[_ngcontent-%COMP%] .open-btn[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:10px}.chip-autocomplete[_ngcontent-%COMP%] .select-btn[_ngcontent-%COMP%]{min-width:100px;max-height:36px;line-height:36px;margin:7px 0 0 10px;background-color:#36cdc7;color:#fff}.chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;max-width:calc(100% - 40px);padding:11px 11px 0}.chips[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;line-height:20px}.chips[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{margin-top:-8px;cursor:pointer}.chips[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#adadad;font-size:16px;font-weight:400;line-height:24px}.chip[_ngcontent-%COMP%]{background-color:#36cdc7;border-radius:3px;color:#fff;max-height:28px;height:28px;line-height:28px;display:flex;align-items:center;padding:4px 4px 3px 6px;margin:0 6px 10px 0;max-width:48%}.chip[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff;font-size:14px;font-weight:400;line-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{margin-left:4px}.chip[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:12px;height:12px;font-size:12px;line-height:12px}.dropdown-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{text-align:center;margin:16px 0 8px}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%] .non-premium-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%] .non-premium-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:14px 48px 10px;color:#adadad;font-weight:400}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%] .non-premium-info[_ngcontent-%COMP%] .get-access[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:space-between;padding:24px 48px}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%] .non-premium-info[_ngcontent-%COMP%] .get-access[_ngcontent-%COMP%] .subtitle2[_ngcontent-%COMP%]{color:#1f2121;font-weight:700}.dropdown-wrapper[_ngcontent-%COMP%] .items-wrapper[_ngcontent-%COMP%] .non-premium-info[_ngcontent-%COMP%] .get-access[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:136px;background-color:#79d423;color:#fff}.dropdown-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;width:100%;padding:12px 16px;cursor:pointer;position:relative}.dropdown-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{flex-grow:1;color:#212121;min-height:24px;max-width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dropdown-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;right:16px;text-transform:uppercase;
1color:#adadad;font-size:12px;font-weight:400;line-height:18px}.dropdown-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-right:12px}.search[_ngcontent-%COMP%]{border-bottom:1px solid rgba(173,173,173,.8);padding:8px 16px;display:inline-flex;align-items:center}.search[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#adadad;margin-right:8px}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;outline:none;width:100%;font-size:16px;font-weight:500;line-height:24px;color:#212121}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6;background-color:transparent}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{font-size:16px;font-weight:400;line-height:24px;color:#adadad}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{font-size:16px;font-weight:400;line-height:24px;color:#adadad}.search[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;line-height:20px;margin-left:20px}.search[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{line-height:20px;font-size:20px;width:20px;height:20px}"],changeDetection:0}),B),G=function(){var t=l(function t(){r(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({imports:[[m.ez,M.Ps,C.ot,z.k,T.nD,A.AV,v.u5,q.m,x.p9]]}),t}(),K=s(28205),tt=s(82820),et=s(21554),nt=s(58341),it=s(83166),ot=function(){var t=l(function t(){r(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({imports:[[m.ez,C.ot,M.Ps]]}),t}(),st=function(){var t=l(function t(){r(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({imports:[[m.ez,T.qh,C.ot,ot,_.lN,it.c,et.Bb,M.Ps,nt.Hi,q.m,w.Is]]}),t}(),at=s(59193),rt=s(5304),ct=s(93342),lt=function(){return(t=lt||(lt={})).Challenge="challenge",t.Passion="passion",t.Preference="preference",t.Strength="strength",lt;var t}(),ut=function(){return(t=ut||(ut={})).Challenges="challenges",t.Passions="passions",t.Preferences="preferences",t.Strengths="strengths",ut;var t}(),gt=(a(c={},ut.Challenges,"challenges"),a(c,ut.Passions,"passions"),a(c,ut.Preferences,"preferences"),a(c,ut.Strengths,"strengths"),c),dt=(a(g={},ut.Challenges,lt.Challenge),a(g,ut.Passions,lt.Strength),a(g,ut.Preferences,lt.Strength),a(g,ut.Strengths,lt.Strength),g),pt=s(53136),ht=s(47251);function ft(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",4),I.TgZ(1,"span"),I._uU(2),I.qZA(),I.TgZ(3,"button",5),I.NdJ("click",function(){var t=I.CHM(n).$implicit;return I.oxw().remove(t)}),I.TgZ(4,"mat-icon"),I._uU(5,"clear"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit;I.xp6(2),I.Oqu(i.label)}}function mt(t,e){1&t&&(I.TgZ(0,"span"),I._uU(1,"-"),I.qZA())}var vt=function(){var t=function(){function t(){r(this,t),this.removeItem=new I.vpe}return l(t,[{key:"remove",value:function(t){this.removeItem.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-wrapped-list"]],inputs:{items:"items"},outputs:{removeItem:"removeItem"},decls:4,vars:2,consts:[[1,"wizer-wrapped-list"],[1,"wizer-wrapped-list-inner"],["class","wizer-wrapped-list-item",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"wizer-wrapped-list-item"],["mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.YNc(2,ft,6,1,"div",2),I.qZA(),I.YNc(3,mt,2,0,"span",3),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngForOf",e.items),I.xp6(1),I.Q6J("ngIf",!(null!=e.items&&e.items.length)))},directives:[m.sg,m.O5,C.lW,M.Hw],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.wizer-wrapped-list[_ngcontent-%COMP%] .wizer-wrapped-list-inner[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;max-height:84px;overflow-y:auto}.wizer-wrapped-list[_ngcontent-%COMP%] .wizer-wrapped-list-item[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:8px;font-size:14px;font-weight:400;line-height:21px;color:#212121;height:28px}.wizer-wrapped-list[_ngcontent-%COMP%] .wizer-wrapped-list-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:24px;height:24px;line-height:24px}.wizer-wrapped-list[_ngcontent-%COMP%] .wizer-wrapped-list-item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px}"],changeDetection:0}),t}(),Ct=s(72458),xt=["skillInput"];function wt(t,e){if(1&t&&(I.ynx(0),I._uU(1),I.BQk()),2&t){var n=I.oxw();I.xp6(1),I.hij(" ",n.title," ")}}var _t=function(){return{"=1":"Skill",other:"Skills"}};function Mt(t,e){if(1&t&&(I.TgZ(0,"div",10),I.TgZ(1,"mat-icon"),I._uU(2,"done"),I.qZA(),I.TgZ(3,"h5"),I._uU(4),I.ALo(5,"i18nPlural"),I.qZA(),I.qZA()),2&t){var n=I.oxw();I.xp6(4),I.hij(" ",I.xi3(5,1,null==n.selectedSkills?null:n.selectedSkills.length,I.DdM(4,_t))," have been updated. ")}}function Ot(t,e){1&t&&(I.TgZ(0,"button",28),I.TgZ(1,"mat-icon"),I._uU(2,"add"),I.qZA(),I.qZA())}function bt(t,e){1&t&&(I.TgZ(0,"div",29),I.TgZ(1,"mat-icon"),I._uU(2,"check"),I.qZA(),I.qZA())}function kt(t,e){if(1&t&&(I.TgZ(0,"mat-option",24),I.TgZ(1,"div",25),I.TgZ(2,"span"),I._uU(3),I.qZA(),I.YNc(4,Ot,3,0,"button",26),I.YNc(5,bt,3,0,"div",27),I.qZA(),I.qZA()),2&t){var n=e.$implicit,i=I.oxw(2);I.Q6J("value",n.id),I.xp6(3),I.Oqu(n.name),I.xp6(1),I.Q6J("ngIf",!i.selectedSkillsMap[n.id]),I.xp6(1),I.Q6J("ngIf",!!i.selectedSkillsMap[n.id])}}function Pt(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",30),I.TgZ(1,"p"),I._uU(2),I.qZA(),I.TgZ(3,"button",31),I.NdJ("click",function(){var t=I.CHM(n).$implicit;return I.oxw(2).removeSkill(t)}),I.TgZ(4,"mat-icon"),I._uU(5,"clear"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit;I.xp6(2),I.Oqu(i.name)}}function yt(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",32),I.TgZ(1,"p"),I._uU(2),I.qZA(),I.TgZ(3,"button",31),I.NdJ("click",function(){var t=I.CHM(n).$implicit;return I.oxw(2).addSuggestion(t)}),I.TgZ(4,"mat-icon"),I._uU(5,"add"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit;I.xp6(2),I.Oqu(null==i?null:i.name)}}function Zt(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"div",11),I.TgZ(2,"div"),I._uU(3,"To:"),I.qZA(),I.TgZ(4,"wizer-wrapped-list",12),I.NdJ("removeItem",function(t){return I.CHM(n),I.oxw().removeUserFromList(t)}),I.qZA(),I.qZA(),I.TgZ(5,"mat-form-field",13),I.TgZ(6,"mat-label"),I._uU(7),I.qZA(),I.TgZ(8,"input",14,15),I.NdJ("keydown.enter",function(){return I.CHM(n),I.oxw().c
1onfirmSelection()})("LazyInputChange",function(t){return I.CHM(n),I.oxw().search=t}),I.qZA(),I.TgZ(10,"mat-autocomplete",16,17),I.NdJ("optionSelected",function(t){return I.CHM(n),I.oxw().onOptionSelect(t)}),I.YNc(12,kt,6,4,"mat-option",18),I.qZA(),I.qZA(),I.TgZ(13,"div",19),I.YNc(14,Pt,6,1,"div",20),I.qZA(),I.TgZ(15,"div",21),I.TgZ(16,"p"),I._uU(17,"Suggested strengths:"),I.qZA(),I.TgZ(18,"div",22),I.YNc(19,yt,6,1,"div",23),I.ALo(20,"slice"),I.qZA(),I.qZA(),I.BQk()}if(2&t){var i=I.MAs(11),o=I.oxw();I.xp6(4),I.Q6J("items",o.users),I.xp6(3),I.Oqu(o.inputPlaceholder),I.xp6(1),I.Q6J("matAutocomplete",i)("wizerLazyInput",o.search)("delay",100)("minChars",2),I.xp6(2),I.Q6J("displayWith",o.displayNull),I.xp6(2),I.Q6J("ngForOf",o.skills),I.xp6(2),I.Q6J("ngForOf",o.selectedSkills),I.xp6(5),I.Q6J("ngForOf",I.Dn7(20,10,o.suggestions,0,10))}}function St(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"button",33),I.NdJ("click",function(){return I.CHM(n),I.oxw().update()}),I._uU(1),I.qZA()}if(2&t){var i=I.oxw();I.Q6J("disabled",!(null!=i.selectedSkills&&i.selectedSkills.length)||!(null!=i.users&&i.users.length)||i.isLoading),I.xp6(1),I.hij(" ",i.confirmBtnLabel," ")}}var At=function(){var t=function(t){u(n,t);var e=d(n);function n(t,i,o){var s,a,c,l;return r(this,n),(s=e.call(this)).skillsSrv=t,s.chgDet=i,s.data=o,s.SkillDialogLabels=gt,s.skills=[],s.type=ut.Challenges,s.users=[],s.selectedSkills=[],s.selectedSkillsMap={},s.suggestions=[],s.updated=!1,s._search="",s.users=null===(c=null===(a=s.data)||void 0===a?void 0:a.users)||void 0===c?void 0:c.filter(function(t){return!!t.learnerProfileId}).map(function(t){var e;return{id:null===(e=t.learnerProfileId)||void 0===e?void 0:e.toString(),label:T.Lz.getStudentDisplayName(t)}}),s.type=(null===(l=s.data)||void 0===l?void 0:l.type)||ut.Challenges,s.fetchSkills(),s}return l(n,[{key:"confirmBtnLabel",get:function(){var t;return"".concat(this.title," (").concat((null===(t=this.selectedSkills)||void 0===t?void 0:t.length)||0,")")}},{key:"inputPlaceholder",get:function(){return"Type ".concat(this.SkillDialogLabels[this.type])}},{key:"search",get:function(){return this._search},set:function(t){var e;(null==t?void 0:t.toLowerCase())!==(null===(e=this._search)||void 0===e?void 0:e.toLowerCase())&&(this._search=null==t?void 0:t.trim(),this.filterSkills(),this.chgDet.markForCheck())}},{key:"title",get:function(){return"Add ".concat(this.SkillDialogLabels[this.type]||"")}},{key:"addSuggestion",value:function(t){if(t){var e=t.name||"";this.selectedSkills.find(function(t){var n;return t.name===e||(null===(n=t.name)||void 0===n?void 0:n.toLowerCase())===e.toLowerCase()})||this.selectedSkills.find(function(t){var n;return t.name===e||(null===(n=t.name)||void 0===n?void 0:n.toLowerCase())===e.toLowerCase()})||this.selectOption(t)}}},{key:"confirmSelection",value:function(){if(this.search){var t=this.search||"",e=this.allSkills.find(function(e){var n;return e.name===t||(null===(n=e.name)||void 0===n?void 0:n.toLowerCase())===t.toLowerCase()})||this.selectedSkills.find(function(e){var n;return e.name===t||(null===(n=e.name)||void 0===n?void 0:n.toLowerCase())===t.toLowerCase()});if(e)return this.selectOption(e),this.autocomplete.closePanel(),void this.chgDet.markForCheck();var n={name:t,id:Date.now(),type:dt[this.type]};this.selectOption(n),this.autocomplete.closePanel(),this.chgDet.markForCheck()}}},{key:"displayNull",value:function(t){return null}},{key:"onOptionSelect",value:function(t){var e,n=null===(e=null==t?void 0:t.option)||void 0===e?void 0:e.value;if(n){var i=this.allSkills.find(function(t){return t.id===n});!i||this.selectedSkills.find(function(t){var e,n;return t.name===(null==i?void 0:i.name)||(null===(e=t.name)||void 0===e?void 0:e.toLowerCase())===(null===(n=null==i?void 0:i.name)||void 0===n?void 0:n.toLowerCase())})||this.selectOption(i)}}},{key:"removeUserFromList",value:function(t){var e=this.users.findIndex(function(e){return e.id===(null==t?void 0:t.id)});e<-1||(this.users.splice(e,1),this.chgDet.markForCheck())}},{key:"removeSkill",value:function(t){delete this.selectedSkillsMap[null==t?void 0:t.id],this.selectedSkills=Object.values(this.selectedSkillsMap),this.chgDet.markForCheck()}},{key:"update",value:function(){var t=this,e=this.users.map(function(t){return+t.id}),n=this.selectedSkills.map(function(t){return{name:t.name,type:t.type}}),i=this.skillsSrv.updateManySkills(e,n);this.makeCall(i).pipe((0,rt.K)(function(t){return(0,T.Cv)("Skills dialog",t),at.E}),(0,ct.b)(function(){t.updated=!0,t.chgDet.markForCheck()})).subscribe()}},{key:"fetchSkills",value:function(){var t=this;this.makeCall(this.skillsSrv.fetchSkills()).pipe((0,ct.b)(function(e){t.allSkills=e,t.skills=i(t.allSkills),t.generateSuggested(),t.chgDet.markForCheck()})).subscribe()}},{key:"filterSkills",value:function(){var t,e,n=(null===(t=this.search)||void 0===t?void 0:t.toLowerCase())||"";this.skills=null===(e=this.allSkills)||void 0===e?void 0:e.filter(function(t){var e,i;return null===(i=null===(e=null==t?void 0:t.name)||void 0===e?void 0:e.toLowerCase())||void 0===i?void 0:i.includes(n)})}},{key:"selectOption",value:function(t){this.selectedSkillsMap[t.id]=t,this.selectedSkills=Object.values(this.selectedSkillsMap),this.search="",this.chgDet.markForCheck()}},{key:"generateSuggested",value:function(){this.suggestions=(this.allSkills||[]).sort(function(t,e){return e.useCount-t.useCount})}}]),n}(T.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(pt.Uc),I.Y36(I.sBO),I.Y36(w.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-skills-dialog"]],viewQuery:function(t,e){var n;(1&t&&I.Gf(xt,5,et.ZL),2&t)&&(I.iGM(n=I.CRH())&&(e.autocomplete=n.first))},features:[I.qOj],decls:15,vars:6,consts:[["v2","",3,"status"],["wDlgTitleV2",""],[4,"ngIf"],["wDlgError","",1,"skills-error"],["mat-raised-button","",1,"wz-btn2","tiel","uppercase",3,"click"],[1,"skills-dialog-content"],["class","skills-results-message",4,"ngIf"],["wDlgActionsV2",""],["mat-raised-button","","mat-dialog-close","",1,"wz-btn2","uppercase"],["mat-raised-button","","class","wz-btn2 tiel uppercase",3,"disabled","click",4,"ngIf"],[1,"skills-results-message"],[1,"skills-dialog-list"],[3,"items","removeItem"],["appearance","outline"],["matInput","",3,"matAutocomplete","wizerLazyInput","delay","minChars","keydown.enter","LazyInputChange"],["skillInput",""],[3,"displayWith","optionSelected"],["skillsAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"skill-chips-list"],["class","chip",4,"ngFor","ngForOf"],[1,"suggested-skills"],[1,"suggestions"],["class","suggestion",4,"ngFor","ngForOf"],[3,"value"],[1,"skill-option"],["mat-icon-button","",4,"ngIf"],["class","skill-selected",4,"ngIf"],["mat-icon-button",""],[1,"skill-selected"],[1,"chip"],["mat-icon-button","",3,"click"],[1,"suggestion"],["mat-raised-button","",1,"wz-btn2","tiel","uppercase",3,"disabled","click"]],template:function(t,e){1&t&&(I.TgZ(0,"wizer-dialog",0),I.TgZ(1,"div",1),I.YNc(2,wt,2,1,"ng-container",2),I.qZA(),I.TgZ(3,"div",3),I.TgZ(4,"h5"),I._uU(5,"Error updating skills"),I.qZA(),I.TgZ(6,"button",4),I.NdJ("click",function(){return e.setReady()}),I._uU(7," Try again "),I.qZA(),I.qZA(),I.TgZ(8,"div",5),I.YNc(9,Mt,6,5,"div",6),I.YNc(10,Zt,21,14,"ng-container",2),I.qZA(),I.TgZ(11,"div",7),I.TgZ(12,"button",8),I._uU(13),I.qZA(),I.YNc(14,St,2,2,"button",9),I.qZA(),I.qZA()),2&t&&(I.Q6J("status",e.status),I.xp6(2),I.Q6J("ngIf",!e.updated),I.xp6(7),I.Q6J("ngIf",e.updated),I.xp6(1),I.Q6J("ngIf",!e.updated),I.xp6(3),I.hij(" ",e.updated?"close"
1:"cancel"," "),I.xp6(1),I.Q6J("ngIf",!e.updated&&!e.isError))},directives:[ht.n,m.O5,C.lW,w.ZT,M.Hw,vt,_.KE,_.hX,it.Nt,et.ZL,Q.v,et.XC,m.sg,Ct.ey],pipes:[m.Gx,m.OU],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}[wDlgTitleV2][_ngcontent-%COMP%]{text-transform:capitalize}wizer-dialog[_ngcontent-%COMP%]{min-width:100%}@media (min-width: 1140px){wizer-dialog[_ngcontent-%COMP%]{min-width:598px}}@media (min-width: 1140px){.skills-dialog-content[_ngcontent-%COMP%]{min-width:598px;max-width:598px}}.skills-dialog-content[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.skills-dialog-list[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.skills-dialog-list[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:24px;color:#0009;margin-right:14px}.skills-results-message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.skills-results-message[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#36cdc7;margin-bottom:34px;width:36px;height:36px;line-height:36px;font-size:36px}.skills-results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-weight:700}.skills-error[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.skills-error[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:24px 0}.skill-option[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.skill-option[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#adadad;margin:0}.skill-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:32px}.skill-option[_ngcontent-%COMP%] .skill-selected[_ngcontent-%COMP%]{background-color:#3f51b5;border-radius:50%;width:32px;height:32px}.skill-option[_ngcontent-%COMP%] .skill-selected[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:32px;height:32px;line-height:32px;font-size:32px;vertical-align:baseline;color:#fff}.skill-chips-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;overflow-y:auto;max-height:106px;min-height:38px}.skill-chips-list[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]{display:flex;align-items:baseline;background-color:#3f51b5;padding:3px 12px 4px;margin:0 10px 10px 0;border-radius:32px}.skill-chips-list[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:21px;color:#fff;margin-right:8px}.skill-chips-list[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .skill-chips-list[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{color:#fff;width:16px;height:16px;font-size:16px;line-height:16px}.suggested-skills[_ngcontent-%COMP%]{margin:24px 0 0}.suggested-skills[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:21px;color:#777;margin-bottom:16px}.suggested-skills[_ngcontent-%COMP%] .suggestions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.suggested-skills[_ngcontent-%COMP%] .suggestions[_ngcontent-%COMP%] .suggestion[_ngcontent-%COMP%]{display:flex;align-items:baseline;padding:3px 12px 4px;margin-right:8px}.suggested-skills[_ngcontent-%COMP%] .suggestions[_ngcontent-%COMP%] .suggestion[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:21px;color:#adadad;margin-right:8px}.suggested-skills[_ngcontent-%COMP%] .suggestions[_ngcontent-%COMP%] .suggestion[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .suggested-skills[_ngcontent-%COMP%] .suggestions[_ngcontent-%COMP%] .suggestion[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{width:16px;height:16px;font-size:16px;line-height:16px;color:#adadad}[wDlgActionsV2][_ngcontent-%COMP%] .wz-btn2[_ngcontent-%COMP%]{margin-left:16px}"],changeDetection:0}),t}(),Tt=s(12836),qt=s(78019),Dt=s(56983),It=s(32401),zt=s(21123),Jt=s(91841),Ut=s(39075),Ft=function(){var t=function(){function t(e,n,i,o){r(this,t),this.dialogRef=e,this.data=n,this.sanitizer=i,this.http=o,this.iframeId="ai-settings-iframe",this.feedbackSettings=null}return l(t,[{key:"ngOnInit",value:function(){var t=new URL("local.wizer.me"===this.windowRef.location.hostname?"http://localhost:8081":"https://ai-feedback.wizer.me");t.searchParams.set("teacherId",this.data.teacherId),t.searchParams.set("worksheetId",this.data.worksheetId),this.trustedUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t.toString()),this.setupMessageListener(),this.fetchFeedbackSettings()}},{key:"windowRef",get:function(){return window}
1},{key:"setupMessageListener",value:function(){var t=this;window.addEventListener("message",function(e){if(e.data){var n=e.data;if("string"==typeof e.data)try{n=JSON.parse(e.data)}catch(i){return}n&&"object"==typeof n&&("FEEDBACK_SETTINGS_SAVE_SUCCESS"===n.type||"close"===n.type)&&t.closeDialog()}})}},{key:"closeDialog",value:function(){this.dialogRef.close()}},{key:"fetchFeedbackSettings",value:function(){var t=this,e=(new Jt.LE).set("teacherId",this.data.teacherId).set("worksheetId",this.data.worksheetId);this.http.get("/api/ai/get-worksheet-feedback-settings",{params:e}).subscribe(function(e){e.success&&e.feedback?(t.feedbackSettings=e.feedback,console.log("Fetched feedback settings:",t.feedbackSettings)):(t.feedbackSettings=null,console.log("No feedback settings found")),t.sendDataToIframe()},function(e){console.error("Error fetching feedback settings:",e),t.feedbackSettings=null,t.sendDataToIframe()})}},{key:"sendDataToIframe",value:function(){var t=document.getElementById(this.iframeId);if(t&&t.contentWindow)try{var e={teacherId:this.data.teacherId,worksheetId:this.data.worksheetId};this.feedbackSettings&&(e.worksheetGoal=this.feedbackSettings.worksheetGoal,e.lookFors=this.feedbackSettings.lookFors,e.expectedMissteps=this.feedbackSettings.expectedMissteps,e.tone=this.feedbackSettings.tone,e.studentLevel=this.feedbackSettings.studentLevel,e.language=this.feedbackSettings.language,e.personalizedFeedback=this.feedbackSettings.personalizedFeedback,e.adaptiveProfile=this.feedbackSettings.adaptiveProfile),t.contentWindow.postMessage(JSON.stringify(e),"*"),console.log("Sent data to AI settings iframe:",e)}catch(e){console.error("Error sending data to iframe:",e)}}},{key:"ngAfterViewInit",value:function(){var t=this,e=0;setTimeout(function n(){var i=document.getElementById(t.iframeId);
1i&&i.contentWindow?(t.sendDataToIframe(),++e<15&&setTimeout(n,1e3)):e<15&&(e++,setTimeout(n,1e3))},500)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(w.so),I.Y36(w.WI),I.Y36(Ut.H7),I.Y36(Jt.eN))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-ai-settings-dialog"]],decls:5,vars:1,consts:[[2,"padding","0 !important","overflow-y","auto !important","position","relative","height","calc(95vh - 60px)"],["id","ai-settings-iframe","frameborder","0","allowfullscreen","",2,"width","100%","height","100%","border","none",3,"src"],[2,"height","60px","padding","0"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"mat-dialog-content",0),I._UZ(1,"iframe",1),I.qZA(),I.TgZ(2,"mat-dialog-actions",2),I.TgZ(3,"button",3),I.NdJ("click",function(){return e.closeDialog()}),I._uU(4,"Close"),I.qZA(),I.qZA()),2&t&&(I.xp6(1),I.Q6J("src",e.trustedUrl,I.uOi))},directives:[w.xY,w.H8,C.lW],styles:["[_nghost-%COMP%]{display:block;padding:0} .wizer-main .mat-dialog-container{padding:0!important}"]}),t}(),Qt=s(7690),Nt=function(){var t=l(function t(){r(this,t),this.assessTutorialUrl="https://www.youtube.com/embed/KmTy0BH_Z-c"});return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-assess-tutorial"]],decls:2,vars:3,consts:[["allowfullscreen","","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",3,"src"]],template:function(t,e){1&t&&(I._UZ(0,"iframe",0),I.ALo(1,"trustResource")),2&t&&I.Q6J("src",I.lcZ(1,1,e.assessTutorialUrl),I.uOi)},pipes:[Qt.c],styles:["[_nghost-%COMP%]{width:100%;display:flex}iframe[_ngcontent-%COMP%]{border:none;width:inherit;height:inherit}"],changeDetection:0}),t}(),Yt=s(43577),Lt=s(16579),jt=s(13431),$t=function(t){return(null==t?void 0:t.startsWith("<p>"))?t:"<p>".concat(t,"</p>")},Rt=function(t){return null==t?void 0:t.replace(/(\r\n|\n|\r|\t|\v)/gm," ").replace(/(")/gm,'"')},Et=function(t){var e=(new DOMParser).parseFromString(t||"<p></p>","text/xml");return Rt(e.documentElement.textContent)||""},Ht=(a(p={},jt.l9.openQuestion,function(t,e){var n=$t(null==e?void 0:e.data.title),i=(new DOMParser).parseFromString(n,"text/xml");return'"'.concat(Rt(i.documentElement.textContent),' "')}),a(p,jt.l9.fillImage,function(t,e){var n="".concat(null==e?void 0:e.name," : "),i=null==e?void 0:e.data;return((null==i?void 0:i.tags)||[]).forEach(function(t){n="".concat(n).concat(null==t?void 0:t.text," - ")}),n.endsWith(" - ")&&(n=n.slice(0,n.length-4)),n=Rt(n),n='"'.concat(n,' "')}),a(p,jt.l9.multiChoice,function(t,e){var n,i="".concat(e.name," : "),o=!1,s=Et((null===(n=e.data)||void 0===n?void 0:n.title)||"");return i="".concat(i," ").concat(s," Answers: "),e.data.options.filter(function(t){return t.checked}).forEach(function(t){o&&(i=" ".concat(i," - ")),o=!0,i="".concat(i," ").concat(Et(t.text))}),i=Rt(i),i='"'.concat(i,' "')}),a(p,jt.l9.blanks,function(t,e){var n,i=e.data,o="".concat(e.name," : ").concat(Et(null===(n=e.data)||void 0===n?void 0:n.title)," - ").concat(Et(i.blankText));return o=Rt(o),o='"'.concat(o,' "')}),a(p,jt.l9.table,function(t,e){var n,i=e.data,o=!1,s="".concat(e.name," : ").concat(Et(null===(n=e.data)||void 0===n?void 0:n.title));return null==i||i.tablerows.forEach(function(t){o&&(s="".concat(s,"- ")),o=!0,t.cols.forEach(function(e,n){s=e.isAnswer?"".concat(s,"____"):"".concat(s).concat(Et(e.text)),s="".concat(s," ").concat(n===t.cols.length-1?" ":" : ")})}),s=Rt(s),s='"'.concat(s,' "')}),a(p,jt.l9.matching,function(t,e){var n,i=e.data,o=!1,s="".concat(e.name," : ").concat(Et(null===(n=e.data)||void 0===n?void 0:n.title));return i.pairs.forEach(function(t){o&&(s="".concat(s," - ")),o=!0,s="".concat(s).concat(t.match.value," : ").concat(t.target.value)}),s=Rt(s),s='"'.concat(s,' "')}),a(p,jt.l9.sorting,function(t,e){var n,i=e.data,o="".concat(e.name," : ").concat(Et(null===(n=e.data)||void 0===n?void 0:n.title));return i.groups.forEach(function(t,e){0!==e&&(o="".concat(o," : ")),o="".concat(o).concat(Et(t.header.text)),t.items.forEach(function(t){o="".concat(o," - ").concat(Et(t.text))})}),o=Rt(o),o='"'.concat(o,' "')}),a(p,jt.l9.embed,function(t,e){return"".concat(e.name," + question")}),p),Wt=(a(f={},jt.l9.openQuestion,function(t,e){var n=$t(null==e?void 0:e.content);return'"'.concat(Et(n)||"",' "')}),a(f,jt.l9.fillImage,function(t,e,n){var i="",o=!1,s=null==n?void 0:n.data,a=(null==e?void 0:e.tags)||[];
1return((null==s?void 0:s.tags)||[]).forEach(function(t,e){o=!1,a.forEach(function(e){!o&&e.addedOn===t.addedOn&&(o=!0,i="".concat(i).concat(e.text))}),o||(i="".concat(i," ")),e!==(null==s?void 0:s.tags.length)-1&&(i="".concat(i," - "))}),i=Rt(i)||"",i='"'.concat(i,' "')}),a(f,jt.l9.multiChoice,function(t,e,n){var i=n.data,o=e,s=[],a="";return o&&o.options?(Object.keys(o.options).forEach(function(t){var e=o.options[t];(null==e?void 0:e.checked)&&s.push(+t)}),s.forEach(function(t,e){var n;a="".concat(a).concat(Et(null===(n=null==i?void 0:i.options[t])||void 0===n?void 0:n.text)),e!==s.length-1&&(a="".concat(a," - "))}),a=Rt(a)||"",a='"'.concat(a,' "')):""}),a(f,jt.l9.blanks,function(t,e){var n="",i=(null==e?void 0:e.blanks)||{};return Object.keys(i).forEach(function(t){n&&(n="".concat(n," - ")),n="".concat(n," ").concat(i[t])}),n=Rt(n)||"",n='"'.concat(n,' "')}),a(f,jt.l9.embed,function(t,e,n){return"".concat(n.name," answer")}),a(f,jt.l9.matching,function(t,e,n){var i="",o=null==n?void 0:n.data;return Object.keys((null==e?void 0:e.targets)||{}).forEach(function(t,e){var n,s;i&&(i="".concat(i," - ")),o.pairs&&!o.pairs[t]&&!o.pairs[e]&&(i="".concat(i," ").concat(null===(n=o.pairs[e].target)||void 0===n?void 0:n.value," : ").concat(null===(s=o.pairs[t].match)||void 0===s?void 0:s.value))}),i=Rt(i),i='"'.concat(i,' "')}),a(f,jt.l9.table,function(t,e){var n="";return e&&e.tablerows?(e.tablerows.forEach(function(t){t&&t.cols&&Object.keys(t.cols).forEach(function(e){n&&(n="".concat(n," - ")),n="".concat(n," ").concat(Et(t.cols[e].text))})}),n=Rt(n),n='"'.concat(n,' "')):""}),a(f,jt.l9.sorting,function(t,e){var n="";return e&&e.groups?(e.groups.forEach(function(t,e){var i;0!==e&&(n="".concat(n," : ")),n="".concat(n).concat(Et(null===(i=t.header)||void 0===i?void 0:i.text)),t.items.forEach(function(t){n="".concat(n," - ").concat(Et(t.text))})}),n=Rt(n),n='"'.concat(n,' "')):""}),f),Bt=function(){var t=function(){function t(e,n){r(this,t),this.widgetScoreSrv=e,this.document=n}return l(t,[{key:"exportToCsv",value:function(t,e,n,i){var o;o=t?this.exportSummary(n,e):this.exportPerformance(n,e),this.safeAsCsv(o,"export_".concat(e.token,"_").concat(t?"summary":"full",".csv"))}},{key:"getWidgetAnswerText",value:function(t,e){var n=Wt[e.name.toLowerCase()];return(n?n(this.document,t,e):"").replace(/undefined/g,"")}},{key:"getWidgetQuestionText",value:function(t){var e=Ht[t.name.toLowerCase()];return e?e(this.document,t):""}},{key:"safeAsCsv",value:function(t,e){var n="data:text/csv;charset=utf-8,\ufeff".concat(t.labels.join(","),"\n")+t.rowData.join("\n"),i=encodeURI(n),o=this.document.createElement("a");this.document.body.appendChild(o),o.setAttribute("type","hidden"),o.setAttribute("href",i),o.setAttribute("download",e),o.click(),this.document.body.removeChild(o)}},{key:"exportSummary",value:function(t,e){var n=this,o={labels:["No.","First name","Last name","Email","Total score"],rowData:[]},s=e.widgets.map(function(t,e){return"".concat(e+1,"_").concat(t.name)});o.labels=[].concat(i(o.labels),i(s));var a=Lt.Qx.widgetsPointMap(e,t);return t.forEach(function(t,i){var s,r,c,l=t.assessment,u=Lt.Qx.calcWorksheetScore(l,a),g=[(i+1).toString(),null===(s=t.user)||void 0===s?void 0:s.firstname,null===(r=t.user)||void 0===r?void 0:r.lastname,null===(c=t.user)||void 0===c?void 0:c.username,u.toString()];e.widgets.forEach(function(e){var i=n.widgetScore(null==e?void 0:e.seqid,null==l?void 0:l.widgets[e.seqid],a,t.id);g.push(i.toString())}),o.rowData.push(g.join(","))}),o}},{key:"exportPerformance",value:function(t,e){var n=this,i=!0,o=Lt.Qx.widgetsPointMap(e,t),s={labels:["No.","First name","Last name","Email","Total score"],rowData:[]};return t.forEach(function(t,a){var r,c,l,u=t.assessment,g=Lt.Qx.calcWorksheetScore(u,o),d=[(a+1).toString(),null===(r=t.user)||void 0===r?void 0:r.firstname,null===(c=t.user)||void 0===c?void 0:c.lastname,null===(l=t.user)||void 0===l?void 0:l.username,g.toString()];e.widgets.forEach(function(e,a){if(i){var r="".concat(a+1,"_").concat(e.name,"_score"),c=n.getWidgetQuestionText(e);s.labels.push(r||""),s.labels.push(c||"")}var l=n.getWidgetAnswerText(t.solutions[e.seqid],e),g=n.widgetScore(null==e?void 0:e.seqid,null==u?void 0:u.widgets[e.seqid],o,t.id);d.push((g||"").toString()),d.push(l||"")}),s.rowData.push(d.join(",")),i=!1}),s}},{key:"widgetScore",value:function(t,e,n,i){var o=n[i]?n[i][t]:null;if(!o)return"";var s=Array.isArray(o)?o[0]:o;return((Lt.Qx.getScoreValue(e)||0)*((null==s?void 0:s.points)||0)).toString()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.LFG(Lt.Qx),I.LFG(m.K0))},t.\u0275prov=I.Yz7({token:t,factory:t.\u0275fac}),t}(),Vt=s(77410),Xt=function(){return(t=Xt||(Xt={}))[t.Full=1]="Full",t[t.Performance=2]="Performance",Xt;var t}(),Gt=function(){var t=function(){function t(e,n,i,o){r(this,t),this.dialogRef=e,this.googleAnalyticsSrv=n,this.reportsSrv=i,this.data=o,this.DownloadType=Xt}return l(t,[{key:"ngOnInit",value:function(){var t;this.name=null===(t=this.data)||void 0===t?void 0:t.fileName}},{key:"download",value:function(){var t=this.reportType===Xt.Performance,e=this.data||{},n=e.worksheet,i=e.publications,o=e.totalPoints;this.googleAnalyticsSrv.event(t?"export-student-report-summary":"export-student-report-full",Yt.v.Assess,t?"Export student report summary":"Export student report full"),this.reportsSrv.exportToCsv(t,n,i,o)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(w.so),I.Y36(Vt.$r),I.Y36(Bt),I.Y36(w.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-download-grades-select"]],features:[I._Bn([Bt])],decls:21,vars:5,consts:[["wDlgTitle",""],[1,"dialog-content"],[1,"subtitle1"],[1,"file-name"],["appearance","fill"],[3,"value","valueChange"],[3,"value"],["wDlgActions",""],["mat-flat-button","","color","primary",1,"legacy","size-16","uppercase",3,"disabled","click"]],template:function(t,e){1&t&&(I.TgZ(0,"wizer-dialog"),I.TgZ(1,"div",0),I._uU(2,"Download students answers"),I.qZA(),I.TgZ(3,"div",1),I.TgZ(4,"p",2),I._uU(5,"Download a CSV file with student answers for:"),I.qZA(),I.TgZ(6,"p",3),I._uU(7),I.qZA(),I.TgZ(8,"mat-form-field",4),I.TgZ(9,"mat-label"),I._uU(10,"Select an option"),I.qZA(),I.TgZ(11,"mat-select",5),I.NdJ("valueChange",function(t){return e.reportType=t}),I.TgZ(12,"mat-option"),I._uU(13,"Select preferred option"),I.qZA(),I.TgZ(14,"mat-option",6),I._uU(15,"Performance summary for grade book"),I.qZA(),I.TgZ(16,"mat-option",6),I._uU(17,"Full answers report"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(18,"div",7),I.TgZ(19,"button",8),I.NdJ("click",function(){return e.download()}),I._uU(20," Download "),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.xp6(7),I.Oqu(e.name),I.xp6(4),I.Q6J("value",e.reportType),I.xp6(3),I.Q6J("value",e.DownloadType.Performance),I.xp6(2),I.Q6J("value",e.DownloadType.Full),I.xp6(3),I.Q6J("disabled",!e.reportType))},directives:[ht.n,_.KE,_.hX,b.gD,Ct.ey,C.lW],styles:[".sync{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.dialog-content{padding-top:20px;max-width:36vw}.mat-form-field{width:100%;margin:24px 0}.file-name{margin:10px 0 0;font-size:18px;font-weight:700;line-height:24px;color:#1976d2}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:transparent}\n"],encapsulation:2,changeDetection:0}),t}(),Kt=function(){var t=function(){function t(e){r(this,t),this.window=e}return l(t,[{key:"reloadPage",value:function(){var t,e,n;null===(n=null===(e=null===(t=this.window)||void 0===t?void 0:t.window)||void 0===e?void 0:e.location)||void 0===n||n.reload()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(pt.t1))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-empty-view"]],decls:9,vars:0,consts:[[1,"wizer-empty-view"],[1,"empty-circle"],["mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"mat-icon"),I._uU(3,"clear"),I.qZA(),I.qZA(),I.TgZ(4,"h5"),I._uU(5,"For some reason we're unable to load the data you want."),I.qZA(),I.TgZ(6,"button",2),I.NdJ("click",function(){return e.reloadPage()}),I.TgZ(7,"span"),I._uU(8,"Reload the page now"),I.qZA(),I.qZA(),I.qZA())},directives:[M.Hw,C.lW],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.wizer-empty-view[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column;align-items:center;padding-top:120px}.wizer-empty-view[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center;
1color:#adadad;margin-bottom:14px}.wizer-empty-view[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;font-weight:700;text-transform:uppercase}.wizer-empty-view[_ngcontent-%COMP%] .empty-circle[_ngcontent-%COMP%]{margin-bottom:36px;display:flex;justify-content:center;align-items:center;border-radius:50%;min-width:150px;width:150px;max-width:150px;min-height:150px;height:150px;max-height:150px;background-color:#894e71}.wizer-empty-view[_ngcontent-%COMP%] .empty-circle[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:90px;width:90px;height:90px;line-height:90px;font-weight:700}"],changeDetection:0}),t}(),te=s(25917),ee=function(){return(t=ee||(ee={})).Force="Force",t.Retake="Retake",ee;var t}(),ne=s(19069),ie=s(51013);function oe(t,e){if(1&t&&(I.TgZ(0,"h4"),I._uU(1),I.qZA()),2&t){var n=I.oxw();I.xp6(1),I.Oqu(n.titleLabel)}}function se(t,e){1&t&&I._UZ(0,"wizer-loader",11)}var ae=function(){return{"=1":"worksheet",other:"worksheets"}},re=function(){return{"=1":"has",other:"have"}};function ce(t,e){if(1&t&&(I.TgZ(0,"div",12),I.TgZ(1,"mat-icon"),I._uU(2,"done"),I.qZA(),I.TgZ(3,"h5"),I._uU(4),I.ALo(5,"i18nPlural"),I.qZA(),I.TgZ(6,"h5"),I._uU(7),I.ALo(8,"i18nPlural"),I.qZA(),I.qZA()),2&t){var n=I.oxw();I.xp6(4),I.AsE(" ",n.resultsCount," ",I.xi3(5,4,n.resultsCount,I.DdM(10,ae))," "),I.xp6(3),I.AsE(" ",I.xi3(8,7,n.resultsCount,I.DdM(11,re))," been successfully ",n.mode," ")}}function le(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",17),I.TgZ(1,"mat-checkbox",18),I.NdJ("ngModelChange",function(t){var e=I.CHM(n).$implicit;return I.oxw(2).rowSelectionMap[e.solutionToken]=t}),I.qZA(),I.TgZ(2,"span"),I._uU(3),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit,o=I.oxw(2);I.xp6(1),I.Q6J("ngModel",o.rowSelectionMap[i.solutionToken]),I.xp6(1),I.ekj("selected",o.rowSelectionMap[i.solutionToken]),I.xp6(1),I.Oqu(null==i?null:i.name)}}function ue(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"div",13),I.TgZ(2,"mat-icon"),I._uU(3,"search"),I.qZA(),I.TgZ(4,"input",14),I.NdJ("LazyInputChange",function(t){return I.CHM(n),I.oxw().search=t}),I.qZA(),I.qZA(),I.TgZ(5,"div",15),I.YNc(6,le,4,4,"div",16),I.qZA(),I.BQk()}if(2&t){var i=I.oxw();I.xp6(4),I.Q6J("delay",500)("minChars",1),I.xp6(2),I.Q6J("ngForOf",i.filteredRowData)}}function ge(t,e){if(1&t&&(I.TgZ(0,"p"),I._uU(1),I.qZA()),2&t){var n=I.oxw();I.xp6(1),I.Oqu(n.bottomLabel)}}function de(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){return I.CHM(n),I.oxw().startAction()}),I._uU(1),I.qZA()}if(2&t){var i=I.oxw();I.Q6J("disabled",!i.totalSelected||i.loading),I.xp6(1),I.AsE(" ",i.confirmButtonLabel," (",i.totalSelected,") ")}}var pe=function(){var t=function(t){u(n,t);var e=d(n);function n(t,i,o,s){var a,c;return r(this,n),(a=e.call(this)).dialogRef=t,a.insightsSrv=i,a.chgDet=o,a.data=s,a.rowSelectionMap={},a.loading=!1,a.rowsMap={},a.mode=(null===(c=a.data)||void 0===c?void 0:c.mode)||ee.Retake,a.setupData(),a}return l(n,[{key:"hasResults",get:function(){return!!this.results}},{key:"resultsCount",get:function(){var t;return(null===(t=Object.values(this.results).filter(function(t){return!!t}))||void 0===t?void 0:t.length)||0}},{key:"search",get:function(){return this._search},set:function(t){var e;this._search=t;var n=null===(e=this._search)||void 0===e?void 0:e.toLowerCase();this.filteredRowData=i(this.rowData.filter(function(t){var e;return null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(n)})),this.chgDet.markForCheck()}},{key:"isRetake",get:function(){return this.mode===ee.Retake}},{key:"bottomLabel",get:function(){return this.isRetake?"Students worksheets will become closed and in their places, new worksheets will generate.":"Once confirmed students will not be able to continue working on thier worksheets"}},{key:"confirmButtonLabel",get:function(){return this.isRetake?"Retake":"Force Submit"}},{key:"titleLabel",get:function(){return this.isRetake?"Retake the worksheet":"Force submit submissions"}},{key:"totalSelected",get:function(){var t;return null===(t=Object.values(this.rowSelectionMap).filter(function(t){return!!t}))||void 0===t?void 0:t.length}},{key:"closeDialog",value:function(){this.dialogRef.close(this.results)}},{key:"startAction",value:function(){var t=this;this.loading=!0,this.chgDet.markForCheck();var e=Object.keys(this.rowSelectionMap).filter(function(e){return!!t.rowSelectionMap[e]});(this.isRetake?this.insightsSrv.retakeMany(e):this.insightsSrv.callInMany(e)).pipe((0,rt.K)(function(t){return(0,T.Cv)("Force or retake error",t),(0,te.of)({})}),(0,ct.b)(function(e){t.results=e,t.loading=!1,t.chgDet.markForCheck()})).subscribe()}},{key:"setupData",value:function(){var t,e=this;this.rowsMap={},this.rowSelectionMap={},this.rowData=((null===(t=this.data)||void 0===t?void 0:t.studentsData)||[]).map(function(t){return e.rowSelectionMap[t.solutionToken]=!0,{publicationToken:t.publicationToken,solutionId:t.solutionId,solutionToken:t.solutionToken,name:T.Lz.getStudentDisplayName(t.user)}}),this.filteredRowData=i(this.rowData),this.chgDet.markForCheck()}}]),n}(T.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(w.so),I.Y36(ne.d),I.Y36(I.sBO),I.Y36(w.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-force-or-retake-dialog"]],features:[I.qOj],decls:16,vars:10,consts:[[3,"useCustomHeader"],["wDlgHeader","",1,"insights-dialog-header"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close",""],[1,"for-dialog-content","insights-dialog-content"],[1,"for-dialog-inner-content"],["spinnerCls","tiel",4,"ngIf"],["class","insights-results-message",4,"ngIf"],["wDlgActions",""],["mat-raised-button","",1,"legacy","uppercase",3,"click"],["mat-raised-button","","class","legacy uppercase tiel",3,"disabled","click",4,"ngIf"],["spinnerCls","tiel"],[1,"insights-results-message"],[1,"filter-input"],["type","text","placeholder","Find student","wizerLazyInput","",3,"delay","minChars","LazyInputChange"],[1,"for-students-list"],["class","for-student-row",4,"ngFor","ngForOf"],[1,"for-student-row"],[1,"tiel",3,"ngModel","ngModelChange"],["mat-raised-button","",1,"legacy","uppercase","tiel",3,"disabled","click"]],template:function(t,e){1&t&&(I.TgZ(0,"wizer-dialog",0),I.TgZ(1,"div",1),I.YNc(2,oe,2,1,"h4",2),I.TgZ(3,"button",3),I.TgZ(4,"mat-icon"),I._uU(5,"clear"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"div",4),I.TgZ(7,"div",5),I.YNc(8,se,1,0,"wizer-loader",6),I.YNc(9,ce,9,12,"div",7),I.YNc(10,ue,7,3,"ng-container",2),I.qZA(),I.YNc(11,ge,2,1,"p",2),I.qZA(),I.TgZ(12,"div",8),I.TgZ(13,"button",9),I.NdJ("click",function(){return e.closeDialog()}),I._uU(14),I.qZA(),I.YNc(15,de,2,3,"button",10),I.qZA(),I.qZA()),2&t&&(I.Q6J("useCustomHeader",!0),I.xp6(2),I.Q6J("ngIf",!e.hasResults),I.xp6(4),I.ekj("short",e.hasResults),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",e.hasResults),I.xp6(1),I.Q6J("ngIf",!e.hasResults),I.xp6(1),I.Q6J("ngIf",!e.hasResults),I.xp6(3),I.hij(" ",e.hasResults?"Close":"Cancel"," "),I.xp6(1),I.Q6J("ngIf",!e.hasResults))},directives:[ht.n,m.O5,C.lW,w.ZT,M.Hw,ie.L,Q.v,m.sg,x.oG,v.JJ,v.On],pipes:[m.Gx],styles:["@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}wizer-dialog[_ngcontent-%COMP%]{min-width:592px}[wDlgActions][_ngcontent-%COMP%]{display:inline-flex;width:100%;justify-content:flex-end;padding:32px 0 0}[wDlgActions][_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]{margin-left:16px}
1[wDlgActions][_ngcontent-%COMP%] .mat-raised-button.tiel[_ngcontent-%COMP%]{background-color:#36cdc7;color:#fff}.insights-dialog-header[_ngcontent-%COMP%]{position:relative;display:inline-flex;justify-content:center;width:100%;padding:32px 24px 14px}.insights-dialog-header[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px}.insights-dialog-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{letter-spacing:.18px}.insights-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;padding:0 20px;position:relative}.insights-dialog-content.short[_ngcontent-%COMP%]{min-height:0}wizer-loader[_ngcontent-%COMP%]{background-color:#fff}.insights-results-message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.insights-results-message[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#36cdc7;margin-bottom:34px;width:36px;height:36px;line-height:36px;font-size:36px}.insights-results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#1f2121;font-weight:400;text-transform:lowercase}.insights-results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-of-type{font-weight:700}.for-dialog-inner-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;position:relative}.for-dialog-inner-content[_ngcontent-%COMP%] wizer-loader[_ngcontent-%COMP%]{background-color:#fff}.for-dialog-inner-content[_ngcontent-%COMP%] .results-message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.for-dialog-inner-content[_ngcontent-%COMP%] .results-message[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#36cdc7;margin-bottom:34px;width:36px;height:36px;line-height:36px;font-size:36px}.for-dialog-inner-content[_ngcontent-%COMP%] .results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#1f2121;font-weight:400;text-transform:lowercase}.for-dialog-inner-content[_ngcontent-%COMP%] .results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-of-type{font-weight:700}.insights-dialog-content[_ngcontent-%COMP%]{min-height:366px}.insights-dialog-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:21px;margin-top:24px;color:#777}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:50px;width:100%;border-bottom:1px solid #eeeeee}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#adadad}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#adadad}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:12px}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:100%;border:none;outline:none;letter-spacing:.5px;color:#1f2121;font-size:16px;font-weight:400;line-height:24px}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{letter-spacing:.5px;font-size:16px;font-weight:400;line-height:24px}.insights-dialog-content[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{letter-spacing:.5px;font-size:16px;font-weight:400;line-height:24px}.insights-dialog-content[_ngcontent-%COMP%] .for-students-list[_ngcontent-%COMP%]{padding-top:8px;overflow-y:auto;flex:0 0 246px;display:flex;flex-direction:column}.insights-dialog-content[_ngcontent-%COMP%] .for-student-row[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:8px 16px 8px 0}.insights-dialog-content[_ngcontent-%COMP%] .for-student-row[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{margin-right:8px}.insights-dialog-content[_ngcontent-%COMP%] .for-student-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#adada
1d}.insights-dialog-content[_ngcontent-%COMP%] .for-student-row[_ngcontent-%COMP%] span.selected[_ngcontent-%COMP%]{color:#1f2121}"],changeDetection:0}),t}(),he=function(){var t=l(function t(){r(this,t),this.discard=new I.vpe});return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-load-from-storage"]],outputs:{discard:"discard"},decls:16,vars:0,consts:[[1,"storage-wrapper"],[1,"storage-inner"],[1,"subtitle1"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"h5"),I._uU(3,"Your work hasn't vanished into thin air!"),I.qZA(),I.TgZ(4,"p",2),I._uU(5," You have unsaved changes for this student. Do you want to apply them? "),I.qZA(),I.TgZ(6,"button",3),I.NdJ("click",function(){return e.discard.emit(!0)}),I.TgZ(7,"mat-icon"),I._uU(8,"clear"),I.qZA(),I.TgZ(9,"span"),I._uU(10,"Discard changes"),I.qZA(),I.qZA(),I.TgZ(11,"button",3),I.NdJ("click",function(){return e.discard.emit(!1)}),I.TgZ(12,"mat-icon"),I._uU(13,"check"),I.qZA(),I.TgZ(14,"span"),I._uU(15,"Keep work"),I.qZA(),I.qZA(),I.qZA(),I.qZA())},directives:[C.lW,M.Hw],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;position:fixed;top:0;left:0;right:0;background:linear-gradient(135deg,#fdb43f 0,#f69a96e6 100%);color:#fff;text-align:center;z-index:9}[_nghost-%COMP%] .storage-wrapper[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto;width:100%}@media (min-width: 71.25em){[_nghost-%COMP%] .storage-wrapper[_ngcontent-%COMP%]{background-image:url(/assets/images/assess/airplane.png);background-repeat:no-repeat;background-position:98% 2%}}[_nghost-%COMP%] .storage-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:450px;padding:20px 0;margin:0 auto;position:relative}[_nghost-%COMP%] .storage-inner[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .storage-inner[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] .storage-inner[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-of-type{margin:16px 0}[_nghost-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:0}[_nghost-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .subtitle1[_ngcontent-%COMP%]{color:#fff}"],changeDetection:0}),t}(),fe=s(12727),me=s(51501),ve=s(87483);function Ce(t,e){if(1&t&&(I.TgZ(0,"div",3),I.TgZ(1,"div",4),I.TgZ(2,"p",5),I._uU(3,"Accuracy"),I.qZA(),I.TgZ(4,"p",6),I._uU(5),I.qZA(),I.qZA(),I.TgZ(6,"div",4),I.TgZ(7,"p",5),I._uU(8,"Activities"),I.qZA(),I.TgZ(9,"p",6),I._uU(10),I.qZA(),I.qZA(),I.TgZ(11,"div",4),I.TgZ(12,"p",5),I._uU(13,"Submitted"),I.qZA(),I.TgZ(14,"p",6),I._uU(15),I.qZA(),I.qZA(),I.TgZ(16,"div",4),I.TgZ(17,"p",5),I._uU(18,"Avg time to complete"),I.qZA(),I.TgZ(19,"p",6),I._uU(20),I.ALo(21,"msToDuration"),I.ALo(22,"msToDuration"),I.qZA(),I.qZA(),I.qZA()),2&t){var n=e.ngIf,i=I.oxw();I.xp6(5),I.Oqu(n.accuracy||"-"),I.xp6(5),I.Oqu(n.publications||"-"),I.xp6(5),I.hij("",n.submittedPublication||"0","%"),I.xp6(5),I.AsE(" ",I.xi3(21,5,n.avgTime,i.MsToDurationReturnPart.Minutes)||"00"," : ",I.xi3(22,8,n.avgTime,i.MsToDurationReturnPart.Seconds)||"00"," ")}}var xe=function(){var t=l(function t(e,n){var i;r(this,t),this.chgDet=e,this.insightsStore=n,this.MsToDurationReturnPart=fe.kf,this.showStats=!1,this.worksheetTitle="",this.averageData$=null===(i=this.insightsStore)||void 0===i?void 0:i.averageDataForWorksheet$});return t.\u0275fac=function(e){return new(e||t)(I.Y36(I.sBO),I.Y36(me.GO,8))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-worksheet-summary"]],inputs:{showStats:"showStats",worksheetTitle:"worksheetTitle"},decls:10,vars:5,consts:[[1,"wizer-worksheet-summary"],[1,"display-desktop"],["class","statistics",4,"ngIf"],[1,"statistics"],[1,"stat"],[1,"stat-header"],[1,"stat-value"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"p"),I._uU(3,"Worksheet"),I.qZA(),I.TgZ(4,"h5"),I._uU(5),I.qZA(),I.qZA(),I.TgZ(6,"h5"),I._uU(7),I.qZA(),I.YNc(8,Ce,23,11,"div",2),I.ALo(9,"async"),I.qZA()),2&t&&(I.xp6(5),I.Oqu(e.worksheetTitle||"-"),I.xp6(2),I.Oqu(e.worksheetTitle||"-"),I.xp6(1),I.Q6J("ngIf",e.showStats&&I.lcZ(9,3,e.averageData$)))},directives:[m.O5],pipes:[m.Ov,ve.D],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.wizer-worksheet-summary[_ngcontent-%COMP%]{background-color:#483c4d;width:100%;display:flex;flex-direction:column;align-items:center;padding:38px 100px 8px}.wizer-worksheet-summary[_ngcontent-%COMP%] .display-desktop[_ngcontent-%COMP%]{display:none}.wizer-worksheet-summary[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#fff;margin-bottom:14px}.wizer-worksheet-summary[_ngcontent-%COMP%] .statistics[_ngcontent-%COMP%]{display:inline-flex;min-width:38%;justify-content:flex-end}.wizer-worksheet-summary[_ngcontent-%COMP%] .statistics[_ngcontent-%COMP%] .stat[_ngcontent-%COMP%]{margin:0 20px}.wizer-worksheet-summary[_ngcontent-%COMP%] .statistics[_ngcontent-%COMP%] .stat[_ngcontent-%COMP%] .stat-header[_ngcontent-%COMP%]{color:#fff;font-size:12px;font-weight:400;line-height:18px}.wizer-worksheet-summary[_ngcontent-%COMP%] .statistics[_ngcontent-%COMP%] .stat[_ngcontent-%COMP%] .stat-value[_ngcontent-%COMP%]{color:#e5c3c6;text-align:center;font-size:18px;font-weight:700;line-height:28px}@media (min-width: 1140px){.wizer-worksheet-summary[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;padding:19px 40px}.wizer-worksheet-summary[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{display:none}.wizer-worksheet-summary[_ngcontent-%COMP%] .display-desktop[_ngcontent-%COMP%]{display:flex;flex-direction:column}.wizer-worksheet-summary[_ngcontent-%COMP%] .display-desktop[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:18px;
1color:#adadad;text-transform:uppercase}.wizer-worksheet-summary[_ngcontent-%COMP%] .display-desktop[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{display:inline;display:initial;margin-bottom:0}.wizer-worksheet-summary[_ngcontent-%COMP%] .statistics[_ngcontent-%COMP%] .stat[_ngcontent-%COMP%]:last-of-type{margin-right:0}}"],changeDetection:0}),t}(),we=s(87707),_e=s(58346),Me=s(7537),Oe=s(37495),be=s(92341),ke=s(87519),Pe=s(88002),ye=s(13510),Ze=s(4753),Se=s(21571),Ae=s(45435),Te=s(43190),qe=s(65792),De=s(68939),Ie=s(16738),ze=s(28253),Je=s(26155),Ue=s(11960);function Fe(t,e){1&t&&(I.TgZ(0,"mat-icon"),I._uU(1,"save"),I.qZA())}function Qe(t,e){1&t&&I._UZ(0,"mat-progress-spinner",40)}function Ne(t,e){1&t&&(I.TgZ(0,"mat-icon"),I._uU(1,"send"),I.qZA())}function Ye(t,e){1&t&&I._UZ(0,"mat-progress-spinner",41)}function Le(t,e){if(1&t&&(I.TgZ(0,"span",42),I._uU(1),I.qZA()),2&t){var n=e.ngIf;I.xp6(1),I.Oqu(n)}}function je(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"button",30),I.NdJ("click",function(){return I.CHM(n),I.oxw(2).saveDraft()}),I.YNc(2,Fe,2,0,"mat-icon",4),I.YNc(3,Qe,1,0,"mat-progress-spinner",31),I.qZA(),I.TgZ(4,"wizer-premium-wrapper",32),I.TgZ(5,"button",33),I.NdJ("click",function(){return I.CHM(n),I.oxw(2).downloadReport()}),I.TgZ(6,"div",34),I.TgZ(7,"mat-icon"),I._uU(8,"file_download"),I.qZA(),I.TgZ(9,"div",35),I._uU(10,"Download"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(11,"div",36),I.TgZ(12,"button",37),I.NdJ("click",function(){return I.CHM(n),I.oxw(2).publish()}),I.TgZ(13,"div",34),I.YNc(14,Ne,2,0,"mat-icon",4),I.YNc(15,Ye,1,0,"mat-progress-spinner",38),I.TgZ(16,"div",35),I._uU(17,"Send feedback"),I.qZA(),I.qZA(),I.qZA(),I.YNc(18,Le,2,1,"span",39),I.qZA(),I.BQk()}if(2&t){var i=e.ngIf,o=I.oxw().ngIf,s=I.oxw();I.xp6(1),I.Q6J("disabled",!o.value||(null==i?null:i.draft)||!s.hasSolution)("matTooltipDisabled",!s.hasSolution),I.xp6(1),I.Q6J("ngIf",!(null!=i&&i.draft)),I.xp6(1),I.Q6J("ngIf",null==i?null:i.draft),I.xp6(1),I.Q6J("imageCss",s.premiumIconCss),I.xp6(1),I.Q6J("disabled",!s.hasSolution)("matTooltip","Download grades report")("matTooltipDisabled",!s.hasSolution),I.xp6(7),I.Q6J("matTooltip",s.saveFeedbackTooltip)("matTooltipDisabled",!s.saveFeedbackTooltip)("disabled",!!s.feedbackUnavailableReason(i)),I.uIk("aria-describedby",s.feedbackUnavailableReason(i)?"send-feedback-unavailable":null),I.xp6(2),I.Q6J("ngIf",!i.feedback),I.xp6(1),I.Q6J("ngIf",null==i?null:i.feedback),I.xp6(3),I.Q6J("ngIf",s.feedbackUnavailableReason(i))}}function $e(t,e){if(1&t&&(I.ynx(0),I.YNc(1,je,19,15,"ng-container",4),I.ALo(2,"async"),I.BQk()),2&t){var n=I.oxw();I.xp6(1),I.Q6J("ngIf",I.lcZ(2,1,n.saveStatus$))}}function Re(t,e){1&t&&I._UZ(0,"mat-progress-spinner",43)}var Ee=function(t){return{value:t}},He=function(){var t=function(t){u(i,t);var e=d(i);function i(t,n,o,s,a,c,l,u){var g;return r(this,i),(g=e.call(this)).dialog=t,g.solutionStore=n,g.userSrv=o,g.tracking=s,g.chgDet=a,g.windowRef=c,g.http=l,g.commentControl=u,g.saveStatus$=g.solutionStore.saveStatus$,g.premiumIconCss={width:"26px",height:"26px"},g.retakeIconCss=Object.assign(Object.assign({},g.premiumIconCss),{top:"-14px",right:"-24px"}),g.forgotIconCss=Object.assign(Object.assign({},g.premiumIconCss),{top:"-10px",right:"-14px"}),g._locked=!1,g.hasChanges$=g.solutionStore.hasChanges$.pipe((0,ke.x)()),g.studentClass="",g.displayName="",g.saveFeedbackTooltip="",g.feedbackStatus="",g.lastSeen="",g.submissionDate="",g.submissionDateRaw="",g.lastSeenRaw="",g.progress="",g.score="",g.timespent="",g.saving=!1,g.generatingAI=!1,g.hasFeedbackSettings=!1,g}return l(i,[{key:"canCallIn",get:function(){return!!this.hasSolution&&ye.H.canCallIn(this.assessment,this.solution)}},{key:"canSendFeedback",get:function(){var t,e;return(null===(t=this.solution)||void 0===t?void 0:t.status)===Ze.p.submit||(null===(e=this.solution)||void 0===e?void 0:e.status)===Ze.p.reSubmit}},{key:"feedbackUnavailableReason",value:function(t){return this.hasSolution?this.canSendFeedback?(null==t?void 0:t.feedback)?"Sending feedback\u2026":(null==t?void 0:t.draft)?"Saving your feedback. You can send it when saving finishes.":this.assessment?"":"Feedback is still loading.":"This student has not submitted their work yet.":"Select a student to send feedback."}},{key:"hasSolution",get:function(){return!!this.solution}}
1,{key:"isSuperUser",get:function(){return this.userSrv.isSuperUser}},{key:"locked",get:function(){return this._locked}},{key:"worksheet",get:function(){return this.solutionStore.worksheet}},{key:"canAccessPremium",get:function(){var t,e,n,i=(null===(t=this.worksheet)||void 0===t?void 0:t.sellerId)&&(null===(e=this.worksheet)||void 0===e?void 0:e.sellerId)!==(null===(n=this.worksheet)||void 0===n?void 0:n.userId);return this.userSrv.isPremium||i}},{key:"ngOnInit",value:function(){this.connectToStore()}},{key:"callInSolution",value:function(){var t,e=this;this.tracking.track("Call it in"),(null===(t=this.solution)||void 0===t?void 0:t.token)&&this.canAccessPremium&&this.confirmCallIn().pipe((0,Ae.h)(function(t){return t})).subscribe(function(){e.solutionStore.callInSolution(e.solution.token)})}},{key:"changeLock",value:function(t){var e,n=this;if(this.tracking.track("Retake worksheet"),!this.canAccessPremium)return t.source.checked=this._locked,void this.chgDet.markForCheck();!t.source.checked&&(null===(e=this.solution)||void 0===e?void 0:e.token)&&(t.source.checked=!1,this._locked=!1,this.chgDet.markForCheck(),this.solutionStore.changeSolutionStatus(this.solution.token,Ze.p.reSubmit).pipe((0,ct.b)(function(e){e||(t.source.checked=!0,n._locked=!0,n.chgDet.markForCheck())})).subscribe())}},{key:"downloadReport",value:function(){this.tracking.track("Download grades"),this.canAccessPremium&&this.openGradesDialog()}},{key:"print",value:function(){var t,e,n=this;if((null===(t=this.solution)||void 0===t?void 0:t.publicationToken)&&(null===(e=this.solution)||void 0===e?void 0:e.token)){if(!this.solutionStore.hasChanges)return void this.openPrint();this.dialog.open(T.z0,{data:{title:"Unsaved changes",textAlign:"center",message:"You have unsaved changes. Before you proceed you have to save your changes. Save now?"},maxWidth:"30vw",backdropClass:"converter-backdrop"}).beforeClosed().pipe((0,Ae.h)(function(t){return!!t}),(0,Te.w)(function(){return n.saving=!0,n.chgDet.markForCheck(),n.solutionStore.saveDraft(Object.assign({},n.assessment))}),(0,qe.g)(200),(0,ct.b)(function(){n.saving=!1,n.chgDet.markForCheck(),n.openPrint()})).subscribe()}}},{key:"publish",value:function(){!this.canSendFeedback||!this.assessment||this.solutionStore.publishAssessment(Object.assign({},this.assessment)).subscribe()}},{key:"saveDraft",value:function(){this.solutionStore.saveDraft(Object.assign({},this.assessment)).subscribe()}},{key:"generateAIFeedback",value:function(){var t,e,n=this;(null===(t=this.worksheet)||void 0===t?void 0:t.id)&&(null===(e=this.solution)||void 0===e?void 0:e.id)&&this.userSrv.userId&&(this.generatingAI=!0,this.chgDet.markForCheck(),this.solutionStore.aiCheckWorksheet({worksheetId:this.worksheet.id,solutionId:this.solution.id,teacherId:this.userSrv.userId}).pipe((0,De.x)(function(){n.generatingAI=!1,n.chgDet.markForCheck()})).subscribe(function(t){n.commentControl.openAllComments()},function(t){console.error("AI feedback generation failed:",t)}))}},{key:"openAISettings",value:function(){var t,e=this;if((null===(t=this.worksheet)||void 0===t?void 0:t.id)&&this.userSrv.userId){var n={teacherId:String(this.userSrv.userId),worksheetId:String(this.worksheet.id)};this.dialog.open(Ft,{data:n,width:"95vw",height:"95vh",maxWidth:"none",maxHeight:"none",disableClose:!1}).afterClosed().subscribe(function(){e.checkFeedbackSettings()})}}},{key:"openPrint",value:function(){var t=this.solution,e=t.publicationToken,n=t.token,i="".concat(T.Lz.getCurrentHost(this.windowRef.window).toString()).concat(It.UY.wsPrint,"/").concat(e,"/").concat(n);this.windowRef.window.open(i,"_blank")}},{key:"confirmCallIn",value:function(){if(this.canAccessPremium)return this.dialog.open(T.z0,{data:{title:"Call worksheet in?",textAlign:"center",message:"Worksheet will be submitted for assessment and locked for student edits"},maxWidth:"30vw",backdropClass:"converter-backdrop"}).beforeClosed()}},{key:"connectToStore",value:function(){var t=this,e=this.solutionStore.selectedSolution$.pipe((0,U.R)(this.ngDestroyed$),(0,ke.x)(),(0,ct.b)(function(e){e?(t.totalScore=t.solutionStore.totalScoreMap,t.parseSolutionToData(e)):t.setEmpty(),t.chgDet.detectChanges()}
1)),n=this.solutionStore.assessment$.pipe((0,U.R)(this.ngDestroyed$),(0,ct.b)(function(e){t.parseAssessmentData(e),t.chgDet.detectChanges()}));(0,Se.$R)(n,e).subscribe(function(){var e;t._locked=(null===(e=t.solution)||void 0===e?void 0:e.status)===Ze.p.submit,t.checkFeedbackSettings(),t.chgDet.detectChanges()})}},{key:"checkFeedbackSettings",value:function(){var t,e=this;if((null===(t=this.worksheet)||void 0===t?void 0:t.id)&&this.userSrv.userId){var n=(new Jt.LE).set("teacherId",String(this.userSrv.userId)).set("worksheetId",String(this.worksheet.id));this.http.get("/api/ai/get-worksheet-feedback-settings",{params:n}).subscribe(function(t){e.hasFeedbackSettings=t.success&&!!t.feedback,e.chgDet.markForCheck()},function(t){console.error("Error checking feedback settings:",t),e.hasFeedbackSettings=!1,e.chgDet.markForCheck()})}else this.hasFeedbackSettings=!1}},{key:"getSolutionUserClass",value:function(t){if(!(null==t?void 0:t.length))return"-";var e=t.filter(function(t){return"active"===t.state});return(null==e?void 0:e.length)?e[0].name:""}},{key:"parseSolutionToData",value:function(t){var e,n,i;this.displayName=this.solutionStore.getStudentDisplayName(t);var o=(null===(e=null==t?void 0:t.user)||void 0===e?void 0:e.firstname)?t.user.firstname:"student";this.saveFeedbackTooltip="Send your feedback to ".concat(o),this.timespent=Ie.duration(t.timespent?t.timespent:0).humanize(),this.lastSeen=this.parseLastSeen(t.updatedAt,!0),this.lastSeenRaw=null===(n=Ie(null==t?void 0:t.updatedAt))||void 0===n?void 0:n.format("L LT"),this.studentClass=this.getSolutionUserClass(null===(i=null==t?void 0:t.user)||void 0===i?void 0:i.class),this.solution=t,this.parseProgressStatus()}},{key:"parseLastSeen",value:function(t,e){var n,i=void 0===e?1:-1,o=Ie(),s=Ie(t);return null===(n=Ie.duration(i*o.diff(s)))||void 0===n?void 0:n.humanize(!0)}},{key:"parseAssessmentData",value:function(t){var e,n,i,o,s,a;this.assessment=t;var r=(this.totalScore||{})[null===(e=this.solution)||void 0===e?void 0:e.id]||this.solutionStore.totalWorksheetScore,c=this.solutionStore.calcWorksheetStore(t);this.score=this.hasSolution&&null!=c?"".concat(c,"/").concat(r):"",this.submissionDate=(null===(n=this.assessment)||void 0===n?void 0:n.createdAt)?this.parseLastSeen(null===(i=this.assessment)||void 0===i?void 0:i.createdAt,!0):null,this.submissionDateRaw=(null===(o=this.assessment)||void 0===o?void 0:o.createdAt)?null===(a=Ie(null===(s=this.assessment)||void 0===s?void 0:s.createdAt))||void 0===a?void 0:a.format("L LT"):null,this.parseProgressStatus()}},{key:"parseProgressStatus",value:function(){var t=n(ye.H.parseWorksheetStatuses(this.assessment,this.solution),2),e=t[0],i=t[1];this.progress=this.hasSolution?e:null,this.feedbackStatus=i}},{key:"openGradesDialog",value:function(){var t,e,n=(null===(t=this.solution)||void 0===t?void 0:t.name)||this.solution.token;this.dialog.open(Gt,{data:{fileName:"".concat((null===(e=this.worksheet)||void 0===e?void 0:e.name)||"worksheet","-").concat(n),worksheet:this.worksheet,publications:this.solutionStore.currentSolutions,totalPoints:this.solutionStore.totalWorksheetScore}})}},{key:"setEmpty",value:function(){this.solution=null,this.score="",this.lastSeen="",this.submissionDate="",this.progress="",this.displayName="",this.saveFeedbackTooltip="",this.timespent=""}}]),i}(T.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.Vc),I.Y36(me.cC),I.Y36(Oe.K),I.Y36(ze.$),I.Y36(I.sBO),I.Y36(pt.t1),I.Y36(Jt.eN),I.Y36(Je.e))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-solution-details"]],features:[I.qOj],decls:59,vars:29,consts:[[1,"solution-details"],[1,"action-row"],[1,"actions"],["mat-flat-button","","matTooltip","Print the students worksheet",1,"small",3,"disabled","matTooltipDisabled","click"],[4,"ngIf"],[1,"details"],[1,"solution-data"],["matTooltip","The score achieved by the student",1,"detail"],[1,"subtitle2"],["matTooltip","Total time spent on the worksheet",1,"detail"],[1,"detail"],["matTooltip","Last time when student was seen online"],[1,"subtitle2",3,"matTooltip","matTooltipDisabled"],["matTooltip","When student submitted the solution"],[1,"subtitle2",3,"matTooltip"],["matTooltip","The current status of the student worksheet",1,"detail"],[1,"subtitle2","progress"],[1,"solution-actions"],[1,"detail","ai-feedback"],["matTooltip","AI feedback settings and options"],[1,"ai-feedback-buttons"],["mat-flat-button","",1,"small","ai-settings-btn",3,"matTooltip","click"],["mat-flat-button","","matTooltip","Check Submission",1,"small","check-submission-btn",3,"disabled","matTooltipDisabled","click"],["class","black","mode","indeterminate","diameter","16",4,"ngIf"],[1,"detail","retake"],["matTooltip","Allow the student to retake the worksheet after it was submitted.\rIf Locked, the student can still see your feedback."],[1,"flex",3,"imageCss"],[1,"green",3,"checked","disabled","change"],["matTooltip","Submit the solution as-is on behalf of the student.\n Once a solution is submitted:\n 1. The student will not be able to continue solving the worksheet\n 2. You will be able to grade the work and give feedback"],["mat-flat-button","",3,"disabled","click"],["mat-flat-button","","matTooltip","Save your feedback for later. \rWithout sending it yet",1,"small",3,"disabled","matTooltipDisabled","click"],["class","black","mode","indeterminate","diameter","20",4,"ngIf"],[3,"imageCss"],["mat-flat-button","",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"btn-inner"],[1,"uppercase"],[1,"send-feedback-action"],["mat-flat-button","",3,"matTooltip","matTooltipDisabled","disabled","click"],["class","black","mode","indeterminate","diameter","24",4,"ngIf"],["id","send-feedback-unavailable","class","send-feedback-reason","role","status",4,"ngIf"],["mode","indeterminate","diameter","20",1,"black"],["mode","indeterminate","diameter","24",1,"black"],["id","send-feedback-unavailable","role","status",1,"send-feedback-reason"],["mode","indeterminate","diameter","16",1,"black"]],template:function(t,e){1&t&&(I.TgZ(0,"section",0),I.TgZ(1,"div",1),I.TgZ(2,"h4"),I._uU(3),I.qZA(),I.TgZ(4,"div",2),I.TgZ(5,"button",3),I.NdJ("click",function(){return e.print()}),I.TgZ(6,"mat-icon"),I._uU(7,"print"),I.qZA(),I.qZA(),I.YNc(8,$e,3,3,"ng-container",4),I.ALo(9,"async"),I.qZA(),I.qZA(),I.TgZ(10,"div",5),I.TgZ(11,"div",6),I.TgZ(12,"div",7),I.TgZ(13,"span"),I._uU(14,"Score"),I.qZA(),I.TgZ(15,"p",8),I._uU(16),I.qZA(),I.qZA(),I.TgZ(17,"div",9),I.TgZ(18,"span"),I._uU(19,"Work time"),I.qZA(),I.TgZ(20,"p",8),I._uU(21),I.qZA(),I.qZA(),I.TgZ(22,"div",10),I.TgZ(23,"span",11),I._uU(24,"Last seen"),I.qZA(),I.TgZ(25,"p",12),I._uU(26),I.qZA(),I.qZA(),I.TgZ(27,"div",10),I.TgZ(28,"span",13),I._uU(29,"Submission date"),I.qZA(),I.TgZ(30,"p",14),I._uU(31),I.qZA(),I.qZA(),I.TgZ(32,"div",15),I.TgZ(33,"span"),I._uU(34,"Status"),I.qZA(),I.TgZ(35,"p",16),I._uU(36),I.qZA(),I.qZA(),I.qZA(),I.TgZ(37,"div",17),I.TgZ(38,"div",18),I.TgZ(39,"span",19),I._uU(40," AI feedback "),I.qZA(),I.TgZ(41,"div",20),I.TgZ(42,"button",21),I.NdJ("click",function(){return e.openAISettings()}),I.qZA(),I.TgZ(43,"button",22),I.NdJ("click",function(){return e.generateAIFeedback()}),I.YNc(44,Re,1,0,"mat-progress-spinner",23),I.qZA(),I.qZA(),I.qZA(),I.TgZ(45,"div",24),I.TgZ(46,"span",25),I._uU(47," Retake worksheet "),I.qZA(),I.TgZ(48,"wizer-premium-wrapper",26),I.TgZ(49,"mat-slide-toggle",27),I.NdJ("change",function(t){return e.changeLock(t)}),I.TgZ(50,"p",8),I._uU(51,"Locked"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(52,"div",10),I.TgZ(53,"span",28),I._uU(54,"Forgot to submit?"),I.qZA(),I.TgZ(55,"wizer-premium-wrapper",26),I.TgZ(56,"button",29),I.NdJ("click",function(){return e.callInSolution()}),I.TgZ(57,"div"),I._uU(58,"Call it in"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.xp6(3),I.Oqu(e.dis
1playName||"-"),I.xp6(2),I.Q6J("disabled",!e.hasSolution||e.saving)("matTooltipDisabled",!e.hasSolution),I.xp6(3),I.Q6J("ngIf",I.VKq(27,Ee,I.lcZ(9,25,e.hasChanges$))),I.xp6(8),I.hij(" ",e.score||"-"," "),I.xp6(5),I.Oqu(e.timespent||"-"),I.xp6(4),I.Q6J("matTooltip",e.lastSeenRaw)("matTooltipDisabled",!e.hasSolution),I.xp6(1),I.hij(" ",e.lastSeen||"-"," "),I.xp6(4),I.Q6J("matTooltip",e.submissionDateRaw),I.xp6(1),I.hij(" ",e.submissionDate||"-"," "),I.xp6(5),I.hij(" ",e.progress||"-"," "),I.xp6(6),I.ekj("has-settings",e.hasFeedbackSettings),I.Q6J("matTooltip",e.hasFeedbackSettings?"AI feedback settings configured":"Configure AI feedback settings"),I.xp6(1),I.Q6J("disabled",!e.hasSolution||e.generatingAI)("matTooltipDisabled",!e.hasSolution),I.xp6(1),I.Q6J("ngIf",e.generatingAI),I.xp6(4),I.Q6J("imageCss",e.retakeIconCss),I.xp6(1),I.Q6J("checked",e.locked)("disabled",!e.locked||!e.hasSolution),I.xp6(6),I.Q6J("imageCss",e.forgotIconCss),I.xp6(1),I.ekj("disabled",!e.canCallIn||!e.hasSolution),I.Q6J("disabled",!e.canCallIn||!e.hasSolution))},directives:[C.lW,A.gM,M.Hw,m.O5,Ue.Q,P.Rr,O.Ou],pipes:[m.Ov],styles:['.sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.solution-details[_ngcontent-%COMP%]{background-color:#483c4d;padding:20px 20px 0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;color:#fff}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:14px;flex-direction:column}@media (min-width: 1140px){.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%]{flex-direction:row}}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#fff;margin-bottom:12px}@media (min-width: 1140px){.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-bottom:0}}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:flex-end}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .send-feedback-action[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .send-feedback-reason[_ngcontent-%COMP%]{max-width:220px;margin:6px 0 0 10px;font-size:12px;line-height:16px;text-align:right}@media (min-width: 1140px){.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{justify-content:normal}}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:10px;max-height:36px}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-progress-spinner[_ngcontent-%COMP%]{margin:0 auto}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:16px;line-height:16px}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .btn-inner[_ngcontent-%COMP%]{display:flex;align-items:center}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .uppercase[_ngcontent-%COMP%]{text-transform:uppercase;margin-left:12px;font-size:16px;font-weight:700;line-height:36px}.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button.mat-button-disabled[_ngcontent-%COMP%]{opacity:.6;background-color:#fff!important;color:#1f2121!important}
1.solution-details[_ngcontent-%COMP%] .action-row[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button.small[_ngcontent-%COMP%]{min-width:36px;min-height:36px;padding:0}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;padding:18px 0 0}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .solution-data[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .solution-actions[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:140px;min-height:60px;margin-right:10px;margin-bottom:24px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail.ai-feedback[_ngcontent-%COMP%]{min-width:200px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail.ai-feedback[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;left:28%}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail.retake[_ngcontent-%COMP%]{margin-right:30px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail.retake[_ngcontent-%COMP%] wizer-premium-wrapper[_ngcontent-%COMP%]{display:flex;height:36px;align-items:center}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#36cdc7;max-width:100px;padding:0 4px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] button.disabled[_ngcontent-%COMP%]{opacity:.6}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] button[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:#fff;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%]:last-of-type{margin-right:0}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:16px;color:#fff;text-transform:uppercase;margin-bottom:14px;letter-spacing:1.5px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;grid-gap:8px;gap:8px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:auto;width:auto;max-width:none;padding:0 8px;height:28px;min-height:28px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .btn-inner[_ngcontent-%COMP%]{display:flex;align-items:center;grid-gap:4px;gap:4px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .btn-inner[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;font-size:16px;line-height:16px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .btn-inner[_ngcontent-%COMP%] .uppercase[_ngcontent-%COMP%]{margin-left:0;font-size:12px;line-height:16px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .btn-inner[_ngcontent-%COMP%] .settings-indicator[_ngcontent-%COMP%]{height:14px!important;width:14px!important;font-size:14px!important;line-height:14px!important;color:#87bb56;margin-left:4px}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button.ai-settings-btn[_ngcontent-%COMP%]{background-image:url(/assets/images/assess/Feedback%20settings1.jpg);background-position:center;height:28px;min-height:28px;min-width:144px;width:144px;padding:0;border:none;color:#fff;display:flex;align-items:center;justify-content:center;position:relative}
1.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button.ai-settings-btn.has-settings[_ngcontent-%COMP%]:after{content:"";position:absolute;top:-7px;right:5px;width:15px;height:15px;background-image:url(/assets/images/assess/Feedback%20settings4.png);background-position:center;display:block}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button.ai-settings-btn[_ngcontent-%COMP%]:disabled{opacity:.6}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button.check-submission-btn[_ngcontent-%COMP%]{background-image:url(/assets/images/assess/Feedback%20settings3.jpg);background-position:center;height:28px;min-height:28px;min-width:144px;width:144px;padding:0;border:none;color:#fff;display:flex;align-items:center;justify-content:center}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button.check-submission-btn[_ngcontent-%COMP%] .mat-progress-spinner[_ngcontent-%COMP%]{margin:0}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .ai-feedback-buttons[_ngcontent-%COMP%] button.check-submission-btn[_ngcontent-%COMP%]:disabled{opacity:.6}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%], .solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{text-transform:capitalize}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .feedback.no-data[_ngcontent-%COMP%], .solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .progress.no-data[_ngcontent-%COMP%]{color:#fff!important}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .subtitle2[_ngcontent-%COMP%]{color:#fff;min-height:24px;font-weight:400}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .subtitle2.feedback[_ngcontent-%COMP%]{color:#87bb56}.solution-details[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .detail[_ngcontent-%COMP%] .subtitle2.progress[_ngcontent-%COMP%]{color:#fdbd10}'],changeDetection:0}),t}(),We=s(20523),Be=s(89675);function Ve(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(n),I.oxw().search=""}),I.TgZ(1,"mat-icon"),I._uU(2,"clear"),I.qZA(),I.qZA()}}function Xe(t,e){if(1&t&&(I.TgZ(0,"p",14),I._uU(1),I.qZA()),2&t){var n=I.oxw().ngIf;I.xp6(1),I.hij(" Total solutions: ",null==n?null:n.length," ")}}function Ge(t,e){1&t&&(I.TgZ(0,"mat-icon",20),I._uU(1," check "),I.qZA())}function Ke(t,e){1&t&&(I.TgZ(0,"mat-icon",21),I._uU(1," hourglass_empty "),I.qZA())}function tn(t,e){1&t&&(I.TgZ(0,"mat-icon",22),I._uU(1," clear "),I.qZA())}function en(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",15),I.NdJ("click",function(){var t=I.CHM(n).$implicit;return I.oxw(2).selectSolution(t)}),I.ALo(1,"async"),I.TgZ(2,"p",16),I.ALo(3,"studentName"),I._uU(4),I.ALo(5,"studentName"),I.qZA(),I.TgZ(6,"p"),I._uU(7),I.qZA(),I.YNc(8,Ge,2,0,"mat-icon",17),I.YNc(9,Ke,2,0,"mat-icon",18),I.YNc(10,tn,2,0,"mat-icon",19),I.qZA()}if(2&t){var i=e.$implicit,o=I.oxw(2);I.ekj("selected",I.lcZ(1,9,o.selectedSolutionToken$)===i.token),I.xp6(2),I.Q6J("matTooltip",I.xi3(3,11,i,o.sort)),I.xp6(2),I.hij(" ",I.xi3(5,14,i,o.sort)," "),I.xp6(3),I.AsE(" ",i.score," / ",o.totalScore[i.id]||o.totalWorksheetScore," "),I.xp6(1),I.Q6J("ngIf",i.solutionStatus===o.SolutionStatus.submit&&"sent"===i.feedbackStatus),I.xp6(1),I.Q6J("ngIf",i.solutionStatus===o.SolutionStatus.submit&&"sent"!==i.feedbackStatus),I.xp6(1),I.Q6J("ngIf",i.solutionStatus!==o.SolutionStatus.submit)}}function nn(t,e){1&t&&(I.TgZ(0,"h5"),I._uU(1,"No solutions found"),I.qZA())}function on(t,e){if(1&t&&(I.ynx(0),I.YNc(1,Xe,2,1,"p",11),I.TgZ(2,"div",12),I.YNc(3,en,11,17,"div",13),I.YNc(4,nn,2,0,"h5",9),I.qZA(),I.BQk()),2&t){var n=e.ngIf;I.xp6(1),I.Q6J("ngIf",null==n?null:n.length),I.xp6(2),I.Q6J("ngForOf",n),I.xp6(1),I.Q6J("ngIf",!(null!=n&&n.length))}}var sn=function(){var e=function(e){u(i,e);var n=d(i);function i(t,e,o){var s;return r(this,i),(s=n.call(this)).solutionStore=t,s.chgDet=e,s.commentControl=o,s.SolutionStatus=Ze.p,s.StudentListSortTypes=We.W,s.totalScore={},s._search="",s._sort=We.W.LastName,s.currentSolutions$=s.solutionStore.currentSolutions$.pipe((0,ke.x)(),(0,ct.b)(function(){s.totalScore=s.solutionStore.totalScoreMap||{},s.chgDet.markForCheck()})),s.selectedSolutionToken$=s.solutionStore.selectedSolution$.pipe((0,Pe.U)(function(t){return null==t?void 0:t.token})),s}return l(i,[{key:"search",get:function(){return this._search},set:function(t){var e,n=null===(e=this._search)||void 0===e?void 0:e.toLowerCase().trim(),i=null==t?void 0:t.toLowerCase().trim();0!==n.localeCompare(i)&&(this._search=t,this.solutionStore.updateSearch(this._search))}},{key:"sort",get:function(){return this._sort},set:function(t){t!==this._sort&&(this._sort=t,this.solutionStore.updateSort(this._sort),this.chgDet.markForCheck())}},{key:"totalWorksheetScore",get:function(){return this.solutionStore.totalWorksheetScore}},{key:"ngOnDestroy",value:function(){t(h(i.prototype),"ngOnDestroy",this).call(this)}},{key:"selectSolution",value:function(t){var e=null==t?void 0:t.token;e&&(this.solutionStore.selectSolution(e),this.commentControl.closeAllComments())}}]),i}(T.H6);return e.\u0275fac=function(t){return new(t||e)(I.Y36(me.cC),I.Y36(I.sBO),I.Y36(Je.e))},e.\u0275cmp=I.Xpm({type:e,selectors:[["wizer-solution-student-list"]],features:[I.qOj],decls:23,vars:12,consts:[["id","solution-student-list",1,"solution-student-list"],[1,"search-bar"],[1,"search-input"],["type","text","placeholder","Search","wizerLazyInput","",3,"ngModel","minChars","delay","LazyInputChange"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"sort-field"],[1,"mat-select-assess",3,"ngModel","ngModelChange"],[3,"value"],[1,"sort-label"],[4,"ngIf"],["mat-icon-button","",3,"click"],["class","total",4,"ngIf"],["id","solution-list",1,"solution-list"],["class","solution",3,"selected","click",4,"ngFor","ngForOf"],[1,"total"],[1,"solution",3,"click"],[3,"matTooltip"],["class","green","matTooltip","Feedback sent to student",4,"ngIf"],["class","yellow","matTooltip","Submitted - Waiting for feedback",4,"ngIf"],["matTooltip","Student is working",4,"ngIf"],["matTooltip","Feedback sent to student",1,"green"],["matTooltip","Submitted - Waiting for feedback",1,"yellow"],["matTooltip","Student is working"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"div",2),I.TgZ(3,"mat-icon"),I._uU(4,"search"),I.qZA(),I.TgZ(5,"input",3),I.NdJ("LazyInputChange",function(t){return e.search=t}),I.qZA(),I.YNc(6,Ve,3,0,"button",4),I.qZA(),I.qZA(),I.TgZ(7,"div",5),I.TgZ(8,"mat-select",6),I.NdJ("ngModelChange",function(t){return e.sort=t}),I.TgZ(9,"mat-option",7),I.TgZ(10,"span",8),I._uU(11,"First name"),I.qZA(),I.qZA(),I.TgZ(12,"mat-option",7),I.TgZ(13,"span",8),I._uU(14,"Last name"),I.qZA(),I.qZA(),I.TgZ(15,"mat-option",7),I.TgZ(16,"span",8),I._uU(17,"Feedback status"),I.qZA(),I.qZA(),I.TgZ(18,"mat-option",7),I.TgZ(19,"span",8),I._uU(20,"Score"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.YNc(21,on,5,3,"ng-container",9),I.ALo(22,"async"),I.qZA()),2&t&&(I.xp6(5),I.Q6J("ngModel",e.search)("minChars",1)("delay",500),I.xp6(1),I.Q6J("ngIf",e.search),I.xp6(2),I.Q6J("ngModel",e.sort),I.xp6(1),I.Q6J("value",e.StudentListSortTypes.FirstName),I.xp6(3),I.Q6J("value",e.StudentListSortTypes.LastName),I.xp6(3),I.Q6J("value",e.StudentListSortTypes.Feedback),I.xp6(3),I.Q6J("value",e.StudentListSortTypes.Score),I.xp6(3),I.Q6J("ngIf",I.lcZ(22,10,e.currentSolutions$)))},directives:[M.Hw,v.Fj,Q.v,v.JJ,v.On,m.O5,b.gD,Ct.ey,C.lW,m.sg,A.gM],pipes:[m.Ov,Be.C],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}#solution-student-list[_ngcontent-%COMP%]{display:block;height:100%;background-color:#685c6e;padding:16px 16px 16px 10px}
1#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%]{margin-bottom:16px;width:100%;display:inline-flex;align-items:center;justify-content:space-between}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{background-color:#fff;display:inline-flex;align-items:center;border-radius:4px;height:36px;padding:0 6px 0 12px;flex-grow:1}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#212121}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:12px}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{width:24px;height:22px;line-height:22px}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{line-height:22px;font-size:14px}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;outline:none;width:100%;color:#212121;font-size:14px;font-weight:500;line-height:21px}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder{color:#adadad;font-size:14px;font-weight:400;line-height:21px}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#adadad;font-size:14px;font-weight:400;line-height:21px}#solution-student-list[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:uppercase;color:#212121}#solution-student-list[_ngcontent-%COMP%] .sort-field[_ngcontent-%COMP%]{background-color:#fff;border-radius:4px;padding:0 16px;margin-bottom:30px}#solution-student-list[_ngcontent-%COMP%] .sort-field[_ngcontent-%COMP%] .mat-select[_ngcontent-%COMP%]{height:50px;line-height:50px}.total[_ngcontent-%COMP%]{margin-bottom:10px;color:#fff;font-size:12px;font-weight:500;line-height:16px}#solution-list[_ngcontent-%COMP%]{max-height:calc(70vh - 200px);overflow-y:auto;overflow-x:hidden;margin-right:-16px}#solution-list[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#fff;text-align:center}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;flex-grow:1;padding:13px 14px;border-top-left-radius:4px;border-bottom-left-radius:4px}#solution-list[_ngcontent-%COMP%] .solution.selected[_ngcontent-%COMP%]{background-color:#483c4d}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-left:10px;color:#e4453f}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] .mat-icon.green[_ngcontent-%COMP%]{color:#87bb56}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] .mat-icon.yellow[_ngcontent-%COMP%]{color:#fdbd10}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] .mat-icon.red[_ngcontent-%COMP%]{color:#e4453f}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-of-type{font-size:14px;font-weight:500;line-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:60%;max-width:60%;margin-right:10px}#solution-list[_ngcontent-%COMP%] .solution[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{min-width:64px;text-align:right;font-size:12px;font-weight:400;line-height:18px}.sort-label[_ngcontent-%COMP%]{color:#212121}"],changeDetection:0}),e}(),an=s(43275),rn=s(23126),cn=s(79765),ln=s(54395),un=s(56542),gn=s(46646),dn=s(48515);function pn(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",2),I.TgZ(1,"div",3),I.TgZ(2,"div",4),I.TgZ(3,"h5"),I._uU(4,"Add general feedback for the student"),I.qZA(),I.TgZ(5,"div",5),I.TgZ(6,"wizer-premium-wrapper"),I.TgZ(7,"wizer-video-recorder",6),I.NdJ("recording",function(t){return I.CHM(n),I.oxw().onVideoRecorder(t)})("click",function(t){return I.CHM(n),I.oxw().openVideoRecorder(t)}),I.ALo(8,"async"),I.qZA(),I.qZA(),I.TgZ(9,"wizer-premium-wrapper"),I.TgZ(10,"wizer-voice-recorder",7),I.NdJ("recording",function(t){return I.CHM(n),I.oxw().onVoiceRecorded(t)})("click",function(t){return I.CHM(n),I.oxw().openVoiceRecorder(t)}),I.ALo(11,"async"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(12,"div",8),I.NdJ("froalaModelChange",function(t){return I.CHM(n),I.oxw().feedback=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i,o,s=I.oxw();I.xp6(7),I.Q6J("premiumOnly",!0)("wasPurchased",null==(i=I.lcZ(8,10,s.worksheet$))?null:i.wasPurchased)("playInDialog",!0)("fileInfo",s.feedbackVideo),I.xp6(3),I.Q6J("smallPlayer",!0)("premiumOnly",!0)("wasPurchased",null==(o=I.lcZ(11,12,s.worksheet$))?null:o.wasPurchased)("fileInfo",s.feedbackAudio),I.xp6(2),I.Q6J("froalaEditor",s.froalaCfg)("froalaModel",s.feedback)}}var hn=function(){var t=function(t){u(n,t);var e=d(n);function n(t,i,o,s){var a;return r(this,n),(a=e.call(this)).froalaConfig=t,a.googleAnalyticsSrv=i,a.solutionStore=o,a.chgDet=s,a.WorksheetMode=rn.kJ,a.worksheet$=a.solutionStore.worksheet$,a.selectedSolution$=a.solutionStore.selectedSolution$,a.froalaCfg=Object.assign({},a.froalaConfig.getConfig(an.y.assessSummary)),a.commentSubject=ne
1w cn.xQ,a.connectToStore(),a}return l(n,[{key:"hasAssessment",get:function(){return!!this.assessment}},{key:"feedback",get:function(){var t,e=this.solutionStore.currentSolution;return null===(t=null==e?void 0:e.assessment)||void 0===t?void 0:t.feedback},set:function(t){var e,n=this.solutionStore.currentSolution;(null===(e=null==n?void 0:n.assessment)||void 0===e?void 0:e.feedback)!==t&&this.commentSubject.next(t)}},{key:"feedbackAudio",get:function(){var t,e=this.solutionStore.currentSolution;return null===(t=null==e?void 0:e.assessment)||void 0===t?void 0:t.feedbackAudio}},{key:"feedbackVideo",get:function(){var t,e,n=this.solutionStore.currentSolution,i=(null===(e=null===(t=null==n?void 0:n.assessment)||void 0===t?void 0:t.feedbackVideo)||void 0===e?void 0:e.url)||"";return i?{url:i,name:""}:null}},{key:"assessmentChanged",value:function(t){this.assessment?T.Lz.assessmentHasChanges(t,this.assessment)&&this.solutionStore.updateAssessment(t):this.solutionStore.updateAssessment(t)}},{key:"onVideoRecorder",value:function(t){var e=this.solutionStore.currentSolution;if(null==e?void 0:e.assessment){var n=Object.assign(Object.assign({},e.assessment),{feedbackVideo:t});this.solutionStore.updateAssessment(n)}}},{key:"onVoiceRecorded",value:function(t){var e=this.solutionStore.currentSolution;if(null==e?void 0:e.assessment){var n=Object.assign(Object.assign({},e.assessment),{feedbackAudio:t});this.solutionStore.updateAssessment(n)}}},{key:"openVideoRecorder",value:function(t){t.stopPropagation(),this.googleAnalyticsSrv.event("open-general-feedback-video-record-dialog",Yt.v.GeneralFeedbackVideoRecorder,"Open general feedback video record dialog")}},{key:"openVoiceRecorder",value:function(t){t.stopPropagation(),this.googleAnalyticsSrv.event("open-general-feedback-audio-record-dialog",Yt.v.GeneralFeedbackAudioRecorder,"Open general feedback audio record dialog")}},{key:"connectToStore",value:function(){var t=this;this.solutionStore.assessment$.pipe((0,U.R)(this.ngDestroyed$),(0,ct.b)(function(e){t.assessment=e,t.chgDet.markForCheck()})).subscribe(),this.solutionStore.selectedSolution$.pipe((0,U.R)(this.ngDestroyed$),(0,ct.b)(function(){t.chgDet.markForCheck()})).subscribe(),this.commentSubject.asObservable().pipe((0,ln.b)(500),(0,ct.b)(function(e){var n=t.solutionStore.currentSolution;if(null==n?void 0:n.assessment){var i=Object.assign(Object.assign({},n.assessment),{feedback:e});t.solutionStore.updateAssessment(i)}})).subscribe()}}]),n}(T.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(pt.BW),I.Y36(Vt.$r),I.Y36(me.cC),I.Y36(I.sBO))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-solution-content"]],features:[I.qOj],decls:5,vars:11,consts:[[3,"mode","assessment","worksheet","solution","worksheetScoreChanged"],["class","worksheet-summary",4,"ngIf"],[1,"worksheet-summary"],[1,"worksheet-summary-wrapper"],[1,"worksheet-summary-header"],[1,"worksheet-summary-actions"],[3,"premiumOnly","wasPurchased","playInDialog","fileInfo","recording","click"],[3,"smallPlayer","premiumOnly","wasPurchased","fileInfo","recording","click"],[1,"worksheet-summary-content",3,"froalaEditor","froalaModel","froalaModelChange"]],template:function(t,e){1&t&&(I.TgZ(0,"wizer-worksheet",0),I.NdJ("worksheetScoreChanged",function(t){return e.assessmentChanged(t)}),I.ALo(1,"async"),I.ALo(2,"async"),I.qZA(),I.YNc(3,pn,13,14,"div",1),I.ALo(4,"async")),2&t&&(I.Q6J("mode",e.WorksheetMode.Assess)("assessment",e.assessment)("worksheet",I.lcZ(1,5,e.worksheet$))("solution",I.lcZ(2,7,e.selectedSolution$)),I.xp6(3),I.Q6J("ngIf",e.hasAssessment&&I.lcZ(4,9,e.selectedSolution$)))},directives:[un.O,m.O5,Ue.Q,gn.r,dn.Y,qt.Vg],pipes:[m.Ov],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}[_nghost-%COMP%]{display:flex;flex-direction:column}.worksheet-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 10px;margin:30px 0 120px}@media (min-width: 1140px){.worksheet-summary[_ngcontent-%COMP%]{padding:0 40px}}.worksheet-summary[_ngcontent-%COMP%] .worksheet-summary-wrapper[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;border:1px solid #dddddd}.worksheet-summary[_ngcontent-%COMP%] .worksheet-summary-header[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;background-color:#84cfcb;border-bottom:1px solid #dddddd;padding:8px 14px}.worksheet-summary[_ngcontent-%COMP%] .worksheet-summary-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-transform:capitalize;color:#fff}.worksheet-summary[_ngcontent-%COMP%] .worksheet-summary-header[_ngcontent-%COMP%] .worksheet-summary-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.worksheet-summary[_ngcontent-%COMP%] .worksheet-summary-header[_ngcontent-%COMP%] .worksheet-summary-actions[_ngcontent-%COMP%] wizer-voice-recorder[_ngcontent-%COMP%]{margin-left:8px}.worksheet-summary[_ngcontent-%COMP%] .worksheet-summary-content[_ngcontent-%COMP%]{background-color:#fff;padding:4px 8px}.worksheet-summary[_ngcontent-%COMP%] .fr-toolbar[_ngcontent-%COMP%], .worksheet-summary[_ngcontent-%COMP%] .fr-wrapper[_ngcontent-%COMP%]{border:none!important}"],changeDetection:0}),t}();function fn(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"wizer-load-from-storage",7),I.NdJ("discard",function(t){return I.CHM(n),I.oxw(2).storageDecision(t)}),I.qZA()}}function mn(t,e){1&t&&I._UZ(0,"wizer-loader")}function vn(t,e){1&t&&(I.ynx(0),I._UZ(1,"wizer-assess-tutorial"),I.BQk())}function Cn(t,e){if(1&t&&(I.ynx(0),I.YNc(1,fn,1,0,"wizer-load-from-storage",1),I.ALo(2,"async"),I.YNc(3,mn,1,0,"wizer-loader",0),I.ALo(4,"async"),I.TgZ(5,"div",2),I.TgZ(6,"section",3),I._UZ(7,"wizer-solution-detail
1s"),I.qZA(),I.TgZ(8,"div",4),I.TgZ(9,"div",5),I._UZ(10,"wizer-solution-student-list"),I.qZA(),I.TgZ(11,"div",6),I._UZ(12,"wizer-solution-content"),I.YNc(13,vn,2,0,"ng-container",0),I.qZA(),I.qZA(),I.qZA(),I.BQk()),2&t){var n=e.ngIf,i=I.oxw();I.xp6(1),I.Q6J("ngIf",I.lcZ(2,5,i.showStorageInfo$)),I.xp6(2),I.Q6J("ngIf",I.lcZ(4,7,i.solutionsLoad$)),I.xp6(8),I.ekj("empty",!(null!=n&&n.length)),I.xp6(2),I.Q6J("ngIf",!(null!=n&&n.length))}}var xn=function(){var t=function(t){u(n,t);var e=d(n);function n(t,i){var o;return r(this,n),(o=e.call(this)).assessmentStore=t,o.solutionsStore=i,o.currentSolutions$=o.solutionsStore.currentSolutions$.pipe((0,ke.x)()),o.hasPublications$=o.assessmentStore.selectedPublications$.pipe((0,Pe.U)(function(t){return!!(null==t?void 0:t.length)}),(0,ke.x)()),o.showStorageInfo$=o.solutionsStore.showStorageInfo$.pipe((0,ke.x)()),o.solutionsLoad$=o.solutionsStore.solutionsLoad$.pipe((0,ke.x)()),o}return l(n,[{key:"preSelectedSolutionToken",set:function(t){this.solutionsStore.preSelectSolution(t)}},{key:"storageDecision",value:function(t){this.solutionsStore.storageDecision(t)}}]),n}(T.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(me.G_),I.Y36(me.cC))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-solution-view"]],inputs:{preSelectedSolutionToken:"preSelectedSolutionToken"},features:[I._Bn([me.cC]),I.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"discard",4,"ngIf"],[1,"students-view"],[1,"solution-details"],[1,"container"],[1,"student-list"],[1,"student-solution-content"],[3,"discard"]],template:function(t,e){1&t&&(I.YNc(0,Cn,14,9,"ng-container",0),I.ALo(1,"async")),2&t&&I.Q6J("ngIf",I.lcZ(1,1,e.currentSolutions$))},directives:[m.O5,He,sn,hn,he,ie.L,Nt],pipes:[m.Ov],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}[_nghost-%COMP%]{display:flex;flex-direction:column;flex-grow:1}wizer-loader[_ngcontent-%COMP%]{background-color:#f7f5f2;left:-20px;right:-20px}@media (min-width: 1140px){wizer-loader[_ngcontent-%COMP%]{left:-40px;right:-40px}}.empty-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:30px}.empty-container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-weight:500;color:#adadad}.empty-container[_ngcontent-%COMP%] wizer-assess-tutorial[_ngcontent-%COMP%]{width:62.78vw;height:32vw}.students-view[_ngcontent-%COMP%]{padding:30px 0 0;display:flex;flex-direction:column;flex-grow:1}.students-view.hidden[_ngcontent-%COMP%]{visibility:hidden}.students-view[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%], .students-view[_ngcontent-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{background-color:transparent}.students-view[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1}.students-view[_ngcontent-%COMP%] .student-list[_ngcontent-%COMP%]{min-width:230px;max-width:230px}@media (min-width: 1140px){.students-view[_ngcontent-%COMP%] .student-list[_ngcontent-%COMP%]{min-width:270px;max-width:270px}}.students-view[_ngcontent-%COMP%] .student-solution-content[_ngcontent-%COMP%]{width:100%;overflow-y:auto;max-height:75vh}.students-view[_ngcontent-%COMP%] .student-solution-content.empty[_ngcontent-%COMP%]{overflow-y:hidden;max-height:100vh}.students-view[_ngcontent-%COMP%] .student-solution-content[_ngcontent-%COMP%] wizer-assess-tutorial[_ngcontent-%COMP%]{justify-content:center;padding:40px 40px 40px 80px;min-height:40vw}"],changeDetection:0}),t}();function wn(t,e){1&t&&I._UZ(0,"wizer-empty-view")}function _n(t,e){if(1&t&&(I.ynx(0),I._uU(1),I.ALo(2,"async"),I.BQk()),2&t){var n=I.oxw(4);I.xp6(1),I.hij(" ",I.lcZ(2,1,n.totalSubmissions$)," student submissions ")}}function Mn(t,e){1&t&&(I.TgZ(0,"span",16),I._uU(1," \ud83d\udd04 "),I.qZA())}function On(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"span",14),I.NdJ("click",function(){return I.CHM(n),I.oxw(4).goToStudentList()}),I.ALo(2,"async"),I._uU(3),I.ALo(4,"async"),I.YNc(5,Mn,2,0,"span",15),I.ALo(6,"async"),I.qZA(),I.BQk()}if(2&t){var i,o=I.oxw(4);I.xp6(1),I.ekj("poiner",null==(i=I.lcZ(2,4,o.selectedSubmissions$))?null:i.length),I.xp6(2),I.hij(" ",I.lcZ(4,6,o.selectedSubmissions$)," student submissions "),I.xp6(2),I.Q6J("ngIf",I.lcZ(6,8,o.assessmentStoreSrv.isPolling$)&&o.isPremium)}}function bn(t,e){if(1&t&&(I.ynx(0),I.TgZ(1,"p",13),I.YNc(2,_n,3,3,"ng-container",2),I.YNc(3,On,7,10,"ng-container",2),I.qZA(),I.TgZ(4,"p",13),I._uU(5),I.qZA(),I.BQk()),2&t){var n=I.oxw().ngIf;I.xp6(2),I.Q6J("ngIf",!(null!=n&&n.length)),I.xp6(1),I.Q6J("ngIf",null==n?null:n.length),I.xp6(2),I.hij(" have been ",null!=n&&n.length?"submitted":"received",". ")}}function kn(t,e){if(1&t&&(I.ynx(0),I.YNc(1,bn,6,3,"ng-container",2),I.BQk()),2&t){var n=e.ngIf;I.xp6(1),I.Q6J("ngIf",null==n?null:n.length)}}function Pn(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"section",4),I.TgZ(1,"div",5),I.TgZ(2,"div",6),I.TgZ(3,"p",7),I._uU(4,"Class/Assignment"),I.qZA(),I.TgZ(5,"div",8),I.TgZ(6,"p"),I._uU(7,"Select a class / assignment to start grading"),I.qZA(),I.TgZ(8,"wizer-chip-autocomplete",9),I.NdJ("click",function(){return I.CHM(n),I.oxw().chipOpened()})("selectionChanged",function(t){return I.CHM(n),I.oxw().publicationsChanged(t)}),I.ALo(9,"async"),I.ALo(10,"async"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(11,"div",6),I.TgZ(12,"div",10),I.YNc(13,kn,2,1,"ng-container",2),I.ALo(14,"async"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(15,"div",11),I._UZ(16,"wizer-solution-view",12),I.qZA(),I.qZA()}if(2&t){var i,o=I.oxw();I.xp6(8),I.ekj("pulse",o.pulse),I.Q6J("checkPremium",!0)("isPremium",o.isPremium)("sortField","updatedAt")("labelMapper","name")("label2Mapper",o.typeMapper)("valMapper","token")("selected",o.preSelectedPublications)("items",I.lcZ(9,13,o.publications$))("selectFirst",1===(null==(i=I.lcZ(10,15,o.publications$))?null:i.length)),I.xp6(5),I.Q6J("ngIf",I.lcZ(14,17,o.selectedPublications$)),I.xp6(3),I.Q6J("preSelectedSolutionToken",o.preSelectedSolution)}}var yn=function(){var t=function(){function t(e,n,i,o,s,a,c,l,u,g){r(this,t),this.assessmentStoreSrv=e,this.chgDet=n,this.dialog=i,this.googleAnalyticsSrv=o,this.route=s,this.router=a,this.scroller=c,this.storage=l,this.userSrv=u,this.document=g,this.empty$=this.assessmentStoreSrv.empty$,this.publications$=this.assessmentStoreSrv.publications$,this.selectedPublications$=this.assessmentStoreSrv.selectedPublications$,this.selectedSubmissions$=this.assessmentStoreSrv.selectedSubmissions$,this.totalSubmissions$=this.assessmentStoreSrv.totalSubmissions$,this.worksheet$=this.assessmentStoreSrv.worksheet$,this.pulse=!1,this.preSelectedPublications=[],this.typeMapper=function(t){switch(t.type){case Me.l.wizerClass:return"class";case Me.l.link:return"Asgmt.";case Me.l.public:return"Public"}return"-"},this.checkIfVisited(),this.googleAnalyticsSrv.event("start-assess",we.ZP.GoogleAnalyticsCategories.Assess,"Open Assessment")}return l(t,[{key:"isPremium",get:function(){return this.userSrv.
1isPremium}},{key:"ngOnInit",value:function(){this.handleData(),this.preSelectPublications(),this.startPollingIfPremium()}},{key:"chipOpened",value:function(){this.pulse&&(this.pulse=!1,this.storage.setOnIndexDb(_e.d.WsAssess,{visited:!0}),this.chgDet.markForCheck())}},{key:"goToStudentList",value:function(){var t=this.document.getElementById("solution-student-list");!t||t.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}},{key:"publicationsChanged",value:function(t){this.assessmentStoreSrv.updateSelectedPublications(t)}},{key:"handleData",value:function(){var t,e=this.route.snapshot.paramMap.get("token"),i=n(null===(t=this.route.snapshot.data)||void 0===t?void 0:t.assessmentData,5),o=i[0],s=i[1],a=i[2],r=i[3],c=i[4];this.preSelectedPublications=[r],this.preSelectedSolution=c,this.assessmentStoreSrv.initStore({publications:s,publicationSolutions:a,worksheet:o,worksheetToken:e})}},{key:"checkIfVisited",value:function(){var t=this;this.storage.getFromIndexDb(_e.d.WsAssess).pipe((0,ct.b)(function(e){(null==e?void 0:e.visited)||(t.pulse=!0,t.chgDet.markForCheck())})).subscribe()}},{key:"preSelectPublications",value:function(){var t=this,e=sessionStorage.getItem("selectedPublicationIds");if(e){var n=JSON.parse(e);this.publications$.subscribe(function(e){var i=e.filter(function(t){return n.includes(t.id)});t.preSelectedPublications=i.map(function(t){return t.token}),t.assessmentStoreSrv.updateSelectedPublications(i)})}}},{key:"startPollingIfPremium",value:function(){var t=this;this.isPremium&&setTimeout(function(){t.assessmentStoreSrv.startPolling()},2e3)}},{key:"ngOnDestroy",value:function(){this.assessmentStoreSrv.stopPolling()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(me.G_),I.Y36(I.sBO),I.Y36(T.Vc),I.Y36(Vt.$r),I.Y36(Dt.gz),I.Y36(Dt.F0),I.Y36(m.EM),I.Y36(_e.n),I.Y36(Oe.K),I.Y36(m.K0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-page-assess"]],features:[I._Bn([me.G_])],decls:8,vars:13,consts:[[3,"gradesActive","worksheet"],[3,"worksheetTitle"],[4,"ngIf"],["class","assessment-content",4,"ngIf"],[1,"assessment-content"],[1,"page-select-container"],[1,"section-col"],[1,"top-page-label"],[1,"select-field"],["withSearch","true","placeholder","Select Class/Assignment","searchPlaceholder","Search publications",3,"checkPremium","isPremium","sortField","labelMapper","label2Mapper","valMapper","selected","items","selectFirst","click","selectionChanged"],[1,"submissions-field"],[1,"solution-content"],[3,"preSelectedSolutionToken"],[1,"subtitle2"],[3,"click"],["class","polling-indicator","title","Live updates enabled",4,"ngIf"],["title","Live updates enabled",1,"polling-indicator"]],template:function(t,e){var n;(1&t&&(I._UZ(0,"wizer-app-bar",0),I.ALo(1,"async"),I._UZ(2,"wizer-worksheet-summary",1),I.ALo(3,"async"),I.YNc(4,wn,1,0,"wizer-empty-view",2),I.ALo(5,"async"),I.YNc(6,Pn,17,19,"section",3),I.ALo(7,"async")),2&t)&&(I.Q6J("gradesActive",!0)("worksheet",I.lcZ(1,5,e.worksheet$)),I.xp6(2),I.Q6J("worksheetTitle",null==(n=I.lcZ(3,7,e.worksheet$))?null:n.name),I.xp6(2),I.Q6J("ngIf",I.lcZ(5,9,e.empty$)),I.xp6(2),I.Q6J("ngIf",!1===I.lcZ(7,11,e.empty$)))},directives:[be.b,xe,m.O5,Kt,X,xn],pipes:[m.Ov],styles:["@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.top-page-label[_ngcontent-%COMP%]{text-align:center;color:#adadad;margin-bottom:16px;font-size:12px;font-weight:400;line-height:18px}@media (min-width: 1140px){.top-page-label[_ngcontent-%COMP%]{text-align:left}}.page-select-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:0 -20px;padding:16px 20px;border-bottom:1px solid #d6d6d6}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%]{flex-direction:row;border-bottom:none;padding:16px 20px 32px}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]{width:100%}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]{width:50%}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type{padding-bottom:24px}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type{justify-content:flex-start;padding-bottom:0}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type .top-page-label[_ngcontent-%COMP%]{text-align:center;
1color:#adadad;margin-bottom:16px;font-size:12px;font-weight:400;line-height:18px}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type .top-page-label[_ngcontent-%COMP%]{text-align:left}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{padding-left:20px;display:flex;justify-content:center}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{height:100%;padding:38px 0 0}}.page-select-container[_ngcontent-%COMP%] .select-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:22px;color:#1f2121;margin-bottom:8px;text-align:center}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .select-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}}[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100%;padding-top:50px}wizer-app-bar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:2}.page-select-container[_ngcontent-%COMP%]{align-items:flex-start}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{padding:58px 40px 0;justify-content:flex-start}}.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%]{display:flex;min-width:350px;align-items:center;flex-direction:row}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%]{flex-direction:column}}.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#894e71;text-decoration:underline;cursor:pointer}.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%] .polling-indicator[_ngcontent-%COMP%]{margin-left:8px;font-size:14px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;display:inline-block}.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:400;margin-left:2px}.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-of-type{font-weight:700}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .submissions-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-of-type{margin-left:0}}.assessment-content[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column;position:relative;background-color:#f7f5f2;padding:0 20px}.solution-content[_ngcontent-%COMP%]{position:relative}@media (min-width: 1140px){.main-header[_ngcontent-%COMP%]{padding:46px 40px}.main-header[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%]{width:100%;min-width:0;max-width:calc(50% - 20px);padding-left:20px}.main-header[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%]:first-of-type{padding-right:20px}.assessment-content[_ngcontent-%COMP%]{padding:0 40px}}@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0}),t}(),Zn=s(55658),Sn=[{label:"Correct answer",cls:"correct",status:Zn.X.Success},{label:"Wrong answer",cls:"wrong",status:Zn.X.Failed},{label:"Waiting to submit",cls:"waiting",status:Zn.X.Working},{label:"Didn't get the question",cls:"no-answer",status:Zn.X.NotShown},{label:"Content widget",cls:"content-widget",status:Zn.X.ContentWidget}];function An(t,e){1&t&&(I.TgZ(0,"h4"),I._uU(1,"Send feedback"),I.qZA())}function Tn(t,e){1&t&&I._UZ(0,"wizer-loader",10)}var qn=function(){return{"=1":"message",other:"messages"}},Dn=function(){return{"=1":"has",other:"have"}};function In(t,e){if(1&t&&(I.TgZ(0,"div",11),I.TgZ(1,"mat-icon"),I._uU(2,"done"),I.qZA(),I.TgZ(3,"h5"),I._uU(4),I.ALo(5,"i18nPlural"),I.qZA(),I.TgZ(6,"h5"),I._uU(7),I.ALo(8,"i18nPlural"),I.qZA(),I.qZA()),2&t){var n=I.oxw();I.xp6(4),I.AsE(" ",n.resultsCount," ",I.xi3(5,3,n.resultsCount,I.DdM(9,qn))," "),I.xp6(3),I.hij(" ",I.xi3(8,6,n.resultsCount,I.DdM(10,Dn))," been successfully sent ")}}function zn(t,e){if(1&t&&(I.TgZ(0,"span",16),I._uU(1),I.qZA()),2&t){var n=I.oxw(2);I.Q6J("matTooltip",n.moreText),I.xp6(1),I.hij("",n.moreStudentsCount," more")}}function Jn(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"div",12),I.TgZ(2,"div"),I._uU(3,"To:"),I.qZA(),I.TgZ(4,"wizer-wrapped-list",13),I.NdJ("removeItem",function(t){return I.CHM(n),I.oxw().removeStudent(t)}),I.qZA(),I.YNc(5,zn,2,2,"span",14),I.qZA(),I.TgZ(6,"div",15),I.NdJ("froalaModelChange",function(t){return I.CHM(n),I.oxw().message=t}),I.qZA(),I.BQk()}if(2&t){var i=I.oxw();I.xp6(4),I.Q6J("items",i.visibleStudents),I.xp6(1),I.Q6J("ngIf",i.moreStudentsCount>0),I.xp6(1),I.Q6J("froalaEditor",i.messageOptions)("froalaModel",i.message)}}function Un(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(n),I.oxw().sendFeedback()}),I._uU(1," Send "),I.qZA()}if(2&t){var i=I.oxw();I.Q6J("disabled",!i.message||!i.visibleStudents.length)}}var Fn=function(){var t=function(t){u(n,t);var e=d(n);function n(t,i,o,s,a,c){var l;return r(this,n),(l=e.call(this)).dialogRef=t,l.froalaConfig=i,l.studentNamePipe=o,l.insightsSrv=s,l.chgDet=a,l.data=c,l.StudentListSortTypes=We.W,l.messageOptions=Object.assign({},l.froalaConfig.getConfig(an.y.noToolbar)),l.loading=!1,l.moreText="",l.setupData(),l}return l(n,[{key:"hasResults",get:function(){return!!this.results}},{key:"moreStudentsCount",get:function(){var t,e;return(null===(t=this.students)||void 0===t?void 0:t.length)-(null===(e=this.visibleStudents)||void 0===e?void 0:e.length)}},{key:"resultsCount",get:function(){var t;return(null===(t=Object.values(this.results).filter(function(t){return!!t}))||void 0===t?void 0:t.length)||0}},{key:"removeStudent",value:function(t){if(t){var e=this.students.findIndex(function(e){return e.solutionId===+t.id});e<0||(this.students.splice(e,1),this.parseStudentsDisplayData(),this.chgDet.markForCheck())}}},{key:"closeDialog",value:function(){this.dialogRef.close(this.results)}},{key:"sendFeedback",value:function(){var t=this;this.loading=!0,this.chgDet.markForCheck();var e=i(this.students).map(function(e){return e.assessment&&(e.assessment.feedback=t.message),e.asse
1ssment});this.insightsSrv.feedbackToMany(e).pipe((0,rt.K)(function(t){return(0,T.Cv)("Send feedback",t),(0,te.of)({})}),(0,ct.b)(function(e){t.results=e,t.loading=!1,t.chgDet.markForCheck()})).subscribe()}},{key:"setupData",value:function(){var t;this.students=(null===(t=this.data)||void 0===t?void 0:t.studentsData)||[],this.parseStudentsDisplayData(),this.chgDet.markForCheck()}},{key:"parseStudentsDisplayData",value:function(){var t,e;this.visibleStudents=null===(e=null===(t=this.data)||void 0===t?void 0:t.studentsData)||void 0===e?void 0:e.map(function(t){return{id:t.solutionId.toString(),label:T.Lz.getStudentDisplayName(t.user)}})}}]),n}(T.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(w.so),I.Y36(pt.BW),I.Y36(fe.Cp),I.Y36(ne.d),I.Y36(I.sBO),I.Y36(w.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-send-feedback-dialog"]],features:[I.qOj],decls:14,vars:9,consts:[[3,"useCustomHeader"],["wDlgHeader","",1,"insights-dialog-header"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close",""],[1,"insights-dialog-content"],["spinnerCls","tiel",4,"ngIf"],["class","insights-results-message",4,"ngIf"],["wDlgActions",""],["mat-raised-button","",1,"legacy","uppercase",3,"click"],["mat-raised-button","","class","legacy uppercase tiel",3,"disabled","click",4,"ngIf"],["spinnerCls","tiel"],[1,"insights-results-message"],[1,"students-list"],[3,"items","removeItem"],["class","more-count",3,"matTooltip",4,"ngIf"],[1,"insights-message-field",3,"froalaEditor","froalaModel","froalaModelChange"],[1,"more-count",3,"matTooltip"],["mat-raised-button","",1,"legacy","uppercase","tiel",3,"disabled","click"]],template:function(t,e){1&t&&(I.TgZ(0,"wizer-dialog",0),I.TgZ(1,"div",1),I.YNc(2,An,2,0,"h4",2),I.TgZ(3,"button",3),I.TgZ(4,"mat-icon"),I._uU(5,"clear"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"div",4),I.YNc(7,Tn,1,0,"wizer-loader",5),I.YNc(8,In,9,11,"div",6),I.YNc(9,Jn,7,4,"ng-container",2),I.qZA(),I.TgZ(10,"div",7),I.TgZ(11,"button",8),I.NdJ("click",function(){return e.closeDialog()}),I._uU(12),I.qZA(),I.YNc(13,Un,2,1,"button",9),I.qZA(),I.qZA()),2&t&&(I.Q6J("useCustomHeader",!0),I.xp6(2),I.Q6J("ngIf",!e.hasResults),I.xp6(4),I.ekj("short",e.hasResults),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",e.hasResults),I.xp6(1),I.Q6J("ngIf",!e.hasResults),I.xp6(3),I.hij(" ",e.hasResults?"Close":"Cancel"," "),I.xp6(1),I.Q6J("ngIf",!e.hasResults))},directives:[ht.n,m.O5,C.lW,w.ZT,M.Hw,ie.L,vt,qt.Vg,A.gM],pipes:[m.Gx],styles:["@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}wizer-dialog[_ngcontent-%COMP%]{min-width:592px}[wDlgActions][_ngcontent-%COMP%]{display:inline-flex;width:100%;justify-content:flex-end;padding:32px 0 0}[wDlgActions][_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]{margin-left:16px}[wDlgActions][_ngcontent-%COMP%] .mat-raised-button.tiel[_ngcontent-%COMP%]{background-color:#36cdc7;color:#fff}.insights-dialog-header[_ngcontent-%COMP%]{position:relative;display:inline-flex;justify-content:center;width:100%;padding:32px 24px 14px}.insights-dialog-header[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px}.insights-dialog-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{letter-spacing:.18px}.insights-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;padding:0 20px;position:relative}.insights-dialog-content.short[_ngcontent-%COMP%]{min-height:0}wizer-loader[_ngcontent-%COMP%]{background-color:#fff}.insights-results-message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.insights-results-message[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#36cdc7;margin-bottom:34px;width:36px;height:36px;line-height:36px;font-size:36px}.insights-results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#1f2121;font-weight:400;text-transform:lowercase}.insights-results-message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-of-type{font-weight:700}.insights-dialog-content[_ngcontent-%COMP%] .students-list[_ngcontent-%COMP%]{display:inline-flex;align-items:flex-start;min-height:28px;max-width:552px}.insights-dialog-content[_ngcontent-%COMP%] .students-list[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:#7
177;margin-right:8px;margin-top:2px;font-size:16px;font-weight:400;line-height:21px}.insights-dialog-content[_ngcontent-%COMP%] .insights-message-field[_ngcontent-%COMP%]{margin-top:24px;min-height:148px;border-radius:4px;color:#777;border:1px solid #777777;padding:16px 12px;max-width:600px;max-height:50vh;overflow:auto}"],changeDetection:0}),t}(),Qn=s(13367);function Nn(t,e){1&t&&(I.ynx(0),I._uU(1,"%"),I.BQk())}function Yn(t,e){1&t&&(I.TgZ(0,"div",8),I.TgZ(1,"p"),I._uU(2,"min"),I.qZA(),I.TgZ(3,"p"),I._uU(4,"sec"),I.qZA(),I.qZA())}function Ln(t,e){if(1&t&&(I.TgZ(0,"div",2),I.TgZ(1,"p",3),I._uU(2),I.qZA(),I.TgZ(3,"div",4),I.TgZ(4,"p",5),I._uU(5),I.YNc(6,Nn,2,0,"ng-container",6),I.qZA(),I.YNc(7,Yn,5,0,"div",7),I.qZA(),I.qZA()),2&t){var n=e.$implicit;I.xp6(2),I.Oqu(n.label),I.xp6(3),I.hij(" ",n.value," "),I.xp6(1),I.Q6J("ngIf",n.isPrc),I.xp6(1),I.Q6J("ngIf",n.isTime)}}var jn=function(){var t=function(t){u(n,t);var e=d(n);function n(t,i){var o;return r(this,n),(o=e.call(this)).insightsStore=t,o.msToDuration=i,o.connectToStore(),o}return l(n,[{key:"connectToStore",value:function(){var t=this;this.data$=this.insightsStore.averageData$.pipe((0,Pe.U)(function(e){var n,i,o=t.msToDuration.transform(null==e?void 0:e.avgTime,fe.kf.Minutes),s=t.msToDuration.transform(null==e?void 0:e.avgTime,fe.kf.Seconds);return[{label:"Accuracy",value:(null===(n=null==e?void 0:e.accuracy)||void 0===n?void 0:n.toString())||"0"},{label:"Submitted",value:(null===(i=null==e?void 0:e.submittedPublication)||void 0===i?void 0:i.toString())||"0",isPrc:!0},{label:"Avg. time to complete",isTime:!0,value:"".concat(o,":").concat(s)}]}))}}]),n}(Qn.H6);return t.\u0275fac=function(e){return new(e||t)(I.Y36(me.GO),I.Y36(fe.D5))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-solutions-stats"]],features:[I.qOj],decls:3,vars:3,consts:[[1,"wizer-solutions-stats"],["class","solutions-stat",4,"ngFor","ngForOf"],[1,"solutions-stat"],[1,"stat-label"],[1,"stat-container"],[1,"stat-value"],[4,"ngIf"],["class","time-label",4,"ngIf"],[1,"time-label"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.YNc(1,Ln,8,4,"div",1),I.ALo(2,"async"),I.qZA()),2&t&&(I.xp6(1),I.Q6J("ngForOf",I.lcZ(2,1,e.data$)))},directives:[m.sg,m.O5],pipes:[m.Ov],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.wizer-solutions-stats[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.wizer-solutions-stats[_ngcontent-%COMP%] .solutions-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-right:30px}.wizer-solutions-stats[_ngcontent-%COMP%] .solutions-stat[_ngcontent-%COMP%]:last-of-type{margin-right:0}.wizer-solutions-stats[_ngcontent-%COMP%] .solutions-stat[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:18px;color:#1f2121;max-width:70px}.wizer-solutions-stats[_ngcontent-%COMP%] .solutions-stat[_ngcontent-%COMP%] p.stat-value[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:18px;font-weight:700;line-height:28px}.wizer-solutions-stats[_ngcontent-%COMP%] .stat-container[_ngcontent-%COMP%]{min-width:72px;width:72px;max-width:72px;min-height:72px;height:72px;max-height:72px;border-radius:50%;border:2px solid #e5c3c6;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-left:8px}.wizer-solutions-stats[_ngcontent-%COMP%] .time-label[_ngcontent-%COMP%]{display:flex;width:100%;padding:0 10px;margin-top:-8px;justify-content:space-between}"],changeDetection:0}),t}(),$n=s(17238),Rn=s(92340),En=s(32252),Hn=s(86419);function Wn(t,e){1&t&&(I.TgZ(0,"mat-icon"),I._uU(1,"thumb_up"),I.qZA())}function Bn(t,e){1&t&&(I.TgZ(0,"mat-icon"),I._uU(1,"thumb_down"),I.qZA())}function Vn(t,e){1&t&&(I.TgZ(0,"mat-icon"),I._uU(1,"timer"),I.qZA())}function Xn(t,e){1&t&&(I.TgZ(0,"mat-icon"),I._uU(1,"perm_media"),I.qZA())}var Gn=function(){var t=function(){function t(e){var n=this;r(this,t),this.chgDet=e,this.legendMap={},this.tooltip="",this.loading=!1,this.legendMap={},Sn.forEach(function(t){return n.legendMap[t.status]=null==t?void 0:t.label})}return l(t,[{key:"questionData",get:function(){return this._questionData},set:function(t){var e,n,i;if(this._questionData=t,null===(e=this._questionData)||void 0===e?void 0:e.status){var o=(null===(n=this._questionData)||void 0===n?void 0:n.score)?" - ".concat(null===(i=this._questionData)||void 0===i?void 0:i.score," points"):"";this.tooltip="".concat(this.legendMap[this._questionData.status]).concat(o)||""}this.chgDet.markForCheck()}},{key:"isCorrect",get:function(){var t;return!this.loading&&(null===(t=this.questionData)||void 0===t?void 0:t.status)===Zn.X.Success}},{key:"isContentWidget",get:function(){var t;return!this.loading&&(null===(t=this.questionData)||void 0===t?void 0:t.status)===Zn.X.ContentWidget}},{key:"isWrong",get:function(){var t;return!this.loading&&(null===(t=this.questionData)||void 0===t?void 0:t.status)===Zn.X.Failed}},{key:"isWorking",get:function(){var t;return!this.loading&&(null===(t=this.questionData)||void 0===t?void 0:t.status)===Zn.X.Working}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(I.sBO))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-student-result-cell"]],inputs:{loading:"loading",questionData:"questionData"},decls:5,vars:16,consts:[[1,"insight-result-cell",3,"wizerSkeletonLoading","matTooltip","matTooltipDisabled","matTooltipPosition"],[4,"ngIf"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I.YNc(1,Wn,2,0,"mat-icon",1),I.YNc(2,Bn,2,0,"mat-icon",1),I.YNc(3,Vn,2,0,"mat-icon",1),I.YNc(4,Xn,2,0,"mat-icon",1),I.qZA()),2&t&&(I.ekj("correct",e.isCorrect)("wrong",e.isWrong)("content-widget",e.isContentWidget)("working",e.isWorking),I.Q6J("wizerSkeletonLoading",e.loading)("matTooltip",e.tooltip)("matTooltipDisabled",e.loading)("matTooltipPosition","above"),I.xp6(1),I.Q6J("ngIf",e.isCorrect),I.xp6(1),I.Q6J("ngIf",e.isWrong),I.xp6(1),I.Q6J("ngIf",e.isWorking),I.xp6(1),I.Q6J("ngIf",e.isContentWidget))},directives:[Hn.d,A.gM,m.O5,M.Hw],styles:[".sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.insight-result-cell[_ngcontent-%COMP%]{max-width:calc(100% - 2px);min-width:calc(100% - 2px);width:calc(100% - 2px);height:42px;
1background-color:#adadad80;border-radius:2px;display:flex;justify-content:center;align-items:center}.insight-result-cell[_ngcontent-%COMP%]:hover{background-color:#adadad}.insight-result-cell.content-widget[_ngcontent-%COMP%]{background-color:#778af080}.insight-result-cell.content-widget[_ngcontent-%COMP%]:hover{background-color:#778af0}.insight-result-cell.correct[_ngcontent-%COMP%]{background-color:#87bc5480}.insight-result-cell.correct[_ngcontent-%COMP%]:hover{background-color:#87bc54}.insight-result-cell.wrong[_ngcontent-%COMP%]{background-color:#e4453f80}.insight-result-cell.wrong[_ngcontent-%COMP%]:hover{background-color:#e4453f}.insight-result-cell.working[_ngcontent-%COMP%]{background-color:#fdad0380}.insight-result-cell.working[_ngcontent-%COMP%]:hover{background-color:#fdad03}.insight-result-cell[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:14px;height:14px;line-height:14px;font-size:16px}"],changeDetection:0}),t}(),Kn=s(29690),ti=s(61498);function ei(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"div",20),I._UZ(1,"img",21),I.TgZ(2,"h3"),I._uU(3,"Upgrade to premium to see more data."),I.qZA(),I.TgZ(4,"button",22),I.NdJ("click",function(){return I.CHM(n),I.oxw().navigateUpgrade()}),I.TgZ(5,"h5"),I._uU(6,"Start 14 day trial"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=I.oxw();I.ekj("expanded",!!i.expandElement)}}function ni(t,e){1&t&&(I.TgZ(0,"div",23),I.TgZ(1,"h5"),I._uU(2,"There's no data to display."),I.qZA(),I.qZA())}function ii(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"mat-checkbox",26),I.NdJ("ngModelChange",function(t){return I.CHM(n),I.oxw(2).selectAll(t)}),I.qZA()}if(2&t){var i=I.oxw(2);I.Q6J("ngModel",i.allSelected)}}function oi(t,e){if(1&t&&(I.TgZ(0,"th",24),I.YNc(1,ii,1,1,"mat-checkbox",25),I.qZA()),2&t){var n=I.oxw();I.xp6(1),I.Q6J("ngIf",!n.loading)}}function si(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"mat-checkbox",26),I.NdJ("ngModelChange",function(){I.CHM(n);var t=I.oxw().$implicit;return I.oxw().selectionChanged(t)}),I.qZA()}if(2&t){var i=I.oxw().$implicit,o=I.oxw();I.Q6J("ngModel",o.selectionMap[null==i?null:i.solutionId])}}function ai(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"button",29),I.NdJ("click",function(){I.CHM(n);var t=I.oxw().$implicit,e=I.oxw();return e.expandElement=e.expandElement===t?null:t}),I.TgZ(1,"mat-icon"),I._uU(2,"expand_more "),I.qZA(),I.qZA()}if(2&t){var i=I.oxw().$implicit,o=I.oxw();I.xp6(1),I.ekj("expanded",o.expandElement===i)}}function ri(t,e){if(1&t&&(I.TgZ(0,"td",27),I.YNc(1,si,1,1,"mat-checkbox",25),I.YNc(2,ai,3,2,"button",28),I.qZA()),2&t){var n=I.oxw();I.xp6(1),I.Q6J("ngIf",!n.loading),I.xp6(1),I.Q6J("ngIf",!n.loading)}}function ci(t,e){1&t&&(I.TgZ(0,"th",30),I._uU(1," First name "),I.qZA())}function li(t,e){if(1&t&&(I.TgZ(0,"td",31),I.TgZ(1,"div",32),I._uU(2),I.qZA(),I.qZA()),2&t){var n=e.$implicit,i=I.oxw();I.xp6(1),I.Q6J("wizerSkeletonLoading",i.loading),I.xp6(1),I.hij(" ",(null==n||null==n.user?null:n.user.firstname)||"-"," ")}}function ui(t,e){1&t&&(I.TgZ(0,"th",30),I._uU(1," Last name "),I.qZA())}function gi(t,e){if(1&t&&(I.TgZ(0,"td",31),I.TgZ(1,"div",32),I._uU(2),I.qZA(),I.qZA()),2&t){var n=e.$implicit,i=I.oxw();I.xp6(1),I.Q6J("wizerSkeletonLoading",i.loading),I.xp6(1),I.hij(" ",(null==n||null==n.user?null:n.user.lastname)||"-"," ")}}function di(t,e){1&t&&(I.TgZ(0,"th",30),I._uU(1," User name "),I.qZA())}function pi(t,e){if(1&t&&(I.TgZ(0,"td",31),I.TgZ(1,"div",32),I._uU(2),I.qZA(),I.qZA()),2&t){var n=e.$implicit,i=I.oxw();I.xp6(1),I.Q6J("wizerSkeletonLoading",i.loading),I.xp6(1),I.hij(" ",(null==n||null==n.user?null:n.user.username)||"-"," ")}}function hi(t,e){1&t&&(I.TgZ(0,"th",30),I._uU(1," Score "),I.qZA())}function fi(t,e){if(1&t&&(I.TgZ(0,"td",31),I.TgZ(1,"div",32),I._uU(2),I.ALo(3,"evaluated"),I.qZA(),I.qZA()),2&t){var n=e.$implicit,i=I.oxw();I.xp6(1),I.Q6J("wizerSkeletonLoading",i.loading),I.xp6(1),I.hij(" ",I.lcZ(3,2,n)?n.score:"-"," ")}}function mi(t,e){if(1&t&&(I.TgZ(0,"div"),I._uU(1),I.qZA()),2&t){var n=I.oxw(2).$implicit;I.xp6(1),I.hij(" / ",n.childIndex," ")}}function vi(t,e){if(1&t&&(I.TgZ(0,"th",36),I.TgZ(1,"div",37),I._uU(2),I.YNc(3,mi,2,1,"div",38),I.qZA(),I.qZA()),2&t){var n=I.oxw().$implicit;I.Q6J("matTooltip",null==n?null:n.name),I.xp6(2),I.hij(" ",null==n?null:n.questionLabel," "),I.xp6(1),I.Q6J("ngIf",(null==n?null:n.parentSeqId)&&(null==n?null:n.childIndex))}}function Ci(t,e){if(1&t&&(I.TgZ(0,"td",39),I._UZ(1,"wizer-student-result-cell",40),I.qZA()),2&t){var n=e.$implicit,i=I.oxw().$implicit,o=I.oxw();I.xp6(1),I.Q6J("loading",o.loading)("questionData",null==n?null:n.questions[i.seqId])}}function xi(t,e){if(1&t&&(I.ynx(0,33),I.YNc(1,vi,4,3,"th",34),I.YNc(2,Ci,2,2,"td",35),I.BQk()),2&t){var n=e.index,i=I.oxw();I.Q6J("matColumnDef",i.questionColumnsNames[n])}}function wi(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"th",41),I.TgZ(1,"div",42),I.TgZ(2,"div",43),I.TgZ(3,"div",44),I.TgZ(4,"button",45),I.NdJ("click",function(){var t=I.CHM(n).$implicit;return I.oxw().goToWorksheet(t)}),I.TgZ(5,"span"),I._uU(6,"Check Answers"),I.qZA(),I.qZA(),I.TgZ(7,"a",46),I.TgZ(8,"button",47),I.TgZ(9,"span"),I._uU(10,"Learner profile"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(11,"div",48),I.TgZ(12,"div",49),I.TgZ(13,"p"),I._uU(14,"Status"),I.qZA(),I.TgZ(15,"p",50),I._uU(16),I.ALo(17,"solutionStatus"),I.qZA(),I.qZA(),I.TgZ(18,"div",49),I.TgZ(19,"p"),I._uU(20,"Submit time"),I.qZA(),I.TgZ(21,"p"),I._uU(22),I.ALo(23,"formatDate"),I.qZA(),I.qZA(),I.TgZ(24,"div",49),I.TgZ(25,"p"),I._uU(26,"Date created"),I.qZA(),I.TgZ(27,"p"),I._uU(28),I.ALo(29,"formatDate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var i=e.$implicit,o=I.oxw();I.xp6(1),I.Q6J("@detailExpand",i==o.expandElement?o.ExpandState.expanded:o.ExpandState.collapsed),I.xp6(6),I.Q6J("href",o.Routes.learnerProfile+"/"+(null==i||null==i.user?null:i.user.token)+"?worksheetToken="+o.worksheetToken,I.LSH),I.xp6(9),I.hij(" ",I.xi3(17,5,null==i?null:i.assessment,null==i?null:i.solution)," "),I.xp6(6),I.hij(" ",I.xi3(23,8,null==i?null:i.submittedAt,"HH:mm YYYY-MM-DD")||"-"," "),I.xp6(6),I.hij(" ",I.xi3(29,11,null==i?null:i.createdAt,"YYYY-MM-DD")||"-"," ")}}function _i(t,e){1&t&&I._UZ(0,"tr",51)}function Mi(t,e){1&t&&I._UZ(0,"tr",52)}function Oi(t,e){1&t&&I._UZ(0,"tr",53)}var bi=function(){return["expandedDetail"]},ki=function(){return(t=ki||(ki={})).expanded="expanded",t.collapsed="collapsed",ki;var t}(),Pi=function(){var t=function(){function t(e,n,i,o){r(this,t),this.route=e,this.chgDet=n,this.userSrv=i,this.dialog=o,this.ExpandState=ki,this.Routes=It.UY,this.buyPage=Rn.N.buyPage,this.freeLimit=2,this.columns=["select","firstName","lastName","username","score"],this.selectionMap={},this._overviewData=[],this.overviewDataMap={},this._loading=!0,this.isPremium=!1,this.widgetQuestionsDef={},this.selectedChange=new I.vpe,this.checkAnswers=new I.vpe}return l(t,[{key:"loading",get:function(){return this._loading},set:function(t){t!==this._loading&&(this._loading=t,this.parseInitData(),this.chgDet.markForCheck())}},{key:"overviewData",get:function(){var t;return(this.isPremium?this._overviewData:null===(t=this._overviewData)||void 0===t?void 0:t.slice(0,this.freeLimit))||[]},set:function(t){this._overviewData=t,this.tableData&&(this.parseInitData(),this.matSort.sort({id:null,
1start:"asc",disableClear:!1}))}},{key:"allSelected",get:function(){var t,e;return(null===(t=this.overviewData)||void 0===t?void 0:t.length)&&(null===(e=this.overviewData)||void 0===e?void 0:e.length)===Object.values(this.selectionMap).filter(function(t){return!!t}).length}},{key:"empty",get:function(){var t;return(null===(t=this._overviewData||[])||void 0===t?void 0:t.length)<1}},{key:"ngOnInit",value:function(){this.worksheetToken=this.route.snapshot.paramMap.get("token"),console.log("Worksheet Token:",this.worksheetToken),this.prepareColumns(),this.parseInitData(),this.chgDet.markForCheck()}},{key:"goToWorksheet",value:function(t){this.checkAnswers.emit(t)}},{key:"selectAll",value:function(t){var e=this;this.overviewData.forEach(function(n){e.selectionMap[n.solutionId]=t}),this.chgDet.markForCheck(),this.selectedChange.emit(t?this.overviewDataMap:{})}},{key:"selectionChanged",value:function(t){var e=this;if(t&&(null==t?void 0:t.solutionId)){this.selectionMap[t.solutionId]=!this.selectionMap[t.solutionId];var i={};Object.entries(this.selectionMap).forEach(function(t){var o=n(t,2),s=o[0];o[1]&&(i[s]=e.overviewDataMap[s])}),this.selectedChange.emit(i)}}},{key:"sortData",value:function(t){var e=this;if(t&&!this.loading){var n=i(this.overviewData);if(!t.direction||!t.active)return this.tableData=n,this.prepareMockData(),void this.chgDet.markForCheck();var o=t.active.toLowerCase(),s="asc"===t.direction;n.sort(function(t,n){return(((null==t?void 0:t.user)&&"score"!==o?null==t?void 0:t.user[o]:e.parseScoreValueForSort(t[o]))<((null==n?void 0:n.user)&&"score"!==o?null==n?void 0:n.user[o]:e.parseScoreValueForSort(n[o]))?-1:1)*(s?1:-1)}),this.tableData=n,this.prepareMockData(!0),this.chgDet.detectChanges()}}},{key:"parseScoreValueForSort",value:function(t){var e=(t||"").split("/");return+(e[0]||"0")/+(e[1]||"1")}},{key:"parseInitData",value:function(){var t=this;this.selectionMap={},this.overviewDataMap={},this.overviewData.forEach(function(e){return t.overviewDataMap[e.solutionId]=e}),this.tableData=i(this.overviewData),this.prepareMockData()}},{key:"prepareColumns",value:function(){var t;(null===(t=this.questionColumns)||void 0===t?void 0:t.length)||(this.questionColumns=Object.values(this.widgetQuestionsDef).sort(function(t,e){return(null==t?void 0:t.order)-(null==e?void 0:e.order)}),this.questionColumnsNames=this.questionColumns.map(function(t){return"Q".concat(t.order).concat(t.childIndex?t.childIndex:"")}),this.columns=[].concat(i(this.columns),i(this.questionColumnsNames)))}},{key:"prepareMockData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.empty||this.loading){var e={};this.questionColumns.forEach(function(t){return e[t.seqId]={status:Zn.X.Success}});var n=function(t,n,i,o){return{user:{firstname:t,lastname:n,username:i},questions:e,score:o}};if(this.loading||!this.isPremium||t){var o=[],s=this.loading?4:3;if(!this.isPremium||this.loading){for(var a=0;a<s;a++)o.push(n("Eitan","","[email protected]","10/10")),o.push(n("Ariel","","[email protected]","10/10")),o.push(n("Nira","","[email protected]","10/10"));this.tableData=[].concat(i(this.tableData),o)}}else this.tableData=i(this.overviewData)}else this.tableData=i(this.overviewData)}},{key:"navigateUpgrade",value:function(){var t=this.userSrv.email,e=this.userSrv.firstName,n=this.userSrv.userId,i=new w.vA;i.disableClose=!0,i.data={email:t,name:e,userId:n},this.dialog.open(En.F,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(Dt.gz),I.Y36(I.sBO),I.Y36(Oe.K),I.Y36(w.uw))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-student-results-table"]],viewQuery:function(t,e){var n;(1&t&&I.Gf(y.YE,5),2&t)&&(I.iGM(n=I.CRH())&&(e.matSort=n.first))},inputs:{isPremium:"isPremium",widgetQuestionsDef:"widgetQuestionsDef",loading:"loading",overviewData:"overviewData"},outputs:{selectedChange:"selectedChange",checkAnswers:"checkAnswers"},decls:26,vars:12,consts:[["class","premium-cover",3,"expanded",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"wizer-overview-student-results"],["mat-table","","multiTemplateDataRows","","matSort","",3,"dataSource","matSortDisabled","matSortChange"],["matColumnDef","select","sticky",""],["mat-header-cell","","class","action-column",4,"matHeaderCellDef"],["mat-cell","","class","action-column",4,"matCellDef"],["matColumnDef","firstName","sticky",""],["mat-header-cell","","class","students-table-header","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","students-table-cell",4,"matCellDef"],["matColumnDef","lastName","sticky",""],["matColumnDef","username","sticky",""],["matColumnDef","score","sticky",""],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","expandedDetail"],["class","row-expand-details","colspan","4",4,"matCellDef"],["matColumnDef","premiumMsg"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","base-row",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],[1,"premium-cover"],["src","assets/images/insights/big-crown.svg","alt","big premium crown"],["mat-flat-button","",1,"legacy","size-16",3,"click"],[1,"empty-state"],["mat-header-cell","",1,"action-column"],["class","tiel",3,"ngModel","ngModelChange",4,"ngIf"],[1,"tiel",3,"ngModel","ngModelChange"],["mat-cell","",1,"action-column"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-cell","","mat-sort-header","",1,"students-table-header"],["mat-cell","",1,"students-table-cell"],[3,"wizerSkeletonLoading"],[3,"matColumnDef"],["mat-header-cell","","class","students-table-header question-header",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"students-table-header","question-header",3,"matTooltip"],[1,"header-inner"],[4,"ngIf"],["mat-cell",""],[3,"loading","questionData"],["colspan","4",1,"row-expand-details"],[1,"detail-wrapper"],[1,"detail-wrapper-inner"],[1,"buttons-container"],["mat-raised-button","",3,"click"],[3,"href"],["mat-raised-button",""],[1,"student-status-data"],[1,"stat-field"],[1,"capitalize"],["mat-header-row",""],["mat-row","",1,"base-row"],["mat-row","",1,"detail-row"]],template:function(t,e){1&t&&(I.YNc(0,ei,7,2,"div",0),I.YNc(1,ni,3,0,"div",1),I.TgZ(2,"div",2),I.TgZ(3,"table",3),I.NdJ("matSortChange",function(t){return e.sortData(t)}),I.ynx(4,4),I.YNc(5,oi,2,1,"th",5),I.YNc(6,ri,3,2,"td",6),I.BQk(),I.ynx(7,7),I.YNc(8,ci,2,0,"th",8),I.YNc(9,li,3,2,"td",9),I.BQk(),I.ynx(10,10),I.YNc(11,ui,2,0,"th",8),I.YNc(12,gi,3,2,"td",9),I.BQk(),I.ynx(13,11),I.YNc(14,di,2,0,"th",8),I.YNc(15,pi,3,2,"td",9),I.BQk(),I.ynx(16,12),I.YNc(17,hi,2,0,"th",8),I.YNc(18,fi,4,4,"td",9),I.BQk(),I.YNc(19,xi,3,1,"ng-container",13),I.ynx(20,14),I.YNc(21,wi,30,14,"th",15),I.BQk(),I.GkF(22,16),I.YNc(23,_i,1,0,"tr",17),I.YNc(24,Mi,1,0,"tr",18),I.YNc(25,Oi,1,0,"tr",19),I.qZA(),I.qZA()),2&t&&(I.Q6J("ngIf",!e.loading&&!e.isPremium&&!e.empty),I.xp6(1),I.Q6J("ngIf",e.empty&&!e.loading),I.xp6(1),I.ekj("empty",e.empty),I.xp6(1),I.Q6J("dataSource",e.tableData)("matSortDisabled",e.loading),I.xp6(16),I.Q6J("ngForOf",e.questionColumns),I.xp6(4),I.Q6J("matHeaderRowDef",e.columns)("matHeaderRowDefSticky",!0),I.xp6(1),I.Q6J("matRowDefColumns",e.columns),I.xp6(1),I.Q6J("matRowDefColumns",I.DdM(11,bi)))},directives:[m.O5,Z.BZ,y.YE,Z.w1,Z.fO,Z.Dz,m.sg,Z.as,Z.nj,C.lW,Z.ge,x.oG,v.JJ,v.On,Z.ev,M.Hw,y.nU,Hn.d,A.gM,Gn,Z.XQ,Z.Gk],pipes:[Kn.z,ti.I,Qt.ik],styles:['.sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}[_nghost-%COMP%]{position:relative;display:block}[_nghost-%COMP%] .premium-cover[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:122px;bottom:20px;right:0;left:0;z-index:2;min-height:286px;transition:top 225ms cubic-bezier(.4,0,.2,1);background:linear-gradient(to right,transparent -18%,#ffffff 10%,#ffffff 100%)}[_nghost-%COMP%] .premium-cover.expanded[_ngcontent-%COMP%]{top:212px}[_nghost-%COMP%] .premium-cover[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:156px;height:136px}[_nghost-%COMP%] .premium-cover[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:2px 0 14px}[_nghost-%COMP%] .premium-cover[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#79d423;min-height:58px;border-radius:13px!important}[_nghost-%COMP%] .premium-cover[_ngcontent-%COMP%] button[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] .empty-state[_ngcontent-%COMP%]{position:absolute;top:30px;left:0;right:0;margin-top:40px;text-align:center}[_nghost-%COMP%] .empty-state[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#adada
1d}.wizer-overview-student-results[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 auto;position:relative}.wizer-overview-student-results.empty[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%]{width:100vw;table-layout:fixed}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-of-type:not(.premium-msg-row){height:30px!important}.action-column[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;width:90px}th[_ngcontent-%COMP%]:not(.row-expand-details){height:30px!important}th[_ngcontent-%COMP%]:nth-of-type(4){width:250px}th[_ngcontent-%COMP%]:nth-of-type(5){width:80px}.students-table-header[_ngcontent-%COMP%]{width:140px;height:46px;font-family:"Source Sans Pro",sans-serif;color:#1f2121;text-transform:capitalize;padding:0 4px;font-size:14px;font-weight:700;line-height:22px;letter-spacing:.25px;position:static!important;position:initial!important}@media (min-width: 1140px){.students-table-header[_ngcontent-%COMP%]{position:-webkit-sticky!important;position:sticky!important}}.students-table-header.question-header[_ngcontent-%COMP%]{width:72px;text-align:center}.students-table-header.question-header[_ngcontent-%COMP%]:last-of-type{width:96px!important}.students-table-header.question-header[_ngcontent-%COMP%] .header-inner[_ngcontent-%COMP%]{width:100%;display:inline-flex;justify-content:center;height:100%;align-items:center;position:relative}.students-table-header.question-header[_ngcontent-%COMP%] .header-inner[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-weight:400;position:absolute;left:70%;bottom:0}.students-table-cell[_ngcontent-%COMP%]{letter-spacing:.25px;font-size:14px;font-weight:400;line-height:22px}.students-table-cell[_ngcontent-%COMP%] .skeleton-load[_ngcontent-%COMP%]{max-width:80%}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%]{left:0;text-align:left;padding:0 24px;position:static!important;position:initial!important}@media (min-width: 1140px){tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%]{position:-webkit-sticky!important;position:sticky!important}}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper[_ngcontent-%COMP%]{overflow:hidden;width:85vw}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%]{width:100%;padding:19px 74px;flex-direction:column;align-items:center}@media (min-width: 1140px){tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%]{flex-direction:row;display:inline-flex;align-items:flex-start}}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-right:14px;margin-bottom:10px;display:flex}@media (min-width: 1140px){tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%]{margin-bottom:0}}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .buttons-container[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]{margin-right:16px}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:24px;text-transform:uppercase}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .student-status-data[_ngcontent-%COMP%]{display:inline-flex;width:100%}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .student-status-data[_ngcontent-%COMP%] .stat-field[_ngcontent-%COMP%]{margin-right:66px}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .student-status-data[_ngcontent-%COMP%] .stat-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-of-type{margin-bottom:10px;font-size:12px;font-weight:700;line-height:18px}tr[_ngcontent-%COMP%] .row-expand-details[_ngcontent-%COMP%] .detail-wrapper-inner[_ngcontent-%COMP%] .student-status-data[_ngcontent-%COMP%] .stat-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{font-size:14px;font-weight:400;line-height:21px}tr.detail-row[_ngcontent-%COMP%]{height:0;border-bottom:1px solid rgba(0,0,0,.12)}tr.premium-msg-row[_ngcontent-%COMP%]{height:450px!important}tr.base-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{height:46px}tr.base-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(.action-column){position:static!important;position:initial!important}@media (min-width: 1140px){tr.base-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(.action-column){position:-webkit-sticky!important;position:sticky!important}}tr.base-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .mat-icon.exp
1anded[_ngcontent-%COMP%]{transform:rotate(180deg)}'],data:{animation:[(0,$n.X$)("detailExpand",[(0,$n.SB)(ki.collapsed,(0,$n.oB)({height:"0px",minHeight:"0"})),(0,$n.SB)(ki.expanded,(0,$n.oB)({minHeight:"88px",maxHeight:"140px"})),(0,$n.eR)("expanded <=> collapsed",(0,$n.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]},changeDetection:0}),t}();function yi(t,e){if(1&t&&(I._UZ(0,"wizer-worksheet-summary",4),I.ALo(1,"async")),2&t){var n,i=I.oxw();I.Q6J("showStats",!0)("worksheetTitle",null==(n=I.lcZ(1,2,i.worksheet$))?null:n.name)}}function Zi(t,e){1&t&&I._UZ(0,"wizer-empty-view")}var Si=function(t){return[t]};function Ai(t,e){if(1&t&&(I.TgZ(0,"div",21),I._UZ(1,"div",22),I.TgZ(2,"p"),I._uU(3),I.qZA(),I.qZA()),2&t){var n=e.$implicit;I.xp6(1),I.Q6J("ngClass",I.VKq(2,Si,n.cls)),I.xp6(2),I.Oqu(n.label)}}function Ti(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"wizer-student-results-table",23),I.NdJ("selectedChange",function(t){return I.CHM(n),I.oxw(3).studentsSelectionChanged(t)})("checkAnswers",function(t){return I.CHM(n),I.oxw(3).checkAnswer(t)}),I.ALo(2,"async"),I.ALo(3,"async"),I.ALo(4,"async"),I.qZA(),I.BQk()}if(2&t){var i=e.ngIf,o=I.oxw(3);I.xp6(1),I.Q6J("loading",I.lcZ(2,4,o.loading$))("overviewData",i)("isPremium",o.isPremium||I.lcZ(3,6,o.wasPurchased$))("widgetQuestionsDef",I.lcZ(4,8,o.widgetsQuestionDefs$))}}function qi(t,e){if(1&t){var n=I.EpF();I.ynx(0),I.TgZ(1,"div",11),I.TgZ(2,"div",12),I.TgZ(3,"div",13),I.YNc(4,Ai,4,4,"div",14),I.qZA(),I.qZA(),I.YNc(5,Ti,5,10,"ng-container",2),I.ALo(6,"async"),I.qZA(),I.TgZ(7,"div",15),I.TgZ(8,"div",16),I.TgZ(9,"mat-checkbox",17),I.NdJ("click",function(t){return t.preventDefault()}),I.qZA(),I._uU(10),I.qZA(),I.TgZ(11,"div",18),I.TgZ(12,"button",19),I.NdJ("click",function(){I.CHM(n);var t=I.oxw(2);return t.openStatusChangeDialog(t.ForceOrRetakeMode.Retake)}),I.TgZ(13,"mat-icon"),I._uU(14,"error_outline"),I.qZA(),I.TgZ(15,"span",20),I._uU(16,"Retake"),I.qZA(),I.qZA(),I.TgZ(17,"button",19),I.NdJ("click",function(){I.CHM(n);var t=I.oxw(2);return t.openStatusChangeDialog(t.ForceOrRetakeMode.Force)}),I.TgZ(18,"mat-icon"),I._uU(19,"refresh"),I.qZA(),I.TgZ(20,"span",20),I._uU(21,"Force submit"),I.qZA(),I.qZA(),I.TgZ(22,"button",19),I.NdJ("click",function(){return I.CHM(n),I.oxw(2).openSendFeedback()}),I.TgZ(23,"mat-icon"),I._uU(24,"send"),I.qZA(),I.TgZ(25,"span",20),I._uU(26,"Send feedback"),I.qZA(),I.qZA(),I.TgZ(27,"button",19),I.NdJ("click",function(){I.CHM(n);var t=I.oxw(2);return t.openSkillsDialog(t.SkillDialogType.Strengths)}),I.TgZ(28,"mat-icon"),I._uU(29,"add"),I.qZA(),I.TgZ(30,"span",20),I._uU(31,"Strengths"),I.qZA(),I.qZA(),I.TgZ(32,"button",19),I.NdJ("click",function(){I.CHM(n);var t=I.oxw(2);return t.openSkillsDialog(t.SkillDialogType.Challenges)}),I.TgZ(33,"mat-icon"),I._uU(34,"add"),I.qZA(),I.TgZ(35,"span",20),I._uU(36,"Challenges"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.BQk()}if(2&t){var i=I.oxw(2);I.xp6(4),I.Q6J("ngForOf",i.legendData),I.xp6(1),I.Q6J("ngIf",I.lcZ(6,10,i.insights$)),I.xp6(4),I.Q6J("checked",i.selectedCount>0)("disableRipple",!0),I.xp6(1),I.hij(" ",i.selectedCount," selected "),I.xp6(2),I.Q6J("disabled",!i.selectedCount),I.xp6(5),I.Q6J("disabled",!i.selectedCount),I.xp6(5),I.Q6J("disabled",!i.selectedCount),I.xp6(5),I.Q6J("disabled",!i.selectedCount),I.xp6(5),I.Q6J("disabled",!i.selectedCount)}}function Di(t,e){if(1&t){var n=I.EpF();I.TgZ(0,"section",5),I.TgZ(1,"div",6),I.TgZ(2,"div",7),I.TgZ(3,"p",8),I._uU(4,"Class/Assignment"),I.qZA(),I.TgZ(5,"div",9),I.TgZ(6,"p"),I._uU(7,"Review the student's performance for the submitted worksheet:"),I.qZA(),I.TgZ(8,"wizer-chip-autocomplete",10),I.NdJ("click",function(){return I.CHM(n),I.oxw().chipOpened()})("selectionChanged",function(t){return I.CHM(n),I.oxw().publicationsChanged(t)}),I.ALo(9,"async"),I.ALo(10,"async"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(11,"div",7),I._UZ(12,"wizer-solutions-stats"),I.qZA(),I.qZA(),I.YNc(13,qi,37,12,"ng-container",2),I.ALo(14,"async"),I.qZA()}if(2&t){var i,o=I.oxw();I.xp6(8),I.ekj("pulse",o.pulse),I.Q6J("checkPremium",!0)("sortField","updatedAt")("items",I.lcZ(9,12,o.publications$))("isPremium",o.isPremium)("labelMapper","name")("label2Mapper",o.typeMapper)("valMapper","token")("selected",o.preSelectedPublications)("selectFirst",1===(null==(i=I.lcZ(10,14,o.publications$))?null:i.length)),I.xp6(5),I.Q6J("ngIf",I.lcZ(14,16,o.empty$))}}var Ii=Dt.Bz.forChild([{path:"worksheet/:token",component:yn,resolve:{assessmentData:zt.xL}},{path:"".concat(It.UY.wsInsights,"/:token"),component:function(){var t=function(){function t(e,n,i,o,s,a,c){r(this,t),this.chgDet=e,this.dialogSrv=n,this.insightsStore=i,this.route=o,this.router=s,this.storage=a,this.userSrv=c,this.ForceOrRetakeMode=ee,this.SkillDialogType=ut,this.legendData=[].concat(Sn),this.empty$=this.insightsStore.empty$.pipe((0,ke.x)()),this.error$=this.insightsStore.error$.pipe((0,ke.x)()),this.wasPurchased$=this.insightsStore.worksheet$.pipe((0,Pe.U)(function(t){return(null==t?void 0:t.sellerId)&&(null==t?void 0:t.sellerId)!==(null==t?void 0:t.userId)})),this.insights$=this.insightsStore.selectedInsights$.pipe((0,Pe.U)(function(t){return Object.values(t||{})})),this.loading$=this.insightsStore.loading$,this.publications$=this.insightsStore.publications$,this.worksheet$=this.insightsStore.worksheet$,this.widgetsQuestionDefs$=this.insightsStore.widgetsQuestionDefs$,this.pulse=!1,this.preSelectedPublications=[],this.typeMapper=function(t){switch(t.type){case Me.l.wizerClass:return"class";case Me.l.link:return"Asgmt.";case Me.l.public:return"Public"}return"-"},this.handleData(),this.preSelectPublications(),this.checkIfVisited()}return l(t,[{key:"isPremium",get:function(){return this.userSrv.
1isPremium}},{key:"selectedCount",get:function(){return Object.values(this.selectionMap).length}},{key:"checkAnswer",value:function(t){this.router.navigate([It.UY.wsAssessment,"worksheet",this.insightsStore.worksheetToken],{queryParams:{p:t.publicationToken,s:t.solutionToken}})}},{key:"chipOpened",value:function(){this.pulse&&(this.pulse=!1,this.storage.setOnIndexDb(_e.d.WsOverview,{visited:!0}),this.chgDet.markForCheck())}},{key:"openSkillsDialog",value:function(t){this.dialogSrv.open(At,{data:{users:Object.values(this.selectionMap).map(function(t){return t.user}),type:t}})}},{key:"openStatusChangeDialog",value:function(t){var e=this;this.dialogSrv.open(pe,{data:{mode:t,studentsData:Object.values(this.selectionMap)}}).beforeClosed().pipe((0,Ae.h)(function(t){return!!t||!!Object.keys(t||{}).filter(function(e){return!!t[e]}).length}),(0,ct.b)(function(t){e.insightsStore.updateInsightsDataAndStats(t),e.selectionMap={},e.chgDet.markForCheck()})).subscribe()}},{key:"openSendFeedback",value:function(){var t=this;this.dialogSrv.open(Fn,{data:{studentsData:Object.values(this.selectionMap)}}).beforeClosed().pipe((0,Ae.h)(function(t){return!!t||!!Object.keys(t||{}).filter(function(e){return!!t[e]}).length}),(0,ct.b)(function(e){t.insightsStore.updateInsightsAssessmentDataAndStats(e),t.selectionMap={},t.chgDet.markForCheck()})).subscribe()}},{key:"publicationsChanged",value:function(t){this.insightsStore.fetchCalculations(t)}},{key:"studentsSelectionChanged",value:function(t){this.selectionMap=Object.assign({},t)}},{key:"handleData",value:function(){var t,e=this.route.snapshot.data,i=n((null==e?void 0:e.assessmentData)||[],3),o=i[0],s=i[1],a=i[2],r=(null==e?void 0:e.insightsCalculation)||{},c=(null===(t=o)||void 0===t?void 0:t.token)||"";this.selectionMap={},this.insightsStore.initStore({publications:s,publicationSolutions:a,worksheet:o,worksheetToken:c,worksheetCalculationResult:r})}},{key:"checkIfVisited",value:function(){var t=this;this.storage.getFromIndexDb(_e.d.WsOverview).pipe((0,ct.b)(function(e){(null==e?void 0:e.visited)||(t.pulse=!0,t.chgDet.markForCheck())})).subscribe()}},{key:"preSelectPublications",value:function(){var t=this,e=sessionStorage.getItem("selectedPublicationIds");if(e){var n=JSON.parse(e);this.publications$.subscribe(function(e){var i=e.filter(function(t){return n.includes(t.id)});t.preSelectedPublications=i.map(function(t){return t.token}),t.insightsStore.fetchCalculations(i)})}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(I.sBO),I.Y36(T.Vc),I.Y36(me.GO),I.Y36(Dt.gz),I.Y36(Dt.F0),I.Y36(_e.n),I.Y36(Oe.K))},t.\u0275cmp=I.Xpm({type:t,selectors:[["wizer-page-insights"]],features:[I._Bn([me.GO])],decls:8,vars:12,consts:[["insightsActive","true",3,"worksheet"],[3,"showStats","worksheetTitle",4,"ngIf"],[4,"ngIf"],["class","insights-content",4,"ngIf"],[3,"showStats","worksheetTitle"],[1,"insights-content"],[1,"page-select-container"],[1,"section-col"],[1,"top-page-label"],[1,"select-field"],["withSearch","true","placeholder","Select Class/Assignment","searchPlaceholder","Search publications",3,"checkPremium","sortField","items","isPremium","labelMapper","label2Mapper","valMapper","selected","selectFirst","click","selectionChanged"],[1,"student-results-table"],[1,"legend-actions"],[1,"legend"],["class","legend-item",4,"ngFor","ngForOf"],[1,"insight-actions"],[1,"counter"],[1,"tiel",3,"checked","disableRipple","click"],[1,"actions-wrapper"],["mat-raised-button","",3,"disabled","click"],[1,"btn-text"],[1,"legend-item"],[1,"square",3,"ngClass"],[3,"loading","overviewData","isPremium","widgetQuestionsDef","selectedChange","checkAnswers"]],template:function(t,e){1&t&&(I._UZ(0,"wizer-app-bar",0),I.ALo(1,"async"),I.YNc(2,yi,2,4,"wizer-worksheet-summary",1),I.ALo(3,"async"),I.YNc(4,Zi,1,0,"wizer-empty-view",2),I.ALo(5,"async"),I.YNc(6,Di,15,18,"section",3),I.ALo(7,"async")),2&t&&(I.Q6J("worksheet",I.lcZ(1,4,e.worksheet$)),I.xp6(2),I.Q6J("ngIf",!1===I.lcZ(3,6,e.error$)),I.xp6(2),I.Q6J("ngIf",I.lcZ(5,8,e.error$)),I.xp6(2),I.Q6J("ngIf",!1===I.lcZ(7,10,e.error$)))},directives:[be.b,m.O5,xe,Kt,X,jn,m.sg,x.oG,C.lW,M.Hw,m.mk,Pi],pipes:[m.Ov],styles:["@-webkit-keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.sync[_ngcontent-%COMP%]{-webkit-animation:spin180 1s linear infinite;animation:spin180 1s linear infinite}@keyframes spin180{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}.top-page-label[_ngcontent-%COMP%]{text-align:center;
1color:#adadad;margin-bottom:16px;font-size:12px;font-weight:400;line-height:18px}@media (min-width: 1140px){.top-page-label[_ngcontent-%COMP%]{text-align:left}}.page-select-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:0 -20px;padding:16px 20px;border-bottom:1px solid #d6d6d6}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%]{flex-direction:row;border-bottom:none;padding:16px 20px 32px}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]{width:100%}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]{width:50%}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type{padding-bottom:24px}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type{justify-content:flex-start;padding-bottom:0}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type .top-page-label[_ngcontent-%COMP%]{text-align:center;color:#adadad;margin-bottom:16px;font-size:12px;font-weight:400;line-height:18px}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:first-of-type .top-page-label[_ngcontent-%COMP%]{text-align:left}}.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{padding-left:20px;display:flex;justify-content:center}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{height:100%;padding:38px 0 0}}.page-select-container[_ngcontent-%COMP%] .select-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:22px;color:#1f2121;margin-bottom:8px;text-align:center}@media (min-width: 1140px){.page-select-container[_ngcontent-%COMP%] .select-field[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}}[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100%;padding-top:50px}wizer-app-bar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:2}.insights-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;background-color:#f7f5f2;padding:0 20px}@media (min-width: 1140px){.insights-content[_ngcontent-%COMP%]{padding:0 36px}}.insights-content[_ngcontent-%COMP%] .page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{justify-content:center}@media (min-width: 1140px){.insights-content[_ngcontent-%COMP%] .page-select-container[_ngcontent-%COMP%] .section-col[_ngcontent-%COMP%]:last-of-type{justify-content:flex-end}}.student-results-table[_ngcontent-%COMP%]{padding:24px 0 104px}@media (min-width: 1140px){.student-results-table[_ngcontent-%COMP%]{padding:32px 0 104px}}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%]{display:flex;margin-bottom:8px;justify-content:center}@media (min-width: 1140px){.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%]{flex-direction:row;justify-content:flex-end;margin-bottom:12px}}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:16px}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-right:32px}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%]:last-of-type{margin-right:0}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:18px;color:#1f2121}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .square[_ngcontent-%COMP%]{width:16px;height:16px;background-color:red;margin-right:4px}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .square.correct[_ng
1content-%COMP%]{background-color:#87bc54}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .square.wrong[_ngcontent-%COMP%]{background-color:#e4453f}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .square.waiting[_ngcontent-%COMP%]{background-color:#fdad03}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .square.no-answer[_ngcontent-%COMP%]{background-color:#adadad}.student-results-table[_ngcontent-%COMP%] .legend-actions[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] .square.content-widget[_ngcontent-%COMP%]{background-color:#778af0}.insight-actions[_ngcontent-%COMP%]{height:68px;background-color:#fff;position:fixed;left:0;right:0;bottom:26px;display:inline-flex;align-items:center;padding:16px 46px;z-index:2}@media (min-width: 1140px){.insight-actions[_ngcontent-%COMP%]{padding:16px 64px}}.insight-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:inline-flex;overflow-x:auto;padding-bottom:2px}@media (min-width: 1140px){.insight-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{padding-bottom:0;overflow-x:visible;overflow-x:initial}}.insight-actions[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%]{min-width:100px;margin-right:32px;display:flex;align-items:center;font-size:14px;font-weight:400;line-height:22px}.insight-actions[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%] .tiel[_ngcontent-%COMP%]{margin-right:10px}.insight-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:16px;min-width:170px}.insight-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-of-type{margin-right:0}.insight-actions[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:10px}.insight-actions[_ngcontent-%COMP%] .btn-text[_ngcontent-%COMP%]{font-size:14px;font-weight:700;text-transform:uppercase}"],changeDetection:0}),t}(),resolve:{assessmentData:zt.xL,insightsCalculation:zt.nL}}]),zi=[fe.z0,fe.D5,fe.Cp,fe.Ig],Ji=[k.SJ,_.lN,b.LD,A.AV,S.Nh,M.Ps,P.rP,O.Cq,x.p9,Z.p0,y.JX,w.Is],Ui=function(){var t=l(function t(){r(this,t)});return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({providers:[].concat(zi,[me.AQ]),imports:[[m.ez,Ii].concat(Ji,[qt.g_,qt.gD,v.u5,q.m,D.g,T.ip,G,tt.y,C.ot,T.qh,Tt.s,K.$0,T.nD,st,ot])]}),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.