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X,EAAM7E,uBAAwB,CACvC,GACAwG,eAAgB9B,EAAO,KAAOA,EAAO,GAAK,SAAUc,GAClDX,EAAM7E,uBAAwB,EAC9B6E,EAAM9E,cAAe,CACvB,GACA0G,uBAAwB3B,EAAStB,qBACjCkD,eAAgB5B,EAASN,oBACxB,KAAM,EAAG,CAAC,SAAU,iCAAkC,mCAAoC,2BAA4B,OAAQ,yBAA0B,8BAA+B,yBAA0B,oBACtN,I,gBGtJAmC,EAAQ,EAAU,CAACC,EAAKhH,KACpB,MAAM7B,EAAS6I,EAAIC,WAAaD,EAChC,IAAK,MAAO9K,EAAKgL,KAAQlH,EACrB7B,EAAOjC,GAAOgL,EAElB,OAAO/I,CAAM,C","sources":["webpack://lawline/./resources/assets/js/vue/apps/course-detail/components/CourseButtonCta.vue?7b15","webpack://lawline/./resources/assets/js/vue/apps/course-detail/components/CourseButtonCta.vue","webpack://lawline/./resources/assets/js/vue/apps/course-detail/components/CourseButtonCta.vue?c43f","webpack://lawline/./node_modules/vue-loader/dist/exportHelper.js"],"sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createTextVNode as _createTextVNode, withCtx as _withCtx } from \"vue\";\nvar _hoisted_1 = {\n \"class\": \"\"\n};\nvar _hoisted_2 = {\n id: \"course-button-cta\",\n \"class\": \"sticky top-0 z-10\"\n};\nvar _hoisted_3 = {\n \"class\": \"mt-4 flex justify-end\"\n};\nvar _hoisted_4 = {\n \"class\": \"actions w-96 rounded-2xl bg-white p-4 shadow-xl\"\n};\nvar _hoisted_5 = {\n \"class\": \"px-5 text-left\"\n};\nvar _hoisted_6 = {\n key: 0,\n \"class\": \"pt-2 text-center text-sm font-bold text-gray-800\"\n};\nvar _hoisted_7 = {\n key: 1\n};\nvar _hoisted_8 = {\n \"class\": \"my-5 w-full cursor-pointer px-5\"\n};\nvar _hoisted_9 = [\"href\"];\nvar _hoisted_10 = [\"loading\"];\nvar _hoisted_11 = [\"href\"];\nvar _hoisted_12 = {\n \"class\": \"degular text-center text-sm text-black\"\n};\nvar _hoisted_13 = {\n key: 0\n};\nvar _hoisted_14 = {\n key: 0\n};\nvar _hoisted_15 = [\"href\"];\nvar _hoisted_16 = {\n key: 1,\n \"class\": \"text-sm\"\n};\nvar _hoisted_17 = {\n key: 1,\n \"class\": \"text-base font-bold text-ll-cerulean\"\n};\nvar _hoisted_18 = {\n key: 2\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_video_preview_thumbnail = _resolveComponent(\"video-preview-thumbnail\");\n var _component_course_pricing_details = _resolveComponent(\"course-pricing-details\");\n var _component_SuccessFilled = _resolveComponent(\"SuccessFilled\");\n var _component_el_icon = _resolveComponent(\"el-icon\");\n var _component_product_cta_modal = _resolveComponent(\"product-cta-modal\");\n var _component_preview_video_modal = _resolveComponent(\"preview-video-modal\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"div\", _hoisted_4, [_createVNode(_component_video_preview_thumbnail, {\n image: $props.course.cta_image,\n \"enable-preview-modal\": $options.enablePreviewModal,\n onShowVideoPreviewModal: _cache[0] || (_cache[0] = function ($event) {\n return $data.showPreviewVideoModal = true;\n })\n }, null, 8, [\"image\", \"enable-preview-modal\"]), _createElementVNode(\"div\", _hoisted_5, [$options.accessText.length ? (_openBlock(), _createElementBlock(\"p\", _hoisted_6, _toDisplayString($options.accessText), 1)) : _createCommentVNode(\"\", true), $options.showCoursePricingDetails ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [_createVNode(_component_course_pricing_details, {\n course: $props.course\n }, null, 8, [\"course\"])])) : _createCommentVNode(\"\", true)]), _createElementVNode(\"div\", _hoisted_8, [$props.course.is_free_course_not_added_to_account && !$options.includedInSubscription ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n \"class\": _normalizeClass($options.buttonClasses),\n onClick: _cache[1] || (_cache[1] = function () {\n return $options.addToCartAndRedirect && $options.addToCartAndRedirect.apply($options, arguments);\n })\n }, \" Free - Add to Account \", 2)) : _createCommentVNode(\"\", true), $props.course.is_discounted_free_course_not_added && !$options.includedInSubscription ? (_openBlock(), _createElementBlock(\"a\", {\n key: 1,\n \"class\": _normalizeClass($options.buttonClasses),\n onClick: _cache[2] || (_cache[2] = function () {\n return $options.addToCartAndRedirect && $options.addToCartAndRedirect.apply($options, arguments);\n })\n }, \" $0 - Add to Account \", 2)) : _createCommentVNode(\"\", true), $props.course.in_cart ? (_openBlock(), _createElementBlock(\"a\", {\n key: 2,\n \"class\": _normalizeClass($options.buttonClasses),\n href: \"/checkout\"\n }, \" In Cart \", 2)) : _createCommentVNode(\"\", true), $options.userCanUpgradeForAccess ? (_openBlock(), _createElementBlock(\"a\", {\n key: 3,\n \"class\": _normalizeClass($options.buttonClasses),\n onClick: _cache[3] || (_cache[3] = function ($event) {\n return $data.showCtaModal = true;\n })\n }, \" Upgrade for Access \", 2)) : _createCommentVNode(\"\", true), $props.course.show_get_course_modal ? (_openBlock(), _createElementBlock(\"a\", {\n key: 4,\n \"class\": _normalizeClass($options.buttonClasses),\n onClick: _cache[4] || (_cache[4] = function ($event) {\n return $data.showCtaModal = true;\n })\n }, \" Get this \" + _toDisplayString($props.course.type.name), 3)) : _createCommentVNode(\"\", true), !$props.course.show_get_course_modal && $props.course.show_primary_straight_to_cart_button ? (_openBlock(), _createElementBlock(\"a\", {\n key: 5,\n \"class\": _normalizeClass($options.buttonClasses),\n onClick: _cache[5] || (_cache[5] = function () {\n return $options.addToCartAndRedirect && $options.addToCartAndRedirect.apply($options, arguments);\n })\n }, \" Get this \" + _toDisplayString($props.course.type.name), 3)) : _createCommentVNode(\"\", true), $options.showOwnedCourseButton || $options.showJoinWebcastButton ? (_openBlock(), _createElementBlock(\"a\", {\n key: 6,\n href: $props.course.owned_button_url,\n \"class\": _normalizeClass($options.buttonClasses)\n }, _toDisplayString($props.course.owned_button_text), 11, _hoisted_9)) : _createCommentVNode(\"\", true), $options.showRegisterForCourseButton ? (_openBlock(), _createElementBlock(\"a\", {\n key: 7,\n \"class\": _normalizeClass($options.buttonClasses),\n loading: $data.registering,\n onClick: _cache[6] || (_cache[6] = function () {\n return $options.register && $options.register.apply($options, arguments);\n })\n }, \" Register for \" + _toDisplayString($options.courseFormat), 11, _hoisted_10)) : _createCommentVNode(\"\", true), $props.course.show_free_trial_button ? (_openBlock(), _createElementBlock(\"a\", {\n key: 8,\n \"class\": _normalizeClass($options.ghostButtonClasses),\n href: \"/register/trial\"\n }, \" Try it with free trial \", 2)) : _createCommentVNode(\"\", true), $props.course.completed && $props.course.status === 'Active' ? (_openBlock(), _createElementBlock(\"a\", {\n key: 9,\n href: $props.course.course_center_url,\n \"class\": _normalizeClass($options.buttonClasses)\n }, \" Visit the Course Center \", 10, _hoisted_11)) : _createCommentVNode(\"\", true)]), _createElementVNode(\"div\", _hoisted_12, [$props.course.is_live && !$props.course.completed && !$options.showJoinWebcastButton && (_ctx.isRegistered || $options.eventAccess) && !$props.course.firm ? (_openBlock(), _createElementBlock(\"p\", _hoisted_13, [$options.eventAccess ? (_openBlock(), _createElementBlock(\"span\", _hoisted_14, [_cache[10] || (_cache[10] = _createTextVNode(\" You are registered to attend as part of \")), _createElementVNode(\"a\", {\n href: $options.eventAccess.url,\n \"class\": \"text-white underline\"\n }, _toDisplayString($options.eventAccess.name), 9, _hoisted_15), _cache[11] || (_cache[11] = _createTextVNode(\". Return 15 minutes prior to start time to enter webcast. \"))])) : (_openBlock(), _createElementBlock(\"span\", _hoisted_16, _cache[12] || (_cache[12] = [_createTextVNode(\" You are registered to attend.\"), _createElementVNode(\"br\", null, null, -1), _createTextVNode(\"Return 15 minutes prior to start time to enter webcast. \")])))])) : _createCommentVNode(\"\", true), $props.course.completed ? (_openBlock(), _createElementBlock(\"p\", _hoisted_17, [_createVNode(_component_el_icon, null, {\n \"default\": _withCtx(function () {\n return [_createVNode(_component_SuccessFilled)];\n }),\n _: 1\n }), _cache[13] || (_cache[13] = _createTextVNode(\" You have completed this course \"))])) : _createCommentVNode(\"\", true), $props.course.is_live && !$props.course.completed && $props.course.firm ? (_openBlock(), _createElementBlock(\"p\", _hoisted_18, \" This course is hosted by your firm. \")) : _createCommentVNode(\"\", true)])])])]), _createVNode(_component_product_cta_modal, {\n show: $data.showCtaModal,\n \"discount-code\": $props.course.discount_code,\n product: $props.course,\n \"user-can-upgrade-for-access\": $options.userCanUpgradeForAccess,\n \"default-discount-code-suffix\": \"Details\",\n onClose: _cache[7] || (_cache[7] = function ($event) {\n return $data.showCtaModal = false;\n })\n }, null, 8, [\"show\", \"discount-code\", \"product\", \"user-can-upgrade-for-access\"]), _createVNode(_component_preview_video_modal, {\n course: $props.course,\n \"can-complete-course-for-credit\": $options.canCompleteCourseForCredit,\n \"free-course-not-added-to-account\": $options.freeCourseNotAddedToAccount,\n \"included-in-subscription\": $options.includedInSubscription,\n show: $data.showPreviewVideoModal,\n \"user-subscription-type\": $data.userSubscription.type,\n \"user-can-upgrade-for-access\": $options.userCanUpgradeForAccess,\n onClose: _cache[8] || (_cache[8] = function ($event) {\n return $data.showPreviewVideoModal = false;\n }),\n onShowCtaModal: _cache[9] || (_cache[9] = function ($event) {\n $data.showPreviewVideoModal = false;\n $data.showCtaModal = true;\n }),\n onAddToCartAndRedirect: $options.addToCartAndRedirect,\n onPreviewEnded: $options.handlePreviewEnded\n }, null, 8, [\"course\", \"can-complete-course-for-credit\", \"free-course-not-added-to-account\", \"included-in-subscription\", \"show\", \"user-subscription-type\", \"user-can-upgrade-for-access\", \"onAddToCartAndRedirect\", \"onPreviewEnded\"])]);\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 { mapGetters, mapActions } from 'vuex';\nimport { defineAsyncComponent } from 'vue';\nimport _isEmpty from 'lodash/isEmpty';\nimport _first from 'lodash/first';\nimport { SuccessFilled } from '@element-plus/icons-vue';\nexport default {\n components: {\n 'course-options': defineAsyncComponent(function () {\n return import('./CourseOptions.vue');\n }),\n 'product-cta-modal': defineAsyncComponent(function () {\n return import('@vue_shared/components/ProductCtaModal');\n }),\n 'preview-video-modal': defineAsyncComponent(function () {\n return import('@vue_shared/components/PreviewVideoModal');\n }),\n 'video-preview-thumbnail': defineAsyncComponent(function () {\n return import('@vue_shared/components/VideoPreviewThumbnail.vue');\n }),\n 'course-pricing-details': defineAsyncComponent(function () {\n return import('./CoursePricingDetails');\n }),\n SuccessFilled: SuccessFilled\n },\n props: ['course'],\n data: function data() {\n return {\n completedPreview: false,\n showCtaModal: false,\n showPreviewVideoModal: false,\n registering: false,\n userSubscription: window.userSubscription,\n isCle: window.siteInfo.is_cle\n };\n },\n computed: _objectSpread(_objectSpread({}, mapGetters('MyProduct', {\n isRegistered: 'registered'\n })), {}, {\n accessText: function accessText() {\n if (this.userCanUpgradeForAccess) {\n return 'This course isn’t included in your Essentials plan. Upgrade to Plus or purchase the course to continue.';\n }\n if (this.canCompleteCourseForCredit && this.includedInSubscription) {\n return 'Included in your subscription.';\n }\n if (this.canCompleteCourseForCredit && !this.includedInSubscription && !this.freeCourseNotAddedToAccount) {\n return 'You have access to this course. ';\n }\n return '';\n },\n baseButtonClasses: function baseButtonClasses() {\n return 'btn block my-2 py-4 text-center text-sm';\n },\n buttonClasses: function buttonClasses() {\n if (this.isCle) {\n return this.baseButtonClasses + ' btn--leaf bg-primary text-white';\n }\n return this.baseButtonClasses + ' text-white bg-cpe-mulberry border-cpe-mulberry';\n },\n freeCourseNotAddedToAccount: function freeCourseNotAddedToAccount() {\n return this.course.is_discounted_free_course_not_added || this.course.is_free_course_not_added_to_account;\n },\n ghostButtonClasses: function ghostButtonClasses() {\n if (this.isCle) {\n return this.baseButtonClasses + ' btn--leaf btn--ghost text-primary';\n }\n return this.baseButtonClasses + ' btn--ghost text-cpe-mulberry border-cpe-mulberry';\n },\n canCompleteCourseForCredit: function canCompleteCourseForCredit() {\n return this.course.ownership.can_get_credit;\n },\n includedInSubscription: function includedInSubscription() {\n return this.course.plan === userSubscription.type;\n },\n isUpcomingWebcast: function isUpcomingWebcast() {\n return this.course.is_upcoming && this.course.is_webcast;\n },\n enablePreviewModal: function enablePreviewModal() {\n var course = this.course;\n return course && !course.is_upcoming && !course.is_webcast && !course.is_pre_recorded_webcast && !course.is_live_in_person && !this.completedPreview && this.isCle;\n },\n showCoursePricingDetails: function showCoursePricingDetails() {\n return !this.accessText.length;\n },\n showOwnedCourseButton: function showOwnedCourseButton() {\n if (!this.canCompleteCourseForCredit) {\n return false;\n }\n if (this.isUpcomingWebcast && !this.isRegistered) {\n return false;\n }\n\n // Don't show the button if we're on that page already.\n if (window.location.href.includes(this.course.owned_button_url)) {\n return false;\n }\n if (this.isRegistered && this.course.webcast_joinable) {\n return true;\n }\n if (this.course.has_free_trial) {\n return true;\n }\n return !this.freeCourseNotAddedToAccount || this.includedInSubscription;\n },\n showRegisterForCourseButton: function showRegisterForCourseButton() {\n return this.course.is_live && this.course.access_allowed && !this.isRegistered && !this.course.firm;\n },\n showJoinWebcastButton: function showJoinWebcastButton() {\n return this.course.is_live && this.course.access_allowed && this.isRegistered && this.course.webcast_joinable;\n },\n userCanUpgradeForAccess: function userCanUpgradeForAccess() {\n return this.course.show_upgrade_for_access_button || this.course.plan === 'Plus' && this.userSubscription.type === 'Essentials';\n },\n courseFormat: function courseFormat() {\n var format = _first(this.course.course_types);\n if (format.name === 'Pre-Recorded Webcast') {\n return 'webcast';\n }\n return format.name.toLowerCase();\n },\n eventAccess: function eventAccess() {\n if (_isEmpty(this.course.event_access)) {\n return null;\n }\n return this.course.event_access;\n }\n }),\n mounted: function mounted() {\n this.setRegistered(this.course.is_registered);\n },\n methods: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, mapActions('Cart', ['addProduct'])), mapActions('MyCourse', ['addFreeProduct', 'setAttendance'])), mapActions('MyProduct', ['setRegistered'])), {}, {\n addToCartAndRedirect: function addToCartAndRedirect() {\n this.addProduct({\n product_id: this.course.id,\n code: this.course.discount_code\n }).then(function () {\n window.location.href = '/checkout/signin';\n });\n },\n addProductToAccount: function addProductToAccount() {\n this.addFreeProduct(this.course.id).then(function (response) {\n if (response && response.redirect) {\n window.location.href = response.redirect;\n return;\n }\n window.location.reload();\n });\n },\n register: function register() {\n this.registering = true;\n this.setAttendance({\n attendance_type: 'webcast',\n product_id: this.course.id,\n notify: true\n }).then(function () {\n this.registering = false;\n }.bind(this));\n },\n handlePreviewEnded: function handlePreviewEnded() {\n this.completedPreview = true;\n this.showPreviewVideoModal = false;\n if (!this.canCompleteCourseForCredit) {\n this.showCtaModal = true;\n }\n }\n })\n};","/* unplugin-vue-components disabled */import { render } from \"./CourseButtonCta.vue?vue&type=template&id=2fd0ad32\"\nimport script from \"./CourseButtonCta.vue?vue&type=script&lang=js\"\nexport * from \"./CourseButtonCta.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__","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// runtime helper for setting properties on components\n// in a tree-shakable way\nexports.default = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\n"],"names":["_hoisted_1","_hoisted_2","id","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_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","SuccessFilled","props","data","completedPreview","showCtaModal","showPreviewVideoModal","registering","userSubscription","window","isCle","siteInfo","is_cle","computed","isRegistered","accessText","this","userCanUpgradeForAccess","canCompleteCourseForCredit","includedInSubscription","freeCourseNotAddedToAccount","baseButtonClasses","buttonClasses","course","is_discounted_free_course_not_added","is_free_course_not_added_to_account","ghostButtonClasses","ownership","can_get_credit","plan","type","isUpcomingWebcast","is_upcoming","is_webcast","enablePreviewModal","is_pre_recorded_webcast","is_live_in_person","showCoursePricingDetails","showOwnedCourseButton","location","href","includes","owned_button_url","webcast_joinable","has_free_trial","showRegisterForCourseButton","is_live","access_allowed","firm","showJoinWebcastButton","show_upgrade_for_access_button","courseFormat","format","course_types","name","toLowerCase","eventAccess","event_access","mounted","setRegistered","is_registered","methods","addToCartAndRedirect","addProduct","product_id","code","discount_code","then","addProductToAccount","addFreeProduct","response","redirect","reload","register","setAttendance","attendance_type","notify","bind","handlePreviewEnded","_ctx","_cache","$props","$setup","$data","$options","_component_video_preview_thumbnail","_component_course_pricing_details","_component_SuccessFilled","_component_el_icon","_component_product_cta_modal","_component_preview_video_modal","image","cta_image","onShowVideoPreviewModal","$event","onClick","in_cart","show_get_course_modal","show_primary_straight_to_cart_button","owned_button_text","loading","show_free_trial_button","completed","status","course_center_url","url","_","show","product","onClose","onShowCtaModal","onAddToCartAndRedirect","onPreviewEnded","exports","sfc","__vccOpts","val"],"sourceRoot":""}