1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="882b1128-3b5d-49c3-9d86-730463878af7",e._sentryDebugIdIdentifier="sentry-dbid-882b1128-3b5d-49c3-9d86-730463878af7")}catch(e){}(globalThis.webpackChunkmls2=globalThis.webpackChunkmls2||[]).push([[7073],{53102(e,s,t){t.d(s,{A:()=>u});var n=t(96540),r=t(31401),i=t(18492),a=t(54625),l=t(53511),d=t(56793),c=t(90363),o=t(79007),x=t(43101),h=t(74848);function u({tasksInUse:e}){const{t:s,i18n:t}=(0,i.B)(),{currentUser:u}=(0,x._d)(),[m,j]=(0,n.useState)(!1);return(0,h.jsxs)(h.Fragment,{children:[0===e.length&&(0,h.jsx)("p",{className:"text-secondary m-0",children:s("not-used-in-tasks")}),e.length>0&&(0,h.jsx)("p",{style:{cursor:"pointer",textDecoration:"underline",margin:0},onClick:()=>{j(!0)},children:s("used-in-n-tasks",{amount:e.length})}),(0,h.jsxs)(r.A,{show:m,onHide:()=>{j(!1)},children:[(0,h.jsx)(r.A.Header,{children:(0,h.jsxs)(r.A.Title,{children:[s("connected-tasks")," "]})}),(0,h.jsx)(r.A.Body,{children:e.map(e=>(0,h.jsxs)("p",{children:[(0,h.jsx)(a.N_,{to:`/${t.language}/mls/tasks/${(0,l.O)(e["@id"])}/view/apprentice-view`,children:e.title}),(0,o.X2)(u)&&(0,h.jsxs)(h.Fragment,{children:[" # ",e.id," "]})]},e.id))}),(0,h.jsx)(r.A.Footer,{children:(0,h.jsxs)(d.A,{variant:"light",onClick:()=>{j(!1)},children:[(0,h.jsx)(c.A,{})," OK"]})})]})]})}},4862(e,s,t){t.r(s),t.d(s,{default:()=>G});var n=t(5556),r=t.n(n),i=t(44479),a=t(61105),l=t(18492),d=t(56347),c=t(54625),o=t(79296),x=t(63873),h=t(53511),u=t(83317),m=t(96540),j=t(98734),g=t(94490),b=t(50016),p=t(21668),A=t(47677),f=t(56793),y=t(45282),w=t(80267),N=t(74848);function v({onBowAdded:e=()=>null,currentUser:s,selectedOrganization:t,backToListURL:n=""}){const{t:r}=(0,l.B)(),d=(0,m.useRef)(),c=(0,m.useRef)(),o=(0,m.useRef)(),[x,{data:h,isLoading:v,isSuccess:$}]=(0,p.CB)();return(0,m.useEffect)(()=>{$&&e(h)},[$]),v?(0,N.jsx)(b.A,{}):(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(j.A,{id:"create-bow",onSubmit:()=>{(0,w.g)()?.track("feature_usage",{feature:"rating_bow",action:"create"}),x({title:d.current.value,timeframe:c.current.value,job:o.current.value,organization:t["@id"],createdBy:s["@id"],updatedBy:s["@id"],isTaskInline:!1,includeInPointsCalculation:!1,pointsCalculationMaxPoints:null})},children:[(0,N.jsx)(i.A,{children:(0,N.jsx)(a.A,{className:"mb-4",children:(0,N.jsx)(A.A,{to:n})})}),(0,N.jsxs)(i.A,{className:"my-3",children:[(0,N.jsx)(a.A,{md:"5",children:(0,N.jsxs)(j.A.Group,{controlId:"title",children:[(0,N.jsx)(j.A.Label,{children:r("title")}),(0,N.jsx)(j.A.Control,{name:"title",ref:d,type:"text",required:!0})]})}),(0,N.jsx)(a.A,{md:"4",children:(0,N.jsxs)(j.A.Group,{controlId:"timeframe",children:[(0,N.jsx)(j.A.Label,{children:r("timeframe")}),(0,N.jsx)(j.A.Control,{name:"timeframe",ref:c,type:"text",required:!0})]})}),(0,N.jsx)(a.A,{md:"3",children:(0,N.jsxs)(j.A.Group,{controlId:"job",children:[(0,N.jsx)(j.A.Label,{children:r("job")}),(0,N.jsx)(j.A.Control,{name:"job",ref:o,type:"text",required:!0})]})})]}),(0,N.jsx)(i.A,{className:"ps-3",children:(0,N.jsx)("div",{className:"alert alert-warning",children:r("you-have-to-save-before-you-can-add-categories")})}),(0,N.jsx)(y.A,{children:(0,N.jsxs)(f.A,{form:"create-bow",type:"submit",children:[(0,N.jsx)(u.A,{})," ",r("save"),(0,N.jsx)(g.A,{isLoading:v})]})})]})})}v.propTypes={onBowAdded:r().func,currentUser:r().object.isRequired,selectedOrganization:r().object.isRequired,backToListURL:r().string};var $=t(86490),k=t(44514),R=t(44114),z=t(24490),O=t(84013),B=t(95093),C=t.n(B),T=t(47407),I=t(187),L=t(1423),S=t(53102),F=t(13387);function U({bow:e}){const{t:s,i18n:t}=(0,l.B)(),{data:n,isLoading:r}=(0,I.wF)(e.createdBy),{data:d}=(0,p.V1)(e),{data:o,error:x}=(0,L.fi)({pagination:!1,"taskSteps.connectedRatingBows":e["@id"]}),u=e?.connectedTaskSteps?.length>0,[j,g]=(0,p.uF)(),[A,f]=(0,m.useState)(!1);return r?null:(0,N.jsxs)(F.A,{children:[(0,N.jsx)(F.A.Title,{children:(0,N.jsxs)("div",{className:"d-flex align-items-center gap-2 whitespace-collapse-preserve",children:[(0,N.jsx)(c.N_,{to:`/${t.language}/mls/ratingbows/${(0,h.O)(e["@id"])}/edit`,children:(0,N.jsx)("h5",{className:"mb-0",children:e.title})}),(0,N.jsxs)("span",{style:{fontSize:"16px"},children:[s("id")," ",e.id]})]})}),(0,N.jsx)(F.A.Body,{children:(0,N.jsxs)(i.A,{children:[(0,N.jsxs)(a.A,{md:8,sm:12,className:"mb-2 mb-md-0",children:[(0,N.jsxs)("div",{children:[(0,N.jsxs)("strong",{children:[s("created"),": "]}),C()(e.createdAt).format(s("date-format"))]}),(0,N.jsxs)("div",{children:[(0,N.jsxs)("strong",{children:[s("created-by"),": "]})," ",n?(0,N.jsxs)(N.Fragment,{children:[n.firstname," ",n.lastname]}):(0,N.jsx)(N.Fragment,{children:s("deleted-user")})]})]}),(0,N.jsx)(a.A,{md:4,sm:12,children:(0,N.jsxs)("div",{children:[!x&&!o&&(0,N.jsx)(b.A,{}
1),o&&(0,N.jsx)(S.A,{tasksInUse:o})]})})]})}),(0,N.jsxs)(F.A.Actions,{children:[d?(0,N.jsxs)(c.N_,{to:`/${t.language}/mls/ratingbows/${(0,h.O)(e["@id"])}/show`,className:"d-flex align-items-center flex-column pointer text-body",title:s("show"),children:[(0,N.jsx)(R.A,{sx:{fontSize:28}}),(0,N.jsx)("p",{className:"text-center m-0",style:{fontSize:"0.7rem"},children:s("show")})]}):(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(c.N_,{className:"d-flex align-items-center flex-column pointer text-body",to:`/${t.language}/mls/ratingbows/${(0,h.O)(e["@id"])}/edit`,title:s("edit"),children:[(0,N.jsx)(z.A,{sx:{fontSize:28}}),(0,N.jsx)("p",{className:"text-center m-0",style:{fontSize:"0.7rem"},children:s("edit")})]})}),!u&&(0,N.jsxs)("a",{href:"#",onClick:()=>{f(!0)},className:"d-flex align-items-center flex-column pointer text-body",title:s("delete"),children:[(0,N.jsx)(O.A,{sx:{fontSize:28}}),(0,N.jsx)("p",{className:"text-center m-0",style:{fontSize:"0.7rem"},children:s("delete")})]}),(0,N.jsx)(T.A,{show:A,onClose:()=>{f(!1)},isCurrentlyBeingDeleted:g.isLoading,onDeletion:async()=>{await j(e.id)},content:(0,N.jsx)(N.Fragment,{children:s("confirmation-deleting-bow")})})]})]})}function _({selectedOrganization:e}){const{t:s}=(0,l.B)(),[t,n]=(0,m.useState)({search:{},order:"createdAt"}),[r,i]=(0,m.useState)([]),{data:a,isLoading:d}
1=(0,p.q7)({...t,search:{...t.search,organization:e["@id"]}});return(0,m.useEffect)(()=>{d||i(a["hydra:member"])},[a]),d?(0,N.jsx)(b.A,{}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(k.A,{searchFields:["title","createdBy.lastname"],orderFields:["createdAt","updatedAt"],onSearchChange:e=>{n({...t,search:e})},onOrderChange:e=>{n({...t,order:e})}}),(0,N.jsxs)("div",{children:[s("total"),": ",a["hydra:totalItems"]]}),r.map((e,s)=>(0,N.jsx)(U,{bow:e},s))]})}U.propTypes={bow:r().object.isRequired},_.propTypes={selectedOrganization:r().object.isRequired},G.propTypes={currentUser:r().object.isRequired,currentOrganizations:r().array.isRequired,selectedOrganization:r().object.isRequired};const q="list",D="create-bow";function G({currentUser:e,currentOrganizations:s,selectedOrganization:t}){const{path:n}=(0,d.useRouteMatch)(),r=(0,d.useHistory)(),{t:u,i18n:m}=(0,l.B)(),j=(0,d.useRouteMatch)({path:`${n}/${q}`,exact:!0});return(0,N.jsxs)("div",{className:"px-4 pb-4 flex-grow-1 d-flex flex-column",children:[(0,N.jsxs)("div",{className:"m-0 mb-4 d-flex flex-column align-items-start",children:[(0,N.jsx)("h2",{children:u("ratingbows")}),(0,N.jsxs)("div",{className:"small",children:[t.name,s.length>1&&(0,N.jsx)(x.A,{tip:u("multi-org-choose-one"),html:!0})]}),j&&(0,N.jsx)(c.N_,{to:`/${m.language}/mls/ratingbows/${D}`,children:(0,N.jsx)(f.A,{id:"createBow",className:"mt-4",children:u("ratingbow.create")})})]}),(0,N.jsx)(i.A,{className:"pb-5 m-0",children:(0,N.jsx)(a.A,{className:"p-0",children:(0,N.jsxs)(o.dO,{children:[(0,N.jsx)(d.Route,{path:`${n}/${D}/:bowIri?`,render:()=>(0,N.jsx)(v,{backToListURL:`${n}`,currentUser:e,currentOrganizations:s,selectedOrganization:t,onBowAdded:e=>{r.push(`${n}/${(0,h.O)(e["@id"])}`)}})}),(0,N.jsx)(d.Route,{path:`${n}/${q}`,render:()=>(0,N.jsx)(_,{selectedOrganization:t})}),(0,N.jsx)(d.Route,{path:`${n}/:bowIri/`,render:()=>(0,N.jsx)($.A,{backToListURL:`${n}`})}),(0,N.jsx)(d.Redirect,{from:"*",to:`${n}/${q}`})]})})})]})}},45954(e,s,t){t.d(s,{A:()=>d});var n=t(23826),r=t(96540),i=t(98734),a=t(71100),l=t(74848);function d({value:e="",onChange:s,label:t,prefix:d,unit:c,min:o,max:x,step:h,className:u="",disabled:m=!1}){const j=(0,r.useId)();return(0,l.jsxs)(i.A.Group,{className:`${u}`,controlId:j,children:[t&&(0,l.jsx)(i.A.Label,{children:t}),(0,l.jsxs)(a.A,{children:[d&&(0,l.jsx)(a.A.Text,{children:d}),(0,l.jsx)(i.A.Control,{type:"number",min:o,max:x,onChange:e=>{const t=e.target.value,r=parseFloat(t);(0,n.A)(Number,r)&&((0,n.A)(Number,o)&&r<o||(0,n.A)(Number,x)&&r>x||s(t))},value:e,step:h,disabled:m}),c&&(0,l.jsx)(a.A.Text,{children:c})]})]})}}}]);
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.