/** * Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(e,define){define("ooxml/utils.min",["kendo.core.min"],e)}(function(){!function(){kendo.ooxml=kendo.ooxml||{},kendo.ooxml.createZip=function(){if("undefined"==typeof JSZip)throw Error("JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.");return new JSZip}}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/kendo-ooxml.min",["kendo.core.min","ooxml/utils.min"],e)}(function(){!function(e){function t(e){return R+e}function n(e,t){return t.indexOf(e)}function o(e){return(e+"").replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/\'/g,"'")}function r(e,t){var n,o="";for(n=0;n"+o(e)+"":''+o(e.src)+""}function s(e){var t=Math.floor(e/26)-1;return(t>=0?s(t):"")+String.fromCharCode(65+e%26)}function a(e,t){return s(t)+(e+1)}function d(e,t){return s(t)+"$"+(e+1)}function c(e){var t=e.frozenRows||(e.freezePane||{}).rowSplit||1;return t-1}function f(e){return(e/7*100+.5)/100}function m(e){return.75*e}function u(e){return(e+"").replace(/[\x00-\x08]/g,"").replace(/\n/g,"\r\n")}function p(e){var t=e;return t.length<6&&(t=t.replace(/(\w)/g,function(e,t){return t+t})),t=t.substring(1).toUpperCase(),t.length<8&&(t="FF"+t),t}function h(e){var t="thin";return 2===e?t="medium":3===e&&(t="thick"),t}function g(e,t){var n="";return t&&(n+="<"+e+' style="'+h(t.size)+'">',t.color&&(n+=''),n+=""),n}function x(e){return""+g("left",e.left)+g("right",e.right)+g("top",e.top)+g("bottom",e.bottom)+""}function y(e,t){var n,o,r,i=[],l=[];for(v(e,function(e,t){var n={_source:e,index:t,height:e.height,cells:[]};i.push(n),l[t]=n}),n=w(i).slice(0),o={rowData:i,rowsByIndex:l,mergedCells:t},r=0;r1||i>1)&&b(t.mergedCells,s+":"+a(u+r-1,l+i-1)),r>1)for(c=u+1;c\r',B=V+'\n \n \n \n \n ',W=function(e){var t=e.creator,n=e.lastModifiedBy,r=e.created,i=e.modified;return V+'\n \n '+o(t)+"\n "+o(n)+'\n '+o(r)+'\n '+o(i)+"\n"},U=function(e){var t=e.sheets;return V+'\n\n Microsoft Excel\n 0\n false\n \n \n \n Worksheets\n \n \n '+t.length+'\n \n \n \n \n '+i(t,function(e,t){return e.options.title?""+o(e.options.title)+"":"Sheet"+(t+1)+""})+"\n \n false\n false\n false\n 14.0300\n"},j=function(e){var t=e.count;return V+'\n\n \n \n \n \n \n '+r(t,function(e){return''})+'\n \n \n'},J=function(e){var t=e.sheets,n=e.filterNames,r=e.userNames;return V+'\n\n \n \n \n \n \n \n '+i(t,function(e,t){var n=e.options,r=n.name||n.title||"Sheet"+(t+1);return''})+"\n \n "+(n.length||r.length?"\n \n "+i(n,function(e){return'\n "})+"\n "+i(r,function(e){return'\n ":"")+'\n \n'},H=function(e){var t=e.frozenColumns,n=e.frozenRows,r=e.columns,s=e.defaults,a=e.data,d=e.index,c=e.mergeCells,u=e.autoFilter,p=e.filter,h=e.showGridLines,g=e.hyperlinks,x=e.validations,y=e.defaultCellStyleId,v=e.rtl;return V+'\n\n \n\n \n \n "+(n||t?'\n ':"")+'\n \n \n\n \n\n "+(null!=y||r&&r.length>0?"\n \n "+(r&&r.length?"":'\n ")+"\n "+i(r,function(e,t){var n="number"==typeof e.index?e.index+1:t+1;return 0===e.width?"':""})+"\n ":"")+"\n\n \n "+i(a,function(e,t){var n="number"==typeof e.index?e.index+1:t+1;return'\n \n "+i(e.data,function(e){return'\n \n "+(null!=e.formula?l(e.formula):"")+"\n "+(null!=e.value?""+o(e.value)+"":"")+"\n "})+"\n \n "})+"\n \n\n "+(u?'':p?F(p):"")+"\n\n "+(c.length?'\n \n '+i(c,function(e){return''})+"\n ":"")+"\n\n "+(x.length?"\n \n "+i(x,function(e){return'\n \n "+(e.formula1?""+o(e.formula1)+"":"")+"\n "+(e.formula2?""+o(e.formula2)+"":"")+"\n "})+"\n ":"")+"\n\n "+(g.length?"\n \n "+i(g,function(e,t){return'\n '})+"\n ":"")+'\n\n \n'},X=function(e){var t=e.count;return V+'\n\n '+r(t,function(e){return'\n '})+'\n \n \n'},Z=function(e){var t=e.hyperlinks;return V+'\n\n '+i(t,function(e,t){return'\n '})+"\n"},$=function(e){var t=e.count,n=e.uniqueCount,r=e.indexes;return V+'\n\n '+i(Object.keys(r),function(e){return'\n '+o(e.substring(1))+""})+"\n"},Q=function(e){var t=e.formats,n=e.fonts,r=e.fills,l=e.borders,s=e.styles;return V+'\n\n \n '+i(t,function(e,t){return'\n '})+'\n \n \n \n \n \n \n \n \n \n '+i(n,function(e){return'\n \n \n '+(e.bold?"":"")+"\n "+(e.italic?"":"")+"\n "+(e.underline?"":"")+"\n "+(e.color?'':'')+"\n "+(e.fontFamily?'\n \n \n ':'\n \n \n \n ')+"\n "})+'\n \n \n \n \n '+i(r,function(e){return"\n "+(e.background?'\n \n \n \n \n \n ':"")})+'\n \n \n \n '+i(l,x)+'\n \n \n \n \n \n \n '+i(s,function(e){return'\n \n "+(e.textAlign||e.verticalAlign||e.wrap?"\n \n ":"")+"\n \n "})+'\n \n \n \n \n \n \n'},G=new Date(1900,0,0),K=kendo.Class.extend({init:function(e,t,n,o){this.options=e,this._strings=t,this._styles=n,this._borders=o,this._validations={}},relsToXML:function(){var e=this.options.hyperlinks||[];return e.length?Z({hyperlinks:e}):""},toXML:function(e){var t,n,o,r,i,l,s,d=this,f=this.options.mergedCells||[],m=this.options.rows||[],u=y(m,f);this._readCells(u),t=this.options.filter,t&&"number"==typeof t.from&&"number"==typeof t.to?t={from:a(c(this.options),t.from),to:a(c(this.options),t.to)}:t&&t.ref&&t.columns&&(n=t,t=null),o=[];for(r in this._validations)Object.prototype.hasOwnProperty.call(d._validations,r)&&o.push(d._validations[r]);return i=null,this.options.defaultCellStyle&&(i=this._lookupStyle(this.options.defaultCellStyle)),l=this.options.freezePane||{},s=this.options.defaults||{},H({frozenColumns:this.options.frozenColumns||l.colSplit,frozenRows:this.options.frozenRows||l.rowSplit,columns:this.options.columns,defaults:s,data:u,index:e,mergeCells:f,autoFilter:t,filter:n,showGridLines:this.options.showGridLines,hyperlinks:this.options.hyperlinks||[],validations:o,defaultCellStyleId:i,rtl:void 0!==this.options.rtl?this.options.rtl:s.rtl})},_lookupString:function(e){var t,n="$"+e,o=this._strings.indexes[n];return void 0!==o?t=o:(t=this._strings.indexes[n]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,t},_lookupStyle:function(e){var t,o=JSON.stringify(e);return"{}"===o?0:(t=n(o,this._styles),t<0&&(t=this._styles.push(o)-1),t+1)},_lookupBorder:function(e){var t,o=JSON.stringify(e);if("{}"!==o)return t=n(o,this._borders),t<0&&(t=this._borders.push(o)-1),t+1},_readCells:function(e){var t,n,o,r,i,l=this;for(t=0;t\n '+i(n,function(e){return'\n \n '+o[e.filter](e)+"\n \n "})+"\n"},ie=function(e){var t=e.logic,n=e.criteria;return"\n\n"+i(n,function(e){var t=F.customOperator(e),n=F.customValue(e);return"'})+"\n"},le=function(e){var t=e.type;return''},se=function(e){var t=e.type,n=e.value;return''},ae=function(e){var t=e.blanks,n=e.values;return"\n "+i(n,function(e){return'\n '})+"\n "},F.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},F.customValue=function(e){function t(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(e.value);case"contains":case"doesnotcontain":return"*"+t(e.value)+"*";default:return e.value}},F.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e},kendo.deepExtend(kendo.ooxml,{IntlService:O,Workbook:ne,Worksheet:K})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/main.min",["kendo.core.min","ooxml/kendo-ooxml.min"],e)}(function(){!function(e){var t=kendo.ooxml.Workbook;kendo.ooxml.IntlService.register({toString:kendo.toString}),kendo.ooxml.Workbook=t.extend({toDataURL:function(){var e=t.fn.toDataURL.call(this);if("string"!=typeof e)throw Error("The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.");return e},toDataURLAsync:function(){var n=e.Deferred(),o=t.fn.toDataURL.call(this);return"string"==typeof o?o=n.resolve(o):o&&o.then&&o.then(function(e){n.resolve(e)},function(){n.reject()}),n.promise()}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.ooxml.min",["ooxml/main.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}); //# sourceMappingURL=kendo.ooxml.min.js.map