{"version":3,"file":"ajax-helper.min.mjs","sources":["../ajax-helper.mjs"],"names":["urlConfig","toast","ajaxRequest","options","url","type","dataType","data","headers","processData","contentType","mimeType","cache","async","closeModal","xhrFields","lazyLoading","minLoadingTime","redirectOnError","customErrorToastHeader","errorToastHeader","customErrorToastBody","errorToastBody","startTime","Date","getTime","$","ajax","beforeSend","jqXHR","let","header","setRequestHeader","then","textStatus","elapsedTime","Promise","resolve","setTimeout","status","error","console","window","location","href","modal","css","errorMessage","statusText","responseText","engageLog","reject","message","context","appInstance","substring","ajaxSetup","statusCode","401","sessionExpiredToastHeader","sessionExpiredToastBody"],"mappings":"OACOA,cAAe,sBAEbC,KAA4B,KAAf,gBAKf,SAASC,YAAYC,GACxB,GAAM,CACFC,IAAAA,EACAC,KAAAA,EAAO,OACPC,SAAAA,EAAW,OACXC,KAAAA,EAAO,GACPC,QAAAA,EAAU,GACVC,YAAAA,EAAc,CAAA,EACdC,YAAAA,EAAc,oCACdC,SAAAA,EAAW,GACXC,MAAAA,EAAQ,CAAA,EACRC,MAAAA,EAAQ,CAAA,EACRC,WAAAA,EAAa,CAAA,EACbC,UAAAA,EAAY,GACZC,YAAAA,EAAc,CAAA,EACdC,eAAAA,EAAiB,IACjBC,gBAAAA,EAAkB,CAAA,EAClBC,uBAAAA,EAAyBC,iBACzBC,qBAAAA,EAAuBC,cAC3B,EAAInB,EAEEoB,GAAY,IAAIC,MAAOC,QAAQ,EAErC,OAAOC,EAAEC,KAAK,CACVvB,IAAKA,EACLC,KAAMA,EACNC,SAAUA,EACVG,YAAaA,EACbC,YAAaA,EACbC,SAAUA,EACVC,MAAOA,EACPC,MAAOA,EACPE,UAAWA,EACXR,KAAMA,EACNqB,WAAY,SAAUC,GAClB,IAAKC,IAAIC,KAAUvB,EACfqB,EAAMG,iBAAiBD,EAAQvB,EAAQuB,EAAO,CAEtD,CACJ,CAAC,EAAEE,KAEH,SAAqB1B,EAAM2B,EAAYL,GACnC,IAAIM,GAAc,IAAIX,MAAO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