System.register(["./rolldown-runtime-legacy-Djb2rrqm.js","./index-legacy-Bbj6l0yZ.js"],function(t,e){var r,a,n,o,s,i,d;return{setters:[function(t){r=t.a},function(t){a=t.St,n=t._t,o=t.q,s=t.r}],execute:function(){i=r(a(),1),d=o(),t("t",({sdk:t,schema:e,options:r,children:a})=>{const[o,c]=(0,i.useState)(!1),[l,u]=(0,i.useState)([]);if(s(()=>{o||(async()=>{try{n.addBreadCrumb("ValidateOptions","Validating state options",{options:r}),await e.validate(r,{abortEarly:!1}),c(!0)}catch(t){const e=t;u(e.errors),n.addBreadCrumb("ValidateOptions","State option validation failed",{errors:e.errors})}})()}),!o){if(l.length){const e=`Could not load ${t}`;return console.error(`${e}: ${l.join(", ")}`),(0,d.jsx)("p",{"data-testid":"error-message",children:e})}return(0,d.jsx)(d.Fragment,{})}return a})}}});
//# sourceMappingURL=ValidateOptions-legacy-CzrO2Rud.js.map