1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"3.7.16"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8b184f98-8a22-4e21-9315-6841e990579a",e._sentryDebugIdIdentifier="sentry-dbid-8b184f98-8a22-4e21-9315-6841e990579a")}catch{}}();"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1309],{53839(e,t,a){a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(18111),a(61701),a(22489),a(20116),a(44114);var l=a(16544),s=a(56962),i=a(69120),r=a(1284),o=a(8803),n=a(93840),d=a(60922),c=a(18717),h=a(31571);let m={async refreshScheduleUsers(e,t=null){let a=()=>{let e=new Set((i.A.scheduleUsers.options||[]).map(e=>e.value));i.A.params.assigned_users=i.A.params.assigned_users.filter(t=>e.has(t))};if(t)i.A.scheduleUsers=t,a();else{if(!e)return;return(0,l.Tt)(s.A.getScheduleUsersUrl(e)).then(e=>{i.A.scheduleUsers=e.result,a()}).catch(r.r)}},async fetchTasks(e=null){if(!e)return i.A.params.scheduleUuid?(0,l.Tt)(s.A.getScheduleTasks(i.A.params)).then(e=>{let t=e.result;i.A.data=t,i.I.value=t.is_empty}).catch(r.r).finally(()=>{i.A.loading=!1}):(i.A.data={tasks:[],task_grouped_by_days:{no_date:[]},result_task_count:0,is_empty:!0},i.I.value=!0,i.A.loading=!1,Promise.resolve());i.A.data=e,i.I.value=e.is_empty,i.A.loading=!1},refreshOfficeScheduleUsers:async()=>(0,l.Tt)(s.A.getOfficeScheduleUsersUrl()).then(e=>{i.A.scheduleUsers=e.result}).catch(r.r),async fetchOfficeTasks(){i.A.loading=!0;let e={...i.A.params};return n.M.dashboardMode&&(e.task_limit=12),(0,l.Tt)(s.A.getOfficeTasks(e)).then(e=>{i.A.data=e.result}).catch(r.r).finally(()=>{i.A.loading=!1})},fetchTasksShared:async()=>(0,l.Tt)(s.A.getScheduleTasksShared(i.A.params)).then(e=>{let t=e.result;i.A.data=t,i.I.value=t.is_empty}).catch(r.r).finally(()=>{i.A.loading=!1}),validateTask(e){let t=!0;return e.title.length<1&&(t=!1),t},removeTaskSoft(e){let t=i.A.data.tasks.find(t=>t.task.uuid===e),a=t?.task;if(!a)return;let l=i.A.data.tasks.findIndex(e=>e.task.uuid===a.uuid);l<0||i.A.data.tasks.splice(l,1)},async updateTask(e,t,a=!1){return this.validateTask(e)?(0,l.Hv)(s.A.editTaskUrl(e.uuid),t).then(t=>(Object.assign(e,t.result),e.status===o.Rr.STATUS_DONE&&(i.A.data.has_done_tasks=!0),a&&e.status===o.Rr.STATUS_DONE&&(c.z.emitter.emit("tasks-task-done",e),i.A.params.show_closed_tasks||this.removeTaskSoft(e.uuid)),a&&e.status===o.Rr.STATUS_TODO&&c.z.emitter.emit("tasks-task-todo",e),e)).catch(r.r):null},async refreshTaskByUuid(e,t=null){let a=i.A.data.tasks.find(t=>t.task.uuid===e);if(!t||a.task.modified_at!==t)return d.r.getTask(e).then(e=>{Object.assign(a,e)}).catch(r.r)},async addNewTask(e){if(this.validateTask(e))return(0,l.Hv)(s.A.addTaskUrl(),{task:{schedule:i.A.scheduleUuid,action:e.action,title:e.title,assignee:e.assignee,due_date:e.due_date,all_day:e.all_day,priority:e.priority}}).then(async t=>(e.uuid=t.result,i.I.value=!1,i.A.isFistTaskPending=!1,(0,h._)("task_created"),i.A.data.tasks.push({task:e}),i.A.data.result_task_count+=1,await this.refreshTaskByUuid(e.uuid),e.uuid)).catch(r.r)},async removeTask(e){if("__new__"===e.uuid){let e=i.A.data.tasks.findIndex(e=>"__new__"===e.task.uuid);i.A.data.tasks.splice(e,1)}else(0,l.Hv)(s.A.deleteTaskUrl(e.uuid),{}).then(t=>{let a=i.A.data.tasks.findIndex(t=>t.task.uuid===e.uuid);i.A.data.tasks.splice(a,1),i.I.value=t.is_empty,i.A.data.task_count-=1,c.z.emitter.emit("tasks-task-deleted",e)}).catch(r.r)},addNewEmptyTask(){if(i.A.data.tasks.find(e=>"__new__"===e.task.uuid))return;let e=JSON.parse(JSON.stringify({task:o.Jr}));return i.A.data.tasks.push(e),e},clearFilters(){i.A.params.assigned_users=[],i.A.params.show_closed_tasks=!1,i.A.params.only_mine=!1,i.A.params.task_priority=[],i.A.params.group_by_day=!1},async refreshTasks(e=null){i.A.loading=!0,n.M.isClient?await m.fetchTasksShared():await m.fetchTasks(e)},fetchProjects:async e=>(0,l.Tt)(s.A.getScheduleProjects(e)).then(e=>(i.A.projects=e.result,i.A.projects)).catch(r.r)};a.d(t,["P",0,m])},69120(e,t,a){a.d(t,{I:()=>i});var l=a(41425);let s=(0,l.reactive)({scheduleUuid:null,data:null,params:{assigned_users:[],show_closed_tasks:!1,only_mine:!1,scheduleUuid:null,task_limit:null,task_priority:[],group_by_day:!1,task_order_by:"dueDate",task_order_mode:"ASC",project_keys:[]},scheduleUsers:[],loading:!1,sortingKey:"due_date_asc",userKey:window.userKey,isInTeam:window.isInTeam,projects:[],isFistTaskPending:!1}),i=(0,l.ref)(!0);a.d(t,["A",0,s])},76506(e,t,a){a.d(t,{A:()=>E});var l=a(41425);let s=["disabled"],i={key:0,class:"ui-assignees"},r={key:0,class:"kis-user-avatar",style:{"background-color":"#2d9cdb"}},o=["title"],n={key:1,class:"ui-assignees-img",width:"25",height:"25",viewBox:"0 0 25 26","aria-hidden":"true"},d={class:"kis-tabs-menu"},c={class:"kis-tabs-content"},h={class:"assignee-list"},m=["onClick"],u={key:0,class:"d-flex align-content-center justify-content-center text-muted py-6"};a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(18111),a(61701),a(22489),a(44114),a(7588);var p=a(15906),y=a(97478),g=a(6947),k=a(68394),v=a(8803),f=a(68083),C=a(16544);let _={TEAM_MEMBERS:"teamMembers",CLIENTS_AND_COWORKERS:"clientsAndCoworkers"},b={name:"AssigneeChoice",components:{Popover:p.A,FormCheckbox:g.A},props:{scheduleUuid:{type:String},assignees:{type:Array,required:!0},multiple:{type:Boolean,required:!0},callback:{type:Function,required:!0},assigneesData:{type:Array,required:!0},limit:{type:Number},readOnly:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},isNew:{type:Boolean,default:!1}},data:()=>({TABS:_,isDisabled:!1,isLoading:!1,users:[],allUsers:[],isGuest:!0,activeTab:_.TEAM_MEMBERS}),methods:{getInitialsFromName:C.Hn,translate:y.T,async fetchUsers(){this.isLoading=!0,await k.P.refreshScheduleUsers(this.scheduleUuid),this.isLoading=!1;let e=new Set((f.M_.scheduleUsers.options||[]).map(e=>e.value)),t=this.assigneesData.filter(t=>!e.has(t.id)),a=[...f.M_.scheduleUsers.options];for(let e of t)a.push({value:e.id,label:e.name,color:e.color,email:null,assigned:!0,role:v.iK.USER_DELET
1ED_FROM_PROJECT});this.users=this.groupUsers(a),this.allUsers=Object.values(this.users).flat(),this.isGuest=f.M_.scheduleUsers.is_guest},async toggleOverlay(e){!this.readOnly&&(this.$refs.overlay.toggle(e),this.active&&await this.fetchUsers())},groupUsers(e){let t={[_.TEAM_MEMBERS]:[],[_.CLIENTS_AND_COWORKERS]:[]};return(e=e.filter((e,t,a)=>a.findIndex(t=>t.value===e.value)===t)).forEach(e=>{switch(e.role){case v.iK.USER_CREATOR:case v.iK.USER_PROJECT_MEMBER:case v.iK.USER_TEAM_MEMBER:case v.iK.USER_DELETED_FROM_PROJECT:t.teamMembers.push(Object.assign({...e,assigned:this.assignees.includes(e.value)||e.role===v.iK.USER_DELETED_FROM_PROJECT}));break;case v.iK.USER_GUEST:t.clientsAndCoworkers.push(Object.assign({...e,assigned:this.assignees.includes(e.value)}))}}),t},async toggleUserAssignment(e,t){if(this.isDisabled=!0,this.multiple){let a=[...this.assignees];if(e?a.push(t.value):a.splice(a.indexOf(t.value),1),!await this.callback(e,a)){this.isDisabled=!1;return}await this.fetchUsers()}else{if(!await this.callback(e,t.value)){this.isDisabled=!1;return}e?(this.resetUserAssignment(),t.assigned=!0):this.resetUserAssignment()}this.isDisabled=!1},resetUserAssignment(){Object.values(this.users).forEach(e=>{e.forEach(e=>{e.assigned=!1})})}},computed:{assigneesDataObject(){return this.isNew?this.allUsers.length>0?Object.fromEntries(this.allUsers.map(e=>[e.value,{name:e.label,color:e.color}])):null:this.assigneesData.length>0?Object.fromEntries(this.assigneesData.map(e=>[e.id,{name:e.name,color:e.color}])):null},assigneesLimited(){return this.limit>0?this.assignees.slice(0,this.limit).reverse():this.assignees},active(){return this.$refs.overlay?.visible||!1}}},E=(0,a(66262).A)(b,[["render",function(e,t,a,p,y,g){let k=(0,l.resolveComponent)("form-checkbox"),v=(0,l.resolveComponent)("Popover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",null,[(0,l.createElementVNode)("button",{class:"ui-button-clear",onClick:t[0]||(t[0]=(...e)=>g.toggleOverlay&&g.toggleOverlay(...e)),disabled:a.readOnly},[a.assignees.length>0&&g.assigneesDataObject?((0,l.openBlock)(),(0,l.createElementBlock)("div",i,[a.limit&&a.assignees.length>a.limit?((0,l.openBlock)(),(0,l.createElementBlock)("div",r,[(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(`+${a.assignees.length-a.limit}`),1)])):(0,l.createCommentVNode)("v-if",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(g.assigneesLimited,e=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{title:g.assigneesDataObject[e].name,class:"kis-user-avatar",style:(0,l.normalizeStyle)(`background-color: ${g.assigneesDataObject[e].
1color||"#2D9CDB"}`)},[(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(g.getInitialsFromName(g.assigneesDataObject[e].name)),1)],12,o))),256))])):((0,l.openBlock)(),(0,l.createElementBlock)("svg",n,[...t[2]||(t[2]=[(0,l.createElementVNode)("use",{"xlink:href":"/build/images/spritemap.svg#icon-ico-assignee"},null,-1)])]))],8,s),a.readOnly?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createBlock)(v,{key:0,ref:"overlay",class:"overlay","append-to":a.appendTo},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["kis-tabs",{"deactivated-dim":y.isDisabled}])},[(0,l.createElementVNode)("div",d,[(0,l.createElementVNode)("button",{class:(0,l.normalizeClass)({active:y.activeTab===y.TABS.TEAM_MEMBERS}),onClick:t[1]||(t[1]=e=>y.activeTab=y.TABS.TEAM_MEMBERS)},(0,l.toDisplayString)(g.translate("dashboard.labels.team_members")),3),(0,l.createCommentVNode)(" <button :class=\"{'active': activeTab === TABS.CLIENTS_AND_COWORKERS}\""),(0,l.createCommentVNode)(' @click="activeTab = TABS.CLIENTS_AND_COWORKERS">'),(0,l.createCommentVNode)(" {{ translate('dashboard.labels.clients_and_coworkers') }}"),(0,l.createCommentVNode)(" </button>")]),(0,l.createElementVNode)("div",c,[(0,l.createElementVNode)("div",h,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(y.users[this.activeTab],e=>((0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:t=>g.toggleUserAssignment(!e.assigned,e)},[(0,l.createVNode)(k,{"model-value":e.assigned},{extra:(0,l.withCtx)(()=>[...t[3]||(t[3]=[(0,l.createElementVNode)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[(0,l.createElementVNode)("path",{d:"M1 0H17C17.2652 0 17.5196 0.105357 17.7071 0.292893C17.8946 0.48043 18 0.734784 18 1V17C18 17.2652 17.8946 17.5196 17.7071 17.7071C17.5196 17.8946 17.2652 18 17 18H1C0.734784 18 0.48043 17.8946 0.292893 17.7071C0.105357 17.5196 0 17.2652 0 17V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0ZM1 1V17H17V1H1Z",fill:"#C4C4C4",class:"box"}),(0,l.createElementVNode)("path",{d:"M8.00277 13L3.75977 8.75701L5.17377 7.34302L8.00277 10.172L13.6588 4.51501L15.0738 5.92901L8.00277 13Z",fill:"#2D9CDB",class:"check"})],-1)])]),"off-extra":(0,l.withCtx)(()=>[...t[4]||(t[4]=[(0,l.createElementVNode)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[(0,l.createElementVNode)("path",{d:"M1 0H17C17.2652 0 17.5196 0.105357 17.7071 0.292893C17.8946 0.48043 18 0.734784 18 1V17C18 17.2652 17.8946 17.5196 17.7071 17.7071C17.5196 17.8946 17.2652 18 17 18H1C0.734784 18 0.48043 17.8946 0.292893 17.7071C0.105357 17.5196 0 17.2652 0 17V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0ZM1 1V17H17V1H1Z",fill:"#C4C4C4"})],-1)])]),_:1},8,["model-value"]),(0,l.createElementVNode)("div",{class:"kis-user-avatar",style:(0,l.normalizeStyle)(`background-color: ${e.color||"#2D9CDB"}`)},[(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(g.getInitialsFromName(e.label)),1)],4),(0,l.createElementVNode)("div",null,(0,l.toDisplayString)(e.label),1)],8,m))),256)),!y.users[this.activeTab]?.length&&y.isLoading?((0,l.openBlock)(),(0,l.createElementBlock)("div",u,[...t[5]||(t[5]=[(0,l.createElementVNode)("div",{class:"spinner-border spinner-border-sm"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0)])]),(0,l.createCommentVNode)(' <div class="kis-tabs-footer">'),(0,l.createCommentVNode)(' <button class="ui-button-clear">'),(0,l.createCommentVNode)(' <svg height="20" width="20" aria-hidden="true"><use xlink:href="/build/images/spritemap.svg#icon-ico-plus-blue"></use></svg>'),(0,l.createCommentVNode)(" </button>"),(0,l.createCommentVNode)(' <input type="text" :placeholder="translate(\'add_member\')"/>'),(0,l.createCommentVNode)(" </div>")],2)]),_:1},8,["append-to"]))])}],["__scopeId","data-v-67c8d72f"]])},1103(e,t,a){a.d(t,{A:()=>b});var l=a(41425);let s={class:"priority-choice"},i=["disabled"],r={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},o={key:1,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},n={key:2,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},d={key:3,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},c={key:4,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},h={class:"priority-name"},m={key:0,style:{"margin-right":"6px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},u={key:1,style:{"margin-right":"6px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},p={key:2,style:{"margin-right":"6px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},y={key:3,style:{"margin-right":"6px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"},g={key:4,style:{"margin-right":"6px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 16 16"};var k=a(97478),v=a(62984),f=a(15906),C=a(53839);let _=(0,l.defineComponent)({name:"PriorityChoice",components:{SearchableList:v.A,Popover:f.A},emits:["task-refresh"],props:{task:{type:Object,required:!0},readOnly:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},isNew:{type:Boolean,default:!1}},data:()=>({priorityChangeDisabled:!1,priority:null,priorities:[{key:"priority_5_very_high",name:(0,k.T)("dashboard.priority.priority_5_very_high")},{key:"priority_4_high",name:(0,k.T)("dashboard.priority.priority_4_high")},{key:"priority_3_medium",name:(0,k.T)("dashboard.priority.priority_3_medium")},{key:"priority_2_low",name:(0,k.T)("dashboard.priority.priority_2_low")}]}),methods:{translate:k.T,async onTaskPriorityChange(e){if(this.isNew)this.task.priority=e;else{let t={task:{priority:e,modified_at:this.task.modified_at,schedule:this.task.schedule}};this.priorityChangeDisabled=!0,await C.P.updateTask(this.task,t),this.priorityChangeDisabled=!1,this.task.priority=e,this.$emit("task-refresh")}this.$refs.overlay.hide()},togglePrioritySelect(e){this.readOnly||this.$refs.overlay.toggle(e)},async clearPriority(){let e={task:{priority:null,modified_at:this.task.modified_at,schedule:this.task.schedule}};await C.P.updateTask(this.task,e),this.task.priority=null,this.$emit("task-refresh")}},computed:{active(){return this.$refs.overlay?.visible||!1}}}),b=(0,a(66262).A)(_,[["render",function(e,t,a,k,v,f){let C=(0,l.resolve
1Component)("searchable-list"),_=(0,l.resolveComponent)("Popover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",s,[(0,l.createElementVNode)("button",{onClick:t[0]||(t[0]=(...t)=>e.togglePrioritySelect&&e.togglePrioritySelect(...t)),class:(0,l.normalizeClass)(["ui-button-clear priority",e.task.priority||"empty"]),disabled:e.readOnly},["priority_2_low"===e.task.priority?((0,l.openBlock)(),(0,l.createElementBlock)("svg",r,[...t[2]||(t[2]=[(0,l.createElementVNode)("path",{fill:"#666",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),"priority_3_medium"===e.task.priority?((0,l.openBlock)(),(0,l.createElementBlock)("svg",o,[...t[3]||(t[3]=[(0,l.createElementVNode)("path",{fill:"#2d9cdb",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),"priority_4_high"===e.task.priority?((0,l.openBlock)(),(0,l.createElementBlock)("svg",n,[...t[4]||(t[4]=[(0,l.createElementVNode)("path",{fill:"#F2994A",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),"priority_5_very_high"===e.task.priority?((0,l.openBlock)(),(0,l.createElementBlock)("svg",d,[...t[5]||(t[5]=[(0,l.createElementVNode)("path",{fill:"#f62f2f",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),e.task.priority?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createElementBlock)("svg",c,[...t[6]||(t[6]=[(0,l.createElementVNode)("path",{fill:"#aaa",d:"m15.467.533.487.217a.533.533 0 0 0-.487-.75v.533ZM.533.533V0A.533.533 0 0 0 0 .533h.533Zm14.934 9.6v.534a.533.533 0 0 0 .487-.75l-.487.216Zm-2.134-4.8-1.629-.216c-.03.068 0 .192 0 .266 0 .075-.001.415.03.484l1.6-.534ZM15.467 0H.533L.5 2.133h14.84L15.466 0ZM0 .533v9.6l2.1.043V.532H0Zm.533 10.134h14.934l-.128-2.134H.5l.033 2.134Zm15.421-.75-2.133-4.8-2.088.75 3.246 4.483.975-.433ZM13.821 5.55l2.133-4.8-.975-.433-3.275 4.8 2.117.433ZM2.1 16v-5.825L0 10.133V16h2.1Z"},null,-1)])])),(0,l.createElementVNode)("span",h,(0,l.toDisplayString)(e.translate(e.task.priority?`dashboard.priority.${e.task.priority}`:"")),1)],10,i),e.readOnly?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createBlock)(_,{key:0,ref:"overlay",class:"priority-overlay","append-to":e.appendTo},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(C,{"show-input":!1,placeholder:e.translate("dashboard.labels.task_priority"),"no-result-placeholder":e.translate("no_results"),"highlighted-options":[{key:null,name:e.translate("dashboard.labels.none")}],"highlight-position":"bottom",options:e.priorities,class:(0,l.normalizeClass)({"deactivated-dim":e.priorityChangeDisabled}),onSelect:e.onTaskPriorityChange,value:e.priority,"onUpdate:value":t[1]||(t[1]=t=>e.priority=t),multiple:!1,"name-key":"name","focus-input":!1,"id-key":"key"},{item:(0,l.withCtx)(({option:e})=>["priority_2_low"===e.key?((0,l.openBlock)(),(0,l.createElementBlock)("svg",m,[...t[7]||(t[7]=[(0,l.createElementVNode)("path",{fill:"#666",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),"priority_3_medium"===e.key?((0,l.openBlock)(),(0,l.createElementBlock)("svg",u,[...t[8]||(t[8]=[(0,l.createElementVNode)("path",{fill:"#2d9cdb",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),"priority_4_high"===e.key?((0,l.openBlock)(),(0,l.createElementBlock)("svg",p,[...t[9]||(t[9]=[(0,l.createElementVNode)("path",{fill:"#F2994A",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),"priority_5_very_high"===e.key?((0,l.openBlock)(),(0,l.createElementBlock)("svg",y,[...t[10]||(t[10]=[(0,l.createElementVNode)("path",{fill:"#f62f2f",d:"M0 .533A.533.533 0 0 1 .533 0h14.934a.533.533 0 0 1 .487.75l-2.037 4.583 2.037 4.584a.533.533 0 0 1-.487.75H2.133V16H0V.533Z"},null,-1)])])):(0,l.createCommentVNode)("v-if",!0),e.key?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createElementBlock)("svg",g,[...t[11]||(t[11]=[(0,l.createElementVNode)("path",{fill:"#aaa",d:"m15.467.533.487.217a.533.533 0 0 0-.487-.75v.533ZM.533.533V0A.533.533 0 0 0 0 .533h.533Zm14.934 9.6v.534a.533.533 0 0 0 .487-.75l-.487.216Zm-2.134-4.8-1.629-.216c-.03.068 0 .192 0 .266 0 .075-.001.415.03.484l1.6-.534ZM15.467 0H.533L.5 2.133h14.84L15.466 0ZM0 .533v9.6l2.1.043V.532H0Zm.533 10.134h14.934l-.128-2.134H.5l.033 2.134Zm15.421-.75-2.133-4.8-2.088.75 3.246 4.483.975-.433ZM13.821 5.55l2.133-4.8-.975-.433-3.275 4.8 2.117.433ZM2.1 16v-5.825L0 10.133V16h2.1Z"},null,-1)])])),(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(["priority",e.key])},(0,l.toDisplayString)(e.name),3)]),_:1},8,["placeholder","no-result-placeholder","highlighted-options","options","class","onSelect","value"])]),_:1},8,["append-to"]))])}],["__scopeId","data-v-1347488f"]])},20408(e,t,a){a.d(t,{A:()=>f});var l=a(41425);let s={key:0},i=["disabled"],r=["textContent","title"],o={key:1,class:"ms-1 me-1"},n=["textContent","title"],d=["textContent","title"],c={key:2},h=["onClick"];a(18111),a(61701);
1var m=a(15906),u=a(49054),p=a(74209),y=a(6947),g=a(97478),k=a(19610);let v=(0,l.defineComponent)({name:"TimeInterval",props:{from:String,to:String,interval:Number,status:String,editable:Boolean,deactivated:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!0},onlyDue:{type:Boolean,default:!1},selectionMode:{type:String,default:"single"},value:{required:!1},allDay:{type:Boolean,default:!0},appendTo:{type:String,default:"body"},dashboardMode:{type:Boolean,default:!1}},components:{FormCheckbox:y.A,DatePicker:p.lr,Popover:m.A,Calendar:p.Vv},emits:["update"],data(){return{calendarDate:null,isAllDay:this.allDay,locale:window.locale,calendarRules:{hours:{min:5,max:21}}}},computed:{componentClass(){return this.status},active(){return this.$refs.overlay?.visible||!1},isVisible(){return!this.dashboardMode||this.from||this.to}},methods:{friendlyDatetimeFormatter:k.v,translate:g.T,toggleOverlay(e){this.$refs.overlay.toggle(e)},onCalendarUpdate(e){let t=this.isAllDay?"yyyy-MM-dd":"yyyy-MM-dd HH:mm",a=!e||this.isAllDay;switch(this.selectionMode){case"single":this.$emit("update",a,e?(0,u.GP)(e,t):null);break;case"range":this.$emit("update",a,e?.start?(0,u.GP)(e.start,t):null,e?.end??e?.start?(0,u.GP)(e.end??e.start,t):null)}},onAllDayChange(e){this.isAllDay=e,"single"===this.selectionMode&&this.calendarDate&&this.onCalendarUpdate(this.calendarDate),"range"===this.selectionMode&&null!==this.calendarDate.start&&null!==this.calendarDate.end&&this.onCalendarUpdate(this.calendarDate)},formatDate(e){return e?this.friendlyDatetimeFormatter(this.locale,e,this.isAllDay):""},dateTitle:e=>e?(0,u.GP)(e,"yyyy-MM-dd"):"",onOverlayHide(){this.isAllDay=this.allDay},onCalendarDateClear(){switch(this.selectionMode){case"single":this.calendarDate=null;break;case"range":this.calendarDate={start:null,end:null}}}},mounted(){if(Array.isArray(this.value)){let e=this.value.map(e=>e?new Date(e):null);this.calendarDate={start:e[0]??null,end:e[1]??null}}else this.calendarDate=this.value?new Date(this.value):null}}),f=(0,a(66262).A)(v,[["render",function(e,t,a,m,u,p){let y=(0,l.resolveComponent)("DatePicker"),g=(0,l.resolveComponent)("form-checkbox"),k=(0,l.resolveComponent)("Popover");return e.isVisible?((0,l.openBlock)(),(0,l.createElementBlock)("div",s,[(0,l.createElementVNode)("button",{class:(0,l.normalizeClass)(["kis-badge",e.componentClass]),disabled:!e.editable,onClick:t[0]||(t[0]=(...t)=>e.toggleOverlay&&e.toggleOverlay(...t))},[(e.from||e.to)&&e.from!==e.to?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[e.from?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,textContent:(0,l.toDisplayString)(e.formatDate(e.from)),title:e.dateTitle(e.from)},null,8,r)):(0,l.createCommentVNode)("v-if",!0),e.from&&e.to?((0,l.openBlock)(),(0,l.createElementBlock)("div",o,"-")):(0,l.createCommentVNode)("v-if",!0),e.to?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,textContent:(0,l.toDisplayString)(e.formatDate(e.to)),title:e.dateTitle(e.to)},null,8,n)):(0,l.createCommentVNode)("v-if",!0)],64)):e.from&&e.to&&e.from===e.to?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:1},[e.from?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,textContent:(0,l.toDisplayString)(e.formatDate(e.from)),title:e.dateTitle(e.from)},null,8,d)):(0,l.createCommentVNode)("v-if",!0)],64)):((0,l.openBlock)(),(0,l.createElementBlock)("span",c,[...t[4]||(t[4]=[(0,l.createElementVNode)("svg",{height:"12",width:"12",viewBox:"0 0 25 24","aria-hidden":"true"},[(0,l.createElementVNode)("use",{"xlink:href":"/build/images/spritemap.svg#icon-ico-calendar-dark"})],-1)])]))],10,i),(0,l.createVNode)(k,{ref:"overlay",class:"overlay",onHide:e.onOverlayHide,"append-to":e.appendTo},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)({"deactivated-dim":e.deactivated})},["range"===e.selectionMode?((0,l.openBlock)(),(0,l.createBlock)(y,{key:0,modelValue:e.calendarDate,"onUpdate:modelValue":[t[1]||(t[1]=t=>e.calendarDate=t),e.onCalendarUpdate],modelModifiers:{range:!0},mode:e.isAllDay?"date":"dateTime","hide-time-header":"",is24hr:"",borderless:"",locale:e.locale,rules:e.calendarRules},null,8,["modelValue","onUpdate:modelValue","mode","locale","rules"])):(0,l.createCommentVNode)("v-if",!0),"single"===e.selectionMode?((0,l.openBlock)(),(0,l.createBlock)(y,{key:1,modelValue:e.calendarDate,"onUpdate:modelValue":[t[2]||(t[2]=t=>e.calendarDate=t),e.onCalendarUpdate],mode:e.isAllDay?"date":"dateTime","hide-time-header":"",is24hr:"",borderless:"",locale:e.locale,rules:e.calendarRules},null,8,["modelValue","onUpdate:modelValue","mode","locale","rules"])):(0,l.createCommentVNode)("v-if",!0)],2),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["calendar-footer",{"deactivated-dim":e.deactivated}])},[(0,l.createVNode)(g,{onChange:e.onAllDayChange,"model-value":e.isAllDay,class:"calendar-all-day"},{"off-extra":(0,l.withCtx)(()=>[...t[5]||(t[5]=[(0,l.createElementVNode)("svg",{"data-v-dce0848e":"",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[(0,l.createElementVNode)("path",{"data-v-dce0848e":"",d:"M1 0H17C17.2652 0 17.5196 0.105357 17.7071 0.292893
1C17.8946 0.48043 18 0.734784 18 1V17C18 17.2652 17.8946 17.5196 17.7071 17.7071C17.5196 17.8946 17.2652 18 17 18H1C0.734784 18 0.48043 17.8946 0.292893 17.7071C0.105357 17.5196 0 17.2652 0 17V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0ZM1 1V17H17V1H1Z",fill:"#C4C4C4"})],-1)])]),extra:(0,l.withCtx)(()=>[...t[6]||(t[6]=[(0,l.createElementVNode)("svg",{"data-v-dce0848e":"",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[(0,l.createElementVNode)("path",{"data-v-dce0848e":"",d:"M1 0H17C17.2652 0 17.5196 0.105357 17.7071 0.292893C17.8946 0.48043 18 0.734784 18 1V17C18 17.2652 17.8946 17.5196 17.7071 17.7071C17.5196 17.8946 17.2652 18 17 18H1C0.734784 18 0.48043 17.8946 0.292893 17.7071C0.105357 17.5196 0 17.2652 0 17V1C0 0.734784 0.105357 0.48043 0.292893 0.292893C0.48043 0.105357 0.734784 0 1 0ZM1 1V17H17V1H1Z",fill:"#C4C4C4"}),(0,l.createElementVNode)("path",{"data-v-dce0848e":"",d:"M8.00277 13L3.75977 8.75701L5.17377 7.34302L8.00277 10.172L13.6588 4.51501L15.0738 5.92901L8.00277 13Z",fill:"#2D9CDB"})],-1)])]),label:(0,l.withCtx)(({toggle:t})=>[(0,l.createElementVNode)("label",{onClick:t,class:"ui-only-mine"},(0,l.toDisplayString)(e.translate("dashboard.labels.all_day")),9,h)]),_:1},8,["onChange","model-value"]),(0,l.createElementVNode)("button",{onClick:t[3]||(t[3]=(...t)=>e.onCalendarDateClear&&e.onCalendarDateClear(...t)),class:"calendar-clear"},(0,l.toDisplayString)(e.translate("clear")),1)],2)]),_:1},8,["onHide","append-to"])])):(0,l.createCommentVNode)("v-if",!0)}],["__scopeId","data-v-6e1d5946"]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.