agenda-libre-ruby/public/assets/tinymce/plugins/template/plugin-0ea66983b1cfb34cd2ea8e73ec305c1156174ef0e932132bee2dfa4b99cbb4f5.js

2 lines
7.6 KiB
JavaScript
Raw Normal View History

2018-01-01 17:52:33 +01:00
!function(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("5",tinymce.util.Tools.resolve),g("1",["5"],function(a){return a("tinymce.PluginManager")}),h("c",Array),h("d",Error),g("6",["c","d"],function(a,b){var c=function(){},d=function(a){return function(){return a()}},e=function(a,b){return function(){return a(b.apply(null,arguments))}},f=function(a){return function(){return a}},g=function(a){return a},h=function(a,b){return a===b},i=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},j=function(a){return function(){return!a.apply(null,arguments)}},k=function(a){return function(){throw new b(a)}},l=function(a){return a()},m=function(a){a()},n=f(!1),o=f(!0);return{noop:c,noarg:d,compose:e,constant:f,identity:g,tripleEquals:h,curry:i,not:j,die:k,apply:l,call:m,never:n,always:o}}),g("8",["5"],function(a){return a("tinymce.util.Tools")}),g("e",["5"],function(a){return a("tinymce.util.XHR")}),g("f",["5"],function(a){return a("tinymce.dom.DOMUtils")}),g("9",["f"],function(a){var b=function(a){return a.getParam("template_cdate_classes","cdate")},c=function(a){return a.getParam("template_mdate_classes","mdate")},d=function(a){return a.getParam("template_selected_content_classes","selcontent")},e=function(a){return a.getParam("template_preview_replace_values")},f=function(a){return a.getParam("template_replace_values")},g=function(a){return a.templates},h=function(a){return a.getParam("template_cdate_format",a.getLang("template.cdate_format"))},i=function(a){return a.getParam("template_mdate_format",a.getLang("template.mdate_format"))},j=function(a){return a.getParam("template_popup_width",600)},k=function(b){return Math.min(a.DOM.getViewPort().h,b.getParam("template_popup_height",500))};return{getCreationDateClasses:b,getModificationDateClasses:c,getSelectedContentClasses:d,getPreviewReplaceValues:e,getTemplateReplaceValues:f,getTemplates:g,getCdateFormat:h,getMdateFormat:i,getDialogWidth:j,getDialogHeight:k}}),g("a",[],function(){var a=function(a,b){if(a=""+a,a.length<b)for(var c=0;c<b-a.length;c++)a="0"+a;return a},b=function(b,c,d){var e="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),g="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),h="January February March April May June July August September October November December".split(" ");return d=d||new Date,c=c.replace("%D","%m/%d/%Y"),c=c.replace("%r","%I:%M:%S %p"),c=c.replace("%Y",""+d.getFullYear()),c=c.replace("%y",""+d.getYear()),c=c.replace("%m",a(d.getMonth()+1,2)),c=c.replace("%d",a(d.getDate(),2)),c=c.replace("%H",""+a(d.getHours(),2)),c=c.replace("%M",""+a(d.getMinutes(),2)),c=c.replace("%S",""+a(d.getSeconds(),2)),c=c.replace("%I",""+((d.getHours()+11)%12+1)),c=c.replace("%p",""+(d.getHours()<12?"AM":"PM")),c=c.replace("%B",""+b.translate(h[d.getMonth()])),c=c.replace("%b",""+b.translate(g[d.getMonth()])),c=c.replace("%A",""+b.translate(f[d.getDay()])),c=c.replace("%a",""+b.translate(e[d.getDay()])),c=c.replace("%%","%")};return{getDateTime:b}}),g("7",["8","e","9","a"],function(a,b,c,d){var e=function(a,d){return function(){var e=c.getTemplates(a);return"function"==typeof e?void e(d):void("string"==typeof e?b.send({url:e,success:functio