{"version":3,"file":"3463.8b38a4320daebe5b9f75.js","mappings":"4HAEWA,EAAIC,E,sBAAJD,EAsEPE,OAAOF,GAAKE,OAAOF,IAAM,CAAC,EAtEfC,EAsEmBE,EArEhCH,EAAGI,SAAW,CACZC,gBAAgB,EAChBC,sBAAuB,SAAUC,GAC/BP,EAAGQ,iBAAiBC,OACtB,EACAC,qBAAsB,WACpBV,EAAGQ,iBAAiBG,MACtB,EACAC,eAAgB,SAAUC,GACxB,IAAIC,EAAOC,KACXF,EAAiBG,GAAG,QAAS,YAAY,SAAUC,GACjDA,EAAEC,iBACF,IAAIC,EAAQlB,EAAEc,MACII,EAAMC,OAAO,MAEfC,SAAS,UACvBP,EAAKQ,WAAWH,GAEhBL,EAAKS,YAAYJ,EAErB,GACF,EACAK,WAAY,SAAUC,GACpB,OAAOzB,EAAG0B,MAAMC,MAAMF,EACxB,EACAG,aAAc,SAAUH,GACtB,IAAKA,EACH,KAAM,oCAGR,IAAKA,EAAUI,KACb,KAAM,6BA6BR,YA1ByC,IAA9BJ,EAAUK,kBACnBL,EAAUK,gBAAkB,SAAUC,GACpCA,EAAUC,OACZ,QAG6B,IAApBP,EAAUQ,QACnBR,EAAUQ,MAAQ,gBAGU,IAAnBR,EAAUS,OACnBT,EAAUS,KAAO,MAGL,UAAwB,CACpCA,KAAMT,EAAUS,KAChBC,QAASV,EAAUI,KACnBI,MAAOR,EAAUQ,MACjBG,SAAU,SAAUC,GACdA,GAEFZ,EAAUK,gBAAgBO,EAE9B,GAIJ,EACAC,WAAY,SAAUC,GACpBtC,EAAE,UAAUyB,MAAM,OACpB,EACAc,UAAW,SAAUf,GACnB,OAAOzB,EAAG0B,MAAMe,KAAKhB,EACvB,E","sources":["webpack://shipley-du-lib/./common/js/legacy/custPortal/cw/lib/cw.uiCommon.js"],"sourcesContent":["import * as BootstrapDialog from \"bootstrap3-dialog\";\r\n\r\n(function (cw, $, undefined) {\r\n cw.uiCommon = {\r\n includeSpinner: false,\r\n StartLoadingIndicator: function (options) {\r\n cw.loadingIndicator.start();\r\n },\r\n StopLoadingIndicator: function () {\r\n cw.loadingIndicator.stop();\r\n },\r\n BindFolderView: function ($targetWrapperEl) {\r\n var self = this;\r\n $targetWrapperEl.on(\"click\", \"a.folder\", function (e) {\r\n e.preventDefault();\r\n var $this = $(this);\r\n var $parentLiEl = $this.parent(\"li\");\r\n\r\n if ($parentLiEl.hasClass(\"closed\")) {\r\n self.OpenFolder($this);\r\n } else {\r\n self.CloseFolder($this);\r\n }\r\n });\r\n },\r\n ModalAlert: function (configObj) {\r\n return cw.modal.Alert(configObj);\r\n },\r\n ModalConfirm: function (configObj) {\r\n if (!configObj) {\r\n throw \"ModalConfirm needs config object!\";\r\n }\r\n\r\n if (!configObj.text) {\r\n throw \"ModalConfirm needs a text!\";\r\n }\r\n\r\n if (typeof configObj.successCallback === \"undefined\") {\r\n configObj.successCallback = function (dialogRef) {\r\n dialogRef.close();\r\n };\r\n }\r\n\r\n if (typeof configObj.title === \"undefined\") {\r\n configObj.title = \"Confirm\";\r\n }\r\n\r\n if (typeof configObj.data === \"undefined\") {\r\n configObj.data = null;\r\n }\r\n\r\n var confirm = BootstrapDialog.confirm({\r\n data: configObj.data,\r\n message: configObj.text,\r\n title: configObj.title,\r\n callback: function (result) {\r\n if (result) {\r\n //Ok!\r\n configObj.successCallback(result);\r\n }\r\n },\r\n });\r\n\r\n return confirm;\r\n },\r\n CloseModal: function (remove) {\r\n $(\"#modal\").modal(\"hide\");\r\n },\r\n OpenModal: function (configObj) {\r\n return cw.modal.Open(configObj);\r\n },\r\n };\r\n})((window.cw = window.cw || {}), jQuery);\r\n"],"names":["cw","$","window","jQuery","uiCommon","includeSpinner","StartLoadingIndicator","options","loadingIndicator","start","StopLoadingIndicator","stop","BindFolderView","$targetWrapperEl","self","this","on","e","preventDefault","$this","parent","hasClass","OpenFolder","CloseFolder","ModalAlert","configObj","modal","Alert","ModalConfirm","text","successCallback","dialogRef","close","title","data","message","callback","result","CloseModal","remove","OpenModal","Open"],"sourceRoot":""}