(window.webpackJsonp=window.webpackJsonp||[]).push([["bootstrap_env"],{"+1Jz":function(e,t,n){n("yXV3"),n("DQNa"),n("07d7"),n("4l63"),n("rB9j"),n("JfAA"),n("EnZy"),e.exports={Date__jap:function(e){if(""==e)return"";var t=$("#DPC_DEFAULT_FORMAT").val();return"yy/mm/dd"==t?e:"dd/mm/yy"==t?e.substr(6,4)+"/"+e.substr(3,2)+"/"+e.substr(0,2):e.substr(6,4)+"/"+e.substr(0,2)+"/"+e.substr(3,2)},Date__it:function(e){if(""==e||null==e)return"";var t=$("#DPC_DEFAULT_FORMAT").val();return"yy/mm/dd"==t?e:"dd/mm/yy"==t?e.substr(8,2)+"/"+e.substr(5,2)+"/"+e.substr(0,4):e.substr(5,2)+"/"+e.substr(8,2)+"/"+e.substr(0,4)},Date__OraNow:function(){var e=new Date,t=getFloat(e.getHours());t<=9&&(t="0"+t);var n=getFloat(e.getMinutes());return n<=9&&(t="0"+n),t+"."+n},Date__ggiuliano:function(e){for(var t=new Date(e.substr(0,4),parseInt(e.substr(5,2),10)-1,e.substr(8,2),4,0,0),n=t.getFullYear(),o=new Date(n,0,0),a=String(Math.floor((t-o)/864e5));a.length<3;)a="0"+a;return a},Date__add:function(e){function t(t,n,o){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,n){null==n&&(n=!1),t=parseInt(t,10);var o=new Date(e.substr(0,4),parseInt(e.substr(5,2),10)-1,e.substr(8,2),4,0,0);if(n){var a=Math.floor(Math.abs(t)/30);r=o.getMonth()+1,l=o.getFullYear();for(var i=0;i0&&(e=Date__add(e,t-30*a))}else{o.setDate(o.getDate()+t);var s=o.getDate().toString();1==s.length&&(s="0"+s);var r=(o.getMonth()+1).toString();1==r.length&&(r="0"+r);var l=o.getFullYear().toString();e=l+"/"+r+"/"+s}return e})),Date__sommamesi:function(e,t){var n=Array("31","28","31","30","31","30","31","31","30","31","30","31"),o=parseInt(e.substr(5,2),10)+t,a=(o%12).toString();"0"==a&&(a="12"),1==a.length&&(a="0"+a),yyyy=(Math.floor((o-1)/12)+parseInt(e.substr(0,4),10)).toString();var i=e.substr(8,2);anno_bisestile(yyyy)&&(n[1]=29);var s=n[a-1];return parseInt(i,10)>parseInt(s,10)?Date__add(yyyy+"/"+a+"/"+s,1):yyyy+"/"+a+"/"+i},Date__now:function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return t<10&&(t="0"+t),n<10&&(n="0"+n),(e.getFullYear?e.getFullYear():e.getYear())+"/"+n+"/"+t},Date__getGiorniFraDate:function(e,t){var n=parseInt(e.substr(6),10),o=parseInt(e.substr(3,2),10),a=parseInt(e.substr(0,2),10),i=parseInt(t.substr(6),10),s=parseInt(t.substr(3,2),10),r=parseInt(t.substr(0,2),10),l=new Date(n,o-1,a),u=new Date(i,s-1,r);return round(new String((u-l)/864e5))},anno_bisestile:function(e){return e%4==0&&(e%100!=0||e%400==0)},minutiAdd:function(e,t,n){null==n&&(n=0);var o=getFloat(e.substr(0,2)),a=getFloat(e.substr(3,2));n=60*t+n;var i=new Date(2e3,1,1,o,a,0,0),s=i.getTime();s+=1e3*n,i.setTime(s);var r=i.getHours(),l=i.getMinutes();return r<=9&&(r="0"+r),l<=9&&(l="0"+l),r+"."+l},validDate:function(e){var t=e.split("/");return 3==t.length&&(t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10),t[2]=parseInt(t[2],10),!(t[0]<=0||t[0]>=32)&&(!(t[1]<=0||t[1]>=13)&&!(t[2]<=1800||t[2]>=2299)))},isOrario:function(e){var t=e.indexOf(".");return-1!=t&&(1==t&&(e="0"+e),!(parseInt(e.substr(0,2),10)>23)&&!(parseInt(e.substr(3,2),10)>59))}}},"/FEg":function(e,t,n){},"2nbr":function(e,t,n){},"4CBV":function(e,t,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n("fbCW"),n("ToJy"),n("TWNs"),n("rB9j"),n("JfAA"),n("Rm1S"),function(e){e.fn.addOption=function(){var e=function(e,t,n,o){var a=document.createElement("option");a.value=t,a.text=n;var i=e.options,s=i.length;if(!e.cache){e.cache={};for(var r=0;r=2&&("boolean"==typeof t[1]?s=t[1]:"boolean"==typeof t[2]&&(s=t[2]),r||(a=t[0],i=t[1])),this.each((function(){if("select"==this.nodeName.toLowerCase())if(r)for(var t in n)e(this,t,n[t],s);else e(this,a,i,s)})),this},e.fn.ajaxAddOption=function(t,n,a,i,s){return"string"!=typeof t||("object"!=o(n)&&(n={}),"boolean"!=typeof a&&(a=!0),this.each((function(){var r=this;e.getJSON(t,n,(function(t){e(r).addOption(t,a),"function"==typeof i&&("object"==o(s)?i.apply(r,s):i.call(r))}))}))),this},e.fn.removeOption=function(){var e=arguments;if(0==e.length)return this;var t,n,a=o(e[0]);if("string"==a||"object"==a||"function"==a){if((t=e[0]).constructor==Array){for(var i=t.length,s=0;s=0;i--)t.constructor==RegExp?a[i].value.match(t)&&(o=!0):a[i].value==t&&(o=!0),o&&!0===e[1]&&(o=a[i].selected),o&&(a[i]=null),o=!1;else(o=!0!==e[1]||a[n].selected)&&this.remove(n)}})),this},e.fn.sortOptions=function(t){var n=e(this).selectedValues(),o=void 0===t||!!t;return this.each((function(){if("select"==this.nodeName.toLowerCase()){for(var e=this.options,t=e.length,n=[],a=0;ao2t?-1:1}));for(a=0;a'):null;t.after(n.options.appendText?''+n.options.appendText+"":"").after(i||""),n.options.useMouseWheel&&e.fn.mousewheel&&t.mousewheel(this._doMouseWheel),i&&i.mousedown(this._handleSpinner).mouseup(this._endSpinner).mouseover(this._expandSpinner).mouseout(this._endSpinner).mousemove(this._describeSpinner)},enable:function(e){this._enableDisable(e,!1)},disable:function(e){this._enableDisable(e,!0)},_enableDisable:function(t,n){var o=this._getInst(t);o&&(t.disabled=n,t.nextSibling&&"span"===t.nextSibling.nodeName.toLowerCase()&&this._changeSpinner(o,t.nextSibling,n?5:-1),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),n&&this._disabledInputs.push(t))},isDisabled:function(t){return e.inArray(t,this._disabledInputs)>-1},_preDestroy:function(n,o){n=e(n).off("."+t),e.fn.mousewheel&&n.unmousewheel(),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===n[0]?null:e})),n.siblings("."+this._appendClass+",."+this._controlClass).remove()},setTime:function(t,n){var a=this._getInst(t);a&&(null===n||""===n?e(t).val(""):this._setTime(a,n?e.isArray(n)?n:"object"===o(n)?new Date(n.getTime()):n:null))},getTime:function(e){var t=this._getInst(e),n=t?this._extractTime(t):null;return n?new Date(0,0,0,n[0],n[1],n[2]):null},getOffset:function(e){var t=this._getInst(e),n=t?this._extractTime(t):null;return n?1e3*(3600*n[0]+60*n[1]+n[2]):0},_doFocus:function(t){var o=t.nodeName&&"input"===t.nodeName.toLowerCase()?t:this;if(n._lastInput===o||n.isDisabled(o))n._focussed=!1;else{var a=n._getInst(o);n._focussed=!0,n._lastInput=o,n._blurredInput=null,e.extend(a.options,e.isFunction(a.options.beforeShow)?a.options.beforeShow.apply(o,[o]):{}),n._parseTime(a,t.nodeName?null:t),setTimeout((function(){n._showField(a)}),10)}},_doBlur:function(e){n._blurredInput=n._lastInput,n._lastInput=null},_doClick:function(e){var t=e.target,o=n._getInst(t),a=o._field;n._focussed||(o._field=n._getSelection(o,t,e)),a!==o._field&&(o._lastChr=""),n._showField(o),n._focussed=!1},_getSelection:function(t,n,o){var a,i=0,s=[t.elem.val().split(t.options.separator)[0].length,2,2];if(null!==n.selectionStart)for(var r=0,l=0;l<=Math.max(1,t._secondField,t._ampmField)&&(r+=l!==t._ampmField?s[l]+t.options.separator.length:t.options.ampmPrefix.length+t.options.ampmNames[0].length,i=l,!(n.selectionStart=48)return!0;var t=n._getInst(e.target);switch(e.keyCode){case 9:return!!t.options.tabToExit||(e.shiftKey?n._changeField(t,-1,!0):n._changeField(t,1,!0));case 35:e.ctrlKey?n._setValue(t,""):(t._field=Math.max(1,t._secondField,t._ampmField),n._adjustField(t,0));break;case 36:e.ctrlKey?n._setTime(t):(t._field=0,n._adjustField(t,0));break;case 37:n._changeField(t,-1,!1);break;case 38:n._adjustField(t,1);break;case 39:n._changeField(t,1,!1);break;case 40:n._adjustField(t,-1);break;case 46:n._setValue(t,"");break;case 8:t._lastChr="";default:return!0}return!1},_doKeyPress:function(e){var t=String.fromCharCode(void 0===e.charCode?e.keyCode:e.charCode);if(t<" ")return!0;var o=n._getInst(e.target);return n._handleKeyPress(o,t),!1},_handleKeyPress:function(e,t){if(t===e.options.separator)this._changeField(e,1,!1);else if(t>="0"&&t<="9"){var n=parseInt(t,10),o=parseInt(e._lastChr+t,10),a=0!==e._field?e._selectedHour:e.options.unlimitedHours?o:e.options.show24Hours?o<24?o:n:(o>=1&&o<=12?o:n>0?n:e._selectedHour)%12+(e._selectedHour>=12?12:0),i=1!==e._field?e._selectedMinute:o<60?o:n,s=e._field!==e._secondField?e._selectedSecond:o<60?o:n,r=this._constrainTime(e,[a,i,s]);this._setTime(e,e.options.unlimitedHours?r:new Date(0,0,0,r[0],r[1],r[2])),e.options.noSeparatorEntry&&e._lastChr?this._changeField(e,1,!1):e._lastChr=e.options.unlimitedHours&&0===e._field?e._lastChr+t:t}else if(!e.options.show24Hours&&((t=t.toLowerCase())===e.options.ampmNames[0].substring(0,1).toLowerCase()&&e._selectedHour>=12||t===e.options.ampmNames[1].substring(0,1).toLowerCase()&&e._selectedHour<12)){var l=e._field;e._field=e._ampmField,this._adjustField(e,1),e._field=l,this._showField(e)}},_doMouseWheel:function(e,t){if(!n.isDisabled(e.target)){var o=n._getInst(e.target);o.elem.focus(),o.elem.val()||n._parseTime(o),n._adjustField(o,t),e.preventDefault()}},_expandSpinner:function(t){var o=n._getSpinnerTarget(t),a=n._getInst(n._getInput(o));if(!n.isDisabled(a.elem[0])&&a.options.spinnerBigImage){a._expanded=!0;var i=e(o).offset(),s=null;e(o).parents().each((function(){var t=e(this);return"relative"!==t.css("position")&&"absolute"!==t.css("position")||(s=t.offset()),!s})),e('
').mousedown(n._handleSpinner).mouseup(n._endSpinner).mouseout(n._endExpand).mousemove(n._describeSpinner).insertAfter(o)}},_getInput:function(t){return e(t).siblings("."+this._getMarker())[0]},_describeSpinner:function(e){var t=n._getSpinnerTarget(e),o=n._getInst(n._getInput(t));t.title=o.options.spinnerTexts[n._getSpinnerRegion(o,e)]},_handleSpinner:function(t){var o=n._getSpinnerTarget(t),a=n._getInput(o);if(!n.isDisabled(a)){a===n._blurredInput&&(n._lastInput=a,n._blurredInput=null);var i=n._getInst(a);n._doFocus(a);var s=n._getSpinnerRegion(i,t);n._changeSpinner(i,o,s),n._actionSpinner(i,s),n._timer=null,n._handlingSpinner=!0,s>=3&&i.options.spinnerRepeat[0]&&(n._timer=setTimeout((function(){n._repeatSpinner(i,s)}),i.options.spinnerRepeat[0]),e(o).one("mouseout",n._releaseSpinner).one("mouseup",n._releaseSpinner))}},_actionSpinner:function(e,t){switch(e.elem.val()||n._parseTime(e),t){case 0:this._setTime(e);break;case 1:this._changeField(e,-1,!1);break;case 2:this._changeField(e,1,!1);break;case 3:this._adjustField(e,1);break;case 4:this._adjustField(e,-1)}},_repeatSpinner:function(e,t){n._timer&&(n._lastInput=n._blurredInput,this._actionSpinner(e,t),this._timer=setTimeout((function(){n._repeatSpinner(e,t)}),e.options.spinnerRepeat[1]))},_releaseSpinner:function(e){clearTimeout(n._timer),n._timer=null},_endExpand:function(t){n._timer=null;var o=n._getSpinnerTarget(t),a=n._getInput(o),i=n._getInst(a);e(o).remove(),i._expanded=!1},_endSpinner:function(e){n._timer=null;var t=n._getSpinnerTarget(e),o=n._getInput(t),a=n._getInst(o);n.isDisabled(o)||n._changeSpinner(a,t,-1),n._handlingSpinner&&(n._lastInput=n._blurredInput),n._lastInput&&n._handlingSpinner&&n._showField(a),n._handlingSpinner=!1},_getSpinnerTarget:function(e){return e.target||e.srcElement},_getSpinnerRegion:function(t,n){var o=this._getSpinnerTarget(n),a=e(o).offset(),i=[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop],s=t.options.spinnerIncDecOnly?99:n.clientX+i[0]-a.left,r=n.clientY+i[1]-a.top,l=t.options[t._expanded?"spinnerBigSize":"spinnerSize"],u=t.options.spinnerIncDecOnly?99:l[0]-1-s,c=l[1]-1-r;if(l[2]>0&&Math.abs(s-u)<=l[2]&&Math.abs(r-c)<=l[2])return 0;var d=Math.min(s,r,u,c);return d===s?1:d===u?2:d===r?3:4},_changeSpinner:function(t,n,o){e(n).css("background-position","-"+(o+1)*t.options[t._expanded?"spinnerBigSize":"spinnerSize"][0]+"px 0px")},_parseTime:function(e,t){var o=this._extractTime(e);if(o)e._selectedHour=o[0],e._selectedMinute=o[1],e._selectedSecond=o[2];else{var a=this._constrainTime(e);e._selectedHour=a[0],e._selectedMinute=a[1],e._selectedSecond=e.options.showSeconds?a[2]:0}e._secondField=e.options.showSeconds?2:-1,e._ampmField=e.options.show24Hours?-1:e.options.showSeconds?3:2,e._lastChr="";var i=function(){""!==e.elem.val()&&n._showTime(e)};"number"==typeof e.options.initialField?(e._field=Math.max(0,Math.min(Math.max(1,e._secondField,e._ampmField),e.options.initialField)),i()):setTimeout((function(){e._field=n._getSelection(e,e.elem[0],t),i()}),0)},_extractTime:function(e,t){var n=(t=t||e.elem.val()).split(e.options.separator);if(""===e.options.separator&&""!==t&&(n[0]=t.substring(0,2),n[1]=t.substring(2,4),n[2]=t.substring(4,6)),n.length>=2){var o=!e.options.show24Hours&&t.indexOf(e.options.ampmNames[0])>-1,a=!e.options.show24Hours&&t.indexOf(e.options.ampmNames[1])>-1,i=parseInt(n[0],10);i=isNaN(i)?0:i,i=((o||a)&&12===i?0:i)+(a?12:0);var s=parseInt(n[1],10);s=isNaN(s)?0:s;var r=n.length>=3?parseInt(n[2],10):0;return r=isNaN(r)||!e.options.showSeconds?0:r,this._constrainTime(e,[i,s,r])}return null},_constrainTime:function(e,t){if(!(null!=t)){var n=this._determineTime(e.options.defaultTime,e)||new Date;t=[n.getHours(),n.getMinutes(),n.getSeconds()]}for(var o=!1,a=0;a1&&(t[a]=Math.round(t[a]/e.options.timeSteps[a])*e.options.timeSteps[a],o=!0);return t},_showTime:function(e){var t=(e.options.unlimitedHours?e._selectedHour:this._formatNumber(e.options.show24Hours?e._selectedHour:(e._selectedHour+11)%12+1))+e.options.separator+this._formatNumber(e._selectedMinute)+(e.options.showSeconds?e.options.separator+this._formatNumber(e._selectedSecond):"")+(e.options.show24Hours?"":e.options.ampmPrefix+e.options.ampmNames[e._selectedHour<12?0:1]);this._setValue(e,t),this._showField(e)},_showField:function(e){var t=e.elem[0];if(!e.elem.is(":hidden")&&n._lastInput===t){for(var o=[e.elem.val().split(e.options.separator)[0].length,2,2],a=0,i=0;i59;)o[2]-=60,o[1]++;for(;o[1]<0;)o[1]+=60,o[0]--;for(;o[1]>59;)o[1]-=60,o[0]++;a=null!=t.options.minTime&&e.isArray(t.options.minTime)?t.options.minTime:[0,0,0],o[0]t.options.maxTime[0]?o=t.options.maxTime.slice(0,3):o[0]===t.options.maxTime[0]&&(o[1]>t.options.maxTime[1]?(o[1]=t.options.maxTime[1],o[2]=t.options.maxTime[2]):o[1]===t.options.maxTime[1]&&o[2]>t.options.maxTime[2]&&(o[2]=t.options.maxTime[2])))}else a&&i&&a>i?ni&&(n=Math.abs(n-a)i?i:n,o[0]=n.getHours(),o[1]=n.getMinutes(),o[2]=n.getSeconds();e.isFunction(t.options.beforeSetTime)&&(n=t.options.beforeSetTime.apply(t.elem[0],[this.getTime(t.elem[0]),n,a,i]),o[0]=n.getHours(),o[1]=n.getMinutes(),o[2]=n.getSeconds()),t._selectedHour=o[0],t._selectedMinute=o[1],t._selectedSecond=o[2],this._showTime(t)},_determineTime:function(t,o){var a,i;return t?"string"==typeof t?function(e){var t=n._extractTime(o,e),a=new Date,i=t?t[0]:a.getHours(),s=t?t[1]:a.getMinutes(),r=t?t[2]:a.getSeconds();if(!t)for(var l=/([+-]?[0-9]+)\s*(s|S|m|M|h|H)?/g,u=l.exec(e);u;){switch(u[2]||"s"){case"s":case"S":r+=parseInt(u[1],10);break;case"m":case"M":s+=parseInt(u[1],10);break;case"h":case"H":i+=parseInt(u[1],10)}u=l.exec(e)}return a=new Date(0,0,10,i,s,r,0),/^!/.test(e)&&(a.getDate()>10?a=new Date(0,0,10,23,59,59):a.getDate()<10&&(a=new Date(0,0,10,0,0,0))),a}(t):"number"==typeof t?(a=t,(i=new Date).setTime(i.getTime()+1e3*a),i):e.isArray(t)?function(e){return new Date(0,0,0,e[0],e[1]||0,e[2]||0,0)}(t):t:null},_normaliseTime:function(e){return e?(e.setFullYear(1900),e.setMonth(0),e.setDate(0),e):null}});var n=e.timeEntry}(jQuery)},"66F2":function(e,t,n){},"6RHW":function(e,t,n){},"6yjJ":function(e,t,n){},AC3G:function(e,t){ /*! * Start Bootstrap - SB Admin v6.0.0 (https://startbootstrap.com/templates/sb-admin) * Copyright 2013-2020 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-sb-admin/blob/master/LICENSE) */ !function(e){"use strict";var t=window.location.href;e("#layoutSidenav_nav .sb-sidenav a.nav-link").each((function(){this.href===t&&e(this).addClass("active")})),e("#sidebarToggle").on("click",(function(t){t.preventDefault(),e("body").toggleClass("sb-sidenav-toggled")}))}(jQuery)},DvCM:function(e,t,n){},H4hh:function(module,exports){$.fn.IWFooterDatatable=function(){try{this.datatable=eval("datatable_"+this.attr("id"))}catch(e){this.datatable=$("#"+this.attr("id")).DataTable()}return this.setFooterText=function(e,t,n){n||(n=0),0===n?$(this.datatable.column(t).footer()).html(e):$("tr:eq("+n+") th:eq("+t+")",this.datatable.table().footer()).html(e)},this}},KgWp:function(e,t,n){(function(e){n("R5XZ"),n("8L3F"),n("q4sD"),n("vM12"),n("66F2"),n("/FEg"),n("qsJi"),n("2nbr"),n("GPyX"),n("ykfe"),n("lvZh"),n("fG37"),n("DvCM"),n("VHjb"),n("wYC0"),n("6yjJ"),n("6RHW"),n("q0Lq"),e.moment=n("wd/R");var t=n("EVdn");e.$=e.jQuery=t,n("9/yf"),n("ECZs"),n("SYky"),n("XW8J"),n("p4tv"),n("aMDg"),n("zVad"),n("RV12"),n("y5Vd"),n("H4hh"),n("jvlZ"),n("me4n"),n("5i3Q"),n("tgHN"),n("ru4z"),n("8oiE"),window.CKEDITOR_BASEPATH="/node_modules/ckeditor/",n("lb/0"),n("IuUF"),n("AC3G"),n("Xp81"),n("OCQ3"),n("Seij"),e.iride_func=n("YYrq"),e.iride_date_utils=n("+1Jz"),e.iride_bootstrap_utils=n("p27l"),t.each(iride_func,(function(t,n){e[t]=n})),t.each(iride_bootstrap_utils,(function(t,n){e[t]=n})),t.each(iride_date_utils,(function(t,n){e[t]=n})),n("v4Sd"),n("t+OS"),n("zfdK"),n("4CBV"),t(document).on("show.bs.modal",".modal",(function(){var e=1040+10*t(".modal:visible").length;t(this).css("z-index",e),setTimeout((function(){t(".modal-backdrop").not(".modal-stack").css("z-index",e-1).addClass("modal-stack")}),0)}))}).call(this,n("yLpj"))},RnhZ:function(e,t,n){var o={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="RnhZ"},YYrq:function(t,n,o){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s;o("pNMO"),o("4Brf"),o("0oug"),o("fbCW"),o("yXV3"),o("4mDm"),o("2B1R"),o("+2oP"),o("DQNa"),o("sMBO"),o("qePV"),o("toAj"),o("07d7"),o("rNhl"),o("4l63"),o("TWNs"),o("rB9j"),o("JfAA"),o("PKPk"),o("UxlC"),o("EnZy"),o("SYor"),o("3bBZ"),o("R5XZ"),t.exports={waiting2:function(e,t){null==e&&(e=!0),null==t&&(t=!1),e?(dialogShow("div_waiting2"),t&&($("#span_perc_avanzamento").show(),s=setInterval("runAjaxAvanzamento()",200))):($("#div_waiting2").dialog("close"),clearInterval(s))},waiting:function(e){waiting2(e)},strpos:function(e,t,n){var o=(e+"").indexOf(t,n||0);return-1!==o&&o},in_array:function(e,t){for(var n=!1,o=0;o0|-(e<0),a=e%1==.5*o,i=Math.floor(e);return a&&(e=i+(o>0)),(a?e:Math.round(e))/n},getFloat:function(e){var t,n=""+e;return trim(n),n=n.replace(",","."),void 0===(t=parseFloat(n))||isNaN(t)?0:t},getFloat2:function(e){var t=this.getFloat(e);return this.round(t,2)},checkKey:function(e,t){console.log("checkey");var n=e.keyCode;window.event?n=e.keyCode:e.which&&(n=e.which);var o=!1;8!=n&&37!=n&&39!=n&&9!=n&&36!=n&&35!=n&&46!=n||(o=!0);var a=String.fromCharCode(n);"."==a&&(o=!1);var s=!1;for(i=0;i3){for(h=f[0],f[0]="",j=3;j0&&("STR_PAD_LEFT"==o?e=s(n,a)+e:"STR_PAD_RIGHT"==o?e+=s(n,a):"STR_PAD_BOTH"==o&&(e=(e=(i=s(n,Math.ceil(a/2)))+e+i).substr(0,t))),e},get_ean13_checkdigit:function(e){e.length>12&&(e=e.substr(0,12)),e=parseInt(e,10),e=str_pad(e,12,"0","STR_PAD_LEFT");var t=3*(parseInt(e.substr(1,1),10)+parseInt(e.substr(3,1),10)+parseInt(e.substr(5,1),10)+parseInt(e.substr(7,1),10)+parseInt(e.substr(9,1),10)+parseInt(e.substr(11,1),10))+(parseInt(e.substr(0,1),10)+parseInt(e.substr(2,1),10)+parseInt(e.substr(4,1),10)+parseInt(e.substr(6,1),10)+parseInt(e.substr(8,1),10)+parseInt(e.substr(10,1),10));return 10*Math.ceil(t/10)-t},sian_combo_swap:function(){for(var e=0;e<$("#causalesian option").size();e++){var t="#sian_option_"+e;""!=$(t).prop("disabled")?($(t).removeAttr("disabled"),$(t).show()):($(t).prop("disabled","disabled"),$(t).hide())}},ivaGet:function(e,t){if(null==e&&(e=0),0!=e){var n=$("#hidden_idiva"+e).attr(t);return"aliquota"!=t&&"percindetraibilita"!=t||(n=getFloat2(n)),n}},btnLoad_onclick:function(e){var t=$("#form1");""==e||(t.method="get",t.target="_blank",t.action=e),t.submit()},btnLoad2_onclick:function(){var e=$("#form1");e.attr("action",""),e.removeAttr("target"),e.submit()},PageChange:function(e){$("#npage").val(e),this.btnLoad2_onclick()},deleteObject:function(e,t,n,o,a,i,s){var r=this;IWConfirm($("#conferma_cancellazione1").val()+" (1/2)",(function(){IWConfirm2($("#conferma_cancellazione2").val()+" (2/2)",(function(){r.btnDel2_onclick(e,t,n,o,a,i,s)}))}))},btnDel2_onclick:function(e,t,n,o,a,i,s){void 0===n&&(n=""),void 0===o&&(o=!1),void 0===a&&(a=0),void 0===i&&(i=""),void 0===s&&(s="");var r=$("#object").val(),l=$("#tipoview").val(),u="view.php?DEL_FROM_AJAX&id="+e+"&object="+r+"&tipoview="+l;a>0&&i&&(u="view.php?DEL_FROM_AJAX&iddocumento="+a+"&codicedocumento="+i+"&tipoview=view"),n&&(u+="&"+n),t&&(u+="&FORZA_ELIMINAZIONE");var c=this;return $.ajax({url:u,dataType:"xml",async:!1,success:function(t){var r=$(t).find("chiedi_conferma").text();ajaxSubmitOnSuccessFunction(t,!1,r),$(t).find("ret").text()?(o&&(a>0?window.location.href="?codicedocumento="+i+"&tipoview=view":location.reload()),s&&c.reloadTable(s,"form1"),$("#tr_"+e).hideRow()):r&&IWConfirm(r,(function(){c.btnDel2_onclick(e,1,n,o,a,i,s)}))}}),!0},btnSave_onclick:function(e,t,n,o,a){""==e&&(e=!1),""==t&&(t=!1),void 0===n&&(n=!1);var i=$("#btnSave,#btnNew,#btnStampa,#btnEmail"),s={beforeSubmit:function(){i.prop("disabled",!0),t&&waiting2(!0,!0),"function"==typeof a&&a()},success:function(a){ajaxSubmitOnSuccessFunction(a);var s=$(a).find("ret").text(),r="1"===$(a).find("debug").text(),l=$(a).find("id").text();s?($("#id").val(l),i.fadeIn(),$("#no_beforeunload").val(1),e&&!r&&location.reload(),n&&!r&&(window.location.href=n+l),"function"==typeof o&&o(!0,a)):"function"==typeof o&&o(!1,a),i.prop("disabled",!1),t&&waiting2(!1)},error:function(e){$("#boxDebug").html("
"+e.responseText+"
"),i.prop("disabled",!1)},url:"view.php",data:{OP_FROM_AJAX:1},type:"POST",dataType:"xml"};$("#form1").off("submit").on("submit",(function(e){return e.preventDefault(),$(this).ajaxSubmit(s),!1})).submit()},btnPrint_onclick:function(e){var t=$("#page_print").val().split("iddocumento"),n=$("#iddocumento").val(),o=t[0]+"&iddocumento="+n;1==e&&(o+="&NON_STAMPARE_PREZZI"),window.open(o,"_blank")},btnPrint2_onclick:function(e,t,n,o,a,i,s,r,l,u){if(null==r&&(r="form1"),null==l&&(l=!1),"true"==i){""==t&&(t=0),waiting2(!0,l);var c=$("#avvisi_footer_ul0");c.hide();var d=$("#"+r);$("#tipostampa").val(e);var p="print.php?setfilename&id="+t;"false"!=s&&(p+="&EXCEL"),$.post(p,d.serialize(),(function(e){var t=$(e).find("ret").text(),n=$(e).find("outfile").text();"function"==typeof u&&u(),"true"==t?"false"==s?window.open(n,"_blank"):window.location.href=n:alert("Errore. Impossibile stampare"),c.show(),waiting2(!1)}))}else{var f="print.php?tipostampa="+e,h=a.split(",");$.each(h,(function(e){f+="&"+h[e]})),f+=""!=n?"&iddocumento="+t+"&codicedocumento="+n:"&id="+t+"&object="+o,window.open(f,"_blank")}},btnPrintMultiple:function(e,t){t&&waiting2(!0,!0),$.post("documenti/stampe/print_multiple2.php",e,(function(e){var n=$(e).find("ret").text(),o=$(e).find("outfile").text();t&&waiting2(!1),n?window.open("tmp/"+o):alert("Errore. Impossibile stampare")}))},btnPrint:function(e){$.ajax({url:"print.php?setfilename"+(e.is_excel?"&EXCEL":""),type:"post",dataType:"xml",data:e.data,success:function(t){if("function"!=typeof e.callback||(e.callback(t),e.not_ret_on_callback))if("true"===$(t).find("ret").text()){var n=$(t).find("outfile").text();e.is_excel?window.location.href=n:window.open(n)}else alert($("#alert_no_stampa").val())}})},setNewPassword:function(e,t){void 0===t&&(t=!1),$.ajax({url:"ajax.php?JSON&object=IWUser&tipoview=getNewPassword&restapi="+(t?"1":"0"),dataType:"json",success:function(t){$("#"+e).val(t.password)}})},btnNew_onclick:function(){var e=$("#codicedocumento").val(),t=$("#object").val(),n="?tipoview="+$("#tipoview").val();void 0===e?n+="&object="+t:(""!=$("#page_controls").val()&&(n="?tipoview=controls"),n+="&codicedocumento="+e),window.location=n},btnMail_onclick:function(){var e=$("#iddocumento").valFloat(),t=this;IWConfirm($("#conferma_prosegui").val(),(function(){$.get("ajax.php?tipoview=inviaemaildoc&iddocumento="+e+"&codicedocumento="+$("#codicedocumento").val(),(function(e){"true"==$(e).find("ret").text()?(t.footerMsg(0,"Email inviata",$(e).find("msg").text()),$("#btnEmail").fadeOut()):t.footerMsg(1,"Errore nell'invio della email",$(e).find("msg").text())}))}))},checkAll_onclick:function(){var e,t="";$("#chk_0").is(":checked")||(t="checked");var n=$("#i_count").valFloat();0==n&&(n=1e3);for(var o=0;o"+e+""),dialogShow("IWConfirm",(function(e){e&&t(e)}))},IWConfirm2:function(e,t){$("#IWConfirm2").html("

"+e+"

"),dialogShow("IWConfirm2",(function(e){e&&t(e)}))},IWConfirm3:function(e,t){$("#IWConfirm3").html("

"+e+"

"),dialogShow("IWConfirm3",(function(e){e&&t(e)}))},IWConfirmTrueFalse:function(e,t){$("#IWConfirm").html("

"+e+"

"),dialogShow("IWConfirm",(function(e){t(e)}))},loadComboLotti:function(e,t,n,o,a,i,s,r){null==i&&(i=!0),null==o&&(o=0),null==a&&(a=!1),null==s&&(s="Articolo");var l=$("#"+e+"_combo"),u=$("#"+e+"_text"),c=l.attr("idarticolo"),d=l.attr("data"),p=l.attr("orario");if(1!=t&&l.is(":visible")){var f=l.val();l.hide(),u.val(f),l.prop("disabled","disabled"),u.removeAttr("disabled"),u.fadeIn()}else if(u.hide(),u.prop("disabled","disabled"),l.removeAttr("disabled"),l.fadeIn(),c>0){l.removeOption(/./),l.css("background","url('/images/loading1.gif') no-repeat"),l.attr("disabled","disabled");var h="9999/99/99",m="",v=[],_=[];$.ajax({url:"ajax.php?object="+s+"&tipoview=getLottiDatoArticolo&id="+c+n+"&data="+Date__it(d)+"&orario="+p+"&idmagazzino="+o,dataType:"xml",async:i,type:"post",data:r,success:function(e){for(var t=$(e).find("lotti_count").text(),n=0;n").get(0).files,t.formdata=void 0!==window.FormData,e.fn.uploadFile=function(n){function o(){y||(y=!0,function e(){if(0==b.length&&0==w.length)m.afterUploadAll(_),y=!1;else{if(w.length1024?t=(n/1024).toFixed(2)+" MB":t=n.toFixed(2)+" KB";return t}function i(t){var n,o,a=[],i=(a="string"==jQuery.type(t)?t.split("&"):e.param(t).split("&")).length,s=[];for(n=0;i>n;n++)a[n]=a[n].replace(/\+/g," "),o=a[n].split("="),s.push([decodeURIComponent(o[0]),decodeURIComponent(o[1])]);return s}function s(t,n,o){for(var s=0;st.maxFileSize)t.showError&&e("
"+o[s].name+" "+t.sizeErrorStr+a(t.maxFileSize)+"
").appendTo(n.errorLog);else if(-1!=t.maxFileCount&&n.selectedFiles>=t.maxFileCount)t.showError&&e("
"+o[s].name+" "+t.maxFileCountErrorStr+t.maxFileCount+"
").appendTo(n.errorLog);else{n.selectedFiles++,n.existingFileNames.push(o[s].name);var u=t,c=new FormData,d=t.fileName.replace("[]","");c.append(d,o[s]);var p=t.formData;if(p)for(var m=i(p),v=0;v");b.appendTo("body");var w=[];w.push(o[s].name),h(b,u,_,w,n,o[s]),n.fileCounter++}else t.showError&&e("
"+o[s].name+" "+t.duplicateErrorStr+"
").appendTo(n.errorLog);else t.showError&&e("
"+o[s].name+" "+t.extErrorStr+t.allowedTypes+"
").appendTo(n.errorLog)}function r(e,t,n){var o=t.allowedTypes.toLowerCase().split(","),a=n.split(".").pop().toLowerCase();return!("*"!=t.allowedTypes&&jQuery.inArray(a,o)<0)}function l(e,t){var n=!1;if(e.existingFileNames.length)for(var o=0;o"),p="";a.multiple&&(a.fileName.indexOf("[]")!=a.fileName.length-2&&(a.fileName+="[]"),p="");var m=e(p).appendTo(u);m.change((function(){n.errorLog.html("");var l=(a.allowedTypes.toLowerCase().split(","),[]);if(this.files){for(g=0;g"+p+" "+a.extErrorStr+a.allowedTypes+"").appendTo(n.errorLog));if(m.push({name:p,size:"NA"}),0==a.onSelect(m))return}if(c(a,n),i.unbind("click"),u.hide(),d(n,o,a,i),u.addClass(o),a.serialize&&t.fileapi&&t.formdata){u.removeClass(o);var v=this.files;u.remove(),s(a,n,v)}else{for(var _="",g=0;g":l[g]+"
",n.fileCounter++;if(-1!=a.maxFileCount&&n.selectedFiles+l.length>a.maxFileCount)return void(a.showError&&e("
"+_+" "+a.maxFileCountErrorStr+a.maxFileCount+"
").appendTo(n.errorLog));n.selectedFiles+=l.length;var b=new f(n,a);b.filename.html(_),b.filename.html(""),h(u,a,b,l,n,null)}})),a.nestedForms?(u.css({margin:0,padding:0}),i.css({position:"relative",overflow:"hidden",cursor:"default"}),m.css({position:"absolute",cursor:"pointer",top:"0px",width:"100%",height:"100%",left:"0px","z-index":"100",opacity:"0.0",filter:"alpha(opacity=0)","-ms-filter":"alpha(opacity=0)","-khtml-opacity":"0.0","-moz-opacity":"0.0"}),u.appendTo(i)):(u.appendTo(e("body")),u.css({margin:0,padding:0,display:"block",position:"absolute",left:"-250px"}),-1!=navigator.appVersion.indexOf("MSIE ")?i.attr("for",l):i.click((function(){m.click()})))}function p(t,n){return this.statusbar=e("
").width(n.statusBarWidth),this.preview=e("").width(n.previewWidth).height(n.previewHeight).appendTo(this.statusbar).hide(),this.filename=e("
").appendTo(this.statusbar),this.progressDiv=e("
").appendTo(this.statusbar).hide(),this.progressbar=e("
").appendTo(this.progressDiv),this.abort=e("
"+n.abortStr+"
").appendTo(this.statusbar).hide(),this.cancel=e("
"+n.cancelStr+"
").appendTo(this.statusbar).hide(),this.done=e("
"+n.doneStr+"
").appendTo(this.statusbar).hide(),this.download=e("
"+n.downloadStr+"
").appendTo(this.statusbar).hide(),this.del=e("
"+n.deletelStr+"
").appendTo(this.statusbar).hide(),this.abort.addClass("ajax-file-upload-red"),this.done.addClass("ajax-file-upload-green"),this.download.addClass("ajax-file-upload-green"),this.cancel.addClass("ajax-file-upload-red"),this.del.addClass("ajax-file-upload-red"),this}function f(t,n){var o=null;return(o=n.customProgressBar?new n.customProgressBar(t,n):new p(t,n)).abort.addClass(t.formGroup),o.abort.addClass(n.abortButtonClass),o.cancel.addClass(t.formGroup),o.cancel.addClass(n.cancelButtonClass),n.extraHTML&&(o.extraHTML=e("
"+n.extraHTML()+"
").insertAfter(o.filename)),e(t.container).append(o.statusbar),o}function h(n,a,s,r,l,d){var p={cache:!1,contentType:!1,processData:!1,forceSync:!1,type:a.method,data:a.formData,formData:a.fileData,dataType:a.returnType,beforeSubmit:function(t,o,d){if(0!=a.onSubmit.call(this,r)){if(a.dynamicFormData){var p=i(a.dynamicFormData());if(p)for(var f=0;f"+a.uploadErrorStr+"
"),s.cancel.show(),n.remove(),s.cancel.click((function(){b.pop(),u(l,r),s.statusbar.remove(),a.onCancel.call(l,r,s),l.selectedFiles-=r.length,c(a,l)})),!1},beforeSend:function(e){s.progressDiv.show(),s.cancel.hide(),s.done.hide(),a.showAbort&&(s.abort.show(),s.abort.click((function(){u(l,r),e.abort(),l.selectedFiles-=r.length}))),s.progressbar.width(t.formdata?"1%":"5%")},uploadProgress:function(e,t,n,o){o>98&&(o=98);var i=o+"%";o>1&&s.progressbar.width(i),a.showProgress&&(s.progressbar.html(i),s.progressbar.css("text-align","center"))},success:function(t,o,i){if(s.cancel.remove(),w.pop(),"json"==a.returnType&&"object"==e.type(t)&&t.hasOwnProperty(a.customErrorKeyStr)){s.abort.hide();var u=t[a.customErrorKeyStr];return a.onError.call(this,r,200,u,s),a.showStatusAfterError?(s.progressDiv.hide(),s.statusbar.append("ERROR: "+u+"")):(s.statusbar.hide(),s.statusbar.remove()),l.selectedFiles-=r.length,void n.remove()}l.responses.push(t),s.progressbar.width("100%"),a.showProgress&&(s.progressbar.html("100%"),s.progressbar.css("text-align","center")),s.abort.hide(),a.onSuccess.call(this,r,t,i,s),a.showStatusAfterSuccess?(a.showDone?(s.done.show(),s.done.click((function(){s.statusbar.hide("slow"),s.statusbar.remove()}))):s.done.hide(),a.showDelete?(s.del.show(),s.del.click((function(){s.statusbar.hide().remove(),a.deleteCallback&&a.deleteCallback.call(this,t,s),l.selectedFiles-=r.length,c(a,l)}))):s.del.hide()):(s.statusbar.hide("slow"),s.statusbar.remove()),a.showDownload&&(s.download.show(),s.download.click((function(){a.downloadCallback&&a.downloadCallback(t)}))),n.remove()},error:function(e,t,o){s.cancel.remove(),w.pop(),s.abort.hide(),"abort"==e.statusText?(s.statusbar.hide("slow").remove(),c(a,l)):(a.onError.call(this,r,t,o,s),a.showStatusAfterError?(s.progressDiv.hide(),s.statusbar.append("ERROR: "+o+"")):(s.statusbar.hide(),s.statusbar.remove()),l.selectedFiles-=r.length),n.remove()}};a.showPreview&&null!=d&&"image"==d.type.toLowerCase().split("/").shift()&&function(e,t){if(e){t.show();var n=new FileReader;n.onload=function(e){t.attr("src",e.target.result)},n.readAsDataURL(e)}}(d,s.preview),a.autoSubmit?a.sequential?(n.ajaxForm(p),b.push(n),o()):n.ajaxSubmit(p):(a.showCancel&&(s.cancel.show(),s.cancel.click((function(){b.pop(),u(l,r),n.remove(),s.statusbar.remove(),a.onCancel.call(l,r,s),l.selectedFiles-=r.length,c(a,l)}))),n.ajaxForm(p))}var m=e.extend({url:"",method:"POST",enctype:"multipart/form-data",returnType:null,allowDuplicates:!0,duplicateStrict:!1,allowedTypes:"*",acceptFiles:"*",fileName:"file",formData:!1,dynamicFormData:!1,maxFileSize:-1,maxFileCount:-1,multiple:!0,dragDrop:!0,autoSubmit:!0,showCancel:!0,showAbort:!0,showDone:!1,showDelete:!1,showError:!0,showStatusAfterSuccess:!0,showStatusAfterError:!0,showFileCounter:!0,fileCounterStyle:"). ",showFileSize:!0,showProgress:!1,nestedForms:!0,showDownload:!1,onLoad:function(){},onSelect:function(){return!0},onSubmit:function(){},onSuccess:function(){},onError:function(){},onCancel:function(){},downloadCallback:!1,deleteCallback:!1,afterUploadAll:!1,serialize:!0,sequential:!1,sequentialCount:2,customProgressBar:!1,abortButtonClass:"ajax-file-upload-abort",cancelButtonClass:"ajax-file-upload-cancel",dragDropContainerClass:"ajax-upload-dragdrop",dragDropHoverClass:"state-hover",errorClass:"ajax-file-upload-error",uploadButtonClass:"ajax-file-upload",dragDropStr:"Drag & Drop Files",uploadStr:"Upload",abortStr:"Abort",cancelStr:"Cancel",deletelStr:"Delete",doneStr:"Done",multiDragErrorStr:"Multiple File Drag & Drop is not allowed.",extErrorStr:"is not allowed. Allowed extensions: ",duplicateErrorStr:"is not allowed. File already exists.",sizeErrorStr:"is not allowed. Allowed Max size: ",uploadErrorStr:"Upload is not allowed",maxFileCountErrorStr:" is not allowed. Maximum allowed files are:",downloadStr:"Download",customErrorKeyStr:"jquery-upload-file-error",showQueueDiv:!1,statusBarWidth:400,dragdropWidth:400,showPreview:!1,previewHeight:"auto",previewWidth:"100%",extraHTML:!1},n);this.fileCounter=1,this.selectedFiles=0;var v="ajax-file-upload-"+(new Date).getTime();this.formGroup=v,this.errorLog=e("
"),this.responses=[],this.existingFileNames=[],t.formdata||(m.dragDrop=!1),t.formdata||(m.multiple=!1),e(this).html("");var _=this,g=e("
"+m.uploadStr+"
");e(g).addClass(m.uploadButtonClass),function t(){if(e.fn.ajaxForm){if(m.dragDrop){var n=e('
').width(m.dragdropWidth);e(_).append(n),e(n).append(g),e(n).append(e(m.dragDropStr)),function(t,n,o){o.on("dragenter",(function(t){t.stopPropagation(),t.preventDefault(),e(this).addClass(n.dragDropHoverClass)})),o.on("dragover",(function(t){t.stopPropagation(),t.preventDefault();var o=e(this);o.hasClass(n.dragDropContainerClass)&&!o.hasClass(n.dragDropHoverClass)&&o.addClass(n.dragDropHoverClass)})),o.on("drop",(function(o){o.preventDefault(),e(this).removeClass(n.dragDropHoverClass),t.errorLog.html("");var a=o.originalEvent.dataTransfer.files;return!n.multiple&&a.length>1?void(n.showError&&e("
"+n.multiDragErrorStr+"
").appendTo(t.errorLog)):void(0!=n.onSelect(a)&&s(n,t,a))})),o.on("dragleave",(function(){e(this).removeClass(n.dragDropHoverClass)})),e(document).on("dragenter",(function(e){e.stopPropagation(),e.preventDefault()})),e(document).on("dragover",(function(t){t.stopPropagation(),t.preventDefault();var o=e(this);o.hasClass(n.dragDropContainerClass)||o.removeClass(n.dragDropHoverClass)})),e(document).on("drop",(function(t){t.stopPropagation(),t.preventDefault(),e(this).removeClass(n.dragDropHoverClass)}))}(_,m,n)}else e(_).append(g);e(_).append(_.errorLog),_.container=m.showQueueDiv?e("#"+m.showQueueDiv):e("
").insertAfter(e(_)),m.onLoad.call(this,_),d(_,v,m,g)}else window.setTimeout(t,10)}(),this.startUpload=function(){e("."+this.formGroup).each((function(){e(this).is("form")&&b.push(e(this))})),o()},this.getFileCount=function(){return _.selectedFiles},this.stopUpload=function(){e("."+m.abortButtonClass).each((function(){e(this).hasClass(_.formGroup)&&e(this).click()})),e("."+m.cancelButtonClass).each((function(){e(this).hasClass(_.formGroup)&&e(this).click()}))},this.cancelAll=function(){e("."+m.cancelButtonClass).each((function(){e(this).hasClass(_.formGroup)&&e(this).click()}))},this.update=function(t){m=e.extend(m,t)},this.reset=function(e){_.fileCounter=1,_.selectedFiles=0,_.errorLog.html(""),0!=e&&_.container.html("")},this.remove=function(){_.container.html(""),e(_).remove()},this.createProgress=function(e){var t=new f(this,m);t.progressDiv.show(),t.progressbar.width("100%");var n;n=m.showFileCounter?_.fileCounter+m.fileCounterStyle+e:e,t.filename.html(n),_.fileCounter++,_.selectedFiles++,m.showPreview&&(t.preview.attr("src",m.filename),t.preview.show()),m.showDownload&&(t.download.show(),t.download.click((function(){m.downloadCallback&&m.downloadCallback.call(_,[e])}))),t.del.show(),t.del.click((function(){t.statusbar.hide().remove();var n=[e];m.deleteCallback&&m.deleteCallback.call(this,n,t),_.selectedFiles-=1,c(m,_)}))},this.getResponses=function(){return this.responses};var b=[],w=[],y=!1;return this}}(jQuery)},me4n:function(module,exports,__webpack_require__){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}__webpack_require__("pNMO"),__webpack_require__("4Brf"),__webpack_require__("0oug"),__webpack_require__("ma9I"),__webpack_require__("4mDm"),__webpack_require__("+2oP"),__webpack_require__("sMBO"),__webpack_require__("07d7"),__webpack_require__("rB9j"),__webpack_require__("PKPk"),__webpack_require__("Rm1S"),__webpack_require__("UxlC"),__webpack_require__("3bBZ"),function(){var e=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function t(n){var o=this.prototype;e=!0;var a=new this;for(var i in e=!1,n)a[i]="function"==typeof n[i]&&"function"==typeof o[i]?function(e,t){return function(){var n=this._super;this._super=function(t){return o[e].apply(this,t||[])};var a=t.apply(this,arguments);return this._super=n,a}}(i,n[i]):n[i];function s(){!e&&this._init&&this._init.apply(this,arguments)}return s.prototype=a,s.prototype.constructor=s,s.extend=t,s}}(),function($){function camelCase(e){return e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var e=camelCase(this.name);$[e]=this,$.fn[e]=function(t){var n=Array.prototype.slice.call(arguments,1);return $[e]._isNotChained(t,n)?$[e][t].apply($[e],[this[0]].concat(n)):this.each((function(){if("string"==typeof t){if("_"===t[0]||!$[e][t])throw"Unknown method: "+t;$[e][t].apply($[e],[this].concat(n))}else $[e]._attach(this,t)}))}},setDefaults:function(e){$.extend(this.defaultOptions,e||{})},_isNotChained:function(e,t){return"option"===e&&(0===t.length||1===t.length&&"string"==typeof t[0])||$.inArray(e,this._getters)>-1},_attach:function(e,t){if(!(e=$(e)).hasClass(this._getMarker())){e.addClass(this._getMarker()),t=$.extend({},this.defaultOptions,this._getMetadata(e),t||{});var n=$.extend({name:this.name,elem:e,options:t},this._instSettings(e,t));e.data(this.name,n),this._postAttach(e,n),this.option(e,t)}},_instSettings:function(e,t){return{}},_postAttach:function(e,t){},_getMetadata:function _getMetadata(d){try{var f=d.data(this.name.toLowerCase())||"";for(var g in f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,(function(e,t,n){var o=f.substring(0,n).match(/"/g);return o&&o.length%2!=0?t+":":'"'+t+'":'})),f=$.parseJSON("{"+f+"}"),f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(e){return{}}},_getInst:function(e){return $(e).data(this.name)||{}},option:function(e,t,n){var o=(e=$(e)).data(this.name);if(!t||"string"==typeof t&&null==n)return(a=(o||{}).options)&&t?a[t]:a;if(e.hasClass(this._getMarker())){var a=t||{};"string"==typeof t&&((a={})[t]=n),this._optionsChanged(e,o,a),$.extend(o.options,a)}},_optionsChanged:function(e,t,n){},destroy:function(e){(e=$(e)).hasClass(this._getMarker())&&(this._preDestroy(e,this._getInst(e)),e.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(e,t){}}),$.JQPlugin={createPlugin:function(e,t){"object"===_typeof(e)&&(t=e,e="JQPlugin"),e=camelCase(e);var n=camelCase(t.name);JQClass.classes[n]=JQClass.classes[e].extend(t),new JQClass.classes[n]}}}(jQuery)},p27l:function(e,t,n){n("R5XZ"),e.exports={dialogShow:function(e,t){if($("#"+e+"Modal").modal("show"),"function"==typeof t){var n=$("."+e+"modalButtons");n.off(),n.on("click",(function(){var e=$(this).attr("data-value");"true"===e&&(e=!0),"false"===e&&(e=!1),t(e)}))}},jumpToTab:function(e){$("#iwobjectTabstab-"+e).tab("show"),setTimeout((function(){$($.fn.dataTable.tables(!0)).DataTable().columns.adjust()}),300)},resizeContent:function(){$.ajax({url:"ajax.php?JSON",type:"post",dataType:"json",data:{object:"IWSetup",tipoview:"resizeContent",screenwidth:screen.width,screenheight:window.innerHeight}})}},$.fn.dialog=function(e){"close"===e&&(e="hide");var t=$(this).attr("id")+"Modal";return $("#"+t).modal(e)}},qsJi:function(e,t,n){},"t+OS":function(e,t){!function(e){e.fn.toggleRow=function(){"none"==e(this).css("display")?e(this).showRow():e(this).hideRow()},e.fn.hideRow=function(){e(this).hide()},e.fn.showRow=function(){"none"==e(this).css("display")&&e(this).css("display","table-row")}}(jQuery)},v4Sd:function(e,t,n){n("wLYn"),function(e){e.fn.autocompleteOnFocusEvent=function(){e(this).focus((function(){e(this).select(),e(this).one("mouseup",(function(e){e.preventDefault()}))}))},e.fn.autocompleteSearchAllOnDblClick=function(){e(this).bind("dblclick",(function(){e(this).attr("readonly")||(e(this).val(""),e(this).keyup(),e(this).val("%"),e(this).keyup(),e(this).val(""))}))}}(jQuery),$(document).ready((function(){$(".searchBox_codearticolo").autocompleteOnFocusEvent(),$(".searchBox_articolo").autocompleteOnFocusEvent(),$(".searchBox_user").autocompleteOnFocusEvent(),$(".searchBox_pdc").autocompleteOnFocusEvent(),$(".searchBox_banca").autocompleteOnFocusEvent(),$(".searchBox_pagamento").autocompleteOnFocusEvent(),$(".searchBox_comuni").autocompleteOnFocusEvent(),$(".searchBox_appartamenti").autocompleteOnFocusEvent(),$(".searchBox_CDC").autocompleteOnFocusEvent(),$(".searchBox_commesse").autocompleteOnFocusEvent(),$(".searchBox_iva").autocompleteOnFocusEvent(),$(".searchBox_causalecontabile_codice").autocompleteOnFocusEvent(),$(".searchBox_causalecontabile").autocompleteOnFocusEvent(),$(".searchBox_lotto").autocompleteOnFocusEvent(),$(".searchBox_mag").autocompleteOnFocusEvent(),$(".searchBox_user").autocompleteSearchAllOnDblClick(),$(".searchBox_articolo").autocompleteSearchAllOnDblClick(),$(".searchBox_iva").autocompleteSearchAllOnDblClick(),$(".searchBox_causalecontabile_codice").autocompleteSearchAllOnDblClick(),$(".searchBox_commesse").autocompleteSearchAllOnDblClick()}))},zfdK:function(e,t,n){n("yXV3"),n("wLYn"),n("qePV"),n("toAj"),n("rB9j"),n("UxlC");var o="",a=".",i=",";$(document).ready((function(){o=$("#CURRENCY__SYMBOL").val(),a=$("#CURRENCY__DECIMAL_SEPARATOR").val(),i=$("#CURRENCY__THOUSANDS_SEPARATOR").val(),$(".Currency").prop("autocomplete","off"),$(".Currency").bind("keydown focus blur",(function(e){var t,n,i=e.target.id,s=i+"_hidden",r=o,l=2;if(null!=$("#"+i).prop("symbol")&&(r=$("#"+i).prop("symbol")),null!=$("#"+i).attr("decimals")&&(l=$("#"+i).attr("decimals")),"keydown"==e.type){var u;if(window.event?u=e.keyCode:e.which&&(u=e.which),188==u&&(e.keyCode=190,e.which=190),110==u)return u=190,!0;u>=96&&u<=105&&(u-=48);var c=String.fromCharCode(u);if(188==u&&(c=","),190==u&&(c="."),109==u&&(c="-"),173==u&&(c="-"),8==u||37==u||39==u||9==u||36==u||35==u)return!0;return"0123456789".indexOf(c)>-1||(c==a&&-1==$("#"+i).val().indexOf(a)||"-"==c&&-1==$("#"+i).val().indexOf("-"))}"focus"==e.type&&(t=getFloat($("#"+s).val()),n=new Number(t),$("#"+i).val(n.toFixed(l)),$("#"+i).select(),$("#"+i).one("mouseup",(function(e){e.preventDefault()}))),"blur"==e.type&&(null!=$("#"+i).prop("symbol")&&(r=$("#"+i).prop("symbol")),null!=$("#"+i).prop("decimals")&&(l=$("#"+i).prop("decimals")),t=(t=$("#"+i).val()).replace(r,"."),n=getFloat(t),$("#"+s).val(n),$("#"+i).updateCurrency(),$("#"+s).change())}))})),$.fn.updateCurrency=function(){var e=$(this).prop("id"),t=e+"_hidden",n=$("#CURRENCY__SYMBOL").val(),o=0==getFloat($("#"+e).attr("decimals"))?2:getFloat($("#"+e).attr("decimals")),s=!1;null!=$("#"+e).prop("if_zero_empty")&&(s=!0),null!=$("#"+e).prop("symbol")&&(n=$("#"+e).prop("symbol"));var r=getFloat($("#"+t).val()),l=r<0?"- ":"",u=number_format(Math.abs(r),o,a,i);0==r&&s?$("#"+e).val(""):$("#"+e).val(l+n+" "+u)}}},[["KgWp","runtime",0,1]]]);