{"version":3,"file":"ClassicRadioLabel-ynBzFxC2.mjs","names":[],"sources":["../src/components/form/ClassicRadioLabel.vue","../src/components/form/ClassicRadioLabel.vue"],"sourcesContent":["<template>\n  <component :is=\"typeTag\" class=\"d-flex flex-column\">\n    <component\n      :is=\"'fieldset'===typeTag ? 'legend': 'div'\"\n      v-if=\"radioLabel\"\n      :class=\"classLabel\"\n    >\n      {{ radioLabel }}\n    </component>\n    <ClassicRadio\n      :id-radio=\"idRadio\"\n      :is-disabled=\"isDisabled\"\n      :options=\"options\"\n      :text-init=\"textInit\"\n      :is-column=\"isColumn\"\n      @update:text-init=\"onChange($event)\"\n    >\n      <template\n        v-for=\"slot of Object.keys($slots)\"\n        #[slot]=\"scope\"\n      >\n        <slot :name=\"slot\" v-bind=\"{ ...scope }\" />\n      </template>\n    </ClassicRadio>\n  </component>\n</template>\n\n<script setup lang=\"ts\">\nimport ClassicRadio from \"./ClassicRadio.vue\";\n\n//Props \ndefineProps({\n  idRadio: { default: \"\", type: String },\n  isDisabled: { default: false, type: Boolean },\n  options: {\n    default: () => [],\n    type: Array as () => Array<{ title: string; value: string | undefined }>,\n  },\n  textInit: { default: undefined, type: String },\n  isColumn: { default: true, type: Boolean },\n  radioLabel: { default: undefined, type: String },\n  classLabel: { default: \"form-label\", type: String },\n  typeTag: { default: \"div\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"update:textInit\"]);\n\n//Methods\nfunction onChange(value:string){\n  emit('update:textInit', value)\n}\n</script>\n","<template>\n  <component :is=\"typeTag\" class=\"d-flex flex-column\">\n    <component\n      :is=\"'fieldset'===typeTag ? 'legend': 'div'\"\n      v-if=\"radioLabel\"\n      :class=\"classLabel\"\n    >\n      {{ radioLabel }}\n    </component>\n    <ClassicRadio\n      :id-radio=\"idRadio\"\n      :is-disabled=\"isDisabled\"\n      :options=\"options\"\n      :text-init=\"textInit\"\n      :is-column=\"isColumn\"\n      @update:text-init=\"onChange($event)\"\n    >\n      <template\n        v-for=\"slot of Object.keys($slots)\"\n        #[slot]=\"scope\"\n      >\n        <slot :name=\"slot\" v-bind=\"{ ...scope }\" />\n      </template>\n    </ClassicRadio>\n  </component>\n</template>\n\n<script setup lang=\"ts\">\nimport ClassicRadio from \"./ClassicRadio.vue\";\n\n//Props \ndefineProps({\n  idRadio: { default: \"\", type: String },\n  isDisabled: { default: false, type: Boolean },\n  options: {\n    default: () => [],\n    type: Array as () => Array<{ title: string; value: string | undefined }>,\n  },\n  textInit: { default: undefined, type: String },\n  isColumn: { default: true, type: Boolean },\n  radioLabel: { default: undefined, type: String },\n  classLabel: { default: \"form-label\", type: String },\n  typeTag: { default: \"div\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"update:textInit\"]);\n\n//Methods\nfunction onChange(value:string){\n  emit('update:textInit', value)\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CA,MAAM,OAAO;EAGb,SAAS,SAAS,OAAa;GAC7B,KAAK,mBAAmB,KAAK;EAC/B;;;;;;;;;;;;;;;;;qBClDE,YAuBY,wBAvBI,OAAA,OAAO,GAAA,EAAE,OAAM,qBAAoB,GAAA;yBAOrC,CAJJ,OAAA,cAAA,UAAA,GAFR,YAMY,wBAAA,eALQ,OAAA,UAAO,WAAA,KAAA,GAAA;;GAExB,OAAK,eAAE,OAAA,UAAU;;0BAEF,CAAA,gBAAA,gBAAb,OAAA,UAAU,GAAA,CAAA,CAAA,CAAA;;wDAEf,YAce,OAAA,iBAAA;GAbZ,YAAU,OAAA;GACV,eAAa,OAAA;GACb,SAAS,OAAA;GACT,aAAW,OAAA;GACX,aAAW,OAAA;GACX,qBAAgB,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,SAAS,MAAM;uCAGjB,OAAO,KAAK,KAAA,MAAM,IAA1B,SAAI;;UACV;iBAE0C,UAF7B,CAEd,WAA2C,KAAA,QAA9B,MAAI,eAAA,mBAAA,EAAA,GAAe,MAAK,CAAA,CAAA,CAAA,CAAA,CAAA"}