(self.webpackChunkiride=self.webpackChunkiride||[]).push([[5677],{56121:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});o(49693),o(50886),o(34284),o(60228),o(47522);const n={buildGoogleMaps:function(e){var t=$(e).data("latitudine"),o=$(e).data("longitudine"),n=$(e).data("markers"),s=$(e).data("zoom"),i=$(e).data("viewsearchbox"),a=new google.maps.Map($(e)[0],{zoom:s,center:{lat:getFloat(t),lng:getFloat(o)}});if(i){var r=$("#"+$(e).attr("id")+"_pac_input")[0],l=new google.maps.places.SearchBox(r);a.controls[google.maps.ControlPosition.TOP_LEFT].push(r),a.addListener("bounds_changed",(function(){l.setBounds(a.getBounds())}));var u=[];l.addListener("places_changed",(function(){var e=l.getPlaces();if(e.length){u.forEach((function(e){e.setMap(null)})),u=[];var t=new google.maps.LatLngBounds;e.forEach((function(e){if(e.geometry&&e.geometry.location){var o={url:e.icon,size:new google.maps.Size(71,71),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(25,25)};u.push(new google.maps.Marker({map:a,icon:o,title:e.name,position:e.geometry.location})),e.geometry.viewport?t.union(e.geometry.viewport):t.extend(e.geometry.location)}else console.log("Returned place contains no geometry")})),a.fitBounds(t)}}))}n.map((function(e){var t,o={map:a};if(e.label&&(o.label=e.label),e.title&&(o.title=e.title),e.color&&(o.icon={url:"https://maps.google.com/mapfiles/ms/icons/"+e.color+"-dot.png"}),e.text&&(t=function(t){var o=new google.maps.InfoWindow({content:e.text});o.addListener("closeclick",(function(){$(".ui-tooltip").hide()})),t.addListener("click",(function(){o.open({anchor:t,map:a,shouldFocus:!1})}))}),e.address)(new google.maps.Geocoder).geocode({address:e.address},(function(e,n){if("OK"===n){o.position=e[0].geometry.location;var s=new google.maps.Marker(o);t&&t(s)}else console.log("Geocode was not successful for the following reason: "+n)}));else{o.position={lat:getFloat(e.lat),lng:getFloat(e.lng)};var n=new google.maps.Marker(o);t&&t(n)}}))}}},76089:(__unused_webpack_module,__unused_webpack_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},_typeof(e)}var j;__webpack_require__(59749),__webpack_require__(86544),__webpack_require__(84254),__webpack_require__(34338),__webpack_require__(752),__webpack_require__(89730),__webpack_require__(34284),__webpack_require__(60228),__webpack_require__(64043),__webpack_require__(21694),__webpack_require__(22462),__webpack_require__(57267),__webpack_require__(76265),j=!1,window.JQClass=function(){},JQClass.classes={},JQClass.extend=function e(t){var o=this.prototype;j=!0;var n=new this;for(var s in j=!1,t)n[s]="function"==typeof t[s]&&"function"==typeof o[s]?function(e,t){return function(){var n=this._super;this._super=function(t){return o[e].apply(this,t||[])};var s=t.apply(this,arguments);return this._super=n,s}}(s,t[s]):t[s];function i(){!j&&this._init&&this._init.apply(this,arguments)}return i.prototype=n,i.prototype.constructor=i,i.extend=e,i},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 o=Array.prototype.slice.call(arguments,1);return $[e]._isNotChained(t,o)?$[e][t].apply($[e],[this[0]].concat(o)):this.each((function(){if("string"==typeof t){if("_"===t[0]||!$[e][t])throw"Unknown method: "+t;$[e][t].apply($[e],[this].concat(o))}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 o=$.extend({name:this.name,elem:e,options:t},this._instSettings(e,t));e.data(this.name,o),this._postAttach(e,o),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,o){var n=f.substring(0,o).match(/"/g);return n&&n.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,o){var n=(e=$(e)).data(this.name);if(!t||"string"==typeof t&&null==o)return(s=(n||{}).options)&&t?s[t]:s;if(e.hasClass(this._getMarker())){var s=t||{};"string"==typeof t&&((s={})[t]=o),this._optionsChanged(e,n,s),$.extend(n.options,s)}},_optionsChanged:function(e,t,o){},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 o=camelCase(t.name);JQClass.classes[o]=JQClass.classes[e].extend(t),new JQClass.classes[o]}}}(jQuery)},69657:(e,t,o)=>{function n(e){return n="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},n(e)}o(59749),o(86544),o(84254),o(25728),o(97195),o(752),o(50886),o(89730),o(30024),o(34284),o(60228),o(32320),o(64043),o(21694),o(9873),o(76265),o(96869),function(e){var t="timeEntry";e.JQPlugin.createPlugin({name:t,defaultOptions:{appendText:"",showSeconds:!1,unlimitedHours:!1,timeSteps:[1,1,1],initialField:null,noSeparatorEntry:!1,tabToExit:!1,useMouseWheel:!0,defaultTime:null,minTime:null,maxTime:null,spinnerImage:"spinnerDefault.png",spinnerSize:[20,20,8],spinnerBigImage:"",spinnerBigSize:[40,40,16],spinnerIncDecOnly:!1,spinnerRepeat:[500,250],beforeShow:null,beforeSetTime:null},regionalOptions:{"":{show24Hours:!1,separator:":",ampmPrefix:"",ampmNames:["AM","PM"],spinnerTexts:["Now","Previous field","Next field","Increment","Decrement"]}},_getters:["getOffset","getTime","isDisabled"],_appendClass:t+"-append",_controlClass:t+"-control",_expandClass:t+"-expand",_disabledInputs:[],_instSettings:function(e,t){return{_field:0,_selectedHour:0,_selectedMinute:0,_selectedSecond:0}},_postAttach:function(e,t){e.on("focus."+t.name,this._doFocus).on("blur."+t.name,this._doBlur).on("click."+t.name,this._doClick).on("keydown."+t.name,this._doKeyDown).on("keypress."+t.name,this._doKeyPress).on("paste."+t.name,(function(e){setTimeout((function(){o._parseTime(t)}),1)}))},_optionsChanged:function(t,o,n){var s=this._extractTime(o);e.extend(o.options,n),o.options.show24Hours=o.options.show24Hours||o.options.unlimitedHours,o._field=0,s&&this._setTime(o,new Date(0,0,0,s[0],s[1],s[2])),t.next("span."+this._appendClass).remove(),t.parent().find("span."+this._controlClass).remove(),e.fn.mousewheel&&t.unmousewheel();var i=o.options.spinnerImage?e(''):null;t.after(o.options.appendText?''+o.options.appendText+"":"").after(i||""),o.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,o){var n=this._getInst(t);n&&(t.disabled=o,t.nextSibling&&"span"===t.nextSibling.nodeName.toLowerCase()&&this._changeSpinner(n,t.nextSibling,o?5:-1),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),o&&this._disabledInputs.push(t))},isDisabled:function(t){return e.inArray(t,this._disabledInputs)>-1},_preDestroy:function(o,n){o=e(o).off("."+t),e.fn.mousewheel&&o.unmousewheel(),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===o[0]?null:e})),o.siblings("."+this._appendClass+",."+this._controlClass).remove()},setTime:function(t,o){var s=this._getInst(t);s&&(null===o||""===o?e(t).val(""):this._setTime(s,o?e.isArray(o)?o:"object"===n(o)?new Date(o.getTime()):o:null))},getTime:function(e){var t=this._getInst(e),o=t?this._extractTime(t):null;return o?new Date(0,0,0,o[0],o[1],o[2]):null},getOffset:function(e){var t=this._getInst(e),o=t?this._extractTime(t):null;return o?1e3*(3600*o[0]+60*o[1]+o[2]):0},_doFocus:function(t){var n=t.nodeName&&"input"===t.nodeName.toLowerCase()?t:this;if(o._lastInput===n||o.isDisabled(n))o._focussed=!1;else{var s=o._getInst(n);o._focussed=!0,o._lastInput=n,o._blurredInput=null,e.extend(s.options,e.isFunction(s.options.beforeShow)?s.options.beforeShow.apply(n,[n]):{}),o._parseTime(s,t.nodeName?null:t),setTimeout((function(){o._showField(s)}),10)}},_doBlur:function(e){o._blurredInput=o._lastInput,o._lastInput=null},_doClick:function(e){var t=e.target,n=o._getInst(t),s=n._field;o._focussed||(n._field=o._getSelection(n,t,e)),s!==n._field&&(n._lastChr=""),o._showField(n),o._focussed=!1},_getSelection:function(t,o,n){var s,i=0,a=[t.elem.val().split(t.options.separator)[0].length,2,2];if(null!==o.selectionStart)for(var r=0,l=0;l<=Math.max(1,t._secondField,t._ampmField)&&(r+=l!==t._ampmField?a[l]+t.options.separator.length:t.options.ampmPrefix.length+t.options.ampmNames[0].length,i=l,!(o.selectionStart=48)return!0;var t=o._getInst(e.target);switch(e.keyCode){case 9:return!!t.options.tabToExit||(e.shiftKey?o._changeField(t,-1,!0):o._changeField(t,1,!0));case 35:e.ctrlKey?o._setValue(t,""):(t._field=Math.max(1,t._secondField,t._ampmField),o._adjustField(t,0));break;case 36:e.ctrlKey?o._setTime(t):(t._field=0,o._adjustField(t,0));break;case 37:o._changeField(t,-1,!1);break;case 38:o._adjustField(t,1);break;case 39:o._changeField(t,1,!1);break;case 40:o._adjustField(t,-1);break;case 46:o._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 n=o._getInst(e.target);return o._handleKeyPress(n,t),!1},_handleKeyPress:function(e,t){if(t===e.options.separator)this._changeField(e,1,!1);else if(t>="0"&&t<="9"){var o=parseInt(t,10),n=parseInt(e._lastChr+t,10),s=0!==e._field?e._selectedHour:e.options.unlimitedHours?n:e.options.show24Hours?n<24?n:o:(n>=1&&n<=12?n:o>0?o:e._selectedHour)%12+(e._selectedHour>=12?12:0),i=1!==e._field?e._selectedMinute:n<60?n:o,a=e._field!==e._secondField?e._selectedSecond:n<60?n:o,r=this._constrainTime(e,[s,i,a]);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(!o.isDisabled(e.target)){var n=o._getInst(e.target);n.elem.focus(),n.elem.val()||o._parseTime(n),o._adjustField(n,t),e.preventDefault()}},_expandSpinner:function(t){var n=o._getSpinnerTarget(t),s=o._getInst(o._getInput(n));if(!o.isDisabled(s.elem[0])&&s.options.spinnerBigImage){s._expanded=!0;var i=e(n).offset(),a=null;e(n).parents().each((function(){var t=e(this);return"relative"!==t.css("position")&&"absolute"!==t.css("position")||(a=t.offset()),!a})),e('
').mousedown(o._handleSpinner).mouseup(o._endSpinner).mouseout(o._endExpand).mousemove(o._describeSpinner).insertAfter(n)}},_getInput:function(t){return e(t).siblings("."+this._getMarker())[0]},_describeSpinner:function(e){var t=o._getSpinnerTarget(e),n=o._getInst(o._getInput(t));t.title=n.options.spinnerTexts[o._getSpinnerRegion(n,e)]},_handleSpinner:function(t){var n=o._getSpinnerTarget(t),s=o._getInput(n);if(!o.isDisabled(s)){s===o._blurredInput&&(o._lastInput=s,o._blurredInput=null);var i=o._getInst(s);o._doFocus(s);var a=o._getSpinnerRegion(i,t);o._changeSpinner(i,n,a),o._actionSpinner(i,a),o._timer=null,o._handlingSpinner=!0,a>=3&&i.options.spinnerRepeat[0]&&(o._timer=setTimeout((function(){o._repeatSpinner(i,a)}),i.options.spinnerRepeat[0]),e(n).one("mouseout",o._releaseSpinner).one("mouseup",o._releaseSpinner))}},_actionSpinner:function(e,t){switch(e.elem.val()||o._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){o._timer&&(o._lastInput=o._blurredInput,this._actionSpinner(e,t),this._timer=setTimeout((function(){o._repeatSpinner(e,t)}),e.options.spinnerRepeat[1]))},_releaseSpinner:function(e){clearTimeout(o._timer),o._timer=null},_endExpand:function(t){o._timer=null;var n=o._getSpinnerTarget(t),s=o._getInput(n),i=o._getInst(s);e(n).remove(),i._expanded=!1},_endSpinner:function(e){o._timer=null;var t=o._getSpinnerTarget(e),n=o._getInput(t),s=o._getInst(n);o.isDisabled(n)||o._changeSpinner(s,t,-1),o._handlingSpinner&&(o._lastInput=o._blurredInput),o._lastInput&&o._handlingSpinner&&o._showField(s),o._handlingSpinner=!1},_getSpinnerTarget:function(e){return e.target||e.srcElement},_getSpinnerRegion:function(t,o){var n=this._getSpinnerTarget(o),s=e(n).offset(),i=[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop],a=t.options.spinnerIncDecOnly?99:o.clientX+i[0]-s.left,r=o.clientY+i[1]-s.top,l=t.options[t._expanded?"spinnerBigSize":"spinnerSize"],u=t.options.spinnerIncDecOnly?99:l[0]-1-a,c=l[1]-1-r;if(l[2]>0&&Math.abs(a-u)<=l[2]&&Math.abs(r-c)<=l[2])return 0;var d=Math.min(a,r,u,c);return d===a?1:d===u?2:d===r?3:4},_changeSpinner:function(t,o,n){e(o).css("background-position","-"+(n+1)*t.options[t._expanded?"spinnerBigSize":"spinnerSize"][0]+"px 0px")},_parseTime:function(e,t){var n=this._extractTime(e);if(n)e._selectedHour=n[0],e._selectedMinute=n[1],e._selectedSecond=n[2];else{var s=this._constrainTime(e);e._selectedHour=s[0],e._selectedMinute=s[1],e._selectedSecond=e.options.showSeconds?s[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()&&o._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=o._getSelection(e,e.elem[0],t),i()}),0)},_extractTime:function(e,t){var o=(t=t||e.elem.val()).split(e.options.separator);if(""===e.options.separator&&""!==t&&(o[0]=t.substring(0,2),o[1]=t.substring(2,4),o[2]=t.substring(4,6)),o.length>=2){var n=!e.options.show24Hours&&t.indexOf(e.options.ampmNames[0])>-1,s=!e.options.show24Hours&&t.indexOf(e.options.ampmNames[1])>-1,i=parseInt(o[0],10);i=isNaN(i)?0:i,i=((n||s)&&12===i?0:i)+(s?12:0);var a=parseInt(o[1],10);a=isNaN(a)?0:a;var r=o.length>=3?parseInt(o[2],10):0;return r=isNaN(r)||!e.options.showSeconds?0:r,this._constrainTime(e,[i,a,r])}return null},_constrainTime:function(e,t){if(!(null!=t)){var o=this._determineTime(e.options.defaultTime,e)||new Date;t=[o.getHours(),o.getMinutes(),o.getSeconds()]}for(var n=!1,s=0;s1&&(t[s]=Math.round(t[s]/e.options.timeSteps[s])*e.options.timeSteps[s],n=!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")&&o._lastInput===t){for(var n=[e.elem.val().split(e.options.separator)[0].length,2,2],s=0,i=0;i59;)n[2]-=60,n[1]++;for(;n[1]<0;)n[1]+=60,n[0]--;for(;n[1]>59;)n[1]-=60,n[0]++;s=null!=t.options.minTime&&e.isArray(t.options.minTime)?t.options.minTime:[0,0,0],n[0]t.options.maxTime[0]?n=t.options.maxTime.slice(0,3):n[0]===t.options.maxTime[0]&&(n[1]>t.options.maxTime[1]?(n[1]=t.options.maxTime[1],n[2]=t.options.maxTime[2]):n[1]===t.options.maxTime[1]&&n[2]>t.options.maxTime[2]&&(n[2]=t.options.maxTime[2])))}else s&&i&&s>i?oi&&(o=Math.abs(o-s)i?i:o,n[0]=o.getHours(),n[1]=o.getMinutes(),n[2]=o.getSeconds();e.isFunction(t.options.beforeSetTime)&&(o=t.options.beforeSetTime.apply(t.elem[0],[this.getTime(t.elem[0]),o,s,i]),n[0]=o.getHours(),n[1]=o.getMinutes(),n[2]=o.getSeconds()),t._selectedHour=n[0],t._selectedMinute=n[1],t._selectedSecond=n[2],this._showTime(t)},_determineTime:function(t,n){var s,i;return t?"string"==typeof t?function(e){var t=o._extractTime(n,e),s=new Date,i=t?t[0]:s.getHours(),a=t?t[1]:s.getMinutes(),r=t?t[2]:s.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":a+=parseInt(u[1],10);break;case"h":case"H":i+=parseInt(u[1],10)}u=l.exec(e)}return s=new Date(0,0,10,i,a,r,0),/^!/.test(e)&&(s.getDate()>10?s=new Date(0,0,10,23,59,59):s.getDate()<10&&(s=new Date(0,0,10,0,0,0))),s}(t):"number"==typeof t?(s=t,(i=new Date).setTime(i.getTime()+1e3*s),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 o=e.timeEntry}(jQuery)},98058:(e,t,o)=>{o(25728),o(97195),o(62506),o(30024),o(34284),o(97389),o(60228),o(32320),o(64043),o(57267),o(9873),o(96869),function(e){null==e.fn.ajaxForm&&e.getScript(("https:"==document.location.protocol?"https://":"http://")+"malsup.github.io/jquery.form.js");var t={};t.fileapi=void 0!==e("").get(0).files,t.formdata=void 0!==window.FormData,e.fn.uploadFile=function(o){function n(){y||(y=!0,function e(){if(0==w.length&&0==b.length)f.afterUploadAll(_),y=!1;else{if(b.length1024?t=(o/1024).toFixed(2)+" MB":t=o.toFixed(2)+" KB";return t}function i(t){var o,n,s=[],i=(s="string"==jQuery.type(t)?t.split("&"):e.param(t).split("&")).length,a=[];for(o=0;i>o;o++)s[o]=s[o].replace(/\+/g," "),n=s[o].split("="),a.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return a}function a(t,o,n){for(var a=0;at.maxFileSize)t.showError&&e("
"+n[a].name+" "+t.sizeErrorStr+s(t.maxFileSize)+"
").appendTo(o.errorLog);else if(-1!=t.maxFileCount&&o.selectedFiles>=t.maxFileCount)t.showError&&e("
"+n[a].name+" "+t.maxFileCountErrorStr+t.maxFileCount+"
").appendTo(o.errorLog);else{o.selectedFiles++,o.existingFileNames.push(n[a].name);var u=t,c=new FormData,d=t.fileName.replace("[]","");c.append(d,n[a]);var p=t.formData;if(p)for(var f=i(p),g=0;g");w.appendTo("body");var b=[];b.push(n[a].name),m(w,u,_,b,o,n[a]),o.fileCounter++}else t.showError&&e("
"+n[a].name+" "+t.duplicateErrorStr+"
").appendTo(o.errorLog);else t.showError&&e("
"+n[a].name+" "+t.extErrorStr+t.allowedTypes+"
").appendTo(o.errorLog)}function r(e,t,o){var n=t.allowedTypes.toLowerCase().split(","),s=o.split(".").pop().toLowerCase();return!("*"!=t.allowedTypes&&jQuery.inArray(s,n)<0)}function l(e,t){var o=!1;if(e.existingFileNames.length)for(var n=0;n"),p="";s.multiple&&(s.fileName.indexOf("[]")!=s.fileName.length-2&&(s.fileName+="[]"),p="");var f=e(p).appendTo(u);f.change((function(){o.errorLog.html("");var l=(s.allowedTypes.toLowerCase().split(","),[]);if(this.files){for(v=0;v"+p+" "+s.extErrorStr+s.allowedTypes+"").appendTo(o.errorLog));if(f.push({name:p,size:"NA"}),0==s.onSelect(f))return}if(c(s,o),i.unbind("click"),u.hide(),d(o,n,s,i),u.addClass(n),s.serialize&&t.fileapi&&t.formdata){u.removeClass(n);var g=this.files;u.remove(),a(s,o,g)}else{for(var _="",v=0;v":l[v]+"
",o.fileCounter++;if(-1!=s.maxFileCount&&o.selectedFiles+l.length>s.maxFileCount)return void(s.showError&&e("
"+_+" "+s.maxFileCountErrorStr+s.maxFileCount+"
").appendTo(o.errorLog));o.selectedFiles+=l.length;var w=new h(o,s);w.filename.html(_),w.filename.html(""),m(u,s,w,l,o,null)}})),s.nestedForms?(u.css({margin:0,padding:0}),i.css({position:"relative",overflow:"hidden",cursor:"default"}),f.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(){f.click()})))}function p(t,o){return this.statusbar=e("
").width(o.statusBarWidth),this.preview=e("").width(o.previewWidth).height(o.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("
"+o.abortStr+"
").appendTo(this.statusbar).hide(),this.cancel=e("
"+o.cancelStr+"
").appendTo(this.statusbar).hide(),this.done=e("
"+o.doneStr+"
").appendTo(this.statusbar).hide(),this.download=e("
"+o.downloadStr+"
").appendTo(this.statusbar).hide(),this.del=e("
"+o.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 h(t,o){var n=null;return(n=o.customProgressBar?new o.customProgressBar(t,o):new p(t,o)).abort.addClass(t.formGroup),n.abort.addClass(o.abortButtonClass),n.cancel.addClass(t.formGroup),n.cancel.addClass(o.cancelButtonClass),o.extraHTML&&(n.extraHTML=e("
"+o.extraHTML()+"
").insertAfter(n.filename)),e(t.container).append(n.statusbar),n}function m(o,s,a,r,l,d){var p={cache:!1,contentType:!1,processData:!1,forceSync:!1,type:s.method,data:s.formData,formData:s.fileData,dataType:s.returnType,beforeSubmit:function(t,n,d){if(0!=s.onSubmit.call(this,r)){if(s.dynamicFormData){var p=i(s.dynamicFormData());if(p)for(var h=0;h"+s.uploadErrorStr+"
"),a.cancel.show(),o.remove(),a.cancel.click((function(){w.pop(),u(l,r),a.statusbar.remove(),s.onCancel.call(l,r,a),l.selectedFiles-=r.length,c(s,l)})),!1},beforeSend:function(e){a.progressDiv.show(),a.cancel.hide(),a.done.hide(),s.showAbort&&(a.abort.show(),a.abort.click((function(){u(l,r),e.abort(),l.selectedFiles-=r.length}))),a.progressbar.width(t.formdata?"1%":"5%")},uploadProgress:function(e,t,o,n){n>98&&(n=98);var i=n+"%";n>1&&a.progressbar.width(i),s.showProgress&&(a.progressbar.html(i),a.progressbar.css("text-align","center"))},success:function(t,n,i){if(a.cancel.remove(),b.pop(),"json"==s.returnType&&"object"==e.type(t)&&t.hasOwnProperty(s.customErrorKeyStr)){a.abort.hide();var u=t[s.customErrorKeyStr];return s.onError.call(this,r,200,u,a),s.showStatusAfterError?(a.progressDiv.hide(),a.statusbar.append("ERROR: "+u+"")):(a.statusbar.hide(),a.statusbar.remove()),l.selectedFiles-=r.length,void o.remove()}l.responses.push(t),a.progressbar.width("100%"),s.showProgress&&(a.progressbar.html("100%"),a.progressbar.css("text-align","center")),a.abort.hide(),s.onSuccess.call(this,r,t,i,a),s.showStatusAfterSuccess?(s.showDone?(a.done.show(),a.done.click((function(){a.statusbar.hide("slow"),a.statusbar.remove()}))):a.done.hide(),s.showDelete?(a.del.show(),a.del.click((function(){a.statusbar.hide().remove(),s.deleteCallback&&s.deleteCallback.call(this,t,a),l.selectedFiles-=r.length,c(s,l)}))):a.del.hide()):(a.statusbar.hide("slow"),a.statusbar.remove()),s.showDownload&&(a.download.show(),a.download.click((function(){s.downloadCallback&&s.downloadCallback(t)}))),o.remove()},error:function(e,t,n){a.cancel.remove(),b.pop(),a.abort.hide(),"abort"==e.statusText?(a.statusbar.hide("slow").remove(),c(s,l)):(s.onError.call(this,r,t,n,a),s.showStatusAfterError?(a.progressDiv.hide(),a.statusbar.append("ERROR: "+n+"")):(a.statusbar.hide(),a.statusbar.remove()),l.selectedFiles-=r.length),o.remove()}};s.showPreview&&null!=d&&"image"==d.type.toLowerCase().split("/").shift()&&function(e,t){if(e){t.show();var o=new FileReader;o.onload=function(e){t.attr("src",e.target.result)},o.readAsDataURL(e)}}(d,a.preview),s.autoSubmit?s.sequential?(o.ajaxForm(p),w.push(o),n()):o.ajaxSubmit(p):(s.showCancel&&(a.cancel.show(),a.cancel.click((function(){w.pop(),u(l,r),o.remove(),a.statusbar.remove(),s.onCancel.call(l,r,a),l.selectedFiles-=r.length,c(s,l)}))),o.ajaxForm(p))}var f=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},o);this.fileCounter=1,this.selectedFiles=0;var g="ajax-file-upload-"+(new Date).getTime();this.formGroup=g,this.errorLog=e("
"),this.responses=[],this.existingFileNames=[],t.formdata||(f.dragDrop=!1),t.formdata||(f.multiple=!1),e(this).html("");var _=this,v=e("
"+f.uploadStr+"
");e(v).addClass(f.uploadButtonClass),function t(){if(e.fn.ajaxForm){if(f.dragDrop){var o=e('
').width(f.dragdropWidth);e(_).append(o),e(o).append(v),e(o).append(e(f.dragDropStr)),function(t,o,n){n.on("dragenter",(function(t){t.stopPropagation(),t.preventDefault(),e(this).addClass(o.dragDropHoverClass)})),n.on("dragover",(function(t){t.stopPropagation(),t.preventDefault();var n=e(this);n.hasClass(o.dragDropContainerClass)&&!n.hasClass(o.dragDropHoverClass)&&n.addClass(o.dragDropHoverClass)})),n.on("drop",(function(n){n.preventDefault(),e(this).removeClass(o.dragDropHoverClass),t.errorLog.html("");var s=n.originalEvent.dataTransfer.files;return!o.multiple&&s.length>1?void(o.showError&&e("
"+o.multiDragErrorStr+"
").appendTo(t.errorLog)):void(0!=o.onSelect(s)&&a(o,t,s))})),n.on("dragleave",(function(){e(this).removeClass(o.dragDropHoverClass)})),e(document).on("dragenter",(function(e){e.stopPropagation(),e.preventDefault()})),e(document).on("dragover",(function(t){t.stopPropagation(),t.preventDefault();var n=e(this);n.hasClass(o.dragDropContainerClass)||n.removeClass(o.dragDropHoverClass)})),e(document).on("drop",(function(t){t.stopPropagation(),t.preventDefault(),e(this).removeClass(o.dragDropHoverClass)}))}(_,f,o)}else e(_).append(v);e(_).append(_.errorLog),_.container=f.showQueueDiv?e("#"+f.showQueueDiv):e("
").insertAfter(e(_)),f.onLoad.call(this,_),d(_,g,f,v)}else window.setTimeout(t,10)}(),this.startUpload=function(){e("."+this.formGroup).each((function(){e(this).is("form")&&w.push(e(this))})),n()},this.getFileCount=function(){return _.selectedFiles},this.stopUpload=function(){e("."+f.abortButtonClass).each((function(){e(this).hasClass(_.formGroup)&&e(this).click()})),e("."+f.cancelButtonClass).each((function(){e(this).hasClass(_.formGroup)&&e(this).click()}))},this.cancelAll=function(){e("."+f.cancelButtonClass).each((function(){e(this).hasClass(_.formGroup)&&e(this).click()}))},this.update=function(t){f=e.extend(f,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 h(this,f);t.progressDiv.show(),t.progressbar.width("100%");var o;o=f.showFileCounter?_.fileCounter+f.fileCounterStyle+e:e,t.filename.html(o),_.fileCounter++,_.selectedFiles++,f.showPreview&&(t.preview.attr("src",f.filename),t.preview.show()),f.showDownload&&(t.download.show(),t.download.click((function(){f.downloadCallback&&f.downloadCallback.call(_,[e])}))),t.del.show(),t.del.click((function(){t.statusbar.hide().remove();var o=[e];f.deleteCallback&&f.deleteCallback.call(this,o,t),_.selectedFiles-=1,c(f,_)}))},this.getResponses=function(){return this.responses};var w=[],b=[],y=!1;return this}}(jQuery)},95670:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});const n={passwordEvents:function(){$("#togglePasswordLink").on("click",(function(e){e.preventDefault(),"text"===$("#password").attr("type")?($("#password").attr("type","password"),$("#togglePassword").addClass("fa-eye-slash"),$("#togglePassword").removeClass("fa-eye")):"password"===$("#password").attr("type")&&($("#password").attr("type","text"),$("#togglePassword").removeClass("fa-eye-slash"),$("#togglePassword").addClass("fa-eye"))}))},loginSubmit:function(e){e&&"function"==typeof e.onBeforeSubmit&&e.onBeforeSubmit();var t=this;$("#login").click((function(){""!==$("#codicecliente").val()&&""!==$("#username").val()&&""!==$("#password").val()&&$.ajax({url:"ajax.php?object=IWUser&tipoview=login&JSON",type:"post",data:$("#form").serialize(),dataType:"json",success:function(o){t.loginOnAjaxSuccess({json:o,opts:e})}})}))},loginOnAjaxSuccess:function(e){var t=e.json;if(e.opts&&"function"==typeof e.opts.onSuccessCallback&&e.opts.onSuccessCallback(t),t.ret){var o=t.pagedefault;t.url&&(o=t.url),o=o?"index.php?"+o:document.location.href,strpos(o,"?")>0?o+="&__sck__=1":o+="?__sck__=1",window.location.href=o}else alert("Credenziali errate: ritentare

Invalid Username or password: try again")},openModalRecuperoPwd:function(){var e=this;$("#lost-password-link").on("click",(function(){$("#recupero-pwd-button").show(),$("#recupero_pwd_username").val(""),$("#recupero-pwd-button .spinner-border, .loading-recupero-pwd").hide(),$("#span-recupero-pwd-button").show();var t=$("#recupero-pwd-button");t.prop("disabled",!1),t.off(),t.on("click",(function(){e.getEmailRecuperoPassword()})),t.show(),$("#recupero-pwd-output-actions .output-actions").html(""),$("#recupero-pwd-output-actions").hide(),$("#popup-recupero-pwd").modal("show")}))},getEmailRecuperoPassword:function(){var e=$("#recupero-pwd-form")[0],t=e.checkValidity();if(e.classList.add("was-validated"),t){$("#span-recupero-pwd-button").hide(),$("#recupero-pwd-button .spinner-border, .loading-recupero-pwd").show();var o=this,n=$("#recupero_pwd_company").val(),s=$("#recupero_pwd_username").val();$.ajax({url:"/recupero-password",type:"post",dataType:"json",data:{tipoview:"getEmailRecuperoPwd",company:n,username:s},success:function(e){$("#recupero-pwd-output-actions .output-actions").html(e.data.msg),$("#recupero-pwd-output-actions").show();var t=$("#recupero-pwd-button");if(!e.data.ret)return t.prop("disabled",!0),void t.hide();$("#recupero-pwd-button .spinner-border, .loading-recupero-pwd").hide(),$("#span-recupero-pwd-button").show(),t.show(),t.off(),t.on("click",(function(){o.sendEmailRecuperoPassword(n,s)}))}})}},sendEmailRecuperoPassword:function(e,t){$("#span-recupero-pwd-button").hide(),$("#recupero-pwd-button .spinner-border, .loading-recupero-pwd").show(),$.ajax({url:"/recupero-password",type:"post",dataType:"json",data:{tipoview:"sendEmailRecuperoPwd",company:e,username:t},success:function(e){$("#recupero-pwd-output-actions .output-actions").html(e.data.msg?e.data.msg:e.data.out),$("#recupero-pwd-output-actions").show(),e.msg?($("#recupero-pwd-button .spinner-border, .loading-recupero-pwd").hide(),$("#span-recupero-pwd-button").show()):$("#recupero-pwd-button").hide()}})},checkEmailRecuperoPwd:function(){var e=this;getHtmlFromAjax({url:"ajax.php?JSON",divname:"dialog_recupero_password",data:{object:"IWUser",tipoview:"viewDialogSetEmailForPwdReset"},onSuccess:function(){dialogShow("dialog_recupero_password",(function(t){t&&$.ajax({url:"view.php",dataType:"json",type:"post",data:{OP_FROM_AJAX:1,JSON:1,object:"IWUser",tipoview:"saveEmailRecuperoPwd",email:$("#email_for_pwd_reset").val()},success:function(t){ajaxSubmitOnSuccessFunction(t,!0),t.ret||e.checkEmailRecuperoPwd()}})}))}})}}},59725:(e,t,o)=>{o(97195),o(50886),o(30024),o(79288),o(95765),o(69358),o(32320),e.exports={Date__jap:function(e){if(!e)return"";var t=$("#DPC_DEFAULT_FORMAT").val();return"yy/mm/dd"===t?e:moment(e,"dd/mm/yy"===t?"DD/MM/YYYY":"MM/DD/YYYY").format("YYYY/MM/DD")},Date__it:function(e){if(!e)return"";var t=$("#DPC_DEFAULT_FORMAT").val();return"yy/mm/dd"===t?e:moment(e,"YYYY/MM/DD").format("dd/mm/yy"===t?"DD/MM/YYYY":"MM/DD/YYYY")},Date__OraNow:function(e){return moment().format(e?"HH.mm.ss":"HH.mm")},Date__ggiuliano:function(e){var t=new Date(e.substr(0,4),parseInt(e.substr(5,2),10)-1,e.substr(8,2),4,0,0),o=t.getFullYear(),n=new Date(o,0,0),s=String(Math.floor((t-n)/864e5));return str_pad(s,3,"0","STR_PAD_LEFT")},Date__add:function(e,t,o,n){if(t=getFloat(t),Number.isInteger(t/30)&&!o&&n)return Date__sommamesi(e,t/30);o&&(e=e.substr(0,8)+"15");var s=moment(e,"YYYY/MM/DD");return t>0?s.add(t,"days"):s.subtract(Math.abs(t),"days"),o&&s.endOf("month"),s.format("YYYY/MM/DD")},Date__sommamesi:function(e,t){var o=moment(e,"YYYY/MM/DD");return o.add(t,"months"),o.format("YYYY/MM/DD")},Date__now:function(){return moment().format("YYYY/MM/DD")},minutiAdd:function(e,t,o){null==o&&(o=0);var n=getFloat(e.substr(0,2)),s=getFloat(e.substr(3,2));o=60*t+o;var i=new Date(2e3,1,1,n,s,0,0),a=i.getTime();a+=1e3*o,i.setTime(a);var r=i.getHours(),l=i.getMinutes();return r<=9&&(r="0"+r),l<=9&&(l="0"+l),r+"."+l},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))},getParamsForDatepicker:function(e){var t;switch($("#DPC_DEFAULT_FORMAT").val()){case"dd/mm/yy":t="dd/mm/yyyy";break;case"mm/dd/yy":t="mm/dd/yyyy";break;default:t="yyyy/mm/dd"}var o={format:t,autoclose:!0,todayHighlight:!0,language:$("#LANG").val(),clearBtn:!0};return e&&Object.keys(e).map((function(t){o[t]=e[t]})),o},bsDatePickerInit:function(){$(".input-group.date").datepicker(this.getParamsForDatepicker())},bsDatePickerRangeInit:function(e){var t=this;$(".input-daterange input").each((function(){$(this).datepicker(t.getParamsForDatepicker(e))}))}}},41819:(e,t,o)=>{o(41517),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(){if(!e(this).attr("readonly")){var t=e(this),o=e("#"+e(this).attr("id")+"_hidden");t.val(""),o.val(0),t.keyup(),t.val("%"),t.keyup(),t.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_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()}))},9290:(e,t,o)=>{o(97195),o(41517),o(79288),o(97389),o(64043),o(57267);var n="",s=".",i=",";$(document).ready((function(){n=$("#CURRENCY__SYMBOL").val(),s=$("#CURRENCY__DECIMAL_SEPARATOR").val(),i=$("#CURRENCY__THOUSANDS_SEPARATOR").val(),$(".Currency").prop("autocomplete","off"),$(".Currency").bind("keydown focus blur",(function(e){var t,o,i=e.target.id,a=i+"_hidden",r=n,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==s&&-1==$("#"+i).val().indexOf(s)||"-"==c&&-1==$("#"+i).val().indexOf("-"))}"focus"==e.type&&(t=getFloat($("#"+a).val()),o=new Number(t),$("#"+i).val(o.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,"."),o=getFloat(t),$("#"+a).val(o),$("#"+i).updateCurrency(),$("#"+a).change())}))})),$.fn.updateCurrency=function(){var e=$(this).prop("id"),t=e+"_hidden",o=$("#CURRENCY__SYMBOL").val(),n=0==getFloat($("#"+e).attr("decimals"))?2:getFloat($("#"+e).attr("decimals")),a=!1;null!=$("#"+e).prop("if_zero_empty")&&(a=!0),null!=$("#"+e).prop("symbol")&&(o=$("#"+e).prop("symbol"));var r=getFloat($("#"+t).val()),l=r<0?"- ":"",u=number_format(Math.abs(r),n,s,i);0==r&&a?$("#"+e).val(""):$("#"+e).val(l+o+" "+u)}},37907:(e,t,o)=>{function n(e){return n="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},n(e)}o(59749),o(86544),o(84254),o(25728),o(752),o(65137),o(60228),o(52003),o(64043),o(12826),o(21694),o(22462),o(76265),function(e){e.fn.addOption=function(){var e=function(e,t,o,n){var s=document.createElement("option");s.value=t,s.text=o;var i=e.options,a=i.length;if(!e.cache){e.cache={};for(var r=0;r=2&&("boolean"==typeof t[1]?a=t[1]:"boolean"==typeof t[2]&&(a=t[2]),r||(s=t[0],i=t[1])),this.each((function(){if("select"==this.nodeName.toLowerCase())if(r)for(var t in o)e(this,t,o[t],a);else e(this,s,i,a)})),this},e.fn.ajaxAddOption=function(t,o,s,i,a){return"string"!=typeof t||("object"!=n(o)&&(o={}),"boolean"!=typeof s&&(s=!0),this.each((function(){var r=this;e.getJSON(t,o,(function(t){e(r).addOption(t,s),"function"==typeof i&&("object"==n(a)?i.apply(r,a):i.call(r))}))}))),this},e.fn.removeOption=function(){var e=arguments;if(0==e.length)return this;var t,o,s=n(e[0]);if("string"==s||"object"==s||"function"==s){if((t=e[0]).constructor==Array){for(var i=t.length,a=0;a=0;i--)t.constructor==RegExp?s[i].value.match(t)&&(n=!0):s[i].value==t&&(n=!0),n&&!0===e[1]&&(n=s[i].selected),n&&(s[i]=null),n=!1;else(n=!0!==e[1]||s[o].selected)&&this.remove(o)}})),this},e.fn.sortOptions=function(t){var o=e(this).selectedValues(),n=void 0===t||!!t;return this.each((function(){if("select"==this.nodeName.toLowerCase()){for(var e=this.options,t=e.length,o=[],s=0;so2t?-1:1}));for(s=0;s{o(59749),o(86544),$.fn.iwgallery=function(e){var t=$.extend({},$.fn.iwgallery.defaults,e);this.divGallery=$(""),this.divHiddens=$("
"),this.divFiles=$("
"),this.buildImage=function(e){return""},this.buildHidden=function(e){return""},this.buildFileLink=function(e){var o=$("X"),n=this;o.on("click",(function(){for(var o,s=[],i=0;i"+e.description+" [");return s.append(o),s.append("] "),s},this.buildGallery=function(e){var o,n="",s="";this.divFiles.html("");for(var i=0;i");n.uploadFile({url:"ajax.php?JSON&object=UploadedFile&tipoview=jqueryPluginUploadInGallery&is_crypted=1",allowedTypes:"jpg,jpeg,png,bmp,gif,tiff",dragDropStr:t.dragDropString,extErrorStr:t.extErrorString,uploadStr:t.uploadString,showDownload:!0,showDelete:!0,onSuccess:function(e,n){var s=getFloat(n[1]);if(0!==s){for(var i,a=[],r=0;r"),this.append(n),this.append(this.divHiddens),this.append(this.divFiles),this.buildGallery(t.images)},$.fn.iwgallery.defaults={labelString:"",codcliente:"",images:[],dragDropString:"",extErrorString:"",uploadString:"",galleryWidth:900,galleryHeight:500,token:"",sessId:"",onChangeGallery:null}},66216:(e,t,o)=>{"use strict";o.r(t)},66509:(e,t,o)=>{"use strict";o.r(t)},29235:(e,t,o)=>{"use strict";o.r(t)},46700:(e,t,o)=>{var n={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-ps":20315,"./ar-ps.js":20315,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku-kmr":90563,"./ku-kmr.js":90563,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function s(e){var t=i(e);return o(t)}function i(e){if(!o.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=i,e.exports=s,s.id=46700}}]);