import{b as e}from"./runtime-core.esm-bundler-DJThmTxA.js";var t=Object.freeze([`button`,`text-field`,`text-area`,`select`,`multi-select`,`checkbox`,`date-field`,`number-field`,`dialog`,`status-tag`,`inline-message`,`paginator`,`tabs`,`data-grid`]);function n(e){if(e.descriptor.contractVersion!==`4.0`)throw Error(`Unsupported UI adapter contract: ${e.descriptor.contractVersion}`);let n=t.filter(t=>!e.descriptor.capabilities.has(t));if(n.length>0)throw Error(`UI adapter ${e.descriptor.id} is missing capabilities: ${n.join(`, `)}`);for(let t of[`Button`,`TextField`,`TextArea`,`Select`,`MultiSelect`,`Checkbox`,`DateField`,`NumberField`,`Dialog`,`StatusTag`,`InlineMessage`,`Paginator`,`Tabs`,`DataGrid`])if(!e.components[t])throw Error(`UI adapter ${e.descriptor.id} has no component for ${t}`)}var r=Symbol(`KArtSellUiAdapterV4`);function i(e,t){n(t),e.provide(r,t)}function a(){let t=e(r);if(!t)throw Error(`UI adapter is not installed. Install a validated provider during app bootstrap.`);return t}export{a as n,i as t};