From a7e7ff31e1a146ce6a6fcf39186d8cb4e5e4a274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20B=C3=A9guin?= Date: Mon, 4 May 2020 11:58:58 +0200 Subject: [PATCH] dist 6.0.0 --- assets/be/css/index.css | 2 + .../js/i18n/.openveo-portal-locale_fr.js.swp | Bin 0 -> 16384 bytes assets/be/js/openveo-portal-admin.min.js | 2 + assets/be/js/openveo-portal-admin.min.js.map | 1 + .../be/js/openveo-portal-admin.templates.js | 170 ++++++++++++++++++ assets/be/views/index.html | 89 +++++++++ assets/css/style.css | 1 + assets/js/openveo-portal-lib.js | 1 + assets/js/openveo-portal.js | 1 + 9 files changed, 267 insertions(+) create mode 100644 assets/be/css/index.css create mode 100644 assets/be/js/i18n/.openveo-portal-locale_fr.js.swp create mode 100644 assets/be/js/openveo-portal-admin.min.js create mode 100644 assets/be/js/openveo-portal-admin.min.js.map create mode 100644 assets/be/js/openveo-portal-admin.templates.js create mode 100644 assets/be/views/index.html create mode 100644 assets/css/style.css create mode 100644 assets/js/openveo-portal-lib.js create mode 100644 assets/js/openveo-portal.js diff --git a/assets/be/css/index.css b/assets/be/css/index.css new file mode 100644 index 0000000..274d41f --- /dev/null +++ b/assets/be/css/index.css @@ -0,0 +1,2 @@ +@font-face{font-family:"Roboto";src:url("/roboto-fontface/fonts/roboto/Roboto-Regular.woff2") format("woff2"),url("/roboto-fontface/fonts/roboto/Roboto-Regular.woff") format("woff");font-weight:400;font-style:normal}@font-face{font-family:"Roboto-Regular";src:url("/roboto-fontface/fonts/roboto/Roboto-Regular.woff2") format("woff2"),url("/roboto-fontface/fonts/roboto/Roboto-Regular.woff") format("woff")}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.md-whiteframe-4dp,.md-whiteframe-z2{box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 4px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)}button *{position:relative}}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url("/material-design-icons/iconfont/MaterialIcons-Regular.eot");src:local("Material Icons"),local("MaterialIcons-Regular"),url("/material-design-icons/iconfont/MaterialIcons-Regular.woff2") format("woff2"),url("/material-design-icons/iconfont/MaterialIcons-Regular.woff") format("woff"),url("/material-design-icons/iconfont/MaterialIcons-Regular.ttf") format("truetype")}.material-icons{font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}body{overflow:hidden;max-width:100%;max-height:100%;font-family:Roboto,Helvetica Neue,sans-serif}.opa-wrapper{position:relative;min-height:0}.opa-loader{height:100%}.opa-view.ng-hide-remove{transition:opacity 0.2s linear;opacity:0}.opa-view.ng-hide-remove.ng-ng-hide-remove-active{opacity:1}a{color:#1a91d1;text-decoration:none;outline:none}a:hover,a:focus{color:#e6007e}.md-button{transition:background-color 0.3s ease-in}.md-tooltip{border-radius:0}.opa-media-library-dialog.opa-dialog-100{width:100%;max-width:100%;height:100%;max-height:100%}.opa-media-library-dialog.opa-dialog-80{width:80%;max-width:80%;height:100%;max-height:630px}.opa-media-library-dialog.opa-dialog-55{width:55%;max-width:55%;height:100%;max-height:654px}.opa-media-library-dialog.opa-dialog-40{width:40%;max-width:40%;height:100%;max-height:654px}.opa-media-library-dialog md-dialog-content{flex-grow:1}.opa-media-library-dialog md-dialog-content opa-media-library{flex-grow:1}.opa-notification{width:100%;bottom:0}.opa-notification .md-toast-content{border-radius:0}.opa-notification .md-toast-content.opa-large{min-width:288px;max-width:568px;margin:0 auto;border-radius:2px}.opa-notification .md-toast-content>div{width:100%}.opa-notification .md-toast-content span{margin:14px 0;display:flex}.opa-promoted-videos.opa-error{background:none}.opa-promoted-videos.opa-error .opa-error-message{user-select:none}.opa-promoted-videos.opa-error .opa-error-message md-icon{width:270px;height:270px;margin:0;font-size:270px;color:#eee}.opa-promoted-videos.opa-error .opa-error-message span{color:#bdbdbd}.opa-promoted-videos .opa-submit{margin:10px 0 0 0}.opa-promoted-videos .opa-submit md-progress-circular{margin:0 auto}.opa-promoted-videos .opa-submit:not([disabled]).md-raised.md-focused{background-color:#1a6c99}.opa-promoted-videos .opa-containers{margin-top:16px;margin-bottom:16px;position:relative;left:8px}.opa-promoted-videos .opa-containers.opa-xs{width:316px;margin-left:auto;margin-right:auto}.opa-promoted-videos .opa-containers.opa-sm{width:474px;margin-left:auto;margin-right:auto}.opa-promoted-videos .opa-containers.opa-gt-sm{width:632px;margin-left:8px}.opa-promoted-videos opa-media-container{display:flex;width:142px;height:80px;margin-right:16px;margin-bottom:9px}.opa-promoted-videos opa-media-container.big{width:300px;height:169px}.opa-settings{background-color:#fff}.opa-settings.opa-error{background:none}.opa-settings.opa-error .opa-error-message{user-select:none}.opa-settings.opa-error .opa-error-message md-icon{width:270px;height:270px;margin:0;font-size:270px;color:#eee}.opa-settings.opa-error .opa-error-message span{color:#bdbdbd}.opa-settings .opa-submit md-progress-circular{margin:0 auto}.opa-settings .opa-submit:not([disabled]).md-raised.md-focused{background-color:#1a6c99}.opa-settings-wrapper{background-color:#fff}.opa-about{height:100%}.opa-about>div{width:100%}.opa-about header{padding:0 2px 16px 16px}.opa-about header h1{margin:24px 0 0 0;font-size:20px;font-weight:500}.opa-about header>md-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:16px}.opa-about header .md-button{margin-top:8px}.opa-about header .opa-up-to-date{color:#95c11f}.opa-about section{padding:0 16px;font-size:14px}.opa-about footer{padding:0 8px;margin-bottom:2px}.opa-media-library{flex-grow:1}.opa-media-library .opa-select-container{overflow:auto;flex-grow:1}.opa-media-library .opa-select-container opa-media-select{flex-grow:1}.opa-media-library .opa-select-container md-progress-linear{position:sticky;bottom:0}.opa-media-library .md-toolbar-tools>*{margin-top:0;margin-bottom:0}.opa-media-library .md-toolbar-tools md-input-container .md-placeholder,.opa-media-library .md-toolbar-tools md-input-container label:not(.md-no-float):not(.md-container-ignore){transition:opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1)}.opa-media-library .md-toolbar-tools md-input-container.md-input-focused label:not(.md-no-float),.opa-media-library .md-toolbar-tools md-input-container.md-input-has-placeholder label:not(.md-no-float),.opa-media-library .md-toolbar-tools md-input-container.md-input-has-value label:not(.md-no-float){transform:translate3d(0, 28px, 0) scale(1);-webkit-transform:translate3d(0, 28px, 0) scale(1);transition:opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.opa-media-library .md-toolbar-tools .md-input{border-width:0}.opa-media-library .md-toolbar-tools .md-select-value{border-width:0}.opa-dashboard md-grid-tile{background-color:#fff}.opa-dashboard md-grid-tile figure{display:block}.opa-live-settings form md-input-container{margin:0 0 8px 0}.opa-live-settings form md-checkbox,.opa-live-settings form md-switch,.opa-live-settings form .opa-live-groups,.opa-live-settings form .opa-live-player{margin-bottom:32px}.opa-live-settings form .opa-live-sub-settings,.opa-live-settings form .opa-live-private-settings,.opa-live-settings form .opa-live-wowza-settings{position:relative}.opa-live-settings form .opa-live-sub-settings.ng-hide-remove,.opa-live-settings form .opa-live-private-settings.ng-hide-remove,.opa-live-settings form .opa-live-wowza-settings.ng-hide-remove{top:-30px;transition:all 0.1s linear;opacity:0}.opa-live-settings form .opa-live-sub-settings.ng-hide-remove.ng-hide-remove-active,.opa-live-settings form .opa-live-private-settings.ng-hide-remove.ng-hide-remove-active,.opa-live-settings form .opa-live-wowza-settings.ng-hide-remove.ng-hide-remove-active{top:0;opacity:1}.opa-live-settings form .opa-live-sub-settings.ng-hide-add,.opa-live-settings form .opa-live-private-settings.ng-hide-add,.opa-live-settings form .opa-live-wowza-settings.ng-hide-add{top:0px;transition:all 0.1s linear;opacity:1}.opa-live-settings form .opa-live-sub-settings.ng-hide-add.ng-hide-add-active,.opa-live-settings form .opa-live-private-settings.ng-hide-add.ng-hide-add-active,.opa-live-settings form .opa-live-wowza-settings.ng-hide-add.ng-hide-add-active{top:-30px;opacity:0}.opa-search-settings form md-checkbox{margin-bottom:32px}.opa-actions-button button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:48px;margin:0;padding:0;background:none;text-transform:none;font-size:inherit;text-align:left}.opa-actions-button button.md-button:not([disabled]):hover{background:none}.opa-actions-button button span{display:flex;color:#212121}.opa-actions-button button>md-icon:last-child{margin:0;transform:rotate(0deg);transition:transform 0.3s ease-in-out}.opa-actions-button button md-icon{color:#616161}.opa-actions-button button:focus md-icon,.opa-actions-button button:focus span{color:#008bd6}.opa-actions-button .opa-actions-wrapper{overflow:hidden;height:0px;margin-left:30px;transition:all 0.2s cubic-bezier(0.35, 0, 0.25, 1)}.opa-actions-button .opa-actions-wrapper a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.opa-actions-button .opa-actions-wrapper a.opa-selected md-icon,.opa-actions-button .opa-actions-wrapper a.opa-selected span{color:#e6007e}.opa-actions-button .opa-actions-wrapper a:focus md-icon,.opa-actions-button .opa-actions-wrapper a:focus span{color:#008bd6}.opa-actions-button.opa-opened>button>md-icon:last-child{transform:rotate(180deg)}.opa-info{max-width:250px;max-height:300px;padding:24px 0 0 0;background-color:#fff}.opa-info>p{overflow:hidden;margin:0 24px 24px 24px;max-height:200px}.opa-info-button md-icon{transition:color 0.3s cubic-bezier(0, 0, 0, 1)}.opa-info-button md-icon:hover{color:#e6007e}.opa-media-container{display:flex;position:relative;flex-grow:1;color:#fff;outline:0}.opa-media-container.opa-empty{border-width:2px;border-style:dashed;border-color:#afafaf}.opa-media-container.opa-empty:hover{border-color:#e6007e}.opa-media-container.opa-empty:hover .opa-title{color:#e6007e}.opa-media-container.opa-empty:focus{border-color:#1a91d1}.opa-media-container.opa-empty:focus .opa-title{color:#1a91d1}.opa-media-container.opa-empty .opa-title{color:#afafaf;margin:auto;font-size:42px;font-weight:700}.opa-media-container:not(.opa-empty) .opa-title{font-size:18px;font-weight:700;line-height:30px;text-shadow:1px 1px 1px #000;position:absolute;top:1px;left:7px;height:30px}.opa-media-container .opa-preview{position:absolute}.opa-media-container:focus .opa-overlay{background:linear-gradient(rgba(26,145,209,0.25), rgba(26,145,209,0.2), rgba(26,145,209,0.25))}.opa-media-container:hover{cursor:pointer}.opa-media-container:hover .opa-overlay{background:linear-gradient(rgba(230,0,126,0.25), rgba(230,0,126,0.2), rgba(230,0,126,0.25))}.opa-media-container .opa-overlay{background:linear-gradient(rgba(0,0,0,0.25), transparent, rgba(0,0,0,0.25));position:absolute;width:100%;height:100%}.opa-media-container .opa-remove-btn{position:absolute;top:0px;right:0px;margin:0;padding:0px;width:30px;min-height:30px;height:30px}.opa-media-container .opa-remove-btn:focus{background-color:rgba(0,0,0,0.125)}.opa-media-container .opa-remove-btn md-icon{color:#fff;text-shadow:1px 1px 1px #000}.opa-media-container .opa-media-info{font-size:90%;text-shadow:1px 1px 1px #000;padding:7px;position:absolute;bottom:0;left:0;right:0}.opa-media-container .opa-media-info .opa-media-title{font-weight:700}.opa-media-container .opa-media-info .opa-media-date{font-size:80%}.opa-media-option{position:relative}.opa-media-option .opa-thumbnail{display:block;width:142px;height:142px}.opa-media-option .opa-overlay{background:linear-gradient(rgba(0,0,0,0.25), transparent, rgba(0,0,0,0.25));height:100%;width:100%;position:absolute;top:0}.opa-media-option .opa-actions{text-align:right;padding:15px;position:absolute;top:0;right:0}.opa-media-option .opa-actions md-checkbox.md-checked .md-icon,.opa-media-option .opa-actions md-checkbox.md-checked .md-icon::after{background:#379fd6;border-color:#fff;color:#000}.opa-media-option .opa-actions md-checkbox.md-checked .md-ink-ripple{color:#379fd6}.opa-media-option .opa-actions md-checkbox.md-focused:not([disabled]):not(.md-checked) .md-container:before{background-color:rgba(255,255,255,0.3)}.opa-media-option .opa-actions md-checkbox.md-focused:not([disabled]).md-checked .md-container:before{background-color:rgba(55,159,214,0.26)}.opa-media-option .opa-actions md-checkbox .md-icon{background:#fff;border-color:#000}.opa-media-option .opa-media-info{color:#fff;line-height:133%;text-shadow:1px 1px 1px #000;padding:15px;position:absolute;top:50%;left:0;right:0}.opa-media-option .opa-media-info .opa-media-title{font-weight:700}.opa-media-option .opa-media-info .opa-media-date{font-size:80%}.opa-media-select{outline:0}.opa-nav ul{margin:0;padding:0 16px 0 8px}.opa-nav a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:48px;text-decoration:none}.opa-nav a span{color:#212121;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.opa-nav a md-icon{color:#616161}.opa-nav a.opa-selected md-icon,.opa-nav a.opa-selected span{color:#e6007e}.opa-nav a:focus md-icon,.opa-nav a:focus span{color:#008bd6}.opa-nav md-icon{margin:0 16px 0 8px}.opa-nav md-divider{margin:8px 0 8px 8px}.opa-tags{position:relative}.opa-tags ul{padding:0 20px 0 0;margin:0 0 10px 0;white-space:normal}.opa-tags input{width:100%;margin-bottom:5px}.opa-tags li{list-style:none}.opa-tags .opa-tag{position:relative;display:inline-block;height:32px;padding:0 40px 0 12px;margin:3px 0 3px 5px;line-height:32px;font-size:16px;border-radius:8px;background-color:#eee;color:#424242}.opa-tags .opa-tag button{position:absolute;top:0;right:0;padding:0;width:32px;height:32px;background:none;border:none;box-shadow:none;outline:none;border-radius:50%}.opa-tags .opa-tag button>md-icon{transition:color 0.15s linear}.opa-tags .opa-tag button:hover>md-icon{color:#e6007e}.opa-tags .opa-tag button:focus{background-color:rgba(26,145,209,0.26);transition:all .5s}.opa-tags .opa-tag button:focus>md-icon{color:rgba(26,145,209,0.87)}.opa-tags .ov-field-tags-auto-complete{position:absolute;overflow:auto;z-index:2;top:30px;width:100%;max-height:192px;padding:0;background-color:#fff;border:1px solid #e3e3e3}.opa-tags .ov-field-tags-auto-complete li{height:48px;line-height:48px;padding:0 16px;color:#212121}.opa-tags .ov-field-tags-auto-complete li:hover,.opa-tags .ov-field-tags-auto-complete li:focus{cursor:pointer;background-color:#f5f5f5}.opa-tags .ov-field-tags-auto-complete li div{overflow:hidden;white-space:nowrap}.opa-toolbar .opa-toolbar-left-actions>div:first-child .md-button{margin-left:-8px}.opa-toolbar h1{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.opa-toolbar .md-button:not([disabled]).md-focused{background-color:rgba(255,255,255,0.3)} +/*# sourceMappingURL=index.css.map */ diff --git a/assets/be/js/i18n/.openveo-portal-locale_fr.js.swp b/assets/be/js/i18n/.openveo-portal-locale_fr.js.swp new file mode 100644 index 0000000000000000000000000000000000000000..dce375b92ac48dbc636e6aa6662602f448fe6426 GIT binary patch literal 16384 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',pageTitle:"DASHBOARD.PAGE_TITLE",title:"DASHBOARD.TITLE",pageInfo:"DASHBOARD.INFO"}).otherwise("/"),e.when("/promoted-videos",{template:'',pageTitle:"PROMOTED_VIDEOS.PAGE_TITLE",title:"PROMOTED_VIDEOS.TITLE",pageInfo:"PROMOTED_VIDEOS.INFO"}),e.when("/settings",{template:'',pageTitle:"SETTINGS.PAGE_TITLE",title:"SETTINGS.TITLE",pageInfo:"SETTINGS.INFO"}),t.html5Mode(!0),o.debugEnabled(!1),a.interceptors.push("opaInterceptor"),n.definePalette("opaBlue",{50:"f5f8ff",100:"e5eeff",200:"bde1f5",300:"7ec2e7",400:"58b3e4",500:"1a91d1",600:"1a8dcb",700:"1f7bad",800:"1a6c99",900:"155d84",A100:"80d2ff",A200:"52c2ff",A400:"1aafff",A700:"008bd6",contrastDefaultColor:"dark",contrastLightColors:["500","700","800","900"]}),n.definePalette("opaPink",{50:"fff5fe",100:"ffe5eb",200:"f5bddc",300:"e77eb8",400:"e458a5",500:"e6007e",600:"cb1a7c",700:"ad1f6d",800:"991a60",900:"841552",A100:"ff80c6",A200:"ff52b1",A400:"ff1a98",A700:"d60076",contrastDefaultColor:"dark",contrastLightColors:["500","600","700","800","900","A700"]}),n.theme("default").primaryPalette("opaBlue",{default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"}),n.theme("default").accentPalette("opaPink",{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"})}]),t.run(["$filter","opaInfoConfiguration","opaNotificationConfiguration",function(e,t,o){t.setOptions({closeLabel:e("opaTranslate")("INFO.CLOSE"),closeAriaLabel:e("opaTranslate")("INFO.CLOSE_ACCESSIBILITY")}),o.setOptions({closeLabel:e("opaTranslate")("NOTIFICATION.CLOSE"),closeAriaLabel:e("opaTranslate")("NOTIFICATION.CLOSE_ACCESSIBILITY")})}]),e.element(document).ready(function(){e.bootstrap(document,["opa"],{strictDi:!0})})}(angular),function(){function e(){var t=this;return Object.defineProperties(this,{options:{value:{}},setOptions:{value:function(e){e.closeLabel&&(t.options.closeLabel=e.closeLabel),e.closeAriaLabel&&(t.options.closeAriaLabel=e.closeAriaLabel)}},getOptions:{value:function(){return t.options}}}),{getOptions:this.getOptions,setOptions:this.setOptions}}angular.module("opa").factory("opaNotificationConfiguration",e),e.$inject=[]}(),function(){function e(e,t){return{getInfo:function(){return e.get(t+"version")}}}angular.module("opa").factory("opaAboutFactory",e),e.$inject=["$http","opaWebServiceBasePath"]}(),function(){function e(){return{setUrlParameter:function(e,t,o){var a,n,i,l={},r=[],s=e.match(/([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);if(!s)throw new TypeError(e+" is not a valid URL");for(var u in n=s[1],i=s[2],a=s[3],i&&(r=i.split("&")).forEach(function(e){var t=e.split("=");l[t[0]]=t[1]}),l[t]=o,r=[],l)r.push(u+"="+l[u]);return r.length&&(n+="?"+r.join("&")),a&&(n+="#"+a),n}}}angular.module("opa").factory("opaUrlFactory",e),e.$inject=[]}(),function(){function e(e){Object.defineProperties(this,{$onInit:{value:function(){e.$emit("opaViewLoaded")}}})}angular.module("opa").controller("OpaDashboardController",e),e.$inject=["$scope"]}(),function(){function e(e){var o=this;Object.defineProperties(o,{availablePlayers:{value:[{id:"wowza",name:"SETTINGS.LIVE.WOWZA"},{id:"youtube",name:"SETTINGS.LIVE.YOUTUBE"},{id:"vodalys",name:"SETTINGS.LIVE.VODALYS"}]},liveSwitchMessage:{value:null,writable:!0},urlErrorMessage:{value:null,writable:!0},settings:{value:null,writable:!0},$onChanges:{value:function(e){if(e.opaSettings&&e.opaSettings.currentValue){var t=angular.copy(e.opaSettings.currentValue);o.settings={activated:void 0!==t.activated&&t.activated,playerType:t.playerType||o.availablePlayers[0].id,url:t.url||null,wowza:t.wowza||{},private:void 0!==t.private&&t.private,groups:t.groups||[]},o.settings.wowza.playerLicenseKey=t.wowza&&t.wowza.playerLicenseKey||null,o.updateLiveSwitchMessage(o.settings.activated),o.updateUrlErrorMessage(o.settings.playerType),o.callUpdate()}}},$postLink:{value:function(){e.$emit("opaLiveSettingsLinked",{controller:o})}},callUpdate:{value:function(){o.isValid()&&o.opaOnUpdate&&o.opaOnUpdate({settings:o.settings})}},updateLiveSwitchMessage:{value:function(e){o.liveSwitchMessage=e?"SETTINGS.LIVE.ACTIVATED_LABEL":"SETTINGS.LIVE.DEACTIVATED_LABEL"}},updateUrlErrorMessage:{value:function(e){o.urlErrorMessage="SETTINGS.LIVE.URL_"+e.toUpperCase()+"_ERROR"}},isValid:{value:function(){return!e.opaLiveSettings||e.opaLiveSettings.$valid}}}),e.$watch("$ctrl.opaSettings",function(e,t){o.callUpdate()},!0)}angular.module("opa").controller("OpaLiveSettingsController",e),e.$inject=["$scope"]}(),function(){function e(e){var o=this;Object.defineProperties(o,{settings:{value:null,writable:!0},$onChanges:{value:function(e){if(e.opaSettings&&e.opaSettings.currentValue){var t=angular.copy(e.opaSettings.currentValue);o.settings={pois:void 0!==t.pois&&t.pois},o.callUpdate()}}},$postLink:{value:function(){e.$emit("opaSearchSettingsLinked",{controller:o})}},callUpdate:{value:function(){o.isValid()&&o.opaOnUpdate&&o.opaOnUpdate({settings:o.settings})}},isValid:{value:function(){return!e.opaSearchSettings||e.opaSearchSettings.$valid}}}),e.$watch("$ctrl.opaSettings",function(e,t){o.callUpdate()},!0)}angular.module("opa").controller("OpaSearchSettingsController",e),e.$inject=["$scope"]}(),function(){function e(n,i,e){var l=this;Object.defineProperties(l,{isOpened:{value:!1,writable:!0},toggleActions:{value:function(){var e=n[0].querySelector(".opa-actions-wrapper");if(l.isOpened=!l.isOpened,l.isOpened){var t,o=n.find("ul")[0],a=i.getComputedStyle(o);t=(t=parseFloat(a.getPropertyValue("height")||a.height))||o.offsetHeight,e.style.height=t+"px"}else e.style.height="0px"}},handleActionKeypress:{value:function(e,t){13===e.keyCode&&t.action(t)}}})}angular.module("opa").controller("OpaActionsButtonController",e),e.$inject=["$element","$window","$document"]}(),function(){function e(){var t=this;return Object.defineProperties(this,{options:{value:{}},setOptions:{value:function(e){e.closeLabel&&(t.options.closeLabel=e.closeLabel),e.closeAriaLabel&&(t.options.closeAriaLabel=e.closeAriaLabel)}},getOptions:{value:function(){return t.options}}}),{getOptions:this.getOptions,setOptions:this.setOptions}}angular.module("opa").factory("opaInfoConfiguration",e),e.$inject=[]}(),function(){function e(){}angular.module("opa").controller("OpaInfoButtonController",e),e.$inject=[]}(),angular.module("opa").controller("OpaMediaContainerController",function(){var t=this;Object.defineProperties(t,{onClick:{value:function(){t.opaEdit()}},onRemove:{value:function(e){e.stopImmediatePropagation(),t.opaRemove()}}})}),function(){function e(t){var o=this;Object.defineProperties(o,{isChecked:{value:!1,writable:!0},$onChanges:{value:function(e){Object.prototype.hasOwnProperty.call(e,"opaChecked")&&(o.isChecked=o.opaChecked),Object.prototype.hasOwnProperty.call(e,"opaFocus")&&!0===o.opaFocus&&t.find("md-checkbox")[0].focus()}},updateSelect:{value:function(){o.isChecked?o.selectCtrl.check(o.opaMedia):o.selectCtrl.uncheck(o.opaMedia)}},onBlur:{value:function(){o.opaBlur()}}})}angular.module("opa").controller("OpaMediaOptionController",e),e.$inject=["$element"]}(),function(){function e(a){var o,n=this;Object.defineProperties(n,{selection:{value:[],writable:!0},multiple:{value:!1,writable:!0},checkboxesStates:{value:[],writable:!0},focusStates:{value:[],writable:!0},keepFocus:{value:!1,writable:!0},isInitialized:{value:!1,writable:!0},$onInit:{value:function(){n.multiple=n.opaMultiple||Array.isArray(n.ngModel),n.ngModel&&(n.selection=n.multiple?n.ngModel:[n.ngModel]),n.setCheckboxesStates(),n.isInitialized=!0}},$onChanges:{value:function(e){Object.prototype.hasOwnProperty.call(e,"opaMedias")&&n.isInitialized&&(n.setCheckboxesStates(),n.setFocusStates())}},check:{value:function(e){if(o=n.opaMedias.indexOf(e),n.multiple)-1===n.selection.indexOf(e.id)&&(n.selection.push(e.id),n.ngModel=n.selection,n.checkboxesStates[o]=!0);else{n.selection=[e.id],n.ngModel=e.id;for(var t=0;t=n.focusStates.length?t=0:t<0&&(t=n.focusStates.length-1),t===o)return;n.keepFocus=!0,n.focusStates[o]=!1,n.focusStates[t]=!0}}},onBlur:{value:function(){if(n.keepFocus)n.keepFocus=!1;else{var e=n.focusStates.indexOf(!0);-1!==e&&(n.focusStates[e]=!1),a.children().removeClass("opa-focused")}}}})}angular.module("opa").controller("OpaMediaSelectController",e),e.$inject=["$element"]}(),function(){function e(){Object.defineProperties(this,{handleItemKeypress:{value:function(e,t){13===e.keyCode&&t.action(t)}}})}angular.module("opa").controller("OpaNavController",e),e.$inject=[]}(),function(){function e(e,t){var a,n,i,l=this,o=e.controller("ngModel"),r=e.controller("mdInputContainer"),s=-1,u=!1;function c(){l.opaAvailableTags=void 0===l.opaAvailableTags?null:l.opaAvailableTags}function p(){if(!l.opaAvailableTags)return angular.copy(l.tags);var o=[];return l.tags.forEach(function(e){for(var t=0;t=l.autoCompleteValues.length||-1==o&&s<=0?(s=-1,i[0].focus()):(s+=o,n[0].querySelectorAll("li")[s].focus()),d(e)}else 13===e.keyCode&&t&&(l.addTag(t),d(e))}},handleInputKeys:{value:function(e){13===e.keyCode?(l.addTag(l.tag),d(e)):9===e.keyCode?l.isAutoCompleteDisplayed=!1:l.autoCompleteValues.length&&(40===e.keyCode?n[s=0].querySelector("li").focus():38===e.keyCode&&(s=l.autoCompleteValues.length-1,n[0].querySelectorAll("li")[s].focus()),38!==e.keyCode&&40!==e.keyCode||(d(e),n.off("keydown"),n.on("keydown",l.handleAutoCompleteKeys)))}},addTag:{value:function(e){if(!l.opaAvailableTags&&e&&-1===l.tags.indexOf(e))return l.tag="",l.tags.push(e),o.$setViewValue(p()),void o.$validate();if(l.opaAvailableTags)for(var t=0;t

check_circle{{'DASHBOARD.ABOUT.UP_TO_DATE' | opaTranslate}}new_releases{{'DASHBOARD.ABOUT.NEED_UPGRADE' | opaTranslate}}

" + ); + + + $templateCache.put('opa-dashboard.html', + "
" + ); + + + $templateCache.put('opa-promotedVideos.html', + "
view_quilt
" + ); + + + $templateCache.put('opa-liveSettings.html', + "

{{$ctrl.liveSwitchMessage | opaTranslate}}
" + ); + + + $templateCache.put('opa-searchSettings.html', + "

" + ); + + + $templateCache.put('opa-settings.html', + "
settings
" + ); + + + $templateCache.put('opa-actionsButton.html', + "
" + ); + + + $templateCache.put('opa-info.html', + "

" + ); + + + $templateCache.put('opa-infoButton.html', + "info{{$ctrl.opaHelp}}" + ); + + + $templateCache.put('opa-mediaContainer.html', + "
close
" + ); + + + $templateCache.put('opa-mediaLibrary.html', + "
search
" + ); + + + $templateCache.put('opa-mediaLibraryDialog.html', + "

cancel
" + ); + + + $templateCache.put('opa-mediaOption.html', + "
" + ); + + + $templateCache.put('opa-mediaSelect.html', + "
" + ); + + + $templateCache.put('opa-nav.html', + "" + ); + + + $templateCache.put('opa-notification.html', + "
" + ); + + + $templateCache.put('opa-tags.html', + "
" + ); + + + $templateCache.put('opa-toolbar.html', + "

" + ); + +}]); diff --git a/assets/be/views/index.html b/assets/be/views/index.html new file mode 100644 index 0000000..3749ea7 --- /dev/null +++ b/assets/be/views/index.html @@ -0,0 +1,89 @@ + +{{=[[ ]]=}} + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..b3b929f --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1 @@ +li{list-style:none}.container{width:100%;margin:0 auto;-moz-transition:width .45s ease 0s;-o-transition:width .45s ease 0s;-webkit-transition:width .45s ease;-webkit-transition-delay:0s;transition:width .45s ease 0s}@media all and (min-width: 37.5em) and (max-width: 59.99em){.container{width:600px}}@media all and (min-width: 60em) and (max-width: 79.99em){.container{width:960px}}@media all and (min-width: 80em){.container{width:1280px}}.container .layout-margin{margin:0px}md-pagination-wrapper{position:relative;margin:auto}md-grid-list md-grid-tile{-moz-transition:all .45s ease-out 0s,box-shadow .1s ease-out 0s;-o-transition:all .45s ease-out 0s,box-shadow .1s ease-out 0s;-webkit-transition:all .45s ease-out,box-shadow .1s ease-out;-webkit-transition-delay:0s,0s;transition:all .45s ease-out 0s,box-shadow .1s ease-out 0s;overflow:hidden}md-grid-list md-grid-tile .play{position:absolute;top:0;display:inline-flex;height:100%;width:100%;font-size:48px;text-align:center;background-color:transparent;-moz-transition:all .1s ease-out 0s;-o-transition:all .1s ease-out 0s;-webkit-transition:all .1s ease-out;-webkit-transition-delay:0s;transition:all .1s ease-out 0s}md-grid-list md-grid-tile .play md-icon{opacity:0;display:block;width:80px;height:80px;font-size:80px;color:white;-moz-transition:opacity .1s ease-out 0s;-o-transition:opacity .1s ease-out 0s;-webkit-transition:opacity .1s ease-out;-webkit-transition-delay:0s;transition:opacity .1s ease-out 0s}md-grid-list md-grid-tile .details{padding:0 10px}md-grid-list md-grid-tile .tile-layout{height:100%;width:100%}md-grid-list md-grid-tile .thumbnail{position:relative;overflow:hidden;display:block;width:100%}md-grid-list md-grid-tile img{display:block;width:100%;top:0}md-grid-list md-grid-tile md-grid-tile-footer{height:auto;padding:3px 10px 5px 10px;line-height:14px;color:black;background-color:rgba(255,255,255,0.86)}md-grid-list md-grid-tile md-grid-tile-footer figcaption{position:relative;width:100%}md-grid-list md-grid-tile md-grid-tile-footer figcaption .title{overflow:hidden;max-height:30px;line-height:15px}md-grid-list md-grid-tile md-grid-tile-footer figcaption .info{margin-top:4px}md-grid-list md-grid-tile md-grid-tile-footer .nb-views{text-align:right}@media all and (min-width: 60em) and (max-width: 79.99em){md-dialog.dialog-video{width:900px}}@media all and (min-width: 80em){md-dialog.dialog-video{width:1024px}}md-dialog.dialog-video.md-dialog-fullscreen{min-width:100%}md-dialog.dialog-video md-dialog-content{width:100%;max-width:900px;max-height:900px;margin:auto}@media all and (min-width: 80em){md-dialog.dialog-video md-dialog-content{max-width:none}}md-dialog.dialog-video .md-dialog-content.video-info{padding-top:0;padding-bottom:0}md-dialog.dialog-video .md-dialog-content.player-container{padding-bottom:0}md-dialog.dialog-video md-toolbar{min-height:40px}md-dialog.dialog-video .md-toolbar-tools{overflow:hidden;max-height:45px;height:45px;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start}md-dialog.dialog-video .md-toolbar-tools h2{width:100%;line-height:40px}.player-container :focus{outline:none}.video-infos{margin:1em 0}.video-infos label{text-transform:uppercase;font-weight:700;padding-right:7px}.video-infos .subtitle-infos{color:#757575;border-color:#757575}.video-infos .subtitle-infos>span:not(:last-child){padding-right:7px}.video-infos .subtitle-infos>span:not(:first-child){padding-left:7px;border-left:1px solid;border-color:inherit}.video-infos .share-code{margin:10px 0;text-align:right}.video-infos .share-code>div{margin:7px 0}.video-infos .toggle-btn>md-icon{transition:transform linear 0.25s}.video-infos .toggle-btn.closed>md-icon{transform:rotate(180deg)}.video-infos p{margin:1em 0}.video-full-infos label{color:#bdbdbd}.opl-player{line-height:initial}.collapse{overflow:hidden}.collapse.ng-hide-add,.collapse.ng-hide-remove{-moz-transition:all .45s ease 0s;-o-transition:all .45s ease 0s;-webkit-transition:all .45s ease;-webkit-transition-delay:0s;transition:all .45s ease 0s}.collapse.ng-hide-add{max-height:500px;opacity:1;transform:translateY(0em)}.collapse.ng-hide-add-active{max-height:0;opacity:0;transform:translateY(-2em)}.collapse.ng-hide-remove{max-height:0;opacity:0;transform:translateY(-2em)}.collapse.ng-hide-remove-active{max-height:500px;opacity:1;transform:translateY(0em)}.search .md-toolbar-tools{height:40px}.search .advanced-search{min-height:40px;cursor:pointer;outline:none}.search .between-label{text-align:center}.search .cancel-button{background-color:#9e9e9e}.search .cancel-button.md-button.md-fab:not([disabled]):hover{background-color:#616161}.search md-grid-list md-grid-tile{cursor:auto;min-width:470px;overflow:hidden}.search md-grid-list md-grid-tile .thumbnail{cursor:pointer;margin:0;width:256px;height:144px}.search md-grid-list md-grid-tile .thumbnail:hover,.search md-grid-list md-grid-tile .thumbnail:focus{outline:none;box-shadow:0px 0px 4px rgba(0,0,0,0.25)}.search md-grid-list md-grid-tile .thumbnail:hover .play,.search md-grid-list md-grid-tile .thumbnail:focus .play{z-index:1;background-color:rgba(0,0,0,0.2)}.search md-grid-list md-grid-tile .thumbnail:hover .play md-icon,.search md-grid-list md-grid-tile .thumbnail:focus .play md-icon{opacity:1}.search md-grid-list md-grid-tile .details .md-body-2{cursor:pointer;overflow:hidden;line-height:20px;padding-bottom:4px;max-height:44px}.search md-grid-list md-grid-tile .details .md-body-2:focus,.search md-grid-list md-grid-tile .details .md-body-2:hover{text-decoration:underline;outline:0}.search md-grid-list md-grid-tile .details .pois ul{background-color:#f5f5f5;margin:0;padding:4px;max-height:40px;overflow-y:auto}.search md-grid-list md-grid-tile .details .pois .time{cursor:pointer}.search md-grid-list md-grid-tile .details .pois .time:focus,.search md-grid-list md-grid-tile .details .pois .time:hover{text-decoration:underline;outline:0}.select-filter:not(.md-overflow) md-content{padding:0}#more-button-layout{margin-top:25px}.home md-grid-list md-grid-tile{cursor:pointer}.home md-grid-list md-grid-tile:hover{box-shadow:0px 0px 4px rgba(0,0,0,0.25)}.home md-grid-list md-grid-tile:hover .play{z-index:1;background-color:rgba(0,0,0,0.2)}.home md-grid-list md-grid-tile:hover .play md-icon{opacity:1}.home md-grid-list md-grid-tile .thumbnail{margin-bottom:7px}@media all and (max-width: 37.49em){.home md-grid-list md-grid-tile .thumbnail{max-height:286px}}@media all and (min-width: 37.5em) and (max-width: 59.99em){.home md-grid-list md-grid-tile .thumbnail{max-height:104px}}@media all and (min-width: 60em) and (max-width: 79.99em){.home md-grid-list md-grid-tile .thumbnail{max-height:122px}}@media all and (min-width: 80em){.home md-grid-list md-grid-tile .thumbnail{max-height:167px}}.home md-grid-list md-grid-tile .details>div:first-child{overflow:hidden;line-height:13px}@media all and (max-width: 37.49em){.home md-grid-list md-grid-tile .details>div:first-child{height:26px;max-height:26px}}@media all and (min-width: 37.5em) and (max-width: 59.99em){.home md-grid-list md-grid-tile .details>div:first-child{height:26px;max-height:26px}}@media all and (min-width: 60em) and (max-width: 79.99em){.home md-grid-list md-grid-tile .details>div:first-child{height:26px;max-height:26px}}@media all and (min-width: 80em){.home md-grid-list md-grid-tile .details>div:first-child{height:41px;max-height:41px}}@media all and (max-width: 37.49em){header{position:fixed;z-index:50;top:0;width:100%;background-color:#fff}}header nav{background-color:#f5f5f5}header #logo{text-decoration:none}header .md-nav-bar{border:0}.header-spacing{height:160px}.user-menu,.main-dropdown-menu{padding:0}footer{position:fixed;z-index:50;width:100%;margin-top:25px;bottom:0}footer a.lowercase-button{margin:0;padding:6px 16px}footer ul{padding:0}footer nav{background-color:#f5f5f5}.footer-spacing{height:64px;margin-top:25px}.lowercase-button{text-transform:none}.text-button{padding:0 25px}.login-panel>.content{width:175px;margin-top:10px;padding:10px;border-radius:2px}.login-form .cas-button{color:#ffffff;background-color:#74c162}.login-form .cas-button:not([disabled]):hover{color:#ffffff;background-color:#4a923a}.login-form p{text-align:center}.login-form .login-field,.login-form .password-field{margin:5px 0;font-size:12px}.login-form .submit-button{text-align:center}.login-form .error{color:#dd2c00}.login-dialog{background-color:#fafafa}.login-dialog p{margin:0}.login-page h1{margin-bottom:0;text-align:center}.login-page .login-form-wrapper{width:300px;margin:0 auto}@media all and (max-width: 37.49em){.login-page .login-form-wrapper{width:100%}}.op-live .op-live-player{position:relative;width:100%;padding-top:56.25%;overflow:hidden}.op-live .op-live-player>div{position:absolute;left:0;right:0;top:0;bottom:0}.op-live .op-live-player iframe{width:100%;height:100%;border:0}.md-toolbar-tools{font-size:16px}md-divider.ng-hide-add,md-divider.ng-hide-remove{-moz-transition:opacity .45s ease 0s;-o-transition:opacity .45s ease 0s;-webkit-transition:opacity .45s ease;-webkit-transition-delay:0s;transition:opacity .45s ease 0s}md-divider.ng-hide-add{opacity:1}md-divider.ng-hide-add-active{opacity:0}md-divider.ng-hide-remove{opacity:0}md-divider.ng-hide-remove-active{opacity:1}.reverse{transform:scale(1, -1)}md-input-container .md-errors-spacer{min-height:auto}md-ink-bar{height:3px} diff --git a/assets/js/openveo-portal-lib.js b/assets/js/openveo-portal-lib.js new file mode 100644 index 0000000..a140e01 --- /dev/null +++ b/assets/js/openveo-portal-lib.js @@ -0,0 +1 @@ +"use strict";angular.module("ov.i18n",["ov.locale"]);;"use strict";!function(){function t(o){return function(t,n){if(t){for(var i=t.split("."),r=o,e=0;e',n.shareOpen=!n.shareOpen}}],n.showFullInfos=!1,n.toggleFullInfosLabel="UI.MORE",n.toggleFullInfos=function(){n.showFullInfos=!n.showFullInfos,n.toggleFullInfosLabel=n.showFullInfos?"UI.LESS":"UI.MORE"};var u,p=document.getElementById("openveo-player");angular.element(p).on("needPoiConversion",function(e,t){o.post(c+"videos/"+n.video.id+"/poi/convert",{duration:t}).then(function(e){n.video=e.data.entity})}),angular.element(p).on("durationChange",function(e,t){var o;o=function(){u=t},a(function(){var e=n.$root.$$phase;"$apply"===e||"$digest"===e?o():n.$apply(o)},1)}),angular.element(p).on("play",function(e){t.pageTrack(i.path()),t.eventTrack("play",{value:n.video.id}),r.increaseVideoView(n.video.id,u)}),angular.element(p).on("error",function(e,t){n.$emit("setAlert","danger",t&&t.message,8e3)}),n.$watch("vctl.dialIsOpen",function(e,t){!0===e&&(n.shareOpen=!1)}),n.trustedHTML=function(e){return s.trustAsHtml(e)}}angular.module("ov.portal").controller("VideoController",e),e.$inject=["$scope","$http","$locale","$timeout","$location","$analytics","videoService","searchService","$sce","webServiceBasePath"]}();;"use strict";!function(){function e(e,o){e.video=o.data.entity,e.playerType="youtube"==e.video.type?"youtube":"html"}angular.module("ov.portal").controller("VideoPageController",e),e.$inject=["$scope","video"]}();;"use strict";!function(t){function e(t,e){t.closeToast=function(){e.hide()}}function v(e,t,o,n,i){e.video=o,e.startTime=n,e.playerType="youtube"==o.type?"youtube":"html",e.dialogIsFull=i("sm")||i("xs"),e.hide=function(){t.hide()},e.cancel=function(){t.cancel()},e.$watch(function(){return i("sm")||i("xs")},function(t){e.dialogIsFull=!0===t})}function o(o,a,t,l,n,s,i,r,c,e,u,h,g,d){var p=this,m=r.search(),f=openVeoPortalSettings.authenticationStrategies;this.currentNavItem=null,this.isLoggingOut=!1,a.context={keepContext:!1},a.isIframe=m.iframe||!1,a.hideDetailVideo=m.hidedetail||!1,a.links=0===Object.keys(t).length&&JSON.stringify(t)===JSON.stringify({})?null:t,a.page={title:"",path:"",selectedTab:-1},a.user=openVeoPortalSettings.user||g.getUserInfo()||null,a.isAuth=!!openVeoPortalSettings.authenticationMechanisms.length,a.isAdmin=a.user&&a.user.id===openVeoPortalSettings.superAdminId,a.isLive=openVeoPortalSettings.live,a.theme=openVeoPortalSettings.theme,a.useDialog=openVeoPortalSettings.useDialog,a.$on("$routeChangeStart",function(t,e){"/login"!==r.path()||!a.user&&a.isAuth||r.path("/")}),a.$on("$routeChangeSuccess",function(t,e){a.page.title=o.current&&o.current.title||a.title,a.page.path=r.path(),a.page.selectedTab=-1,"/"===a.page.path?p.currentNavItem="home":"/search"===a.page.path?p.currentNavItem="search":"/live"===a.page.path?p.currentNavItem="live":p.currentNavItem=null,u.pageTrack(a.page.path)}),a.$on("$routeChangeError",function(t,e,o,n){n&&n.redirect?(r.path(n.redirect),n.needAuth&&a.showToast(c("translate")("ERROR.FORBIDDEN"))):(r.path("/"),"500"!=n.status&&"502"!=n.status||a.showToast(c("translate")("ERROR.SERVER")))}),a.openVideo=function(t,e,o){if(o&&r.search("t",o),a.useDialog){a.context.keepContext=!1;var n=r.path(),i=r.search();a.dialogUseFullScreen=s("sm")||s("xs"),a.dialog={controller:v,templateUrl:"views/dialogVideo.html",parent:angular.element(document.body),targetEvent:t,locals:{video:null},clickOutsideToClose:!0,fullscreen:a.dialogUseFullScreen},h.loadVideo(e.id).then(function(t){t.data.entity?(r.path("/video/"+e.id,!1).search({}),a.dialog.locals.video=t.data.entity,a.dialog.locals.startTime=o,l.show(a.dialog).finally(function(){a.context.keepContext=!0,r.path(n,!1).search(i)}).catch(angular.noop)):t.data.needAuth?(r.path("/login"),a.showToast(c("translate")("ERROR.FORBIDDEN"))):r.path("/")},function(t){h.cacheClear(),r.path("/"),"500"!=t.status&&"502"!=t.status||a.showToast(c("translate")("ERROR.SERVER"))}),a.$watch(function(){return s("sm")||s("xs")},function(t){a.dialogUseFullScreen=!0===t})}else r.path("/video/"+e.id,!0)},a.onTabSelected=function(t){"/search"==t?(r.search("t",null),r.path(t)):r.path(t).search({})},a.showToast=function(t){var e=n.simple().textContent(t).position("top center").hideDelay(3e3);n.show(e)},a.logout=function(){g.logout().then(function(){g.setUserInfo(),r.path("/")})},this.showLoginDialog=function(){var t=i.newPanelPosition().relativeTo(".log-in-button").addPanelPosition(i.xPosition.CENTER,i.yPosition.CENTER),e=i.newPanelAnimation().duration(50).openFrom(".log-in-button").closeTo(".log-in-button").withAnimation(i.animation.SCALE),o={id:"loginDialog",attachTo:angular.element(document.body),controller:"LoginFormController",controllerAs:"loginCtrl",templateUrl:"views/dialogLogin.html",clickOutsideToClose:!0,escapeToClose:!0,panelClass:"login-panel",position:t,animation:e};i.open(o)},this.logout=function(){var t=this;a.user&&(u.eventTrack("Logout",{}),a.user.origin===f.CAS?e.location.href="/be"+d+"logout":(this.isLoggingOut=!0,g.logout().then(function(){t.isLoggingOut=!1,a.user=null,g.setUserInfo(),e.location.href="/"})))},this.goToBackOffice=function(){e.location.href="/be"}}function n(n){return{restrict:"A",link:function(e,o,t){t.$observe("ngSrc",function(t){n.get(t).then(function(){}).catch(function(){o.attr("src","/themes/"+e.theme+"/images/placeholder.jpg")})})}}}t.controller("MainController",o),t.controller("DialogController",v),t.controller("ToastController",e),o.$inject=["$route","$scope","links","$mdDialog","$mdToast","$mdMedia","$mdPanel","$location","$filter","$window","$analytics","searchService","authenticationService","webServiceBasePath"],v.$inject=["$scope","$mdDialog","video","startTime","$mdMedia"],e.$inject=["$scope","$mdToast"],n.$inject=["$http"],t.directive("checkImage",n)}(angular.module("ov.portal"));;"use strict";!function(){function t(o,t,i){var e,n,r,a={};return{cacheClear:function(){a={},e={},n={},r={}},loadVideo:function(e){return!a[e]||a[e].needAuth?o.get(i+"videos/"+e).then(function(t){return a[e]=t.data.entity,t}):t.when({data:{entity:a[e]}})},getFilters:function(){return e&&Object.keys(e).length?t.when({data:e}):o.get(i+"filters").then(function(t){return e=t.data,t})},getCategories:function(){return n&&Object.keys(n).length?t.when({data:n}):o.get(i+"categories").then(function(t){return n=t.data,t})},getCategoryName:function(e){return e?this.getCategories().then(function(t){return t.data[e]}):t.reject(new Error("Category id not defined"))},getPromotedVideos:function(){return r&&Object.keys(r).length?t.when({data:r}):o.get(i+"videos/promoted",{params:{auto:!0}}).then(function(t){return r=t.data,t})},search:function(t,e,n){var r={};n&&(r.timeout=n);var a={filter:t,pagination:e};return o.post(i+"videos",a,r)}}}angular.module("ov.portal").factory("searchService",t),t.$inject=["$http","$q","webServiceBasePath"]}();;"use strict";!function(){function e(h,r,e,a,t,n,i,o){var c,B=this,s=!1,l=e.defer();function u(e){return e instanceof Date?e:new Date(Number(e))}function d(e,t){return"dateTime"===e.type?u(t):"boolean"===e.type?!!Number(t):t}function g(e){return function(e){var t,r,a={};if(a.sortBy=e.sortBy?"views":"date",a.sortOrder=e.sortOrder?"asc":"desc",e.dateStart&&(a.dateStart=e.dateStart.getTime()),e.dateEnd){var n=new Date(e.dateEnd);n.setDate(n.getDate()+1),a.dateEnd=n.getTime()}for(var i in e.query&&(a.query=e.query),a.searchInPois=Number(e.searchInPois),e)for(var s=0;s]*>)|(\n)|(\r\n)|(\u00a0)/gi,function(e,t,r,a,n){return t?"":r||a||n?" ":void 0}).replace(/ +/gi," ").trim()}function f(e){c=o("gt-md");var s=h.search&&h.search.query;return e.forEach(function(e){var t,r,a=c?50:45,n=c?40:15;if(e.title&&s&&(t=B.emphasisQuery(e.title,s,90)),e.title&&!t&&(t=B.emphasisQuery(e.title,I(e.title).split(" ")[0],90,!0)),e.pois.length?e.pois.forEach(function(e){e.name=B.emphasisQuery(e.rawName,s,n),e.description=B.emphasisQuery(e.rawDescription,s,n)}):a=c?200:90,e.rawDescription&&s&&(r=B.emphasisQuery(e.rawDescription,s,a)),e.rawLeadParagraph&&!r){var i=I(e.rawLeadParagraph).split(" ")[0];r=B.emphasisQuery(e.rawLeadParagraph,i,a,!0)}e.title=t,e.description=r}),e}h.videos=[],h.filters=n.data||[],h.pagination={size:0,page:0,pages:0,limit:12},h.showAdvancedSearch=!1,h.isLoading=!0,B.emphasisQuery=function(e,t,r,a,n,i){if(!e||!t)return null;var s,o,h=I(e),c=h.split(" ").length;n||0===n||(n=c),i||0===i||(i=c),s=0===n?"(?: +)":"(?:(?:[^ ]* +){1,"+(n=Math.min(n,c))+"})",o=0===i?"(?: +)":"(?:(?: +[^ ]*){1,"+(i=Math.min(i,c))+"})";var l=t.replace(/(\?|\||\/|\(|\)|\{|\}|\[|\]|\\)/gi,"\\$1"),u=new RegExp("("+s+"|^)([^ ]*)("+l+"s?)([^ ]*)("+o+"|$)","i"),d=h.match(u);if(!d)return null;var g=d[3],p=d[1],f=d[5],m=d[2],v=d[4],y=0"+g+"",S=y.length+p.trimStart().length+m.length+g.length+v.length+f.trimEnd().length+w.length,E=y+p.trimStart()+m+$+v+f.trimEnd()+w;if(r&&S