iztech-design-system-neo
Version:
Design System of project IZtech
1 lines • 3.34 MB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.system=t():e.system=t()}(window,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=0)}({"+/JK":function(e,t){e.exports='<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg">\n<circle cx="7" cy="7" r="7"/>\n<circle cx="7" cy="7" r="5.5" fill="white"/>\n</svg>\n'},"+97c":function(e,t){},"+9Xl":function(e,t){e.exports='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.02781 0.861541C6.86499 0.829792 6.69623 0.864021 6.55866 0.956699C6.42108 1.04938 6.32595 1.19291 6.2942 1.35573L5.57592 5.02843H2.4001C2.23655 5.02843 2.0797 5.0934 1.96405 5.20905C1.8484 5.3247 1.78343 5.48155 1.78343 5.6451C1.78343 5.80865 1.8484 5.9655 1.96405 6.08115C2.0797 6.1968 2.23655 6.26177 2.4001 6.26177H5.32979L4.64313 9.6951H1.46676C1.30321 9.6951 1.14636 9.76007 1.03072 9.87572C0.915068 9.99136 0.850098 10.1482 0.850098 10.3118C0.850098 10.4753 0.915068 10.6322 1.03072 10.7478C1.14636 10.8635 1.30321 10.9284 1.46676 10.9284H4.39175L3.70435 14.361L3.70412 14.3621C3.67335 14.5224 3.70734 14.6883 3.79865 14.8235C3.88996 14.9588 4.03112 15.0525 4.19126 15.0838L4.19804 15.0848C4.23934 15.0909 4.28125 15.0915 4.32266 15.0865C4.46263 15.0866 4.59859 15.039 4.70807 14.9514C4.82074 14.8613 4.89843 14.7335 4.92726 14.5921L5.65006 10.9284H9.16575L8.47835 14.361L8.47812 14.3621C8.44735 14.5224 8.48134 14.6883 8.57265 14.8235C8.66396 14.9588 8.80513 15.0524 8.96527 15.0838L8.97111 15.0847C9.01127 15.0909 9.05207 15.0915 9.09236 15.0865C9.23219 15.0865 9.36801 15.0389 9.4774 14.9514C9.59008 14.8613 9.66773 14.7337 9.69656 14.5923L10.4239 10.9284H13.6001C13.7636 10.9284 13.9205 10.8635 14.0361 10.7478C14.1518 10.6322 14.2168 10.4753 14.2168 10.3118C14.2168 10.1482 14.1518 9.99136 14.0361 9.87572C13.9205 9.76007 13.7636 9.6951 13.6001 9.6951H10.6706L11.3616 6.26177H14.5334C14.697 6.26177 14.8538 6.1968 14.9695 6.08115C15.0851 5.9655 15.1501 5.80865 15.1501 5.6451C15.1501 5.48155 15.0851 5.3247 14.9695 5.20905C14.8538 5.0934 14.697 5.02843 14.5334 5.02843H11.6084L12.296 1.59514C12.3277 1.43233 12.2935 1.26357 12.2008 1.12599C12.1082 0.988416 11.9646 0.89329 11.8018 0.861541C11.639 0.829792 11.4702 0.864021 11.3327 0.956699C11.1951 1.04938 11.1 1.19291 11.0682 1.35573L10.3499 5.02843H6.83445L7.52199 1.59514C7.53771 1.51453 7.5374 1.4316 7.52107 1.3511C7.50475 1.27061 7.47272 1.19411 7.42683 1.12599C7.38094 1.05787 7.32209 0.999456 7.25362 0.954081C7.18516 0.908707 7.10842 0.877261 7.02781 0.861541ZM5.89663 9.6951L6.58758 6.26177H10.1036L9.41261 9.6951H5.89663Z"/>\n</svg>\n'},"+DH1":function(e,t,i){"use strict";i.r(t);var n={name:"MyNotification",status:"ready",release:"1.0.0",props:{itemNumber:{type:String|Number,default:0},items:{type:Array,default:function(){return[]}}},data:function(){return{}},watch:{},computed:{},methods:{setAllNotiRead:function(){this.$emit("markAllNotificationsRead")},loadmoreNotification:function(){this.$emit("onLoadmoreNotification")},handleRedirect:function(e){this.$emit("redirectToDetailNotification",e)}}},r=(i("ogKZ"),i("KHd+")),a=i("UfN9"),s=i.n(a),o=Object(r.a)(n,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"my-noti-template"},[i("Wrapper",[i("Wrapper",{attrs:{ph0:""}},[i("div",{staticClass:"my-noti-template__title"},[i("TextStyle",{attrs:{"font-type":"subtitle-1"}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.YOUR_NOTIFICATION"))+"\n ")]),e._v(" "),i("TextStyle",{staticClass:"cursor-pointer",attrs:{"font-type":"subtitle-1",variation:"primary"},nativeOn:{click:function(t){return e.setAllNotiRead(t)}}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.MARK_ALL_NOTIFICATION_READ"))+"\n ")])],1),e._v(" "),i("ElementDivider"),e._v(" "),i("NotificationList",{attrs:{"item-number":e.itemNumber,items:e.items,maxContentCharLength:197},on:{loadmore:e.loadmoreNotification,redirectToDetailNotification:e.handleRedirect}})],1)],1)],1)}),[],!1,null,null,null);"function"==typeof s.a&&s()(o);t.default=o.exports},"+DH5":function(e,t,i){"use strict";var n=i("4tQ5");i.n(n).a},"+G1k":function(e,t,i){},"+HCI":function(e,t,i){"use strict";var n=i("58Ww");i.n(n).a},"+J/F":function(e,t,i){"use strict";var n=i("nLfQ");i.n(n).a},"+LG/":function(e,t,i){"use strict";i.r(t);var n={name:"MenuItemRemake",status:"ready",release:"1.0.0",props:{menuItems:{type:Array,default:function(){return[]}},headerText:{type:String,default:""}},data:function(){return{gridColumns:0,isNextBtnDisabled:!1,isPrevBtnDisabled:!0}},computed:{maxScrollLeft:function(){return this.fileContainer?this.fileContainer.scrollWidth-this.fileContainer.clientWidth:0},minScrollLeft:function(){return 0}},mounted:function(){this.fileContainer=this.$refs["file-container"]},methods:{onSelectCategory:function(e){this.$emit("onSelectCategory",e)},prev:function(){if(this.fileContainer.scrollLeft>this.minScrollLeft){var e=this.fileContainer.scrollLeft-this.fileContainer.clientWidth;this.fileContainer.scrollTo({left:e,behavior:"smooth"}),this.isNextBtnDisabled=!1,e<=this.minScrollLeft&&(this.isPrevBtnDisabled=!0)}else this.isPrevBtnDisabled=!0},next:function(){if(this.fileContainer.scrollLeft<this.maxScrollLeft){var e=this.fileContainer.scrollLeft+this.fileContainer.clientWidth;this.fileContainer.scrollTo({left:e,behavior:"smooth"}),this.isPrevBtnDisabled=!1,e>=this.maxScrollLeft&&(this.isNextBtnDisabled=!0)}else this.isNextBtnDisabled=!1}},watch:{menuItems:{handler:function(e){Array.isArray(e)&&e.length&&(this.gridColumns=Math.floor(e.length/2))},immediate:!0,deep:!0}}},r=(i("C/k+"),i("KHd+")),a=i("nXf/"),s=i.n(a),o=Object(r.a)(n,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pattern menu-items"},[i("Wrapper",{attrs:{ph0:""}},[i("div",{staticClass:"menu-items__header-text my-3"},[i("TextStyle",{attrs:{"font-type":"title-4",noMargin:""}},[e._v("\n "+e._s(e.headerText)+"\n ")])],1),e._v(" "),i("div",{staticClass:"menu-items__action-wrapper prev-button",on:{click:e.prev}},[i("v-icon",{staticClass:"menu-items__action-wrapper icon-wrapper",class:{"is-disabled":e.isPrevBtnDisabled}},[e._v("\n mdi-chevron-left\n ")])],1),e._v(" "),i("div",{staticClass:"menu-items__action-wrapper next-button",on:{click:e.next}},[i("v-icon",{staticClass:"menu-items__action-wrapper icon-wrapper",class:{"is-disabled":e.isNextBtnDisabled}},[e._v("\n mdi-chevron-right\n ")])],1),e._v(" "),i("div",{staticClass:"menu-items__list-item--wrapper"},[i("div",{ref:"file-container",staticClass:"menu-slider__file-wrapper"},e._l(e.menuItems,(function(t,n){return i("div",{key:n},[i("div",{staticClass:"menu-slider__file-wrapper-overview"},[i("div",n%2==0?[i("div",{staticClass:"menu-slider__file-wrapper-overview--content",on:{click:function(i){return e.onSelectCategory(t)}}},[i("div",{staticClass:"menu-slider__file-wrapper-overview--content-image--inner"},[i("img",{attrs:{src:t.image,alt:t.title}})]),e._v(" "),i("div",{staticClass:"menu-slider__file-wrapper-overview--content-title"},[i("TextStyle",{attrs:{"font-type":"subtitle-1"}},[i("p",{staticClass:"menu-slider__file-wrapper-overview--content-title--inner"},[e._v("\n "+e._s(t.title)+"\n ")])])],1)]),e._v(" "),n+1<e.menuItems.length-1?i("div",{staticClass:"menu-slider__file-wrapper-overview--content",on:{click:function(t){return e.onSelectCategory(e.menuItems[n+1])}}},[i("div",{staticClass:"menu-slider__file-wrapper-overview--content-image--inner"},[i("img",{attrs:{src:e.menuItems[n+1].image,alt:e.menuItems[n+1].title}})]),e._v(" "),i("div",{staticClass:"menu-slider__file-wrapper-overview--content-title"},[i("TextStyle",{attrs:{"font-type":"subtitle-1"}},[i("p",{staticClass:"menu-slider__file-wrapper-overview--content-title--inner"},[e._v("\n "+e._s(e.menuItems[n+1].title)+"\n ")])])],1)]):e._e()]:[e._v("\n "+e._s("")+"\n ")])])])})),0)])])],1)}),[],!1,null,"451cf16c",null);"function"==typeof s.a&&s()(o);t.default=o.exports},"+MBP":function(e,t,i){},"+Onx":function(e,t){},"+RE1":function(e,t){},"+Sl0":function(e,t,i){"use strict";i.r(t);var n=i("QdZy"),r=i("1dxO"),a=(i("RVtD"),{name:"ElementSlider",status:"ready",release:"1.0.0",props:{items:{required:!0,type:Array,default:function(){return[]}},hasButtonNavigation:{type:Boolean,default:!1},hasScrollNavigation:{type:Boolean,default:!1},hasDotNavigation:{type:Boolean,default:!1},dotNavigationIsOutside:{type:Boolean,default:!1},direction:{type:String,default:"horizontal",validator:function(e){return e.match(/(horizontal|vertical)/)}},slidesPerView:{type:Number,default:1},effect:{type:Boolean},center:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},spaceBetween:{type:Number,default:0},breakpoints:{type:Object,default:function(){return{768:{slidesPerView:1,spaceBetween:0}}}}},data:function(){return{token:r,slider:null}},computed:{theme:function(){return{color:this.$themeData.color_primary||this.token.color_primary}}},watch:{items:{handler:function(){var e=this;this.slider&&this.$nextTick((function(){e.slider.update()}))},deep:!0,immediate:!0},$themeData:{handler:function(e){e&&e.color_primary&&this.$themeConfig.addStyle("element-slider",".element.slider .swiper-container .swiper-pagination .swiper-pagination-bullet-active {background-color: ".concat(e.color_primary,"}"))},immediate:!0}},mounted:function(){this.generateSlider()},methods:{generateSlider:function(){this.slider=new n.a(this.$refs.swiper,{centeredSlides:this.center,slidesPerView:this.slidesPerView,spaceBetween:this.spaceBetween,direction:this.direction,loop:!1,pagination:{el:this.$refs.pagination,clickable:!0},breakpoints:this.breakpoints,autoplay:!!this.autoplay&&{delay:3e3,disableOnInteraction:!1},navigation:{nextEl:this.$refs["button-right"],prevEl:this.$refs["button-left"]},scrollbar:{el:this.$refs["scroll-bar"]},preloadImages:!1,lazy:!0})}}}),s=(i("f51f"),i("KHd+")),o=i("Ys7V"),l=i.n(o),c=Object(s.a)(a,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"element slider"},[i("div",{ref:"swiper",staticClass:"swiper-container",class:[e.slidesPerView>1&&e.effect?"multiple-slide":"",e.dotNavigationIsOutside?"content-box":""]},[i("div",{staticClass:"swiper-wrapper"},e._l(e.items,(function(t,n){return i("div",{key:n,staticClass:"swiper-slide swiper-lazy"},[e._t("default",null,{item:t,index:n}),e._v(" "),i("div",{staticClass:"swiper-lazy-preloader"})],2)})),0),e._v(" "),e.hasDotNavigation&&e.items.length>e.slidesPerView?i("div",{ref:"pagination",staticClass:"swiper-pagination",style:e.theme}):e._e(),e._v(" "),e.hasScrollNavigation&&e.items.length>e.slidesPerView?i("div",{ref:"scroll-bar",staticClass:"swiper-scrollbar"}):e._e(),e._v(" "),e.hasButtonNavigation&&e.items.length>e.slidesPerView?i("div",{ref:"button-left",staticClass:"custom-button-prev"},[i("DecoratorButton",{attrs:{icon:"",text:""}},[i("ElementIcon",{attrs:{name:"arrow-left",size:"large","no-margin":""}})],1)],1):e._e(),e._v(" "),e.hasButtonNavigation&&e.items.length>e.slidesPerView?i("div",{ref:"button-right",staticClass:"custom-button-next"},[i("DecoratorButton",{attrs:{icon:"",text:""}},[i("ElementIcon",{attrs:{name:"arrow-right",size:"large","no-margin":""}})],1)],1):e._e()])])}),[],!1,null,null,null);"function"==typeof l.a&&l()(c);t.default=c.exports},"+V/p":function(e,t){},"+X0y":function(e,t){var i={"":!0,up:!0};function n(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}},"+Xde":function(e,t){e.exports='<svg width="101" height="100" viewBox="0 0 101 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="0.5" width="100" height="100" rx="50" fill="#F8F8F8"/>\n<path d="M63.5804 64.6041C63.0152 64.6041 62.5565 65.1164 62.5565 65.7476V76.1999H29.135V26.9542H62.5558V35.6448C62.5558 36.2767 63.0145 36.7883 63.5797 36.7883C64.1449 36.7883 64.6035 36.2767 64.6035 35.6448V25.8107C64.6035 25.1788 64.1449 24.6672 63.5797 24.6672H28.1112C27.5453 24.6672 27.0873 25.1788 27.0873 25.8107V77.3426C27.0873 77.9738 27.5453 78.4861 28.1112 78.4861H63.5797C64.1449 78.4861 64.6035 77.9738 64.6035 77.3426V65.7476C64.6042 65.1156 64.1455 64.6041 63.5804 64.6041Z" fill="#D2D3DB"/>\n<path d="M82.2499 27.7146C82.1953 27.4173 82.0369 27.1566 81.8103 26.9896L76.6698 23.2039C76.4431 23.0377 76.1681 22.979 75.8991 23.0385C75.6329 23.0995 75.4001 23.2763 75.2507 23.5302L71.4876 29.9162C71.4487 29.9825 71.4166 30.0519 71.3913 30.1228L51.4844 63.8581C51.4428 63.929 51.41 64.0053 51.3834 64.0838C51.268 64.2355 51.1834 64.42 51.152 64.6304L49.8598 73.2546C49.7916 73.7089 49.9745 74.1633 50.3226 74.4103C50.4899 74.5277 50.6796 74.5864 50.8694 74.5864C51.0748 74.5864 51.2803 74.517 51.4557 74.3798L57.8673 69.3766C57.9287 69.3286 57.9833 69.2737 58.0324 69.2143C58.1457 69.1312 58.2495 69.029 58.3287 68.8948L78.2465 35.1427C78.2861 35.0749 78.3182 35.0032 78.3441 34.9293L82.1004 28.5753C82.2506 28.3214 82.3045 28.0127 82.2499 27.7146ZM52.9745 66.3243L55.6659 68.3048L52.2817 70.9455L52.9745 66.3243ZM57.1826 66.6818L53.7574 64.1615L72.5483 32.3183L75.9735 34.8393L57.1826 66.6818ZM77.0807 32.9152L73.6568 30.395L76.3981 25.7432L79.8274 28.2688L77.0807 32.9152Z" fill="#D2D3DB"/>\n<path d="M52.497 39.1158C53.0629 39.1158 53.5209 38.6043 53.5209 37.9723C53.5209 37.3404 53.0629 36.8289 52.497 36.8289H33.4488C32.8829 36.8289 32.4249 37.3404 32.4249 37.9723C32.4249 38.6043 32.8829 39.1158 33.4488 39.1158H52.497Z" fill="#D2D3DB"/>\n<path d="M33.6876 48.5338H52.731C53.2969 48.5338 53.7549 48.0223 53.7549 47.3903C53.7549 46.7583 53.2969 46.2468 52.731 46.2468H33.6876C33.1217 46.2468 32.6637 46.7583 32.6637 47.3903C32.6637 48.0223 33.1217 48.5338 33.6876 48.5338Z" fill="#D2D3DB"/>\n</svg>\n'},"+dO5":function(e,t){},"+jtL":function(e,t,i){},"+ohW":function(e,t,i){"use strict";var n=i("ycxz");i.n(n).a},"+stB":function(e,t){},"+vkP":function(e,t,i){"use strict";var n=i("pStz");i.n(n).a},"+w5B":function(e,t,i){"use strict";var n=i("tq3e");i.n(n).a},"/1FC":function(e,t,i){"use strict";var n=Array.isArray;t.a=n},"/8yO":function(e,t,i){"use strict";var n=i("B2oQ");i.n(n).a},"/9LA":function(e,t){},"/Jxl":function(e,t){},"/SEr":function(e,t){},"/YaL":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>'},"/aIJ":function(e,t,i){},"/eEm":function(e,t){},"/kay":function(e,t,i){"use strict";i.r(t);var n=i("o0o1"),r=i.n(n),a=i("yXPU"),s=i.n(a),o={name:"ExamAnswerSheetMobile",status:"ready",release:"1.0.0",props:{questions:{type:Array,default:function(){return[]}},settings:{type:Object,default:function(){return{}}},isTimeValidated:{type:Boolean,default:!1},confirmSubmitMessage:{type:String,default:"$vuetify.LEARNING.EXAMINATION.CONFIRMATION.NOT_FULL_ANSWER_SUBMIT_DESCRIPTION"},remainingTime:{type:String|Number,default:""},isFixedMobileButton:{type:Boolean,default:!1},hasCourseMenuCollapsed:{type:Boolean,default:!1},partitionQuestions:{type:Array,default:function(){return[]}},partitionId:{type:Number,default:0}},data:function(){return{isActive:!0,enableTrackingAnswers:!1,isEnableButtonReDo:!1,isResultShown:!1,hasLimitedTime:!1,isClickSubmitHandler:!1,currentTime:-1,currentPartition:0,shownQuestions:[],totalTimeForPart:0,isContinue:!1}},computed:{lengthQuestionsAnswered:function(){return this.questions.filter((function(e){return e.selection&&e.selection.length})).length},totalTime:function(){return this.settings.isPartitionTimeSet?this.isContinue?Number(this.remainingTime):Number(this.totalTimeForPart):this.settings.hasLimitedTime&&Number(this.settings.expiredTime)>0?Number(this.remainingTime):void 0}},methods:{actionWithClock:function(e){this.$refs.clock[e]()},timeHandler:function(e){this.currentTime=e.time||0,0===this.currentTime&&(this.settings.isPartitionTimeSet?this.changePart():this.settings.hasLimitedTime&&!this.isClickSubmitHandler&&this.confirmSubmit())},submit:function(e){var t=this;this.isClickSubmitHandler=e,this.enableTrackingAnswers=!1,this.closePopup(),this.$emit("onSubmit",this.questions,(function(){return t.isClickSubmitHandler=!1}))},confirmSubmit:function(){this.enableTrackingAnswers=!1,this.closePopup(),this.$emit("submit",this.questions)},saveAnswers:function(){var e={questions:this.questions};this.settings.isPartitionTimeSet&&(e.partitionId=this.currentPartition,e.partitionRemainingTime=this.currentTime),this.$emit("saveAnswers",e)},runTrackingSaveAnswers:function(){var e=this;this.enableTrackingAnswers&&setTimeout((function(){e.enableTrackingAnswers&&e.saveAnswers(),e.runTrackingSaveAnswers()}),6e4)},continue:function(){this.hasLimitedTime&&(this.isContinue=!0,this.actionWithClock("start"),this.settings.isPartitionTimeSet&&(this.currentPartition=this.partitionId)),this.reset(),this.enableTrackingAnswers=!0,this.runTrackingSaveAnswers()},stop:function(){this.hasLimitedTime&&this.actionWithClock("stop"),this.enableTrackingAnswers=!1},start:function(){this.isContinue=!1,this.hasLimitedTime&&this.actionWithClock("restart"),this.reset(),this.enableTrackingAnswers=!0,this.runTrackingSaveAnswers()},executeAgain:function(){var e=this;return s()(r.a.mark((function t(){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.isEnableButtonReDo=!1,e.isResultShown=!1,e.$emit("startTestAgain"),e.start();case 4:case"end":return t.stop()}}),t)})))()},reset:function(){this.isResultShown=!1,this.isEnableButtonReDo=!1,this.closePopup()},showResult:function(){this.isEnableButtonReDo=!0,this.isResultShown=!0},openPopup:function(){this.$refs["popup-submit"].openPopup()},closePopup:function(){this.$refs["popup-submit"].closePopup()},openPopupNext:function(){this.$refs["popup-next"].openPopup()},closePopupNext:function(){this.$refs["popup-next"].closePopup()},changePart:function(){this.closePopupNext();var e=this.currentPartition+1,t=this.partitionQuestions.find((function(t){return t.index===e}));t?(this.isContinue=!1,this.$emit("onChangePartition"),this.shownQuestions=this.questions.filter((function(t){return t.partitionId===e})),this.currentPartition=e,this.totalTimeForPart=+t.duration,this.saveAnswers(),this.hasLimitedTime&&this.actionWithClock("restart")):this.confirmSubmit()}},watch:{settings:{handler:function(e){this.hasLimitedTime=e.hasLimitedTime&&e.expiredTime||e.isPartitionTimeSet},immediate:!0},$themeData:{handler:function(e){e&&e.color_primary&&this.$themeConfig.addStyle("exam-answer-sheet-mobile",".exam__answer-sheet-mobile .answer-sheet-mobile-wrapper .btn-answer-mobile .btn-answer-mobile__button-wrapper .btn-answer-mobile__button-wrapper__text {color: ".concat(e.color_primary," !important}"))},immediate:!0},totalTime:{handler:function(e){e&&(this.currentTime=e)},immediate:!0},questions:{handler:function(e){var t=this;e&&e.length&&(this.settings.isPartitionTimeSet&&!this.isResultShown?(this.shownQuestions=this.questions.filter((function(e){return e.partitionId===(t.partitionId||t.currentPartition)})),this.totalTimeForPart=+this.partitionQuestions.find((function(e){return e.index===(t.partitionId||t.currentPartition)})).duration):this.shownQuestions=this.questions)},immediate:!0},isResultShown:{handler:function(e){e&&(this.shownQuestions=this.questions)},immediate:!0}}},l=(i("VgLm"),i("KHd+")),c=i("rh0S"),u=i.n(c),d=Object(l.a)(o,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pattern exam__answer-sheet-mobile"},[i("div",{staticClass:"answer-sheet-mobile-wrapper"},[i("ElementToggle",{scopedSlots:e._u([{key:"view-more__trigger--bottom",fn:function(t){return[i("div",{staticClass:"btn-answer-mobile",class:{"fixed-btn":e.isFixedMobileButton,"is-mini-sidebar":e.hasCourseMenuCollapsed},on:{click:t.on}},[i("DecoratorButton",{staticClass:"btn-answer-mobile__button-wrapper",attrs:{text:e.isActive,block:"",variation:"primary",large:""},on:{click:function(t){e.isActive=!e.isActive}}},[e.settings&&(Number(e.settings.expiredTime)>0||e.settings.isPartitionTimeSet)?i("TextStyle",{staticClass:"btn-answer-mobile__button-wrapper__text",class:{active:!e.isActive},attrs:{inline:"",noMargin:""}},[i("ElementIcon",{attrs:{name:"clock",inline:"",left:""}}),e._v(" "),i("CountDownClock",{directives:[{name:"show",rawName:"v-show",value:e.totalTime&&!e.isResultShown,expression:"totalTime && !isResultShown"}],ref:"clock",class:{active:!e.isActive,highlight:e.currentTime<=60},attrs:{"total-time":e.totalTime,noMargin:""},on:{update:function(t){return e.timeHandler(t)}}})],1):e._e(),e._v(" "),i("TextStyle",{staticClass:"btn-answer-mobile__button-wrapper__text",class:{active:!e.isActive},attrs:{"font-type":"subtitle-2",inline:"",noMargin:""}},[e._v("\n "+e._s(e.isActive?e.$vuetify.lang.t("$vuetify.LEARNING.EXAMINATION.ANSWER_SHEET.MOBILE_BTN_OPEN_SHEET"):e.$vuetify.lang.t("$vuetify.BUTTON.CLOSE"))+"\n ")]),e._v(" "),i("TextStyle",{staticClass:"btn-answer-mobile__button-wrapper__text",class:{active:!e.isActive},attrs:{"font-type":"subtitle-2",inline:"",noMargin:""}},[i("ElementIcon",{attrs:{name:"format-list-numbered",size:"large",inline:"",left:""}}),e._v("\n "+e._s(e.lengthQuestionsAnswered)+"/"+e._s(e.questions.length)+"\n ")],1)],1)],1)]}}])},[e._v(" "),[i("div",{staticClass:"test__answer-sheet test__answer-sheet_mobile",class:{"test__answer-sheet__remove":e.isActive}},[i("div",{staticClass:"test__answer-sheet__overview test__answer-sheet__overview--top"},[!e.isEnableButtonReDo&&e.settings.isPartitionTimeSet&&e.partitionQuestions.findIndex((function(t){return t.index===e.currentPartition}))!==e.partitionQuestions.length-1?i("DecoratorButton",{attrs:{variation:"primary",outlined:"",block:"",large:""},on:{click:e.openPopupNext}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXAMINATION.ANSWER_SHEET.BTN_NEXT_PARTITION"))+"\n ")]):e.isEnableButtonReDo?!e.settings.submitCount&&e.isTimeValidated?i("DecoratorButton",{attrs:{variation:"warning",outlined:"",block:"",large:""},on:{click:e.executeAgain}},[i("TextStyle",{attrs:{"font-type":"subtitle-2",variation:"warning",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXAMINATION.ANSWER_SHEET.BTN_REDO"))+"\n ")])],1):e._e():i("DecoratorButton",{attrs:{variation:"warning",outlined:"",block:"",large:""},on:{click:function(t){return e.submit(!0)}}},[i("TextStyle",{attrs:{"font-type":"subtitle-2",variation:"warning",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.BTN_SUBMIT"))+"\n ")])],1)],1),e._v(" "),i("div",{staticClass:"question__wrapper"},e._l(e.shownQuestions,(function(t,n){return i("div",{key:n,staticClass:"question question-mobile"},[i("ExamQuestionWrapper",{attrs:{questionList:e.questions,question:t,currentQuestionIndex:e.questions.findIndex((function(e){return e.id===t.id})),isPartitionTitleShown:!1,isResultShown:e.isResultShown,isQuestionContentShown:!1},on:{synchronize:function(t){return e.$emit("synchronize",t)}}})],1)})),0),e._v(" "),i("div",{staticClass:"test__answer-sheet__overview test__answer-sheet__overview--bottom"},[!e.isEnableButtonReDo&&e.settings.isPartitionTimeSet&&e.partitionQuestions.findIndex((function(t){return t.index===e.currentPartition}))!==e.partitionQuestions.length-1?i("DecoratorButton",{attrs:{variation:"primary",outlined:"",block:"",large:""},on:{click:e.openPopupNext}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXAMINATION.ANSWER_SHEET.BTN_NEXT_PARTITION"))+"\n ")]):e.isEnableButtonReDo?!e.settings.submitCount&&e.isTimeValidated?i("DecoratorButton",{attrs:{variation:"warning",outlined:"",block:"",large:""},on:{click:e.executeAgain}},[i("TextStyle",{attrs:{"font-type":"subtitle-2",variation:"warning",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXAMINATION.ANSWER_SHEET.BTN_REDO"))+"\n ")])],1):e._e():i("DecoratorButton",{attrs:{variation:"warning",outlined:"",block:"",large:""},on:{click:function(t){return e.submit(!0)}}},[i("TextStyle",{attrs:{"font-type":"subtitle-2",variation:"warning",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.BTN_SUBMIT"))+"\n ")])],1)],1)])]],2),e._v(" "),i("Popup",{ref:"popup-submit"},[i("div",{staticClass:"popup-submit-wrapper"},[i("TextStyle",{attrs:{noMargin:""}},[e._v(e._s(e.$vuetify.lang.t(e.confirmSubmitMessage)))]),e._v(" "),i("div",{staticClass:"popup-submit-buttons"},[i("DecoratorButton",{attrs:{text:""},on:{click:e.confirmSubmit}},[i("TextStyle",{attrs:{variation:"primary","font-type":"subtitle-1",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.BTN_SUBMIT"))+"\n ")])],1),e._v(" "),i("DecoratorButton",{attrs:{variation:"primary","font-type":"subtitle-1",text:""},on:{click:e.closePopup}},[i("TextStyle",{attrs:{"font-type":"subtitle-1",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.BUTTON.CANCEL"))+"\n ")])],1)],1)],1)]),e._v(" "),i("Popup",{ref:"popup-next"},[i("div",{staticClass:"popup-submit-wrapper"},[i("TextStyle",{attrs:{noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXAMINATION.OBO_CONFIRMATION_NEXT_PARTITION"))+"\n ")]),e._v(" "),i("div",{staticClass:"popup-submit-buttons"},[i("DecoratorButton",{attrs:{text:""},on:{click:e.changePart}},[i("TextStyle",{attrs:{variation:"primary","font-type":"subtitle-1",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.BUTTON.CONFIRM"))+"\n ")])],1),e._v(" "),i("DecoratorButton",{attrs:{variation:"primary","font-type":"subtitle-1",text:""},on:{click:e.closePopupNext}},[i("TextStyle",{attrs:{"font-type":"subtitle-1",noMargin:""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.BUTTON.CANCEL"))+"\n ")])],1)],1)],1)])],1)])}),[],!1,null,"78823c89",null);"function"==typeof u.a&&u()(d);t.default=d.exports},"/thn":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M497.9 150.5c9 9 14.1 21.2 14.1 33.9v143.1c0 12.7-5.1 24.9-14.1 33.9L361.5 497.9c-9 9-21.2 14.1-33.9 14.1H184.5c-12.7 0-24.9-5.1-33.9-14.1L14.1 361.5c-9-9-14.1-21.2-14.1-33.9V184.5c0-12.7 5.1-24.9 14.1-33.9L150.5 14.1c9-9 21.2-14.1 33.9-14.1h143.1c12.7 0 24.9 5.1 33.9 14.1l136.5 136.4zM377.6 338c4.7-4.7 4.7-12.3 0-17l-65-65 65.1-65.1c4.7-4.7 4.7-12.3 0-17L338 134.4c-4.7-4.7-12.3-4.7-17 0l-65 65-65.1-65.1c-4.7-4.7-12.3-4.7-17 0L134.4 174c-4.7 4.7-4.7 12.3 0 17l65.1 65.1-65.1 65.1c-4.7 4.7-4.7 12.3 0 17l39.6 39.6c4.7 4.7 12.3 4.7 17 0l65.1-65.1 65.1 65.1c4.7 4.7 12.3 4.7 17 0l39.4-39.8z"/></svg>'},0:function(e,t,i){e.exports=i("5m5j")},"05F4":function(e,t,i){"use strict";i.r(t);var n={name:"ExerciseComment",status:"ready",release:"1.0.0",props:{mark:{type:String,default:""},markedAt:{type:String,default:""},notes:{type:String,default:""}}},r=(i("bMB7"),i("KHd+")),a=i("DrcH"),s=i.n(a),o=Object(r.a)(n,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("Wrapper",{staticClass:"correction-approval-wrapper",attrs:{pv0:"",pr0:""}},[i("Wrapper",{staticClass:"correction-approval__mark",attrs:{pv0:"",pr0:""}},[i("div",{staticClass:"correction-approval__mark--text"},[i("span",[e._v("\n "+e._s("Điểm bài tập:")+"\n ")]),e._v(" "),i("span",{staticClass:"correction-approval__mark--text--mark"},[e._v("\n "+e._s(e.mark)+"\n ")])])]),e._v(" "),i("Wrapper",{attrs:{pr0:""}},[i("TextStyle",{staticClass:"correction-approval__mark-time",attrs:{"font-type":"body-2",variation:"subtext","no-margin":""}},[i("ElementIcon",{attrs:{name:"flag-outline",inline:"","no-margin":"",left:""}}),e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXERCISE.POPUP_CORRECTION.MARKED_AT_LABEL"))+" "+e._s(e.markedAt)+"\n ")],1)],1),e._v(" "),i("Wrapper",{staticClass:"correction-approval__divider-1",attrs:{pv0:"",pr0:""}},[i("ElementDivider")],1),e._v(" "),i("Wrapper",{staticClass:"correction-approval__note",attrs:{pt0:"",pr0:""}},[i("TextStyle",{staticClass:"correction-approval__note--label",attrs:{"font-type":"title-4","no-margin":""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.LEARNING.EXERCISE.POPUP_CORRECTION.NOTE_LABEL"))+"\n ")]),e._v(" "),i("ElementReadMore",{attrs:{"abstract-view-height":36}},[i("Paragraph",{staticClass:"correction-approval__note--content",domProps:{innerHTML:e._s(e.notes)}}),e._v(" "),i("div",{attrs:{slot:"read-more__trigger-expand"},slot:"read-more__trigger-expand"},[i("ElementLink",[i("TextStyle",{attrs:{"font-type":"body-1",inline:"","vertical-middle":""}},[i("ElementIcon",{attrs:{name:"arrow-down",size:"medium",left:""}}),e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.BUTTON.VIEW_MORE"))+"\n ")],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"read-more__trigger-colapse"},slot:"read-more__trigger-colapse"},[i("ElementLink",[i("TextStyle",{attrs:{"font-type":"body-1",inline:"","vertical-middle":""}},[i("ElementIcon",{attrs:{name:"arrow-up",size:"medium",left:""}}),e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.BUTTON.VIEW_LESS"))+"\n ")],1)],1)],1)],1)],1),e._v(" "),i("Wrapper",{staticClass:"correction-approval__divider-2",attrs:{p0:""}},[i("ElementDivider")],1)],1)}),[],!1,null,"557d3d63",null);"function"==typeof s.a&&s()(o);t.default=o.exports},"0CxO":function(e,t,i){var n=i("7zRj"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function o(){this.values=r(null)}function l(e,t,i,n){var r=n?e.split(n):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length)t(s[0].trim(),s[1].trim())}}function c(e,t,i){var n=e;function r(){var t=s(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=r(),c(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);e=e.substr(3),c(),t.endTime=r(),c(),function(e,t){var n=new o;l(e,(function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){n.set(e,i[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];n.integer(e,s),n.percent(e,s)&&n.set("snapToLines",!1),n.alt(e,s,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),n.percent(e,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}a.prototype=r(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=n.createElement&&n.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function i(){if(!t)return null;var e,i=t.match(/^([^<]*)(<[^>]*>?)?/);return e=i[1]?i[1]:i[2],t=t.substr(e.length),e}function n(e,t){return!f[t.localName]||f[t.localName]===e.localName}function r(t,i){var n=d[t];if(!n)return null;var r=e.document.createElement(n),a=p[t];return a&&i&&(r[a]=i.trim()),r}for(var a,o,l=e.document.createElement("div"),c=l,m=[];null!==(a=i());)if("<"!==a[0])c.appendChild(e.document.createTextNode((o=a,u.innerHTML=o,o=u.textContent,u.textContent="",o)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var v,g=s(a.substr(1,a.length-2));if(g){v=e.document.createProcessingInstruction("timestamp",g),c.appendChild(v);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(v=r(y[1],y[3])))continue;if(!n(c,v))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(h.hasOwnProperty(i)){var n=t?"background-color":"color",r=h[i];v.style[n]=r}})),v.className=b.join(" ")}m.push(y[1]),c.appendChild(v),c=v}return l}var v=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(e){for(var t=0;t<v.length;t++){var i=v[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function y(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):i}return"ruby"===t.tagName?r(e):t.childNodes?(n(e,t),r(e)):void 0}for(n(t,e);i=r(t);)for(var a=0;a<i.length;a++)if(g(i.charCodeAt(a)))return"rtl";return"ltr"}function b(){}function _(e,t,i){b.call(this),this.cue=t,this.cueDiv=m(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function w(e){var t,i,n,r;if(e.div){i=e.div.offsetHeight,n=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function x(e,t,i,n){var r=new w(t),a=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var c=r.lineHeight,u=c*Math.round(s),d=i[l]+c,h=o[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),s<0&&(u+=""===a.vertical?i.height:i.width,o=o.reverse()),r.move(h,u)}else{var p=r.lineHeight/i.height*100;switch(a.lineAlign){case"center":s-=p/2;break;case"end":s-=p}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new w(t)}var f=function(e,t){for(var r,a=new w(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(n);)e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);s>l&&(r=new w(e),s=l),e=new w(a)}return r||a}(r,o);t.move(f.toCSSCompatValues(i))}function C(){}b.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=r(b.prototype),_.prototype.constructor=_,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},w.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};C.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],a=w.getSimpleBoxPosition(n),s={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l<t.length;l++)o=t[l],i=new _(e,o,s),n.appendChild(i.div),x(0,i,a,r),o.displayState=i.div,r.push(w.getSimpleBoxPosition(i))}()}else for(var o=0;o<t.length;o++)n.appendChild(t[o].displayState)},C.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},C.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function i(){for(var e=t.buffer,i=0;i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i;var n=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),n}function n(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,i){switch(e){case"X-TIMESTAMP-MAP":!function(e){var i=new o;l(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",s(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}(i)}}),/=/):l(e,(function(e,i){switch(e){case"Region":!function(e){var i=new o;if(l(e,(function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var r=new o;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(e+"X",r.get("x")),i.set(e+"Y",r.get("y"));break;case"scroll":i.alt(e,t,["up"])}}),/=/,/\s/),i.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:i.get("id"),region:n})}}(i)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(r=i()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:r=i(),t.state){case"HEADER":/:/.test(r)?n(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":try{c(r,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new a(a.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=C},"0F8v":function(e,t,i){"use strict";i.r(t);var n={name:"RatingForm",status:"ready",release:"1.0.0",props:{defaultComment:{type:String,default:""},defaultStar:{type:Number|String,default:5}},watch:{defaultComment:{handler:function(e){this.comment=e||""},immediate:!0},defaultStar:{handler:function(e){this.star=e||5,this.starCaption=this.translateStarCaption(this.star),this.currentStarCaption=this.starCaption},immediate:!0}},computed:{},data:function(){return{comment:"",star:0,starCaption:"",currentStarCaption:""}},methods:{submitComment:function(){this.$emit("post",this.star,this.comment)},showCurrentStarCaption:function(e){this.starCaption=0===e?this.currentStarCaption:this.translateStarCaption(e)},setCurrentStarCaption:function(e){this.star=Math.floor(e),this.currentStarCaption=this.translateStarCaption(e)},translateStarCaption:function(e){return 5==e?this.$vuetify.lang.t("$vuetify.RATING.FORM.STAR_INDICATOR.START_AT_5"):e>=4?this.$vuetify.lang.t("$vuetify.RATING.FORM.STAR_INDICATOR.START_AT_4"):e>=3?this.$vuetify.lang.t("$vuetify.RATING.FORM.STAR_INDICATOR.START_AT_3"):e>=2?this.$vuetify.lang.t("$vuetify.RATING.FORM.STAR_INDICATOR.START_AT_2"):e>=1?this.$vuetify.lang.t("$vuetify.RATING.FORM.STAR_INDICATOR.START_AT_1"):e>0?this.$vuetify.lang.t("$vuetify.RATING.FORM.STAR_INDICATOR.START_AT_0"):void 0}}},r=(i("w9A3"),i("KHd+")),a=i("Tvnm"),s=i.n(a),o=Object(r.a)(n,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"element pattern rating-form"},[i("div",{staticClass:"rating-form__wrap"},[i("Wrapper",[i("Wrapper",[i("div",{staticClass:"rating-form__title"},[i("TextStyle",{attrs:{"font-type":"title-4","no-margin":""}},[e._v("\n "+e._s(e.$vuetify.lang.t("$vuetify.RATING.FORM.TITLE"))+"\n ")])],1)]),e._v(" "),i("Wrapper",[i("div",{staticClass:"rating-form__star-setting"},[i("div",{staticClass:"rating-form__star-setting-inner",on:{mouseleave:function(t){return e.showCurrentStarCaption(0)}}},[i("DecoratorStarRating",{attrs:{size:"large",value:e.star},on:{"current-rating":e.showCurrentStarCaption,"rating-selected":e.setCurrentStarCaption}})],1)]),e._v(" "),i("div",{staticClass:"rating-form__star-caption"},[i("TextStyle",{attrs:{"font-type":"title-4","no-margin":"",justify:"center"}},[e._v(e._s(e.starCaption))])],1)]),e._v(" "),i("Wrapper",[i("ElementDivider"),e._v(" "),i("Wrapper",{attrs:{ph0:"",pb0:""}},[i("div",{staticClass:"rating-form__content"},[i("Textarea",{attrs:{label:e.$vuetify.lang.t("$vuetify.RATING.FORM.INPUT_COMMENT_LABEL"),placeholder:e.$vuetify.lang.t("$vuetify.RATING.FORM.INPUT_COMMENT_PLACELHOLDER"),"default-value":e.defaultComment,fixedSize:"","no-margin":""},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1)])],1),e._v(" "),i("Wrapper",[i("div",{staticClass:"rating-form__footer"},[e.defaultComment?i("DecoratorButton",{attrs:{variation:"primary",solid:"",disabled:!e.comment||!e.star},nativeOn:{click:function(t){return e.s