import{F as n}from"./p-ff1990ad.js";function o(o){return o&&0!==o.length?o.filter((o=>!!o.required&&(o.type===n.MULTI_LIST?!function(n){var o;const r=Array.isArray(n)?n:null==n?void 0:n.elements;return(null===(o=null==r?void 0:r.filter((n=>null==n?void 0:n.check)))||void 0===o?void 0:o.length)>0}(o.value):!o.value))):[]}function r(n){var r;return 0===(null!==(r=o(n))&&void 0!==r?r:[]).length}export{o as g,r as v}