text: !function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="BAjG")}({"+6yQ":function(e,t){e.exports=tui.require("totara_competency/components/profile/competency_list/Filters")},"+KnN":function(e,t,n){"use strict";n.r(t);var i=n("JXQf"),a=n.n(i),r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_competency_progress_for_user"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"order"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"totara_competency_profile_assignment_filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_profile_competency_progress"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}},{kind:"Argument",name:{kind:"Name",value:"order"},value:{kind:"Variable",name:{kind:"Name",value:"order"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"competency"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"archived_at"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATE"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_assigned"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"unassigned_at"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATE"}},{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"my_value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scale_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}}]}}]}}]}}]},s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_scales"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_scales"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"idnumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scaleid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numericscore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sortorder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}}]}}]}}]},o=n("+6yQ"),c=n.n(o),l=n("Q2E1"),u=n.n(l),d=n("R6ln"),m=n.n(d),p=n("TXEh"),_={components:{Loader:a.a,CurrentList:m.a,ArchivedList:u.a,Filters:c.a},props:{filters:{required:!1,type:Object,default:function(){return{}}},userId:{required:!0,type:Number},baseUrl:{required:!0,type:String},isMine:{required:!0,type:Boolean}},data:function(){return{competencies:[],order:"alphabetical",proficientFilter:null,searchFilter:"",scales:[]}},computed:{selectedFilters:function(){var e={search:this.searchFilter};return this.filterNotArchived&&(e.proficient=this.proficientFilter),Object.assign(e,Object(p.pick)(this.filters,["status","type","user_group_id","user_group_type"]))},filterNotArchived:function(){return this.filters&&2!==this.filters.status}},apollo:{competencies:{query:r,variables:function(){return this.filterNotArchived?"recently-archived"===this.order&&(this.order="alphabetical"):"recently-assigned"===this.order&&(this.order="alphabetical"),{user_id:this.userId,order:this.order,filters:this.selectedFilters}},update:function(e){return e.totara_competency_profile_competency_progress}},scales:{query:s,variables:function(){return{competency_id:this.competencies.map((function(e){return e.competency.id}))}},update:function(e){return e.totara_competency_scales},skip:function(){return!this.competencies.length}}},methods:{filtersUpdated:function(e){var t=e.search,n=e.proficient;this.searchFilter=t,this.proficientFilter=n},orderUpdated:function(e){this.order=e}}},v=n("KHd+"),f=Object(v.a)(_,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Loader",{attrs:{loading:e.$apollo.loading}},[n("Filters",{attrs:{"is-for-archived":!e.filterNotArchived,"default-order":e.order,"default-filter-values":{proficient:e.proficientFilter,search:e.searchFilter}},on:{"filters-updated":e.filtersUpdated,"order-updated":e.orderUpdated}}),e._v(" "),e.filterNotArchived?n("CurrentList",{attrs:{competencies:e.competencies,"base-url":e.baseUrl,"user-id":e.userId,scales:e.scales}}):n("ArchivedList",{attrs:{competencies:e.competencies,scales:e.scales,"base-url":e.baseUrl,"user-id":e.userId}})],1)],1)}),[],!1,null,null,null);f.options.__hasBlocks={script:!0,template:!0};t.default=f.exports},"+MEP":function(e,t){e.exports=tui.require("tui/components/profile/MiniProfileCard")},"+TNE":function(e,t){e.exports=tui.require("totara_competency/components/details/ArchivedAssignments")},"+d5V":function(e,t,n){"use strict";n.r(t);var i={props:{complete:{type:Boolean},completed:{type:Number},target:{type:Number}}},a=(n("C4mR"),n("KHd+")),r=function(e){e.options.__langStrings={totara_competency:["achieved_n_out_of_n","completed"]}},s=Object(a.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-progressCircle",class:{"tui-progressCircle--complete":e.complete}},[n("div",{staticClass:"tui-progressCircle__circle"},[n("span",{staticClass:"tui-progressCircle__circle-text"},[e._v("\n      "+e._s(e.$str("achieved_n_out_of_n","totara_competency",{current:e.completed,target:e.target}))+"\n    ")])]),e._v(" "),n("div",{staticClass:"tui-progressCircle__label"},[e._v("\n    "+e._s(e.$str("completed","totara_competency"))+"\n  ")])])}),[],!1,null,null,null);"function"==typeof r&&r(s),s.options.__hasBlocks={script:!0,template:!0};t.default=s.exports},"/NCw":function(e,t,n){"use strict";n.r(t);var i=n("MhKF"),a=n.n(i),r=n("KGot"),s=n.n(r),o=n("5qAA"),c=n.n(o),l=n("9G+f"),u=n.n(l),d=n("C4bi"),m=n.n(d),p=n("lyMP"),_=n.n(p),v=n("yikf"),f=n.n(v),y={components:{AddUserIcon:a.a,Cell:s.a,HeaderCell:c.a,Popover:u.a,ProficientStatus:m.a,RemoveUserIcon:_.a,Table:f.a},props:{log:{type:Array}},methods:{showProgressName:function(e){return null!=e.assignment&&!["tracking_started","tracking_ended"].includes(e.assignment_action)}}},g=(n("YDfs"),n("KHd+")),h=function(e){e.options.__langStrings={core:["date","description"],totara_competency:["assignment","proficiency_status","progress_name_by_user"]}},k=Object(g.a)(y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Table",{staticClass:"tui-competencyDetailActivityLogTable",attrs:{data:e.log},scopedSlots:e._u([{key:"header-row",fn:function(){return[n("HeaderCell",{attrs:{size:"2"}},[e._v("\n      "+e._s(e.$str("date","core"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"8"}},[e._v("\n      "+e._s(e.$str("description","core"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"3"}},[e._v("\n      "+e._s(e.$str("proficiency_status","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"3"}},[e._v("\n      "+e._s(e.$str("assignment","totara_competency"))+"\n    ")])]},proxy:!0},{key:"row",fn:function(t){var i=t.row;t.expand;return[n("Cell",{attrs:{size:"2","column-header":e.$str("date","core")}},[n("Popover",{attrs:{triggers:["hover"]},scopedSlots:e._u([{key:"trigger",fn:function(){return[n("span",{staticClass:"tui-competencyDetailActivityLogTable__date"},[e._v("\n            "+e._s(i.date)+"\n          ")])]},proxy:!0}],null,!0)},[e._v(" "),n("div",[e._v(e._s(i.datetime))])])],1),e._v(" "),n("Cell",{staticClass:"tui-competencyDetailActivityLogTable__description",attrs:{size:"8","column-header":e.$str("description","core")}},["assigned"===i.assignment_action?n("AddUserIcon",{attrs:{size:"200"}}):e._e(),e._v(" "),"unassigned_archived"===i.assignment_action||"unassigned_usergroup"===i.assignment_action?n("RemoveUserIcon",{attrs:{size:"200"}}):e._e(),e._v(" "),n("span",{class:{"tui-competencyDetailActivityLogTable__description-rating":null!=i.proficient_status,"tui-competencyDetailActivityLogTable__description-system":i.assignment&&"system"===i.assignment.type,"tui-competencyDetailActivityLogTable__description-tracking":i.assignment_action&&("tracking_started"===i.assignment_action||"tracking_ended"===i.assignment_action)}},[e._v("\n        "+e._s(i.description)+"\n      ")])],1),e._v(" "),n("Cell",{attrs:{size:"3","column-header":e.$str("proficiency_status","totara_competency")}},[null!=i.proficient_status?n("ProficientStatus",{attrs:{"proficient-status":i.proficient_status}}):e._e()],1),e._v(" "),n("Cell",{attrs:{size:"3","column-header":e.$str("assignment","totara_competency")}},[e.showProgressName(i)?n("span",[e._v("\n        "+e._s(i.assignment.progress_name)+"\n      ")]):e._e()])]}}])})}),[],!1,null,null,null);"function"==typeof h&&h(k),k.options.__hasBlocks={script:!0,template:!0};t.default=k.exports},"/X/1":function(e,t){e.exports=tui.require("tui/components/toggle/ToggleSet")},"/bax":function(e,t,n){"use strict";n.r(t);var i=n("Sn4P"),a=n.n(i),r=n("QPG3"),s=n.n(r),o=n("+TNE"),c=n.n(o),l=n("Lany"),u=n.n(l),d=n("vF5l"),m=n.n(d),p=n("NAOU"),_=n.n(p),v=n("D9If"),f=n.n(v),y=n("bxeI"),g=n.n(y),h=n("+MEP"),k=n.n(h),b=n("tkAW"),N=n.n(b),S=n("Mnur"),C=n.n(S),A=n("zdti"),x=n.n(A),F=n("zs4z"),w=n.n(F),$=n("kPEt"),q=n.n($),I=n("vyVp"),D=n("qGal"),L=n("gqVV"),V=n("wMJ/"),T={components:{Achievements:a.a,ActivityLog:s.a,ArchivedAssignments:c.a,Assignment:u.a,Button:m.a,Grid:_.a,GridItem:f.a,Layout:g.a,MiniProfileCard:k.a,Modal:N.a,ModalPresenter:C.a,NotificationBanner:x.a,PageBackLink:w.a,Progress:q.a},props:{competencyId:{required:!0,type:Number},goBackLink:{required:!0,type:String},goBackText:{required:!0,type:String},userId:{required:!0,type:Number},isMine:{required:!0,type:Boolean},showActivityLogByDefault:{default:!1,type:Boolean},toastMessage:{type:String},hasPendingAggregation:{type:Boolean}},data:function(){return{activityLogModalOpen:!1,archivedAssignmentModalOpen:!1,assignmentFilter:0,data:{competency:null,items:[]},user:null}},apollo:{data:{query:L.a,variables:function(){return{user_id:this.userId,competency_id:this.competencyId,status:D.ASSIGNMENT_ACTIVE}},update:function(e){var t=e.totara_competency_profile_competency_details;return null===t?{competency:null,items:[]}:{competency:t.competency,items:t.items}}},user:{query:V.a,variables:function(){return{user_id:this.userId}},update:function(e){return e.totara_competency_user},skip:function(){return this.isMine}}},computed:{selectedAssignment:function(){return this.data.items.length&&this.data.items[this.assignmentFilter]?this.data.items[this.assignmentFilter]:null},selectedAssignmentData:function(){return this.selectedAssignment?this.selectedAssignment.assignment:{}},selectedAssignmentProficiency:function(){return this.selectedAssignment&&this.selectedAssignment.my_value?this.selectedAssignment.my_value:{}},selectedAssignmentProficiencyValue:function(){return this.selectedAssignmentProficiency&&this.selectedAssignmentProficiency.id?this.selectedAssignmentProficiency.id:NaN},activeAssignmentList:function(){var e=this,t=[];return t=this.data.items.map((function(t,n){return{archived:t.assignment.archived_at||"legacy"===t.assignment.type,id:n,assignment_id:t.assignment.id,can_archive:t.assignment.can_archive,label:e.getFilterLabel(t)}})).filter((function(e){return!e.archived})),t.length&&this.updateAssignmentFilterValue(t[0].id),t}},mounted:function(){this.toastMessage&&Object(I.notify)({message:this.toastMessage}),this.activityLogModalOpen=this.showActivityLogByDefault},methods:{openActivityLogModal:function(){this.activityLogModalOpen=!0},openArchivedAssignmentModal:function(){this.archivedAssignmentModalOpen=!0},closeActivityLogModal:function(){this.activityLogModalOpen=!1},closeArchivedAssignmentModal:function(){this.archivedAssignmentModalOpen=!1},updateAssignmentFilterValue:function(e){this.assignmentFilter=e},getFilterLabel:function(e){var t=e.assignment.progress_name;if(this.isDirectlyAssigned(e.assignment)){var n={progress_name:e.assignment.progress_name,user_fullname_role:e.assignment.reason_assigned};t=this.$str("progress_name_by_user","totara_competency",n)}return t},isDirectlyAssigned:function(e){return"user"===e.user_group_type&&("admin"===e.type||"other"===e.type)}}},P=(n("ykDy"),n("KHd+")),O=function(e){e.options.__langStrings={totara_competency:["activity_log","archived_assignments","current_assignment_details","competency_does_not_exist","no_active_assignments","warning_pending_aggregation_detail"]}},M=Object(P.a)(T,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Layout",{staticClass:"tui-competencyDetail",attrs:{loading:e.$apollo.loading,title:e.data.competency?e.data.competency.fullname:""},scopedSlots:e._u([e.hasPendingAggregation?{key:"feedback-banner",fn:function(){return[n("NotificationBanner",{attrs:{type:"warning",message:e.$str("warning_pending_aggregation_detail","totara_competency")}})]},proxy:!0}:null,e.user&&!e.isMine?{key:"user-overview",fn:function(){return[n("MiniProfileCard",{attrs:{display:e.user.card_display}})]},proxy:!0}:null,{key:"content-nav",fn:function(){return[n("PageBackLink",{attrs:{link:e.goBackLink,text:e.goBackText}})]},proxy:!0},e.data.competency?{key:"content",fn:function(){return[n("div",{staticClass:"tui-competencyDetail__content"},[n("Grid",{attrs:{"stack-at":700}},[n("GridItem",{attrs:{units:7}},[n("div",{staticClass:"tui-competencyDetail__description",domProps:{innerHTML:e._s(e.data.competency.description)}})]),e._v(" "),n("GridItem",{class:"tui-competencyDetail__buttons",attrs:{units:5}},[n("Button",{attrs:{styleclass:{small:!0},text:e.$str("archived_assignments","totara_competency")},on:{click:e.openArchivedAssignmentModal}}),e._v(" "),n("Button",{attrs:{styleclass:{small:!0},text:e.$str("activity_log","totara_competency")},on:{click:e.openActivityLogModal}})],1)],1),e._v(" "),n("div",{staticClass:"tui-competencyDetail__body"},[n("h3",{staticClass:"tui-competencyDetail__body-title"},[e._v("\n          "+e._s(e.$str("current_assignment_details","totara_competency"))+"\n        ")]),e._v(" "),e.activeAssignmentList.length?n("div",[n("Assignment",{attrs:{"active-assignment-list":e.activeAssignmentList,"selected-assignment-proficiency":e.selectedAssignmentProficiency,"competency-id":e.competencyId,"user-id":e.userId},model:{value:e.assignmentFilter,callback:function(t){e.assignmentFilter=t},expression:"assignmentFilter"}}),e._v(" "),n("Progress",{attrs:{"competency-id":e.competencyId,"my-value":e.selectedAssignmentProficiencyValue}}),e._v(" "),n("Achievements",{attrs:{assignment:e.selectedAssignmentData,"user-id":e.userId}})],1):n("div",{staticClass:"tui-competencyDetail__body-empty"},[e._v("\n          "+e._s(e.$str("no_active_assignments","totara_competency"))+"\n        ")])])],1)]},proxy:!0}:null,{key:"modals",fn:function(){return[n("ModalPresenter",{attrs:{open:e.activityLogModalOpen},on:{"request-close":e.closeActivityLogModal}},[n("Modal",{attrs:{size:"sheet"}},[n("ActivityLog",{attrs:{"competency-id":e.competencyId,"user-id":e.userId}})],1)],1),e._v(" "),n("ModalPresenter",{attrs:{open:e.archivedAssignmentModalOpen},on:{"request-close":e.closeArchivedAssignmentModal}},[n("Modal",{attrs:{size:"sheet"}},[n("ArchivedAssignments",{attrs:{"competency-id":e.competencyId,"user-id":e.userId}})],1)],1)]},proxy:!0}],null,!0)})}),[],!1,null,null,null);"function"==typeof O&&O(M),M.options.__hasBlocks={script:!0,template:!0};t.default=M.exports},"/gTP":function(e,t,n){var i={"./CompetencyDetail":"/bax","./CompetencyDetail.vue":"/bax","./CompetencyProfile":"4roC","./CompetencyProfile.vue":"4roC","./CompetencySummary":"CAFL","./CompetencySummary.vue":"CAFL","./UserAssignment":"H8/h","./UserAssignment.vue":"H8/h"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="/gTP"},"/sVv":function(e,t){},"1LXY":function(e,t){e.exports=tui.require("totara_competency/components/summary/LinkedCourses")},"1i2V":function(e,t){e.exports=tui.require("tui/components/tabs/Tab")},"2z5M":function(e,t){},"2zrd":function(e,t){e.exports=tui.require("tui/components/progresstracker/ProgressTracker")},"3WCR":function(e,t,n){"use strict";n.r(t);var i=n("jJ8l"),a=n.n(i),r=n("E0Ja"),s=n.n(r),o=n("rNse"),c=n.n(o),l=n("NAOU"),u=n.n(l),d=n("D9If"),m=n.n(d),p=n("k7/G"),_=n.n(p),v=n("BxDI"),f=n.n(v),y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_achievement_criteria"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"summarized"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_achievement_criteria"},arguments:[{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"competency_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"overall_aggregation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"aggregation_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paths"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pathway_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"instance_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sortorder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scale_value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"criteria_summary"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"summarized"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"item_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"item_aggregation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]},g={components:{Card:a.a,Criteria:s.a,EditIcon:c.a,Grid:u.a,GridItem:m.a,OrBox:_.a,Separator:f.a},props:{competencyId:{type:Number}},data:function(){return{editUrl:"",paths:[]}},computed:{hasPathways:function(){return this.achievementConfiguration.paths&&this.achievementConfiguration.paths.length>0},pathGroups:function(){var e=this,t=[],n=null,i=this.paths,a=[],r=function(r){var s=Object.assign({},i[r]);if(s.multiCriteria=s.criteria_summary.length>1,"MULTIVALUE"===s.classification)n?t.push({key:"group-"+r,scaleValues:[{value:e.$str("any_scale_value","totara_competency"),paths:[s]}]}):a.push({key:"group-"+r,scaleValues:[{value:e.$str("any_scale_value","totara_competency"),paths:[s]}]});else{n||(n={key:"group-"+r,scaleValues:[]});var o=n.scaleValues.findIndex((function(e){return e.value===s.scale_value}));-1===o&&(o=n.scaleValues.length,n.scaleValues.push({value:s.scale_value,paths:[]})),n.scaleValues[o].paths.push(s)}};for(var s in i)r(s);return n?[].concat(a,n,t):a}},apollo:{achievementConfiguration:{query:y,variables:function(){return{competency_id:this.competencyId,summarized:!0}},update:function(e){var t=e.totara_competency_achievement_criteria;return this.editUrl=this.$url("/totara/competency/competency_edit.php",{s:"achievement_paths",id:this.competencyId}),this.paths=t.paths,t}}}},h=(n("luBG"),n("KHd+")),k=function(e){e.options.__langStrings={core:["edit"],totara_competency:["achievement_paths","overall_rating_calc","any_scale_value","no_paths"]}},b=Object(h.a)(g,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencySummaryAchievementConfiguration"},[n("div",{staticClass:"tui-competencySummary__sectionHeader"},[n("h3",{staticClass:"tui-competencySummary__sectionHeader-title"},[e._v("\n      "+e._s(e.$str("achievement_paths","totara_competency"))+"\n    ")]),e._v(" "),n("a",{staticClass:"tui-competencySummary__sectionHeader-edit",attrs:{href:e.editUrl,title:e.$str("edit","core")}},[n("EditIcon",{attrs:{size:200,alt:e.$str("edit","core")}})],1)]),e._v(" "),!e.$apollo.loading&&e.hasPathways?[n("div",{staticClass:"tui-competencySummaryAchievementConfiguration__aggregation"},[n("span",{staticClass:"tui-competencySummaryAchievementConfiguration__aggregation-label"},[e._v("\n        "+e._s(e.$str("overall_rating_calc","totara_competency"))+"\n      ")]),e._v("\n\n      "+e._s(e.achievementConfiguration.overall_aggregation.title)+"\n    ")]),e._v(" "),e._l(e.pathGroups,(function(t,i){return n("Card",{key:"pathGroup"+i},[n("div",{staticClass:"tui-competencySummaryAchievementConfiguration__pathGroup"},e._l(t.scaleValues,(function(t,i){return n("Grid",{key:"scaleValue"+i,staticClass:"tui-competencySummaryAchievementConfiguration__scaleValue",attrs:{"stack-at":700}},[n("GridItem",{attrs:{units:2}},[n("h4",{staticClass:"tui-competencySummaryAchievementConfiguration__scaleValue-header"},[e._v("\n              "+e._s(t.value)+"\n            ")])]),e._v(" "),n("GridItem",{attrs:{units:10}},e._l(t.paths,(function(t,i){return n("div",{key:t.id},[i?n("Separator",{staticClass:"tui-competencySummaryAchievementConfiguration__scaleValue-or"},[n("OrBox")],1):e._e(),e._v(" "),n("Criteria",{attrs:{path:t}})],1)})),0)],1)})),1)])}))]:e.$apollo.loading?e._e():n("div",{staticClass:"tui-competencySummaryAchievementConfiguration__noPaths"},[e._v("\n    "+e._s(e.$str("no_paths","totara_competency"))+"\n  ")])],2)}),[],!1,null,null,null);"function"==typeof k&&k(b),b.options.__hasBlocks={script:!0,template:!0};t.default=b.exports},"3fD/":function(e,t){e.exports=tui.require("tui_charts/components/ChartJs")},"3kcf":function(e,t){e.exports=tui.require("tui/components/filters/MultiSelectFilter")},"3s/G":function(e,t){e.exports=tui.require("totara_competency/components/summary/AchievementConfiguration")},"49h4":function(e,t){e.exports=tui.require("tui/components/filters/SelectFilter")},"4Zth":function(e,t){},"4roC":function(e,t,n){"use strict";n.r(t);var i=n("J4zp"),a=n.n(i),r=n("fCWf"),s=n.n(r),o=n("vqlw"),c=n.n(o),l=n("NUDN"),u=n.n(l),d=n("Vpbp"),m=n.n(d),p=n("Yoo0"),_=n.n(p),v=n("D6uX"),f=n.n(v),y=n("JXQf"),g=n.n(y),h=n("+MEP"),k=n.n(h),b=n("epks"),N=n.n(b),S=n("zdti"),C=n.n(S),A=n("g8/U"),x=n.n(A),F=n("51bi"),w=n.n(F),$=n("dtfu"),q=n.n($),I=n("kV+/"),D=n.n(I),L=n("/X/1"),V=n.n(L),T=n("vyVp"),P=n("TXEh"),O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_progress_for_user"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"totara_competency_profile_assignment_filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_profile_progress"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"overall_progress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"min_value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"my_value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"competency"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"filters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_group_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_group_type"},arguments:[],directives:[]}]}}]}}]}}]},M=n("wMJ/"),B={components:{ActionLink:s.a,BarChartIcon:c.a,CompetencyCharts:u.a,CompetencyList:m.a,CurrentProgress:_.a,ListIcon:f.a,Loader:g.a,MiniProfileCard:k.a,NoCompetencyAssignments:N.a,NotificationBanner:C.a,PageHeading:x.a,ProgressAssignmentFilters:w.a,Responsive:q.a,ToggleButton:D.a,ToggleSet:V.a},props:{selfAssignmentUrl:{required:!0,type:String},userId:{required:!0,type:Number},baseUrl:{required:!0,type:String},isMine:{required:!0,type:Boolean},canRateCompetencies:{required:!0,type:Boolean},toastMessage:{type:String},hasPendingAggregation:{type:Boolean},canAssign:Boolean},data:function(){return{data:{},user:null,activeTab:"charts",selectedFilters:this.$_addFilterKey({status:1,type:null,user_group_id:null,user_group_type:null}),currentProgressData:[]}},apollo:{data:{query:O,variables:function(){return{user_id:this.userId,filters:Object(P.pick)(this.selectedFilters,["status","type","user_group_id","user_group_type"])}},update:function(e){return e.totara_competency_profile_progress},result:function(e){var t=this,n=e.data.totara_competency_profile_progress;if(1!=this.selectedFilters.status||this.currentProgressData.length||(this.currentProgressData=n.items.slice(0)),n.filters&&n.filters.length){var i=this.selectedFilters,a=null===i.type&&null===i.user_group_id&&null===i.user_group_type;(a?n.filters.some((function(e){return e.status==t.selectedFilters.status})):n.filters.some((function(e){return t.$_filterKey(e)==t.selectedFilters.key})))||(this.selectedFilters=this.$_addFilterKey(a?{status:n.filters[0].status,type:null,user_group_id:null,user_group_type:null}:n.filters[0]))}}},user:{query:M.a,variables:function(){return{user_id:this.userId}},update:function(e){return e.totara_competency_user},skip:function(){return this.isMine}}},computed:{filterOptions:function(){var e=this;return this.data&&this.data.filters?Object.entries(Object(P.groupBy)(this.data.filters,(function(e){return e.status}))).map((function(t){var n=a()(t,2),i=(n[0],n[1]),r=e.$_addFilterKey({status:i[0].status,type:null,user_group_id:null,user_group_type:null});return{id:r.key,name:i[0].status_name,value:r,filters:i.map((function(t){var n=e.$_addFilterKey(e.$_filterValue(t));return{id:n.key,name:t.name,value:n}}))}})):[]},noAssignments:function(){return!this.$apollo.loading&&!this.filterOptions.length},rateCompetenciesUrl:function(){return this.canRateCompetencies?this.$url("/totara/competency/rate_competencies.php",{user_id:this.userId}):null}},mounted:function(){this.toastMessage&&Object(T.notify)({message:this.toastMessage})},methods:{$_filterValue:function(e){return Object(P.pick)(e,["status","type","user_group_id","user_group_type"])},$_addFilterKey:function(e){return Object.assign({key:this.$_filterKey(e)},e)},$_filterKey:function(e){return JSON.stringify([e.status,e.type,e.user_group_id,e.user_group_type])}}},E=(n("fCaH"),n("KHd+")),j=function(e){e.options.__langStrings={totara_competency:["assign_competencies","competency_profile","current_assignment_progress","header_competencies","self_assign_competencies","toggle_charts","toggle_competency_view_format","toggle_table","warning_pending_aggregation_profile"],pathway_manual:["rate_competencies"]}},H=Object(E.a)(B,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Loader",{attrs:{loading:e.$apollo.loading}},[n("div",{staticClass:"tui-competencyProfile"},[e.hasPendingAggregation?n("NotificationBanner",{attrs:{type:"warning",message:e.$str("warning_pending_aggregation_profile","totara_competency")}}):e._e(),e._v(" "),n("div",{staticClass:"tui-competencyProfile__header"},[e.user&&!e.isMine?n("MiniProfileCard",{attrs:{display:e.user.card_display}}):e._e(),e._v(" "),n("PageHeading",{attrs:{title:e.$str("competency_profile","totara_competency")}})],1),e._v(" "),e.noAssignments?n("NoCompetencyAssignments",{attrs:{"is-mine":e.isMine,"is-assign-enabled":e.canAssign,"self-assignment-url":e.selfAssignmentUrl}}):n("div",[n("div",{staticClass:"tui-competencyProfile__currentHeading"},[n("h3",{staticClass:"tui-competencyProfile__currentHeading-title"},[e._v("\n          "+e._s(e.$str("current_assignment_progress","totara_competency"))+"\n        ")]),e._v(" "),e.noAssignments?e._e():n("div",{staticClass:"tui-competencyProfile__currentHeading-buttons"},[e.rateCompetenciesUrl?n("ActionLink",{attrs:{href:e.rateCompetenciesUrl,text:e.$str("rate_competencies","pathway_manual")}}):e._e(),e._v(" "),e.canAssign?n("ActionLink",{attrs:{href:e.selfAssignmentUrl,text:e.$str(e.isMine?"self_assign_competencies":"assign_competencies","totara_competency")}}):e._e()],1)]),e._v(" "),n("CurrentProgress",{attrs:{data:e.currentProgressData,"is-current-user":e.isMine}}),e._v(" "),n("Responsive",{staticClass:"tui-competencyProfile__competencies",attrs:{breakpoints:[{name:"small",boundaries:[0,700]},{name:null,boundaries:[701,701]}]},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.currentBoundaryName;return[n("div",{staticClass:"tui-competencyProfile__competencies-content"},[n("h3",{staticClass:"tui-competencyProfile__sectionTitle"},[e._v("\n            "+e._s(e.$str("header_competencies","totara_competency"))+"\n          ")]),e._v(" "),n("div",{staticClass:"tui-competencyProfile__filtersBar"},[n("ProgressAssignmentFilters",{attrs:{filters:e.filterOptions},model:{value:e.selectedFilters,callback:function(t){e.selectedFilters=t},expression:"selectedFilters"}}),e._v(" "),"small"!=i?n("div",{staticClass:"tui-competencyProfile__tabs"},[n("ToggleSet",{attrs:{"aria-label":e.$str("toggle_competency_view_format","totara_competency")},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[n("ToggleButton",{attrs:{value:"charts","aria-label":e.$str("toggle_charts","totara_competency")}},[n("BarChartIcon")],1),e._v(" "),n("ToggleButton",{attrs:{value:"table","aria-label":e.$str("toggle_table","totara_competency")}},[n("ListIcon")],1)],1)],1):e._e()],1),e._v(" "),"small"!=i&&"charts"===e.activeTab?n("div",[n("CompetencyCharts",{attrs:{data:e.data,"user-id":e.userId,"is-current-user":e.isMine}})],1):e._e(),e._v(" "),"small"==i||"table"===e.activeTab?n("div",[n("CompetencyList",{attrs:{filters:e.selectedFilters,"user-id":e.userId,"is-mine":e.isMine,"base-url":e.baseUrl}})],1):e._e()])]}}])})],1)],1)])}),[],!1,null,null,null);"function"==typeof j&&j(H),H.options.__hasBlocks={script:!0,template:!0};t.default=H.exports},"51bi":function(e,t){e.exports=tui.require("totara_competency/components/ProgressAssignmentFilters")},"554a":function(e,t){e.exports=tui.require("tui/components/filters/FilterSidePanel")},"59Wj":function(e,t){e.exports=tui.require("tui/components/filters/FilterBar")},"5h9J":function(e,t){e.exports=tui.require("tui/components/buttons/ButtonIcon")},"5qAA":function(e,t){e.exports=tui.require("tui/components/datatable/HeaderCell")},"7OoD":function(e,t){e.exports=tui.require("totara_competency/components/details/ActivityLogTable")},"7rD8":function(e,t,n){"use strict";n.r(t);var i=n("Ygam"),a=n.n(i),r=n("JXQf"),s=n.n(r),o=n("qGal"),c=n("gqVV"),l={components:{ArchivedAssignmentsTable:a.a,Loader:s.a},props:{userId:{required:!0,type:Number},competencyId:{required:!0,type:Number}},data:function(){return{data:{competency:{},items:[]}}},apollo:{data:{query:c.a,fetchPolicy:"network-only",variables:function(){return{user_id:this.userId,competency_id:this.competencyId,status:o.ASSIGNMENT_ARCHIVED}},update:function(e){var t=e.totara_competency_profile_competency_details;return{competency:t.competency,items:t.items}}}},computed:{archivedAssignmentList:function(){var e=[];return e=this.data.items.map((function(e){var t=null;return t=e.assignment.archived_at?e.assignment.archived_at:e.assignment.unassigned_at,{name:e.assignment.progress_name,archivedAt:t,legacy:"legacy"===e.assignment.type,proficient:e.my_value.proficient}})),e}}},u=(n("ymIi"),n("KHd+")),d=function(e){e.options.__langStrings={totara_competency:["archived_assignments"]}},m=Object(u.a)(l,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tui-competencyDetailArchivedAssignments"},[t("h4",{staticClass:"tui-competencyDetailArchivedAssignments__title"},[this._v("\n    "+this._s(this.$str("archived_assignments","totara_competency"))+"\n  ")]),this._v(" "),t("Loader",{attrs:{loading:this.$apollo.loading}},[t("ArchivedAssignmentsTable",{attrs:{assignments:this.archivedAssignmentList}})],1)],1)}),[],!1,null,null,null);"function"==typeof d&&d(m),m.options.__hasBlocks={script:!0,template:!0};t.default=m.exports},"8Lk7":function(e,t,n){"use strict";n.r(t);var i=n("AFyC"),a={components:{AssignmentProgress:n.n(i).a},props:{data:{required:!0,type:Array},isCurrentUser:{type:Boolean,required:!0}}},r=(n("/sVv"),n("KHd+")),s=function(e){e.options.__langStrings={totara_competency:["no_current_assignments_other","no_current_assignments_self"]}},o=Object(r.a)(a,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"tui-competencyProfileCurrentProgress"},[this.data.length?t("ul",{staticClass:"tui-competencyProfileCurrentProgress__progress"},this._l(this.data,(function(e,n){return t("li",{key:n},[t("AssignmentProgress",{attrs:{progress:e}})],1)})),0):t("div",{staticClass:"tui-competencyProfileCurrentProgress__empty"},[this._v("\n    "+this._s(this.$str(this.isCurrentUser?"no_current_assignments_self":"no_current_assignments_other","totara_competency"))+"\n  ")])])}),[],!1,null,null,null);"function"==typeof s&&s(o),o.options.__hasBlocks={script:!0,template:!0};t.default=o.exports},"8QXL":function(e,t,n){"use strict";n.r(t);var i=n("3fD/"),a=n.n(i),r=n("i3se"),s=n.n(r),o=n("TXEh"),c=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}},l=function(e,t,n,i){var a=e.offsetX,r=e.offsetY,s=n.helpers,o=t.ctx;if("bar"===t.config.type){var l=t.getElementsAtEvent(e);if(l.length>0){var u=l[0]._index;return void 0!==i.data.competencies[u]?i.data.competencies[u]:null}var d=t.scales["x-axis-0"],m=null;return d._computeLabelItems().forEach((function(e){var t=e.x,n=e.y,s=e.rotation,l=Math.abs(s)>=.001,u=function(e,t){var n=t.label,i=0;return e.font=t.font.fontString,void 0!==n&&""!=="".concat(n).trim()&&(i=e.measureText(n).width),{width:i,height:t.font.lineHeight}}(o,e),d=u.width,p=u.height;if(0!==d){var _=-(d+=4),v=_,f=(p+=4)/-2,y=p/-2,g=p/2,h=p/2,k={x:d/-2,y:-2},b={x:d/2,y:-2},N={x:b.x,y:p-2},S={x:k.x,y:p-2};if(l&&(k=c(_,f,s),b=c(0,y,s),N=c(0,g,s),S=c(v,h,s)),function(e,t,n,i,a,r,s,o,c,l){var u=Math.sqrt(Math.pow(n-a,2)+Math.pow(i-r,2)),d=Math.sqrt(Math.pow(a-s,2)+Math.pow(r-o,2)),m=Math.sqrt(Math.pow(s-c,2)+Math.pow(o-l,2)),p=Math.sqrt(Math.pow(c-n,2)+Math.pow(l-i,2)),_=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2)),v=Math.sqrt(Math.pow(a-e,2)+Math.pow(r-t,2)),f=Math.sqrt(Math.pow(s-e,2)+Math.pow(o-t,2)),y=Math.sqrt(Math.pow(c-e,2)+Math.pow(l-t,2)),g=(u+_+v)/2,h=(d+v+f)/2,k=(m+f+y)/2,b=(p+y+_)/2,N=Math.sqrt(g*(g-u)*(g-_)*(g-v)),S=Math.sqrt(h*(h-d)*(h-v)*(h-f)),C=Math.sqrt(k*(k-m)*(k-f)*(k-y)),A=Math.sqrt(b*(b-p)*(b-y)*(b-_));return Math.round(N+S+C+A)===Math.round(u*d)}(a,r,t+k.x,n+k.y,t+b.x,n+b.y,t+N.x,n+N.y,t+S.x,n+S.y)){i.debug&&(o.save(),o.strokeStyle="red",o.lineWidth=1,o.beginPath(),o.moveTo(t+k.x,n+k.y),o.lineTo(t+b.x,n+b.y),o.lineTo(t+N.x,n+N.y),o.lineTo(t+S.x,n+S.y),o.lineTo(t+k.x,n+k.y),o.stroke(),o.restore(),console.log("SCIENCE, B!"));var C=i.assignmentProgress.items.find((function(t){return t.competency.fullname===e.label}));C&&(m=C)}else i.debug&&console.log("OUTSIDE")}})),m?m.competency.id:null}for(var p=t.scale,_=p.options,v=_.ticks,f=v.display&&_.display?s.valueOrDefault(v.fontSize,n.defaults.global.defaultFontSize)+5:0,y=p.getDistanceFromCenterForValue(_.ticks.reverse?p.min:p.max),g=0;g<p.pointLabels.length;g++){var h=0===g?f/2:0,k=p.getPointPosition(g,y+h+5),b=p._pointLabelSizes[g],N=p.getIndexAngle(g),S=s.toDegrees(N),C="right";0===S||180===S?C="center":S<180&&(C="left");var A=0;90===S||270===S?A=b.h/2:(S>270||S<90)&&(A=b.h);var x=k.y-A-5,F=10+b.h,w=x+F,$=b.w+10,q=void 0;switch(C){case"center":q=k.x-$/2;break;case"left":q=k.x-5;break;case"right":q=k.x-$+5;break;default:console.log("ERROR: unknown textAlign "+C)}var I=q+$;if(i.debug&&(o.save(),o.strokeStyle="red",o.lineWidth=1,o.strokeRect(q,x,$,F),o.restore()),a>=q&&a<=I&&r<=w&&r>=x)return i.data.competencies[g]}return null},u={components:{ChartJs:a.a},props:{assignmentProgress:{required:!0,type:Object},userId:{type:Number,required:!0},isCurrentUser:{type:Boolean,required:!0},debug:{type:Boolean,default:!1}},data:function(){return{labels:this.assignmentProgress.items.map((function(e){return e.competency.fullname}))}},computed:{options:function(){var e=this,t={tooltips:{filter:function(e,t){var n=t.labels[e.index];return[""].indexOf(n.join(" ").trim())}},legend:{position:"bottom",display:!0,labels:{boxWidth:15,lineWidth:0,padding:25}}};if("radar"===this.type)t.scale={pointLabels:{fontSize:12,fontColor:s.a.getVar("color-state")},ticks:{beginAtZero:!0,display:!1,max:100}};else{var n=this.assignmentProgress.items.slice(0,1).pop(),i=this.assignmentProgress.items.slice(-1).pop();n&&(n=n.competency.fullname),i&&(i=i.competency.fullname,this.assignmentProgress.items.length<=2&&(i="   ")),t.scales={yAxes:[{ticks:{beginAtZero:!0,display:!1,fontSize:12,max:110}}],xAxes:[{ticks:{min:n,max:i,fontSize:12,fontColor:s.a.getVar("color-state")}}]}}return t.tooltips.callbacks={title:function(t){return Object(o.unique)(t.map((function(e){return e.index}))).map((function(t){return e.shorten(e.labels[t],60)})).reduce((function(e,t){return t.map((function(t){return e.push(t)})),e}),[])},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&t.datasets[e.datasetIndex].rawData[e.index]&&(n+=": "+t.datasets[e.datasetIndex].rawData[e.index].name),n}},t},data:function(){var e={labels:[],competencies:[],datasets:[{label:this.$str("achievement_level","totara_competency"),backgroundColor:s.a.getVar("color-chart-transparent-1"),borderColor:s.a.getVar("color-chart-background-1"),borderWidth:2,rawData:[],data:[],values:[]},{label:this.$str("proficiency_level","totara_competency"),backgroundColor:"bar"===this.type?"transparent":s.a.getVar("color-chart-transparent-4"),borderColor:s.a.getVar("color-chart-background-4"),pointBorderColor:s.a.getVar("color-chart-background-4"),pointBackgroundColor:s.a.getVar("color-chart-background-4"),borderWidth:2,steppedLine:"middle",rawData:[],data:[],values:[]}]};if(this.assignmentProgress.items.forEach(function(t){e.competencies.push(t.competency.id),e.labels.push(this.shorten(t.competency.fullname,35)),e.datasets[0].data.push(t.my_value.percentage),e.datasets[1].data.push(t.min_value.percentage),e.datasets[0].values.push(t.my_value.name),e.datasets[1].values.push(t.min_value.name),e.datasets[0].rawData.push(t.my_value),e.datasets[1].rawData.push(t.min_value)}.bind(this)),"bar"===this.type&&(e.datasets[1].type="line",e.datasets[0].data.length)){var t=e.datasets[1].data.slice(0,1).pop(),n=e.datasets[1].data.slice(-1).pop();if(this.assignmentProgress.items.length<=2)for(var i=this.assignmentProgress.items.length;i<=3;i++)e.datasets[0].data.push(null),e.datasets[1].data.push(n),e.competencies.push(null),3===i?e.labels.push("   "):e.labels.push(" ");e.datasets[0].rawData.push(null),e.datasets[0].rawData.unshift(null),e.datasets[1].rawData.push(null),e.datasets[1].rawData.unshift(null),e.datasets[0].data.push(null),e.datasets[0].data.unshift(null),e.datasets[1].data.unshift(t),e.datasets[1].data.push(n),e.competencies.push(null),e.competencies.unshift(null),e.labels.unshift(""),e.labels.push("")}return e},type:function(){return this.assignmentProgress.items.length<=2||this.assignmentProgress.items.length>=12?"bar":"radar"}},methods:{competencyLink:function(e){var t={competency_id:e};return this.isMine||(t.user_id=this.userId),this.$url("/totara/competency/profile/details/index.php",t)},chartHovered:function(e,t,n,i){var a=this;requestAnimationFrame((function(){l(e,n,i,a)?e.target.style.cursor="pointer":e.target.style.cursor="auto"}))},chartClicked:function(e,t,n,i){var a=l(e,n,i,this);a&&(window.location.href=this.competencyLink(a))},shorten:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",a=2,r=[],s=0;if(e.length<=t)return[e.trim()];for(var o=0;o<a;o++){if(s+t>=e.length){r.push(e.substr(s).trim());break}n=e.lastIndexOf(i,s+t);var c=e.substr(s,n-s).trim();s=n+1,o===a-1&&(c+=String.fromCharCode(8230)),r.push(c)}return r}}},d=n("KHd+"),m=function(e){e.options.__langStrings={totara_competency:["proficient","not_proficient","proficiency_level","achievement_level"]}},p=Object(d.a)(u,(function(){var e=this.$createElement;return(this._self._c||e)("ChartJs",{attrs:{type:this.type,data:this.data,options:this.options,header:this.assignmentProgress.name},on:{click:this.chartClicked,hover:this.chartHovered}})}),[],!1,null,null,null);"function"==typeof m&&m(p),p.options.__hasBlocks={script:!0,template:!0};t.default=p.exports},"8cak":function(e,t){e.exports=tui.require("tui/components/progresstracker/ProgressTrackerCircle")},"8n92":function(e,t){e.exports=tui.require("totara_competency/components/profile/MyRatingCell")},"9G+f":function(e,t){e.exports=tui.require("tui/components/popover/Popover")},AENL:function(e,t){e.exports=tui.require("totara_competency/components/user_assignment/SelectionTable")},AFyC:function(e,t){e.exports=tui.require("totara_competency/components/AssignmentProgress")},BAjG:function(e,t,n){!function(){"use strict";"undefined"!=typeof tui&&tui._bundle.isLoaded("totara_competency")?console.warn('[tui bundle] The bundle "totara_competency" is already loaded, skipping initialisation.'):(tui._bundle.register("totara_competency"),tui._bundle.addModulesFromContext("totara_competency",n("vMqX")),tui._bundle.addModulesFromContext("totara_competency/components",n("W+j5")),tui._bundle.addModulesFromContext("totara_competency/pages",n("/gTP")))}()},BbQS:function(e,t){},Bnag:function(e,t){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},BxDI:function(e,t){e.exports=tui.require("tui/components/decor/Separator")},"C+/B":function(e,t){e.exports=tui.require("tui/components/modal/ConfirmationModal")},C4bi:function(e,t){e.exports=tui.require("totara_competency/components/details/ProficientStatus")},C4mR:function(e,t){},CAFL:function(e,t,n){"use strict";n.r(t);var i=n("3s/G"),a=n.n(i),r=n("bAb2"),s=n.n(r),o=n("1LXY"),c=n.n(o),l=n("g8/U"),u=n.n(l),d={components:{AchievementConfiguration:a.a,General:s.a,LinkedCourses:c.a,PageHeading:u.a},props:{competencyId:{type:Number,required:!0},competencyName:{type:String,required:!0},frameworkId:{type:Number,required:!0},frameworkName:{type:String,required:!0},performEnabled:{type:Boolean,required:!0}},computed:{backLinkUrl:function(){return this.$url("/totara/hierarchy/index.php",{prefix:"competency",frameworkid:this.frameworkId})}}},m=(n("nvA/"),n("KHd+")),p=function(e){e.options.__langStrings={totara_competency:["back_to"],totara_hierarchy:["competency_title"]}},_=Object(m.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencySummary"},[n("a",{attrs:{href:e.backLinkUrl}},[e._v("\n    "+e._s(e.$str("back_to","totara_competency",e.frameworkName))+"\n  ")]),e._v(" "),n("div",{staticClass:"tui-competencySummary__content"},[n("PageHeading",{attrs:{title:e.$str("competency_title","totara_hierarchy",{framework:e.frameworkName,fullname:e.competencyName})}}),e._v(" "),n("General",{attrs:{"competency-id":e.competencyId}}),e._v(" "),n("LinkedCourses",{attrs:{"competency-id":e.competencyId}}),e._v(" "),e.performEnabled?n("AchievementConfiguration",{attrs:{"competency-id":e.competencyId}}):e._e()],1)])}),[],!1,null,null,null);"function"==typeof p&&p(_),_.options.__hasBlocks={script:!0,template:!0};t.default=_.exports},D6uX:function(e,t){e.exports=tui.require("tui/components/icons/List")},D9If:function(e,t){e.exports=tui.require("tui/components/grid/GridItem")},DZZz:function(e,t){},E0Ja:function(e,t){e.exports=tui.require("totara_competency/components/summary/AchievementConfigurationCriteria")},EbDI:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},FBvN:function(e,t){e.exports=tui.require("tui/components/filters/SearchFilter")},FKgf:function(e,t){},"H8/h":function(e,t,n){"use strict";n.r(t);var i=n("yXPU"),a=n.n(i),r=n("RIqP"),s=n.n(r),o=n("o0o1"),c=n.n(o),l=n("xNwe"),u=n.n(l),d=n("vF5l"),m=n.n(d),p=n("5h9J"),_=n.n(p),v=n("J1fj"),f=n.n(v),y=n("C+/B"),g=n.n(y),h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"totara_competency_create_user_assignments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_ids"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_create_user_assignments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}},{kind:"Argument",name:{kind:"Name",value:"competency_ids"},value:{kind:"Variable",name:{kind:"Name",value:"competency_ids"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]},k=n("554a"),b=n.n(k),N=n("NAOU"),S=n.n(N),C=n("D9If"),A=n.n(C),x=n("JXQf"),F=n.n(x),w=n("+MEP"),$=n.n(w),q=n("3kcf"),I=n.n(q),D=n("g8/U"),L=n.n(D),V=n("FBvN"),T=n.n(V),P=n("49h4"),O=n.n(P),M=n("AENL"),B=n.n(M),E=n("vyVp"),j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_user_assignable_competencies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"totara_competency_self_assigned_competencies_filter"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"order_by"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"order_dir"}},type:{kind:"NamedType",name:{kind:"Name",value:"totara_competency_order_dir"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cursor"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_user_assignable_competencies"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}},{kind:"Argument",name:{kind:"Name",value:"order_by"},value:{kind:"Variable",name:{kind:"Name",value:"order_by"}}},{kind:"Argument",name:{kind:"Name",value:"order_dir"},value:{kind:"Variable",name:{kind:"Name",value:"order_dir"}}},{kind:"Argument",name:{kind:"Name",value:"cursor"},value:{kind:"Variable",name:{kind:"Name",value:"cursor"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_assignments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_group_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reason_assigned"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"next_cursor"},arguments:[],directives:[]}]}}]}}]},H=n("wMJ/"),U={components:{Basket:u.a,Button:m.a,ButtonIcon:_.a,ClearIcon:f.a,ConfirmationModal:g.a,FilterSidePanel:b.a,Grid:S.a,GridItem:A.a,Loader:F.a,MiniProfileCard:$.a,MultiSelectFilter:I.a,PageHeading:L.a,SearchFilter:T.a,SelectFilter:O.a,SelectionTable:B.a},props:{basePageHeading:{required:!0,type:String},goBackLink:{required:!0,type:String},goBackText:{required:!0,type:String},frameworks:{required:!0,type:Array},types:{required:!0,type:Array},userId:{required:!0,type:Number},isMine:{required:!0,type:Boolean}},data:function(){return{allSelected:!1,selectedItems:[],isViewingSelections:!1,isShowingConfirmationModal:!1,isSaving:!1,data:{items:[],total:null,next_cursor:null},frameworkSelection:null,filters:{assignment_status:"",text:"",type:[]},activeFilterCount:0,assignmentStatusesOptions:[{id:"",label:this.$str("any","totara_competency")},{id:1,label:this.$str("currently_assigned","totara_competency")},{id:0,label:this.$str("not_assigned","totara_competency")}],basketActions:[{label:this.$str("assign_competencies","totara_competency"),action:this.showConfirmationModal}],user:null}},computed:{pageHeading:function(){return this.isViewingSelections?this.$str("view_selected_competencies","totara_competency"):this.basePageHeading},hasLoadedCompetencies:function(){return this.data&&null!==this.data.total},firstPageQueryVariables:function(){return{user_id:this.userId,filters:this.filtersForQuery,cursor:null}},subsequentPageQueryVariables:function(){return{user_id:this.userId,filters:this.filtersForQuery,cursor:this.data.next_cursor}},filtersForQuery:function(){return Object.assign({},this.filters,{framework:this.frameworkSelection})},hasEmptyResult:function(){return this.data&&0===this.data.total},isViewingDefaultOptions:function(){return null===this.frameworkSelection&&0===this.activeFilterCount},competencyTypeOptions:function(){return this.types.map((function(e){return{id:e.id,label:e.name}}))},frameworkOptions:function(){var e={id:null,label:this.$str("filter_framework_all_frameworks","totara_competency")},t=this.frameworks.map((function(e){return{id:e.id,label:e.name}}));return[e].concat(s()(t))},shouldShowLoadMoreButton:function(){return this.data.items.length>0&&""!==this.data.next_cursor},selectionDescription:function(){return 1===this.selectedItems.length?this.$str("one_competency_selected","totara_competency",this.selectedItems.length):this.$str("n_competencies_selected","totara_competency",this.selectedItems.length)},buttonText:function(){return this.isViewingSelections?this.$str("back_to_all_competencies","totara_competency"):this.$str("viewselected","totara_core")}},watch:{frameworkSelection:"applyFilter",filters:{deep:!0,handler:"applyFilter"}},methods:{viewSelections:function(){var e=this;return a()(c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$apollo.queries.data.refetch({user_id:e.userId,filters:{ids:e.selectedItems}});case 2:e.isViewingSelections=!0;case 3:case"end":return t.stop()}}),t)})))()},clearSelections:function(){var e=this;return a()(c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.resetFilters(),e.selectedItems=[];case 2:case"end":return t.stop()}}),t)})))()},resetFilters:function(){this.filters=this.$options.data.call(this).filters},showConfirmationModal:function(){this.isShowingConfirmationModal=!0},confirmAssignment:function(){var e=this;return a()(c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.tryAssign();case 2:e.isShowingConfirmationModal=!1;case 3:case"end":return t.stop()}}),t)})))()},tryAssign:function(){var e=this;return a()(c.a.mark((function t(){var n,i,a;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isSaving=!0,t.prev=1,t.next=4,e.assign();case 4:n=t.sent,i=n.data,e.isSaving=!1,0===(a=i.totara_competency_create_user_assignments.length)?e.showErrorNotification():window.location.href=e.$url(e.goBackLink,{assign_success:a}),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(1),e.showErrorNotification(),e.isSaving=!1;case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))()},assign:function(){return this.$apollo.mutate({mutation:h,variables:{user_id:this.userId,competency_ids:this.selectedItems},refetchAll:!1})},applyFilter:function(){var e=this;return a()(c.a.mark((function t(){var n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$apollo.queries.data.refetch(e.firstPageQueryVariables);case 2:return n=t.sent,e.isViewingSelections=!1,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},loadMore:function(){this.$apollo.queries.data.fetchMore({variables:this.subsequentPageQueryVariables,updateQuery:function(e,t){var n=t.fetchMoreResult;e=e.totara_competency_user_assignable_competencies;var i=n.totara_competency_user_assignable_competencies;return{totara_competency_user_assignable_competencies:{__typename:e.__typename,items:[].concat(s()(e.items),s()(i.items)),total:i.total,next_cursor:i.next_cursor}}}})},showErrorNotification:function(){Object(E.notify)({message:this.$str("error_generic_mutation","totara_competency"),type:"error"})},selectOrFilter:function(){this.isViewingSelections?this.applyFilter():this.viewSelections()}},apollo:{data:function(){return{query:j,variables:this.firstPageQueryVariables,update:function(e){return e.totara_competency_user_assignable_competencies}}},user:{query:H.a,variables:function(){return{user_id:this.userId}},update:function(e){return e.totara_competency_user},skip:function(){return this.isMine}}}},z=(n("dNVj"),n("KHd+")),G=function(e){e.options.__langStrings={totara_core:["loadmore","search","viewselected"],totara_hierarchy:["assign","competencyframeworks","competencytypes"],totara_competency:["all","any","assign_competencies","back_to_all_competencies","competencies","confirm_generic","currently_assigned","error_generic_mutation","filter_framework_all_frameworks","filter_competencies","header_assignment_status","n_competencies_selected","no_competency_to_assign","not_assigned","one_competency_selected","view_selected_competencies"]}},K=Object(z.a)(U,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencySelfAssignment"},[n("div",{staticClass:"tui-competencySelfAssignment__header"},[!e.isMine&&e.user?n("MiniProfileCard",{attrs:{display:e.user.card_display}}):e._e(),e._v(" "),n("div",[n("a",{attrs:{href:e.goBackLink}},[e._v("\n        "+e._s(e.goBackText)+"\n      ")])]),e._v(" "),n("PageHeading",{attrs:{title:e.pageHeading}})],1),e._v(" "),n("Grid",{staticClass:"tui-competencySelfAssignment__actions",attrs:{"stack-at":900}},[n("GridItem",{attrs:{units:3}},[e.frameworks.length>1&&!e.isViewingSelections?n("SelectFilter",{attrs:{label:e.$str("competencyframeworks","totara_hierarchy"),"show-label":!1,options:e.frameworkOptions},model:{value:e.frameworkSelection,callback:function(t){e.frameworkSelection=t},expression:"frameworkSelection"}}):e._e()],1),e._v(" "),n("GridItem",{attrs:{units:6}},[n("Basket",{attrs:{items:e.selectedItems,"bulk-actions":e.basketActions},scopedSlots:e._u([{key:"status",fn:function(t){var i=t.empty;return[e.isViewingSelections&&!i?n("ButtonIcon",{attrs:{styleclass:{small:!0},text:e.$str("clearall","totara_core"),"aria-label":e.$str("clearall","totara_core")},on:{click:e.clearSelections}},[n("ClearIcon")],1):e._e()]}},{key:"actions",fn:function(t){return[t.empty?e._e():n("Button",{attrs:{styleclass:{transparent:!0},text:e.buttonText},on:{click:e.selectOrFilter}})]}}])})],1)],1),e._v(" "),n("Grid",{attrs:{"stack-at":900}},[e.isViewingSelections?e._e():n("GridItem",{attrs:{units:3}},[n("FilterSidePanel",{attrs:{title:e.$str("filter_competencies","totara_competency")},on:{"active-count-change":function(t){e.activeFilterCount=t}},model:{value:e.filters,callback:function(t){e.filters=t},expression:"filters"}},[n("SearchFilter",{attrs:{label:e.$str("search","totara_core"),placeholder:e.$str("search","totara_core"),"show-label":!1,stacked:!0},model:{value:e.filters.text,callback:function(t){e.$set(e.filters,"text",t)},expression:"filters.text"}}),e._v(" "),e.types.length>1?n("MultiSelectFilter",{attrs:{title:e.$str("competencytypes","totara_hierarchy"),"show-label":!0,options:e.competencyTypeOptions},model:{value:e.filters.type,callback:function(t){e.$set(e.filters,"type",t)},expression:"filters.type"}}):e._e(),e._v(" "),n("SelectFilter",{attrs:{label:e.$str("header_assignment_status","totara_competency"),"show-label":!0,stacked:!0,options:e.assignmentStatusesOptions},model:{value:e.filters.assignment_status,callback:function(t){e.$set(e.filters,"assignment_status",t)},expression:"filters.assignment_status"}})],1)],1),e._v(" "),n("GridItem",{attrs:{units:9,grows:""}},[n("Loader",{attrs:{loading:e.$apollo.loading}},[e.hasLoadedCompetencies?n("SelectionTable",{attrs:{competencies:e.data.items,"total-competency-count":e.data.total},model:{value:e.selectedItems,callback:function(t){e.selectedItems=t},expression:"selectedItems"}}):n("p"),e._v(" "),e.shouldShowLoadMoreButton?n("Button",{staticClass:"tui-competencySelfAssignment__loadMore",attrs:{text:e.$str("loadmore","totara_core")},on:{click:e.loadMore}}):e._e()],1)],1)],1),e._v(" "),n("ConfirmationModal",{attrs:{title:e.$str("assign_competencies","totara_competency"),open:e.isShowingConfirmationModal,loading:e.isSaving},on:{confirm:e.confirmAssignment,cancel:function(t){e.isShowingConfirmationModal=!1}}},[n("p",[e._v("\n      "+e._s(e.selectionDescription)+"\n    ")]),e._v(" "),n("p",[e._v("\n      "+e._s(e.$str("confirm_generic","totara_competency"))+"\n    ")])])],1)}),[],!1,null,null,null);"function"==typeof G&&G(K),K.options.__hasBlocks={script:!0,template:!0};t.default=K.exports},HZ23:function(e,t){e.exports=tui.require("tui_charts/components/PercentageDoughnut")},HjqD:function(e,t){},Ijbi:function(e,t,n){var i=n("WkPL");e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.default=e.exports,e.exports.__esModule=!0},IqB1:function(e,t){e.exports=tui.require("tui/components/collapsible/Collapsible")},IvBL:function(e,t,n){"use strict";n.r(t);var i=n("JThd"),a={components:{CheckSuccess:n.n(i).a},props:{scale:{required:!0,type:Object},showDescriptions:{type:Boolean,default:!1},reverseValues:{type:Boolean,default:!1}},computed:{scaleValues:function(){return this.reverseValues?this.scale.values.slice(0).reverse():this.scale.values}},methods:{showDescription:function(e){return this.showDescriptions&&null!=e&&e.length>0}}},r=(n("pFDD"),n("KHd+")),s=function(e){e.options.__langStrings={totara_competency:["is_not_proficient_value","is_proficient_value","rating_scale"]}},o=Object(r.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyRatingScaleOverview"},[n("p",{staticClass:"tui-competencyRatingScaleOverview__title",attrs:{id:e.$id("rating-scale-title")}},[e._v("\n    "+e._s(e.$str("rating_scale","totara_competency"))+"\n  ")]),e._v(" "),n("ol",{staticClass:"tui-competencyRatingScaleOverview__list",attrs:{"aria-labelledby":e.$id("rating-scale-title")}},e._l(e.scaleValues,(function(t){return n("li",{key:t.id,staticClass:"tui-competencyRatingScaleOverview__list-item"},[n("div",{staticClass:"tui-competencyRatingScaleOverview__proficientStatus"},[t.proficient?n("CheckSuccess",{attrs:{size:"200"}}):e._e()],1),e._v(" "),n("div",{staticClass:"tui-competencyRatingScaleOverview__scaleValue"},[n("p",{staticClass:"tui-competencyRatingScaleOverview__scaleValue-name"},[e._v("\n          "+e._s(t.name)+"\n        ")]),e._v(" "),e.showDescription(t.description)?n("p",{staticClass:"tui-competencyRatingScaleOverview__scaleValue-description",domProps:{innerHTML:e._s(t.description)}}):e._e(),e._v(" "),n("span",{staticClass:"sr-only"},[e._v("\n          "+e._s(t.proficient?e.$str("is_proficient_value","totara_competency"):e.$str("is_not_proficient_value","totara_competency"))+"\n        ")])])])})),0)])}),[],!1,null,null,null);"function"==typeof s&&s(o),o.options.__hasBlocks={script:!0,template:!0};t.default=o.exports},J1fj:function(e,t){e.exports=tui.require("tui/components/icons/Clear")},J4zp:function(e,t,n){var i=n("wTVA"),a=n("m0LI"),r=n("ZhPi"),s=n("wkBT");e.exports=function(e,t){return i(e)||a(e,t)||r(e,t)||s()},e.exports.default=e.exports,e.exports.__esModule=!0},JThd:function(e,t){e.exports=tui.require("tui/components/icons/CheckSuccess")},JXQf:function(e,t){e.exports=tui.require("tui/components/loading/Loader")},KGot:function(e,t){e.exports=tui.require("tui/components/datatable/Cell")},"KHd+":function(e,t,n){"use strict";function i(e,t,n,i,a,r,s,o){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):a&&(c=o?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return i}))},KUeq:function(e,t,n){"use strict";n.r(t);var i=n("fCWf"),a=n.n(i),r=n("zdti"),s=n.n(r),o={components:{ActionLink:a.a,NotificationBanner:s.a},props:{display:{type:Boolean,default:!0},selfAssignmentUrl:{required:!0,type:String},isMine:Boolean,isAssignEnabled:Boolean}},c=(n("acdx"),n("KHd+")),l=function(e){e.options.__langStrings={totara_competency:["assign_competencies","self_assign_competencies","no_competencies_assigned"]}},u=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.display?n("div",{staticClass:"tui-noCompetencyAssignments"},[n("NotificationBanner",{attrs:{type:"warning",message:e.$str("no_competencies_assigned","totara_competency")}}),e._v(" "),e.isAssignEnabled?n("div",{staticClass:"tui-noCompetencyAssignments__search-competencies"},[n("ActionLink",{attrs:{href:e.selfAssignmentUrl,text:e.isMine?e.$str("self_assign_competencies","totara_competency"):e.$str("assign_competencies","totara_competency"),styleclass:{primary:!0}}})],1):e._e()],1):e._e()}),[],!1,null,null,null);"function"==typeof l&&l(u),u.options.__hasBlocks={script:!0,template:!0};t.default=u.exports},Lany:function(e,t){e.exports=tui.require("totara_competency/components/details/Assignment")},MhKF:function(e,t){e.exports=tui.require("tui/components/icons/AddUser")},Mnur:function(e,t){e.exports=tui.require("tui/components/modal/ModalPresenter")},NAOU:function(e,t){e.exports=tui.require("tui/components/grid/Grid")},NUDN:function(e,t){e.exports=tui.require("totara_competency/components/profile/CompetencyCharts")},OBdB:function(e,t,n){"use strict";n.r(t);var i=n("59Wj"),a=n.n(i),r=n("49h4"),s=n.n(r),o=n("FBvN"),c=n.n(o),l={components:{FilterBar:a.a,SelectFilter:s.a,SearchFilter:c.a},props:{isForArchived:{required:!0,type:Boolean},defaultFilterValues:{type:Object,default:function(){return{search:"",proficient:null}}},defaultOrder:{required:!1,type:String,default:"alphabetical"}},data:function(){return{filters:{search:"",proficient:null},order:"alphabetical"}},computed:{proficientOptions:function(){return[{id:null,label:this.$str("all","totara_competency")},{id:!0,label:this.$str("proficient","totara_competency")},{id:!1,label:this.$str("not_proficient","totara_competency")}]},orderOptions:function(){return[{id:"alphabetical",label:this.$str("sort_alphabetical","totara_competency")},!this.isForArchived&&{id:"recently-assigned",label:this.$str("sort_recently_assigned","totara_competency")},this.isForArchived&&{id:"recently-archived",label:this.$str("sort_recently_archived","totara_competency")}].filter(Boolean)}},watch:{defaultFilters:function(e){this.filters.search=e.search,this.filters.proficient=e.proficient},defaultOrder:function(e){this.order=e}},mounted:function(){this.filters.search=this.defaultFilterValues.search,this.filters.proficient=this.defaultFilterValues.proficient,this.order=this.defaultOrder},methods:{filtersUpdated:function(){this.$emit("filters-updated",this.filters)},orderUpdated:function(){this.$emit("order-updated",this.order)}}},u=(n("2z5M"),n("KHd+")),d=function(e){e.options.__langStrings={admin:["filters"],core:["search","sortby"],totara_competency:["proficient","not_proficient","all","sort_alphabetical","sort_recently_archived","sort_recently_assigned","proficiency_status","filter_competencies"]}},m=Object(u.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("FilterBar",{staticClass:"tui-competencyProfileListFilters",attrs:{title:this.$str("filter_competencies","totara_competency")},scopedSlots:e._u([{key:"filters-left",fn:function(t){var i=t.stacked;return[e.isForArchived?e._e():n("SelectFilter",{attrs:{label:e.$str("proficiency_status","totara_competency"),"show-label":!0,options:e.proficientOptions,stacked:i},on:{input:e.filtersUpdated},model:{value:e.filters.proficient,callback:function(t){e.$set(e.filters,"proficient",t)},expression:"filters.proficient"}}),e._v(" "),n("SearchFilter",{attrs:{label:e.$str("search","core"),stacked:i},on:{input:e.filtersUpdated},model:{value:e.filters.search,callback:function(t){e.$set(e.filters,"search",t)},expression:"filters.search"}})]}},{key:"filters-right",fn:function(t){var i=t.stacked;return[n("SelectFilter",{attrs:{label:e.$str("sortby","core"),"show-label":!0,stacked:i,options:e.orderOptions},on:{input:e.orderUpdated},model:{value:e.order,callback:function(t){e.order=t},expression:"order"}})]}}]),model:{value:e.filters,callback:function(t){e.filters=t},expression:"filters"}})}),[],!1,null,null,null);"function"==typeof d&&d(m),m.options.__hasBlocks={script:!0,template:!0};t.default=m.exports},PNtU:function(e,t){e.exports=tui.require("tui/components/lozenge/Lozenge")},Q2E1:function(e,t){e.exports=tui.require("totara_competency/components/profile/competency_list/ArchivedList")},QPG3:function(e,t){e.exports=tui.require("totara_competency/components/details/ActivityLog")},R6ln:function(e,t){e.exports=tui.require("totara_competency/components/profile/competency_list/CurrentList")},RIqP:function(e,t,n){var i=n("Ijbi"),a=n("EbDI"),r=n("ZhPi"),s=n("Bnag");e.exports=function(e){return i(e)||a(e)||r(e)||s()},e.exports.default=e.exports,e.exports.__esModule=!0},SBbP:function(e,t,n){"use strict";n.r(t);var i=n("7OoD"),a=n.n(i),r=n("59Wj"),s=n.n(r),o=n("JXQf"),c=n.n(o),l=n("49h4"),u=n.n(l),d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_activity_log"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NamedType",name:{kind:"Name",value:"totara_competency_activity_log_filters"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_activity_log"},arguments:[{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}},{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"date"},name:{kind:"Name",value:"timestamp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATELONG"}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"datetime"},name:{kind:"Name",value:"timestamp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATETIMELONG"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient_status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_group_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reason_assigned"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assignment_action"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]},m={components:{ActivityLogTable:a.a,FilterBar:s.a,Loader:c.a,SelectFilter:u.a},props:{userId:{required:!0,type:Number},competencyId:{required:!0,type:Number}},data:function(){return{log:[],assignments:[],assignmentFilter:0}},apollo:{log:{query:d,variables:function(){return{user_id:this.userId,competency_id:this.competencyId,filters:this.selectedFilter}},update:function(e){var t=e.totara_competency_activity_log;return this.assignments=this.refreshAssignmentList(t),t}}},computed:{selectedFilter:function(){return this.assignmentFilter?{assignment_id:this.assignmentFilter}:{}}},methods:{refreshAssignmentList:function(e){var t=this,n={};return e.forEach((function(e){null!=e.assignment&&(n[e.assignment.id]={id:e.assignment.id,label:t.getFilterLabel(e)})})),(n=Object.values(n)).length>=this.assignments.length?(n.unshift({label:this.$str("all","core"),id:0}),n):this.assignments},getFilterLabel:function(e){var t=e.assignment.progress_name;if(this.isDirectlyAssigned(e.assignment)){var n={progress_name:e.assignment.progress_name,user_fullname_role:e.assignment.reason_assigned};t=this.$str("progress_name_by_user","totara_competency",n)}return t},isDirectlyAssigned:function(e){return"user"===e.user_group_type&&("admin"===e.type||"other"===e.type)}}},p=(n("Y2OC"),n("KHd+")),_=function(e){e.options.__langStrings={core:["all"],totara_competency:["activity_log","activity_log_filter","assignment","progress_name_by_user"]}},v=Object(p.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyDetailActivityLog"},[n("h4",{staticClass:"tui-competencyDetailActivityLog__title"},[e._v("\n    "+e._s(e.$str("activity_log","totara_competency"))+"\n  ")]),e._v(" "),e.assignments.length>1?n("FilterBar",{attrs:{title:e.$str("activity_log_filter","totara_competency")},scopedSlots:e._u([{key:"filters-left",fn:function(){return[n("SelectFilter",{attrs:{label:e.$str("assignment","totara_competency"),name:"activity_log_select",options:e.assignments,"show-label":!0,stacked:!1},model:{value:e.assignmentFilter,callback:function(t){e.assignmentFilter=t},expression:"assignmentFilter"}})]},proxy:!0}],null,!1,3296399798)}):e._e(),e._v(" "),n("Loader",{attrs:{loading:e.$apollo.loading}},[n("ActivityLogTable",{attrs:{log:e.log}})],1)],1)}),[],!1,null,null,null);"function"==typeof _&&_(v),v.options.__hasBlocks={script:!0,template:!0};t.default=v.exports},ShU0:function(e,t,n){"use strict";n.r(t);var i=n("Zoit"),a=n.n(i),r=n("IqB1"),s=n.n(r),o=n("PNtU"),c=n.n(o),l=n("k7/G"),u=n.n(l),d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_scale_achievements"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assignment_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_scale_achievements"},arguments:[{kind:"Argument",name:{kind:"Name",value:"assignment_id"},value:{kind:"Variable",name:{kind:"Name",value:"assignment_id"}}},{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"scale_value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numericscore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"achieved"},name:{kind:"Name",value:"has_scale_value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"date_achieved"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATE"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"pathway"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"instance_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pathway_type"},arguments:[],directives:[]}]}}]}}]}}]}}]},m={components:{AchievementLayout:a.a,Collapsible:s.a,Lozenge:c.a,OrBox:u.a},inheritAttrs:!1,props:{userId:{required:!0,type:Number},assignmentId:{required:!0,type:Number},type:String},data:function(){return{achievements:[],achievementComponents:[],itemsLoaded:0}},apollo:{achievements:{query:d,context:{batch:!0},variables:function(){return{assignment_id:this.assignmentId,user_id:this.userId}},update:function(e){var t=this,n=e.totara_competency_scale_achievements,i=[],a=0;return n.forEach((function(e){var n={achieved:!1,items:[],scale_value:e.scale_value};e.items.forEach((function(e){var i="pathway_".concat(e.pathway.pathway_type,"/components/achievements/AchievementDisplay");a+=1,n.items.push({component:tui.asyncComponent(i),props:{assignmentId:t.assignmentId,instanceId:parseInt(e.pathway.instance_id),userId:t.userId,dateAchieved:e.date_achieved}}),e.achieved&&(n.achieved=!0)})),0===a&&t.$emit("loaded"),i.push(n)})),i}}},computed:{numberOfItems:function(){return this.achievements?this.achievements.reduce((function(e,t){return e+t.items.length}),0):0}},watch:{itemsLoaded:function(e){e===this.numberOfItems&&this.$emit("loaded")}},methods:{isLastItem:function(e,t){return e===t.length-1},itemLoaded:function(){this.itemsLoaded+=1}}},p=(n("TV6p"),n("KHd+")),_=function(e){e.options.__langStrings={totara_competency:["criteria_fulfilled","work_towards_level"]}},v=Object(p.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyAchievementsScale"},e._l(e.achievements,(function(t,i){return n("div",{key:i},[n("Collapsible",{attrs:{"always-render":!0,"initial-state":!t.achieved,label:e.$str("work_towards_level","totara_competency")},scopedSlots:e._u([{key:"label-extra",fn:function(){return[n("span",{staticClass:"tui-competencyAchievementsScale__title"},[e._v("\n          "+e._s(t.scale_value.name)+"\n        ")])]},proxy:!0},t.achieved?{key:"collapsible-side-content",fn:function(){return[n("Lozenge",{attrs:{text:e.$str("criteria_fulfilled","totara_competency"),type:"success"}})]},proxy:!0}:null,{key:"default",fn:function(i){var a=i.expanded;return[e._l(t.items,(function(i,r){return[n("div",{key:r,class:"tui-competencyAchievementsScale__item"},[n(i.component,e._b({tag:"component",attrs:{displayed:a},on:{loaded:e.itemLoaded}},"component",i.props,!1))],1),e._v(" "),e.isLastItem(r,t.items)?e._e():n("div",{key:r+"orseparator",staticClass:"tui-competencyAchievementsScale__separator"},[n("AchievementLayout",{attrs:{"no-borders":!0},scopedSlots:e._u([{key:"left",fn:function(){return[n("OrBox")]},proxy:!0}],null,!0)})],1)]}))]}}],null,!0)})],1)})),0)}),[],!1,null,null,null);"function"==typeof _&&_(v),v.options.__hasBlocks={script:!0,template:!0};t.default=v.exports},Sn4P:function(e,t){e.exports=tui.require("totara_competency/components/achievements/Achievements")},TV6p:function(e,t){},TXEh:function(e,t){e.exports=tui.require("tui/util")},"Tz/z":function(e,t,n){"use strict";n.r(t);var i=n("NAOU"),a=n.n(i),r=n("D9If"),s=n.n(r),o=n("dtfu"),c=n.n(o),l=n("yuC0"),u=n.n(l),d={components:{Grid:a.a,GridItem:s.a,Responsive:c.a,IndividualAssignmentProgress:u.a},props:{data:{required:!0,type:Object},userId:{type:Number,required:!0},isCurrentUser:{type:Boolean,required:!0}}},m=(n("cfoa"),n("KHd+")),p=Object(m.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Responsive",{attrs:{breakpoints:[{name:"small",boundaries:[0,1330]},{name:null,boundaries:[1331,1331]}]},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.currentBoundaryName;return[e.data.items&&e.data.items.length>0?n("Grid",{attrs:{"stack-at":1329}},e._l(e.data.items,(function(t,a){return n("GridItem",{key:a+t.name+t.overall_progress,attrs:{units:6}},[n("div",{staticClass:"tui-competencyCharts__chart",class:{"tui-competencyCharts__chart--center":"small"==i}},[n("IndividualAssignmentProgress",{attrs:{"assignment-progress":t,"user-id":e.userId,"is-current-user":e.isCurrentUser}})],1)])})),1):e._e()]}}])})}),[],!1,null,null,null);p.options.__hasBlocks={script:!0,template:!0};t.default=p.exports},"UW6/":function(e,t,n){"use strict";n.r(t);var i=n("yikf"),a=n.n(i),r=n("5qAA"),s=n.n(r),o=n("KGot"),c=n.n(o),l=n("JThd"),u=n.n(l),d=n("8n92"),m=n.n(d),p={components:{Table:a.a,HeaderCell:s.a,Cell:c.a,CheckIcon:u.a,MyRatingCell:m.a},props:{competencies:{required:!0,type:Array},baseUrl:{required:!0,type:String},userId:{required:!0,type:Number},scales:{required:!0,type:Array}},methods:{competencyDetailsLink:function(e){var t={competency_id:e.competency.id};return this.isMine||(t.user_id=this.userId),this.$url("".concat(this.baseUrl,"/details/index.php"),t)}}},_=n("KHd+"),v=function(e){e.options.__langStrings={core:["no","yes"],totara_competency:["achievement_level","header_competency","proficient"]}},f=Object(_.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Table",{attrs:{data:e.competencies},scopedSlots:e._u([{key:"header-row",fn:function(){return[n("HeaderCell",{attrs:{size:"10"}},[e._v("\n      "+e._s(e.$str("header_competency","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"2",align:"center"}},[e._v("\n      "+e._s(e.$str("proficient","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"3"}},[e._v("\n      "+e._s(e.$str("achievement_level","totara_competency"))+"\n    ")])]},proxy:!0},{key:"row",fn:function(t){var i=t.row;return[n("Cell",{attrs:{size:"10","column-header":e.$str("header_competency","totara_competency")}},[n("a",{attrs:{href:e.competencyDetailsLink(i)}},[e._v(e._s(i.competency.fullname))])]),e._v(" "),n("Cell",{attrs:{size:"2",align:"center","column-header":e.$str("proficient","totara_competency")}},[i.items[0].my_value&&i.items[0].my_value.proficient?n("CheckIcon",{attrs:{size:"200",alt:e.$str("yes","core")}}):n("span",[n("span",{attrs:{"aria-hidden":!0}},[e._v("-")]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$str("no","core")))])])],1),e._v(" "),n("Cell",{attrs:{size:"3","column-header":e.$str("achievement_level","totara_competency")}},[i.items[0].my_value?n("MyRatingCell",{attrs:{value:i.items[0].my_value,scales:e.scales}}):e._e()],1)]}}])})}),[],!1,null,null,null);"function"==typeof v&&v(f),f.options.__hasBlocks={script:!0,template:!0};t.default=f.exports},UjaO:function(e,t){e.exports=tui.require("tui/components/icons/Archive")},VFXp:function(e,t,n){"use strict";n.r(t);var i=n("49h4"),a={components:{SelectFilter:n.n(i).a},props:{filters:{type:Array,required:!0},value:{type:Object,required:!0},disable:{type:Boolean,default:!1}},computed:{displayFilters:function(){return!(1===this.filters.length&&1===this.filters[0].status)},filterOptions:function(){var e=[];return this.filters.forEach((function(t){e.push({name:t.name,id:t.id,value:t.value}),t.filters.forEach((function(t){return e.push(Object.assign({},t,{name:"   "+t.name}))}))})),e}},methods:{toggle:function(){this.open=!this.open},filterUpdated:function(e){var t=this.filterOptions.find((function(t){return t.id==e}));this.$emit("input",t&&t.value)}}},r=n("KHd+"),s=function(e){e.options.__langStrings={totara_competency:["filter_viewing_by_assignment","viewing_by_assignment"]}},o=Object(r.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"sr-only"},[e._v("\n    "+e._s(e.$str("filter_viewing_by_assignment","totara_competency"))+"\n  ")]),e._v(" "),e.displayFilters?n("SelectFilter",{attrs:{"show-label":!0,label:e.$str("viewing_by_assignment","totara_competency"),options:e.filterOptions.map((function(e){return{id:e.id,label:e.name}})),disabled:e.disable,value:e.value&&e.value.key},on:{input:e.filterUpdated}}):e._e()],1)}),[],!1,null,null,null);"function"==typeof s&&s(o),o.options.__hasBlocks={script:!0,template:!0};t.default=o.exports},Vpbp:function(e,t){e.exports=tui.require("totara_competency/components/profile/competency_list/List")},"W+j5":function(e,t,n){var i={"./AssignmentProgress":"YCS+","./AssignmentProgress.vue":"YCS+","./IndividualAssignmentProgress":"8QXL","./IndividualAssignmentProgress.vue":"8QXL","./ProgressAssignmentFilters":"VFXp","./ProgressAssignmentFilters.vue":"VFXp","./RatingScaleOverview":"IvBL","./RatingScaleOverview.vue":"IvBL","./achievements/AchievementLayout":"tVAA","./achievements/AchievementLayout.vue":"tVAA","./achievements/Achievements":"nMuw","./achievements/Achievements.vue":"nMuw","./achievements/Multivalue":"lTsS","./achievements/Multivalue.vue":"lTsS","./achievements/ProgressCircle":"+d5V","./achievements/ProgressCircle.vue":"+d5V","./achievements/Singlevalue":"ShU0","./achievements/Singlevalue.vue":"ShU0","./details/ActivityLog":"SBbP","./details/ActivityLog.vue":"SBbP","./details/ActivityLogTable":"/NCw","./details/ActivityLogTable.vue":"/NCw","./details/ArchivedAssignments":"7rD8","./details/ArchivedAssignments.vue":"7rD8","./details/ArchivedAssignmentsTable":"xs84","./details/ArchivedAssignmentsTable.vue":"xs84","./details/Assignment":"ouCZ","./details/Assignment.vue":"ouCZ","./details/ProficientStatus":"hOV+","./details/ProficientStatus.vue":"hOV+","./details/Progress":"hNaK","./details/Progress.vue":"hNaK","./profile/CompetencyCharts":"Tz/z","./profile/CompetencyCharts.vue":"Tz/z","./profile/CurrentProgress":"8Lk7","./profile/CurrentProgress.vue":"8Lk7","./profile/MyRatingCell":"gls+","./profile/MyRatingCell.vue":"gls+","./profile/NoCompetencyAssignments":"KUeq","./profile/NoCompetencyAssignments.vue":"KUeq","./profile/competency_list/ArchivedList":"aFZt","./profile/competency_list/ArchivedList.vue":"aFZt","./profile/competency_list/CurrentList":"UW6/","./profile/competency_list/CurrentList.vue":"UW6/","./profile/competency_list/Filters":"OBdB","./profile/competency_list/Filters.vue":"OBdB","./profile/competency_list/List":"+KnN","./profile/competency_list/List.vue":"+KnN","./summary/AchievementConfiguration":"3WCR","./summary/AchievementConfiguration.vue":"3WCR","./summary/AchievementConfigurationCriteria":"grF1","./summary/AchievementConfigurationCriteria.vue":"grF1","./summary/CompetencySummaryGeneral":"XHOO","./summary/CompetencySummaryGeneral.vue":"XHOO","./summary/LinkedCourses":"hgKs","./summary/LinkedCourses.vue":"hgKs","./user_assignment/SelectionTable":"h23i","./user_assignment/SelectionTable.vue":"h23i"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="W+j5"},WkPL:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i},e.exports.default=e.exports,e.exports.__esModule=!0},XHOO:function(e,t,n){"use strict";n.r(t);var i=n("KGot"),a=n.n(i),r=n("rNse"),s=n.n(r),o=n("yikf"),c=n.n(o),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_competency"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_competency"},arguments:[{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"idnumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"framework"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"display_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assign_availability"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"aggregation_method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display_custom_fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]}}]},u={components:{Cell:a.a,EditIcon:s.a,Table:c.a},props:{competencyId:{type:Number,required:!0}},data:function(){return{competency:{},editUrl:""}},computed:{rows:function(){var e=[{label:this.$str("fullname","totara_competency"),value:this.competency.display_name},{label:this.$str("idnumber","totara_competency"),value:this.competency.idnumber},{label:this.$str("description","totara_competency"),value:this.competency.description},{label:this.$str("type","totara_competency"),value:!!this.competency.type&&this.competency.type.display_name},{label:this.$str("aggregationmethod","totara_hierarchy"),value:this.aggregationMethodName},{label:this.$str("assignment_creation_availability","totara_competency"),values:this.assignAvailabilityNames,value:!1}];return this.competency.display_custom_fields&&this.competency.display_custom_fields.forEach((function(t){e.push({label:t.title,value:t.value})})),e=e.filter((function(e){return e.value||e.values})),e},assignAvailabilityNames:function(){var e=this;if(!this.competency.assign_availability||!this.competency.assign_availability.length>0)return!1;var t=[];return this.competency.assign_availability.forEach((function(n){t.push(e.$str(1===n?"competency_assign_availability_self_simple":"competency_assign_availability_other_simple","totara_competency"))})),t},aggregationMethodName:function(){if(!this.competency.aggregation_method)return!1;var e=1===this.competency.aggregation_method?"all":2===this.competency.aggregation_method?"any":"off";return this.$str(e,"totara_competency")}},apollo:{competency:{query:l,variables:function(){return{competency_id:this.competencyId}},update:function(e){var t=e.totara_competency_competency;return this.editUrl=this.$url("/totara/hierarchy/item/edit.php",{prefix:"competency",id:t.id}),t}}}},d=n("KHd+"),m=function(e){e.options.__langStrings={core:["edit","general"],totara_competency:["all","any","assignment_creation_availability","competency_assign_availability_self_simple","competency_assign_availability_other_simple","description","fullname","idnumber","off","type"],totara_hierarchy:["aggregationmethod"]}},p=Object(d.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.$apollo.loading?e._e():n("div",{staticClass:"tui-competencySummaryGeneral"},[n("div",{staticClass:"tui-competencySummary__sectionHeader"},[n("h3",{staticClass:"tui-competencySummary__sectionHeader-title"},[e._v("\n      "+e._s(e.$str("general","core"))+"\n    ")]),e._v(" "),n("a",{staticClass:"tui-competencySummary__sectionHeader-edit",attrs:{href:e.editUrl,title:e.$str("edit","core")}},[n("EditIcon",{attrs:{size:200,alt:e.$str("edit","core")}})],1)]),e._v(" "),n("Table",{attrs:{data:e.rows,"border-bottom-hidden":!0,"border-top-hidden":!0,"border-separator-hidden":!0,"hover-off":!0},scopedSlots:e._u([{key:"row",fn:function(t){var i=t.row;return[n("Cell",{attrs:{size:"6",heavy:!0}},[n("div",{staticClass:"tui-competencySummaryGeneral__list-label",attrs:{role:"rowheader"}},[e._v("\n          "+e._s(i.label)+"\n        ")])]),e._v(" "),n("Cell",{attrs:{size:"10"}},[n("div",{staticClass:"tui-competencySummaryGeneral__list-value",attrs:{role:"cell"}},[i.values?e._l(i.values,(function(t,i){return n("div",{key:"general"+i},[e._v("\n              "+e._s(t)+"\n            ")])})):n("div",{domProps:{innerHTML:e._s(i.value)}})],2)])]}}],null,!1,3145416524)})],1)}),[],!1,null,null,null);"function"==typeof m&&m(p),p.options.__hasBlocks={script:!0,template:!0};t.default=p.exports},Y2OC:function(e,t){},"YCS+":function(e,t,n){"use strict";n.r(t);var i=n("HZ23"),a=n.n(i),r=n("i3se"),s=n.n(r),o={components:{PercentageDoughnut:a.a},props:{progress:{required:!0,type:Object}},computed:{color:function(){return s.a.getVar("--color-secondary")},backgroundColor:function(){return s.a.getVar("--color-neutral-4")},labelColor:function(){return s.a.getVar("--color-text")}}},c=(n("DZZz"),n("KHd+")),l=function(e){e.options.__langStrings={totara_competency:["chart_label_proficient"]}},u=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-assignmentProgress"},[n("PercentageDoughnut",{staticClass:"tui-assignmentProgress__progress-card",attrs:{percentage:e.progress.overall_progress,label:e.$str("chart_label_proficient","totara_competency"),"label-font-size":13,"label-font-weight":"bold","percentage-font-size":24,square:!0,"label-color":e.labelColor,color:e.color,"background-color":e.backgroundColor}}),e._v(" "),n("div",{staticClass:"tui-assignmentProgress__header"},[e._v("\n    "+e._s(e.progress.name)+"\n  ")])],1)}),[],!1,null,null,null);"function"==typeof l&&l(u),u.options.__hasBlocks={script:!0,template:!0};t.default=u.exports},YDfs:function(e,t){},Ygam:function(e,t){e.exports=tui.require("totara_competency/components/details/ArchivedAssignmentsTable")},Yoo0:function(e,t){e.exports=tui.require("totara_competency/components/profile/CurrentProgress")},ZhPi:function(e,t,n){var i=n("WkPL");e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},Zoit:function(e,t){e.exports=tui.require("totara_competency/components/achievements/AchievementLayout")},aFZt:function(e,t,n){"use strict";n.r(t);var i=n("yikf"),a=n.n(i),r=n("5qAA"),s=n.n(r),o=n("KGot"),c=n.n(o),l=n("8n92"),u=n.n(l),d={components:{Table:a.a,HeaderCell:s.a,Cell:c.a,MyRatingCell:u.a},props:{competencies:{required:!0,type:Array},baseUrl:{required:!0,type:String},userId:{required:!0,type:Number},scales:{required:!0,type:Array}},computed:{groupedCompetencyData:function(){return this.competencies.map((function(e){return{id:e.competency.id,rows:e.items.map((function(t){return Object.assign({competency:e.competency},t)}))}}))}},methods:{competencyDetailsLink:function(e){var t={competency_id:e.competency.id};return this.isMine||(t.user_id=this.userId),this.$url("".concat(this.baseUrl,"/details/index.php"),t)}}},m=n("KHd+"),p=function(e){e.options.__langStrings={core:["no","yes"],totara_competency:["header_competency","header_reason_assigned","header_archived_date","proficient","achievement_level"]}},_=Object(m.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Table",{attrs:{data:e.groupedCompetencyData,"group-mode":!0,archived:!0},scopedSlots:e._u([{key:"header-row",fn:function(){return[n("HeaderCell",{attrs:{size:"3"}},[e._v("\n      "+e._s(e.$str("header_competency","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"2"}},[e._v("\n      "+e._s(e.$str("header_reason_assigned","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"2"}},[e._v("\n      "+e._s(e.$str("header_archived_date","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"2",align:"center"}},[e._v("\n      "+e._s(e.$str("proficient","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"2"}},[e._v("\n      "+e._s(e.$str("achievement_level","totara_competency"))+"\n    ")])]},proxy:!0},{key:"row",fn:function(t){var i=t.row,a=t.firstInGroup;return[n("Cell",{attrs:{size:"3","column-header":e.$str("header_competency","totara_competency"),"repeated-header":!a}},[n("a",{attrs:{href:e.competencyDetailsLink(i)}},[e._v(e._s(i.competency.fullname))])]),e._v(" "),n("Cell",{attrs:{size:"2","column-header":e.$str("header_reason_assigned","totara_competency")}},[e._v("\n      "+e._s(i.assignment&&i.assignment.progress_name)+"\n    ")]),e._v(" "),n("Cell",{attrs:{size:"2","column-header":e.$str("header_archived_date","totara_competency")}},[e._v("\n      "+e._s(i.assignment&&(i.assignment.archived_at||i.assignment.unassigned_at))+"\n    ")]),e._v(" "),n("Cell",{attrs:{size:"2",align:"center","column-header":e.$str("proficient","totara_competency")}},[i.proficient?n("CheckIcon",{attrs:{size:"200",alt:e.$str("yes","core")}}):n("span",[n("span",{attrs:{"aria-hidden":!0}},[e._v("-")]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$str("no","core")))])])],1),e._v(" "),n("Cell",{attrs:{size:"2","column-header":e.$str("achievement_level","totara_competency")}},[i.my_value?n("MyRatingCell",{attrs:{value:i.my_value,scales:e.scales}}):e._e()],1)]}}])})}),[],!1,null,null,null);"function"==typeof p&&p(_),_.options.__hasBlocks={script:!0,template:!0};t.default=_.exports},acdx:function(e,t){},bAb2:function(e,t){e.exports=tui.require("totara_competency/components/summary/CompetencySummaryGeneral")},bxeI:function(e,t){e.exports=tui.require("tui/components/layouts/LayoutOneColumn")},cfoa:function(e,t){},dNVj:function(e,t){},dtfu:function(e,t){e.exports=tui.require("tui/components/responsive/Responsive")},e3MU:function(e,t){e.exports=tui.require("tui/components/buttons/InfoIconButton")},eS4Y:function(e,t){},epks:function(e,t){e.exports=tui.require("totara_competency/components/profile/NoCompetencyAssignments")},fCWf:function(e,t){e.exports=tui.require("tui/components/links/ActionLink")},fCaH:function(e,t){},"g8/U":function(e,t){e.exports=tui.require("tui/components/layouts/PageHeading")},"gls+":function(e,t,n){"use strict";n.r(t);var i=n("vF5l"),a=n.n(i),r=n("9G+f"),s=n.n(r),o=n("pHFC"),c=n.n(o),l={components:{Button:a.a,Popover:s.a,RatingScaleOverview:c.a},props:{value:{required:!0,type:Object},scales:{required:!0,type:Array}},computed:{scale:function(){var e=this;return this.scales.find((function(t){return t.id===e.value.scale_id}))}}},u=n("KHd+"),d=Object(u.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.scale?n("Popover",{attrs:{triggers:["click"]},scopedSlots:e._u([{key:"trigger",fn:function(){return[n("Button",{attrs:{styleclass:{reveal:!0},text:e.value.name}})]},proxy:!0}],null,!1,504032633)},[e._v(" "),n("RatingScaleOverview",{attrs:{scale:e.scale,"reverse-values":!0}})],1):e._e()}),[],!1,null,null,null);d.options.__hasBlocks={script:!0,template:!0};t.default=d.exports},gqVV:function(e,t,n){"use strict";t.a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_profile_competency_details"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"status"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_profile_competency_details"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}},{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"Variable",name:{kind:"Name",value:"status"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"competency"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"archived_at"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATE"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATE"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user_group_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reason_assigned"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"can_archive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_assigned"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"unassigned_at"},arguments:[{kind:"Argument",name:{kind:"Name",value:"format"},value:{kind:"EnumValue",value:"DATE"}},{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"my_value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}}]}}]}}]}}]}},grF1:function(e,t,n){"use strict";n.r(t);var i=n("o0O/"),a=n.n(i),r=n("jJ8l"),s=n.n(r),o=n("BxDI"),c=n.n(o),l=n("lLj0"),u=n.n(l),d={components:{AndBox:a.a,Card:s.a,Separator:c.a,WarningIcon:u.a},props:{path:{type:Object}}},m=(n("iy/T"),n("KHd+")),p=Object(m.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Card",{attrs:{"no-border":!e.path.multiCriteria}},[n("div",{staticClass:"tui-competencySummaryAchievementCriteria",class:{"tui-competencySummaryAchievementCriteria--multi":e.path.multiCriteria}},[e._l(e.path.criteria_summary,(function(t,i){return[i?n("Separator",{key:i+"and",staticClass:"tui-competencySummaryAchievementCriteria__and"},[n("AndBox")],1):e._e(),e._v(" "),n("div",{key:i,staticClass:"tui-competencySummaryAchievementCriteria__criterion"},[n("div",[n("h5",{staticClass:"tui-competencySummaryAchievementCriteria__criterion-header"},[e._v("\n            "+e._s(t.item_type)+"\n          ")]),e._v(" "),t.item_aggregation?n("span",{staticClass:"tui-competencySummaryAchievementCriteria__criterion-aggregation"},[e._v("\n            ("+e._s(t.item_aggregation)+")\n          ")]):e._e()]),e._v(" "),n("div",{staticClass:"tui-competencySummaryAchievementCriteria__criterion-items"},e._l(t.items,(function(t,i){return n("div",{key:i},[e._v("\n            "+e._s(t.description)+"\n            "),t.error?n("span",[n("WarningIcon",{attrs:{size:200}}),e._v("\n              "+e._s(t.error)+"\n            ")],1):e._e()])})),0)])]}))],2)])}),[],!1,null,null,null);p.options.__hasBlocks={script:!0,template:!0};t.default=p.exports},h23i:function(e,t,n){"use strict";n.r(t);var i=n("KGot"),a=n.n(i),r=n("rsf9"),s=n.n(r),o=n("5qAA"),c=n.n(o),l=n("mURQ"),u=n.n(l),d={components:{Cell:a.a,ExpandCell:s.a,HeaderCell:c.a,SelectTable:u.a},props:{value:{type:Array,required:!0},competencies:{type:Array,required:!0},totalCompetencyCount:{type:Number,required:!0}},data:function(){return{page:0}},methods:{getAssignmentStatus:function(e){return this.isAssigned(e)?this.$str("currently_assigned","totara_competency"):this.$str("not_assigned","totara_competency")},isAssigned:function(e){return Boolean(e.user_assignments)&&e.user_assignments.length>0}}},m=(n("BbQS"),n("KHd+")),p=function(e){e.options.__langStrings={totara_competency:["all","competencies","currently_assigned","description","competencies","header_competency","header_assignment_status","header_assignment_reasons","not_assigned"]}},_=Object(m.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencySelfAssignmentTable"},[n("h3",{staticClass:"tui-competencySelfAssignmentTable__header"},[e._v("\n    "+e._s(e.$str("competencies","totara_competency",e.totalCompetencyCount))+"\n  ")]),e._v(" "),n("SelectTable",{attrs:{value:e.value,data:e.competencies,"expandable-rows":!0,"select-all-enabled":!0,"checkbox-v-align":"center"},on:{input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"header-row",fn:function(){return[n("ExpandCell",{attrs:{header:!0}}),e._v(" "),n("HeaderCell",{attrs:{size:"4"}},[e._v("\n        "+e._s(e.$str("header_competency","totara_competency"))+"\n      ")]),e._v(" "),n("HeaderCell",{attrs:{size:"4"}},[e._v("\n        "+e._s(e.$str("header_assignment_status","totara_competency"))+"\n      ")]),e._v(" "),n("HeaderCell",{attrs:{size:"4"}},[e._v("\n        "+e._s(e.$str("header_assignment_reasons","totara_competency"))+"\n      ")])]},proxy:!0},{key:"row",fn:function(t){var i=t.row,a=t.expand,r=t.expandState;return[n("ExpandCell",{attrs:{"aria-label":i.display_name,empty:!i.description,"expand-state":r},on:{click:function(e){return a()}}}),e._v(" "),n("Cell",{attrs:{size:"4","column-header":e.$str("header_competency","totara_competency"),valign:"center"}},[e._v("\n        "+e._s(i.display_name)+"\n      ")]),e._v(" "),n("Cell",{attrs:{size:"4","column-header":e.$str("header_assignment_status","totara_competency"),valign:"center"}},[e._v("\n        "+e._s(e.getAssignmentStatus(i))+"\n      ")]),e._v(" "),n("Cell",{attrs:{size:"4","column-header":i.user_assignments.length>0?e.$str("header_assignment_reasons","totara_competency"):"",valign:"center"}},[n("ul",{staticClass:"tui-competencySelfAssignmentTable__reasons"},e._l(i.user_assignments,(function(t){return n("li",{key:t.id},[e._v("\n            "+e._s(t.reason_assigned)+"\n          ")])})),0)])]}},{key:"expand-content",fn:function(t){var i=t.row;return[n("div",{staticClass:"tui-competencySelfAssignmentTable__expand"},[n("h4",{staticClass:"tui-competencySelfAssignmentTable__expand-header"},[e._v("\n          "+e._s(i.display_name)+"\n        ")]),e._v(" "),n("h5",{staticClass:"tui-competencySelfAssignmentTable__expand-subHeader"},[e._v("\n          "+e._s(e.$str("description","totara_competency"))+"\n        ")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(i.description)}})])]}}])})],1)}),[],!1,null,null,null);"function"==typeof p&&p(_),_.options.__hasBlocks={script:!0,template:!0};t.default=_.exports},hNaK:function(e,t,n){"use strict";n.r(t);var i=n("PNtU"),a=n.n(i),r=n("2zrd"),s=n.n(r),o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_scale"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_scale"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"idnumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scaleid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numericscore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sortorder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"proficient"},arguments:[],directives:[]}]}}]}}]}}]},c={components:{Lozenge:a.a,ProgressTracker:s.a},props:{myValue:{type:[Number,String]},competencyId:{required:!0,type:Number}},data:function(){return{scale:{}}},apollo:{scale:{query:o,context:{batch:!0},variables:function(){return{competency_id:this.competencyId}},update:function(e){var t=e.totara_competency_scale;return this.$emit("loaded"),t}}},computed:{minProficientValueId:function(){return this.scale.values?this.scale.values.find((function(e){return e.proficient})).id:null},formattedForTracker:function(){return this.scale.values?this.scale.values.map((function(e){return{description:e.description,id:e.id,label:e.name}})):[]}}},l=(n("4Zth"),n("KHd+")),u=function(e){e.options.__langStrings={totara_competency:["no_description","proficient_level"]}},d=Object(l.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyDetailProgress"},[n("ProgressTracker",{attrs:{items:e.formattedForTracker,"current-id":e.myValue,"popover-trigger-type":["click"],"target-id":e.minProficientValueId},scopedSlots:e._u([{key:"custom-popover-content",fn:function(t){var i=t.description,a=t.label,r=t.target;return[n("div",{staticClass:"tui-competencyDetailProgress__popover"},[r?n("div",{staticClass:"tui-competencyDetailProgress__popover-target"},[n("Lozenge",{attrs:{text:e.$str("proficient_level","totara_competency"),type:"success"}})],1):e._e(),e._v(" "),n("h5",{staticClass:"tui-competencyDetailProgress__popover-header"},[e._v("\n          "+e._s(a)+"\n        ")]),e._v(" "),i?n("div",{staticClass:"tui-competencyDetailProgress__popover-body",domProps:{innerHTML:e._s(i)}}):n("div",{staticClass:"tui-competencyDetailProgress__popover-body"},[e._v("\n          "+e._s(e.$str("no_description","totara_competency"))+"\n        ")])])]}}])})],1)}),[],!1,null,null,null);"function"==typeof u&&u(d),d.options.__hasBlocks={script:!0,template:!0};t.default=d.exports},"hOV+":function(e,t,n){"use strict";n.r(t);var i=n("JThd"),a={components:{ProficientIcon:n.n(i).a},props:{proficientStatus:{type:Boolean,required:!0}}},r=(n("vdX2"),n("KHd+")),s=function(e){e.options.__langStrings={totara_competency:["not_proficient","proficient"]}},o=Object(r.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"tui-competencyDetailProficientStatus",class:{"tui-competencyDetailProficientStatus-srOnly":!e.proficientStatus}},[e.proficientStatus?n("ProficientIcon",{attrs:{size:"200"}}):e._e(),e._v(" "),n("span",[e._v("\n    "+e._s(e.$str(e.proficientStatus?"proficient":"not_proficient","totara_competency"))+"\n  ")])],1)}),[],!1,null,null,null);"function"==typeof s&&s(o),o.options.__hasBlocks={script:!0,template:!0};t.default=o.exports},hgKs:function(e,t,n){"use strict";n.r(t);var i=n("KGot"),a=n.n(i),r=n("rNse"),s=n.n(r),o=n("yikf"),c=n.n(o),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_linked_courses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"competency_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_linked_courses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"competency_id"},value:{kind:"Variable",name:{kind:"Name",value:"competency_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"course_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_mandatory"},arguments:[],directives:[]}]}}]}}]},u={components:{Cell:a.a,EditIcon:s.a,Table:c.a},props:{competencyId:{required:!0,type:Number}},data:function(){return{data:[],editUrl:""}},apollo:{data:{query:l,variables:function(){return{competency_id:this.competencyId}},update:function(e){var t=e.totara_competency_linked_courses;return this.editUrl=this.$url("/totara/competency/competency_edit.php",{s:"linkedcourses",id:this.competencyId}),t}}},methods:{courseUrl:function(e){return this.$url("/course/view.php",{id:e})}}},d=n("KHd+"),m=function(e){e.options.__langStrings={core:["edit"],totara_competency:["linked_courses","mandatory","no_courses_linked_yet","optional"]}},p=Object(d.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyOverviewLinkedCourses"},[n("div",{staticClass:"tui-competencySummary__sectionHeader"},[n("h3",{staticClass:"tui-competencySummary__sectionHeader-title"},[e._v("\n      "+e._s(e.$str("linked_courses","totara_competency"))+"\n    ")]),e._v(" "),n("a",{staticClass:"tui-competencySummary__sectionHeader-edit",attrs:{href:e.editUrl,title:e.$str("edit","core")}},[n("EditIcon",{attrs:{size:200,alt:e.$str("edit","core")}})],1)]),e._v(" "),n("Table",{attrs:{data:e.data,"border-bottom-hidden":!0,"border-top-hidden":!0,"border-separator-hidden":!0,"hover-off":!0,"no-items-text":e.$str("no_courses_linked_yet","totara_competency")},scopedSlots:e._u([{key:"row",fn:function(t){var i=t.row;return[n("Cell",{attrs:{size:"6",valign:"center"}},[n("a",{attrs:{href:e.courseUrl(i.course_id)}},[e._v("\n          "+e._s(i.fullname)+"\n        ")])]),e._v(" "),n("Cell",{attrs:{size:"10",valign:"center"}},[n("span",[e._v("\n          "+e._s(e.$str(i.is_mandatory?"mandatory":"optional","totara_competency"))+"\n        ")])])]}}])})],1)}),[],!1,null,null,null);"function"==typeof m&&m(p),p.options.__hasBlocks={script:!0,template:!0};t.default=p.exports},i3se:function(e,t){e.exports=tui.require("tui/theme")},"iy/T":function(e,t){},jJ8l:function(e,t){e.exports=tui.require("tui/components/card/Card")},"k7/G":function(e,t){e.exports=tui.require("tui/components/decor/OrBox")},kPEt:function(e,t){e.exports=tui.require("totara_competency/components/details/Progress")},"kV+/":function(e,t){e.exports=tui.require("tui/components/toggle/ToggleButton")},lLj0:function(e,t){e.exports=tui.require("tui/components/icons/Warning")},lTsS:function(e,t,n){"use strict";n.r(t);var i={inheritAttrs:!1,props:{assignmentId:{required:!0,type:Number},type:{required:!0,type:String},userId:{required:!0,type:Number}},data:function(){return{component:null}},mounted:function(){var e="pathway_".concat(this.type,"/components/achievements/AchievementDisplay");this.component=tui.asyncComponent(e)},methods:{isLoaded:function(){this.$emit("loaded")}}},a=n("KHd+"),r=Object(a.a)(i,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t(this.component,{tag:"component",attrs:{"assignment-id":this.assignmentId,"user-id":this.userId},on:{loaded:this.isLoaded}})],1)}),[],!1,null,null,null);r.options.__hasBlocks={script:!0,template:!0};t.default=r.exports},ls82:function(e,t,n){var i=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,r=Object.create(a.prototype),s=new S(i||[]);return r._invoke=function(e,t,n){var i="suspendedStart";return function(a,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw r;return A()}for(n.method=a,n.arg=r;;){var s=n.delegate;if(s){var o=k(s,n);if(o){if(o===u)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=l(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}(e,n,s),r}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function m(){}function p(){}var _={};_[a]=function(){return this};var v=Object.getPrototypeOf,f=v&&v(v(C([])));f&&f!==t&&n.call(f,a)&&(_=f);var y=p.prototype=d.prototype=Object.create(_);function g(e){["next","throw","return"].forEach((function(t){o(e,t,(function(e){return this._invoke(t,e)}))}))}function h(e,t){var i;this._invoke=function(a,r){function s(){return new t((function(i,s){!function i(a,r,s,o){var c=l(e[a],e,r);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,o)}),(function(e){i("throw",e,s,o)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,o)}))}o(c.arg)}(a,r,i,s)}))}return i=i?i.then(s,s):s()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,u;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,done:!0}}return m.prototype=y.constructor=p,p.constructor=m,m.displayName=o(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,o(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(h.prototype),h.prototype[r]=function(){return this},e.AsyncIterator=h,e.async=function(t,n,i,a,r){void 0===r&&(r=Promise);var s=new h(c(t,n,i,a),r);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(y),o(y,s,"Generator"),y[a]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var o=n.call(r,"catchLoc"),c=n.call(r,"finallyLoc");if(o&&c){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,u):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;N(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},luBG:function(e,t){},lyMP:function(e,t){e.exports=tui.require("tui/components/icons/RemoveUser")},m0LI:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(a)throw r}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0},mOtL:function(e,t){},mURQ:function(e,t){e.exports=tui.require("tui/components/datatable/SelectTable")},nMuw:function(e,t,n){"use strict";n.r(t);var i=n("JXQf"),a=n.n(i),r=n("1i2V"),s=n.n(r),o=n("txsu"),c=n.n(o),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_achievement_paths"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assignment_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_achievement_paths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"assignment_id"},value:{kind:"Variable",name:{kind:"Name",value:"assignment_id"}}},{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]},u={components:{Loader:a.a,Tab:s.a,Tabs:c.a},props:{assignment:{required:!0,type:Object},userId:{required:!0,type:Number}},data:function(){return{achievements:[],itemsLoaded:null,loading:!0}},apollo:{achievements:{query:l,context:{batch:!0},variables:function(){return{assignment_id:this.assignmentId,user_id:this.userId}},update:function(e){var t=this,n=e.totara_competency_achievement_paths,i=[];return n.forEach((function(e){var n=t.capitalizeFirstLetter(e.class),a="totara_competency/components/achievements/".concat(n);i.push({component:tui.asyncComponent(a),props:{userId:t.userId,assignmentId:t.assignmentId,type:e.type,name:e.name}})})),0===i.length&&(this.loading=!1),i}}},computed:{assignmentId:function(){return parseInt(this.assignment.id)},numberOfItems:function(){return this.achievements.length}},watch:{itemsLoaded:function(e){e===this.numberOfItems&&(this.loading=!1)},assignmentId:function(){this.loading=!1}},methods:{capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)},itemLoaded:function(){this.itemsLoaded+=1}}},d=(n("FKgf"),n("KHd+")),m=function(e){e.options.__langStrings={totara_competency:["no_achievement_criteria","ways_to_achieve_proficiency"]}},p=Object(d.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyAchievements"},[n("Loader",{attrs:{loading:e.loading}},[n("h3",{staticClass:"tui-competencyAchievements__title"},[e._v("\n      "+e._s(e.$str("ways_to_achieve_proficiency","totara_competency"))+"\n    ")]),e._v(" "),e.achievements.length?n("Tabs",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],key:e.assignmentId,staticClass:"tui-competencyAchievements__tabs",attrs:{"transparent-tabs":!0}},e._l(e.achievements,(function(t,i){return n("Tab",{key:i,attrs:{id:i,"always-render":!0,name:t.props.name}},[n(t.component,e._b({tag:"component",on:{loaded:e.itemLoaded}},"component",t.props,!1))],1)})),1):n("div",{staticClass:"tui-competencyAchievements__empty"},[e._v("\n      "+e._s(e.$str("no_achievement_criteria","totara_competency"))+"\n    ")])],1)],1)}),[],!1,null,null,null);"function"==typeof m&&m(p),p.options.__hasBlocks={script:!0,template:!0};t.default=p.exports},"nvA/":function(e,t){},"o0O/":function(e,t){e.exports=tui.require("tui/components/decor/AndBox")},o0o1:function(e,t,n){e.exports=n("ls82")},ouCZ:function(e,t,n){"use strict";n.r(t);var i=n("yXPU"),a=n.n(i),r=n("o0o1"),s=n.n(r),o=n("UjaO"),c=n.n(o),l=n("5h9J"),u=n.n(l),d=n("C+/B"),m=n.n(d),p=n("NAOU"),_=n.n(p),v=n("D9If"),f=n.n(v),y=n("8cak"),g=n.n(y),h=n("49h4"),k=n.n(h),b=n("vyVp"),N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"totara_competency_archive_user_assignment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assignment_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_archive_user_assignment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"assignment_id"},value:{kind:"Variable",name:{kind:"Name",value:"assignment_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"archived_assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]},S=n("gqVV"),C=n("qw+c"),A={components:{ArchiveIcon:c.a,ButtonIcon:u.a,ConfirmationModal:m.a,Grid:_.a,GridItem:f.a,ProgressTrackerCircle:g.a,SelectFilter:k.a},props:{activeAssignmentList:{required:!0,type:Array},selectedAssignmentProficiency:{type:Object},value:{type:Number},competencyId:{required:!0,type:Number},userId:{required:!0,type:Number}},data:function(){return{selectedAssignment:this.value,showArchiveConfirmation:!1}},computed:{selectedAssignmentProficiencyState:function(){return this.selectedAssignmentProficiency.id&&this.selectedAssignmentProficiency.proficient?"achieved":this.selectedAssignmentProficiency.id?"complete":"pending"},showCanArchiveButton:function(){var e=this,t=this.activeAssignmentList.find((function(t){return t.id===e.selectedAssignment}));return t&&t.can_archive}},methods:{selectedAssignmentChange:function(e){this.$emit("input",e)},showArchiveConfirmDialog:function(){this.showArchiveConfirmation=!0},makeArchiveAssignmentMutation:function(){var e=this;return a()(s.a.mark((function t(){var n,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.activeAssignmentList.find((function(t){return t.id===e.value})),i=n.assignment_id,t.prev=1,t.next=4,e.$apollo.mutate({mutation:N,variables:{assignment_id:i},refetchQueries:[{query:S.a,variables:{user_id:e.userId,competency_id:e.competencyId,status:C.ASSIGNMENT_ACTIVE}}],refetchAll:!1});case 4:Object(b.notify)({type:"success",message:e.$str("event_assignment_archived","totara_competency")}),e.selectedAssignment=0;case 6:return t.prev=6,e.showArchiveConfirmation=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}}},x=(n("HjqD"),n("KHd+")),F=function(e){e.options.__langStrings={totara_competency:["achievement_level","action_archive_this","action_archive_user_modal_header","action_archive_user_assignment_modal","assignment","confirm_generic","error_generic_mutation","event_assignment_archived","more_information","not_proficient","proficient"]}},w=Object(x.a)(A,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tui-competencyDetailAssignment"},[n("div",{staticClass:"tui-competencyDetailAssignment__bar"},[n("Grid",{attrs:{"stack-at":700}},[n("GridItem",{attrs:{units:4}},[n("SelectFilter",{staticClass:"tui-competencyDetailAssignment__bar-filter",attrs:{label:e.$str("assignment","totara_competency"),name:"select_assignment",large:!0,options:e.activeAssignmentList},on:{input:e.selectedAssignmentChange},model:{value:e.selectedAssignment,callback:function(t){e.selectedAssignment=t},expression:"selectedAssignment"}})],1),e._v(" "),n("GridItem",{class:"tui-competencyDetailAssignment__level",attrs:{units:4}},[n("div",{staticClass:"tui-competencyDetailAssignment__level-wrap",class:"tui-competencyDetailAssignment__level-wrap-"+e.selectedAssignmentProficiencyState},[n("p",{staticClass:"tui-competencyDetailAssignment__level-header"},[e._v("\n            "+e._s(e.$str("achievement_level","totara_competency"))+"\n          ")]),e._v(" "),n("div",{staticClass:"tui-competencyDetailAssignment__level-text"},[e._v("\n            "+e._s(e.selectedAssignmentProficiency.name)+"\n          ")])])]),e._v(" "),n("GridItem",{class:"tui-competencyDetailAssignment__status",attrs:{units:4}},[n("ProgressTrackerCircle",{attrs:{state:e.selectedAssignmentProficiencyState,target:"complete"!==e.selectedAssignmentProficiencyState}}),e._v(" "),n("span",{staticClass:"tui-competencyDetailAssignment__status-text",class:{"tui-competencyDetailAssignment__status-text-complete":"complete"===e.selectedAssignmentProficiencyState}},[e._v("\n          "+e._s(e.$str(e.selectedAssignmentProficiency.proficient?"proficient":"not_proficient","totara_competency"))+"\n        ")])],1)],1),e._v(" "),n("ConfirmationModal",{attrs:{title:e.$str("action_archive_user_modal_header","totara_competency"),open:e.showArchiveConfirmation},on:{confirm:e.makeArchiveAssignmentMutation,cancel:function(t){e.showArchiveConfirmation=!1}}},[n("p",[e._v("\n        "+e._s(e.$str("action_archive_user_assignment_modal","totara_competency"))+"\n      ")]),e._v(" "),n("p",[e._v("\n        "+e._s(e.$str("confirm_generic","totara_competency"))+"\n      ")])])],1),e._v(" "),n("div",{staticClass:"tui-competencyDetailAssignment__actions"},[e.showCanArchiveButton?n("ButtonIcon",{attrs:{"aria-label":"",styleclass:{small:!0},text:e.$str("action_archive_this","totara_competency")},on:{click:e.showArchiveConfirmDialog}},[n("ArchiveIcon")],1):e._e()],1)])}),[],!1,null,null,null);"function"==typeof F&&F(w),w.options.__hasBlocks={script:!0,template:!0};t.default=w.exports},pFDD:function(e,t){},pHFC:function(e,t){e.exports=tui.require("totara_competency/components/RatingScaleOverview")},qGal:function(e,t){e.exports=tui.require("totara_competency/constants")},"qw+c":function(e,t,n){"use strict";n.r(t),n.d(t,"ASSIGNMENT_ACTIVE",(function(){return i})),n.d(t,"ASSIGNMENT_ARCHIVED",(function(){return a}));var i=1,a=2},rNse:function(e,t){e.exports=tui.require("tui/components/icons/Edit")},rsf9:function(e,t){e.exports=tui.require("tui/components/datatable/ExpandCell")},tVAA:function(e,t,n){"use strict";n.r(t);var i=n("NAOU"),a=n.n(i),r=n("D9If"),s=n.n(r),o={components:{Grid:a.a,GridItem:s.a},props:{noBorders:{type:Boolean}}},c=(n("eS4Y"),n("KHd+")),l=Object(c.a)(o,(function(){var e=this.$createElement,t=this._self._c||e;return t("Grid",{staticClass:"tui-achievementLayout",class:{"tui-achievementLayout--borderless":this.noBorders},attrs:{"stack-at":750}},[t("GridItem",{attrs:{units:2}},[t("div",{staticClass:"tui-achievementLayout__left"},[this._t("left")],2)]),this._v(" "),t("GridItem",{attrs:{units:10}},[this._t("right")],2)],1)}),[],!1,null,null,null);l.options.__hasBlocks={script:!0,template:!0};t.default=l.exports},tkAW:function(e,t){e.exports=tui.require("tui/components/modal/Modal")},txsu:function(e,t){e.exports=tui.require("tui/components/tabs/Tabs")},vF5l:function(e,t){e.exports=tui.require("tui/components/buttons/Button")},vMqX:function(e,t,n){var i={"./constants":"qw+c","./constants.js":"qw+c"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="vMqX"},vdX2:function(e,t){},vqlw:function(e,t){e.exports=tui.require("tui/components/icons/BarChart")},vyVp:function(e,t){e.exports=tui.require("tui/notifications")},"wMJ/":function(e,t,n){"use strict";t.a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"totara_competency_user"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"user_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"core_id"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totara_competency_user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"user_id"},value:{kind:"Variable",name:{kind:"Name",value:"user_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"card_display"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"profile_picture_alt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profile_picture_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profile_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"display_fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"associate_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_custom"},arguments:[],directives:[]}]}}]}}]}}]}}]}},wTVA:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},wkBT:function(e,t){e.exports=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.")},e.exports.default=e.exports,e.exports.__esModule=!0},xNwe:function(e,t){e.exports=tui.require("tui/components/basket/Basket")},xs84:function(e,t,n){"use strict";n.r(t);var i=n("KGot"),a=n.n(i),r=n("5qAA"),s=n.n(r),o=n("e3MU"),c=n.n(o),l=n("C4bi"),u=n.n(l),d=n("yikf"),m=n.n(d),p={components:{Cell:a.a,HeaderCell:s.a,InfoIconButton:c.a,ProficientStatus:u.a,Table:m.a},props:{assignments:{type:Array}}},_=(n("mOtL"),n("KHd+")),v=function(e){e.options.__langStrings={totara_competency:["assignment","assignment_date_archived","legacy_assignment_rating_description","legacy_assignment_rating_discontinued","proficiency_status"]}},f=Object(_.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Table",{staticClass:"tui-competencyDetailArchivedAssignmentsTable",attrs:{data:e.assignments},scopedSlots:e._u([{key:"header-row",fn:function(){return[n("HeaderCell",{attrs:{size:"6"}},[e._v("\n      "+e._s(e.$str("assignment","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"3"}},[e._v("\n      "+e._s(e.$str("assignment_date_archived","totara_competency"))+"\n    ")]),e._v(" "),n("HeaderCell",{attrs:{size:"3"}},[e._v("\n      "+e._s(e.$str("proficiency_status","totara_competency"))+"\n    ")])]},proxy:!0},{key:"row",fn:function(t){var i=t.row;t.expand;return[n("Cell",{attrs:{size:"6","column-header":e.$str("assignment","totara_competency")}},[e._v("\n      "+e._s(i.name)+"\n    ")]),e._v(" "),n("Cell",{attrs:{size:"3","column-header":e.$str("assignment_date_archived","totara_competency")}},[e._v("\n      "+e._s(i.archivedAt)+"\n    ")]),e._v(" "),n("Cell",{attrs:{size:"3","column-header":e.$str("proficiency_status","totara_competency")}},[n("div",{staticClass:"tui-competencyDetailArchivedAssignmentsTable__achievement"},[n("ProficientStatus",{attrs:{"proficient-status":i.proficient}}),e._v(" "),i.legacy?n("InfoIconButton",{attrs:{"is-help-for":e.$str("proficiency_status","totara_competency")}},[n("h4",{staticClass:"tui-competencyDetailArchivedAssignmentsTable__discontinued"},[e._v("\n            "+e._s(e.$str("legacy_assignment_rating_discontinued","totara_competency"))+"\n          ")]),e._v("\n          "+e._s(e.$str("legacy_assignment_rating_description","totara_competency"))+"\n        ")]):e._e()],1)])]}}])})}),[],!1,null,null,null);"function"==typeof v&&v(f),f.options.__hasBlocks={script:!0,template:!0};t.default=f.exports},yXPU:function(e,t){function n(e,t,n,i,a,r,s){try{var o=e[r](s),c=o.value}catch(e){return void n(e)}o.done?t(c):Promise.resolve(c).then(i,a)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(a,r){var s=e.apply(t,i);function o(e){n(s,a,r,o,c,"next",e)}function c(e){n(s,a,r,o,c,"throw",e)}o(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},yikf:function(e,t){e.exports=tui.require("tui/components/datatable/Table")},ykDy:function(e,t){},ymIi:function(e,t){},yuC0:function(e,t){e.exports=tui.require("totara_competency/components/IndividualAssignmentProgress")},zdti:function(e,t){e.exports=tui.require("tui/components/notifications/NotificationBanner")},zs4z:function(e,t){e.exports=tui.require("tui/components/layouts/PageBackLink")}});