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AAoB,IAAKC,EAAa,uDAAwD,wBAAoB,IAAI,GAAO8F,EAAOpC,QAAQgE,aAAc,kBAAc,wBAAoB,IAAKzH,EAAa,CAAC4F,EAAO,KAAOA,EAAO,IAAK,qBAAiB,8CAA8C,wBAAoB,IAAK,CAC3X,MAAS,0BACTa,KAAMZ,EAAOpC,QAAQgE,WAAWjC,MAC/B,qBAAiBK,EAAOpC,QAAQgE,WAAWd,MAAO,EAAG1G,OAAkB,wBAAoB,IAAI,GAAO0F,EAAK+B,WAAY,kBAAc,wBAAoB,MAAOxH,EAAa,CAAC8F,EAASxB,kBAAmB,kBAAc,iBAAa6B,EAAwB,CAC9PtH,IAAK,EACL,MAAS,2BACT4I,WAAY9E,OAAOmD,EAAS3B,aAAaC,UACzCsD,MAAO,WACN,KAAM,EAAG,CAAC,iBAAkB,wBAAoB,IAAI,GAAO5B,EAAS5B,wBAAyB,kBAAc,wBAAoB,IAAK,CACrIrF,IAAK,EACL,MAAS,uCACT0H,KAAMZ,EAAOpC,QAAQiC,YACpB,aAAc,EAAGvF,KAAgB,wBAAoB,IAAI,OAAW,wBAAoB,IAAI,GAAO4F,EAAMpC,yBAA0B,kBAAc,iBAAa2C,EAAiC,CAChMvH,IAAK,EACL8I,OAAQhC,EAAOpC,QACfqE,aAAclC,EAAO,KAAOA,EAAO,GAAK,SAAUuB,GAChD,OAAOpB,EAAMpC,wBAAyB,CACxC,IACC,KAAM,EAAG,CAAC,aAAc,wBAAoB,IAAI,IACrD,I","sources":["webpack://lawline/./resources/assets/js/vue/apps/catalog/components/ProductBody.vue?7567","webpack://lawline/./resources/assets/js/vue/apps/catalog/components/ProductBody.vue","webpack://lawline/./resources/assets/js/vue/apps/catalog/components/ProductBody.vue?4787"],"sourcesContent":["import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, createBlock as _createBlock } from \"vue\";\nvar _hoisted_1 = {\n \"class\": \"relative mt-5 flex w-full grow flex-col pr-2 sm:ml-5 sm:mt-0\"\n};\nvar _hoisted_2 = {\n \"class\": \"text-sm font-semibold uppercase text-gray-400\"\n};\nvar _hoisted_3 = {\n key: 0\n};\nvar _hoisted_4 = {\n key: 1\n};\nvar _hoisted_5 = {\n key: 2\n};\nvar _hoisted_6 = {\n key: 3\n};\nvar _hoisted_7 = [\"href\", \"title\"];\nvar _hoisted_8 = [\"innerHTML\"];\nvar _hoisted_9 = {\n key: 1,\n \"class\": \"my-1 text-sm font-medium text-slate-700\"\n};\nvar _hoisted_10 = {\n key: 0\n};\nvar _hoisted_11 = {\n key: 1\n};\nvar _hoisted_12 = {\n key: 2\n};\nvar _hoisted_13 = {\n key: 2,\n \"class\": \"my-1\"\n};\nvar _hoisted_14 = {\n key: 0,\n \"class\": \"inline-block text-sm font-bold text-red-700\"\n};\nvar _hoisted_15 = {\n key: 0,\n \"class\": \"credits\"\n};\nvar _hoisted_16 = {\n key: 1\n};\nvar _hoisted_17 = {\n key: 3\n};\nvar _hoisted_18 = [\"href\"];\nvar _hoisted_19 = {\n key: 1,\n \"class\": \"inline-block text-sm font-bold text-red-700\"\n};\nvar _hoisted_20 = {\n key: 4,\n \"class\": \"my-1 text-sm font-semibold text-slate-700\"\n};\nvar _hoisted_21 = [\"href\"];\nvar _hoisted_22 = {\n key: 5,\n \"class\": \"flex\"\n};\nvar _hoisted_23 = [\"href\"];\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n var _$props$product$credi;\n var _component_ais_highlight = _resolveComponent(\"ais-highlight\");\n var _component_localize = _resolveComponent(\"localize\");\n var _component_formatted_credit = _resolveComponent(\"formatted-credit\");\n var _component_el_progress = _resolveComponent(\"el-progress\");\n var _component_course_credits_modal = _resolveComponent(\"course-credits-modal\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [!$options.isWebcastType ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, _toDisplayString($options.productType), 1)) : _createCommentVNode(\"\", true), ['On Demand', 'Text Based'].includes($props.product.course_type_text) ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \" • \")) : _createCommentVNode(\"\", true), $props.product.course_type_text ? (_openBlock(), _createElementBlock(\"span\", _hoisted_5, _toDisplayString($props.product.course_type_text), 1)) : _createCommentVNode(\"\", true), $props.product.is_groupcast ? (_openBlock(), _createElementBlock(\"strong\", _hoisted_6, \" - GROUPCAST\")) : _createCommentVNode(\"\", true)]), _createElementVNode(\"div\", null, [_createElementVNode(\"a\", {\n href: $options.url,\n \"class\": \"cursor-pointer text-xl hover:underline\",\n title: $props.product.name\n }, [_createVNode(_component_ais_highlight, {\n hit: $props.product,\n attribute: \"name\"\n }, null, 8, [\"hit\"])], 8, _hoisted_7)]), $props.product.faculty ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n \"class\": \"my-1 text-sm text-gray-400 [&>*]:font-medium [&>*]:text-gray-400\",\n innerHTML: $props.product.faculty\n }, null, 8, _hoisted_8)) : _createCommentVNode(\"\", true), $options.productionDate ? (_openBlock(), _createElementBlock(\"p\", _hoisted_9, [$options.isWebcastType ? (_openBlock(), _createElementBlock(\"span\", _hoisted_10, [_cache[2] || (_cache[2] = _createTextVNode(\" Streams on: \")), _createVNode(_component_localize, {\n time: $props.product.time\n }, null, 8, [\"time\"])])) : $props.product.type !== 'Online Event' ? (_openBlock(), _createElementBlock(\"span\", _hoisted_11, \"Created on: \")) : _createCommentVNode(\"\", true), !$options.isWebcastType ? (_openBlock(), _createElementBlock(\"span\", _hoisted_12, _toDisplayString($options.productionDate), 1)) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true), $props.product.type === 'Course' && !$options.isCompleted ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [$props.product.non_accredited ? (_openBlock(), _createElementBlock(\"p\", _hoisted_14, \" CLE credit is not available for this course. \")) : (_openBlock(), _createElementBlock(\"a\", {\n key: 1,\n \"class\": \"mr-3 inline-block cursor-pointer text-sm font-bold text-ll-cerulean\",\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return $data.showCourseCreditsModal = true;\n })\n }, [((_$props$product$credi = $props.product.credits) === null || _$props$product$credi === void 0 ? void 0 : _$props$product$credi.length) > 0 ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList($props.product.credits, function (credit) {\n return _openBlock(), _createBlock(_component_formatted_credit, {\n key: credit.state_id,\n credit: credit\n }, null, 8, [\"credit\"]);\n }), 128))])) : (_openBlock(), _createElementBlock(\"span\", _hoisted_16, \"View all available credits\"))]))])) : _createCommentVNode(\"\", true), $props.product.type === 'Course' && $options.isCompleted ? (_openBlock(), _createElementBlock(\"div\", _hoisted_17, [$props.product.has_certificate ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n \"class\": \"my-2 text-sm font-bold text-ll-cerulean underline\",\n href: $props.product.certificates_url\n }, \" View certificates \", 8, _hoisted_18)) : (_openBlock(), _createElementBlock(\"p\", _hoisted_19, \" CLE credit is not available for this course. \"))])) : _createCommentVNode(\"\", true), $props.product.curriculum ? (_openBlock(), _createElementBlock(\"p\", _hoisted_20, [_cache[3] || (_cache[3] = _createTextVNode(\" This course is part of the Curriculum: \")), _createElementVNode(\"a\", {\n \"class\": \"text-blue-500 underline\",\n href: $props.product.curriculum.url\n }, _toDisplayString($props.product.curriculum.name), 9, _hoisted_21)])) : _createCommentVNode(\"\", true), _ctx.$isCLE() ? (_openBlock(), _createElementBlock(\"div\", _hoisted_22, [$options.showProgressBar ? (_openBlock(), _createBlock(_component_el_progress, {\n key: 0,\n \"class\": \"my-1 w-full sm:w-[300px]\",\n percentage: Number($options.ownedProduct.progress),\n color: \"#007FA1\"\n }, null, 8, [\"percentage\"])) : _createCommentVNode(\"\", true), $options.showGetCertificateMsg ? (_openBlock(), _createElementBlock(\"a\", {\n key: 1,\n \"class\": \"font-bold text-ll-cerulean underline\",\n href: $props.product.action_url\n }, \" Complete \", 8, _hoisted_23)) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true), $data.showCourseCreditsModal ? (_openBlock(), _createBlock(_component_course_credits_modal, {\n key: 6,\n course: $props.product,\n onCloseModal: _cache[1] || (_cache[1] = function ($event) {\n return $data.showCourseCreditsModal = false;\n })\n }, null, 8, [\"course\"])) : _createCommentVNode(\"\", true)]);\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 { defineAsyncComponent } from 'vue';\nimport { mapGetters } from 'vuex';\nimport _find from 'lodash/find';\nexport default {\n components: {\n 'course-credits-modal': defineAsyncComponent(function () {\n return import('@vue_shared/components/CourseCreditsModal');\n }),\n 'formatted-credit': defineAsyncComponent(function () {\n return import('./FormattedCredit');\n }),\n localize: defineAsyncComponent(function () {\n return import('@vue_apps/course-detail/components/Localize');\n })\n },\n props: {\n isUserOwned: {\n type: Boolean,\n \"default\": false\n },\n product: {\n type: Object\n }\n },\n data: function data() {\n return {\n showCourseCreditsModal: false\n };\n },\n computed: _objectSpread(_objectSpread({}, mapGetters('Search', {\n isGuest: 'isGuest',\n ownedProductCache: 'ownedProductCache'\n })), {}, {\n isWebcastType: function isWebcastType() {\n return ['Webcast', 'Pre-Recorded Webcast'].indexOf(this.product.course_type_text) > -1;\n },\n productType: function productType() {\n if (this.product.type === 'Online Event') {\n return 'Virtual Event';\n }\n return this.product.type;\n },\n showGetCertificateMsg: function showGetCertificateMsg() {\n return this.ownedProduct.progress === 100 && this.product.type === 'Course' && this.isInProgress;\n },\n showProgressBar: function showProgressBar() {\n return !this.product.is_live && this.isInProgress;\n },\n hasClippedName: function hasClippedName() {\n return this.product.clipped_name.endsWith('...');\n },\n isCompleted: function isCompleted() {\n return this.ownedProduct.status === 'Completed';\n },\n isInProgress: function isInProgress() {\n return this.ownedProduct.status === 'In Progress';\n },\n productionDate: function productionDate() {\n if (this.product.type === 'Online Event') {\n return this.product.display_date;\n }\n return this.product.date_timestamp ? new Date(this.product.date_timestamp * 1000).toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric'\n }) : null;\n },\n ownedProduct: function ownedProduct() {\n return _find(this.ownedProductCache, {\n id: this.product.id\n }) || {};\n },\n url: function url() {\n if (this.product.type === 'Course') {\n return this.isGuest || this.product.is_hosted_externally ? this.product.url : this.product.action_url;\n }\n return this.product.url;\n }\n })\n};","/* unplugin-vue-components disabled */import { render } from \"./ProductBody.vue?vue&type=template&id=62f9ba64\"\nimport script from \"./ProductBody.vue?vue&type=script&lang=js\"\nexport * from \"./ProductBody.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","key","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_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","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","arg","input","hint","prim","toPrimitive","undefined","res","call","TypeError","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","components","defineAsyncComponent","localize","props","isUserOwned","type","Boolean","product","data","showCourseCreditsModal","computed","isGuest","ownedProductCache","isWebcastType","indexOf","this","course_type_text","productType","showGetCertificateMsg","ownedProduct","progress","isInProgress","showProgressBar","is_live","hasClippedName","clipped_name","endsWith","isCompleted","status","productionDate","display_date","date_timestamp","Date","toLocaleDateString","month","day","year","id","url","is_hosted_externally","action_url","_ctx","_cache","$props","$setup","$data","$options","_$props$product$credi","_component_ais_highlight","_component_localize","_component_formatted_credit","_component_el_progress","_component_course_credits_modal","includes","is_groupcast","href","title","name","hit","attribute","faculty","innerHTML","time","non_accredited","onClick","$event","credits","credit","state_id","has_certificate","certificates_url","curriculum","$isCLE","percentage","color","course","onCloseModal"],"sourceRoot":""}