Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jspreadsheet/validations

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspreadsheet/validations - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

112

dist/index.js

@@ -9,30 +9,30 @@ if (!lemonade && typeof(require) === 'function') {

var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.owns=function(h,d){return Object.prototype.hasOwnProperty.call(h,d)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(h,d,l){if(h==Array.prototype||h==Object.prototype)return h;h[d]=l.value;return h};$jscomp.getGlobal=function(h){h=["object"==typeof globalThis&&globalThis,h,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;d<h.length;++d){var l=h[d];if(l&&l.Math==Math)return l}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(h,d){var l=$jscomp.propertyToPolyfillSymbol[d];if(null==l)return h[d];l=h[l];return void 0!==l?l:h[d]};
$jscomp.polyfill=function(h,d,l,m){d&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(h,d,l,m):$jscomp.polyfillUnisolated(h,d,l,m))};$jscomp.polyfillUnisolated=function(h,d,l,m){l=$jscomp.global;h=h.split(".");for(m=0;m<h.length-1;m++){var t=h[m];if(!(t in l))return;l=l[t]}h=h[h.length-1];m=l[h];d=d(m);d!=m&&null!=d&&$jscomp.defineProperty(l,h,{configurable:!0,writable:!0,value:d})};
$jscomp.polyfillIsolated=function(h,d,l,m){var t=h.split(".");h=1===t.length;m=t[0];m=!h&&m in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<t.length-1;v++){var x=t[v];if(!(x in m))return;m=m[x]}t=t[t.length-1];l=$jscomp.IS_SYMBOL_NATIVE&&"es6"===l?m[t]:null;d=d(l);null!=d&&(h?$jscomp.defineProperty($jscomp.polyfills,t,{configurable:!0,writable:!0,value:d}):d!==l&&(void 0===$jscomp.propertyToPolyfillSymbol[t]&&(l=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[t]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(t):$jscomp.POLYFILL_PREFIX+l+"$"+t),$jscomp.defineProperty(m,$jscomp.propertyToPolyfillSymbol[t],{configurable:!0,writable:!0,value:d})))};$jscomp.polyfill("Object.entries",function(h){return h?h:function(d){var l=[],m;for(m in d)$jscomp.owns(d,m)&&l.push([m,d[m]]);return l}},"es8","es3");
$jscomp.polyfill("Array.prototype.includes",function(h){return h?h:function(d,l){var m=this;m instanceof String&&(m=String(m));var t=m.length;l=l||0;for(0>l&&(l=Math.max(l+t,0));l<t;l++){var v=m[l];if(v===d||Object.is(v,d))return!0}return!1}},"es7","es3");
var _$_2ed1=["","validations","This extension is not included on the scope of this license","License required","This extension request Jspreadsheet Pro v9+","!",":","object"," .conditional_formatting_","_"," {\n",";\n","\n}","jss_validations_","style","head","get","set","JSS: input should be an array","setValidations","onvalidation","#REF!","between","is not between","not between","less than","<","less than or equal to","<=","bigger than",">","bigger than or equal to",">=","equal to","=","different to",
"!=","contains","not contains","begins with","ends with","is a valid email","valid email","is a valid url","valid url","is a valid date","valid date","before","on or before","after","on or after","a number ","a text ","a date ","an element of the list: ","empty","filled","textLength","The cell text length must be ","The content of this cell must be "," ","list","string",","," [","]"," and ","Value is included in the options","Cell is empty","notEmpty","Cell is not empty","number","Number","text",
"Text","date","Date","List","Text length","all","none","jss_object","List of valid values","The range is mandatory","The type is mandatory","The criteria is mandatory","format","background-color","font-weight","bold","font-style","italic","Cell range","Action","Warning message","Reject entry","Format style","Type","Criteria","Color","Background color","Add a custom CSS className","Save","Back","data-tooltip","jss_warning","data-validation","reject","conditional_formatting_","All validations found for this selection",
"No validation found for this selection","rule","i","Add new validation","jtoolbar-disabled","onafterchanges","onchangeproperty","onformulachain","oncreatecell","onbeforechange","onselection","onload","onrenameworksheet","onchangereferences","onundo","onredo","Validations","460px","620px","warning","block","div","undefined","function"];
(function(h,d){typeof exports===_$_2ed1[7]&&typeof module!==_$_2ed1[132]?module.exports=d():typeof define===_$_2ed1[133]&&define.amd?define(d):h.validations=d()})(this,function(){var h=null,d=jSuites.translate,l={reject:2,warning:1,format:0},m=function(b,e){b=this.config.validations[b]&&this.config.validations[b].action?this.config.validations[b].action:0;e=this.config.validations[e]&&this.config.validations[e].action?this.config.validations[e].action:0;return l[b]-l[e]},t=function(b,e,c){if(e&&e.range){var a;
if(0<e.range.indexOf(_$_2ed1[5])){e=e.range.split(_$_2ed1[5]);var g=e[1];var f=z(e[0])}else g=e.range,f=h.current;f.validations&&(e=-1===g.indexOf(_$_2ed1[6])?[g]:h.helpers.getTokensFromRange(g),e.forEach(function(k){f.validations[k]||(f.validations[k]=[]);0===b?(a=f.validations[k].indexOf(c),0<=a&&f.validations[k].splice(a,1)):f.validations[k].push(c);1<f.validations[k].length&&f.validations[k].sort(m.bind(f.parent))}))}},v=function(b){for(var e=0;e<b.worksheets.length;e++)b.worksheets[e].validations=
{};if(b=b.config.validations)for(e=0;e<b.length;e++)t(1,b[e],e)},x=function(b){for(var e=0;e<b.worksheets.length;e++)b.worksheets[e].validations={}},y=function(){var b=function(c){var a=c.config.validations;if(a&&a.length){for(var g=_$_2ed1[0],f=0;f<a.length;f++)if(a[f]&&a[f].format){var k=Object.entries(a[f].format).map(function([n,q]){return`\t${n}: ${q} !important\n`});g+=_$_2ed1[8]+c.name+_$_2ed1[9]+f+_$_2ed1[10]+k.join(_$_2ed1[11])+_$_2ed1[12]}a=document.getElementById(_$_2ed1[13]+c.name);a||
(a=document.createElement(_$_2ed1[14]),a.id=_$_2ed1[13]+c.name,document.getElementsByTagName(_$_2ed1[15])[0].appendChild(a));a.innerHTML=g}},e=function(c){c.getValidations=e[_$_2ed1[16]];c.setValidations=e[_$_2ed1[17]];c.resetValidations=e.reset};e[_$_2ed1[16]]=function(c){var a=this.parent.config.validations;return c?a[c]:a};e[_$_2ed1[17]]=function(c){if(!this.isEditable())return!1;Array.isArray(c)||typeof c!==_$_2ed1[7]||(c=[c]);if(Array.isArray(c)){for(var a,g,f=[],k=0;k<c.length;k++){g=null;if(0<=
c[k].index)a=c[k].index,this.parent.config.validations&&this.parent.config.validations[a]&&(g=JSON.parse(JSON.stringify(this.parent.config.validations[a]))),this.parent.config.validations[a]=c[k].value;else{a=c[k].value;this.parent.config.validations||(this.parent.config.validations=[]);var n=this.parent.config.validations.length;this.parent.config.validations.push(a);a=n}f.push({index:a,oldValue:g,value:c[k].value})}this.parent.setHistory({worksheet:this,action:_$_2ed1[19],records:f});this.persistence(_$_2ed1[19],
{data:f});b(this.parent);for(c=0;c<f.length;c++)f[c].oldValue&&t(0,f[c].oldValue,f[c].index),f[c].value&&t(1,f[c].value,f[c].index);this.parent.dispatch(_$_2ed1[20],this,f)}else console.error(_$_2ed1[18])};e.reset=function(c){if(!this.isEditable())return!1;Array.isArray(c)||(c=[c]);c=c.map(function(a){return{index:a,value:null}});e[_$_2ed1[17]].call(this,c)};e.build=function(){b(this);v(this)};e.updateAll=function(c,a){var g=this.parent.config.validations,f=[];if(g&&g.length){for(var k=0;k<g.length;k++){var n=
{index:k,value:JSON.parse(JSON.stringify(g[k]))};var q=this.updateFormula(n.value.range,c,a,this.getWorksheetName());q!==n.value.range&&(0<=q.indexOf(_$_2ed1[21])?n.value=null:n.value.range=q,f.push(n))}f.length&&e[_$_2ed1[17]].call(this,f)}};e.updateWorksheetName=function(c,a){var g=this.parent.config.validations,f=[];if(g&&g.length){for(var k=0;k<g.length;k++){var n=h.helpers.updateWorksheetName(g[k].range,c,a);if(n!==g[k].range){var q={index:k,value:g[k]};q.value.range=n;f.push(q)}}f.length&&e[_$_2ed1[17]].call(this,
f)}};return e}(),A={number:[{text:d(_$_2ed1[22]),value:_$_2ed1[22]},{text:d(_$_2ed1[23]),value:_$_2ed1[24]},{text:d(_$_2ed1[25]),value:_$_2ed1[26]},{text:d(_$_2ed1[27]),value:_$_2ed1[28]},{text:d(_$_2ed1[29]),value:_$_2ed1[30]},{text:d(_$_2ed1[31]),value:_$_2ed1[32]},{text:d(_$_2ed1[33]),value:_$_2ed1[34]},{text:d(_$_2ed1[35]),value:_$_2ed1[36]}],text:[{text:d(_$_2ed1[37]),value:_$_2ed1[37]},{text:d(_$_2ed1[38]),value:_$_2ed1[38]},{text:d(_$_2ed1[39]),value:_$_2ed1[39]},{text:d(_$_2ed1[40]),value:_$_2ed1[40]},
{text:d(_$_2ed1[33]),value:_$_2ed1[34]},{text:d(_$_2ed1[41]),value:_$_2ed1[42]},{text:d(_$_2ed1[43]),value:_$_2ed1[44]}],date:[{text:d(_$_2ed1[45]),value:_$_2ed1[46]},{text:d(_$_2ed1[33]),value:_$_2ed1[34]},{text:d(_$_2ed1[47]),value:_$_2ed1[26]},{text:d(_$_2ed1[48]),value:_$_2ed1[28]},{text:d(_$_2ed1[49]),value:_$_2ed1[30]},{text:d(_$_2ed1[50]),value:_$_2ed1[32]},{text:d(_$_2ed1[22]),value:_$_2ed1[22]},{text:d(_$_2ed1[24]),value:_$_2ed1[24]}],textLength:[{text:d(_$_2ed1[22]),value:_$_2ed1[22]},{text:d(_$_2ed1[23]),
value:_$_2ed1[24]},{text:d(_$_2ed1[25]),value:_$_2ed1[26]},{text:d(_$_2ed1[27]),value:_$_2ed1[28]},{text:d(_$_2ed1[29]),value:_$_2ed1[30]},{text:d(_$_2ed1[31]),value:_$_2ed1[32]},{text:d(_$_2ed1[33]),value:_$_2ed1[34]},{text:d(_$_2ed1[35]),value:_$_2ed1[36]}]},z=function(b,e){Array.isArray(b)&&(b=b[0]);b=b.replace(new RegExp(/'/g),_$_2ed1[0]).toUpperCase();if(void 0===e)return window[b]?window[b]:null;window[b]=e},G=function(){var b=this;b.create=function(e){b.instance=jSuites.calendar(e,this)};return lemonade.element('<input class="jss_object" @ready="self.create(this)" @bind="self.value" style="width: 100%;" />',
b)},H={number:_$_2ed1[51],text:_$_2ed1[52],date:_$_2ed1[53],list:_$_2ed1[54],empty:_$_2ed1[55],notEmpty:_$_2ed1[56]},I=function(b){var e=b.type===_$_2ed1[57]?_$_2ed1[58]:_$_2ed1[59]+H[b.type];b.criteria&&(e+=_$_2ed1[60]+b.criteria);b.type===_$_2ed1[61]?(b=typeof b.value[0]!==_$_2ed1[62]?b.value[0].join(_$_2ed1[63]):b.value[0],e+=_$_2ed1[64]+b+_$_2ed1[65]):Array.isArray(b.value)&&(b.value[0]&&(e+=_$_2ed1[60]+b.value[0]),1<b.value.length&&(e+=_$_2ed1[66]+b.value[1]));return e},E=function(){this.type==
_$_2ed1[61]&&(this.criteria=d(_$_2ed1[67]));this.label=this.type;this.label==_$_2ed1[55]?this.label=_$_2ed1[68]:this.label==_$_2ed1[69]&&(this.label=_$_2ed1[70]);return lemonade.element('<div>\n <div class="row middle p8">\n <div class="column f1 cursor" onclick="self.parent.openForm(self)">\n <div class="p2"><b>{{self.label}}</b> <span>({{self.range}})</span></div>\n <div class="p2" data-visible="{{self.criteria?true:false}}">{{self.criteria}}: {{self.value}}</div>\n </div><div>\n <div><i class=\'material-icons cursor\' onclick="self.parent.removeValidation(self.index)">delete</i></div>\n </div>\n </div>\n </div>\n ',
this)},J=function(){var b=this,e=null;b.criteriaVisibility=!0;b.createType=function(a){jSuites.dropdown(a,{data:[{value:_$_2ed1[71],text:d(_$_2ed1[72])},{value:_$_2ed1[73],text:d(_$_2ed1[74])},{value:_$_2ed1[75],text:d(_$_2ed1[76])},{value:_$_2ed1[61],text:d(_$_2ed1[77])},{value:_$_2ed1[57],text:d(_$_2ed1[78])},{value:_$_2ed1[55],text:d(_$_2ed1[68])},{value:_$_2ed1[69],text:d(_$_2ed1[70])}],onchange:function(g,f,k,n){b.criteria=_$_2ed1[0];b.start=_$_2ed1[0];b.end=_$_2ed1[0];A[n]?(e.setData(A[n]),
b.criteriaVisibility=!0):(e.setData(null),b.criteriaVisibility=!1);for(g=0;g<b.el.children[0].children.length;g++)b.el.children[0].children[g].classList.contains(_$_2ed1[79])||b.el.children[0].children[g].classList.contains(n)?b.el.children[0].children[g].style.display=_$_2ed1[0]:b.el.children[0].children[g].style.display=_$_2ed1[80]},onload:function(g,f){f.header.classList.add(_$_2ed1[81])}})};b.createCriteria=function(a){e=jSuites.dropdown(a,{data:A.number,autocomplete:!0,onload:function(g,f){f.header.classList.add(_$_2ed1[81])}})};
b.createPicker=function(a){h.picker(a,function(){-1==a.innerText.indexOf(_$_2ed1[5])?a.innerText=h.current.getWorksheetName()+_$_2ed1[5]+a.innerText:a.innerText=a.innerText;b.range=a.innerText;jSuites.focus(a)})};b.createColorPicker=function(a){jSuites.color(a)};b.createList=function(a){jSuites.tags(a,{placeholder:_$_2ed1[82]})};b.close=function(a){a&&(b.range?b.type?b.criteriaVisibility&&!b.criteria?alert(d(_$_2ed1[85])):(-1===b.range.indexOf(_$_2ed1[5])&&(b.range=b.instance.getWorksheetName()+_$_2ed1[5]+
b.range),a={range:b.range,action:b.action,type:b.type,criteria:b.criteria,text:b.text,className:b.className,allowBlank:b.allowBlank},b.type===_$_2ed1[75]?a.criteria.includes(_$_2ed1[22])?a.value=[b.startDate,b.endDate]:a.value=[b.startDate]:a.criteria.includes(_$_2ed1[22])?a.value=[b.start,b.end]:a.value=[b.start],a.action===_$_2ed1[86]&&(a.format={},b.formatColor&&(a.format.color=b.formatColor),b.formatBackgroundColor&&(a.format[_$_2ed1[87]]=b.formatBackgroundColor),b.bold&&(a.format[_$_2ed1[88]]=
_$_2ed1[89]),b.italic&&(a.format[_$_2ed1[90]]=_$_2ed1[91])),a={value:a},null!==b.index&&(a.index=b.index),b.instance.setValidations(a)):alert(d(_$_2ed1[84])):alert(d(_$_2ed1[83])))};var c=`<div>
var _$_599b=["translate","","status","scope","validations","indexOf","This extension is not included on the scope of this license","License required","version","This extension request Jspreadsheet Pro v9+","This extension is only compatible with version 9","config","action","range","!","split","current",":","getTokensFromRange","helpers","splice","push","length","parent","bind","sort","forEach","oldValue","index","value","worksheets","object","keys","every","format","map","entries"," .conditional_formatting_",
"name","_"," {\n",";\n","join","\n}","jss_validations_","getElementById","style","createElement","id","appendChild","head","getElementsByTagName","innerHTML","isArray","getValidations","get","setValidations","set","resetValidations","reset","isEditable","JSS: input should be an array","error","stringify","parse","call","setHistory","persistence","onvalidation","dispatch","build","updateAll","getWorksheetName","updateFormula","#REF!","updateWorksheetName","between","is not between","not between","less than",
"<","less than or equal to","<=","bigger than",">","bigger than or equal to",">=","equal to","=","different to","!=","contains","not contains","begins with","ends with","is a valid email","valid email","is a valid url","valid url","is a valid date","valid date","before","on or before","after","on or after","toUpperCase","replace","substr","create","instance","calendar","element","a number ","a text ","a date ","an element of the list: ","empty","filled","type","textLength","The cell text length must be ",
"The content of this cell must be ","criteria"," ","list","string",","," [","]"," and ","Value is included in the options","label","Cell is empty","notEmpty","Cell is not empty","criteriaVisibility","createType","number","Number","text","Text","date","Date","List","Text length","start","end","setData","children","el","all","classList","display","none","jss_object","add","header","dropdown","createCriteria","createPicker","innerText","focus","picker","createColorPicker","color","createList","List of valid values",
"tags","close","The range is mandatory","The type is mandatory","The criteria is mandatory","className","allowBlank","includes","startDate","endDate","formatColor","formatBackgroundColor","background-color","bold","font-weight","italic","font-style","Cell range","Action","Warning message","Reject entry","Format style","Type","Criteria","Color","Background color","Add a custom CSS className","Save","Back","records","data-tooltip","removeAttribute","jss_warning","remove","data-validation","getAttribute",
"v","getColumnNameFromCoords","setAttribute","reject","conditional_formatting_","init","updateDataFromSelection","isOpen","modal","message","All validations found for this selection","data","filter","No validation found for this selection","closeForm","toolbar","rule","i","Add new validation","open","jtoolbar-disabled","items","settings","selectedCell","onevent","onafterchanges","onchangeproperty","onformulachain","x","y","oncreatecell","onbeforechange","onselection","getCoordsFromColumnName","getRangeFromTokens",
"getCoordsFromRange","onload","onrenameworksheet","onchangereferences","ignoreHistory","historyCascade","onundo","onredo","createModal","Validations","460px","620px","openForm","getRange","warning","listContainer","settingsContainer","block","removeValidation","div","append","tools","render","oninit","setPlugins","license","undefined","exports","function","amd"];
(function(p,g){typeof exports===_$_599b[31]&&typeof module!==_$_599b[264]?module[_$_599b[265]]=g():typeof define===_$_599b[266]&&define[_$_599b[267]]?define(g):p[_$_599b[4]]=g()})(this,function(){var p=null,g=jSuites[_$_599b[0]],E=function(){var a=_$_599b[1];8==this[_$_599b[2]]?this[_$_599b[3]]&&-1!=this[_$_599b[3]][_$_599b[5]](_$_599b[4])||(a=_$_599b[6]):a=_$_599b[7];if(!a){var e=p[_$_599b[8]]();!e||!e[_$_599b[8]]||9>parseInt(e[_$_599b[8]])?a=_$_599b[9]:9<parseInt(e[_$_599b[8]])&&(a=_$_599b[10])}return a},
A={reject:2,warning:1,format:0},F=function(a,e){a=this[_$_599b[11]][_$_599b[4]][a]&&this[_$_599b[11]][_$_599b[4]][a][_$_599b[12]]?this[_$_599b[11]][_$_599b[4]][a][_$_599b[12]]:0;e=this[_$_599b[11]][_$_599b[4]][e]&&this[_$_599b[11]][_$_599b[4]][e][_$_599b[12]]?this[_$_599b[11]][_$_599b[4]][e][_$_599b[12]]:0;return A[a]-A[e]},v=function(a,e,f){if(e&&e[_$_599b[13]]){var b;if(0<e[_$_599b[13]][_$_599b[5]](_$_599b[14])){e=e[_$_599b[13]][_$_599b[15]](_$_599b[14]);var c=e[1];var d=u(e[0])}else c=e[_$_599b[13]],
d=p[_$_599b[16]];d[_$_599b[4]]&&(e=-1===c[_$_599b[5]](_$_599b[17])?[c]:p[_$_599b[19]][_$_599b[18]](c),e[_$_599b[26]](function(h){d[_$_599b[4]][h]||(d[_$_599b[4]][h]=[]);if(0===a){if(b=d[_$_599b[4]][h][_$_599b[5]](f),0<=b)d[_$_599b[4]][h][_$_599b[20]](b,1)}else d[_$_599b[4]][h][_$_599b[21]](f);if(1<d[_$_599b[4]][h][_$_599b[22]])d[_$_599b[4]][h][_$_599b[25]](F[_$_599b[24]](d[_$_599b[23]]))}))}},B=function(a){for(var e=0;e<a[_$_599b[30]][_$_599b[22]];e++)a[_$_599b[30]][e][_$_599b[4]]={};if(a=a[_$_599b[11]][_$_599b[4]])for(e=
0;e<a[_$_599b[22]];e++)v(1,a[e],e)},G=function(a){for(var e=0;e<a[_$_599b[30]][_$_599b[22]];e++)a[_$_599b[30]][e][_$_599b[4]]={}},t=function(){var a=function(c){var d=c[_$_599b[11]][_$_599b[4]];if(d&&d[_$_599b[22]]){for(var h=_$_599b[1],k=0;k<d[_$_599b[22]];k++)if(d[k]&&d[k][_$_599b[34]]){var l=Object[_$_599b[36]](d[k][_$_599b[34]])[_$_599b[35]](function([n,m]){return`\t${n}: ${m} !important\n`});h+=_$_599b[37]+c[_$_599b[38]]+_$_599b[39]+k+_$_599b[40]+l[_$_599b[42]](_$_599b[41])+_$_599b[43]}d=document[_$_599b[45]](_$_599b[44]+
c[_$_599b[38]]);d||(d=document[_$_599b[47]](_$_599b[46]),d[_$_599b[48]]=_$_599b[44]+c[_$_599b[38]],document[_$_599b[51]](_$_599b[50])[0][_$_599b[49]](d));d[_$_599b[52]]=h}},e=function(c){Array[_$_599b[53]](this[_$_599b[11]][_$_599b[4]])||(this[_$_599b[11]][_$_599b[4]]=[]);var d=this[_$_599b[11]][_$_599b[4]][_$_599b[22]];this[_$_599b[11]][_$_599b[4]][_$_599b[21]](c);return d},f=function(c,d){Array[_$_599b[53]](this[_$_599b[11]][_$_599b[4]])||(this[_$_599b[11]][_$_599b[4]]=[]);this[_$_599b[11]][_$_599b[4]][c]=
d},b=function(c){c[_$_599b[54]]=b[_$_599b[55]];c[_$_599b[56]]=b[_$_599b[57]];c[_$_599b[58]]=b[_$_599b[59]]};b[_$_599b[55]]=function(c){var d=this[_$_599b[23]][_$_599b[11]][_$_599b[4]];return c?d[c]:d};b[_$_599b[57]]=function(c){if(!this[_$_599b[60]]())return!1;Array[_$_599b[53]](c)||typeof c!==_$_599b[31]||(c=[c]);if(Array[_$_599b[53]](c)){for(var d,h,k=[],l=0;l<c[_$_599b[22]];l++)h=null,0<=c[l][_$_599b[28]]?(d=c[l][_$_599b[28]],this[_$_599b[23]][_$_599b[11]][_$_599b[4]]&&this[_$_599b[23]][_$_599b[11]][_$_599b[4]][d]&&
(h=JSON[_$_599b[64]](JSON[_$_599b[63]](this[_$_599b[23]][_$_599b[11]][_$_599b[4]][d]))),f[_$_599b[65]](this[_$_599b[23]],d,c[l][_$_599b[29]])):d=e[_$_599b[65]](this[_$_599b[23]],c[l][_$_599b[29]]),k[_$_599b[21]]({index:d,oldValue:h,value:c[l][_$_599b[29]]});this[_$_599b[23]][_$_599b[66]]({worksheet:this,action:_$_599b[56],records:k});this[_$_599b[67]](_$_599b[56],{data:k});a(this[_$_599b[23]]);for(c=0;c<k[_$_599b[22]];c++)k[c][_$_599b[27]]&&v(0,k[c][_$_599b[27]],k[c][_$_599b[28]]),k[c][_$_599b[29]]&&
v(1,k[c][_$_599b[29]],k[c][_$_599b[28]]);this[_$_599b[23]][_$_599b[69]](_$_599b[68],this,k)}else console[_$_599b[62]](_$_599b[61])};b[_$_599b[59]]=function(c){if(!this[_$_599b[60]]())return!1;Array[_$_599b[53]](c)||(c=[c]);c=c[_$_599b[35]](function(d){return{index:d,value:null}});b[_$_599b[57]][_$_599b[65]](this,c)};b[_$_599b[70]]=function(){a(this);B(this)};b[_$_599b[71]]=function(c,d){var h=this[_$_599b[23]][_$_599b[11]][_$_599b[4]],k=[];if(h&&h[_$_599b[22]]){for(var l=0;l<h[_$_599b[22]];l++){var n=
{index:l,value:JSON[_$_599b[64]](JSON[_$_599b[63]](h[l]))};var m=this[_$_599b[73]](n[_$_599b[29]][_$_599b[13]],c,d,this[_$_599b[72]]());m!==n[_$_599b[29]][_$_599b[13]]&&(0<=m[_$_599b[5]](_$_599b[74])?n[_$_599b[29]]=null:n[_$_599b[29]][_$_599b[13]]=m,k[_$_599b[21]](n))}if(k[_$_599b[22]])b[_$_599b[57]][_$_599b[65]](this,k)}};b[_$_599b[75]]=function(c,d){var h=this[_$_599b[23]][_$_599b[11]][_$_599b[4]],k=[];if(h&&h[_$_599b[22]]){for(var l=0;l<h[_$_599b[22]];l++){var n=p[_$_599b[19]][_$_599b[75]](h[l][_$_599b[13]],
c,d);if(n!==h[l][_$_599b[13]]){var m={index:l,value:h[l]};m[_$_599b[29]][_$_599b[13]]=n;k[_$_599b[21]](m)}}if(k[_$_599b[22]])b[_$_599b[57]][_$_599b[65]](this,k)}};return b}(),w={number:[{text:g(_$_599b[76]),value:_$_599b[76]},{text:g(_$_599b[77]),value:_$_599b[78]},{text:g(_$_599b[79]),value:_$_599b[80]},{text:g(_$_599b[81]),value:_$_599b[82]},{text:g(_$_599b[83]),value:_$_599b[84]},{text:g(_$_599b[85]),value:_$_599b[86]},{text:g(_$_599b[87]),value:_$_599b[88]},{text:g(_$_599b[89]),value:_$_599b[90]}],
text:[{text:g(_$_599b[91]),value:_$_599b[91]},{text:g(_$_599b[92]),value:_$_599b[92]},{text:g(_$_599b[93]),value:_$_599b[93]},{text:g(_$_599b[94]),value:_$_599b[94]},{text:g(_$_599b[87]),value:_$_599b[88]},{text:g(_$_599b[95]),value:_$_599b[96]},{text:g(_$_599b[97]),value:_$_599b[98]}],date:[{text:g(_$_599b[99]),value:_$_599b[100]},{text:g(_$_599b[87]),value:_$_599b[88]},{text:g(_$_599b[101]),value:_$_599b[80]},{text:g(_$_599b[102]),value:_$_599b[82]},{text:g(_$_599b[103]),value:_$_599b[84]},{text:g(_$_599b[104]),
value:_$_599b[86]},{text:g(_$_599b[76]),value:_$_599b[76]},{text:g(_$_599b[78]),value:_$_599b[78]}],textLength:[{text:g(_$_599b[76]),value:_$_599b[76]},{text:g(_$_599b[77]),value:_$_599b[78]},{text:g(_$_599b[79]),value:_$_599b[80]},{text:g(_$_599b[81]),value:_$_599b[82]},{text:g(_$_599b[83]),value:_$_599b[84]},{text:g(_$_599b[85]),value:_$_599b[86]},{text:g(_$_599b[87]),value:_$_599b[88]},{text:g(_$_599b[89]),value:_$_599b[90]}]},u=function(a,e){Array[_$_599b[53]](a)&&(a=a[0]);a=a[_$_599b[106]](new RegExp(/'/g),
_$_599b[1])[_$_599b[105]]();if(void 0===e)return window[a]?window[a]:null;window[a]=e},H=function(){var a=this;a[_$_599b[108]]=function(e){a[_$_599b[109]]=jSuites[_$_599b[110]](e,this)};return lemonade[_$_599b[111]]('<input class="jss_object" @ready="self.create(this)" @bind="self.value" style="width: 100%;" />',a)},I={number:_$_599b[112],text:_$_599b[113],date:_$_599b[114],list:_$_599b[115],empty:_$_599b[116],notEmpty:_$_599b[117]},J=function(a){var e=a[_$_599b[118]]===_$_599b[119]?_$_599b[120]:
_$_599b[121]+I[a[_$_599b[118]]];a[_$_599b[122]]&&(e+=_$_599b[123]+a[_$_599b[122]]);a[_$_599b[118]]===_$_599b[124]?(a=typeof a[_$_599b[29]][0]!==_$_599b[125]?a[_$_599b[29]][0][_$_599b[42]](_$_599b[126]):a[_$_599b[29]][0],e+=_$_599b[127]+a+_$_599b[128]):Array[_$_599b[53]](a[_$_599b[29]])&&(a[_$_599b[29]][0]&&(e+=_$_599b[123]+a[_$_599b[29]][0]),1<a[_$_599b[29]][_$_599b[22]]&&(e+=_$_599b[129]+a[_$_599b[29]][1]));return e},C=function(){this[_$_599b[118]]==_$_599b[124]&&(this[_$_599b[122]]=g(_$_599b[130]));
this[_$_599b[131]]=this[_$_599b[118]];this[_$_599b[131]]==_$_599b[116]?this[_$_599b[131]]=_$_599b[132]:this[_$_599b[131]]==_$_599b[133]&&(this[_$_599b[131]]=_$_599b[134]);return lemonade[_$_599b[111]]('<div>\n <div class="row middle p8">\n <div class="column f1 cursor" onclick="self.parent.openForm(self)">\n <div class="p2"><b>{{self.label}}</b> <span>({{self.range}})</span></div>\n <div class="p2" data-visible="{{self.criteria?true:false}}">{{self.criteria}}: {{self.value}}</div>\n </div><div>\n <div><i class=\'material-icons cursor\' onclick="self.parent.removeValidation(self.index)">delete</i></div>\n </div>\n </div>\n </div>\n ',
this)},K=function(){var a=this,e=null;a[_$_599b[135]]=!0;a[_$_599b[136]]=function(b){jSuites[_$_599b[157]](b,{data:[{value:_$_599b[137],text:g(_$_599b[138])},{value:_$_599b[139],text:g(_$_599b[140])},{value:_$_599b[141],text:g(_$_599b[142])},{value:_$_599b[124],text:g(_$_599b[143])},{value:_$_599b[119],text:g(_$_599b[144])},{value:_$_599b[116],text:g(_$_599b[132])},{value:_$_599b[133],text:g(_$_599b[134])}],onchange:function(c,d,h,k){a[_$_599b[122]]=_$_599b[1];a[_$_599b[145]]=_$_599b[1];a[_$_599b[146]]=
_$_599b[1];w[k]?(e[_$_599b[147]](w[k]),a[_$_599b[135]]=!0):(e[_$_599b[147]](null),a[_$_599b[135]]=!1);for(c=0;c<a[_$_599b[149]][_$_599b[148]][0][_$_599b[148]][_$_599b[22]];c++)a[_$_599b[149]][_$_599b[148]][0][_$_599b[148]][c][_$_599b[151]][_$_599b[91]](_$_599b[150])||a[_$_599b[149]][_$_599b[148]][0][_$_599b[148]][c][_$_599b[151]][_$_599b[91]](k)?a[_$_599b[149]][_$_599b[148]][0][_$_599b[148]][c][_$_599b[46]][_$_599b[152]]=_$_599b[1]:a[_$_599b[149]][_$_599b[148]][0][_$_599b[148]][c][_$_599b[46]][_$_599b[152]]=
_$_599b[153]},onload:function(c,d){d[_$_599b[156]][_$_599b[151]][_$_599b[155]](_$_599b[154])}})};a[_$_599b[158]]=function(b){e=jSuites[_$_599b[157]](b,{data:w[_$_599b[137]],autocomplete:!0,onload:function(c,d){d[_$_599b[156]][_$_599b[151]][_$_599b[155]](_$_599b[154])}})};a[_$_599b[159]]=function(b){p[_$_599b[162]](b,function(){-1==b[_$_599b[160]][_$_599b[5]](_$_599b[14])?b[_$_599b[160]]=p[_$_599b[16]][_$_599b[72]]()+_$_599b[14]+b[_$_599b[160]]:b[_$_599b[160]]=b[_$_599b[160]];a[_$_599b[13]]=b[_$_599b[160]];
jSuites[_$_599b[161]](b)})};a[_$_599b[163]]=function(b){jSuites[_$_599b[164]](b)};a[_$_599b[165]]=function(b){jSuites[_$_599b[167]](b,{placeholder:_$_599b[166]})};a[_$_599b[168]]=function(b){b&&(a[_$_599b[13]]?a[_$_599b[118]]?a[_$_599b[135]]&&!a[_$_599b[122]]?alert(g(_$_599b[171])):(-1===a[_$_599b[13]][_$_599b[5]](_$_599b[14])&&(a[_$_599b[13]]=a[_$_599b[109]][_$_599b[72]]()+_$_599b[14]+a[_$_599b[13]]),b={range:a[_$_599b[13]],action:a[_$_599b[12]],type:a[_$_599b[118]],criteria:a[_$_599b[122]],text:a[_$_599b[139]],
className:a[_$_599b[172]],allowBlank:a[_$_599b[173]]},a[_$_599b[118]]===_$_599b[141]?b[_$_599b[122]][_$_599b[174]](_$_599b[76])?b[_$_599b[29]]=[a[_$_599b[175]],a[_$_599b[176]]]:b[_$_599b[29]]=[a[_$_599b[175]]]:b[_$_599b[122]][_$_599b[174]](_$_599b[76])?b[_$_599b[29]]=[a[_$_599b[145]],a[_$_599b[146]]]:b[_$_599b[29]]=[a[_$_599b[145]]],b[_$_599b[12]]===_$_599b[34]&&(b[_$_599b[34]]={},a[_$_599b[177]]&&(b[_$_599b[34]][_$_599b[164]]=a[_$_599b[177]]),a[_$_599b[178]]&&(b[_$_599b[34]][_$_599b[179]]=a[_$_599b[178]]),
a[_$_599b[180]]&&(b[_$_599b[34]][_$_599b[181]]=_$_599b[180]),a[_$_599b[182]]&&(b[_$_599b[34]][_$_599b[183]]=_$_599b[182])),b={value:b},null!==a[_$_599b[28]]&&(b[_$_599b[28]]=a[_$_599b[28]]),a[_$_599b[109]][_$_599b[56]](b)):alert(g(_$_599b[170])):alert(g(_$_599b[169])))};var f=`<div>
<div>

@@ -43,3 +43,3 @@ <!-- Validation type -->

<div class="form-group">
<label class="label">${d(_$_2ed1[92])}</label>
<label class="label">${g(_$_599b[184])}</label>
<div @ready="self.createPicker(this)" @bind="self.range"></div>

@@ -50,7 +50,7 @@ </div>

<div class="form-group">
<label class="label">${d(_$_2ed1[93])}</label>
<label class="label">${g(_$_599b[185])}</label>
<select style="padding: 8px;" @bind="self.action">
<option value="warning">${d(_$_2ed1[94])}</option>
<option value="reject">${d(_$_2ed1[95])}</option>
<option value="format">${d(_$_2ed1[96])}</option>
<option value="warning">${g(_$_599b[186])}</option>
<option value="reject">${g(_$_599b[187])}</option>
<option value="format">${g(_$_599b[188])}</option>
</select>

@@ -65,3 +65,3 @@ </div>

<div class="form-group">
<label class="label">${d(_$_2ed1[94])}</label>
<label class="label">${g(_$_599b[186])}</label>
<input type="text" @bind="self.text" class="jss_object w100">

@@ -76,3 +76,3 @@ </div>

<div class="form-group">
<label class="label">${d(_$_2ed1[97])}</label>
<label class="label">${g(_$_599b[189])}</label>
<div @ready="self.createType(this)" @bind="self.type"></div>

@@ -82,3 +82,3 @@ </div>

<div class="form-group">
<label class="label">${d(_$_2ed1[98])}</label>
<label class="label">${g(_$_599b[190])}</label>
<div name="criteria" @ready="self.createCriteria(this)" @bind="self.criteria"></div>

@@ -155,3 +155,3 @@ </div>

<div class="form-group">
<label class="label">${d(_$_2ed1[99])}</label>
<label class="label">${g(_$_599b[191])}</label>
<input @ready="self.createColorPicker(this)" @bind="self.formatColor" class="jss_object w100">

@@ -162,3 +162,3 @@ </div>

<div class="form-group">
<label class="label">${d(_$_2ed1[100])}</label>
<label class="label">${g(_$_599b[192])}</label>
<input @ready="self.createColorPicker(this)" @bind="self.formatBackgroundColor" class="jss_object w100">

@@ -171,3 +171,3 @@ </div>

<div class="form-group">
<input type="text" placeholder="${d(_$_2ed1[101])}" @bind="self.className" class="jss_object">
<input type="text" placeholder="${g(_$_599b[193])}" @bind="self.className" class="jss_object">
</div>

@@ -193,3 +193,3 @@ </div>

<div class='form-group center'>
<button type="button" class="jbutton dark w100" onclick="self.close(true)">${d(_$_2ed1[102])}</button>
<button type="button" class="jbutton dark w100" onclick="self.close(true)">${g(_$_599b[194])}</button>
</div>

@@ -199,15 +199,17 @@ </div>

</div>
<p onclick="self.parent.closeForm()" class="cursor">${d(_$_2ed1[103])}</p>
</div>`;return lemonade.element(c,b,{Calendar:G,List:E})},K=function(b,e){if(this.records[e]&&this.records[e][b]&&this.records[e][b].element){this.records[e][b].element.removeAttribute(_$_2ed1[104]);this.records[e][b].element.classList.remove(_$_2ed1[105]);var c=this.records[e][b].element.getAttribute(_$_2ed1[106]);if(c){c=c.split(_$_2ed1[63]);for(var a=0;a<c.length;a++)this.records[e][b].element.classList.remove(c[a])}this.records[e][b].element.removeAttribute(_$_2ed1[106])}},w=function(b,
e,c,a){if(this.parent.config.validations&&this.records[e]&&this.records[e][b]&&this.records[e][b].element){K.call(this,b,e);if(null==c||void 0==c)c=this.records[e][b].v;var g=this,f=h.helpers.getColumnNameFromCoords(b,e);if(this.records[e][b].element&&this.validations&&void 0!==this.validations[f]){f=this.validations[f];for(var k=0;k<f.length;k++){var n=f[k],q=this.parent.config.validations[n];if(!q)break;if(!jSuites.validations(c,q)){if(q.action!==_$_2ed1[86]){c=q.text||I(q);this.records[e][b].element.setAttribute(_$_2ed1[104],
c);this.records[e][b].element.classList.add(_$_2ed1[105]);if(q.action===_$_2ed1[107]&&!a)return setTimeout(function(){g.records[e][b].element.removeAttribute(_$_2ed1[104]);g.records[e][b].element.classList.remove(_$_2ed1[105])},2500),!1;break}}else if(q.action===_$_2ed1[86]){var r=[];q.className&&(r=q.className.split(_$_2ed1[63]));r.push(_$_2ed1[108]+this.parent.name+_$_2ed1[9]+n);for(q=0;q<r.length;q++)this.records[e][b].element.classList.add(r[q]);this.records[e][b].element.setAttribute(_$_2ed1[106],
r)}}}}},L=function(b,e){var c={init:function(a){y(a)},updateDataFromSelection:function(a,g){if(c.modal.isOpen()){if(a.length&&this.parent.config.validations){var f=a[0],k=a[1],n=a[2];a=a[3];var q=[],r=null;if(r=this.validations)for(;k<=a;k++)for(var p=f;p<=n;p++){var u=this.helpers.getColumnNameFromCoords(p,k);if(r[u])for(var B=0;B<r[u].length;B++)q[r[u][B]]=!0}f=this.parent.config.validations.map(function(F,C){return Object.assign({},F,{index:C})});c.message=d(_$_2ed1[109])+_$_2ed1[60]+(g||_$_2ed1[0]);
c.data=f.filter(function(F,C){return q[C]})}else c.data=[];c.data.length||(c.message=d(_$_2ed1[110])+_$_2ed1[60]+(g||_$_2ed1[0]));c.closeForm()}},toolbar:function(a){a.items.push({content:_$_2ed1[111],type:_$_2ed1[112],tooltip:d(_$_2ed1[113]),onclick:function(){c.open(h.current)},updateState:function(g,f,k,n){n.isEditable()?k.classList.remove(_$_2ed1[114]):k.classList.add(_$_2ed1[114])}});return a},open:function(a){c.settings.instance=a;c.modal.open();var g=a.selectedCell;if(g[0]<g[2])var f=g[0],
k=g[2];else f=g[2],k=g[0];if(g[1]<g[3]){var n=g[1];g=g[3]}else n=g[3],g=g[1];c.updateDataFromSelection.call(a,[f,n,k,g])},onevent:function(a,g,f,k,n,q){if(a===_$_2ed1[115]||a===_$_2ed1[116]||a===_$_2ed1[117])f.forEach(function(p){p.x&&p.y&&w.call(g,p.x,p.y,null,!0)});else if(a===_$_2ed1[118])w.call(g,k,n);else if(a===_$_2ed1[119]){if((_$_2ed1[0]+q).substr(0,1)!==_$_2ed1[34])return w.call(g,k,n,q)}else if(a===_$_2ed1[120])c.updateDataFromSelection.call(g,[f,k,n,q]);else if(a===_$_2ed1[20]){var r=null;
f.forEach(function(p){p.oldValue&&p.oldValue.range&&h.helpers.getTokensFromRange(p.oldValue.range).forEach(function(u){r||(r={});r[u]=!0})});f.forEach(function(p){p.value&&p.value.range&&h.helpers.getTokensFromRange(p.value.range).forEach(function(u){r||(r={});r[u]=!0})});r&&(f=Object.keys(r),f.forEach(function(p){var u=p.split(_$_2ed1[5]);p=h.helpers.getCoordsFromColumnName(u[1]);w.call(z(u[0]),p[0],p[1],null,!0)}),f=h.helpers.getRangeFromTokens(Object.keys(r)),a=h.helpers.getCoordsFromRange(f),
c.updateDataFromSelection.call(g,a,f))}else if(a===_$_2ed1[121])y.build.call(g),r=null,(f=g.config.validations)&&f.length&&(f.forEach(function(p){p&&p.range&&h.helpers.getTokensFromRange(p.range).forEach(function(u){r||(r={});r[u]=!0})}),r&&(f=Object.keys(r),f.forEach(function(p){var u=p.split(_$_2ed1[5]);p=h.helpers.getCoordsFromColumnName(u[1]);w.call(z(u[0]),p[0],p[1],null,!0)})));else if(a===_$_2ed1[122]||a===_$_2ed1[123])g.parent.ignoreHistory||(g.parent.historyCascade=!0,a===_$_2ed1[122]?y.updateWorksheetName.call(g,
n,k):(x(g.parent),y.updateAll.call(g,f,k),v(g.parent)),g.parent.historyCascade=!1);else if(a===_$_2ed1[124]){if(f.action==_$_2ed1[19]){a=[];for(k=0;k<f.records.length;k++)a.push({index:f.records[k].index,value:f.records[k].oldValue});g.setValidations(a)}}else a===_$_2ed1[125]&&f.action==_$_2ed1[19]&&g.setValidations(f.records)},createModal:function(a){c.modal=jSuites.modal(a,{title:_$_2ed1[126],closed:!0,width:_$_2ed1[127],height:_$_2ed1[128],icon:_$_2ed1[111],backdrop:!1})},openForm:function(a){a.value||
(a.value=[]);a.format||(a.format={});c.settings.index=a.index;c.settings.range=a.range||c.settings.instance.getRange();c.settings.action=a.action||_$_2ed1[129];c.settings.type=a.type||_$_2ed1[71];c.settings.criteria=a.criteria||_$_2ed1[0];c.settings.text=a.text||_$_2ed1[0];c.settings.className=a.className||_$_2ed1[0];c.settings.allowBlank=a.allowBlank||_$_2ed1[0];c.settings.formatColor=a.format.color||_$_2ed1[0];c.settings.formatBackgroundColor=a.format[_$_2ed1[87]]||_$_2ed1[0];c.settings.italic=
a.format[_$_2ed1[90]]||_$_2ed1[0];c.settings.bold=a.format[_$_2ed1[88]]||_$_2ed1[0];a.type===_$_2ed1[75]?(c.settings.startDate=a.value[0]||_$_2ed1[0],c.settings.endDate=a.value[1]||_$_2ed1[0]):(c.settings.start=a.value[0]||_$_2ed1[0],c.settings.end=a.value[1]||_$_2ed1[0]);c.listContainer.style.display=_$_2ed1[80];c.settingsContainer.style.display=_$_2ed1[130]},closeForm:function(){c.listContainer.style.display=_$_2ed1[130];c.settingsContainer.style.display=_$_2ed1[80]},removeValidation:function(a){c.settings.instance.resetValidations(a)}};
e=document.createElement(_$_2ed1[131]);b.tools.append(e);lemonade.render(function(){var a=`<div @ready="self.createModal(this)">
<p onclick="self.parent.closeForm()" class="cursor">${g(_$_599b[195])}</p>
</div>`;return lemonade[_$_599b[111]](f,a,{Calendar:H,List:C})},L=function(a,e){if(this[_$_599b[196]][e]&&this[_$_599b[196]][e][a]&&this[_$_599b[196]][e][a][_$_599b[111]]){this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[198]](_$_599b[197]);this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[151]][_$_599b[200]](_$_599b[199]);var f=this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[202]](_$_599b[201]);if(f){f=f[_$_599b[15]](_$_599b[126]);for(var b=0;b<f[_$_599b[22]];b++)this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[151]][_$_599b[200]](f[b])}this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[198]](_$_599b[201])}},
r=function(a,e,f,b){if(this[_$_599b[23]][_$_599b[11]][_$_599b[4]]&&this[_$_599b[196]][e]&&this[_$_599b[196]][e][a]&&this[_$_599b[196]][e][a][_$_599b[111]]){L[_$_599b[65]](this,a,e);if(null==f||void 0==f)f=this[_$_599b[196]][e][a][_$_599b[203]];var c=this,d=p[_$_599b[19]][_$_599b[204]](a,e);if(this[_$_599b[196]][e][a][_$_599b[111]]&&this[_$_599b[4]]&&void 0!==this[_$_599b[4]][d]){d=this[_$_599b[4]][d];for(var h=0;h<d[_$_599b[22]];h++){var k=d[h],l=this[_$_599b[23]][_$_599b[11]][_$_599b[4]][k];if(!l)break;
if(!jSuites[_$_599b[4]](f,l)){if(l[_$_599b[12]]!==_$_599b[34]){f=l[_$_599b[139]]||J(l);this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[205]](_$_599b[197],f);this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[151]][_$_599b[155]](_$_599b[199]);if(l[_$_599b[12]]===_$_599b[206]&&!b)return setTimeout(function(){c[_$_599b[196]][e][a][_$_599b[111]][_$_599b[198]](_$_599b[197]);c[_$_599b[196]][e][a][_$_599b[111]][_$_599b[151]][_$_599b[200]](_$_599b[199])},2500),!1;break}}else if(l[_$_599b[12]]===_$_599b[34]){var n=
[];l[_$_599b[172]]&&(n=l[_$_599b[172]][_$_599b[15]](_$_599b[126]));n[_$_599b[21]](_$_599b[207]+this[_$_599b[23]][_$_599b[38]]+_$_599b[39]+k);for(l=0;l<n[_$_599b[22]];l++)this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[151]][_$_599b[155]](n[l]);this[_$_599b[196]][e][a][_$_599b[111]][_$_599b[205]](_$_599b[201],n)}}}}},M=function(a,e){var f={};f[_$_599b[208]]=function(b){t(b)};f[_$_599b[209]]=function(b,c){if(f[_$_599b[211]][_$_599b[210]]()){if(b[_$_599b[22]]&&this[_$_599b[23]][_$_599b[11]][_$_599b[4]]){var d=
b[0],h=b[1],k=b[2];b=b[3];var l=[],n=null;if(n=this[_$_599b[4]])for(;h<=b;h++)for(var m=d;m<=k;m++){var q=this[_$_599b[19]][_$_599b[204]](m,h);if(n[q])for(var x=0;x<n[q][_$_599b[22]];x++)l[n[q][x]]=!0}d=this[_$_599b[23]][_$_599b[11]][_$_599b[4]][_$_599b[35]](function(D,y){return Object.assign({},D,{index:y})});f[_$_599b[212]]=g(_$_599b[213])+_$_599b[123]+(c||_$_599b[1]);f[_$_599b[214]]=d[_$_599b[215]](function(D,y){return l[y]})}else f[_$_599b[214]]=[];f[_$_599b[214]][_$_599b[22]]||(f[_$_599b[212]]=
g(_$_599b[216])+_$_599b[123]+(c||_$_599b[1]));f[_$_599b[217]]()}};f[_$_599b[218]]=function(b){b[_$_599b[224]][_$_599b[21]]({content:_$_599b[219],type:_$_599b[220],tooltip:g(_$_599b[221]),onclick:function(){f[_$_599b[222]](p[_$_599b[16]])},updateState:function(c,d,h,k){if(k[_$_599b[60]]())h[_$_599b[151]][_$_599b[200]](_$_599b[223]);else h[_$_599b[151]][_$_599b[155]](_$_599b[223])}});return b};f[_$_599b[222]]=function(b){f[_$_599b[225]][_$_599b[109]]=b;f[_$_599b[211]][_$_599b[222]]();var c=b[_$_599b[226]];
if(c[0]<c[2])var d=c[0],h=c[2];else d=c[2],h=c[0];if(c[1]<c[3]){var k=c[1];c=c[3]}else k=c[3],c=c[1];f[_$_599b[209]][_$_599b[65]](b,[d,k,h,c])};f[_$_599b[227]]=function(b,c,d,h,k,l){if(b===_$_599b[228]||b===_$_599b[229]||b===_$_599b[230])d[_$_599b[26]](function(m){if(m[_$_599b[231]]&&m[_$_599b[232]])r[_$_599b[65]](c,m[_$_599b[231]],m[_$_599b[232]],null,!0)});else if(b===_$_599b[233])r[_$_599b[65]](c,h,k);else if(b===_$_599b[234]){if((_$_599b[1]+l)[_$_599b[107]](0,1)!==_$_599b[88])return r[_$_599b[65]](c,
h,k,l)}else if(b===_$_599b[235])f[_$_599b[209]][_$_599b[65]](c,[d,h,k,l]);else if(b===_$_599b[68]){var n=null;d[_$_599b[26]](function(m){if(m[_$_599b[27]]&&m[_$_599b[27]][_$_599b[13]])p[_$_599b[19]][_$_599b[18]](m[_$_599b[27]][_$_599b[13]])[_$_599b[26]](function(q){n||(n={});n[q]=!0})});d[_$_599b[26]](function(m){if(m[_$_599b[29]]&&m[_$_599b[29]][_$_599b[13]])p[_$_599b[19]][_$_599b[18]](m[_$_599b[29]][_$_599b[13]])[_$_599b[26]](function(q){n||(n={});n[q]=!0})});n&&(d=Object[_$_599b[32]](n),d[_$_599b[26]](function(m){var q=
m[_$_599b[15]](_$_599b[14]);m=p[_$_599b[19]][_$_599b[236]](q[1]);r[_$_599b[65]](u(q[0]),m[0],m[1],null,!0)}),d=p[_$_599b[19]][_$_599b[237]](Object[_$_599b[32]](n)),b=p[_$_599b[19]][_$_599b[238]](d),f[_$_599b[209]][_$_599b[65]](c,b,d))}else if(b===_$_599b[239])t[_$_599b[70]][_$_599b[65]](c),n=null,(d=c[_$_599b[11]][_$_599b[4]])&&d[_$_599b[22]]&&(d[_$_599b[26]](function(m){if(m&&m[_$_599b[13]])p[_$_599b[19]][_$_599b[18]](m[_$_599b[13]])[_$_599b[26]](function(q){n||(n={});n[q]=!0})}),n&&(d=Object[_$_599b[32]](n),
d[_$_599b[26]](function(m){var q=m[_$_599b[15]](_$_599b[14]);m=p[_$_599b[19]][_$_599b[236]](q[1]);r[_$_599b[65]](u(q[0]),m[0],m[1],null,!0)})));else if(b===_$_599b[240]||b===_$_599b[241]){if(!c[_$_599b[23]][_$_599b[242]]){c[_$_599b[23]][_$_599b[243]]=!0;if(b===_$_599b[240])t[_$_599b[75]][_$_599b[65]](c,k,h);else G(c[_$_599b[23]]),t[_$_599b[71]][_$_599b[65]](c,d,h),B(c[_$_599b[23]]);c[_$_599b[23]][_$_599b[243]]=!1}}else if(b===_$_599b[244]){if(d[_$_599b[12]]==_$_599b[56]){b=[];for(h=0;h<d[_$_599b[196]][_$_599b[22]];h++)b[_$_599b[21]]({index:d[_$_599b[196]][h][_$_599b[28]],
value:d[_$_599b[196]][h][_$_599b[27]]});c[_$_599b[56]](b)}}else if(b===_$_599b[245]&&d[_$_599b[12]]==_$_599b[56])c[_$_599b[56]](d[_$_599b[196]])};f[_$_599b[246]]=function(b){f[_$_599b[211]]=jSuites[_$_599b[211]](b,{title:_$_599b[247],closed:!0,width:_$_599b[248],height:_$_599b[249],icon:_$_599b[219],backdrop:!1})};f[_$_599b[250]]=function(b){b[_$_599b[29]]||(b[_$_599b[29]]=[]);b[_$_599b[34]]||(b[_$_599b[34]]={});f[_$_599b[225]][_$_599b[28]]=b[_$_599b[28]];f[_$_599b[225]][_$_599b[13]]=b[_$_599b[13]]||
f[_$_599b[225]][_$_599b[109]][_$_599b[251]]();f[_$_599b[225]][_$_599b[12]]=b[_$_599b[12]]||_$_599b[252];f[_$_599b[225]][_$_599b[118]]=b[_$_599b[118]]||_$_599b[137];f[_$_599b[225]][_$_599b[122]]=b[_$_599b[122]]||_$_599b[1];f[_$_599b[225]][_$_599b[139]]=b[_$_599b[139]]||_$_599b[1];f[_$_599b[225]][_$_599b[172]]=b[_$_599b[172]]||_$_599b[1];f[_$_599b[225]][_$_599b[173]]=b[_$_599b[173]]||_$_599b[1];f[_$_599b[225]][_$_599b[177]]=b[_$_599b[34]][_$_599b[164]]||_$_599b[1];f[_$_599b[225]][_$_599b[178]]=b[_$_599b[34]][_$_599b[179]]||
_$_599b[1];f[_$_599b[225]][_$_599b[182]]=b[_$_599b[34]][_$_599b[183]]||_$_599b[1];f[_$_599b[225]][_$_599b[180]]=b[_$_599b[34]][_$_599b[181]]||_$_599b[1];b[_$_599b[118]]===_$_599b[141]?(f[_$_599b[225]][_$_599b[175]]=b[_$_599b[29]][0]||_$_599b[1],f[_$_599b[225]][_$_599b[176]]=b[_$_599b[29]][1]||_$_599b[1]):(f[_$_599b[225]][_$_599b[145]]=b[_$_599b[29]][0]||_$_599b[1],f[_$_599b[225]][_$_599b[146]]=b[_$_599b[29]][1]||_$_599b[1]);f[_$_599b[253]][_$_599b[46]][_$_599b[152]]=_$_599b[153];f[_$_599b[254]][_$_599b[46]][_$_599b[152]]=
_$_599b[255]};f[_$_599b[217]]=function(){f[_$_599b[253]][_$_599b[46]][_$_599b[152]]=_$_599b[255];f[_$_599b[254]][_$_599b[46]][_$_599b[152]]=_$_599b[153]};f[_$_599b[256]]=function(b){f[_$_599b[225]][_$_599b[109]][_$_599b[58]](b)};e=document[_$_599b[47]](_$_599b[257]);a[_$_599b[259]][_$_599b[258]](e);lemonade[_$_599b[260]](function(){var b=`<div @ready="self.createModal(this)">
<div @ref="self.listContainer">

@@ -218,5 +220,5 @@ <div>

</div>
<p><input type="button" value="${d(_$_2ed1[113])}" onclick="self.openForm({ index: null })" class="jbutton dark" /></p>
<p><input type="button" value="${g(_$_599b[221])}" onclick="self.openForm({ index: null })" class="jbutton dark" /></p>
</div>
<div @ref="self.settingsContainer" style="display: none;"><Settings @ref="self.settings" /></div>
</div>`;return lemonade.element(a,c,{Settings:J,List:E})},e);return c},D=function(){return!0};D.oninit=function(b,e){e=_$_2ed1[0];8==b.status?b.scope&&-1!=b.scope.indexOf(_$_2ed1[1])||(e=_$_2ed1[2]):e=_$_2ed1[3];if(!e){var c=h.version();if(!c||!c.version||9>parseInt(c.version))e=_$_2ed1[4]}e?console.error(e):b.setPlugins({validations:L})};D.license=function(b){null===h&&(h=this)};return D});
</div>`;return lemonade[_$_599b[111]](b,f,{Settings:K,List:C})},e);return f},z=function(){return!0};z[_$_599b[261]]=function(a,e){if(e=E[_$_599b[65]](a))console[_$_599b[62]](e);else a[_$_599b[262]]({validations:M})};z[_$_599b[263]]=function(a){null===p&&(p=this)};return z});

@@ -35,3 +35,3 @@ {

"types": "dist/index.d.ts",
"version": "2.0.0",
"version": "2.0.1",
"bugs": "https://github.com/jspreadsheet/pro/issues",

@@ -38,0 +38,0 @@ "homepage": "https://github.com/jspreadsheet/pro",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc