{"version":3,"file":"InputPageStep.vue.mjs","sources":["../../../lib/data-provider-interface/components/InputPageStep.vue"],"sourcesContent":["<template>\n  <section :class=\"{ activeSection: isActive }\" v-show=\"isActive\">\n    <FormKit type=\"group\" :id=\"props.name\" :name=\"props.name\" :ref=\"props.name\">\n      <slot />\n    </FormKit>\n  </section>\n</template>\n\n<script setup lang=\"ts\">\nimport { inject, computed } from 'vue';\nimport { dpiStepperKey } from '../utils/injectionKeys';\n\nconst props = defineProps<{\n  name: string;\n}>();\n\nconst dpiStepper = inject(dpiStepperKey);\n\nif (!dpiStepper) {\n  throw new Error('dpiStepper is not provided. Please make sure to use this component inside InputPage');\n}\n\ndpiStepper.registerStep(props.name);\n\nconst isActive = computed(() => dpiStepper.activeStep.value === props.name);\n\nconst {\n  activeStep,\n} = dpiStepper;\n</script>\n\n<style scoped></style>"],"names":["props","__props","dpiStepper","inject","dpiStepperKey","isActive","computed","_createElementBlock","_createVNode","_component_FormKit","_renderSlot","_ctx"],"mappings":";;;;;;;;AAYA,UAAMA,IAAQC,GAIRC,IAAaC,EAAOC,CAAa;AAEvC,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,qFAAqF;AAG5F,IAAAA,EAAA,aAAaF,EAAM,IAAI;AAElC,UAAMK,IAAWC,EAAS,MAAMJ,EAAW,WAAW,UAAUF,EAAM,IAAI;;;qBAvBxEO,EAIU,WAAA;AAAA,QAJA,0BAAwBF,EAAQ,OAAA;AAAA,MAAA;QACxCG,EAEUC,GAAA;AAAA,UAFD,MAAK;AAAA,UAAS,IAAIT,EAAM;AAAA,UAAO,MAAMA,EAAM;AAAA,UAAO,KAAKA,EAAM;AAAA,QAAA;qBACpE,MAAQ;AAAA,YAARU,EAAQC,EAAA,QAAA,SAAA;AAAA,UAAA;;;;YAF0CN,EAAQ,KAAA;AAAA,MAAA;;;;"}