@afp/data-driven-video-ui
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -1,2 +0,2 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["dataDrivenVideoUi"]=e(require("vue")):t["dataDrivenVideoUi"]=e(t["Vue"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,w){c(n,e,g);var _,x,$,S=function(t){if(!d&&t in k)return k[t];switch(t){case h:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",j=y==v,L=!1,k=t.prototype,M=k[f]||k[p]||y&&k[y],C=M||S(y),A=y?j?S("entries"):C:void 0,D="Array"==e&&k.entries||M;if(D&&($=l(D.call(new t)),$!==Object.prototype&&$.next&&(u($,O,!0),r||"function"==typeof $[f]||a($,f,m))),j&&M&&M.name!==v&&(L=!0,C=function(){return M.call(this)}),r&&!w||!d&&!L&&k[f]||a(k,f,C),s[e]=C,s[O]=m,y)if(_={values:j?C:S(v),keys:b?C:S(h),entries:A},w)for(x in _)x in k||o(k,x,_[x]);else i(i.P+i.F*(d||L),e,_);return _}},"0a49":function(t,e,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,l=4==t,f=6==t,d=5==t||f,p=e||s;return function(e,s,h){for(var v,m,g=o(e),y=i(g),b=r(s,h,3),w=a(y.length),_=0,x=n?p(e,w):c?p(e,0):void 0;w>_;_++)if((d||_ in y)&&(v=y[_],m=b(v,_,g),t))if(n)x[_]=m;else if(m)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(l)return!1;return f?-1:u||l?l:x}}},"0bed":function(t,e,n){},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,c=0;while(s>c)r.f(t,n=a[c++],e[n]);return t}},"1d9f":function(t,e,n){"use strict";var r=n("97ab"),i=n.n(r);i.a},"1eb2":function(t,e,n){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]))},"214f":function(t,e,n){"use strict";var r=n("32e9"),i=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");t.exports=function(t,e,n){var c=s(t),u=n(a,c,""[t]),l=u[0],f=u[1];o(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,l),r(RegExp.prototype,c,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"416b":function(t,e,n){"use strict";var r=n("9b8f"),i=n.n(r);i.a},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"497a":function(t,e,n){"use strict";var r=n("4caa"),i=n.n(r);i.a},"49d1":function(t,e,n){"use strict";var r=n("53bf"),i=n.n(r);i.a},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4caa":function(t,e,n){},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53bf":function(t,e,n){},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",o="week",a="month",s="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},d={padStart:f,padZoneStr:function(t){var e=Math.abs(t),n=Math.floor(e/60),r=e%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},monthDiff:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months"),i=e-r<0,o=t.clone().add(n+(i?-1:1),"months");return Number(-(n+(e-r)/(i?r-o:o-r)))},absFloor:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},prettyUnit:function(c){return{M:a,y:s,w:o,d:i,h:r,m:n,s:e,ms:t}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(t){return void 0===t}},p="en",h={};h[p]=l;var v=function(t){return t instanceof w},m=function(t,e,n){var r;if(!t)return null;if("string"==typeof t)h[t]&&(r=t),e&&(h[t]=e,r=t);else{var i=t.name;h[i]=t,r=i}return n||(p=r),r},g=function(t,e){if(v(t))return t.clone();var n=e||{};return n.date=t,new w(n)},y=function(t,e){return g(t,{locale:e.$L})},b=d;b.parseLocale=m,b.isDayjs=v,b.wrapper=y;var w=function(){function l(t){this.parse(t)}var f=l.prototype;return f.parse=function(t){var e,n;this.$d=null===(e=t.date)?new Date(NaN):b.isUndefined(e)?new Date:e instanceof Date?e:"string"==typeof e&&/.*[^Z]$/i.test(e)&&(n=e.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(e),this.init(t)},f.init=function(t){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(t.locale,null,!0)||p},f.$utils=function(){return b},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.$compare=function(t){return this.valueOf()-g(t).valueOf()},f.isSame=function(t){return 0===this.$compare(t)},f.isBefore=function(t){return this.$compare(t)<0},f.isAfter=function(t){return this.$compare(t)>0},f.year=function(){return this.$y},f.month=function(){return this.$M},f.day=function(){return this.$W},f.date=function(){return this.$D},f.hour=function(){return this.$H},f.minute=function(){return this.$m},f.second=function(){return this.$s},f.millisecond=function(){return this.$ms},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,c){var u=this,l=!!b.isUndefined(c)||c,f=function(t,e){var n=y(new Date(u.$y,e,t),u);return l?n:n.endOf(i)},d=function(t,e){return y(u.toDate()[t].apply(u.toDate(),l?[0,0,0,0].slice(e):[23,59,59,999].slice(e)),u)};switch(b.prettyUnit(t)){case s:return l?f(1,0):f(31,11);case a:return l?f(1,this.$M):f(0,this.$M+1);case o:return f(l?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case i:case"date":return d("setHours",0);case r:return d("setMinutes",1);case n:return d("setSeconds",2);case e:return d("setMilliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(o,c){switch(b.prettyUnit(o)){case i:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case s:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case e:this.$d.setSeconds(c);break;case t:this.$d.setMilliseconds(c)}return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.add=function(t,c){var u=this;t=Number(t);var l,f=b.prettyUnit(c),d=function(e,n){var r=u.set("date",1).set(e,n+t);return r.set("date",Math.min(u.$D,r.daysInMonth()))};if(f===a)return d(a,this.$M);if(f===s)return d(s,this.$y);switch(f){case n:l=6e4;break;case r:l=36e5;break;case i:l=864e5;break;case o:l=6048e5;break;case e:l=1e3;break;default:l=1}var p=this.valueOf()+t*l;return y(p,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this,n=t||"YYYY-MM-DDTHH:mm:ssZ",r=b.padZoneStr(this.$d.getTimezoneOffset()),i=this.$locale(),o=i.weekdays,a=i.months,s=function(t,e,n,r){return t&&t[e]||n[e].substr(0,r)};return n.replace(u,function(t){if(t.indexOf("[")>-1)return t.replace(/\[|\]/g,"");switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return String(e.$y);case"M":return String(e.$M+1);case"MM":return b.padStart(e.$M+1,2,"0");case"MMM":return s(i.monthsShort,e.$M,a,3);case"MMMM":return a[e.$M];case"D":return String(e.$D);case"DD":return b.padStart(e.$D,2,"0");case"d":return String(e.$W);case"dd":return s(i.weekdaysMin,e.$W,o,2);case"ddd":return s(i.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(e.$H);case"HH":return b.padStart(e.$H,2,"0");case"h":case"hh":return 0===e.$H?12:b.padStart(e.$H<13?e.$H:e.$H-12,"hh"===t?2:1,"0");case"a":return e.$H<12?"am":"pm";case"A":return e.$H<12?"AM":"PM";case"m":return String(e.$m);case"mm":return b.padStart(e.$m,2,"0");case"s":return String(e.$s);case"ss":return b.padStart(e.$s,2,"0");case"SSS":return b.padStart(e.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},f.diff=function(t,c,u){var l=b.prettyUnit(c),f=g(t),d=this-f,p=b.monthDiff(this,f);switch(l){case s:p/=12;break;case a:break;case"quarter":p/=3;break;case o:p=d/6048e5;break;case i:p=d/864e5;break;case r:p=d/36e5;break;case n:p=d/6e4;break;case e:p=d/1e3;break;default:p=d}return u?p:b.absFloor(p)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return h[this.$L]},f.locale=function(t,e){var n=this.clone();return n.$L=m(t,e,!0),n},f.clone=function(){return y(this.toDate(),this)},f.toDate=function(){return new Date(this.$d)},f.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},f.toJSON=function(){return this.toISOString()},f.toISOString=function(){return this.toDate().toISOString()},f.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},f.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(t,e){return t(e,w,g),g},g.locale=m,g.isDayjs=v,g.en=h[p],g})},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(t,e,n){var l,f,d,p,h=t&u.F,v=t&u.G,m=t&u.S,g=t&u.P,y=t&u.B,b=v?r:m?r[e]||(r[e]={}):(r[e]||{})[c],w=v?i:i[e]||(i[e]={}),_=w[c]||(w[c]={});for(l in v&&(n=e),n)f=!h&&b&&void 0!==b[l],d=(f?b:n)[l],p=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,t&u.U),w[l]!=d&&o(w,l,p),g&&_[l]!=d&&(_[l]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6e9d":function(t,e,n){},7333:function(t,e,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;t.exports=!c||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){var n=a(t),c=arguments.length,u=1,l=i.f,f=o.f;while(c>u){var d,p=s(arguments[u++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;while(v>m)f.call(p,d=h[m++])&&(n[d]=p[d])}return n}:c},"73ee":function(t,e,n){},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84ed":function(t,e,n){"use strict";var r=n("0bed"),i=n.n(r);i.a},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(e,n){e.exports=t},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{l=e.regeneratorRuntime=u?t.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(D([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=S.prototype=x.prototype=Object.create(m);$.prototype=b.constructor=S,S.constructor=$,S[c]=$.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===$||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},O(j.prototype),j.prototype[s]=function(){return this},l.AsyncIterator=j,l.async=function(t,e,n,r){var i=new j(w(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=D,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:D(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=L(t,n,a),o}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function $(){}function S(){}function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function j(t){function e(n,r,o,a){var s=_(t[n],t,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(u).then(function(t){c.value=t,o(c)},a)}a(s.arg)}var n;function r(t,r){function i(){return new Promise(function(n,i){e(t,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function L(t,e,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return E()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=_(t,e,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=_(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function D(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"97ab":function(t,e,n){},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9b8f":function(t,e,n){},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e28":function(t,e,n){},a481:function(t,e,n){n("214f")("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c=" ",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(t,e,n){var i={},s=o(function(){return!!a[t]()||c[t]()!=c}),u=i[t]=s?e(d):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var m,g=h[v],y=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[l]||s(w,l,d),w[f]||s(w,f,g),c[g]=d,y))for(m in r)w[m]||o(w,m,r[m],!0)}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),l=o(a,u);if(t&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=r[p],v=h,m=h.prototype,g=o(n("2aeb")(m))==p,y="trim"in String.prototype,b=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():d(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,c=e.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>i)return NaN;return parseInt(c,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(g?c(function(){m.valueOf.call(n)}):o(n)!=p)?a(new v(b(e)),n,h):b(e)};for(var w,_=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(h,w)&&f(h,w,l(v,w));h.prototype=m,m.constructor=h,n("2aba")(r,p,h)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>c)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dee8:function(t,e,n){"use strict";var r=n("9e28"),i=n.n(r);i.a},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(t,e,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},e977:function(t,e,n){"use strict";var r=n("73ee"),i=n.n(r);i.a},ebf2:function(t,e,n){"use strict";var r=n("6e9d"),i=n.n(r);i.a},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fae3:function(t,e,n){"use strict";n.r(e);n("1eb2");var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"template"},[n("h1",[t._v("Template "),n("em",[t._v(t._s(t.templateName))])]),t.loading?n("p",[t._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview"),n("settingsForm",{attrs:{"specific-origin-model":t.specificOriginModel,"specific-translations-model":t.specificTranslationsModel,"locales-allowed":t.localesAllowed},on:{validate:t.validate}}),n("results",{directives:[{name:"show",rawName:"v-show",value:t.jobs.length>0,expression:"jobs.length > 0"}],attrs:{jobs:t.jobs}})],1)])},i=[];n("7514"),n("96cf");function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t,e){try{var n=o[t](e),a=n.value}catch(t){return void i(t)}n.done?r(a):Promise.resolve(a).then(s,c)}function s(t){a("next",t)}function c(t){a("throw",t)}s()})}}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"settingsForm"},[0!==t.specificOriginModel.length?n("div",{class:["block-setting",{"on-preview":t.isOnPreview(null)}]},[n("header",[n("h2",[t._v("Version Originale")]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(e){t.sendPreview()}}},[n("span",{staticClass:"UI-icon UI-play"})])]),t._l(t.specificOriginModel,function(e){return n("setting-form-item",{key:"settingOrigin_"+e.name,attrs:{type:e.type,name:e.type+"_"+e.name,label:e.label}},[n("setting-input",{attrs:{name:e.type+"_"+e.name,type:e.type,"default-value":e.value,focus:e.focus,placeholder:e.placeholder,validation:e.validation},model:{value:t.specific.origin[e.name],callback:function(n){t.$set(t.specific.origin,e.name,n)},expression:"specific.origin[setting.name]"}})],1)})],2):t._e(),n("select",{directives:[{name:"model",rawName:"v-model",value:t.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale",attrs:{disabled:Object.keys(t.specific.translations).length===t.localesAllowed.length},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.lastLocaleAdded=e.target.multiple?n:n[0]}}},[n("option",{attrs:{disabled:"",value:""}},[t._v("Ajouter une traduction")]),t._l(t.localesAllowed,function(e){return n("option",{key:"locale_"+e,attrs:{disabled:Object.keys(t.specific.translations).includes(e)},domProps:{value:e}},[t._v(t._s(e))])})],2),0!==Object.keys(t.specific.translations).length?n("div",t._l(Object.keys(t.specific.translations),function(e){return n("div",{key:"tr_"+e,class:["translation","block-setting",{"on-preview":t.isOnPreview(e)}]},[n("header",[n("h2",[t._v("Version "+t._s(e.toUpperCase()))]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){t.sendPreview(e)}}},[n("span",{staticClass:"UI-icon UI-play"})]),n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){t.removeLocale(e)}}},[n("span",{staticClass:"UI-icon UI-close"})])]),t._l(t.specificTranslationsModel,function(r){return n("setting-form-item",{key:"trs_"+e+"_"+r.name,attrs:{type:r.type,name:e+"_"+r.type+"_"+r.name,label:r.label}},[n("setting-input",{attrs:{name:e+"_"+r.name,type:r.type,"default-value":r.value},model:{value:t.specific.translations[e][r.name],callback:function(n){t.$set(t.specific.translations[e],r.name,n)},expression:"specific.translations[locale][setting.name]"}})],1)})],2)})):t._e(),0!==t.general.length?n("div",{staticClass:"general-setting block-setting"},[n("h2",[t._v("\n Configuration générale\n ")]),t._l(t.generalModel,function(e){return n("setting-form-item",{key:"setting_"+e.name,attrs:{name:e.type+"_"+e.name,type:e.type,label:e.label}},[n("setting-input",{attrs:{name:e.type+"_"+e.name,type:e.type,"default-value":e.value},model:{value:t.general[e.name],callback:function(n){t.$set(t.general,e.name,n)},expression:"general[setting.name]"}})],1)})],2):t._e(),0!==t.configs.length?n("div",{staticClass:"configs"},[n("h2",[t._v(t._s(t.configs.length)+" "+t._s(t.$tc("videos",t.configs.length))+" à générer")]),t._l(t.configs,function(e){return n("div",{key:"details_"+(e.specific.locale||"VO"),staticClass:"configs-details"},[n("span",[t._v(t._s(e.general.filename))]),e.specific.locale?n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){t.removeLocale(e.specific.locale)}}},[n("span",{staticClass:"UI-icon UI-close"})]):t._e()])}),n("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(e){t.validate()}}},[t._v("\n Valider "),n("span",{staticClass:"UI-icon UI-checked"})])])],2):t._e()])},s=[];n("a481");function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("f751");function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function l(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){return u(t)||l(t)||f()}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){c(t,e,n[e])})}return t}n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoWidth",m="videoHeight",g="fps",y="fileFormat",b="hd",w="codec",_="text",x="number",$="select",S="checkbox",O="textarea",j=[{type:_,name:h,label:"Titre",value:""},{type:x,name:v,label:"Largeur",value:1920},{type:x,name:m,label:"Hauteur",value:1080},{type:x,name:g,label:"Images par seconde",value:25},{type:$,name:y,label:"Format de fichier",value:["mov"]},{type:$,name:w,label:"Codec vidéo",value:["prores"]},{type:S,name:b,label:"Haute défition",value:!1}],L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["setting-form-item","for-"+t.type]},[n("label",{ref:"label",attrs:{for:t.name}},[t._v(t._s(t.label))]),t._t("default",null,{paddingLeft:t.paddingLeft})],2)},k=[],M={name:"SettingFormItem",data:function(){return{paddingLeft:0}},props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},C=M;n("1d9f");function A(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var D=A(C,L,k,!1,null,null,null);D.options.__file="SettingFormItem.vue";var E=D.exports,P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isSelect?n("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"setting-input",attrs:{id:t.name},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.value=e.target.multiple?n:n[0]}}},t._l(t.defaultValue,function(e){return n("option",{key:e},[t._v("\n "+t._s(e)+"\n ")])})):t.isTextArea?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"setting-input",attrs:{id:t.name,focus:t.focus},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):"checkbox"===t.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:t.paddingLeft+"px"},attrs:{id:t.name,autofocus:t.focus,placeholder:t.placeholder,type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var n=t.value,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);r.checked?a<0&&(t.value=n.concat([o])):a>-1&&(t.value=n.slice(0,a).concat(n.slice(a+1)))}else t.value=i}}}):"radio"===t.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:t.paddingLeft+"px"},attrs:{id:t.name,autofocus:t.focus,placeholder:t.placeholder,type:"radio"},domProps:{checked:t._q(t.value,null)},on:{change:function(e){t.value=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:t.paddingLeft+"px"},attrs:{id:t.name,autofocus:t.focus,placeholder:t.placeholder,type:t.type.toLowerCase()},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})},T=[],I=(n("c5f6"),{name:"SettingInput",props:{name:{type:String,required:!0},type:{type:String,required:!0},defaultValue:{type:[String,Number,Array,Boolean],required:!0},placeholder:{type:String,default:null},paddingLeft:{type:Number,default:0},focus:{type:Boolean,default:!1},validation:{type:Function,default:null}},data:function(){return{value:""}},computed:{formattedValue:function(){return this.type===x?parseFloat(this.value):this.value},isSelect:function(){return this.type===$},isTextArea:function(){return this.type===O}},watch:{value:function(t){t=this.type===x?parseFloat(t):t,t=this.type===String?t.toLowerCase():t,t=null!==this.validation?this.validation(t):t,this.$emit("input",t)},defaultValue:function(t){this.setDefaultValue()}},created:function(){this.setDefaultValue()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)}}}),F=I,N=(n("84ed"),A(F,P,T,!1,null,null,null));N.options.__file="SettingInput.vue";var R=N.exports,U=n("8bbf"),H=n.n(U),V=new H.a,W=V,q={name:"SettingsForm",components:{SettingFormItem:E,SettingInput:R},props:{specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(t){return[]}}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var t=j,e=t.find(function(t){return t.name===h});return void 0!==e&&(e.value=this.defaultFilename),t},configs:function(){var t=this,e=[];return e.push(this.generateconfigsEntry()),Object.keys(this.specific.translations).map(function(n){e.push(t.generateconfigsEntry(n))}),e}},watch:{lastLocaleAdded:function(t){0!==t.length&&(this.addLocale(t),this.lastLocaleAdded="")}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin)},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){W.$on("default-filename",this.updateDefaultFilename)},removeListener:function(){W.$off("default-filename",this.updateDefaultFilename)},updateDefaultFilename:function(t){this.defaultFilename=t},dynamicDataBinding:function(t,e){var n=this;t.map(function(t){n.$set(e,t.name,t.value)})},addLocale:function(t){this.$set(this.specific.translations,t,{}),this.dynamicDataBinding(this.specificTranslationsModel,this.specific.translations[t])},removeLocale:function(t){this.$delete(this.specific.translations,t)},generateconfigsEntry:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{general:p({},this.general,{filename:this.generateFilename(e)}),specific:p({locale:e},this.specific.origin,Object.assign.apply(Object,d(this.specificTranslationsModel.map(function(n){return c({},n.name,null!==e?t.specific.translations[e][n.name]:null)}))))}},generateFilename:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.general[v]+"_"+this.general[m]+"_"+this.general[g]+g+"_"+this.general[w]+"_";return this.general[h]&&(e+=this.general[h].replace(/[àáâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ïîì]/g,"i").replace(/[öôòõ]/g,"o").replace(/[üûùú]/g,"u").replace(/[ÿ]/g,"y").replace(/[œ]/g,"oe").replace(/[/\\:]/g,"-").replace(/\s/g,"_").replace(/[^a-z0-9-_]/gi,"")+"_"),e+=(t||"VO")+"."+this.general[y],e.toLowerCase()},sendPreview:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.general.timestamp=(new Date).getTime(),this.localeOnPreview=t,W.$emit("previsualize",this.configs.find(function(e){return e.specific.locale===t}))},isOnPreview:function(t){return this.localeOnPreview===t},validate:function(){var t=o(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:e=this.configs.map(function(t){return{data:t}}),this.$emit("validate",e);case 2:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},Y=q,G=(n("416b"),A(Y,a,s,!1,null,null,null));G.options.__file="SettingsForm.vue";var B=G.exports,J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"preview"},[n("h2",[t._v("Prévisualisation")]),n("section",{ref:"playerContainer"},[n("div",{staticClass:"player",style:{width:t.previewWidth+"px",height:t.previewHeight+"px"}},[n("iframe",{style:t.iframeDimension,attrs:{src:"http://localhost:8081/"}})]),n("progress-bar",{attrs:{duration:t.duration,progress:t.progress,color:"#51afd7"}})],1)])},z=[],Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-bar"},[n("div",{class:t.progressClass,style:{width:t.progressWidth,background:t.color}})])},X=[],K={name:"ProgresseBar",props:{progress:{type:Number,required:!0},duration:{type:Number,required:!0},color:{type:String,default:null}},data:function(){return{reset:!1}},computed:{progressClass:function(){return{"progress-value":!0,reset:this.reset}},progressWidth:function(){return 0!==this.duration?"".concat(this.progress/this.duration*100,"%"):"0%"}},watch:{progress:function(t,e){this.reset=e>t}}},Q=K,tt=(n("dee8"),A(Q,Z,X,!1,null,null,null));tt.options.__file="ProgressBar.vue";var et=tt.exports,nt={name:"Preview",components:{ProgressBar:et},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},previewRatio:function(){return this.previewWidth/this.configWidth},iframeDimension:function(){return{zoom:this.previewRatio,transform:"scale(".concat(this.previewRatio,")"),transformOrigin:"0 0",width:"".concat(1/this.previewRatio*100,"%"),height:"".concat(1/this.previewRatio*100,"%")}}},mounted:function(){this.setupListener(),this.getWidth()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){var t=this;W.$on("previsualize",this.sendConfig),window.onmessage=function(e){"animation-update"===e.data.type&&(t.progress=e.data.value),"duration-update"===e.data.type&&(t.duration=e.data.value),"default-filename"===e.data.type&&W.$emit("default-filename",e.data.value)},window.addEventListener("resize",this.getWidth)},removeListener:function(){this.$off("previsualize",this.sendConfig),window.removeEventListener("resize",this.getWidth)},sendConfig:function(t){console.log("sendConfig",t),this.configWidth=t.general.videoWidth,this.configRatio=t.general.videoWidth/t.general.videoHeight,window.frames[0].postMessage({type:"init-template-data",templateData:t.specific},"*")},getWidth:function(){this.previewWidth=parseInt(window.getComputedStyle(this.$refs.playerContainer).getPropertyValue("width").replace("px",""))}}},rt=nt,it=(n("497a"),A(rt,J,z,!1,null,null,null));it.options.__file="Preview.vue";var ot=it.exports,at=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"results"},[n("h2",[t._v("Rendus")]),n("div",{staticClass:"results-wrapper"},[n("section",{staticClass:"job-details"},t._l(t.jobs,function(t){return n("progress-job",{key:t.id,attrs:{job:t}})})),n("section",{staticClass:"job-summary"},[n("div",{staticClass:"fixed"},[n("h2",[n("span",[t._v(t._s(t.completedJobs.length)+"/"+t._s(t.jobs.length))]),n("span",[t._v("vidéos terminées")])]),n("a",{attrs:{disabled:!t.allCompleted,href:"#"},on:{click:function(e){return e.preventDefault(),t.downloadLinks(e)}}},[t._v("Télécharger tous les liens\n ")]),n("a",{attrs:{disabled:!t.allCompleted,href:"#"},on:{click:function(e){return e.preventDefault(),t.downloadAll(e)}}},[t._v("Télécharger toutes les vidéos\n ")])])])])])},st=[],ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-job"},[n("div",{staticClass:"id"},[n("span",[t._v("job "+t._s(t.job.id))])]),n("div",{class:["progress-wrapper",{complete:t.statusCode>=2}]},[n("div",{staticClass:"textual"},[n("span",{staticClass:"filename"},[t._v(t._s(t.job.data.general.filename))]),n("div",{staticClass:"status"},[n("span",[t._v(t._s(t.status))])]),n("span",{staticClass:"percent"},[t._v(t._s((100*t.job.progress).toFixed(2))+"%")])]),n("div",{staticClass:"bar"},[n("progress-bar",{attrs:{duration:1,progress:t.job.progress,color:"black"}})],1)]),n("button",{class:["download",{active:t.statusCode>=2}],attrs:{disabled:t.statusCode<2},on:{click:function(e){t.download()}}},[n("span",{staticClass:"UI-icon UI-download"})])])},ut=[],lt={name:"ProgressJob",components:{ProgressBar:et},props:{job:{type:Object,required:!0}},computed:{statusCode:function(){var t=0;return null===this.job.returnvalue&&1===this.job.progress?t=1:null!==this.job.returnvalue&&(t=2),t},status:function(){var t="capturing animation...";return 1===this.statusCode?t="converting into video format...":2===this.statusCode&&(t="ready to download"),t}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},ft=lt,dt=(n("e977"),A(ft,ct,ut,!1,null,null,null));dt.options.__file="ProgressJob.vue";var pt=dt.exports,ht=n("5a0c"),vt=n.n(ht),mt={name:"Results",components:{ProgressJob:pt},props:{jobs:{type:Array,required:!0}},computed:{completedJobs:function(){return this.jobs.filter(function(t){return null!==t.returnvalue})},allCompleted:function(){return this.completedJobs.length===this.jobs.length}},methods:{downloadAll:function(){this.allCompleted&&this.completedJobs.map(function(t){window.open(t.returnvalue.url)})},downloadLinks:function(){if(this.allCompleted){var t=["data:text/csv;charset=utf-8,lang,file,url,expiration"];this.completedJobs.map(function(e,n){t.push("".concat(e.data.specific.locale?e.data.specific.locale:"vo",",").concat(e.data.general.filename,",").concat(e.returnvalue.url,",").concat(vt()().add(15,"days").format("YYYY-MM-DD HH:mm:ss")))}),t=t.join("\n");var e=encodeURI(t),n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("download","links_".concat(this.jobs[0].data.general.filename,".csv")),document.body.appendChild(n),n.click(),document.body.removeChild(n)}}}},gt=mt,yt=(n("ebf2"),A(gt,at,st,!1,null,null,null));yt.options.__file="Results.vue";var bt=yt.exports,wt={name:"TemplateDdv",components:{SettingsForm:B,Preview:ot,Results:bt},props:{templateName:{type:String,required:!0},templateUrl:{type:String,required:!0},service:{type:Object,required:!0}},data:function(){return{loading:!0,specificOriginModel:[],specificTranslationsModel:[],localesAllowed:[],rendering:!1,jobs:[]}},created:function(){this.getTemplate(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var t=o(regeneratorRuntime.mark(function t(){var e,n,r,i,o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e="http://toolkit.afp.com:8080/ddv-twitter-template",t.next=3,window.fetch("".concat(e,"/static/config.json"));case 3:return t.next=5,t.sent.json();case 5:n=t.sent,r=n.specificOriginModel,i=n.specificTranslationsModel,o=n.localesAllowed,this.specificOriginModel=r,this.specificTranslationsModel=i,this.localesAllowed=o,this.loading=!1;case 13:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),setupListener:function(){this.service.on("progress",this.progressUpdate),this.service.on("completed",this.completedUpdate)},removeListener:function(){this.service.off("progress",this.progressUpdate),this.service.off("completed",this.completedUpdate)},progressUpdate:function(t){var e=t.jobId,n=t.progress,r=this.jobs.find(function(t){return t.id===e});void 0!==r?r.progress=parseFloat(n):console.error("No job found.")},completedUpdate:function(t){var e=t.jobId,n=t.result,r=this.jobs.find(function(t){return t.id===e});r.returnvalue=n},validate:function(){var t=o(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.service.create(e);case 2:if(n=t.sent,console.log("validate response",n),!(n.length>=1)){t.next=9;break}return this.rendering=!0,t.next=8,this.service.get(n.map(function(t){return t.id}));case 8:this.jobs=t.sent;case 9:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}},_t=wt,xt=(n("49d1"),A(_t,r,i,!1,null,null,null));xt.options.__file="TemplateDdv.vue";var $t=xt.exports;n.d(e,"DataDrivenVideoUi",function(){return $t})},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["dataDrivenVideoUi"]=t(require("vue")):e["dataDrivenVideoUi"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,y,b,w){c(n,t,g);var _,x,S,$=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",j=y==v,L=!1,k=e.prototype,M=k[f]||k[p]||y&&k[y],C=M||$(y),A=y?j?$("entries"):C:void 0,D="Array"==t&&k.entries||M;if(D&&(S=l(D.call(new e)),S!==Object.prototype&&S.next&&(u(S,O,!0),r||"function"==typeof S[f]||a(S,f,m))),j&&M&&M.name!==v&&(L=!0,C=function(){return M.call(this)}),r&&!w||!d&&!L&&k[f]||a(k,f,C),s[t]=C,s[O]=m,y)if(_={values:j?C:$(v),keys:b?C:$(h),entries:A},w)for(x in _)x in k||o(k,x,_[x]);else i(i.P+i.F*(d||L),t,_);return _}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),b=r(s,h,3),w=a(y.length),_=0,x=n?p(t,w):c?p(t,0):void 0;w>_;_++)if((d||_ in y)&&(v=y[_],m=b(v,_,g),e))if(n)x[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(l)return!1;return f?-1:u||l?l:x}}},"0bed":function(e,t,n){},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"1d9f":function(e,t,n){"use strict";var r=n("97ab"),i=n.n(r);i.a},"1eb2":function(e,t,n){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]))},"214f":function(e,t,n){"use strict";var r=n("32e9"),i=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var c=s(e),u=n(a,c,""[e]),l=u[0],f=u[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"416b":function(e,t,n){"use strict";var r=n("9b8f"),i=n.n(r);i.a},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(e){return i(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"497a":function(e,t,n){"use strict";var r=n("4caa"),i=n.n(r);i.a},"49d1":function(e,t,n){"use strict";var r=n("53bf"),i=n.n(r);i.a},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4caa":function(e,t,n){},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53bf":function(e,t,n){},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={padStart:f,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),i=t-r<0,o=e.clone().add(n+(i?-1:1),"months");return Number(-(n+(t-r)/(i?r-o:o-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(c){return{M:a,y:s,w:o,d:i,h:r,m:n,s:t,ms:e}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},p="en",h={};h[p]=l;var v=function(e){return e instanceof w},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)h[e]&&(r=e),t&&(h[e]=t,r=e);else{var i=e.name;h[i]=e,r=i}return n||(p=r),r},g=function(e,t){if(v(e))return e.clone();var n=t||{};return n.date=e,new w(n)},y=function(e,t){return g(e,{locale:t.$L})},b=d;b.parseLocale=m,b.isDayjs=v,b.wrapper=y;var w=function(){function l(e){this.parse(e)}var f=l.prototype;return f.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):b.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&/.*[^Z]$/i.test(t)&&(n=t.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},f.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||p},f.$utils=function(){return b},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.$compare=function(e){return this.valueOf()-g(e).valueOf()},f.isSame=function(e){return 0===this.$compare(e)},f.isBefore=function(e){return this.$compare(e)<0},f.isAfter=function(e){return this.$compare(e)>0},f.year=function(){return this.$y},f.month=function(){return this.$M},f.day=function(){return this.$W},f.date=function(){return this.$D},f.hour=function(){return this.$H},f.minute=function(){return this.$m},f.second=function(){return this.$s},f.millisecond=function(){return this.$ms},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,c){var u=this,l=!!b.isUndefined(c)||c,f=function(e,t){var n=y(new Date(u.$y,t,e),u);return l?n:n.endOf(i)},d=function(e,t){return y(u.toDate()[e].apply(u.toDate(),l?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),u)};switch(b.prettyUnit(e)){case s:return l?f(1,0):f(31,11);case a:return l?f(1,this.$M):f(0,this.$M+1);case o:return f(l?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case i:case"date":return d("setHours",0);case r:return d("setMinutes",1);case n:return d("setSeconds",2);case t:return d("setMilliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(o,c){switch(b.prettyUnit(o)){case i:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case s:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case t:this.$d.setSeconds(c);break;case e:this.$d.setMilliseconds(c)}return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.add=function(e,c){var u=this;e=Number(e);var l,f=b.prettyUnit(c),d=function(t,n){var r=u.set("date",1).set(t,n+e);return r.set("date",Math.min(u.$D,r.daysInMonth()))};if(f===a)return d(a,this.$M);if(f===s)return d(s,this.$y);switch(f){case n:l=6e4;break;case r:l=36e5;break;case i:l=864e5;break;case o:l=6048e5;break;case t:l=1e3;break;default:l=1}var p=this.valueOf()+e*l;return y(p,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.padZoneStr(this.$d.getTimezoneOffset()),i=this.$locale(),o=i.weekdays,a=i.months,s=function(e,t,n,r){return e&&e[t]||n[t].substr(0,r)};return n.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return String(t.$y);case"M":return String(t.$M+1);case"MM":return b.padStart(t.$M+1,2,"0");case"MMM":return s(i.monthsShort,t.$M,a,3);case"MMMM":return a[t.$M];case"D":return String(t.$D);case"DD":return b.padStart(t.$D,2,"0");case"d":return String(t.$W);case"dd":return s(i.weekdaysMin,t.$W,o,2);case"ddd":return s(i.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(t.$H);case"HH":return b.padStart(t.$H,2,"0");case"h":case"hh":return 0===t.$H?12:b.padStart(t.$H<13?t.$H:t.$H-12,"hh"===e?2:1,"0");case"a":return t.$H<12?"am":"pm";case"A":return t.$H<12?"AM":"PM";case"m":return String(t.$m);case"mm":return b.padStart(t.$m,2,"0");case"s":return String(t.$s);case"ss":return b.padStart(t.$s,2,"0");case"SSS":return b.padStart(t.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},f.diff=function(e,c,u){var l=b.prettyUnit(c),f=g(e),d=this-f,p=b.monthDiff(this,f);switch(l){case s:p/=12;break;case a:break;case"quarter":p/=3;break;case o:p=d/6048e5;break;case i:p=d/864e5;break;case r:p=d/36e5;break;case n:p=d/6e4;break;case t:p=d/1e3;break;default:p=d}return u?p:b.absFloor(p)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return h[this.$L]},f.locale=function(e,t){var n=this.clone();return n.$L=m(e,t,!0),n},f.clone=function(){return y(this.toDate(),this)},f.toDate=function(){return new Date(this.$d)},f.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},f.toJSON=function(){return this.toISOString()},f.toISOString=function(){return this.toDate().toISOString()},f.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},f.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(e,t){return e(t,w,g),g},g.locale=m,g.isDayjs=v,g.en=h[p],g})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,d,p,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[c],w=v?i:i[t]||(i[t]={}),_=w[c]||(w[c]={});for(l in v&&(n=t),n)f=!h&&b&&void 0!==b[l],d=(f?b:n)[l],p=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&u.U),w[l]!=d&&o(w,l,p),g&&_[l]!=d&&(_[l]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6e9d":function(e,t,n){},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=a(e),c=arguments.length,u=1,l=i.f,f=o.f;while(c>u){var d,p=s(arguments[u++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;while(v>m)f.call(p,d=h[m++])&&(n[d]=p[d])}return n}:c},"73ee":function(e,t,n){},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84ed":function(e,t,n){"use strict";var r=n("0bed"),i=n.n(r);i.a},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(t,n){t.exports=e},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(D([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=$.prototype=x.prototype=Object.create(m);S.prototype=b.constructor=$,$.constructor=S,$[c]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,$):(e.__proto__=$,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},O(j.prototype),j.prototype[s]=function(){return this},l.AsyncIterator=j,l.async=function(e,t,n,r){var i=new j(w(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=D,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=L(e,n,a),o}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function S(){}function $(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function j(e){function t(n,r,o,a){var s=_(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){c.value=e,o(c)},a)}a(s.arg)}var n;function r(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function L(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return E()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=_(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"97ab":function(e,t,n){},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b8f":function(e,t,n){},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e28":function(e,t,n){},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c=" ",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var m,g=h[v],y=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[l]||s(w,l,d),w[f]||s(w,f,g),c[g]=d,y))for(m in r)w[m]||o(w,m,r[m],!0)}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=r[p],v=h,m=h.prototype,g=o(n("2aeb")(m))==p,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():d(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>i)return NaN;return parseInt(c,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?c(function(){m.valueOf.call(n)}):o(n)!=p)?a(new v(b(t)),n,h):b(t)};for(var w,_=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(h,w)&&f(h,w,l(v,w));h.prototype=m,m.constructor=h,n("2aba")(r,p,h)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dee8:function(e,t,n){"use strict";var r=n("9e28"),i=n.n(r);i.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e977:function(e,t,n){"use strict";var r=n("73ee"),i=n.n(r);i.a},ebf2:function(e,t,n){"use strict";var r=n("6e9d"),i=n.n(r);i.a},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fae3:function(e,t,n){"use strict";n.r(t);n("1eb2");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template"},[n("h1",[e._v("Template "),n("em",[e._v(e._s(e.templateName))])]),e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed},on:{validate:e.validate}}),n("results",{directives:[{name:"show",rawName:"v-show",value:e.jobs.length>0,expression:"jobs.length > 0"}],attrs:{jobs:e.jobs}})],1)])},i=[];n("7514"),n("96cf");function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,c)}function s(e){a("next",e)}function c(e){a("throw",e)}s()})}}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settingsForm"},[0!==e.specificOriginModel.length?n("div",{class:["block-setting",{"on-preview":e.isOnPreview(null)}]},[n("header",[n("h2",[e._v("Version Originale")]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("span",{staticClass:"UI-icon UI-play"})])]),e._l(e.specificOriginModel,function(t){return n("setting-form-item",{key:"settingOrigin_"+t.name,attrs:{type:t.type,name:t.type+"_"+t.name,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,focus:t.focus,placeholder:t.placeholder,validation:t.validation,required:t.required},model:{value:e.specific.origin[t.name],callback:function(n){e.$set(e.specific.origin,t.name,n)},expression:"specific.origin[setting.name]"}})],1)})],2):e._e(),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale",attrs:{disabled:Object.keys(e.specific.translations).length===e.localesAllowed.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.lastLocaleAdded=t.target.multiple?n:n[0]}}},[n("option",{attrs:{disabled:"",value:""}},[e._v("Ajouter une traduction")]),e._l(e.localesAllowed,function(t){return n("option",{key:"locale_"+t,attrs:{disabled:Object.keys(e.specific.translations).includes(t)},domProps:{value:t}},[e._v(e._s(t))])})],2),0!==Object.keys(e.specific.translations).length?n("div",e._l(Object.keys(e.specific.translations),function(t){return n("div",{key:"tr_"+t,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",[n("h2",[e._v("Version "+e._s(t.toUpperCase()))]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("span",{staticClass:"UI-icon UI-play"})]),n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})])]),e._l(e.specificTranslationsModel,function(r){return n("setting-form-item",{key:"trs_"+t+"_"+r.name,attrs:{type:r.type,name:t+"_"+r.type+"_"+r.name,label:r.label}},[n("setting-input",{attrs:{name:t+"_"+r.name,type:r.type,"default-value":r.value,required:r.required},model:{value:e.specific.translations[t][r.name],callback:function(n){e.$set(e.specific.translations[t],r.name,n)},expression:"specific.translations[locale][setting.name]"}})],1)})],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[n("h2",[e._v("\n Configuration générale\n ")]),e._l(e.generalModel,function(t){return n("setting-form-item",{key:"setting_"+t.name,attrs:{name:t.type+"_"+t.name,type:t.type,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,required:t.required},model:{value:e.general[t.name],callback:function(n){e.$set(e.general,t.name,n)},expression:"general[setting.name]"}})],1)})],2):e._e(),0!==e.configs.length?n("div",{staticClass:"configs"},[n("h2",[e._v(e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+" à générer")]),e._l(e.configs,function(t){return n("div",{key:"details_"+(t.specific.locale||"VO"),staticClass:"configs-details"},[n("span",[e._v(e._s(t.general.filename))]),t.specific.locale?n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t.specific.locale)}}},[n("span",{staticClass:"UI-icon UI-close"})]):e._e()])}),n("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[e._v("\n Valider "),n("span",{staticClass:"UI-icon UI-checked"})])])],2):e._e()])},s=[];n("a481");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("f751");function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(e){return u(e)||l(e)||f()}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){c(e,t,n[t])})}return e}n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoWidth",m="videoHeight",g="fps",y="fileFormat",b="hd",w="codec",_="text",x="number",S="select",$="checkbox",O="textarea",j=[{type:_,name:h,label:"Titre",value:""},{type:x,name:v,label:"Largeur",value:1920},{type:x,name:m,label:"Hauteur",value:1080},{type:x,name:g,label:"Images par seconde",value:25},{type:S,name:y,label:"Format de fichier",value:["mov"]},{type:S,name:w,label:"Codec vidéo",value:["prores"]},{type:$,name:b,label:"Haute défition",value:!1}],L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},k=[],M={name:"SettingFormItem",data:function(){return{paddingLeft:0}},props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},C=M;n("1d9f");function A(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var D=A(C,L,k,!1,null,null,null);D.options.__file="SettingFormItem.vue";var E=D.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},e._l(e.defaultValue,function(t){return n("option",{key:t},[e._v("\n "+e._s(t)+"\n ")])})):e.isTextArea?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}):"checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=i}}}):"radio"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(t){e.value=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:e.type.toLowerCase()},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},T=[],I=(n("c5f6"),{name:"SettingInput",props:{name:{type:String,required:!0},type:{type:String,required:!0},defaultValue:{type:[String,Number,Array,Boolean],required:!0},placeholder:{type:String,default:null},paddingLeft:{type:Number,default:0},focus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},validation:{type:Function,default:null}},data:function(){return{value:""}},computed:{formattedValue:function(){return this.type===x?parseFloat(this.value):this.value},isSelect:function(){return this.type===S},isTextArea:function(){return this.type===O}},watch:{value:function(e){e=this.type===x?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)}}}),F=I,N=(n("84ed"),A(F,P,T,!1,null,null,null));N.options.__file="SettingInput.vue";var U=N.exports,q=n("8bbf"),R=n.n(q),H=new R.a,V=H,W={name:"SettingsForm",components:{SettingFormItem:E,SettingInput:U},props:{specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=j,t=e.find(function(e){return e.name===h});return void 0!==t&&(t.value=this.defaultFilename),e},configs:function(){var e=this,t=[];return t.push(this.generateconfigsEntry()),Object.keys(this.specific.translations).map(function(n){t.push(e.generateconfigsEntry(n))}),t}},watch:{lastLocaleAdded:function(e){0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="")}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin)},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){V.$on("default-filename",this.updateDefaultFilename)},removeListener:function(){V.$off("default-filename",this.updateDefaultFilename)},updateDefaultFilename:function(e){this.defaultFilename=e},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},addLocale:function(e){this.$set(this.specific.translations,e,{}),this.dynamicDataBinding(this.specificTranslationsModel,this.specific.translations[e])},removeLocale:function(e){this.$delete(this.specific.translations,e)},generateconfigsEntry:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{general:p({},this.general,{filename:this.generateFilename(t)}),specific:p({locale:t},this.specific.origin,Object.assign.apply(Object,d(this.specificTranslationsModel.map(function(n){return c({},n.name,null!==t?e.specific.translations[t][n.name]:null)}))))}},generateFilename:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.general[v]+"_"+this.general[m]+"_"+this.general[g]+g+"_"+this.general[w]+"_";return this.general[h]&&(t+=this.general[h].replace(/[àáâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ïîì]/g,"i").replace(/[öôòõ]/g,"o").replace(/[üûùú]/g,"u").replace(/[ÿ]/g,"y").replace(/[œ]/g,"oe").replace(/[/\\:]/g,"-").replace(/\s/g,"_").replace(/[^a-z0-9-_]/gi,"")+"_"),t+=(e||"VO")+"."+this.general[y],t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,V.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(e){return this.localeOnPreview===e},checkRequired:function(){var e=document.querySelectorAll(".settingsForm *[required=required]"),t=0,n=!1;while(t<e.length&&!n)n=""===e[t].value||null===e[t].value,t++;return n},validate:function(){if(!this.checkRequired()){var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},Y=W,G=(n("416b"),A(Y,a,s,!1,null,null,null));G.options.__file="SettingsForm.vue";var B=G.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"preview"},[n("h2",[e._v("Prévisualisation")]),n("section",{ref:"playerContainer"},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#51afd7"}})],1)])},z=[],Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-bar"},[n("div",{class:e.progressClass,style:{width:e.progressWidth,background:e.color}})])},X=[],K={name:"ProgresseBar",props:{progress:{type:Number,required:!0},duration:{type:Number,required:!0},color:{type:String,default:null}},data:function(){return{reset:!1}},computed:{progressClass:function(){return{"progress-value":!0,reset:this.reset}},progressWidth:function(){return 0!==this.duration?"".concat(this.progress/this.duration*100,"%"):"0%"}},watch:{progress:function(e,t){this.reset=t>e}}},Q=K,ee=(n("dee8"),A(Q,Z,X,!1,null,null,null));ee.options.__file="ProgressBar.vue";var te=ee.exports,ne={name:"Preview",components:{ProgressBar:te},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},previewRatio:function(){return this.previewWidth/this.configWidth},iframeDimension:function(){return{zoom:this.previewRatio,transform:"scale(".concat(this.previewRatio,")"),transformOrigin:"0 0",width:"".concat(1/this.previewRatio*100,"%"),height:"".concat(1/this.previewRatio*100,"%")}}},mounted:function(){this.setupListener(),this.getWidth()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){var e=this;V.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&V.$emit("default-filename",t.data.value)},window.addEventListener("resize",this.getWidth)},removeListener:function(){this.$off("previsualize",this.sendConfig),window.removeEventListener("resize",this.getWidth)},sendConfig:function(e){console.log("sendConfig",e),this.configWidth=e.general.videoWidth,this.configRatio=e.general.videoWidth/e.general.videoHeight,window.frames[0].postMessage({type:"init-template-data",templateData:e.specific},"*")},getWidth:function(){this.previewWidth=parseInt(window.getComputedStyle(this.$refs.playerContainer).getPropertyValue("width").replace("px",""))}}},re=ne,ie=(n("497a"),A(re,J,z,!1,null,null,null));ie.options.__file="Preview.vue";var oe=ie.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("h2",[e._v("Rendus")]),n("div",{staticClass:"results-wrapper"},[n("section",{staticClass:"job-details"},e._l(e.jobs,function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})),n("section",{staticClass:"job-summary"},[n("div",{staticClass:"fixed"},[n("h2",[n("span",[e._v(e._s(e.completedJobs.length)+"/"+e._s(e.jobs.length))]),n("span",[e._v("vidéos terminées")])]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadLinks(t)}}},[e._v("Télécharger tous les liens\n ")]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadAll(t)}}},[e._v("Télécharger toutes les vidéos\n ")])])])])])},se=[],ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-job"},[n("div",{staticClass:"id"},[n("span",[e._v("job "+e._s(e.job.id))])]),n("div",{class:["progress-wrapper",{complete:e.statusCode>=2}]},[n("div",{staticClass:"textual"},[n("span",{staticClass:"filename"},[e._v(e._s(e.job.data.general.filename))]),n("div",{staticClass:"status"},[n("span",[e._v(e._s(e.status))])]),n("span",{staticClass:"percent"},[e._v(e._s((100*e.job.progress).toFixed(2))+"%")])]),n("div",{staticClass:"bar"},[n("progress-bar",{attrs:{duration:1,progress:e.job.progress,color:"black"}})],1)]),n("button",{class:["download",{active:e.statusCode>=2}],attrs:{disabled:e.statusCode<2},on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})])])},ue=[],le={name:"ProgressJob",components:{ProgressBar:te},props:{job:{type:Object,required:!0}},computed:{statusCode:function(){var e=0;return null===this.job.returnvalue&&1===this.job.progress?e=1:null!==this.job.returnvalue&&(e=2),e},status:function(){var e="capturing animation...";return 1===this.statusCode?e="converting into video format...":2===this.statusCode&&(e="ready to download"),e}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},fe=le,de=(n("e977"),A(fe,ce,ue,!1,null,null,null));de.options.__file="ProgressJob.vue";var pe=de.exports,he=n("5a0c"),ve=n.n(he),me={name:"Results",components:{ProgressJob:pe},props:{jobs:{type:Array,required:!0}},computed:{completedJobs:function(){return this.jobs.filter(function(e){return null!==e.returnvalue})},allCompleted:function(){return this.completedJobs.length===this.jobs.length}},methods:{downloadAll:function(){this.allCompleted&&this.completedJobs.map(function(e){window.open(e.returnvalue.url)})},downloadLinks:function(){if(this.allCompleted){var e=["data:text/csv;charset=utf-8,lang,file,url,expiration"];this.completedJobs.map(function(t,n){e.push("".concat(t.data.specific.locale?t.data.specific.locale:"vo",",").concat(t.data.general.filename,",").concat(t.returnvalue.url,",").concat(ve()().add(15,"days").format("YYYY-MM-DD HH:mm:ss")))}),e=e.join("\n");var t=encodeURI(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","links_".concat(this.jobs[0].data.general.filename,".csv")),document.body.appendChild(n),n.click(),document.body.removeChild(n)}}}},ge=me,ye=(n("ebf2"),A(ge,ae,se,!1,null,null,null));ye.options.__file="Results.vue";var be=ye.exports,we={name:"TemplateDdv",components:{SettingsForm:B,Preview:oe,Results:be},props:{templateName:{type:String,required:!0},templateUrl:{type:String,required:!0},service:{type:Object,required:!0}},data:function(){return{loading:!0,specificOriginModel:[],specificTranslationsModel:[],localesAllowed:[],rendering:!1,jobs:[]}},created:function(){this.getTemplate(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"/static/config.json"));case 2:return e.next=4,e.sent.json();case 4:t=e.sent,n=t.specificOriginModel,r=t.specificTranslationsModel,i=t.localesAllowed,this.specificOriginModel=n,this.specificTranslationsModel=r,this.localesAllowed=i,this.loading=!1;case 12:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),setupListener:function(){this.service.on("progress",this.progressUpdate),this.service.on("completed",this.completedUpdate)},removeListener:function(){this.service.off("progress",this.progressUpdate),this.service.off("completed",this.completedUpdate)},progressUpdate:function(e){var t=e.jobId,n=e.progress,r=this.jobs.find(function(e){return e.id===t});void 0!==r?r.progress=parseFloat(n):console.error("No job found.")},completedUpdate:function(e){var t=e.jobId,n=e.result,r=this.jobs.find(function(e){return e.id===t});r.returnvalue=n},validate:function(){var e=o(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.create(t);case 2:if(n=e.sent,console.log("validate response",n),!(n.length>=1)){e.next=9;break}return this.rendering=!0,e.next=8,this.service.get(n.map(function(e){return e.id}));case 8:this.jobs=e.sent;case 9:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},_e=we,xe=(n("49d1"),A(_e,r,i,!1,null,null,null));xe.options.__file="TemplateDdv.vue";var Se=xe.exports;n.d(t,"DataDrivenVideoUi",function(){return Se})},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
//# sourceMappingURL=dataDrivenVideoUi.umd.min.js.map |
{ | ||
"name": "@afp/data-driven-video-ui", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Main interface to generate data driven videos", | ||
@@ -5,0 +5,0 @@ "main": "dist/dataDrivenVideoUi.umd.min.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1617685
7138