{"version":3,"sources":["_adc.js","adc-popup.js","utility.js"],"names":["adc","Object","popup","$popup","_options","open","opt","s","title","body","buttons","i","length","b","isPrimary","text","$","append","modal","on","index","this","attr","callback","remove","setupButtons","$container","selector","val","$btn","is","enterKeyTarget","document","keypress","e","$elem","target","nodeName","toUpperCase","which","preventDefault","click","ready","$body"],"mappings":"AAEA,IAAAA,IAAA,IAAAC,OCqBAD,IAAAE,MAAA,WACA,IAGAC,EAAA,KAGAC,EAAA,KAgEA,MAAA,CACAC,KA5DA,SAAAC,GAIA,IAAAC,EAAA,uDAYA,GAXAA,GAAA,6CACAA,GAAA,8BACAA,GAAA,6BACAA,GAAA,+HACAA,GAAA,4BARAH,EAAAE,GAQAE,MAAA,QACAD,GAAA,SACAA,GAAA,2BACAA,GAAA,MAAAH,EAAAK,KAAA,OACAF,GAAA,SACAA,GAAA,6BAEAH,EAAAM,QACA,IAAA,IAAAC,EAAA,EAAAA,EAAAP,EAAAM,QAAAE,OAAAD,IAAA,CACA,IAAAE,EAAAT,EAAAM,QAAAC,GAEAJ,GAAA,yBACAA,GAAA,mBAAAM,EAAAC,UAAA,UAAA,WAAA,IACAP,GAAA,2CAAAI,EAAA,KAAAE,EAAAE,KAAA,YAGAR,GAAA,SACAA,GAAA,SACAA,GAAA,SACAA,GAAA,SAGAJ,EAAAa,EAAAT,GACAS,EAAA,QAAAC,OAAAd,GACAA,EAAAe,MAAA,QAGAd,EAAAM,SACAP,EAAAgB,GAAA,QAAA,uBAAA,WACA,IAAAC,EAAAJ,EAAAK,MAAAC,KAAA,qBAGAT,EAAAT,EAAAM,QAAAU,GAGAP,EAAAU,UACAV,EAAAU,aAMApB,EAAAgB,GAAA,kBAAA,WACAhB,EAAAqB,aAhEA,GCvBA,WACA,IAsBAC,EAAA,SAAAC,GACAA,EAAAP,GAAA,QAAA,SAAA,WAIA,IAEAQ,EAGAC,EARAC,KAAAb,EAAAK,MAGAQ,KAAAC,GAAA,kCAEAH,EAAAE,KAAAP,KAAA,8BAGAM,EAAAZ,EAAAW,GAAAC,MAGAC,KAAAD,IAAAA,OAeAG,EAAA,WACAf,EAAAgB,UAAAC,SAAA,SAAAC,GAEA,IAMAC,EAKAR,EAXA,YAAAO,EAAAE,OAAAC,SAAAC,eAEA,IAAAJ,EAAAK,QACAL,EAAAM,kBAGAL,EAAAnB,EAAAkB,EAAAE,SAGAN,GAAA,6BAEAH,EAAAQ,EAAAb,KAAA,yBAGAN,EAAAW,GAAAc,aAUAzB,EAAAgB,UAAAU,MAxEA,WACA,IAAAC,EAAA3B,EAAA,QAEAS,EAAAkB,GACAZ,MAVA","file":"dreamline-common.min.js","sourcesContent":["//This file is names _adc.js so it is first, otherwise the gulp concatination won't work correctly\n\nvar adc = new Object();","//Popups designed to be used with bootstrap. This is only suitable for showing one popup at a time.\r\n//\r\n//\r\n//methods:\r\n// open(options) - opens a popup. There is no need to close it, it automatically closes after a button callback\r\n// is completed.\r\n//\r\n//\r\n//\r\n// options: a json object\r\n// {\r\n// title: \"My popup\"\r\n// body: \"The popup body html\"\r\n// buttons: [\r\n// {\r\n// text: \"Ok\",\r\n// isPrimary: true/false. Applies Bootstrap btn-primary class, default is false\r\n// callback: function(){} : function to be called when button is clicked. This is optional\r\n// and is normally omitted on \"Cancel\" buttons.\r\n// }\r\n// ]\r\n// }\r\n\r\n;adc.popup = function() {\r\n var\r\n\r\n //our popup object\r\n $popup = null, \r\n\r\n //our options passed to the open method\r\n _options = null,\r\n\r\n //\r\n //open the popup\r\n //\r\n open = function(opt) {\r\n _options = opt;\r\n\r\n //create the popup html\r\n var s = \"\";\r\n\r\n //turn it into a jquery elem and add to the body\r\n $popup = $(s);\r\n $('body').append($popup);\r\n $popup.modal('show');\r\n\r\n //now bind the function handlers\r\n if (_options.buttons) {\r\n var $btns = $popup.on('click', '.modal-footer button', function() {\r\n var index = $(this).attr('data-button-index');\r\n\r\n //get the button\r\n var b = _options.buttons[index];\r\n\r\n //call the cb\r\n if (b.callback) {\r\n b.callback();\r\n }\r\n });\r\n }\r\n\r\n //hookup hidden event to remove the popup\r\n $popup.on('hidden.bs.modal', function() {\r\n $popup.remove();\r\n });\r\n };\r\n\r\n\r\n\r\n //return methods\r\n return {\r\n open: open\r\n };\r\n}();",";(function() {\n var\n\n //\n //init\n //\n init = function () {\n var $body = $(\"body\");\n\n setupButtons($body);\n enterKeyTarget();\n },\n\n\n //\n // buttonValueProvider - Pull the button value from another control.\n // Add a data-button-value-provider=\"jquery selector\", the button value will be set to the val() of the element\n // specified by the selector.\n //\n //