
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="45903154-7e23-54dc-a8c6-8e3a91756cef")}catch(e){}}();
import{o as h}from"./chunk-JU4RCV7K.js";import{b as a}from"./chunk-YN35W6ZE.js";import{Ra as l,Ta as m,Wa as p}from"./chunk-UFXRIW2H.js";import{u as c}from"./chunk-4VVNUZBG.js";var f=c(a,e=>e.checklist),i=c(f,e=>e?.sections??[]),I=c(i,e=>{let t=(e??[]).flatMap(o=>o?.groups).flatMap(o=>o?.items).filter(o=>!!o),s=t?.length;return s?t.filter(o=>o.checked).length/s*100:0}),u=c(i,p,(e,t)=>e.find(s=>s.section===t)),x=e=>c(i,t=>t.find(n=>n.section===e)?.groups?.flatMap(n=>n.items)?.filter(n=>!n.checked&&!n.assignedUser)?.length??0),P=c(i,m,(e,t)=>{let s=t.section;if(!s)throw new Error("Section param is not present in route, cannot select current checklist section!");let r=h(s);return e?.find(o=>o.section===r)}),b=c(u,e=>e?.groups?.some(t=>t.items.length>0)),A=c(l,e=>e.possibleAssignees),D=c(f,e=>e?.sections?.some(t=>t.groups.some(s=>s.items.some(r=>r.assignedUser!==null))));export{f as a,i as b,I as c,u as d,x as e,b as f,A as g,D as h};
//# sourceMappingURL=chunk-CLQPQHL6.js.map

//# debugId=45903154-7e23-54dc-a8c6-8e3a91756cef
