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kBAAc,iBAAasB,EAAsB,CACtDE,KAAMxB,EAAWM,OAASN,EAAWM,OAAS,IAAMN,EAAWE,KAC/DuB,MAAOJ,EAASP,SAASd,GACzBU,MAAOV,EAAWE,KAClB,OAAS,oBAAgB,CACvB,eAAgBF,EAAWM,UAE5B,KAAM,EAAG,CAAC,QAAS,QAAS,SACjC,IAAI,MACN,IACAoB,EAAG,GACF,EAAG,CAAC,SACT,I","sources":["webpack://lawline/./resources/assets/js/vue/apps/catalog/components/StateRequiredCreditTypes.vue","webpack://lawline/./resources/assets/js/vue/apps/catalog/components/StateRequiredCreditTypes.vue?d2a4","webpack://lawline/./resources/assets/js/vue/apps/catalog/components/StateRequiredCreditTypes.vue?f2eb"],"sourcesContent":["import _some from 'lodash/some';\nimport _sortBy from 'lodash/sortBy';\nexport default {\n props: ['requirements', 'available'],\n computed: {\n creditTypes: function creditTypes() {\n var _this = this;\n var creditTypes = [];\n this.requirements.credit_types.forEach(function (creditType) {\n creditTypes.push({\n name: creditType.name\n });\n if (creditType.credit_categories.length) {\n creditType.credit_categories.forEach(function (creditCategory) {\n creditTypes.push({\n name: creditCategory.name,\n parent: creditType.name\n });\n });\n }\n });\n\n // return credit types that also exist in Algolia, even though they are not state-specific\n return creditTypes.filter(function (creditType) {\n if (creditType.parent) {\n return _some(_this.available, function (availableCredit) {\n return availableCredit.label === \"\".concat(creditType.parent, \" : \").concat(creditType.name);\n });\n }\n return _some(_this.available, function (availableCredit) {\n return availableCredit.label === creditType.name;\n });\n }).sort();\n }\n },\n methods: {\n getValue: function getValue(creditType) {\n if (creditType.parent) {\n return \"\".concat(this.requirements.state.name, \" \").concat(creditType.parent, \" : \").concat(creditType.name);\n }\n return \"\".concat(this.requirements.state.name, \" \").concat(creditType.name);\n }\n }\n};","/* unplugin-vue-components disabled */import { render } from \"./StateRequiredCreditTypes.vue?vue&type=template&id=ae2c28a6\"\nimport script from \"./StateRequiredCreditTypes.vue?vue&type=script&lang=js\"\nexport * from \"./StateRequiredCreditTypes.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createBlock as _createBlock, withCtx as _withCtx } from \"vue\";\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_el_option = _resolveComponent(\"el-option\");\n var _component_el_option_group = _resolveComponent(\"el-option-group\");\n return _openBlock(), _createBlock(_component_el_option_group, {\n key: $props.requirements.state.name,\n label: $props.requirements.state.name\n }, {\n \"default\": _withCtx(function () {\n return [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList($options.creditTypes, function (creditType) {\n return _openBlock(), _createBlock(_component_el_option, {\n key: (creditType.parent ? creditType.parent : '') + creditType.name,\n value: $options.getValue(creditType),\n label: creditType.name,\n \"class\": _normalizeClass({\n 'pl-10 italic': creditType.parent\n })\n }, null, 8, [\"value\", \"label\", \"class\"]);\n }), 128))];\n }),\n _: 1\n }, 8, [\"label\"]);\n}"],"names":["props","computed","creditTypes","_this","this","requirements","credit_types","forEach","creditType","push","name","credit_categories","length","creditCategory","parent","filter","available","availableCredit","label","concat","sort","methods","getValue","state","_ctx","_cache","$props","$setup","$data","$options","_component_el_option","_component_el_option_group","key","value","_"],"sourceRoot":""}