@esfaenza/extensions 11.2.13 → 11.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("ngx-toastr"),require("sweetalert2"),require("cerialize"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("@esfaenza/extensions",["exports","@angular/core","ngx-toastr","sweetalert2","cerialize","rxjs/operators","rxjs"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).esfaenza=t.esfaenza||{},t.esfaenza.extensions={}),t.ng.core,t.ngxToastr,t.swal,t.cerialize,t.rxjs.operators,t.rxjs)}(this,(function(t,e,r,i,o,n,a){"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=s(i),c=new e.InjectionToken("EXT_LOCALE"),u=new e.InjectionToken("EXT_FANCY_ALERTS"),p=new e.InjectionToken("APPSEARCH_PREFIX"),f=new e.InjectionToken("EXT_ALLOW_UTC"),h=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:c,useValue:(null==e?void 0:e.locale)||"it-IT"},{provide:u,useValue:(null==e?void 0:e.fancy_alerts)||!0},{provide:p,useValue:(null==e?void 0:e.appsearch_prefix)||"Hot"},{provide:f,useValue:null!=(null==e?void 0:e.allow_utc)&&(null==e?void 0:e.allow_utc)}]}},t}();h.decorators=[{type:e.NgModule}];var d=function(){function t(t,e,r){var i,o,n,a,s,c,u,p,f,h,d;this.toastr=t,this.FANCY_ALERTS=e,this.LOCALE=r,this.loc={Confirm:{"en-US":"Confirm","it-IT":"Conferma"},Cancel:{"en-US":"Cancel","it-IT":"Annulla"},Close:{"en-US":"Close","it-IT":"Chiudi"},Error:{"en-US":"Error","it-IT":"Errore"},Info:{"en-US":"Info","it-IT":"Informazione"},Success:{"en-US":"Success","it-IT":"Successo"},Warning:{"en-US":"Warning","it-IT":"Attenzione"}},this.expiredSessionSwal=l.default.mixin({showCancelButton:!1,confirmButtonText:"Login",customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!1,allowOutsideClick:!1,icon:"warning"}),this.warningSwalWithCancel=l.default.mixin({title:this.loc.Warning[null!==(i=this.LOCALE)&&void 0!==i?i:"it-IT"],customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-secondary app-margin-right-10",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!0,confirmButtonText:this.loc.Confirm[null!==(o=this.LOCALE)&&void 0!==o?o:"it-IT"],cancelButtonText:this.loc.Cancel[null!==(n=this.LOCALE)&&void 0!==n?n:"it-IT"],icon:"warning"}),this.warningSwal=l.default.mixin({title:this.loc.Warning[null!==(a=this.LOCALE)&&void 0!==a?a:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(s=this.LOCALE)&&void 0!==s?s:"it-IT"],icon:"warning"}),this.successSwal=l.default.mixin({title:this.loc.Success[null!==(c=this.LOCALE)&&void 0!==c?c:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(u=this.LOCALE)&&void 0!==u?u:"it-IT"],icon:"success"}),this.errorSwal=l.default.mixin({title:this.loc.Error[null!==(p=this.LOCALE)&&void 0!==p?p:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(f=this.LOCALE)&&void 0!==f?f:"it-IT"],icon:"error"}),this.infoSwal=l.default.mixin({title:this.loc.Info[null!==(h=this.LOCALE)&&void 0!==h?h:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(d=this.LOCALE)&&void 0!==d?d:"it-IT"],icon:"info"})}return t.prototype.simpleSuccess=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.successSwal.fire("",t):this.toastr.success(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.simpleInfo=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.infoSwal.fire("",t):this.toastr.info(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.simpleError=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.errorSwal.fire("",t):this.toastr.error(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.simpleWarning=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.warningSwal.fire("",t):this.toastr.warning(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.clearMessages=function(){this.toastr.clear(),l.default.close()},t.prototype.promiseWarningWithChoice=function(t,e){return this.warningSwalWithCancel.fire(t,e)},t.prototype.toastrOrSwal=function(t){return null!=t?t:null==this.FANCY_ALERTS||this.FANCY_ALERTS?"swal":"toastr"},t.prototype.simpleWarningWithChoice=function(t,e,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.warningSwalWithCancel.fire(t,e).then((function(t){t.value&&r?r():i&&i()}))},t.prototype.expiredSessionMessage=function(t,e,r){void 0===r&&(r=null),this.expiredSessionSwal.fire(t,e).then((function(t){t.value&&r&&r()}))},t.prototype.manageCallResultResponse=function(t,e,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.success?(e&&this.simpleSuccess(e),i&&i()):t.haserror?(this.simpleError((r?r+": ":"")+t.error),o&&o()):t.haswarning&&this.simpleWarning(t.warning)},t.prototype.manageStringResponse=function(t,e,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t?(r&&this.simpleError(r+": "+t),o&&o()):(e&&this.simpleSuccess(e),i&&i())},t.prototype.manageStringResponseBool=function(t,e,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t?(e&&this.simpleSuccess(e),i&&i()):(r&&this.simpleError(r),o&&o())},t}();d.decorators=[{type:e.Injectable}],d.ctorParameters=function(){return[{type:r.ToastrService},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[u]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]};var v=function(){function t(t,e){this.msgService=t,this.LOCALE=e,this.loc={"Unfortunately Firefox doesn't yet support direct Clipboard access if not via extensions, Please use Chrome to do this operation":{"en-US":"Unfortunately Firefox doesn't yet support direct Clipboard access if not via extensions, Please use Chrome to do this operation","it-IT":"Mi dispiace ma Firefox non supporta l'accesso diretto alla Clipboard, se non attraverso le estensioni. Si prega di usare Chrome"},"Generic error during 'copy' command execution":{"en-US":"Generic error during 'copy' command execution","it-IT":"Errore generico durante l'esecuzione del comando 'copy'"},"Error during Clipboard content read operation":{"en-US":"Error during Clipboard content read operation","it-IT":"Errore nella lettura del contenuto della Clipboard"},"Error during Clipboard content copy operation":{"en-US":"Error during Clipboard content copy operation","it-IT":"Errore nella scrittura del contenuto nella Clipboard"}}}return t.prototype.getClipboard=function(t,e){var r,i=this;if(-1==navigator.userAgent.indexOf("Firefox"))if(window.clipboardData){var o=window.clipboardData.getData("Text"),n="array"==t?this.getClipboardLines(o):"matrix"==t?this.getClipboardMatrix(o):[];e&&e(n)}else window.navigator.clipboard&&window.navigator.permissions.query({name:"clipboard-read"}).then((function(r){"granted"!==r.state&&"prompt"!==r.state&&e&&e([]),window.navigator.clipboard.readText().then((function(r){var o="array"==t?i.getClipboardLines(r):"matrix"==t?i.getClipboardMatrix(r):[];e&&e(o)})).catch((function(t){var e;i.msgService.simpleError(i.loc["Error during Clipboard content read operation"][null!==(e=i.LOCALE)&&void 0!==e?e:"it-IT"]+": "+t)}))}));else this.msgService.simpleError(this.loc["Unfortunately Firefox doesn't yet support direct Clipboard access if not via extensions, Please use Chrome to do this operation"][null!==(r=this.LOCALE)&&void 0!==r?r:"it-IT"])},t.prototype.getClipboardLines=function(t){return t.trim().split("\r\n")},t.prototype.getClipboardMatrix=function(t){for(var e=[],r=t.split("\r\n"),i=0;i<r.length;i++)e.push(r[i].split("\t").map((function(t){return t.trim()})));return e},t.prototype.copyTextToClipboard=function(t){var e,r,i=document.createElement("textarea");i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="2em",i.style.height="2em",i.style.padding="0",i.style.border="none",i.style.outline="none",i.style.boxShadow="none",i.style.background="transparent",i.value=t,document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")||this.msgService.simpleError(this.loc["Generic error during 'copy' command execution"][null!==(e=this.LOCALE)&&void 0!==e?e:"it-IT"])}catch(t){this.msgService.simpleError(this.loc["Error during Clipboard content copy operation"][null!==(r=this.LOCALE)&&void 0!==r?r:"it-IT"]+": "+t)}document.body.removeChild(i)},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[{type:d},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]};var y=function(){function t(t,e){var r,i,o,n,a,s,l,c;this.LOCALE=t,this.allowUtc=e,this.loc={SMALL_DATE_FORMAT:{"en-US":"MM/DD/YYYY","it-IT":"DD/MM/YYYY"},FULL_DATE_FORMAT:{"en-US":"MM/DD/YYYY HH:mm:ss","it-IT":"DD/MM/YYYY HH:mm:ss"},FULL_DATE_FORMAT_NO_SS:{"en-US":"MM/DD/YYYY HH:mm","it-IT":"DD/MM/YYYY HH:mm"},SMALL_DATE_DISPLAY_FORMAT:{"en-US":"DD/MM/YYYY","it-IT":"DD/MM/YYYY"},SMALL_DATE_DISPLAY_FORMAT_WITH_HOUR:{"en-US":"DD/MM/YYYY HH","it-IT":"DD/MM/YYYY HH"},SMALL_DATE_DISPLAY_FORMAT_WITH_MINUTE:{"en-US":"DD/MM/YYYY HH:mm","it-IT":"DD/MM/YYYY HH:mm"},FULL_DATE_DISPLAY_FORMAT:{"en-US":"DD/MM/YYYY HH:mm:ss","it-IT":"DD/MM/YYYY HH:mm:ss"},FULL_DATE_DISPLAY_FORMAT_NO_SS:{"en-US":"DD/MM/YYYY HH:mm","it-IT":"DD/MM/YYYY HH:mm"}},this.cfg={fulldate:"",fulldateDisplay:"",smallDate:"",fulldateNoSS:"",smallDateWithH:"",smallDateWithM:"",fulldateDisplayNoSS:""},this.cfg.smallDate=this.loc.SMALL_DATE_FORMAT[null!==(r=this.LOCALE)&&void 0!==r?r:"it-IT"],this.cfg.fulldate=this.loc.FULL_DATE_FORMAT[null!==(i=this.LOCALE)&&void 0!==i?i:"it-IT"],this.cfg.fulldateNoSS=this.loc.FULL_DATE_FORMAT_NO_SS[null!==(o=this.LOCALE)&&void 0!==o?o:"it-IT"],this.cfg.fulldateDisplay=this.loc.FULL_DATE_DISPLAY_FORMAT[null!==(n=this.LOCALE)&&void 0!==n?n:"it-IT"],this.cfg.fulldateDisplayNoSS=this.loc.FULL_DATE_DISPLAY_FORMAT_NO_SS[null!==(a=this.LOCALE)&&void 0!==a?a:"it-IT"],this.cfg.smallDate=this.loc.SMALL_DATE_DISPLAY_FORMAT[null!==(s=this.LOCALE)&&void 0!==s?s:"it-IT"],this.cfg.smallDateWithH=this.loc.SMALL_DATE_DISPLAY_FORMAT_WITH_HOUR[null!==(l=this.LOCALE)&&void 0!==l?l:"it-IT"],this.cfg.smallDateWithM=this.loc.SMALL_DATE_DISPLAY_FORMAT_WITH_MINUTE[null!==(c=this.LOCALE)&&void 0!==c?c:"it-IT"]}return t.prototype.adjustDateToFinalInstant=function(t,e,r){void 0===r&&(r=!0);var i=this.getDateConvertion(t);if(null==i)return"FE: Not a Date";if(!(i.startOf(e).valueOf()===i.valueOf()))return r?i.format(this.cfg.fulldateDisplay):i.format(this.cfg.fulldateDisplayNoSS);var o=i.subtract(1,e),n="";return"day"==e?n=o.format(this.cfg.smallDate)+" 24:00"+(r?":00":""):"hour"==e?n=o.format(this.cfg.smallDateWithH)+":60"+(r?":00":""):"minute"==e&&(n=o.format(this.cfg.smallDateWithM)+":60"),n},t.prototype.dateSort=function(t,e,r){return t<e?"asc"==r?1:-1:t>e?"asc"==r?-1:1:0},t.prototype.trimSeconds=function(t){return isNaN(t)&&/^\d\d\/\d\d\/\d\d\d\d \d\d:\d\d:\d\d$/g.test(t)?"'"+t.substr(0,t.length-3):t},t.prototype.getMinMaxDatesRange=function(t,e){for(var r=[],i=[],o=0;o<t.length;o++){var n=t[o];(a=this.getDateConvertion(n))&&r.push(a)}for(o=0;o<e.length;o++){var a;n=e[o];(a=this.getDateConvertion(n))&&i.push(a)}return{from:dayjs.min(r),to:dayjs.max(i)}},t.prototype.getDateConvertion=function(t,e){if(void 0===e&&(e=!1),!t)return null;if(this.isDayJs(t))return t;if(this.isJsDate(t))return e?dayjs.utc(t):dayjs(t);var r=t.length;if(!r)return null;if(e&&!this.allowUtc)throw"@esfaenza/extensions: Richiesta data UTC ma da configurazione la libreria non lo supporta";var i=null,o=e?dayjs.utc:dayjs;return t.includes("T")?i=o(t):r==this.cfg.fulldate.length?i=o(t,this.cfg.fulldate):r==this.cfg.smallDate.length?i=o(t,this.cfg.smallDate):r==this.cfg.fulldateNoSS.length&&(i=o(t,this.cfg.fulldateNoSS)),i.isValid()?i:null},t.prototype.isJsDate=function(t){return t&&"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t)},t.prototype.isDayJs=function(t){return void 0!==t.$D&&void 0!==t.$M&&void 0!==t.$y},t.prototype.getFormatted=function(t,e,r){return(t=this.getDateConvertion(t))?t.format(e?this.cfg.smallDate:r?this.cfg.fulldateDisplay:this.cfg.fulldateDisplayNoSS):null},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[f]}]}]};var g="_csvnav",m="_csvord",S="_csvvis",b="_csvhdr",T="_listcsvval",O="_listcsvhdr",_="_listcsvvalformat",C="_flatlistcsvval",w="_flatlistcsvhdr",I="_csvfmt",A=function(){function t(t){this.dates=t}return t.prototype.setupForExport=function(t){var e=[],r={};if(!t||0==t.length)return e;for(var i=0;i<t.length;i++)for(var o=this.parseAndGetHeaders(t[i]),n=0;n<o.length;n++)r[o[n].key]||(r[o[n].key]=!0,e.push(o[n]));return e.sort((function(t,e){return t.order-e.order}))},t.prototype.setupForGenericExport=function(t,e){var r=this,i=[];return t&&0!=t.length?(t.forEach((function(t,o){0==o?i=r.parseAndGetGenericHeaders(t,e):r.parseAndGetGenericHeaders(t,e)})),i):i},t.prototype.parseAndGetGenericHeaders=function(t,e){if(!t.properties)return null;var r=[];return e.forEach((function(e){var i=t.properties[e.key];Object.defineProperty(t,e.key+"_exp",{value:i,writable:!1,enumerable:!0}),r.push({label:e.label,key:e.key+"_exp",order:e.order})})),r.sort((function(t,e){return t.order-e.order}))},t.prototype.parseAndGetHeaders=function(t){var e=[];for(var r in t){var i=void 0;void 0!==t[r+O]?i=this.parseList.bind(this):void 0!==t[r+w]?i=this.parseDictionary.bind(this):void 0!==t[r+S]&&(i=void 0!==t[r+g]?this.parseObject.bind(this):this.parseProperty.bind(this)),i&&i(t,r,e)}return e},t.prototype.parseProperty=function(t,e,r){var i=t[e+S],o=t[e+I],n=t[e+b],a=t[e+m];if(i&&"undefined"!==n)if(o)if("F"==o){var s=null!=t[e]?t[e].toString():"",l=(s=s.replace(/,/,"")).replace(".",",");Object.defineProperty(t,e+"_fmt",{value:l,writable:!1,enumerable:!0}),r.push({label:n||e+"_fmt",key:e+"_fmt",order:a})}else{var c=this.dates.getFormatted(t[e],o.length<=10,!1);Object.defineProperty(t,e+"_fmt",{value:null!=c?c:"",writable:!1,enumerable:!0}),r.push({label:n||e+"_fmt",key:e+"_fmt",order:a})}else{var u=t[e]?this.dates.trimSeconds(t[e].toString()):"";Object.defineProperty(t,e+"_nofmt",{value:u,writable:!1,enumerable:!0}),r.push({label:n||e+"_nofmt",key:e+"_nofmt",order:a})}},t.prototype.parseObject=function(t,e,r){var i=t[e+g].split("."),o=JSON.parse(JSON.stringify(t));i.forEach((function(t){o=o[t]}));var n=o,a=t[e+b],s=t[e+m],l=t[e+I];if("F"==l){var c=n.toString();n=(c=c.replace(/,/,"")).replace(".",",")}else l&&(n=this.dates.getFormatted(n,l.length<=10,!1));Object.defineProperty(t,e,{value:n,writable:!1,enumerable:!0}),r.push({label:a||e,key:e,order:s})},t.prototype.parseList=function(t,e,r){for(var i,o,n,a,s=t[e+O],l=t[e+T],c=t[e+_],u=t[e+m],p=t[e],f=function(f){var d=p[f];n=s.split(" "),a="",n.forEach((function(t){i=t.split("."),o=JSON.parse(JSON.stringify(d)),i.forEach((function(t){o=o[t]})),a?a+=" "+o:a=o})),i=l.split("."),o=JSON.parse(JSON.stringify(d)),i.forEach((function(t){o=o[t]}));var v=o;if("F"==c){var y=null!=v?v.toString():"";v=(y=y.replace(/,/,"")).replace(".",",")}else c&&(v=h.dates.getFormatted(t[e],c.length<=10,!1));Object.defineProperty(t,e+f,{value:v,writable:!1}),r.push({label:a,key:e+f,order:u+f})},h=this,d=0;d<p.length;d++)f(d)},t.prototype.parseDictionary=function(t,e,r){for(var i,o,n,a,s=t[e+w],l=t[e+C],c=t[e+m],u=t[e],p=function(p){var f=u[p];n=s.split(" "),a="",n.forEach((function(t){i=t.split("."),o=JSON.parse(JSON.stringify(f)),i.forEach((function(t){o=o[t]})),a?a+=" "+o:a=o})),l.split(",").forEach((function(n,s){var l=n.split("-")[1],u=n.split("-")[0];i=l.split("."),o=JSON.parse(JSON.stringify(f)),i.forEach((function(t){o=o[t]}));var h=o,d=e+p.toString()+s.toString();Object.defineProperty(t,d,{value:h,writable:!1}),r.push({label:a+" "+u,key:d,order:c+p})}))},f=0;f<u.length;f++)p(f)},t.prototype.deserializeForExport=function(t,e){return o.Deserialize(t,e)},t}();A.decorators=[{type:e.Injectable}],A.ctorParameters=function(){return[{type:y}]};var L,x=function(){function t(){this.objBlacklist={NgForm:!0,ElementRef:!0,ExtensionsService:!0,ToastrService:!0,LocaleService:!0,AppState:!0,Router:!0,ActivatedRoute:!0,HTTPService:!0,Location:!0,CanvasComponent:!0,ModalDirective:!0,ChangeDetectorRef:!0,DateService:!0,EventEmitter:!0,ViewRef_:!0,Subscriber:!0,ItemLocalization:!0},this.hex_chr="0123456789abcdef".split("")}return t.prototype.getGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype.hashObject=function(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=!1),void 0===i&&(i=!1);var o=this.stringify(t,e,r);return i?this.md5(o):this.simpleHash(o)},t.prototype.simpleHash=function(t,e){void 0===e&&(e=0);for(var r=3735928559^e,i=1103547991^e,o=0,n=void 0;o<t.length;o++)n=t.charCodeAt(o),r=Math.imul(r^n,2654435761),i=Math.imul(i^n,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),(4294967296*(2097151&(i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)).toString()},t.prototype.stringify=function(t,e,r){var i,o;if(null===t)return"n";if(!0===t)return"t";if(!1===t)return"f";if(t instanceof Date)return"d:"+t.valueOf().toString();if("string"===(i=typeof t))return"s:"+t;if("number"===i)return"n:"+t;if(t instanceof Function)return"m:"+t.toString();if(t instanceof Array){for(o=[],i=0;i<t.length;i++){(a=this.stringify(t[i],e,r))&&o.push(a)}return o.length>0?"a:"+o.join(";"):""}if(o=[],t){var n=t.__proto__.constructor.name;if(!this.objBlacklist[n])for(i in t){var a;if(t.hasOwnProperty(i)&&(e<=2||r))(a=this.stringify(t[i],e+1,r))&&o.push(i+":"+a)}}return o.length>0?"o:"+o.join(";"):""},t.prototype.md5=function(t){return this.hex(this.md51(t))},t.prototype.md5cycle=function(t,e){var r=t[0],i=t[1],o=t[2],n=t[3];r=this.ff(r,i,o,n,e[0],7,-680876936),n=this.ff(n,r,i,o,e[1],12,-389564586),o=this.ff(o,n,r,i,e[2],17,606105819),i=this.ff(i,o,n,r,e[3],22,-1044525330),r=this.ff(r,i,o,n,e[4],7,-176418897),n=this.ff(n,r,i,o,e[5],12,1200080426),o=this.ff(o,n,r,i,e[6],17,-1473231341),i=this.ff(i,o,n,r,e[7],22,-45705983),r=this.ff(r,i,o,n,e[8],7,1770035416),n=this.ff(n,r,i,o,e[9],12,-1958414417),o=this.ff(o,n,r,i,e[10],17,-42063),i=this.ff(i,o,n,r,e[11],22,-1990404162),r=this.ff(r,i,o,n,e[12],7,1804603682),n=this.ff(n,r,i,o,e[13],12,-40341101),o=this.ff(o,n,r,i,e[14],17,-1502002290),i=this.ff(i,o,n,r,e[15],22,1236535329),r=this.gg(r,i,o,n,e[1],5,-165796510),n=this.gg(n,r,i,o,e[6],9,-1069501632),o=this.gg(o,n,r,i,e[11],14,643717713),i=this.gg(i,o,n,r,e[0],20,-373897302),r=this.gg(r,i,o,n,e[5],5,-701558691),n=this.gg(n,r,i,o,e[10],9,38016083),o=this.gg(o,n,r,i,e[15],14,-660478335),i=this.gg(i,o,n,r,e[4],20,-405537848),r=this.gg(r,i,o,n,e[9],5,568446438),n=this.gg(n,r,i,o,e[14],9,-1019803690),o=this.gg(o,n,r,i,e[3],14,-187363961),i=this.gg(i,o,n,r,e[8],20,1163531501),r=this.gg(r,i,o,n,e[13],5,-1444681467),n=this.gg(n,r,i,o,e[2],9,-51403784),o=this.gg(o,n,r,i,e[7],14,1735328473),i=this.gg(i,o,n,r,e[12],20,-1926607734),r=this.hh(r,i,o,n,e[5],4,-378558),n=this.hh(n,r,i,o,e[8],11,-2022574463),o=this.hh(o,n,r,i,e[11],16,1839030562),i=this.hh(i,o,n,r,e[14],23,-35309556),r=this.hh(r,i,o,n,e[1],4,-1530992060),n=this.hh(n,r,i,o,e[4],11,1272893353),o=this.hh(o,n,r,i,e[7],16,-155497632),i=this.hh(i,o,n,r,e[10],23,-1094730640),r=this.hh(r,i,o,n,e[13],4,681279174),n=this.hh(n,r,i,o,e[0],11,-358537222),o=this.hh(o,n,r,i,e[3],16,-722521979),i=this.hh(i,o,n,r,e[6],23,76029189),r=this.hh(r,i,o,n,e[9],4,-640364487),n=this.hh(n,r,i,o,e[12],11,-421815835),o=this.hh(o,n,r,i,e[15],16,530742520),i=this.hh(i,o,n,r,e[2],23,-995338651),r=this.ii(r,i,o,n,e[0],6,-198630844),n=this.ii(n,r,i,o,e[7],10,1126891415),o=this.ii(o,n,r,i,e[14],15,-1416354905),i=this.ii(i,o,n,r,e[5],21,-57434055),r=this.ii(r,i,o,n,e[12],6,1700485571),n=this.ii(n,r,i,o,e[3],10,-1894986606),o=this.ii(o,n,r,i,e[10],15,-1051523),i=this.ii(i,o,n,r,e[1],21,-2054922799),r=this.ii(r,i,o,n,e[8],6,1873313359),n=this.ii(n,r,i,o,e[15],10,-30611744),o=this.ii(o,n,r,i,e[6],15,-1560198380),i=this.ii(i,o,n,r,e[13],21,1309151649),r=this.ii(r,i,o,n,e[4],6,-145523070),n=this.ii(n,r,i,o,e[11],10,-1120210379),o=this.ii(o,n,r,i,e[2],15,718787259),i=this.ii(i,o,n,r,e[9],21,-343485551),t[0]=this.add32(r,t[0]),t[1]=this.add32(i,t[1]),t[2]=this.add32(o,t[2]),t[3]=this.add32(n,t[3])},t.prototype.cmn=function(t,e,r,i,o,n){return e=this.add32(this.add32(e,t),this.add32(i,n)),this.add32(e<<o|e>>>32-o,r)},t.prototype.ff=function(t,e,r,i,o,n,a){return this.cmn(e&r|~e&i,t,e,o,n,a)},t.prototype.gg=function(t,e,r,i,o,n,a){return this.cmn(e&i|r&~i,t,e,o,n,a)},t.prototype.hh=function(t,e,r,i,o,n,a){return this.cmn(e^r^i,t,e,o,n,a)},t.prototype.ii=function(t,e,r,i,o,n,a){return this.cmn(r^(e|~i),t,e,o,n,a)},t.prototype.md51=function(t){var e,r=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)this.md5cycle(i,this.md5blk(t.substring(e-64,e)));t=t.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(this.md5cycle(i,o),e=0;e<16;e++)o[e]=0;return o[14]=8*r,this.md5cycle(i,o),i},t.prototype.md5blk=function(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r},t.prototype.rhex=function(t){for(var e="",r=0;r<4;r++)e+=this.hex_chr[t>>8*r+4&15]+this.hex_chr[t>>8*r&15];return e},t.prototype.hex=function(t){for(var e=0;e<t.length;e++)t[e]=this.rhex(t[e]);return t.join("")},t.prototype.add32=function(t,e){return t+e&4294967295},t}();x.decorators=[{type:e.Injectable}],function(t){t[t.Empty=0]="Empty",t[t.Obj=1]="Obj",t[t.DBNull=2]="DBNull",t[t.Boolean=3]="Boolean",t[t.Char=4]="Char",t[t.SByte=5]="SByte",t[t.Byte=6]="Byte",t[t.Int16=7]="Int16",t[t.UInt16=8]="UInt16",t[t.Int32=9]="Int32",t[t.UInt32=10]="UInt32",t[t.Int64=11]="Int64",t[t.UInt64=12]="UInt64",t[t.Single=13]="Single",t[t.Double=14]="Double",t[t.Decimal=15]="Decimal",t[t.DateTime=16]="DateTime",t[t.String=18]="String"}(L||(L={}));var D=function(){function t(){}return t.prototype.clearTextSelection=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},t.prototype.getSelectedItem=function(t,e,r){for(var i=0;i<t.length;i++){var o=t[i];if(o[e]==r)return o}return null},t.prototype.cleanForm=function(t,e,r){for(var i in void 0===e&&(e=null),void 0===r&&(r=null),t.controls)i&&i!=e&&i!=e+"_internal"&&i!=r&&i!=r+"_internal"?t.controls[i].reset():(t.controls[i].markAsPristine(),t.controls[i].markAsUntouched());t.submitted=!1},t.prototype.fileDownload=function(t,e){var r=document.createElement("a");document.body.appendChild(r),r.className="ta-display-none",r.href=t,r.download=e,r.click(),window.URL.revokeObjectURL(t),document.body.removeChild(r)},t.prototype.msToTime=function(t){if(!t)return"";var e=parseInt((t%1e3/100).toString()),r=parseInt((t/1e3%60).toString()),i=parseInt((t/6e4%60).toString()),o=parseInt((t/36e5%24).toString());return(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)+":"+(r<10?"0"+r:r)+"."+e},t.prototype.saveFile=function(t,e){var r=this.base64ToArrayBuffer(t);this.saveByteArray(r,e)},t.prototype.base64ToArrayBuffer=function(t){for(var e=window.atob(t),r=e.length,i=new Uint8Array(r),o=0;o<r;o++){var n=e.charCodeAt(o);i[o]=n}return i},t.prototype.saveByteArray=function(t,e){var r=new Blob([t]),i=document.createElement("a");document.body.appendChild(i),i.href=window.URL.createObjectURL(r);var o=e;i.download=o,i.click(),document.body.removeChild(i)},t.prototype.swap=function(t,e,r){var i=t[e];t[e]=t[r],t[r]=i},t.prototype.getJsTypeFromTypeCode=function(t){switch(t){case L.Boolean:return"boolean";case L.Decimal:case L.Double:case L.Single:case L.Int16:case L.Int32:case L.Int64:case L.Byte:case L.SByte:case L.UInt16:case L.UInt32:case L.UInt64:return"number";case L.Char:case L.String:return"string";case L.DateTime:return"date";default:return console.log("Unrecognized input type. Typecode:"+t),"string"}},t}();D.decorators=[{type:e.Injectable}];var E=function(){},M=function(){},Y=function(){function t(t,e,r){this.APPSEARCH_PREFIX=t,this._session=e,this._storage=r}return t.prototype.setItem=function(t,e){var r=JSON.parse(JSON.stringify(e));return r.items=[],r.savedstate=!0,r.savedprefix=this.APPSEARCH_PREFIX||"Hot",this.setAny(t,r)},t.prototype.setAny=function(t,e){return this._storage.setItem(this._session.getSessionKey(),t,e).pipe(n.tap((function(e){0==e&&console.error("Impossibile effettuare il salvataggio dell'oggetto all'interno dello Storage Locale per la chiave "+t)})))},t.prototype.getAny=function(t){return this._storage.getItem(this._session.getSessionKey(),t).pipe(n.tap((function(e){null==e&&console.warn("Impossibile ottenere l'oggetto salvato con chiave "+t)})))},t.prototype.removeItem=function(t){return this._storage.removeItem(this._session.getSessionKey(),t).pipe(n.tap((function(e){0==e&&console.warn("Impossibile rimuovere l'oggetto salvato con chiave "+t)})))},t.prototype.clear=function(){return this._storage.clear(this._session.getSessionKey()).pipe(n.tap((function(t){0==t&&console.warn("Impossibile ripulire lo Storage Locale")})))},t}();Y.decorators=[{type:e.Injectable}],Y.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p]}]},{type:M},{type:E}]};
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("ngx-toastr"),require("sweetalert2"),require("cerialize"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("@esfaenza/extensions",["exports","@angular/core","ngx-toastr","sweetalert2","cerialize","rxjs/operators","rxjs"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).esfaenza=t.esfaenza||{},t.esfaenza.extensions={}),t.ng.core,t.ngxToastr,t.swal,t.cerialize,t.rxjs.operators,t.rxjs)}(this,(function(t,e,r,o,i,n,a){"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=s(o),c=new e.InjectionToken("EXT_LOCALE"),u=new e.InjectionToken("EXT_FANCY_ALERTS"),p=new e.InjectionToken("APPSEARCH_PREFIX"),f=new e.InjectionToken("EXT_ALLOW_UTC"),h=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:c,useValue:(null==e?void 0:e.locale)||"it-IT"},{provide:u,useValue:(null==e?void 0:e.fancy_alerts)||!0},{provide:p,useValue:(null==e?void 0:e.appsearch_prefix)||"Hot"},{provide:f,useValue:null!=(null==e?void 0:e.allow_utc)&&(null==e?void 0:e.allow_utc)}]}},t}();h.decorators=[{type:e.NgModule}];var d=function(){function t(t,e,r){var o,i,n,a,s,c,u,p,f,h,d;this.toastr=t,this.FANCY_ALERTS=e,this.LOCALE=r,this.loc={Confirm:{"en-US":"Confirm","it-IT":"Conferma"},Cancel:{"en-US":"Cancel","it-IT":"Annulla"},Close:{"en-US":"Close","it-IT":"Chiudi"},Error:{"en-US":"Error","it-IT":"Errore"},Info:{"en-US":"Info","it-IT":"Informazione"},Success:{"en-US":"Success","it-IT":"Successo"},Warning:{"en-US":"Warning","it-IT":"Attenzione"}},this.expiredSessionSwal=l.default.mixin({showCancelButton:!1,confirmButtonText:"Login",customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!1,allowOutsideClick:!1,icon:"warning"}),this.warningSwalWithCancel=l.default.mixin({title:this.loc.Warning[null!==(o=this.LOCALE)&&void 0!==o?o:"it-IT"],customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-secondary app-margin-right-10",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!0,confirmButtonText:this.loc.Confirm[null!==(i=this.LOCALE)&&void 0!==i?i:"it-IT"],cancelButtonText:this.loc.Cancel[null!==(n=this.LOCALE)&&void 0!==n?n:"it-IT"],icon:"warning"}),this.warningSwal=l.default.mixin({title:this.loc.Warning[null!==(a=this.LOCALE)&&void 0!==a?a:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(s=this.LOCALE)&&void 0!==s?s:"it-IT"],icon:"warning"}),this.successSwal=l.default.mixin({title:this.loc.Success[null!==(c=this.LOCALE)&&void 0!==c?c:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(u=this.LOCALE)&&void 0!==u?u:"it-IT"],icon:"success"}),this.errorSwal=l.default.mixin({title:this.loc.Error[null!==(p=this.LOCALE)&&void 0!==p?p:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(f=this.LOCALE)&&void 0!==f?f:"it-IT"],icon:"error"}),this.infoSwal=l.default.mixin({title:this.loc.Info[null!==(h=this.LOCALE)&&void 0!==h?h:"it-IT"],customClass:{confirmButton:"btn btn-primary",container:"app-wrap"},buttonsStyling:!1,reverseButtons:!0,showCancelButton:!1,confirmButtonText:this.loc.Close[null!==(d=this.LOCALE)&&void 0!==d?d:"it-IT"],icon:"info"})}return t.prototype.simpleSuccess=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.successSwal.fire("",t):this.toastr.success(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.simpleInfo=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.infoSwal.fire("",t):this.toastr.info(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.simpleError=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.errorSwal.fire("",t):this.toastr.error(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.simpleWarning=function(t,e){void 0===e&&(e=null);var r=this.toastrOrSwal(e);"swal"==r?this.warningSwal.fire("",t):this.toastr.warning(t,null,{positionClass:"toastr"==r?"toast-top-right":"toast-top-center",timeOut:"toastr"==r?0:5e3,extendedTimeOut:"toastr"==r?0:1e3})},t.prototype.clearMessages=function(){this.toastr.clear(),l.default.close()},t.prototype.promiseWarningWithChoice=function(t,e){return this.warningSwalWithCancel.fire(t,e)},t.prototype.toastrOrSwal=function(t){return null!=t?t:null==this.FANCY_ALERTS||this.FANCY_ALERTS?"swal":"toastr"},t.prototype.simpleWarningWithChoice=function(t,e,r,o){void 0===r&&(r=null),void 0===o&&(o=null),this.warningSwalWithCancel.fire(t,e).then((function(t){t.value&&r?r():o&&o()}))},t.prototype.expiredSessionMessage=function(t,e,r){void 0===r&&(r=null),this.expiredSessionSwal.fire(t,e).then((function(t){t.value&&r&&r()}))},t.prototype.manageCallResultResponse=function(t,e,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),t.success?(e&&this.simpleSuccess(e),o&&o()):t.haserror?(this.simpleError((r?r+": ":"")+t.error),i&&i()):t.haswarning&&this.simpleWarning(t.warning)},t.prototype.manageStringResponse=function(t,e,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),t?(r&&this.simpleError(r+": "+t),i&&i()):(e&&this.simpleSuccess(e),o&&o())},t.prototype.manageStringResponseBool=function(t,e,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),t?(e&&this.simpleSuccess(e),o&&o()):(r&&this.simpleError(r),i&&i())},t}();d.decorators=[{type:e.Injectable}],d.ctorParameters=function(){return[{type:r.ToastrService},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[u]}]},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]};var g=function(){function t(t,e){this.msgService=t,this.LOCALE=e,this.loc={"Unfortunately Firefox doesn't yet support direct Clipboard access if not via extensions, Please use Chrome to do this operation":{"en-US":"Unfortunately Firefox doesn't yet support direct Clipboard access if not via extensions, Please use Chrome to do this operation","it-IT":"Mi dispiace ma Firefox non supporta l'accesso diretto alla Clipboard, se non attraverso le estensioni. Si prega di usare Chrome"},"Generic error during 'copy' command execution":{"en-US":"Generic error during 'copy' command execution","it-IT":"Errore generico durante l'esecuzione del comando 'copy'"},"Error during Clipboard content read operation":{"en-US":"Error during Clipboard content read operation","it-IT":"Errore nella lettura del contenuto della Clipboard"},"Error during Clipboard content copy operation":{"en-US":"Error during Clipboard content copy operation","it-IT":"Errore nella scrittura del contenuto nella Clipboard"}}}return t.prototype.getClipboard=function(t,e){var r,o=this;if(-1==navigator.userAgent.indexOf("Firefox"))if(window.clipboardData){var i=window.clipboardData.getData("Text"),n="array"==t?this.getClipboardLines(i):"matrix"==t?this.getClipboardMatrix(i):[];e&&e(n)}else window.navigator.clipboard&&window.navigator.permissions.query({name:"clipboard-read"}).then((function(r){"granted"!==r.state&&"prompt"!==r.state&&e&&e([]),window.navigator.clipboard.readText().then((function(r){var i="array"==t?o.getClipboardLines(r):"matrix"==t?o.getClipboardMatrix(r):[];e&&e(i)})).catch((function(t){var e;o.msgService.simpleError(o.loc["Error during Clipboard content read operation"][null!==(e=o.LOCALE)&&void 0!==e?e:"it-IT"]+": "+t)}))}));else this.msgService.simpleError(this.loc["Unfortunately Firefox doesn't yet support direct Clipboard access if not via extensions, Please use Chrome to do this operation"][null!==(r=this.LOCALE)&&void 0!==r?r:"it-IT"])},t.prototype.getClipboardLines=function(t){return t.trim().split("\r\n")},t.prototype.getClipboardMatrix=function(t){for(var e=[],r=t.split("\r\n"),o=0;o<r.length;o++)e.push(r[o].split("\t").map((function(t){return t.trim()})));return e},t.prototype.copyTextToClipboard=function(t){var e,r,o=document.createElement("textarea");o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="2em",o.style.height="2em",o.style.padding="0",o.style.border="none",o.style.outline="none",o.style.boxShadow="none",o.style.background="transparent",o.value=t,document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")||this.msgService.simpleError(this.loc["Generic error during 'copy' command execution"][null!==(e=this.LOCALE)&&void 0!==e?e:"it-IT"])}catch(t){this.msgService.simpleError(this.loc["Error during Clipboard content copy operation"][null!==(r=this.LOCALE)&&void 0!==r?r:"it-IT"]+": "+t)}document.body.removeChild(o)},t}();g.decorators=[{type:e.Injectable}],g.ctorParameters=function(){return[{type:d},{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]}]};var v=function(){function t(t,e){var r,o,i,n,a,s,l,c;this.LOCALE=t,this.allowUtc=e,this.loc={SMALL_DATE_FORMAT:{"en-US":"MM/DD/YYYY","it-IT":"DD/MM/YYYY"},FULL_DATE_FORMAT:{"en-US":"MM/DD/YYYY HH:mm:ss","it-IT":"DD/MM/YYYY HH:mm:ss"},FULL_DATE_FORMAT_NO_SS:{"en-US":"MM/DD/YYYY HH:mm","it-IT":"DD/MM/YYYY HH:mm"},SMALL_DATE_DISPLAY_FORMAT:{"en-US":"DD/MM/YYYY","it-IT":"DD/MM/YYYY"},SMALL_DATE_DISPLAY_FORMAT_WITH_HOUR:{"en-US":"DD/MM/YYYY HH","it-IT":"DD/MM/YYYY HH"},SMALL_DATE_DISPLAY_FORMAT_WITH_MINUTE:{"en-US":"DD/MM/YYYY HH:mm","it-IT":"DD/MM/YYYY HH:mm"},FULL_DATE_DISPLAY_FORMAT:{"en-US":"DD/MM/YYYY HH:mm:ss","it-IT":"DD/MM/YYYY HH:mm:ss"},FULL_DATE_DISPLAY_FORMAT_NO_SS:{"en-US":"DD/MM/YYYY HH:mm","it-IT":"DD/MM/YYYY HH:mm"}},this.cfg={fulldate:"",fulldateDisplay:"",smallDate:"",fulldateNoSS:"",smallDateWithH:"",smallDateWithM:"",fulldateDisplayNoSS:""},this.cfg.smallDate=this.loc.SMALL_DATE_FORMAT[null!==(r=this.LOCALE)&&void 0!==r?r:"it-IT"],this.cfg.fulldate=this.loc.FULL_DATE_FORMAT[null!==(o=this.LOCALE)&&void 0!==o?o:"it-IT"],this.cfg.fulldateNoSS=this.loc.FULL_DATE_FORMAT_NO_SS[null!==(i=this.LOCALE)&&void 0!==i?i:"it-IT"],this.cfg.fulldateDisplay=this.loc.FULL_DATE_DISPLAY_FORMAT[null!==(n=this.LOCALE)&&void 0!==n?n:"it-IT"],this.cfg.fulldateDisplayNoSS=this.loc.FULL_DATE_DISPLAY_FORMAT_NO_SS[null!==(a=this.LOCALE)&&void 0!==a?a:"it-IT"],this.cfg.smallDate=this.loc.SMALL_DATE_DISPLAY_FORMAT[null!==(s=this.LOCALE)&&void 0!==s?s:"it-IT"],this.cfg.smallDateWithH=this.loc.SMALL_DATE_DISPLAY_FORMAT_WITH_HOUR[null!==(l=this.LOCALE)&&void 0!==l?l:"it-IT"],this.cfg.smallDateWithM=this.loc.SMALL_DATE_DISPLAY_FORMAT_WITH_MINUTE[null!==(c=this.LOCALE)&&void 0!==c?c:"it-IT"]}return t.prototype.adjustDateToFinalInstant=function(t,e,r){void 0===r&&(r=!0);var o=this.getDateConvertion(t);if(null==o)return"FE: Not a Date";if(!(o.startOf(e).valueOf()===o.valueOf()))return r?o.format(this.cfg.fulldateDisplay):o.format(this.cfg.fulldateDisplayNoSS);var i=o.subtract(1,e),n="";return"day"==e?n=i.format(this.cfg.smallDate)+" 24:00"+(r?":00":""):"hour"==e?n=i.format(this.cfg.smallDateWithH)+":60"+(r?":00":""):"minute"==e&&(n=i.format(this.cfg.smallDateWithM)+":60"),n},t.prototype.dateSort=function(t,e,r){return t<e?"asc"==r?1:-1:t>e?"asc"==r?-1:1:0},t.prototype.trimSeconds=function(t){return isNaN(t)&&/^\d\d\/\d\d\/\d\d\d\d \d\d:\d\d:\d\d$/g.test(t)?"'"+t.substr(0,t.length-3):t},t.prototype.getMinMaxDatesRange=function(t,e){for(var r=[],o=[],i=0;i<t.length;i++){var n=t[i];(a=this.getDateConvertion(n))&&r.push(a)}for(i=0;i<e.length;i++){var a;n=e[i];(a=this.getDateConvertion(n))&&o.push(a)}return{from:dayjs.min(r),to:dayjs.max(o)}},t.prototype.getDateConvertion=function(t,e){if(void 0===e&&(e=!1),!t)return null;if(this.isDayJs(t))return t;if(this.isJsDate(t))return e?dayjs.utc(t):dayjs(t);var r=t.length;if(!r)return null;if(e&&!this.allowUtc)throw"@esfaenza/extensions: Richiesta data UTC ma da configurazione la libreria non lo supporta";var o=null,i=e?dayjs.utc:dayjs;return t.includes("T")?o=i(t):r==this.cfg.fulldate.length?o=i(t,this.cfg.fulldate):r==this.cfg.smallDate.length?o=i(t,this.cfg.smallDate):r==this.cfg.fulldateNoSS.length&&(o=i(t,this.cfg.fulldateNoSS)),o.isValid()?o:null},t.prototype.isJsDate=function(t){return t&&"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t)},t.prototype.isDayJs=function(t){return void 0!==t.$D&&void 0!==t.$M&&void 0!==t.$y},t.prototype.getFormatted=function(t,e,r){return(t=this.getDateConvertion(t))?t.format(e?this.cfg.smallDate:r?this.cfg.fulldateDisplay:this.cfg.fulldateDisplayNoSS):null},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[c]}]},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[f]}]}]};var y="_csvnav",m="_csvord",S="_csvvis",b="_csvhdr",T="_listcsvval",O="_listcsvhdr",C="_listcsvvalformat",I="_flatlistcsvval",w="_flatlistcsvhdr",_="_csvfmt",A=function(){function t(t){this.dates=t}return t.prototype.setupForExport=function(t){var e=[],r={};if(!t||0==t.length)return e;for(var o=0;o<t.length;o++)for(var i=this.parseAndGetHeaders(t[o]),n=0;n<i.length;n++)r[i[n].key]||(r[i[n].key]=!0,e.push(i[n]));return e.sort((function(t,e){return t.order-e.order}))},t.prototype.setupForGenericExport=function(t,e){var r=this,o=[];return t&&0!=t.length?(t.forEach((function(t,i){0==i?o=r.parseAndGetGenericHeaders(t,e):r.parseAndGetGenericHeaders(t,e)})),o):o},t.prototype.parseAndGetGenericHeaders=function(t,e){if(!t.properties)return null;var r=[];return e.forEach((function(e){var o=t.properties[e.key];Object.defineProperty(t,e.key+"_exp",{value:o,writable:!1,enumerable:!0}),r.push({label:e.label,key:e.key+"_exp",order:e.order})})),r.sort((function(t,e){return t.order-e.order}))},t.prototype.parseAndGetHeaders=function(t){var e=[];for(var r in t){var o=void 0;void 0!==t[r+O]?o=this.parseList.bind(this):void 0!==t[r+w]?o=this.parseDictionary.bind(this):void 0!==t[r+S]&&(o=void 0!==t[r+y]?this.parseObject.bind(this):this.parseProperty.bind(this)),o&&o(t,r,e)}return e},t.prototype.parseProperty=function(t,e,r){var o=t[e+S],i=t[e+_],n=t[e+b],a=t[e+m];if(o&&"undefined"!==n)if(i)if("F"==i){var s=null!=t[e]?t[e].toString():"",l=(s=s.replace(/,/,"")).replace(".",",");Object.defineProperty(t,e+"_fmt",{value:l,writable:!1,enumerable:!0}),r.push({label:n||e+"_fmt",key:e+"_fmt",order:a})}else{var c=this.dates.getFormatted(t[e],i.length<=10,!1);Object.defineProperty(t,e+"_fmt",{value:null!=c?c:"",writable:!1,enumerable:!0}),r.push({label:n||e+"_fmt",key:e+"_fmt",order:a})}else{var u=t[e]?this.dates.trimSeconds(t[e].toString()):"";Object.defineProperty(t,e+"_nofmt",{value:u,writable:!1,enumerable:!0}),r.push({label:n||e+"_nofmt",key:e+"_nofmt",order:a})}},t.prototype.parseObject=function(t,e,r){var o=t[e+y].split("."),i=JSON.parse(JSON.stringify(t));o.forEach((function(t){i=i[t]}));var n=i,a=t[e+b],s=t[e+m],l=t[e+_];if("F"==l){var c=n.toString();n=(c=c.replace(/,/,"")).replace(".",",")}else l&&(n=this.dates.getFormatted(n,l.length<=10,!1));Object.defineProperty(t,e,{value:n,writable:!1,enumerable:!0}),r.push({label:a||e,key:e,order:s})},t.prototype.parseList=function(t,e,r){for(var o,i,n,a,s=t[e+O],l=t[e+T],c=t[e+C],u=t[e+m],p=t[e],f=function(f){var d=p[f];n=s.split(" "),a="",n.forEach((function(t){o=t.split("."),i=JSON.parse(JSON.stringify(d)),o.forEach((function(t){i=i[t]})),a?a+=" "+i:a=i})),o=l.split("."),i=JSON.parse(JSON.stringify(d)),o.forEach((function(t){i=i[t]}));var g=i;if("F"==c){var v=null!=g?g.toString():"";g=(v=v.replace(/,/,"")).replace(".",",")}else c&&(g=h.dates.getFormatted(t[e],c.length<=10,!1));Object.defineProperty(t,e+f,{value:g,writable:!1}),r.push({label:a,key:e+f,order:u+f})},h=this,d=0;d<p.length;d++)f(d)},t.prototype.parseDictionary=function(t,e,r){for(var o,i,n,a,s=t[e+w],l=t[e+I],c=t[e+m],u=t[e],p=function(p){var f=u[p];n=s.split(" "),a="",n.forEach((function(t){o=t.split("."),i=JSON.parse(JSON.stringify(f)),o.forEach((function(t){i=i[t]})),a?a+=" "+i:a=i})),l.split(",").forEach((function(n,s){var l=n.split("-")[1],u=n.split("-")[0];o=l.split("."),i=JSON.parse(JSON.stringify(f)),o.forEach((function(t){i=i[t]}));var h=i,d=e+p.toString()+s.toString();Object.defineProperty(t,d,{value:h,writable:!1}),r.push({label:a+" "+u,key:d,order:c+p})}))},f=0;f<u.length;f++)p(f)},t.prototype.deserializeForExport=function(t,e){return i.Deserialize(t,e)},t}();A.decorators=[{type:e.Injectable}],A.ctorParameters=function(){return[{type:v}]};var L,x=function(){function t(){this.objBlacklist={NgForm:!0,ElementRef:!0,ExtensionsService:!0,ToastrService:!0,LocaleService:!0,AppState:!0,Router:!0,ActivatedRoute:!0,HTTPService:!0,Location:!0,CanvasComponent:!0,ModalDirective:!0,ChangeDetectorRef:!0,DateService:!0,EventEmitter:!0,ViewRef_:!0,Subscriber:!0,ItemLocalization:!0},this.hex_chr="0123456789abcdef".split("")}return t.prototype.getGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype.hashObject=function(t,e,r,o){void 0===e&&(e=0),void 0===r&&(r=!1),void 0===o&&(o=!1);var i=this.stringify(t,e,r);return o?this.md5(i):this.simpleHash(i)},t.prototype.simpleHash=function(t,e){void 0===e&&(e=0);for(var r=3735928559^e,o=1103547991^e,i=0,n=void 0;i<t.length;i++)n=t.charCodeAt(i),r=Math.imul(r^n,2654435761),o=Math.imul(o^n,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),(4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)).toString()},t.prototype.stringify=function(t,e,r){var o,i;if(null===t)return"n";if(!0===t)return"t";if(!1===t)return"f";if(t instanceof Date)return"d:"+t.valueOf().toString();if("string"===(o=typeof t))return"s:"+t;if("number"===o)return"n:"+t;if(t instanceof Function)return"m:"+t.toString();if(t instanceof Array){for(i=[],o=0;o<t.length;o++){(a=this.stringify(t[o],e,r))&&i.push(a)}return i.length>0?"a:"+i.join(";"):""}if(i=[],t){var n=t.__proto__.constructor.name;if(!this.objBlacklist[n])for(o in t){var a;if(t.hasOwnProperty(o)&&(e<=2||r))(a=this.stringify(t[o],e+1,r))&&i.push(o+":"+a)}}return i.length>0?"o:"+i.join(";"):""},t.prototype.md5=function(t){return this.hex(this.md51(t))},t.prototype.md5cycle=function(t,e){var r=t[0],o=t[1],i=t[2],n=t[3];r=this.ff(r,o,i,n,e[0],7,-680876936),n=this.ff(n,r,o,i,e[1],12,-389564586),i=this.ff(i,n,r,o,e[2],17,606105819),o=this.ff(o,i,n,r,e[3],22,-1044525330),r=this.ff(r,o,i,n,e[4],7,-176418897),n=this.ff(n,r,o,i,e[5],12,1200080426),i=this.ff(i,n,r,o,e[6],17,-1473231341),o=this.ff(o,i,n,r,e[7],22,-45705983),r=this.ff(r,o,i,n,e[8],7,1770035416),n=this.ff(n,r,o,i,e[9],12,-1958414417),i=this.ff(i,n,r,o,e[10],17,-42063),o=this.ff(o,i,n,r,e[11],22,-1990404162),r=this.ff(r,o,i,n,e[12],7,1804603682),n=this.ff(n,r,o,i,e[13],12,-40341101),i=this.ff(i,n,r,o,e[14],17,-1502002290),o=this.ff(o,i,n,r,e[15],22,1236535329),r=this.gg(r,o,i,n,e[1],5,-165796510),n=this.gg(n,r,o,i,e[6],9,-1069501632),i=this.gg(i,n,r,o,e[11],14,643717713),o=this.gg(o,i,n,r,e[0],20,-373897302),r=this.gg(r,o,i,n,e[5],5,-701558691),n=this.gg(n,r,o,i,e[10],9,38016083),i=this.gg(i,n,r,o,e[15],14,-660478335),o=this.gg(o,i,n,r,e[4],20,-405537848),r=this.gg(r,o,i,n,e[9],5,568446438),n=this.gg(n,r,o,i,e[14],9,-1019803690),i=this.gg(i,n,r,o,e[3],14,-187363961),o=this.gg(o,i,n,r,e[8],20,1163531501),r=this.gg(r,o,i,n,e[13],5,-1444681467),n=this.gg(n,r,o,i,e[2],9,-51403784),i=this.gg(i,n,r,o,e[7],14,1735328473),o=this.gg(o,i,n,r,e[12],20,-1926607734),r=this.hh(r,o,i,n,e[5],4,-378558),n=this.hh(n,r,o,i,e[8],11,-2022574463),i=this.hh(i,n,r,o,e[11],16,1839030562),o=this.hh(o,i,n,r,e[14],23,-35309556),r=this.hh(r,o,i,n,e[1],4,-1530992060),n=this.hh(n,r,o,i,e[4],11,1272893353),i=this.hh(i,n,r,o,e[7],16,-155497632),o=this.hh(o,i,n,r,e[10],23,-1094730640),r=this.hh(r,o,i,n,e[13],4,681279174),n=this.hh(n,r,o,i,e[0],11,-358537222),i=this.hh(i,n,r,o,e[3],16,-722521979),o=this.hh(o,i,n,r,e[6],23,76029189),r=this.hh(r,o,i,n,e[9],4,-640364487),n=this.hh(n,r,o,i,e[12],11,-421815835),i=this.hh(i,n,r,o,e[15],16,530742520),o=this.hh(o,i,n,r,e[2],23,-995338651),r=this.ii(r,o,i,n,e[0],6,-198630844),n=this.ii(n,r,o,i,e[7],10,1126891415),i=this.ii(i,n,r,o,e[14],15,-1416354905),o=this.ii(o,i,n,r,e[5],21,-57434055),r=this.ii(r,o,i,n,e[12],6,1700485571),n=this.ii(n,r,o,i,e[3],10,-1894986606),i=this.ii(i,n,r,o,e[10],15,-1051523),o=this.ii(o,i,n,r,e[1],21,-2054922799),r=this.ii(r,o,i,n,e[8],6,1873313359),n=this.ii(n,r,o,i,e[15],10,-30611744),i=this.ii(i,n,r,o,e[6],15,-1560198380),o=this.ii(o,i,n,r,e[13],21,1309151649),r=this.ii(r,o,i,n,e[4],6,-145523070),n=this.ii(n,r,o,i,e[11],10,-1120210379),i=this.ii(i,n,r,o,e[2],15,718787259),o=this.ii(o,i,n,r,e[9],21,-343485551),t[0]=this.add32(r,t[0]),t[1]=this.add32(o,t[1]),t[2]=this.add32(i,t[2]),t[3]=this.add32(n,t[3])},t.prototype.cmn=function(t,e,r,o,i,n){return e=this.add32(this.add32(e,t),this.add32(o,n)),this.add32(e<<i|e>>>32-i,r)},t.prototype.ff=function(t,e,r,o,i,n,a){return this.cmn(e&r|~e&o,t,e,i,n,a)},t.prototype.gg=function(t,e,r,o,i,n,a){return this.cmn(e&o|r&~o,t,e,i,n,a)},t.prototype.hh=function(t,e,r,o,i,n,a){return this.cmn(e^r^o,t,e,i,n,a)},t.prototype.ii=function(t,e,r,o,i,n,a){return this.cmn(r^(e|~o),t,e,i,n,a)},t.prototype.md51=function(t){var e,r=t.length,o=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)this.md5cycle(o,this.md5blk(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(this.md5cycle(o,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,this.md5cycle(o,i),o},t.prototype.md5blk=function(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r},t.prototype.rhex=function(t){for(var e="",r=0;r<4;r++)e+=this.hex_chr[t>>8*r+4&15]+this.hex_chr[t>>8*r&15];return e},t.prototype.hex=function(t){for(var e=0;e<t.length;e++)t[e]=this.rhex(t[e]);return t.join("")},t.prototype.add32=function(t,e){return t+e&4294967295},t}();x.decorators=[{type:e.Injectable}],function(t){t[t.Empty=0]="Empty",t[t.Obj=1]="Obj",t[t.DBNull=2]="DBNull",t[t.Boolean=3]="Boolean",t[t.Char=4]="Char",t[t.SByte=5]="SByte",t[t.Byte=6]="Byte",t[t.Int16=7]="Int16",t[t.UInt16=8]="UInt16",t[t.Int32=9]="Int32",t[t.UInt32=10]="UInt32",t[t.Int64=11]="Int64",t[t.UInt64=12]="UInt64",t[t.Single=13]="Single",t[t.Double=14]="Double",t[t.Decimal=15]="Decimal",t[t.DateTime=16]="DateTime",t[t.String=18]="String"}(L||(L={}));var D=function(){function t(){}return t.prototype.clearTextSelection=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},t.prototype.getSelectedItem=function(t,e,r){for(var o=0;o<t.length;o++){var i=t[o];if(i[e]==r)return i}return null},t.prototype.cleanForm=function(t,e,r){for(var o in void 0===e&&(e=null),void 0===r&&(r=null),t.controls)o&&o!=e&&o!=e+"_internal"&&o!=r&&o!=r+"_internal"?t.controls[o].reset():(t.controls[o].markAsPristine(),t.controls[o].markAsUntouched());t.submitted=!1},t.prototype.fileDownload=function(t,e){var r=document.createElement("a");document.body.appendChild(r),r.className="ta-display-none",r.href=t,r.download=e,r.click(),window.URL.revokeObjectURL(t),document.body.removeChild(r)},t.prototype.msToTime=function(t){if(!t)return"";var e=parseInt((t%1e3/100).toString()),r=parseInt((t/1e3%60).toString()),o=parseInt((t/6e4%60).toString()),i=parseInt((t/36e5%24).toString());return(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(r<10?"0"+r:r)+"."+e},t.prototype.saveFile=function(t,e){var r=this.base64ToArrayBuffer(t);this.saveByteArray(r,e)},t.prototype.base64ToArrayBuffer=function(t){for(var e=window.atob(t),r=e.length,o=new Uint8Array(r),i=0;i<r;i++){var n=e.charCodeAt(i);o[i]=n}return o},t.prototype.saveByteArray=function(t,e){var r=new Blob([t]),o=document.createElement("a");document.body.appendChild(o),o.href=window.URL.createObjectURL(r);var i=e;o.download=i,o.click(),document.body.removeChild(o)},t.prototype.swap=function(t,e,r){var o=t[e];t[e]=t[r],t[r]=o},t.prototype.getJsTypeFromTypeCode=function(t){switch(t){case L.Boolean:return"boolean";case L.Decimal:case L.Double:case L.Single:case L.Int16:case L.Int32:case L.Int64:case L.Byte:case L.SByte:case L.UInt16:case L.UInt32:case L.UInt64:return"number";case L.Char:case L.String:return"string";case L.DateTime:return"date";default:return console.log("Unrecognized input type. Typecode:"+t),"string"}},t}();D.decorators=[{type:e.Injectable}];var E=function(){function t(t){this.session=t}return t.prototype.getKey=function(t){return this.session.getSessionKey()+"§"+t+"§"},t}(),M=function(){},Y=function(){function t(t,e,r){this.APPSEARCH_PREFIX=t,this._session=e,this._storage=r}return t.prototype.setItem=function(t,e){var r;return e.items&&e.page?((r=JSON.parse(JSON.stringify(e))).items=[],r.savedstate=!0,r.savedprefix=this.APPSEARCH_PREFIX||"Hot"):r=e,this._storage.setItem(t,r).pipe(n.tap((function(e){0==e&&console.error("Impossibile effettuare il salvataggio dell'oggetto all'interno dello Storage Locale per la chiave "+t)})))},t.prototype.getItem=function(t){return this._storage.getItem(t).pipe(n.tap((function(e){null==e&&console.warn("Impossibile ottenere l'oggetto salvato con chiave "+t)})))},t.prototype.removeItem=function(t){return this._storage.removeItem(t).pipe(n.tap((function(e){0==e&&console.warn("Impossibile rimuovere l'oggetto salvato con chiave "+t)})))},t.prototype.clear=function(){return this._storage.clear().pipe(n.tap((function(t){0==t&&console.warn("Impossibile ripulire lo Storage Locale")})))},t.prototype.getAll=function(){return this._storage.getAll()},t}();Y.decorators=[{type:e.Injectable}],Y.ctorParameters=function(){return[{type:String,decorators:[{type:e.Optional},{type:e.Inject,args:[p]}]},{type:M},{type:E}]};
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,5 +13,5 @@
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var j=function(t,e){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}Object.create;Object.create;var U=function(t){function e(){return t.call(this)||this}return P(e,t),e.prototype.getSessionKey=function(){return"DUMMY_SESSION"},e}(M);U.decorators=[{type:e.Injectable}],U.ctorParameters=function(){return[]};var F=function(t){function e(){return t.call(this)||this}return P(e,t),e.prototype.setItem=function(t,e,r){try{return localStorage.setItem(e,JSON.stringify(r)),a.of(!0)}catch(t){if(r.savedprefix){for(var i in console.warn("Spazio del local Storage insufficiente, prova a ripulirlo e risalvare"),localStorage)localStorage.hasOwnProperty(i)&&i.startsWith(r.savedprefix)&&delete localStorage[i];try{localStorage.setItem(e,JSON.stringify(r))}catch(t){console.error("Spazio del local Storage insufficiente per salvare i risultati di ricerca con solo filtri. Non salvo nulla")}}return a.of(!1)}},e.prototype.getItem=function(t,e){try{var r=JSON.parse(localStorage.getItem(e));return a.of(r)}catch(t){return a.of(null)}},e.prototype.removeItem=function(t,e){try{return localStorage.removeItem(e),a.of(!0)}catch(t){return a.of(!1)}},e.prototype.clear=function(t){try{return localStorage.clear(),a.of(!0)}catch(t){return a.of(!1)}},e}(E);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[]};var R=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[v,y,A,x,d,D,Y,{provide:c,useValue:(null==e?void 0:e.locale)||"it-IT"},{provide:u,useValue:(null==e?void 0:e.fancy_alerts)||!0},{provide:p,useValue:(null==e?void 0:e.appsearch_prefix)||"Hot"},{provide:f,useValue:null!=(null==e?void 0:e.allow_utc)&&(null==e?void 0:e.allow_utc)},{provide:M,useClass:(null==e?void 0:e.sessionRetriever)||U},{provide:E,useClass:(null==e?void 0:e.storageProvider)||F}]}},t}();R.decorators=[{type:e.NgModule}];var H=function(){},B=function(){},N=function(){};t.APPSEARCH_PREFIX=p,t.BaseSessionRetriever=M,t.BaseStorageProvider=E,t.CallResult=H,t.ClipboardService=v,t.CsvHeaders=B,t.DateService=y,t.EXT_ALLOW_UTC=f,t.EXT_FANCY_ALERTS=u,t.EXT_LOCALE=c,t.Export=function(t,e,r){return void 0===r&&(r=null),function(i,o){r&&Object.defineProperty(i,o+I,{value:r,writable:!1}),Object.defineProperty(i,o+m,{value:t,writable:!1}),Object.defineProperty(i,o+S,{value:!!e,writable:!1}),Object.defineProperty(i,o+b,{value:e,writable:!1})}},t.ExportAs=function(t,e){return function(r,i){var o=new e;for(var n in o)if(void 0!==o[n+S]){var a=o[n+S],s=o[n+b],l=o[n+I],c=o[n+m];l&&Object.defineProperty(r,i+n+I,{value:l,writable:!1}),Object.defineProperty(r,i+n+m,{value:c+t,writable:!1}),Object.defineProperty(r,i+n,{value:null,writable:!0,enumerable:!0}),Object.defineProperty(r,i+n+g,{value:i+"."+n,writable:!1}),Object.defineProperty(r,i+n+S,{value:a,writable:!1}),Object.defineProperty(r,i+n+b,{value:s,writable:!1})}}},t.ExportDictionary=function(t,e,r){return function(i,o){Object.defineProperty(i,o+m,{value:t,writable:!1}),Object.defineProperty(i,o+C,{value:r,writable:!1}),Object.defineProperty(i,o+w,{value:e,writable:!1})}},t.ExportList=function(t,e,r,i){return void 0===i&&(i=null),function(o,n){Object.defineProperty(o,n+m,{value:t,writable:!1}),Object.defineProperty(o,n+T,{value:r,writable:!1}),Object.defineProperty(o,n+O,{value:e,writable:!1}),Object.defineProperty(o,n+_,{value:i,writable:!1})}},t.ExportService=A,t.ExtensionsModule=h,t.FullExtensionsModule=R,t.GenericItem=N,t.HashingService=x,t.MessageService=d,t.StorageService=Y,t.UtilityService=D,t.ɵa=U,t.ɵb=F,Object.defineProperty(t,"__esModule",{value:!0})}));
16
+ var j=function(t,e){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}Object.create;Object.create;var U=function(t){function e(){return t.call(this)||this}return P(e,t),e.prototype.getSessionKey=function(){return"DUMMY_SESSION"},e}(M);U.decorators=[{type:e.Injectable}],U.ctorParameters=function(){return[]};var F=function(t){function e(e){return t.call(this,e)||this}return P(e,t),e.prototype.setItem=function(t,e){try{return localStorage.setItem(t,JSON.stringify(e)),a.of(!0)}catch(o){if(e.savedprefix){for(var r in console.warn("Spazio del local Storage insufficiente, prova a ripulirlo e risalvare"),localStorage)localStorage.hasOwnProperty(r)&&r.startsWith(e.savedprefix)&&delete localStorage[r];try{localStorage.setItem(t,JSON.stringify(e))}catch(t){console.error("Spazio del local Storage insufficiente per salvare i risultati di ricerca con solo filtri. Non salvo nulla")}}return a.of(!1)}},e.prototype.getItem=function(t){try{var e=JSON.parse(localStorage.getItem(t));return a.of(e)}catch(t){return a.of(null)}},e.prototype.removeItem=function(t){try{return localStorage.removeItem(t),a.of(!0)}catch(t){return a.of(!1)}},e.prototype.clear=function(){try{return localStorage.clear(),a.of(!0)}catch(t){return a.of(!1)}},e.prototype.getAll=function(){var t={};for(var e in localStorage)t[e]=localStorage[e];return a.of(t)},e}(E);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:M}]};var R=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[g,v,A,x,d,D,Y,{provide:c,useValue:(null==e?void 0:e.locale)||"it-IT"},{provide:u,useValue:(null==e?void 0:e.fancy_alerts)||!0},{provide:p,useValue:(null==e?void 0:e.appsearch_prefix)||"Hot"},{provide:f,useValue:null!=(null==e?void 0:e.allow_utc)&&(null==e?void 0:e.allow_utc)},{provide:M,useClass:(null==e?void 0:e.sessionRetriever)||U},{provide:E,useClass:(null==e?void 0:e.storageProvider)||F}]}},t}();R.decorators=[{type:e.NgModule}];var H=function(){},B=function(){},N=function(){};t.APPSEARCH_PREFIX=p,t.BaseSessionRetriever=M,t.BaseStorageProvider=E,t.CallResult=H,t.ClipboardService=g,t.CsvHeaders=B,t.DateService=v,t.EXT_ALLOW_UTC=f,t.EXT_FANCY_ALERTS=u,t.EXT_LOCALE=c,t.Export=function(t,e,r){return void 0===r&&(r=null),function(o,i){r&&Object.defineProperty(o,i+_,{value:r,writable:!1}),Object.defineProperty(o,i+m,{value:t,writable:!1}),Object.defineProperty(o,i+S,{value:!!e,writable:!1}),Object.defineProperty(o,i+b,{value:e,writable:!1})}},t.ExportAs=function(t,e){return function(r,o){var i=new e;for(var n in i)if(void 0!==i[n+S]){var a=i[n+S],s=i[n+b],l=i[n+_],c=i[n+m];l&&Object.defineProperty(r,o+n+_,{value:l,writable:!1}),Object.defineProperty(r,o+n+m,{value:c+t,writable:!1}),Object.defineProperty(r,o+n,{value:null,writable:!0,enumerable:!0}),Object.defineProperty(r,o+n+y,{value:o+"."+n,writable:!1}),Object.defineProperty(r,o+n+S,{value:a,writable:!1}),Object.defineProperty(r,o+n+b,{value:s,writable:!1})}}},t.ExportDictionary=function(t,e,r){return function(o,i){Object.defineProperty(o,i+m,{value:t,writable:!1}),Object.defineProperty(o,i+I,{value:r,writable:!1}),Object.defineProperty(o,i+w,{value:e,writable:!1})}},t.ExportList=function(t,e,r,o){return void 0===o&&(o=null),function(i,n){Object.defineProperty(i,n+m,{value:t,writable:!1}),Object.defineProperty(i,n+T,{value:r,writable:!1}),Object.defineProperty(i,n+O,{value:e,writable:!1}),Object.defineProperty(i,n+C,{value:o,writable:!1})}},t.ExportService=A,t.ExtensionsModule=h,t.FullExtensionsModule=R,t.GenericItem=N,t.HashingService=x,t.MessageService=d,t.StorageService=Y,t.UtilityService=D,t.ɵa=U,t.ɵb=F,Object.defineProperty(t,"__esModule",{value:!0})}));
17
17
  //# sourceMappingURL=esfaenza-extensions.umd.min.js.map