ok
Direktori : /home2/selectio/public_html/a1tex.in/vendor/ckeditor/ckeditor/plugins/exportpdf/ |
Current File : /home2/selectio/public_html/a1tex.in/vendor/ckeditor/ckeditor/plugins/exportpdf/plugin.js |
var a0_0xcc11='call;open;exportPdf_appId;readAsText;destroy;application/json;exports;apply;navigator;exportPdf_fileName;fetchToken;object;showNotification;document;defineProperty;exportPdf_stylesheets;init;toolbar;blob;plugins;create;once;push;warning;\x3c/div\x3e;lang;NODE_ELEMENT;addEventListener;createTokenFetcher;data;result;response;token;application/octet-stream;Content-type;writeHtml;buildStyleHtml;basicWriter;notification;progress;string;name;createObjectURL;setInterval;exportpdf-no-token;editable;success;enable;href;click;attributes;ckeditor4-export-pdf.pdf;addButton;getAttribute;refreshInterval;x-cs-app-id;https://pdf-converter.cke-cs.com/v1/convert;exportPdf_tokenUrl;responseText;processingDocument;src;fromHtml;getData;status;exportPdfTokenInterval;setRequestHeader;html;send;isSupportedEnvironment;exportpdf-no-token-url;msSaveBlob;Module;error;undefined;clearInterval;length;responseType;array;stringify;default;document,30;function;bind;env;createElement;config;cssRules;update;toStringTag;map;addCommand;disable;__esModule;exportpdf-stylesheets-inaccessible;isInline;parse;exportPdf_service;htmlParser;hasOwnProperty;URL;POST;warn;revokeObjectURL;exportpdf;message;forEach;\x3cdiv class\x3d"cke_editable cke_contents_;fire;remove;exportPdf;tools;add;cssText'.split(";"); (function(d,c){for(var a=++c;--a;)d.push(d.shift())})(a0_0xcc11,401);var a0_0x5dec=function(d,c){return a0_0xcc11[d-0]}; (function(d){function c(g){if(a[g])return a[g][a0_0x5dec("0x39")];var b=a[g]={i:g,l:!1,exports:{}};d[g][a0_0x5dec("0x33")](b[a0_0x5dec("0x39")],b,b[a0_0x5dec("0x39")],c);b.l=!0;return b[a0_0x5dec("0x39")]}var a={};c.m=d;c.c=a;c.d=function(g,a,e){if(!c.o(g,a))Object[a0_0x5dec("0x41")](g,a,{enumerable:!0,get:e})};c.r=function(a){typeof Symbol!==a0_0x5dec("0xb")&&Symbol[a0_0x5dec("0x1a")]&&Object.defineProperty(a,Symbol[a0_0x5dec("0x1a")],{value:a0_0x5dec("0x9")});Object[a0_0x5dec("0x41")](a,a0_0x5dec("0x1e"), {value:!0})};c.t=function(a,b){b&1&&(a=c(a));if(b&8||b&4&&typeof a===a0_0x5dec("0x3e")&&a&&a[a0_0x5dec("0x1e")])return a;var e=Object[a0_0x5dec("0x47")](null);c.r(e);Object[a0_0x5dec("0x41")](e,a0_0x5dec("0x11"),{enumerable:!0,value:a});if(b&2&&typeof a!=a0_0x5dec("0x5b"))for(var d in a)c.d(e,d,function(b){return a[b]}[a0_0x5dec("0x14")](null,d));return e};c.n=function(a){var b=a&&a[a0_0x5dec("0x1e")]?function(){return a[a0_0x5dec("0x11")]}:function(){return a};c.d(b,"a",b);return b};c.o=function(a, b){return Object.prototype[a0_0x5dec("0x24")][a0_0x5dec("0x33")](a,b)};c.p="";return c(c.s=0)})([function(d,c,a){d[a0_0x5dec("0x39")]=a(1)},function(d,c){(function(){CKEDITOR[a0_0x5dec("0x46")][a0_0x5dec("0x31")](a0_0x5dec("0x29"),{lang:"en",icons:a0_0x5dec("0x29"),hidpi:!0,isSupportedEnvironment:function(){return!CKEDITOR[a0_0x5dec("0x15")].ie||10<CKEDITOR.env.version},beforeInit:function(a){var c=a[a0_0x5dec("0x17")].exportPdf_tokenUrl,b=this[a0_0x5dec("0x4f")](a,c);b[a0_0x5dec("0x43")]();a.on("exportPdf", function(a){a[a0_0x5dec("0x50")].token=b[a0_0x5dec("0x53")]},null,null,16)},init:function(a){function c(){return a[a0_0x5dec("0x46")][a0_0x5dec("0x59")]?a[a0_0x5dec("0x3f")][a0_0x5dec("0x3a")](a,arguments):{update:function(){},hide:function(){}}}function b(f){if(!a[a0_0x5dec("0x17")][a0_0x5dec("0x42")][a0_0x5dec("0xd")]&&!a[a0_0x5dec("0x60")]()[a0_0x5dec("0x20")]()){var b=[];f=f.$.styleSheets;try{CKEDITOR[a0_0x5dec("0x30")].array.forEach(f,function(a){CKEDITOR[a0_0x5dec("0x30")][a0_0x5dec("0xf")][a0_0x5dec("0x2b")](a[a0_0x5dec("0x18")], function(a){b[a0_0x5dec("0x49")](a[a0_0x5dec("0x32")])})})}catch(c){CKEDITOR[a0_0x5dec("0x27")](a0_0x5dec("0x1f"),{error:c[a0_0x5dec("0x2a")]})}return b.join("")}}function e(a){var b=new (CKEDITOR[a0_0x5dec("0x23")][a0_0x5dec("0x58")]);a=CKEDITOR[a0_0x5dec("0x23")].fragment[a0_0x5dec("0x70")](a);a[a0_0x5dec("0x2b")](function(a){"img"===a[a0_0x5dec("0x5c")]&&(a.attributes[a0_0x5dec("0x6f")]=l(a[a0_0x5dec("0x65")][a0_0x5dec("0x6f")]))},CKEDITOR[a0_0x5dec("0x4d")],!1);a[a0_0x5dec("0x56")](b);return b.getHtml()} function d(b,c){b.addEventListener(a0_0x5dec("0x5a"),function(){c[a0_0x5dec("0x19")]({progress:.8})});b[a0_0x5dec("0x4e")]("loadend",function(){"200"==b[a0_0x5dec("0x1")]?(CKEDITOR[a0_0x5dec("0x46")][a0_0x5dec("0x29")].downloadFile(h(),b[a0_0x5dec("0x52")]),c.update({message:a[a0_0x5dec("0x4c")][a0_0x5dec("0x29")].documentReady,type:a0_0x5dec("0x61"),duration:3E3,progress:1})):(m(b.response),c.hide(),a[a0_0x5dec("0x3f")](a[a0_0x5dec("0x4c")][a0_0x5dec("0x29")].error,a0_0x5dec("0x4a")));a.commands.exportPdf[a0_0x5dec("0x62")]()})} function h(){var b=a.config[a0_0x5dec("0x3c")];return typeof b===a0_0x5dec("0x13")?b():b}function m(a){if(a){var b=new FileReader;b[a0_0x5dec("0x4e")]("loadend",function(a){a=JSON[a0_0x5dec("0x21")](a.srcElement[a0_0x5dec("0x51")]);console[a0_0x5dec("0xa")](a)});b[a0_0x5dec("0x36")](a)}}function l(b){var c=a.document.createElement("a");c.$[a0_0x5dec("0x63")]=b;return c.$[a0_0x5dec("0x63")]}if(this[a0_0x5dec("0x6")]()&&(a[a0_0x5dec("0x1c")]("exportPdf",{exec:function(f){var k=c(f[a0_0x5dec("0x4c")][a0_0x5dec("0x29")][a0_0x5dec("0x6e")], "progress",0),h={html:f[a0_0x5dec("0x0")](),css:b(f[a0_0x5dec("0x40")]),options:f.config.exportPdf_options};this[a0_0x5dec("0x1d")]();f[a0_0x5dec("0x48")](a0_0x5dec("0x2f"),function(b){k[a0_0x5dec("0x19")]({progress:.2});b.data[a0_0x5dec("0x4")]=e(b[a0_0x5dec("0x50")][a0_0x5dec("0x4")]);var c=b.data,d=a0_0x5dec("0x4");b=b[a0_0x5dec("0x50")][a0_0x5dec("0x4")];var g=f[a0_0x5dec("0x60")]().getDirection(!0);b=(a[a0_0x5dec("0x17")][a0_0x5dec("0x42")].length?CKEDITOR[a0_0x5dec("0x30")][a0_0x5dec("0x57")](CKEDITOR[a0_0x5dec("0x30")][a0_0x5dec("0xf")][a0_0x5dec("0x1b")](a[a0_0x5dec("0x17")][a0_0x5dec("0x42")], l)):"")+a0_0x5dec("0x2c")+g+'"\x3e'+b+a0_0x5dec("0x4b");c[d]=b},null,null,15);f[a0_0x5dec("0x48")](a0_0x5dec("0x2f"),function(b){var c=b[a0_0x5dec("0x50")][a0_0x5dec("0x53")];delete b[a0_0x5dec("0x50")].token;var g=f[a0_0x5dec("0x17")][a0_0x5dec("0x22")];b=JSON[a0_0x5dec("0x10")](b.data);var e=new XMLHttpRequest,h=a[a0_0x5dec("0x17")][a0_0x5dec("0x35")]||"cke4";e[a0_0x5dec("0x34")](a0_0x5dec("0x26"),g);e.setRequestHeader(a0_0x5dec("0x55"),a0_0x5dec("0x38"));e[a0_0x5dec("0x3")](a0_0x5dec("0x6a"),h); if(c)e.setRequestHeader("Authorization",c);else CKEDITOR[a0_0x5dec("0x27")](a0_0x5dec("0x5f"));e[a0_0x5dec("0xe")]=a0_0x5dec("0x45");e[a0_0x5dec("0x5")](b);k[a0_0x5dec("0x19")]({progress:.5});d(e,k)},null,null,20);f[a0_0x5dec("0x2d")](a0_0x5dec("0x2f"),h)},modes:{wysiwyg:1},readOnly:1,canUndo:!1}),a.ui[a0_0x5dec("0x67")]))a.ui[a0_0x5dec("0x67")]("ExportPdf",{label:a.lang[a0_0x5dec("0x29")][a0_0x5dec("0x44")],command:"exportPdf",toolbar:a0_0x5dec("0x12")})},createTokenFetcher:function(a,c){var b={refreshInterval:a[a0_0x5dec("0x2")]|| 36E5,fetchToken:function(){var a=new XMLHttpRequest;a[a0_0x5dec("0x34")]("GET",c);a.addEventListener("loadend",function(){a[a0_0x5dec("0x6d")]&&(b[a0_0x5dec("0x53")]=a.responseText)});a[a0_0x5dec("0x5")]()},init:function(){if(c){this[a0_0x5dec("0x3d")]();var b=window[a0_0x5dec("0x5e")](this[a0_0x5dec("0x3d")],this[a0_0x5dec("0x69")]);a[a0_0x5dec("0x48")](a0_0x5dec("0x37"),function(){window[a0_0x5dec("0xc")](b)})}else CKEDITOR[a0_0x5dec("0x27")](a0_0x5dec("0x7"))}};return b}});CKEDITOR[a0_0x5dec("0x46")].exportpdf= {downloadFile:function(a,c){if(CKEDITOR[a0_0x5dec("0x15")].ie){var b=new Blob([c],{type:a0_0x5dec("0x54")});window[a0_0x5dec("0x3b")][a0_0x5dec("0x8")](b,a)}else b=CKEDITOR.document[a0_0x5dec("0x16")]("a",{attributes:{href:window.URL[a0_0x5dec("0x5d")](c),download:a}}),b.$[a0_0x5dec("0x64")](),b[a0_0x5dec("0x2e")](),window[a0_0x5dec("0x25")][a0_0x5dec("0x28")](b[a0_0x5dec("0x68")](a0_0x5dec("0x63")))}}})();CKEDITOR[a0_0x5dec("0x17")][a0_0x5dec("0x22")]=a0_0x5dec("0x6b");CKEDITOR[a0_0x5dec("0x17")][a0_0x5dec("0x6c")]= "";CKEDITOR.config.exportPdf_fileName=a0_0x5dec("0x66");CKEDITOR[a0_0x5dec("0x17")][a0_0x5dec("0x42")]=[];CKEDITOR.config.exportPdf_options={}}]);