@afp/data-driven-video-ui
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -1,2 +0,2 @@ | ||
(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 L)return L[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",C=y==v,j=!1,L=e.prototype,k=L[f]||L[p]||y&&L[y],P=k||S(y),M=y?C?S("entries"):P:void 0,E="Array"==t&&L.entries||k;if(E&&($=l(E.call(new e)),$!==Object.prototype&&$.next&&(u($,O,!0),r||"function"==typeof $[f]||a($,f,m))),C&&k&&k.name!==v&&(j=!0,P=function(){return k.call(this)}),r&&!w||!d&&!j&&L[f]||a(L,f,P),s[t]=P,s[O]=m,y)if(_={values:C?P:S(v),keys:b?P:S(h),entries:M},w)for(x in _)x in L||o(L,x,_[x]);else i(i.P+i.F*(d||j),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])}},1254:function(e,t,n){var r;(function(i,o){r=function(){return o(i)}.call(t,n,t,e),void 0===r||(e.exports=r)})(this,function(e){function t(e,t){var n,r;n=-1,r=e.length;while(++n<r)t(e[n],n,e)}function n(e,n){var r;return r=Array(e.length),t(e,function(e,t,i){r[t]=n(e,t,i)}),r}function r(e,n,r){return t(e,function(e,t,i){r=n(e,t,i)}),r}function i(e,n){var r,i,o;return o=this._matrix=[],e==n?this.distance=0:""==e?this.distance=n.length:""==n?this.distance=e.length:(r=[0],t(e,function(e,t){t++,r[t]=t}),o[0]=r,t(n,function(a,s){i=[++s],t(e,function(t,o){o++,e.charAt(o-1)==n.charAt(s-1)?i[o]=r[o-1]:i[o]=Math.min(r[o]+1,i[o-1]+1,r[o-1]+1)}),r=i,o[o.length]=r}),this.distance=i[i.length-1])}return i.prototype.toString=i.prototype.inspect=function(e){var t,i,o,a,s;t=this.getMatrix(),i=r(t,function(e,t){return Math.max(e,r(t,Math.max,0))},0),o=Array((i+"").length).join(" "),a=[];while(a.length<(t[0]&&t[0].length||0))a[a.length]=Array(o.length+1).join("-");return a=a.join("-+")+"-",s=n(t,function(e){var t;return t=n(e,function(e){return(o+e).slice(-o.length)}),t.join(" |")+" "}),s.join("\n"+a+"\n")},i.prototype.getMatrix=function(){return this._matrix.slice()},i.prototype.valueOf=function(){return this.distance},i})},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},"28a5":function(e,t,n){n("214f")("split",2,function(e,t,r){"use strict";var i=n("aae3"),o=r,a=[].push,s="split",c="length",u="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[c]||2!="ab"[s](/(?:ab)*/)[c]||4!="."[s](/(.?)(.?)/)[c]||"."[s](/()()/)[c]>1||""[s](/.?/)[c]){var l=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,s,f,d,p,h=[],v=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?4294967295:t>>>0,y=new RegExp(e.source,v+"g");l||(r=new RegExp("^"+y.source+"$(?!\\s)",v));while(s=y.exec(n)){if(f=s.index+s[0][c],f>m&&(h.push(n.slice(m,s.index)),!l&&s[c]>1&&s[0].replace(r,function(){for(p=1;p<arguments[c]-2;p++)void 0===arguments[p]&&(s[p]=void 0)}),s[c]>1&&s.index<n[c]&&a.apply(h,s.slice(1)),d=s[0][c],m=f,h[c]>=g))break;y[u]===s.index&&y[u]++}return m===n[c]?!d&&y.test("")||h.push(""):h.push(n.slice(m)),h[c]>g?h.slice(0,g):h}}else"0"[s](void 0,0)[c]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},"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)}},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},"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)"})},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,c=[1,2,3];r(r.P+r.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},"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(E([])));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(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===$||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},O(C.prototype),C.prototype[s]=function(){return this},l.AsyncIterator=C,l.async=function(e,t,n,r){var i=new C(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=E,M.prototype={constructor:M,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(P),!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),P(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;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(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 M(r||[]);return o._invoke=j(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 $(){}function S(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(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 j(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 A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=L(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 L(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,L(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 k(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(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:A}}function A(){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},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ab52:function(e,t,n){},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}},db15:function(e,t,n){"use strict";var r=n("ab52"),i=n.n(r);i.a},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"},[e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("div",{staticClass:"side-bar"},[n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed,"template-name":e.templateName,"template-url":e.templateUrl},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)],1)])},i=[];function o(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 a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(e){return o(e)||a(e)||s()}n("7514"),n("96cf");function u(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 l=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()}]},[n("header",{staticClass:"with-button"},[n("h2",[e._v("Template "+e._s(e.templateName))]),n("button",{staticClass:"reset",attrs:{type:"button"},on:{click:e.resetConfig}},[e._v("\n reset\n ")])]),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,"is-required":t.required}},[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)}),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"}),e._v("\n Prévisualiser\n ")])],2):e._e(),n("div",{staticClass:"block-setting"},[e._m(0),n("div",{staticClass:"setting-select-wrapper"},[n("span",{staticClass:"UI-icon UI-expand"}),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale setting-input",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,ref:"locale-setting-"+t,refInFor:!0,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",{staticClass:"no-border"},[n("h3",[e._v("Version "+e._s(t.toUpperCase()))])]),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)}),n("div",{staticClass:"wrapper-button"},[n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"})])])],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[e._m(1),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("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[n("span",{staticClass:"UI-icon UI-checked"}),e._v("\n Générer "+e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+"\n ")])])]):e._e()])},f=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Langues")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Paramètres du fichier")])])}];n("a481");function d(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 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){d(e,t,n[t])})}return e}n("28a5"),n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoPresets",m="videoWidth",g="videoHeight",y="fpsPresets",b="fps",w="exportPresets",_="fileFormat",x="codec",$="text",S="number",O="select",C="textarea",j=[{type:$,name:h,label:"Filename",value:""},{type:O,name:v,label:"Dimensions",value:["1920 x 1080","1280 x 720","1920 x 1920","custom"],separator:" x ",displayDependenciesWhen:"custom",dependenciesOrder:[m,g]},{type:S,name:m,label:"Largeur",value:1920,dependsOn:v},{type:S,name:g,label:"Hauteur",value:1080,dependsOn:v},{type:O,name:y,label:"Images par secondes",value:["50","25","custom"],displayDependenciesWhen:"custom",dependenciesOrder:[b]},{type:S,name:b,label:"IPS custom",value:50,dependsOn:y},{type:O,name:w,label:"Exporter en",value:["ProRes — mov","H.264 — mp4","custom"],separator:" — ",displayDependenciesWhen:"custom",dependenciesOrder:[x,_]},{type:O,name:_,label:"Format de fichier",value:["mov","mp4"],dependsOn:w},{type:O,name:x,label:"Codec vidéo",value:["ProRes","H.264"],dependsOn:w}],L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type,{"is-required":e.isRequired}]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},k=[],P={name:"SettingFormItem",props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0},isRequired:{type:Boolean,default:!1}},data:function(){return{paddingLeft:0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},M=P;n("1d9f");function E(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 A=E(M,L,k,!1,null,null,null);A.options.__file="SettingFormItem.vue";var D=A.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("div",{staticClass:"setting-select-wrapper"},[n("span",{staticClass:"UI-icon UI-expand"}),n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:e.settingInputClass,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"}],class:e.settingInputClass,attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{focus:function(t){e.removePlaceholder()},focusout:function(t){e.resetPlaceholder()},input:function(t){t.target.composing||(e.value=t.target.value)}}}):n("div",{staticClass:"setting-input-wrapper"},["checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:e.settingInputClass,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"}],class:e.settingInputClass,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"}],class:e.settingInputClass,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)}}}),e.required?n("button",{attrs:{type:"button"},on:{click:function(t){e.clearValue()}}},[n("span",{staticClass:"UI-icon UI-clear"})]):e._e()])},I=[],F=(n("c5f6"),n("8bbf")),N=n.n(F),R=new N.a,U=R,q=n("1254"),W=n.n(q),V={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:"",highlight:!1}},computed:{settingInputClass:function(){return{"setting-input":!0,"is-placeholder":this.isPlaceholder,highlight:this.highlight}},formattedValue:function(){return this.type===S?parseFloat(this.value):this.value},isSelect:function(){return this.type===O},isTextArea:function(){return this.type===C},isPlaceholder:function(){return this.value===this.defaultValue}},watch:{value:function(e,t){if(e=this.type===S?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.highlight&&e.length>0&&(this.highlight=!1),this.required&&"url"===this.type&&t.length>0){var n=new W.a(t,e);n.distance>1&&U.$emit("reset-config")}this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)},setupListener:function(){U.$on("highlight-errors",this.highlightErrors)},removeListener:function(){U.$off("highlight-errors",this.highlightErrors)},highlightErrors:function(){var e=this;if(this.required&&(""===this.value||null===this.value)){this.highlight=!0;var t=this.$el.getBoundingClientRect().top,n=window.pageYOffset||document.documentElement.scrollTop,r=12;window.scrollTo({top:t+n-r,behavior:"smooth"}),window.onscroll=function(i){var o=window.pageYOffset||document.documentElement.scrollTop;t+n-r===o&&("DIV"===e.$el.tagName?e.$el.querySelector("input").focus():e.$el.focus(),window.onscroll=null)}}},clearValue:function(){this.value=""},removePlaceholder:function(){this.isTextArea&&this.isPlaceholder&&(this.value="")},resetPlaceholder:function(){this.isTextArea&&""===this.value&&(this.value=this.defaultValue)}}},H=V,Y=(n("84ed"),E(H,T,I,!1,null,null,null));Y.options.__file="SettingInput.vue";var B=Y.exports,G=n("5a0c"),J=n.n(G),z={name:"SettingsForm",components:{SettingFormItem:D,SettingInput:B},props:{templateName:{type:String,required:!0},specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}},templateUrl:{type:String,required:!0}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=this,t=j,n=t.find(function(e){return e.name===h});return void 0!==n&&(n.value=this.defaultFilename),t.filter(function(n){return void 0===n.dependsOn||e.general[n.dependsOn]===t.find(function(e){return e.name===n.dependsOn}).displayDependenciesWhen})},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){var t=this;0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="",this.$nextTick(function(n){var r=t.$refs["locale-setting-".concat(e)][0].getBoundingClientRect().top,i=window.pageYOffset||document.documentElement.scrollTop,o=12;window.scrollTo({top:r+i-o,behavior:"smooth"})}))}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin),this.dynamicDataWatching("general",j.filter(function(e){return void 0!==e.displayDependenciesWhen}),j.filter(function(e){return void 0!==e.dependsOn}))},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){U.$on("default-filename",this.updateDefaultFilename),U.$on("preview-progress",this.updateProgressPreviewButton),U.$on("reset-config",this.resetConfig)},removeListener:function(){U.$off("default-filename",this.updateDefaultFilename),U.$off("preview-progress",this.updateProgressPreviewButton),U.$off("reset-config",this.resetConfig)},updateDefaultFilename:function(e){this.defaultFilename=e},updateProgressPreviewButton:function(e){document.querySelector(".on-preview .send-preview .progress").style.width="".concat(100*e,"%")},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},dynamicDataWatching:function(e,t,n){var r=this;t.map(function(t){r.$watch("general.".concat(t.name),function(i,o){var a=i.split(t.separator);(a.length>1||a[0]!==t.displayDependenciesWhen)&&t.dependenciesOrder.map(function(i,o){var s=n.find(function(e){return e.name===i});if(s){var c=s.type===S?parseFloat(a[o]):a[o];r[e][i]=c}else console.warn('no dependencies model found for "'.concat(i,'" in dynamicDataWatching for "').concat(t.name,'"'))})})})},resetConfig:function(){var e=this;Object.keys(this.specific.translations).map(function(t){return e.removeLocale(t)})},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),host:this.templateUrl}),specific:p({locale:t},this.specific.origin,Object.assign.apply(Object,c(this.specificTranslationsModel.map(function(n){return d({},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="".concat(J()().format("YYYY•MM•DD_HH•mm"),"_");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+="".concat(this.general[b],"FPS_").concat(e||"VO",".").concat(this.general[_]),t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=document.querySelector(".on-preview .send-preview .progress");null!==t&&(t.style.width=0),this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,U.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;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())U.$emit("highlight-errors");else{var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},Z=z,X=(n("416b"),E(Z,l,f,!1,null,null,null));X.options.__file="SettingsForm.vue";var K=X.exports,Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"preview",staticClass:"preview"},[n("section",{ref:"playerContainer",class:["player-container",{fixed:e.fixed}]},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("div",{staticClass:"meta-container"},[n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#14c6ab"}}),n("span",{staticClass:"timecode"},[e._v(e._s(e.computedProgress.format("mm:ss")))])],1)])])},ee=[],te=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}})])},ne=[],re={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}}},ie=re,oe=(n("dee8"),E(ie,te,ne,!1,null,null,null));oe.options.__file="ProgressBar.vue";var ae=oe.exports,se={name:"Preview",components:{ProgressBar:ae},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0,staticLimit:null,fixed:!1}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},computedProgress:function(){return J()().set("hour",0).set("minute",0).set("second",this.progress)},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(){var e=this;this.setupListener(),this.getWidth(),this.$nextTick(function(t){var n=document.documentElement.scrollTop||document.body.scrollTop,r=e.$refs.preview.getBoundingClientRect();e.staticLimit=r.top+n,e.fixed=e.staticLimit-n<=0,window.addEventListener("scroll",e.stickyScroller)})},beforeDestroyed:function(){this.removeListener()},methods:{stickyScroller:function(e){var t=document.documentElement.scrollTop||document.body.scrollTop;this.fixed=this.staticLimit-t<=0},setupListener:function(){var e=this;U.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value,U.$emit("preview-progress",t.data.value/e.duration)),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&U.$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",""))}}},ce=se,ue=(n("497a"),E(ce,Q,ee,!1,null,null,null));ue.options.__file="Preview.vue";var le=ue.exports,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("header",[n("h2",[e._v(e._s(e.jobs.length)+" Rendus")])]),n("div",{staticClass:"results-wrapper"},e._l(e.statusOrder,function(t){return n("section",{directives:[{name:"show",rawName:"v-show",value:e.filteredJobs[t].length>0,expression:"filteredJobs[status].length > 0"}],key:"st_"+t,class:["job-details",t]},[n("header",{staticClass:"no-border"},[n("h3",[e._v(e._s(e.filteredJobs[t].length)+" "+e._s(e.$tc(t,e.filteredJobs[t].length)))]),"completed"===t?n("copy-clipboard",{attrs:{"to-copy":e.completedUrls}}):e._e()],1),e._l(e.jobs.filter(function(e){return e.status===t}),function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})],2)}))])},de=[],pe=(n("55dd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["progress-job",e.job.status]},[n("div",{staticClass:"progress-wrapper"},[n("div",{staticClass:"wrapper-left"},[n("span",{staticClass:"filename"},[e._v("\n "+e._s(e.job.data.general.filename)),"failed"===e.job.status?n("span",{staticClass:"UI-icon UI-triangle"}):e._e()]),e.isCompleted?n("copy-clipboard",{attrs:{"to-copy":e.job.returnvalue.url}}):e._e()],1),"active"===e.job.status?n("svg",{staticClass:"radial-progress",attrs:{width:e.radialProgressRadius+2,height:e.radialProgressRadius+2}},[n("circle",{attrs:{cx:e.radialProgressRadius/2+1,cy:e.radialProgressRadius/2+1,r:e.radialProgressRadius/2,"stroke-width":2}}),n("circle",{staticClass:"path",style:{strokeDashoffset:e.radialProgress},attrs:{cx:e.radialProgressRadius/2+1,cy:e.radialProgressRadius/2+1,r:e.radialProgressRadius/2,"stroke-width":2.5}})]):e._e(),e.isCompleted?n("button",{staticClass:"download",on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})]):e._e()])])}),he=[],ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{staticClass:"copy",on:{click:function(t){t.preventDefault(),e.copyToClipboard()}}},[n("span",[e._v(e._s(e.$tc("copy",Array.isArray(e.toCopy)?e.toCopy.length:1)))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.copied,expression:"copied"}],staticClass:"UI-icon UI-checked"})])},me=[],ge={name:"CopyClipboard",props:{toCopy:{type:[String,Array],default:""}},data:function(){return{copied:!1}},computed:{textToCopy:function(){return Array.isArray(this.toCopy)?this.toCopy.join("\n"):this.toCopy}},methods:{copyToClipboard:function(){var e=this,t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="2em",t.style.height="2em",t.style.padding=0,t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=this.textToCopy,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy"),this.copied=!0,setTimeout(function(t){e.copied=!1},700)}catch(e){console.log("Oops, unable to copy")}document.body.removeChild(t)}}},ye=ge,be=(n("db15"),E(ye,ve,me,!1,null,null,null));be.options.__file="CopyClipboard.vue";var we=be.exports,_e={name:"ProgressJob",components:{CopyClipboard:we},props:{job:{type:Object,required:!0}},data:function(){return{radialProgressRadius:36}},computed:{radialProgress:function(){return this.job.progress/1*-114},isCompleted:function(){return"completed"===this.job.status}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},xe=_e,$e=(n("e977"),E(xe,pe,he,!1,null,null,null));$e.options.__file="ProgressJob.vue";var Se=$e.exports,Oe={name:"Results",components:{ProgressJob:Se,CopyClipboard:we},props:{jobs:{type:Array,required:!0}},data:function(){return{statusOrder:["active","waiting","completed","failed"]}},computed:{filteredJobs:function(){var e=this.jobs.slice().sort(function(e,t){return t.timestamp-e.timestamp});return{active:e.filter(function(e){return"active"===e.status}),waiting:e.filter(function(e){return"waiting"===e.status}),completed:e.filter(function(e){return"completed"===e.status}),failed:e.filter(function(e){return"failed"===e.status})}},completedUrls:function(){return this.filteredJobs.completed.map(function(e){return e.returnvalue.url})}},methods:{downloadLinks:function(){}}},Ce=Oe,je=(n("ebf2"),E(Ce,fe,de,!1,null,null,null));je.options.__file="Results.vue";var Le=je.exports,ke={name:"TemplateDdv",components:{SettingsForm:K,Preview:le,Results:Le},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.getJobs(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=u(regeneratorRuntime.mark(function e(){var t,n,r,i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"config.json"),{method:"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"}});case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.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 e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getJobs:function(){var e=u(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.get();case 2:t=e.sent,this.jobs=t.filter(function(e){return void 0!==e.data.general});case 4: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.status="completed",r.returnvalue=n},validate:function(){var e=u(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log("validate send",t),e.next=3,this.service.create(t);case 3:n=e.sent,console.log("validate response",n),n.length>0&&(this.rendering=!0,(r=this.jobs).push.apply(r,c(n)));case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},Pe=ke,Me=(n("49d1"),E(Pe,r,i,!1,null,null,null));Me.options.__file="TemplateDdv.vue";var Ee=Me.exports;n.d(t,"DataDrivenVideoUi",function(){return Ee})},fdef:function(e,t){e.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 L)return L[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",C=y==v,j=!1,L=e.prototype,k=L[f]||L[p]||y&&L[y],P=k||S(y),M=y?C?S("entries"):P:void 0,E="Array"==t&&L.entries||k;if(E&&($=l(E.call(new e)),$!==Object.prototype&&$.next&&(u($,O,!0),r||"function"==typeof $[f]||a($,f,m))),C&&k&&k.name!==v&&(j=!0,P=function(){return k.call(this)}),r&&!w||!d&&!j&&L[f]||a(L,f,P),s[t]=P,s[O]=m,y)if(_={values:C?P:S(v),keys:b?P:S(h),entries:M},w)for(x in _)x in L||o(L,x,_[x]);else i(i.P+i.F*(d||j),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])}},1254:function(e,t,n){var r;(function(i,o){r=function(){return o(i)}.call(t,n,t,e),void 0===r||(e.exports=r)})(this,function(e){function t(e,t){var n,r;n=-1,r=e.length;while(++n<r)t(e[n],n,e)}function n(e,n){var r;return r=Array(e.length),t(e,function(e,t,i){r[t]=n(e,t,i)}),r}function r(e,n,r){return t(e,function(e,t,i){r=n(e,t,i)}),r}function i(e,n){var r,i,o;return o=this._matrix=[],e==n?this.distance=0:""==e?this.distance=n.length:""==n?this.distance=e.length:(r=[0],t(e,function(e,t){t++,r[t]=t}),o[0]=r,t(n,function(a,s){i=[++s],t(e,function(t,o){o++,e.charAt(o-1)==n.charAt(s-1)?i[o]=r[o-1]:i[o]=Math.min(r[o]+1,i[o-1]+1,r[o-1]+1)}),r=i,o[o.length]=r}),this.distance=i[i.length-1])}return i.prototype.toString=i.prototype.inspect=function(e){var t,i,o,a,s;t=this.getMatrix(),i=r(t,function(e,t){return Math.max(e,r(t,Math.max,0))},0),o=Array((i+"").length).join(" "),a=[];while(a.length<(t[0]&&t[0].length||0))a[a.length]=Array(o.length+1).join("-");return a=a.join("-+")+"-",s=n(t,function(e){var t;return t=n(e,function(e){return(o+e).slice(-o.length)}),t.join(" |")+" "}),s.join("\n"+a+"\n")},i.prototype.getMatrix=function(){return this._matrix.slice()},i.prototype.valueOf=function(){return this.distance},i})},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},"28a5":function(e,t,n){n("214f")("split",2,function(e,t,r){"use strict";var i=n("aae3"),o=r,a=[].push,s="split",c="length",u="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[c]||2!="ab"[s](/(?:ab)*/)[c]||4!="."[s](/(.?)(.?)/)[c]||"."[s](/()()/)[c]>1||""[s](/.?/)[c]){var l=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,s,f,d,p,h=[],v=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?4294967295:t>>>0,y=new RegExp(e.source,v+"g");l||(r=new RegExp("^"+y.source+"$(?!\\s)",v));while(s=y.exec(n)){if(f=s.index+s[0][c],f>m&&(h.push(n.slice(m,s.index)),!l&&s[c]>1&&s[0].replace(r,function(){for(p=1;p<arguments[c]-2;p++)void 0===arguments[p]&&(s[p]=void 0)}),s[c]>1&&s.index<n[c]&&a.apply(h,s.slice(1)),d=s[0][c],m=f,h[c]>=g))break;y[u]===s.index&&y[u]++}return m===n[c]?!d&&y.test("")||h.push(""):h.push(n.slice(m)),h[c]>g?h.slice(0,g):h}}else"0"[s](void 0,0)[c]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},"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)}},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},"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)"})},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,c=[1,2,3];r(r.P+r.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},"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(E([])));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(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===$||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},O(C.prototype),C.prototype[s]=function(){return this},l.AsyncIterator=C,l.async=function(e,t,n,r){var i=new C(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=E,M.prototype={constructor:M,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(P),!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),P(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;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(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 M(r||[]);return o._invoke=j(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 $(){}function S(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(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 j(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 A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=L(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 L(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,L(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 k(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(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:A}}function A(){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},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ab52:function(e,t,n){},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}},db15:function(e,t,n){"use strict";var r=n("ab52"),i=n.n(r);i.a},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"},[e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("div",{staticClass:"side-bar"},[n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed,"template-name":e.templateName,"template-url":e.templateUrl},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)],1)])},i=[];function o(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 a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(e){return o(e)||a(e)||s()}n("7514"),n("96cf");function u(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 l=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()}]},[n("header",{staticClass:"with-button"},[n("h2",[e._v("Template "+e._s(e.templateName))]),n("button",{staticClass:"reset",attrs:{type:"button"},on:{click:e.resetConfig}},[e._v("\n reset\n ")])]),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,"is-required":t.required}},[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)}),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"}),e._v("\n Prévisualiser\n ")])],2):e._e(),n("div",{staticClass:"block-setting"},[e._m(0),n("div",{staticClass:"setting-select-wrapper"},[n("span",{staticClass:"UI-icon UI-expand"}),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale setting-input",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,ref:"locale-setting-"+t,refInFor:!0,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",{staticClass:"no-border"},[n("h3",[e._v("Version "+e._s(t.toUpperCase()))])]),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)}),n("div",{staticClass:"wrapper-button"},[n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"})])])],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[e._m(1),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("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[n("span",{staticClass:"UI-icon UI-checked"}),e._v("\n Générer "+e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+"\n ")])])]):e._e()])},f=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Langues")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Paramètres du fichier")])])}];n("a481");function d(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 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){d(e,t,n[t])})}return e}n("28a5"),n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoPresets",m="videoWidth",g="videoHeight",y="fpsPresets",b="fps",w="exportPresets",_="fileFormat",x="codec",$="text",S="number",O="select",C="textarea",j=[{type:$,name:h,label:"Filename",value:""},{type:O,name:v,label:"Dimensions",value:["1920 x 1080","1280 x 720","1920 x 1920","custom"],separator:" x ",displayDependenciesWhen:"custom",dependenciesOrder:[m,g]},{type:S,name:m,label:"Largeur",value:1920,dependsOn:v},{type:S,name:g,label:"Hauteur",value:1080,dependsOn:v},{type:O,name:y,label:"Images par secondes",value:["50","25","custom"],displayDependenciesWhen:"custom",dependenciesOrder:[b]},{type:S,name:b,label:"IPS custom",value:50,dependsOn:y},{type:O,name:w,label:"Exporter en",value:["ProRes — mov","H.264 — mp4","custom"],separator:" — ",displayDependenciesWhen:"custom",dependenciesOrder:[x,_]},{type:O,name:_,label:"Format de fichier",value:["mov","mp4"],dependsOn:w},{type:O,name:x,label:"Codec vidéo",value:["ProRes","H.264"],dependsOn:w}],L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type,{"is-required":e.isRequired}]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},k=[],P={name:"SettingFormItem",props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0},isRequired:{type:Boolean,default:!1}},data:function(){return{paddingLeft:0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},M=P;n("1d9f");function E(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 A=E(M,L,k,!1,null,null,null);A.options.__file="SettingFormItem.vue";var D=A.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("div",{staticClass:"setting-select-wrapper"},[n("span",{staticClass:"UI-icon UI-expand"}),n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:e.settingInputClass,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"}],class:e.settingInputClass,attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{focus:function(t){e.removePlaceholder()},focusout:function(t){e.resetPlaceholder()},input:function(t){t.target.composing||(e.value=t.target.value)}}}):n("div",{staticClass:"setting-input-wrapper"},["checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:e.settingInputClass,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"}],class:e.settingInputClass,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"}],class:e.settingInputClass,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)}}}),e.required?n("button",{attrs:{type:"button"},on:{click:function(t){e.clearValue()}}},[n("span",{staticClass:"UI-icon UI-delete"})]):e._e()])},I=[],F=(n("c5f6"),n("8bbf")),N=n.n(F),R=new N.a,U=R,q=n("1254"),W=n.n(q),V={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:"",highlight:!1}},computed:{settingInputClass:function(){return{"setting-input":!0,"is-placeholder":this.isPlaceholder,highlight:this.highlight}},formattedValue:function(){return this.type===S?parseFloat(this.value):this.value},isSelect:function(){return this.type===O},isTextArea:function(){return this.type===C},isPlaceholder:function(){return this.value===this.defaultValue}},watch:{value:function(e,t){if(e=this.type===S?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.highlight&&e.length>0&&(this.highlight=!1),this.required&&"url"===this.type&&t.length>0){var n=new W.a(t,e);n.distance>1&&U.$emit("reset-config")}this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)},setupListener:function(){U.$on("highlight-errors",this.highlightErrors)},removeListener:function(){U.$off("highlight-errors",this.highlightErrors)},highlightErrors:function(){var e=this;if(this.required&&(""===this.value||null===this.value)){this.highlight=!0;var t=this.$el.getBoundingClientRect().top,n=window.pageYOffset||document.documentElement.scrollTop,r=12;window.scrollTo({top:t+n-r,behavior:"smooth"}),window.onscroll=function(i){var o=window.pageYOffset||document.documentElement.scrollTop;t+n-r===o&&("DIV"===e.$el.tagName?e.$el.querySelector("input").focus():e.$el.focus(),window.onscroll=null)}}},clearValue:function(){this.value=""},removePlaceholder:function(){this.isTextArea&&this.isPlaceholder&&(this.value="")},resetPlaceholder:function(){this.isTextArea&&""===this.value&&(this.value=this.defaultValue)}}},H=V,Y=(n("84ed"),E(H,T,I,!1,null,null,null));Y.options.__file="SettingInput.vue";var B=Y.exports,G=n("5a0c"),J=n.n(G),z={name:"SettingsForm",components:{SettingFormItem:D,SettingInput:B},props:{templateName:{type:String,required:!0},specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}},templateUrl:{type:String,required:!0}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=this,t=j,n=t.find(function(e){return e.name===h});return void 0!==n&&(n.value=this.defaultFilename),t.filter(function(n){return void 0===n.dependsOn||e.general[n.dependsOn]===t.find(function(e){return e.name===n.dependsOn}).displayDependenciesWhen})},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){var t=this;0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="",this.$nextTick(function(n){var r=t.$refs["locale-setting-".concat(e)][0].getBoundingClientRect().top,i=window.pageYOffset||document.documentElement.scrollTop,o=12;window.scrollTo({top:r+i-o,behavior:"smooth"})}))}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin),this.dynamicDataWatching("general",j.filter(function(e){return void 0!==e.displayDependenciesWhen}),j.filter(function(e){return void 0!==e.dependsOn}))},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){U.$on("default-filename",this.updateDefaultFilename),U.$on("preview-progress",this.updateProgressPreviewButton),U.$on("reset-config",this.resetConfig)},removeListener:function(){U.$off("default-filename",this.updateDefaultFilename),U.$off("preview-progress",this.updateProgressPreviewButton),U.$off("reset-config",this.resetConfig)},updateDefaultFilename:function(e){this.defaultFilename=e},updateProgressPreviewButton:function(e){document.querySelector(".on-preview .send-preview .progress").style.width="".concat(100*e,"%")},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},dynamicDataWatching:function(e,t,n){var r=this;t.map(function(t){r.$watch("general.".concat(t.name),function(i,o){var a=i.split(t.separator);(a.length>1||a[0]!==t.displayDependenciesWhen)&&t.dependenciesOrder.map(function(i,o){var s=n.find(function(e){return e.name===i});if(s){var c=s.type===S?parseFloat(a[o]):a[o];r[e][i]=c}else console.warn('no dependencies model found for "'.concat(i,'" in dynamicDataWatching for "').concat(t.name,'"'))})})})},resetConfig:function(){var e=this;Object.keys(this.specific.translations).map(function(t){return e.removeLocale(t)})},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),host:this.templateUrl}),specific:p({locale:t},this.specific.origin,Object.assign.apply(Object,c(this.specificTranslationsModel.map(function(n){return d({},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="".concat(J()().format("YYYY•MM•DD_HH•mm"),"_");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+="".concat(this.general[b],"FPS_").concat(e||"VO",".").concat(this.general[_]),t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=document.querySelector(".on-preview .send-preview .progress");null!==t&&(t.style.width=0),this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,U.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;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())U.$emit("highlight-errors");else{var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},Z=z,X=(n("416b"),E(Z,l,f,!1,null,null,null));X.options.__file="SettingsForm.vue";var K=X.exports,Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"preview",staticClass:"preview"},[n("section",{ref:"playerContainer",class:["player-container",{fixed:e.fixed}]},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("div",{staticClass:"meta-container"},[n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#14c6ab"}}),n("span",{staticClass:"timecode"},[e._v(e._s(e.computedProgress.format("mm:ss")))])],1)])])},ee=[],te=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}})])},ne=[],re={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}}},ie=re,oe=(n("dee8"),E(ie,te,ne,!1,null,null,null));oe.options.__file="ProgressBar.vue";var ae=oe.exports,se={name:"Preview",components:{ProgressBar:ae},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0,staticLimit:null,fixed:!1}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},computedProgress:function(){return J()().set("hour",0).set("minute",0).set("second",this.progress)},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(){var e=this;this.setupListener(),this.getWidth(),this.$nextTick(function(t){var n=document.documentElement.scrollTop||document.body.scrollTop,r=e.$refs.preview.getBoundingClientRect();e.staticLimit=r.top+n,e.fixed=e.staticLimit-n<=0,window.addEventListener("scroll",e.stickyScroller)})},beforeDestroyed:function(){this.removeListener()},methods:{stickyScroller:function(e){var t=document.documentElement.scrollTop||document.body.scrollTop;this.fixed=this.staticLimit-t<=0},setupListener:function(){var e=this;U.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value,U.$emit("preview-progress",t.data.value/e.duration)),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&U.$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",""))}}},ce=se,ue=(n("497a"),E(ce,Q,ee,!1,null,null,null));ue.options.__file="Preview.vue";var le=ue.exports,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("header",[n("h2",[e._v(e._s(e.jobs.length)+" Rendus")])]),n("div",{staticClass:"results-wrapper"},e._l(e.statusOrder,function(t){return n("section",{directives:[{name:"show",rawName:"v-show",value:e.filteredJobs[t].length>0,expression:"filteredJobs[status].length > 0"}],key:"st_"+t,class:["job-details",t]},[n("header",{staticClass:"no-border"},[n("h3",[e._v(e._s(e.filteredJobs[t].length)+" "+e._s(e.$tc(t,e.filteredJobs[t].length)))]),"completed"===t?n("copy-clipboard",{attrs:{"to-copy":e.completedUrls}}):e._e()],1),e._l(e.jobs.filter(function(e){return e.status===t}),function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})],2)}))])},de=[],pe=(n("55dd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["progress-job",e.job.status]},[n("div",{staticClass:"progress-wrapper"},[n("div",{staticClass:"wrapper-left"},[n("span",{staticClass:"filename"},[e._v("\n "+e._s(e.job.data.general.filename)),"failed"===e.job.status?n("span",{staticClass:"UI-icon UI-triangle"}):e._e()]),e.isCompleted?n("copy-clipboard",{attrs:{"to-copy":e.job.returnvalue.url}}):e._e()],1),"active"===e.job.status?n("svg",{staticClass:"radial-progress",attrs:{width:e.radialProgressRadius+2,height:e.radialProgressRadius+2}},[n("circle",{attrs:{cx:e.radialProgressRadius/2+1,cy:e.radialProgressRadius/2+1,r:e.radialProgressRadius/2,"stroke-width":2}}),n("circle",{staticClass:"path",style:{strokeDashoffset:e.radialProgress},attrs:{cx:e.radialProgressRadius/2+1,cy:e.radialProgressRadius/2+1,r:e.radialProgressRadius/2,"stroke-width":2.5}})]):e._e(),e.isCompleted?n("button",{staticClass:"download",on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})]):e._e()])])}),he=[],ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{staticClass:"copy",on:{click:function(t){t.preventDefault(),e.copyToClipboard()}}},[n("span",[e._v(e._s(e.$tc("copy",Array.isArray(e.toCopy)?e.toCopy.length:1)))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.copied,expression:"copied"}],staticClass:"UI-icon UI-checked"})])},me=[],ge={name:"CopyClipboard",props:{toCopy:{type:[String,Array],default:""}},data:function(){return{copied:!1}},computed:{textToCopy:function(){return Array.isArray(this.toCopy)?this.toCopy.join("\n"):this.toCopy}},methods:{copyToClipboard:function(){var e=this,t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="2em",t.style.height="2em",t.style.padding=0,t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=this.textToCopy,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy"),this.copied=!0,setTimeout(function(t){e.copied=!1},700)}catch(e){console.log("Oops, unable to copy")}document.body.removeChild(t)}}},ye=ge,be=(n("db15"),E(ye,ve,me,!1,null,null,null));be.options.__file="CopyClipboard.vue";var we=be.exports,_e={name:"ProgressJob",components:{CopyClipboard:we},props:{job:{type:Object,required:!0}},data:function(){return{radialProgressRadius:36}},computed:{radialProgress:function(){return this.job.progress/1*-114},isCompleted:function(){return"completed"===this.job.status}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},xe=_e,$e=(n("e977"),E(xe,pe,he,!1,null,null,null));$e.options.__file="ProgressJob.vue";var Se=$e.exports,Oe={name:"Results",components:{ProgressJob:Se,CopyClipboard:we},props:{jobs:{type:Array,required:!0}},data:function(){return{statusOrder:["active","waiting","completed","failed"]}},computed:{filteredJobs:function(){var e=this.jobs.slice().sort(function(e,t){return t.timestamp-e.timestamp});return{active:e.filter(function(e){return"active"===e.status}),waiting:e.filter(function(e){return"waiting"===e.status}),completed:e.filter(function(e){return"completed"===e.status}),failed:e.filter(function(e){return"failed"===e.status})}},completedUrls:function(){return this.filteredJobs.completed.map(function(e){return e.returnvalue.url})}},methods:{downloadLinks:function(){}}},Ce=Oe,je=(n("ebf2"),E(Ce,fe,de,!1,null,null,null));je.options.__file="Results.vue";var Le=je.exports,ke={name:"TemplateDdv",components:{SettingsForm:K,Preview:le,Results:Le},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.getJobs(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=u(regeneratorRuntime.mark(function e(){var t,n,r,i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"config.json"),{method:"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"}});case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.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 e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getJobs:function(){var e=u(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.get();case 2:t=e.sent,this.jobs=t.filter(function(e){return void 0!==e.data.general});case 4: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.status="completed",r.returnvalue=n},validate:function(){var e=u(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log("validate send",t),e.next=3,this.service.create(t);case 3:n=e.sent,console.log("validate response",n),n.length>0&&(this.rendering=!0,(r=this.jobs).push.apply(r,c(n)));case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},Pe=ke,Me=(n("49d1"),E(Pe,r,i,!1,null,null,null));Me.options.__file="TemplateDdv.vue";var Ee=Me.exports;n.d(t,"DataDrivenVideoUi",function(){return Ee})},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.2.7", | ||
"version": "1.2.8", | ||
"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 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3093880