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,EAAgC,CAChEC,UAAW,oBACX,kBAAmBF,EAASf,UAC5BkB,MAAO,IACP,MAAS,0BACR,CACD,SAAW,cAAS,SAAUC,GAC5B,IAAIlB,EAAQkB,EAAKlB,MACfI,EAASc,EAAKd,OAChB,MAAO,CAACM,EAAO,KAAOA,EAAO,IAAK,wBAAoB,MAAO,CAC3D,MAAS,oBACR,EAAC,wBAAoB,OAAQ,KAAM,YAAa,KAAK,wBAAoB,KAAMjE,EAAY,GAAE,gBAAW,IAAO,wBAAoB,WAAW,MAAM,gBAAYuD,GAAO,SAAUC,GAClL,OAAO,kBAAc,wBAAoB,KAAM,CAC7C1B,IAAK0B,EAAKrB,MACV,MAAS,2BACR,EAAC,wBAAoB,QAASlC,EAAY,EAAC,wBAAoB,QAAS,CACzEyE,KAAM,WACN,MAAS,8BACTC,QAASnB,EAAKoB,UACdzC,MAAOqB,EAAKrB,MACZ0C,SAAU,SAAkBC,GAC1B,OAAOT,EAASX,aAAaC,EAAQH,EAAKrB,MAC5C,GACC,KAAM,GAAIjC,IAAa,wBAAoB,OAAQC,GAAY,qBAAiBqD,EAAKuB,OAAQ,MAClG,IAAI,QACN,IACAC,EAAG,GACF,EAAG,CAAC,mBACT,I","sources":["webpack://lawline/./resources/assets/js/vue/apps/catalog/components/CatalogRefinementListFormat.vue?dfca","webpack://lawline/./resources/assets/js/vue/apps/catalog/components/CatalogRefinementListFormat.vue","webpack://lawline/./resources/assets/js/vue/apps/catalog/components/CatalogRefinementListFormat.vue?c3ae"],"sourcesContent":["import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock } from \"vue\";\nvar _hoisted_1 = {\n \"class\": \"ais-RefinementList-list\"\n};\nvar _hoisted_2 = {\n \"class\": \"ais-RefinementList-label\"\n};\nvar _hoisted_3 = [\"checked\", \"value\", \"onChange\"];\nvar _hoisted_4 = {\n \"class\": \"ais-RefinementList-labelText\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_ais_refinement_list = _resolveComponent(\"ais-refinement-list\");\n return _openBlock(), _createBlock(_component_ais_refinement_list, {\n attribute: \"course_types.name\",\n \"transform-items\": $options.sortItems,\n limit: 100,\n \"class\": \"max-h-40 overflow-auto\"\n }, {\n \"default\": _withCtx(function (_ref) {\n var items = _ref.items,\n refine = _ref.refine;\n return [_cache[0] || (_cache[0] = _createElementVNode(\"div\", {\n \"class\": \"ais-Panel-header\"\n }, [_createElementVNode(\"span\", null, \"Format\")], -1)), _createElementVNode(\"ul\", _hoisted_1, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(items, function (item) {\n return _openBlock(), _createElementBlock(\"li\", {\n key: item.value,\n \"class\": \"ais-RefinementList-item\"\n }, [_createElementVNode(\"label\", _hoisted_2, [_createElementVNode(\"input\", {\n type: \"checkbox\",\n \"class\": \"ais-RefinementList-checkbox\",\n checked: item.isRefined,\n value: item.value,\n onChange: function onChange($event) {\n return $options.changeFormat(refine, item.value);\n }\n }, null, 40, _hoisted_3), _createElementVNode(\"span\", _hoisted_4, _toDisplayString(item.label), 1)])]);\n }), 128))])];\n }),\n _: 1\n }, 8, [\"transform-items\"]);\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport { mapActions, mapGetters } from 'vuex';\nimport _sortBy from 'lodash/sortBy';\nexport default {\n computed: _objectSpread({}, mapGetters('Search', {\n formats: 'formats'\n })),\n methods: _objectSpread(_objectSpread({}, mapActions('Search', ['setFormats'])), {}, {\n sortItems: function sortItems(items) {\n // Audio-only courses are being phased out and should also be tagged as on-demand anyway.\n items = items.filter(function (item) {\n return ['Audio Only', 'Pre-Recorded Webcast'].indexOf(item.value) === -1;\n });\n return _sortBy(items, 'value');\n },\n changeFormat: function changeFormat(refine, value) {\n var formats = this.formats.slice();\n if (formats.indexOf(value) === -1) {\n formats.push(value);\n } else {\n formats.splice(formats.indexOf(value), 1);\n }\n this.setFormats(formats);\n refine(value);\n }\n })\n};","/* unplugin-vue-components disabled */import { render } from \"./CatalogRefinementListFormat.vue?vue&type=template&id=b56f352c\"\nimport script from \"./CatalogRefinementListFormat.vue?vue&type=script&lang=js\"\nexport * from \"./CatalogRefinementListFormat.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__"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_typeof","obj","Symbol","iterator","constructor","prototype","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","arg","input","hint","prim","toPrimitive","undefined","res","call","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","computed","formats","methods","sortItems","items","item","indexOf","changeFormat","refine","this","slice","splice","setFormats","_ctx","_cache","$props","$setup","$data","$options","_component_ais_refinement_list","attribute","limit","_ref","type","checked","isRefined","onChange","$event","label","_"],"sourceRoot":""}