{"version":3,"sources":["webpack:///./src/mixins/heading-depth.ts","webpack:///./src/components/Section.vue?6ec0","webpack:///./src/components/Section.vue?c0ad","webpack:///src/components/Section.vue","webpack:///./src/components/Section.vue"],"names":["props","overrideDepth","type","Number","default","computed","depth","this","parent","$parent","render","_vm","_c","_self","staticClass","class","colNumClass","showValidation","$source","label","hideLabel","fieldIndex","forceShown","attrs","id","tabindex","background","_t","showLabel","Math","min","tag","_v","_s","firstError","message","_e","helptext","readonly","domProps","innerHTML","entity","value","adapter","cols","name","_withStripped","mixins","ValidatedSourcePath","Col","headingDepth","Boolean","String","validator","includes","component"],"mappings":"mGAAe,KACdA,MAAO,CACNC,cAAe,CACdC,KAAMC,OACNC,QAAS,OAGXC,SAAU,CACTC,QAEC,GAAIC,KAAKN,cACR,OAAOM,KAAKN,cAEb,IAAIK,EAAQ,EACRE,EAASD,KAAKE,QAClB,KAAOD,GAAQ,CACd,GAAIA,EAAOF,MAAO,CACjBA,EAAQE,EAAOF,MAAQ,EACvB,MAEDE,EAASA,EAAOC,QAEjB,OAAOH,M,wCCtBV,IAAII,EAAS,WACX,IAAIC,EAAMJ,KACRK,EAAKD,EAAIE,MAAMD,GACjB,OAAOA,EACL,UACA,CACEE,YAAa,cACbC,MAAO,CACL,UACAJ,EAAIK,YACJ,CACE,WAAYL,EAAIM,eAChB,uBAAwBN,EAAIO,QAAQC,QAAUR,EAAIS,UAClD,CAAC,cAAgBT,EAAIU,YAAaV,EAAIU,WACtC,kBAAmBV,EAAIW,aAG3BC,MAAO,CACL,oBAAmBZ,EAAIO,QAAQM,IAAK,OAASb,EAAIO,QAAQM,GACzDC,SAAUd,EAAIM,eAAiB,GAAK,IAGxC,CACEL,EACE,MACA,CACEE,YAAa,qBACbC,MAAO,CACL,kCAAsD,SAAnBJ,EAAIe,WACvC,8CACqB,cAAnBf,EAAIe,WACN,qCAAyD,SAAnBf,EAAIe,aAG9C,CACEf,EAAIgB,GAAG,UAAU,WACf,MAAO,CACLhB,EAAIiB,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SAAA,K,SC9CImD,EAAY,YACd,EACA7C,EHoFoB,IGlFpB,EACA,KACA,KACA,MAIa,UAAA6C,E","file":"123.e2cb9564c366585fe327.js","sourcesContent":["export default {\r\n\tprops: {\r\n\t\toverrideDepth: {\r\n\t\t\ttype: Number,\r\n\t\t\tdefault: null\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tdepth() {\r\n\t\t\t// If the depth is set explicitly, then return it\r\n\t\t\tif (this.overrideDepth)\r\n\t\t\t\treturn this.overrideDepth;\r\n\t\t\t// Otherwise, compute the heading depth from the component tree\r\n\t\t\tlet depth = 1;\r\n\t\t\tlet parent = this.$parent;\r\n\t\t\twhile (parent) {\r\n\t\t\t\tif (parent.depth) {\r\n\t\t\t\t\tdepth = parent.depth + 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tparent = parent.$parent;\r\n\t\t\t}\r\n\t\t\treturn depth;\r\n\t\t}\r\n\t}\r\n};\r\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"section\",\n {\n staticClass: \"cog-section\",\n class: [\n \"cog-col\",\n _vm.colNumClass,\n {\n \"is-error\": _vm.showValidation,\n \"cog-section--heading\": _vm.$source.label && !_vm.hideLabel,\n [\"cog-field--\" + _vm.fieldIndex]: _vm.fieldIndex,\n \"cog-force-shown\": _vm.forceShown\n }\n ],\n attrs: {\n \"aria-labelledby\": _vm.$source.id ? \"cog-\" + _vm.$source.id : false,\n tabindex: _vm.showValidation ? 0 : -1\n }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"cog-section__inner\",\n class: {\n \"cog-section__inner--background \": _vm.background === \"main\",\n \"cog-section__inner--background is-alternate\":\n _vm.background === \"alternate\",\n \"cog-section__inner--no-background \": _vm.background === \"none\"\n }\n },\n [\n _vm._t(\"header\", function() {\n return [\n _vm.showLabel\n ? _c(\n \"h\" + Math.min(_vm.depth + 1, 4),\n {\n tag: \"h2\",\n staticClass: \"cog-section__heading cog-heading\",\n attrs: { id: \"cog-\" + _vm.$source.id }\n },\n [\n _vm._v(\n \"\\n\\t\\t\\t\\t\" + _vm._s(_vm.$source.label) + \"\\n\\t\\t\\t\\t\"\n ),\n _vm.showValidation\n ? _c(\"span\", { staticClass: \"cog-offscreen\" }, [\n _vm._v(\", \" + _vm._s(_vm.firstError.message))\n ])\n : _vm._e()\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.$source.helptext && !_vm.$source.readonly\n ? _c(\"div\", {\n staticClass: \"cog-helptext cog-html\",\n domProps: { innerHTML: _vm._s(_vm.$source.helptext) }\n })\n : _vm._e()\n ]\n }),\n _vm._v(\" \"),\n _vm._t(\"default\", null, {\n entity: _vm.$source.value,\n adapter: _vm.$source,\n cols: _vm.cols\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"transition\", { attrs: { name: \"cog-error-message\" } }, [\n _vm.showValidation\n ? _c(\n \"div\",\n {\n staticClass:\n \"cog-error-message cog-error-message--container-footer\",\n attrs: { \"aria-live\": _vm.showLabel ? null : \"polite\" }\n },\n [_vm._v(_vm._s(_vm.firstError.message))]\n )\n : _vm._e()\n ])\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/.pnpm/babel-loader@8.0.5_@babel+core@7.22.6_webpack@4.46.0/node_modules/babel-loader/lib/index.js??ref--3!../../../../node_modules/.pnpm/vue-loader@15.10.0_css-loader@3.2.0_lodash@4.17.21_vue-template-compiler@2.7.15_webpack@4.46.0/node_modules/vue-loader/lib/index.js??vue-loader-options!./Section.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/.pnpm/babel-loader@8.0.5_@babel+core@7.22.6_webpack@4.46.0/node_modules/babel-loader/lib/index.js??ref--3!../../../../node_modules/.pnpm/vue-loader@15.10.0_css-loader@3.2.0_lodash@4.17.21_vue-template-compiler@2.7.15_webpack@4.46.0/node_modules/vue-loader/lib/index.js??vue-loader-options!./Section.vue?vue&type=script&lang=js&\"","\r\n\r\n\r\n","import { render, staticRenderFns } from \"./Section.vue?vue&type=template&id=4504a1a2&\"\nimport script from \"./Section.vue?vue&type=script&lang=js&\"\nexport * from \"./Section.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/.pnpm/vue-loader@15.10.0_css-loader@3.2.0_lodash@4.17.21_vue-template-compiler@2.7.15_webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}