(this.webpackJsonp=this.webpackJsonp||[]).push([[21],{"5kjG":function(e,t,i){"use strict";i("RFHG"),i("z6RN"),i("xuo1"),i("v2fZ"),i("B++/"),i("47t/");var n=i("FkSe"),a=i("xkEJ"),s=i("4lAS"),r=i("z1xw"),o=i("b9Gi"),l=i("jlnU"),m=i("4wgn"),u=i("FxFN"),d=i("AxUD"),c=i("bOix"),p=i("/lV4"),g=i("JtyA"),f=i("FpZ5"),v=i.n(f),h=i("d6eQ"),T=i("yTl/"),k=i.n(T);var S={i18n:{deleteButtonText:Object(p.s__)("TimeTracking|Delete time spent")},components:{GlLoadingIcon:n.a,GlTableLite:a.a,GlButton:s.a},directives:{GlTooltip:r.a},inject:{fullPath:{default:null},issuableType:{default:null}},props:{limitToHours:{type:Boolean,default:!1,required:!1},issuableId:{type:String,required:!1,default:""},timelogs:{type:Array,required:!1,default:void 0},workItemIid:{type:String,required:!1,default:""}},data(){var e;return{report:null!==(e=this.timelogs)&&void 0!==e?e:[],removingIds:[]}},apollo:{report:{query(){return h.m[this.issuableType].query},variables(){const e=this.issuableType===d.TYPE_ISSUE?m.q:m.v;return{id:Object(u.b)(e,this.issuableId)}},update(e){var t;return((null==e||null===(t=e.issuable)||void 0===t||null===(t=t.timelogs)||void 0===t?void 0:t.nodes)||[]).slice().sort((function(e,t){return new Date(e.spentAt)-new Date(t.spentAt)}))},error(){Object(l.createAlert)({message:Object(p.__)("Something went wrong. Please try again.")})},skip(){return Boolean(this.timelogs)}},workItem:{query:v.a,variables(){return{fullPath:this.fullPath,iid:this.workItemIid}},update(e){var t;return null!==(t=e.workspace.workItem)&&void 0!==t?t:{}},skip(){return!this.workItemIid}}},computed:{isLoading(){return this.$apollo.queries.report.loading||this.$apollo.queries.workItem.loading},totalTimeSpent(){const e=this.report.reduce((function(e,t){return e+t.timeSpent}),0);return this.formatTimeSpent(e)}},watch:{timelogs(e){this.report=e}},methods:{isDeletingTimelog(e){return this.removingIds.includes(e)},formatDate:e=>Object(c.x)(e,'mmmm d, yyyy, HH:MM ("UTC:" o)'),formatShortDate:e=>c.Y.asDate.format(e),getSummary:(e,t)=>null!=e?e:null==t?void 0:t.body,formatTimeSpent(e){return(e<0?"- ":"")+Object(c.qb)(Object(c.mb)(e,{limitToHours:this.limitToHours}))},deleteTimelog(e){var t=this;this.removingIds.push(e),this.$apollo.mutate({mutation:k.a,variables:{input:{id:e}},update:function(i){t.workItemIid&&i.updateQuery({query:v.a,variables:{fullPath:t.fullPath,iid:t.workItemIid}},(function(t){return Object(o.a)(t,(function(t){const i=t.workspace.workItem.widgets.find((function(e){return e.type===g.WIDGET_TYPE_TIME_TRACKING})),n=i.timelogs.nodes,a=n.findIndex((function(t){return t.id===e}));i.totalTimeSpent-=n[a].timeSpent,n.splice(a,1)}))}))}}).then((function({data:e}){var t;if(null!==(t=e.timelogDelete)&&void 0!==t&&null!==(t=t.errors)&&void 0!==t&&t.length)throw new Error(e.timelogDelete.errors[0])})).catch((function(e){Object(l.createAlert)({message:Object(p.s__)("TimeTracking|An error occurred while removing the timelog."),captureError:!0,error:e})})).finally((function(){t.removingIds.splice(t.removingIds.indexOf(e),1)}))}},fields:[{key:"spentAt",label:Object(p.__)("Date"),tdClass:"gl-w-1/4"},{key:"timeSpent",label:Object(p.__)("Time spent"),tdClass:"gl-w-15"},{key:"user",label:Object(p.__)("User")},{key:"summary",label:Object(p.__)("Summary")},{key:"actions",label:"",tdClass:"gl-w-10"}]},b=i("tBpV"),_=Object(b.a)(S,(function(){var e=this,t=e._self._c;return e.isLoading?t("gl-loading-icon",{attrs:{size:"lg"}}):t("gl-table-lite",{attrs:{items:e.report,fields:e.$options.fields,"foot-clone":""},scopedSlots:e._u([{key:"cell(spentAt)",fn:function({item:{spentAt:i}}){return[t("span",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:e.formatDate(i),expression:"formatDate(spentAt)"}]},[e._v("\n      "+e._s(e.formatShortDate(i))+"\n    ")])]}},{key:"foot(spentAt)",fn:function(){return[e._v(" ")]},proxy:!0},{key:"cell(timeSpent)",fn:function({item:{timeSpent:t}}){return[e._v("\n    "+e._s(e.formatTimeSpent(t))+"\n  ")]}},{key:"foot(timeSpent)",fn:function(){return[e._v("\n    "+e._s(e.totalTimeSpent)+"\n  ")]},proxy:!0},{key:"cell(user)",fn:function({item:{user:t}}){return[e._v("\n    "+e._s(t.name)+"\n  ")]}},{key:"foot(user)",fn:function(){return[e._v(" ")]},proxy:!0},{key:"cell(summary)",fn:function({item:{summary:t,note:i}}){return[e._v("\n    "+e._s(e.getSummary(t,i))+"\n  ")]}},{key:"foot(summary)",fn:function(){return[e._v(" ")]},proxy:!0},{key:"cell(actions)",fn:function({item:{id:i,userPermissions:n}}){return[n.adminTimelog?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:e.$options.i18n.deleteButtonText,expression:"$options.i18n.deleteButtonText"}],attrs:{category:"tertiary",icon:"remove",variant:"danger","aria-label":e.$options.i18n.deleteButtonText,loading:e.isDeletingTimelog(i)},on:{click:function(t){return e.deleteTimelog(i)}}}):e._e()]}},{key:"foot(actions)",fn:function(){return[e._v(" ")]},proxy:!0}])})}),[],!1,null,null,null);t.a=_.exports},PTNO:function(e,t,i){"use strict";var n=i("vZ/O"),a=i("l5WF"),s=i("PrLL"),r=i("47in"),o=i("1cpz"),l=i("dsWN"),m=i("MV2A"),u=i("FxFN"),d=i("AxUD"),c=i("bOix"),p=i("4wgn"),g=i("3twG"),f=i("/lV4"),v=i("UVeP"),h=i.n(v),T=i("b58I"),k=i.n(T),S=i("yck7"),b={components:{GlDatepicker:n.a,GlFormGroup:a.a,GlFormInput:s.a,GlFormTextarea:r.a,GlModal:o.a,GlAlert:l.a,GlLink:m.a},inject:{issuableType:{default:null}},props:{issuableId:{type:String,required:!1,default:""},workItemId:{type:String,required:!1,default:""},workItemType:{type:String,required:!1,default:""}},data:()=>({timeSpent:"",spentAt:null,summary:"",isLoading:!1,saveError:""}),computed:{modalText(){const e=d.issuableTypeText[this.issuableType||this.workItemType];return Object(f.sprintf)(Object(f.s__)("TimeTracking|Track time spent on this %{issuableTypeName}."),{issuableTypeName:e})},submitDisabled(){var e;return this.isLoading||0===(null===(e=this.timeSpent)||void 0===e?void 0:e.length)},primaryProps(){return{text:Object(f.s__)("CreateTimelogForm|Save"),attributes:{variant:"confirm",disabled:this.submitDisabled,loading:this.isLoading}}},cancelProps:()=>({text:Object(f.s__)("CreateTimelogForm|Cancel")}),timeTrackingDocsPath:()=>Object(g.B)(gon.relative_url_root||"","/help/user/project/time_tracking.md")},methods:{resetModal(){this.isLoading=!1,this.timeSpent="",this.spentAt=null,this.summary="",this.saveError=""},close(){this.resetModal(),this.$refs.modal.close()},registerTimeSpent(e){var t,i=this;return e.preventDefault(),0===(null===(t=this.timeSpent)||void 0===t?void 0:t.length)?null:(this.isLoading=!0,this.saveError="",this.workItemId?this.$apollo.mutate({mutation:h.a,variables:{input:{id:this.workItemId,timeTrackingWidget:{timelog:{spentAt:this.spentAt?Object(c.x)(this.spentAt,"isoDateTime"):Object(c.x)(Date.now(),"isoDateTime"),summary:this.summary,timeSpent:this.timeSpent}}}}}).then((function({data:e}){if(e.workItemUpdate.errors.length)throw new Error(e.workItemUpdate.errors);i.close()})).catch((function(e){i.saveError=(null==e?void 0:e.message)||Object(f.s__)("TimeTracking|An error occurred while saving the time estimate.")})).finally((function(){i.isLoading=!1})):this.$apollo.mutate({mutation:k.a,variables:{input:{timeSpent:this.timeSpent,spentAt:this.spentAt?Object(c.x)(this.spentAt,"isoDateTime"):Object(c.x)(Date.now(),"isoDateTime"),summary:this.summary,issuableId:this.getIssuableId()}}}).then((function({data:e}){var t;null!==(t=e.timelogCreate)&&void 0!==t&&t.errors.length?i.saveError=e.timelogCreate.errors[0].message||e.timelogCreate.errors[0]:i.close()})).catch((function(e){i.saveError=(null==e?void 0:e.message)||Object(f.s__)("CreateTimelogForm|An error occurred while saving the time entry.")})).finally((function(){i.isLoading=!1})))},getGraphQLEntityType(){return this.issuableType===d.TYPE_ISSUE?p.q:p.v},updateSpentAtDate(e){this.spentAt=e},getIssuableId(){return Object(u.b)(this.getGraphQLEntityType(),this.issuableId)}},CREATE_TIMELOG_MODAL_ID:S.a},_=i("tBpV"),y=Object(_.a)(b,(function(){var e=this,t=e._self._c;return t("gl-modal",{ref:"modal",attrs:{title:e.s__("CreateTimelogForm|Add time entry"),"modal-id":e.$options.CREATE_TIMELOG_MODAL_ID,size:"sm","data-testid":"create-timelog-modal","action-primary":e.primaryProps,"action-cancel":e.cancelProps},on:{primary:e.registerTimeSpent,cancel:e.close,close:e.close,hide:e.close}},[t("p",[e._v("\n    "+e._s(e.modalText)+"\n  ")]),e._v(" "),t("form",{staticClass:"js-quick-submit gl-flex gl-flex-col",on:{submit:function(t){return t.preventDefault(),e.registerTimeSpent.apply(null,arguments)}}},[t("div",{staticClass:"gl-flex gl-gap-3"},[t("gl-form-group",{key:"time-spent",attrs:{"label-for":"time-spent",label:e.s__("CreateTimelogForm|Time spent"),description:e.s__("CreateTimelogForm|Example: 1h 30m")}},[t("gl-form-input",{ref:"timeSpent",staticClass:"gl-form-input-sm",attrs:{id:"time-spent",autocomplete:"off"},model:{value:e.timeSpent,callback:function(t){e.timeSpent=t},expression:"timeSpent"}})],1),e._v(" "),t("gl-form-group",{key:"spent-at",attrs:{optional:"","label-for":"spent-at",label:e.s__("CreateTimelogForm|Spent at")}},[t("gl-datepicker",{attrs:{target:null,value:e.spentAt,"show-clear-button":"",autocomplete:"off",width:"sm"},on:{input:e.updateSpentAtDate,clear:function(t){return e.updateSpentAtDate(null)}}})],1)],1),e._v(" "),t("gl-form-group",{attrs:{label:e.s__("CreateTimelogForm|Summary"),optional:"","label-for":"summary"}},[t("gl-form-textarea",{attrs:{id:"summary",rows:"3","no-resize":""},model:{value:e.summary,callback:function(t){e.summary=t},expression:"summary"}})],1),e._v(" "),e.saveError?t("gl-alert",{staticClass:"gl-mb-3",attrs:{variant:"danger",dismissible:!1}},[e._v("\n      "+e._s(e.saveError)+"\n    ")]):e._e(),e._v(" "),t("input",{attrs:{type:"submit",hidden:""}})],1),e._v(" "),t("gl-link",{attrs:{href:e.timeTrackingDocsPath}},[e._v("\n    "+e._s(e.s__("CreateTimelogForm|How do I track and estimate time?"))+"\n  ")])],1)}),[],!1,null,null,null);t.a=y.exports},UVeP:function(e,t,i){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"workItemUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"WorkItemUpdateInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"workItemUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"workItem"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"WorkItem"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:186}};n.loc.source={body:'#import "./work_item.fragment.graphql"\n\nmutation workItemUpdate($input: WorkItemUpdateInput!) {\n  workItemUpdate(input: $input) {\n    workItem {\n      ...WorkItem\n    }\n    errors\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};n.definitions=n.definitions.concat(i("IaCQ").definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)})));var s={};function r(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),s[e.name.value]=t}})),e.exports=n,e.exports.workItemUpdate=function(e,t){var i={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var n=s[t]||new Set,a=new Set,o=new Set;for(n.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){a.has(e)||(a.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return a.forEach((function(t){var n=r(e,t);n&&i.definitions.push(n)})),i}(n,"workItemUpdate")},WJII:function(e,t){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"mergeRequestSetTimeEstimate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MergeRequestUpdateInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"issuableSetTimeEstimate"},name:{kind:"Name",value:"mergeRequestUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"issuable"},name:{kind:"Name",value:"mergeRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"humanTimeEstimate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeEstimate"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:240}};i.loc.source={body:"mutation mergeRequestSetTimeEstimate($input: MergeRequestUpdateInput!) {\n  issuableSetTimeEstimate: mergeRequestUpdate(input: $input) {\n    errors\n    issuable: mergeRequest {\n      id\n      humanTimeEstimate\n      timeEstimate\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),n[e.name.value]=t}})),e.exports=i,e.exports.mergeRequestSetTimeEstimate=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(t){var n=a(e,t);n&&i.definitions.push(n)})),i}(i,"mergeRequestSetTimeEstimate")},"Wau+":function(e,t,i){"use strict";var n=i("l5WF"),a=i("PrLL"),s=i("1cpz"),r=i("dsWN"),o=i("MV2A"),l=i("qLpH"),m=i("AxUD"),u=i("SNRI"),d=i("/lV4"),c=i("UVeP"),p=i.n(c),g=i("geQS"),f=i.n(g),v=i("WJII"),h=i.n(v),T=i("yck7");const k={[m.TYPE_ISSUE]:f.a,[m.TYPE_MERGE_REQUEST]:h.a};var S={components:{GlFormGroup:n.a,GlFormInput:a.a,GlModal:s.a,GlAlert:r.a,GlLink:o.a},inject:{issuableType:{default:null}},props:{fullPath:{type:String,required:!1,default:""},issuableIid:{type:String,required:!1,default:""},timeTracking:{type:Object,required:!0},workItemId:{type:String,required:!1,default:""},workItemType:{type:String,required:!1,default:""}},data(){var e,t;return{currentEstimate:null!==(e=this.timeTracking.timeEstimate)&&void 0!==e?e:0,timeEstimate:null!==(t=this.timeTracking.humanTimeEstimate)&&void 0!==t?t:"",isSaving:!1,isResetting:!1,saveError:""}},computed:{submitDisabled(){return this.isSaving||this.isResetting||""===this.timeEstimate},resetDisabled(){return this.isSaving||this.isResetting||0===this.currentEstimate},primaryProps(){return{text:Object(d.__)("Save"),attributes:{variant:"confirm",disabled:this.submitDisabled,loading:this.isSaving}}},secondaryProps(){return 0===this.currentEstimate?null:{text:Object(d.__)("Remove"),attributes:{disabled:this.resetDisabled,loading:this.isResetting}}},cancelProps:()=>({text:Object(d.__)("Cancel")}),timeTrackingDocsPath:()=>Object(l.a)("user/project/time_tracking.md"),modalTitle(){return 0===this.currentEstimate?Object(d.s__)("TimeTracking|Set time estimate"):Object(d.s__)("TimeTracking|Edit time estimate")},modalText(){const e=m.issuableTypeText[this.issuableType||this.workItemType];return Object(d.sprintf)(Object(d.s__)("TimeTracking|Set estimated time to complete this %{issuableTypeName}."),{issuableTypeName:e})}},watch:{timeTracking(){var e,t;this.currentEstimate=null!==(e=this.timeTracking.timeEstimate)&&void 0!==e?e:0,this.timeEstimate=null!==(t=this.timeTracking.humanTimeEstimate)&&void 0!==t?t:""}},methods:{resetModal(){this.isSaving=!1,this.isResetting=!1,this.saveError=""},close(){this.$refs.modal.close()},saveTimeEstimate(e){null==e||e.preventDefault(),""!==this.timeEstimate&&(this.isSaving=!0,this.updateEstimatedTime(this.timeEstimate))},resetTimeEstimate(){this.isResetting=!0,this.updateEstimatedTime("0")},updateEstimatedTime(e){var t=this;return this.saveError="",this.workItemId?this.$apollo.mutate({mutation:p.a,variables:{input:{id:this.workItemId,timeTrackingWidget:{timeEstimate:Object(u.e)(e)&&e>0?e+"h":e}}}}).then((function({data:e}){if(e.workItemUpdate.errors.length)throw new Error(e.workItemUpdate.errors);t.close()})).catch((function(e){t.saveError=(null==e?void 0:e.message)||Object(d.s__)("TimeTracking|An error occurred while saving the time estimate.")})).finally((function(){t.isSaving=!1,t.isResetting=!1})):this.$apollo.mutate({mutation:k[this.issuableType],variables:{input:{projectPath:this.fullPath,iid:this.issuableIid,timeEstimate:e}}}).then((function({data:e}){var i;null!==(i=e.issuableSetTimeEstimate)&&void 0!==i&&i.errors.length?t.saveError=e.issuableSetTimeEstimate.errors[0].message||e.issuableSetTimeEstimate.errors[0]:t.close()})).catch((function(e){t.saveError=(null==e?void 0:e.message)||Object(d.s__)("TimeTracking|An error occurred while saving the time estimate.")})).finally((function(){t.isSaving=!1,t.isResetting=!1}))}},SET_TIME_ESTIMATE_MODAL_ID:T.b},b=i("tBpV"),_=Object(b.a)(S,(function(){var e=this,t=e._self._c;return t("gl-modal",{ref:"modal",attrs:{title:e.modalTitle,"modal-id":e.$options.SET_TIME_ESTIMATE_MODAL_ID,size:"sm","data-testid":"set-time-estimate-modal","action-primary":e.primaryProps,"action-secondary":e.secondaryProps,"action-cancel":e.cancelProps},on:{hidden:e.resetModal,primary:function(t){return t.preventDefault(),e.saveTimeEstimate.apply(null,arguments)},secondary:function(t){return t.preventDefault(),e.resetTimeEstimate.apply(null,arguments)},cancel:e.close}},[t("p",[e._v("\n    "+e._s(e.modalText)+"\n  ")]),e._v(" "),t("form",{staticClass:"js-quick-submit",on:{submit:function(t){return t.preventDefault(),e.saveTimeEstimate.apply(null,arguments)}}},[t("gl-form-group",{attrs:{"label-for":"time-estimate",label:e.s__("TimeTracking|Estimate"),description:e.s__("TimeTracking|Enter time as a total duration (for example, 1mo 2w 3d 5h 10m), or specify hours and minutes (for example, 75:30).")}},[t("gl-form-input",{attrs:{id:"time-estimate","data-testid":"time-estimate",autocomplete:"off"},model:{value:e.timeEstimate,callback:function(t){e.timeEstimate=t},expression:"timeEstimate"}})],1),e._v(" "),e.saveError?t("gl-alert",{staticClass:"gl-mb-3",attrs:{variant:"danger",dismissible:!1}},[e._v("\n      "+e._s(e.saveError)+"\n    ")]):e._e(),e._v(" "),t("input",{attrs:{type:"submit",hidden:""}})],1),e._v(" "),t("gl-link",{attrs:{href:e.timeTrackingDocsPath}},[e._v("\n    "+e._s(e.s__("TimeTracking|How do I estimate and track time?"))+"\n  ")])],1)}),[],!1,null,null,null);t.a=_.exports},b58I:function(e,t,i){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createTimelog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelogCreateInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timelogCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timelog"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"issue"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"IssueTimeTrackingFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mergeRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MergeRequestTimeTrackingFragment"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:422}};n.loc.source={body:'#import "~/graphql_shared/fragments/issue_time_tracking.fragment.graphql"\n#import "~/graphql_shared/fragments/merge_request_time_tracking.fragment.graphql"\n\nmutation createTimelog($input: TimelogCreateInput!) {\n  timelogCreate(input: $input) {\n    errors\n    timelog {\n      id\n      issue {\n        ...IssueTimeTrackingFragment\n      }\n      mergeRequest {\n        ...MergeRequestTimeTrackingFragment\n      }\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function s(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}n.definitions=n.definitions.concat(s(i("iEb/").definitions)),n.definitions=n.definitions.concat(s(i("NlFk").definitions));var r={};function o(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),r[e.name.value]=t}})),e.exports=n,e.exports.createTimelog=function(e,t){var i={kind:e.kind,definitions:[o(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var n=r[t]||new Set,a=new Set,s=new Set;for(n.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var n=o(e,t);n&&i.definitions.push(n)})),i}(n,"createTimelog")},geQS:function(e,t){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"issueSetTimeEstimate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateIssueInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"issuableSetTimeEstimate"},name:{kind:"Name",value:"updateIssue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"issuable"},name:{kind:"Name",value:"issue"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"humanTimeEstimate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeEstimate"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:212}};i.loc.source={body:"mutation issueSetTimeEstimate($input: UpdateIssueInput!) {\n  issuableSetTimeEstimate: updateIssue(input: $input) {\n    errors\n    issuable: issue {\n      id\n      humanTimeEstimate\n      timeEstimate\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),n[e.name.value]=t}})),e.exports=i,e.exports.issueSetTimeEstimate=function(e,t){var i={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(t){var n=a(e,t);n&&i.definitions.push(n)})),i}(i,"issueSetTimeEstimate")},tyhI:function(e,t,i){"use strict";var n=i("MV2A"),a=i("1cpz"),s=i("4lAS"),r=i("FkSe"),o=i("Mq5L"),l=i("z1xw"),m=i("AxUD"),u=i("GuZl"),d=i("/lV4"),c=i("H3X6"),p=i("d6eQ"),g=i("Or2z"),f={name:"TimeTrackingCollapsedState",components:{GlIcon:i("s1D3").a},directives:{GlTooltip:l.a},props:{showComparisonState:{type:Boolean,required:!0},showSpentOnlyState:{type:Boolean,required:!0},showEstimateOnlyState:{type:Boolean,required:!0},showNoTimeTrackingState:{type:Boolean,required:!0},timeSpentHumanReadable:{type:String,required:!1,default:""},timeEstimateHumanReadable:{type:String,required:!1,default:""}},computed:{divClass(){return this.showComparisonState?"compare":this.showEstimateOnlyState?"estimate-only":this.showSpentOnlyState?"spend-only":this.showNoTimeTrackingState?"no-tracking":""},spanClass(){return this.showNoTimeTrackingState?"no-value collapse-truncated-title gl-pt-2 gl-px-3 gl-text-sm":""},text(){return this.showComparisonState?`${this.timeSpentHumanReadable} / ${this.timeEstimateHumanReadable}`:this.showEstimateOnlyState?"-- / "+this.timeEstimateHumanReadable:this.showSpentOnlyState?this.timeSpentHumanReadable+" / --":this.showNoTimeTrackingState?Object(d.__)("None"):""},timeTrackedTooltipText(){let e;return this.showComparisonState?e=Object(d.__)("Time remaining"):this.showEstimateOnlyState?e=Object(d.__)("Estimated"):this.showSpentOnlyState&&(e=Object(d.__)("Time spent")),Object(d.sprintf)("%{title}: %{text}",{title:e,text:this.text})},tooltipText(){return this.showNoTimeTrackingState?Object(d.__)("Time tracking"):this.timeTrackedTooltipText}}},v=i("tBpV"),h=Object(v.a)(f,(function(){var e=this._self._c;return e("div",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip:body.viewport.left",arg:"body",modifiers:{viewport:!0,left:!0}}],staticClass:"sidebar-collapsed-icon py-1 !gl-h-auto",attrs:{title:this.tooltipText,"data-testid":"collapsedState"}},[e("gl-icon",{attrs:{name:"timer"}}),this._v(" "),e("div",{staticClass:"time-tracking-collapsed-summary"},[e("div",{staticClass:"gl-px-4",class:this.divClass},[e("span",{staticClass:"gl-text-sm",class:this.spanClass},[this._v(" "+this._s(this.text)+" ")])])])],1)}),[],!1,null,null,null).exports,T=i("J6+Z"),k=i("bOix"),S={name:"TimeTrackingComparisonPane",components:{GlProgressBar:T.a},directives:{GlTooltip:l.a},props:{timeSpent:{type:Number,required:!0},timeEstimate:{type:Number,required:!0},timeSpentHumanReadable:{type:String,required:!0},timeEstimateHumanReadable:{type:String,required:!0},limitToHours:{type:Boolean,required:!1,default:!1}},computed:{parsedTimeRemaining(){const e=this.timeEstimate-this.timeSpent;return Object(k.mb)(e,{limitToHours:this.limitToHours})},timeRemainingHumanReadable(){return Object(k.qb)(this.parsedTimeRemaining)},timeRemainingTooltip(){const{timeRemainingHumanReadable:e,timeRemainingMinutes:t}=this;return t<0?Object(d.sprintf)(Object(d.s__)("TimeTracking|Over by %{timeRemainingHumanReadable}"),{timeRemainingHumanReadable:e}):Object(d.sprintf)(Object(d.s__)("TimeTracking|Time remaining: %{timeRemainingHumanReadable}"),{timeRemainingHumanReadable:e})},timeRemainingMinutes(){return this.timeEstimate-this.timeSpent},timeRemainingPercent(){return Math.floor(this.timeSpent/this.timeEstimate*100)},timeRemainingStatusClass(){return this.timeEstimate>=this.timeSpent?"within_estimate":"over_estimate"},progressBarVariant(){return this.timeRemainingPercent>100?"danger":"primary"}}},b=Object(v.a)(S,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-mt-2",attrs:{"data-testid":"timeTrackingComparisonPane"}},[t("div",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"compare-meter",class:e.timeRemainingStatusClass,attrs:{"data-testid":"compareMeter",title:e.timeRemainingTooltip}},[t("gl-progress-bar",{attrs:{"data-testid":"timeRemainingProgress",value:e.timeRemainingPercent,variant:e.progressBarVariant}}),e._v(" "),t("div",{staticClass:"compare-display-container gl-mt-2 gl-flex gl-justify-between"},[t("div",{staticClass:"gl-float-left"},[t("span",{staticClass:"gl-text-gray-400"},[e._v(e._s(e.s__("TimeTracking|Spent")))]),e._v(" "),t("span",{staticClass:"compare-value spent"},[e._v(e._s(e.timeSpentHumanReadable))])]),e._v(" "),t("div",{staticClass:"estimated gl-float-right"},[t("span",{staticClass:"gl-text-gray-400"},[e._v(e._s(e.s__("TimeTrackingEstimated|Est")))]),e._v(" "),t("span",{staticClass:"compare-value"},[e._v(e._s(e.timeEstimateHumanReadable))])])])],1)])}),[],!1,null,null,null).exports,_=i("30su");var y={name:"TimeTrackingSpentOnlyPane",timeSpent:Object(d.s__)("TimeTracking|%{spentStart}Spent: %{spentEnd}"),components:{GlSprintf:_.a},props:{timeSpentHumanReadable:{type:String,required:!0}}},E=Object(v.a)(y,(function(){var e=this,t=e._self._c;return t("div",{attrs:{"data-testid":"spentOnlyPane"}},[t("gl-sprintf",{attrs:{message:e.$options.timeSpent},scopedSlots:e._u([{key:"spent",fn:function({content:i}){return[t("span",{staticClass:"gl-font-bold"},[e._v(e._s(i))]),e._v(e._s(e.timeSpentHumanReadable)+"\n    ")]}}])})],1)}),[],!1,null,null,null).exports,w=i("5kjG"),I=i("yck7"),N=i("PTNO"),O=i("Wau+"),x={name:"IssuableTimeTracker",i18n:{noTimeTrackingText:Object(d.__)("No estimate or time spent"),estimatedOnlyText:Object(d.s__)("TimeTracking|Estimated:")},components:{GlLink:n.a,GlModal:a.a,GlButton:s.a,GlLoadingIcon:r.a,TimeTrackingCollapsedState:h,TimeTrackingSpentOnlyPane:E,TimeTrackingComparisonPane:b,TimeTrackingReport:w.a,CreateTimelogForm:N.a,SetTimeEstimateForm:O.a},directives:{GlModal:o.a,GlTooltip:l.a},inject:{issuableType:{default:null}},props:{limitToHours:{type:Boolean,default:!1,required:!1},fullPath:{type:String,required:!1,default:""},issuableId:{type:String,required:!1,default:""},issuableIid:{type:String,required:!1,default:""},initialTimeTracking:{type:Object,required:!1,default:null},showCollapsed:{type:Boolean,default:!0,required:!1},canAddTimeEntries:{type:Boolean,required:!1,default:!0},canSetTimeEstimate:{type:Boolean,required:!1,default:!1}},data(){return{showHelp:!1,timeTracking:{...this.initialTimeTracking}}},apollo:{issuableTimeTracking:{query(){return p.l[this.issuableType].query},skip(){return!this.issuableType||!p.l[this.issuableType]||(!!this.initialTimeTracking||(!this.issuableIid||!this.fullPath))},variables(){return{iid:this.issuableIid,fullPath:this.fullPath}},update(e){var t;this.timeTracking={...null===(t=e.workspace)||void 0===t?void 0:t.issuable}}}},computed:{isTimeTrackingInfoLoading(){var e,t;return null!==(e=null===(t=this.$apollo)||void 0===t||null===(t=t.queries.issuableTimeTracking)||void 0===t?void 0:t.loading)&&void 0!==e&&e},timeEstimate(){var e;return(null===(e=this.timeTracking)||void 0===e?void 0:e.timeEstimate)||0},totalTimeSpent(){var e;return(null===(e=this.timeTracking)||void 0===e?void 0:e.totalTimeSpent)||0},humanTimeEstimate(){var e;return(null===(e=this.timeTracking)||void 0===e?void 0:e.humanTimeEstimate)||""},humanTotalTimeSpent(){var e;return(null===(e=this.timeTracking)||void 0===e?void 0:e.humanTotalTimeSpent)||""},hasTotalTimeSpent(){return Boolean(this.totalTimeSpent)},hasTimeEstimate(){return Boolean(this.timeEstimate)},showComparisonState(){return this.hasTimeEstimate&&this.hasTotalTimeSpent},showEstimateOnlyState(){return this.hasTimeEstimate&&!this.hasTotalTimeSpent},showSpentOnlyState(){return this.hasTotalTimeSpent&&!this.hasTimeEstimate},showNoTimeTrackingState(){return!this.hasTimeEstimate&&!this.hasTotalTimeSpent},showHelpState(){return Boolean(this.showHelp)},isTimeReportSupported(){return[m.TYPE_ISSUE,m.TYPE_MERGE_REQUEST].includes(this.issuableType)&&this.issuableId},timeTrackingIconTitle(){return this.showHelpState?"":c.a},timeTrackingIconName(){return this.showHelpState?"close":"question-o"},timeEstimateTooltip(){return this.hasTimeEstimate?Object(d.s__)("TimeTracking|Edit estimate"):Object(d.s__)("TimeTracking|Set estimate")}},watch:{initialTimeTracking(e){this.timeTracking=e}},created(){g.a.$on("timeTracker:refresh",this.refresh)},methods:{refresh(){this.$apollo.queries.issuableTimeTracking.refetch()},openRegisterTimeSpentModal(){this.$root.$emit(u.c,I.a)}},setTimeEstimateModalId:I.b},D=Object(v.a)(x,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"time-tracker sidebar-help-wrap",attrs:{"data-testid":"time-tracker"}},[e.showCollapsed?t("time-tracking-collapsed-state",{attrs:{"show-comparison-state":e.showComparisonState,"show-no-time-tracking-state":e.showNoTimeTrackingState,"show-help-state":e.showHelpState,"show-spent-only-state":e.showSpentOnlyState,"show-estimate-only-state":e.showEstimateOnlyState,"time-spent-human-readable":e.humanTotalTimeSpent,"time-estimate-human-readable":e.humanTimeEstimate}}):e._e(),e._v(" "),t("div",{staticClass:"hide-collapsed gl-flex gl-items-center gl-font-bold gl-leading-20 gl-text-gray-900"},[e._v("\n    "+e._s(e.__("Time tracking"))+"\n    "),e.isTimeTrackingInfoLoading?t("gl-loading-icon",{staticClass:"gl-ml-2",attrs:{size:"sm",inline:""}}):e._e(),e._v(" "),e.canSetTimeEstimate||e.canAddTimeEntries?t("div",{staticClass:"gl-ml-auto gl-flex"},[e.canSetTimeEstimate?t("gl-button",{directives:[{name:"gl-modal",rawName:"v-gl-modal",value:e.$options.setTimeEstimateModalId,expression:"$options.setTimeEstimateModalId"},{name:"gl-tooltip",rawName:"v-gl-tooltip.top",modifiers:{top:!0}}],attrs:{category:"tertiary",icon:"timer",size:"small","data-testid":"set-time-estimate-button",title:e.timeEstimateTooltip,"aria-label":e.timeEstimateTooltip}}):e._e(),e._v(" "),e.canAddTimeEntries?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.top",modifiers:{top:!0}}],attrs:{category:"tertiary",icon:"plus",size:"small","data-testid":"add-time-entry-button",title:e.__("Add time entry")},on:{click:function(t){return e.openRegisterTimeSpentModal()}}}):e._e()],1):e._e()],1),e._v(" "),e.isTimeTrackingInfoLoading?e._e():t("div",{staticClass:"hide-collapsed"},[e.showEstimateOnlyState?t("div",{attrs:{"data-testid":"estimateOnlyPane"}},[e._v("\n      "+e._s(e.$options.i18n.estimatedOnlyText)+" "+e._s(e.humanTimeEstimate)+"\n    ")]):e._e(),e._v(" "),e.showSpentOnlyState?t("time-tracking-spent-only-pane",{attrs:{"time-spent-human-readable":e.humanTotalTimeSpent}}):e._e(),e._v(" "),e.showNoTimeTrackingState?t("div",{attrs:{"data-testid":"noTrackingPane"}},[t("span",{staticClass:"gl-text-gray-500"},[e._v(e._s(e.$options.i18n.noTimeTrackingText))])]):e._e(),e._v(" "),e.showComparisonState?t("time-tracking-comparison-pane",{attrs:{"time-estimate":e.timeEstimate,"time-spent":e.totalTimeSpent,"time-spent-human-readable":e.humanTotalTimeSpent,"time-estimate-human-readable":e.humanTimeEstimate,"limit-to-hours":e.limitToHours}}):e._e(),e._v(" "),e.isTimeReportSupported?t("div",[e.hasTotalTimeSpent?t("gl-link",{directives:[{name:"gl-modal",rawName:"v-gl-modal",value:"time-tracking-report",expression:"'time-tracking-report'"}],staticClass:"gl-text-default",attrs:{"data-testid":"reportLink",href:"#"}},[e._v("\n        "+e._s(e.__("Time tracking report"))+"\n      ")]):e._e(),e._v(" "),t("gl-modal",{attrs:{"modal-id":"time-tracking-report",size:"lg",title:e.__("Time tracking report"),"hide-footer":!0}},[t("time-tracking-report",{attrs:{"limit-to-hours":e.limitToHours,"issuable-id":e.issuableId}})],1)],1):e._e(),e._v(" "),t("create-timelog-form",{attrs:{"issuable-id":e.issuableId}}),e._v(" "),t("set-time-estimate-form",{attrs:{"full-path":e.fullPath,"issuable-iid":e.issuableIid,"time-tracking":e.timeTracking}})],1)],1)}),[],!1,null,null,null);t.a=D.exports},"yTl/":function(e,t,i){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteTimelog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TimelogDeleteInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timelogDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timelog"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"issue"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"IssueTimeTrackingFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mergeRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MergeRequestTimeTrackingFragment"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:422}};n.loc.source={body:'#import "~/graphql_shared/fragments/issue_time_tracking.fragment.graphql"\n#import "~/graphql_shared/fragments/merge_request_time_tracking.fragment.graphql"\n\nmutation deleteTimelog($input: TimelogDeleteInput!) {\n  timelogDelete(input: $input) {\n    errors\n    timelog {\n      id\n      issue {\n        ...IssueTimeTrackingFragment\n      }\n      mergeRequest {\n        ...MergeRequestTimeTrackingFragment\n      }\n    }\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function s(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}n.definitions=n.definitions.concat(s(i("iEb/").definitions)),n.definitions=n.definitions.concat(s(i("NlFk").definitions));var r={};function o(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,i)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,i)})),t.definitions&&t.definitions.forEach((function(t){e(t,i)}))}(e,t),r[e.name.value]=t}})),e.exports=n,e.exports.deleteTimelog=function(e,t){var i={kind:e.kind,definitions:[o(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var n=r[t]||new Set,a=new Set,s=new Set;for(n.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var n=o(e,t);n&&i.definitions.push(n)})),i}(n,"deleteTimelog")},yck7:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));const n="create-timelog-modal",a="set-time-estimate-modal"}}]);
//# sourceMappingURL=commons-pages.dashboard.milestones.show-pages.groups.merge_requests-pages.groups.milestones.edit-pag-fe7abc92.4b8290a5.chunk.js.map