New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zazzy-browser

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zazzy-browser - npm Package Compare versions

Comparing version 1.1.26 to 1.1.27

4

dist/zzb.min.js
//! zzb.js
//! version: 1.1.26
//! version: 1.1.27
//! author(s): Jaret Pfluger
//! license: MIT
//! https://github.com/jpfluger/zazzy-browser
!function i(o,a,l){function u(e,t){if(!a[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(d)return d(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var n=a[e]={exports:{}};o[e][0].call(n.exports,function(t){return u(o[e][1][t]||t)},n,n.exports,i,o,a,l)}return a[e].exports}for(var d="function"==typeof require&&require,t=0;t<l.length;t++)u(l[t]);return u}({1:[function(t,e,r){var s=window.$;function n(){this.ajax=function(o){return new Promise(function(n,i){s.ajax(o).done(function(t,e,r){if(o.RAWRETURN)return n(t);if(!t)return i(new Error("Data returned is empty when at minimum a status is required"));var s=zzb.rob.newROB();if(r.responseJSON){if(t.redirect&&0<t.redirect.length)return void(window.location.href=t.redirect);t.ISROBERRORS||(t.err?(t.errs=zzb.rob.sanitizeErrors(t.err),t.err=null):t.error?(t.errs=zzb.rob.sanitizeErrors(t.error),t.err=null):t.errs&&(t.errs=zzb.rob.sanitizeErrors(t.errs),t.err=null)),t.ISROBRECS||(t.recs?t.recs=zzb.rob.sanitizeRecords(t.recs):t.rec?(t.recs=zzb.rob.sanitizeRecords(t.rec),t.rec=null):Array.isArray(t.errs)&&0!==t.errs.length||(t.recs=zzb.rob.sanitizeRecords(t))),t.paginate&&(s.paginate=t.paginate),s.errs=t.errs,s.recs=t.recs,s.fields=t.fields,s.listErrs=zzb.rob.toListErrs(s.errs)}else s.recs=[t];n(s)}).fail(function(t,e,r){i(r),!0===o.NOFAILLOG&&console.log(r)})})}}n.prototype.get=function(t){return t.type="GET",t.contentType="application/json; charset=UTF-8",t.data=JSON.stringify(t.data),this.ajax(t)},n.prototype.getJSON=function(t){return t.type="GET",t.dataType="json",t.contentType="application/json; charset=UTF-8",t.data=JSON.stringify(t.data),this.ajax(t)},n.prototype.postJSON=function(t){return t.type="POST",t.dataType="json",t.contentType="application/json; charset=UTF-8",t.data=JSON.stringify(t.data),this.ajax(t)},r.ajax=n},{}],2:[function(t,e,r){var o=window._,a=function(t){this.defaultOptions=a.getDialogDefaults(t),this.defaultOptions.onShow="function"==typeof t.onShow?t.onShow:function(){},this.defaultOptions.onShown="function"==typeof t.onShown?t.onShown:function(){},this.defaultOptions.onHide="function"==typeof t.onHide?t.onHide:function(){},this.defaultOptions.onHidden="function"==typeof t.onHidden?t.onHidden:function(){}};a.getButtonDefaults=function(t){var e={id:null,type:a.TYPE_NONE,label:"",className:"",action:null,isDismiss:!1,isOutline:!1};return zzb.types.isObject(t)?o.merge(e,t):e},a.getDialogDefaults=function(t){var e={id:zzb.uuid.newV4(),type:a.TYPE_NONE,className:"",extraAttributes:"",noFade:!1,title:"",body:"",buttons:[],onShow:null,onShown:null,onHide:null,onHidden:null,doVerticalCenter:!0,doAutoDestroy:!0,underlay:{isOn:!1,id:null,className:"",bg:"#838383",opacity:.5}};return zzb.types.isObject(t)?o.merge(e,t):e},a.BUTTON_CLOSE="button-close",a.BUTTON_OK="button-ok",a.BUTTON_YES="button-yes",a.BUTTON_NO="button-no",a.BUTTON_CANCEL="button-cancel",a.TYPE_NONE="none",a.TYPE_PRIMARY="primary",a.TYPE_SECONDARY="secondary",a.TYPE_SUCCESS="success",a.TYPE_DANGER="danger",a.TYPE_WARNING="warning",a.TYPE_INFO="info",a.TYPE_LIGHT="light",a.TYPE_DARK="dark",a.TYPE_LINK="link",a.getButtonPreset=function(t,e,r){var s=a.getButtonDefaults();switch(s.isDismiss=!0,e===r-1?s.type=a.TYPE_PRIMARY:e===r-2&&(s.type=a.TYPE_SECONDARY),t){case"button-close":s.label="Close";break;case"button-ok":s.label="Ok";break;case"button-accept":s.label="Accept";break;case"button-yes":s.label="Yes";break;case"button-no":s.label="No";break;case"button-cancel":s.label="Cancel";break;default:s=null}return s},a.validateType=function(t){if(!t)return a.TYPE_NONE;switch(t){case a.TYPE_PRIMARY:case a.TYPE_SECONDARY:case a.TYPE_SUCCESS:case a.TYPE_DANGER:case a.TYPE_WARNING:case a.TYPE_INFO:case a.TYPE_LIGHT:case a.TYPE_DARK:case a.TYPE_LINK:return t;default:return a.TYPE_NONE}},a.isTypeNone=function(t){return a.validateType(t)===a.TYPE_NONE},a.prototype.getId=function(){return zzb.types.isNonEmptyString(this.defaultOptions.id)||(this.defaultOptions.id=zzb.uuid.newV4()),this.defaultOptions.id},a.prototype.getClassName=function(){return zzb.types.isNonEmptyString(this.defaultOptions.className)||(this.defaultOptions.className=""),this.defaultOptions.className},a.prototype.getTitle=function(){return zzb.types.isNonEmptyString(this.defaultOptions.title)||(this.defaultOptions.title=""),this.defaultOptions.title},a.prototype.getBody=function(){return zzb.types.isNonEmptyString(this.defaultOptions.body)||(this.defaultOptions.body=""),this.defaultOptions.body},a.prototype.create$Modal=function(){var t=o.merge({id:this.getId(),arialabel:"arialabel"+this.getId(),className:this.getClassName(),title:this.getTitle(),body:this.getBody(),classVerticalCenter:this.defaultOptions.doVerticalCenter?" modal-dialog-centered":"",classModalHeader:""},this.defaultOptions);t.classFade="fade",zzb.types.isBoolean(t.noFade)&&!0===t.noFade&&(t.classFade=""),a.isTypeNone(this.defaultOptions.type)||(t.classModalHeader+=" alert-"+this.defaultOptions.type),zzb.types.isNonEmptyString(t.dataBackdrop)&&(t.extraAttributes+=' data-backdrop="'+t.dataBackdrop+'"'),zzb.types.isBoolean(t.dataKeyboard)&&(t.extraAttributes+=' data-keyboard="'+t.dataKeyboard+'"');var s=$(zzb.strings.format('<div class="modal {classFade} modal-fullscreen {className}" {extraAttributes} id="{id}" tabindex="-1" role="dialog" aria-labelledby="{arialabel}" aria-hidden="true"><div class="modal-dialog{classVerticalCenter}" role="document"><div class="modal-content"><div class="modal-header{classModalHeader}"><h5 class="modal-title" id="{arialabel}">{title}</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body">{body}</div><div class="modal-footer"></div></div></div></div>',t));Array.isArray(this.defaultOptions.buttons)||(this.defaultOptions.buttons=[]);var n=this,i=this.defaultOptions.buttons.length;return o.each(this.defaultOptions.buttons,function(t,e){if(zzb.types.isNonEmptyString(t)&&(t=a.getButtonPreset(t,e,i)),zzb.types.isObject(t)){zzb.types.isNonEmptyString(t.id)||(t.id="button-"+e+"-"+n.getId()),t.isDismiss&&(zzb.types.isFunction(t.action)||(t.action=function(t,e){t.close()}),s.find(".modal-header button.close").attr("aria-label",t.label)),a.isTypeNone(t.type)||(t.isOutline?t.className+=" btn-outline-"+t.type:t.className+=" btn-"+t.type);var r=$(zzb.strings.format('<button id="{id}" type="button" class="btn {className}">{label}</button>',t));r.data("button",t),r.on("click",{dialog:n,$button:r,button:t},function(t){var e=t.data.dialog,r=t.data.$button,s=r.data("button");if("function"==typeof s.action)return s.action.call(r,e,t)}),0<s.find(".modal-footer > button").length?r.insertAfter(s.find(".modal-footer > button").last()):s.find(".modal-footer").append(r)}}),s},a.prototype.open=function(){if(!this.$modal){this.$modal=this.create$Modal();var e=this;this.$modal.on("show.bs.modal",function(t){e.onShow(t)}),this.$modal.on("shown.bs.modal",function(t){e.onShown(t)}),this.$modal.on("hide.bs.modal",function(t){e.onHide(t)}),this.$modal.on("hidden.bs.modal",function(t){e.onHidden(t)})}if(zzb.types.isObject(this.defaultOptions.underlay)&&!0===this.defaultOptions.underlay.isOn){zzb.types.isNonEmptyString(this.defaultOptions.underlay.id)||(this.defaultOptions.underlay.id="zzbModalUnderlay");var t=t=$("#"+this.defaultOptions.underlay.id);if(0===t.length){var r=[];zzb.types.isNonEmptyString(this.defaultOptions.underlay.className)?r.push(' class="'+this.defaultOptions.underlay.className+'"'):(r.push(' style="'),r.push("position:absolute;top:0;left:0;width:100%;height:100%;display:none;"),zzb.types.isNonEmptyString(this.defaultOptions.underlay.bg)&&(r.push("background-color:"+this.defaultOptions.underlay.bg+";"),zzb.types.isNumber(this.defaultOptions.underlay.opacity)&&r.push("opacity:"+this.defaultOptions.underlay.opacity+";")),r.push('"')),$('<div id="'+this.defaultOptions.underlay.id+'" '+r.join("")+"></div>").appendTo("body"),t=$("#"+this.defaultOptions.underlay.id)}t.show()}this.$modal.modal("show"),this.$modal.appendTo("body")},a.prototype.onShow=function(t){this.defaultOptions.onShow(t,this,this.$modal)},a.prototype.onShown=function(t){this.defaultOptions.onShown(t,this,this.$modal)},a.prototype.onHide=function(t){this.defaultOptions.onHide(t,this,this.$modal)},a.prototype.onHidden=function(t){this.defaultOptions.onHidden(t,this,this.$modal),this.defaultOptions.doAutoDestroy&&this.$modal.remove()},a.prototype.close=function(){if(this.$modal.modal("hide"),zzb.types.isObject(this.defaultOptions.underlay)&&!0===this.defaultOptions.underlay.isOn&&zzb.types.isNonEmptyString(this.defaultOptions.underlay.id)){var t=t=$("#"+this.defaultOptions.underlay.id);0<t.length&&t.hide()}},a.prototype.destroy=function(){if(this.$modal.modal("hide"),this.$modal.modal("dispose"),0<$("#"+this.getId()).length&&$("#"+this.getId()).remove(),zzb.types.isObject(this.defaultOptions.underlay)&&!0===this.defaultOptions.underlay.isOn&&zzb.types.isNonEmptyString(this.defaultOptions.underlay.id)){var t=t=$("#"+this.defaultOptions.underlay.id);0<t.length&&t.remove()}this.$modal=null};function s(){}s.prototype.ZazzyDialog=a,s.prototype.modal=function(t){return new a(t)},s.prototype.showMessage=function(t){zzb.dialogs.modal(o.merge({type:a.TYPE_NONE,buttons:[a.BUTTON_OK]},t)).open()},s.prototype.showMessageChoice=function(t){zzb.dialogs.modal(o.merge({type:a.TYPE_NONE,buttons:[a.BUTTON_CANCEL,a.getButtonDefaults({type:a.TYPE_PRIMARY,label:"Accept",action:function(t,e){t.close()}})]},t)).open()},s.prototype.handleError=function(t){if((t=o.merge({log:null,type:a.TYPE_DANGER,title:"",body:'<div class="zzb-dialog-errors">{errors}</div><div class="zzb-dialog-message">{message}</div>',message:"",errs:null,errors:"",buttons:[a.getButtonDefaults({type:a.TYPE_DANGER,label:"Ok",action:function(t,e){t.close()}})]},t)).log&&console.log(t.log),!zzb.types.isNonEmptyString(t.errors)&&zzb.types.isArray(t.errs)){var r=[];o.each(t.errs,function(t,e){t.message&&zzb.types.isNonEmptyString(t.message)&&r.push(zzb.strings.format('<div class="zzb-dialog-error-item">{0}</div>',t.message))}),t.errors=r.join("\n")}t.body=zzb.strings.format(t.body,t),this.showMessage(t)},r.dialogs=s},{}],3:[function(t,e,r){function s(){}var f=window.$,h=window._;s.prototype.displayUIErrors=function(o,t){if(o=h.merge({selector:null,$form:null,selectorField:".zzb-form-field",attrFieldname:"zzb-fieldname",selectorValidateMessage:".zzb-form-field-validate-message",isTooltip:!1,addIsValidCSS:!1,selectorDisplaySystemMessage:".zzb-form-display-system-message",listErrs:null,errs:null,rob:null,fnSystemErrorContent:null,fnDialogSystemErrors:null,fnDialogErrors:null,fnDialogSuccess:null},o),zzb.types.isNonEmptyString(o.selector)&&0<f(o.selector).length&&(o.$form=f(o.selector)),o.$form&&0===o.$form.length)return t&&t(!1,new Error("could not select the form"));var a=null;if(o.listErrs)a=o.listErrs;else if(o.rob&&o.rob.listErrs)a=o.rob.listErrs;else{if(!o.errs)return t&&t(!1,new Error("could not find the list of errors"));a=zzb.rob.toListErrs(o.errs)}function e(){t&&t(!a.hasErrors(),null)}var l="is-valid ",u="is-invalid",d="valid-feedback",p="invalid-feedback";o.isTooltip&&(d="valid-tooltip",p="invalid-tooltip");var c=a.hasFieldErrors();if(o.$form.find(o.selectorField).each(function(t,e){var r=f(e),s=r.attr(o.attrFieldname),n=null;if(zzb.types.isNonEmptyString(s)){c&&h.each(a.fields,function(t){if(t.field===s)return n=t,!1});var i=o.$form.find(o.selectorValidateMessage+"["+o.attrFieldname+"='"+s+"']");i&&0<i.length&&(n?(i.html(n.message),i.addClass(p),i.removeClass(d)):(i.addClass(d),i.removeClass(p)))}n?(r.addClass(u),r.removeClass(l)):(o.addIsValidCSS&&r.addClass(l),r.removeClass(u))}),a.hasSystemErrors()&&o.fnDialogSystemErrors&&zzb.types.isFunction(o.fnDialogSystemErrors))o.fnDialogSystemErrors(zzb.rob.renderListErrs({errs:a.system,format:"html-list"}),function(){e()});else{if(zzb.types.isNonEmptyString(o.selectorDisplaySystemMessage)){var r=o.$form.find(o.selectorDisplaySystemMessage);if(r&&0<r.length&&(r.hide(),r.html(""),a.hasSystemErrors())){var s=zzb.rob.renderListErrs({errs:a.system,format:"html-list"});zzb.types.isNonEmptyString(s)&&(s=o.fnSystemErrorContent&&zzb.types.isFunction(o.fnSystemErrorContent)?o.fnSystemErrorContent(s):"<ul>"+s+"</ul>",r.html(s),r.removeClass(d),r.addClass(p),r.show())}}a.hasErrors()?o.fnDialogErrors&&zzb.types.isFunction(o.fnDialogErrors)&&o.fnDialogErrors(function(){e()}):o.fnDialogSuccess&&zzb.types.isFunction(o.fnDialogSuccess)?o.fnDialogSuccess(function(){e()}):e()}},r.forms=s},{}],4:[function(t,e,r){function s(){}var o=window._;s.prototype.getPO=function(t,e){var r=t[e];return r||this.getPermObject(e+":")},s.prototype.getPermObjectFromPermkeys=function(t){var s={},n=this;return Array.isArray(t)?o.each(t,function(t){var e=n.getPermObject(t);e.key&&(s[e.key]=e)}):zzb.types.isObject(t)&&o.forOwn(t,function(t,e){var r=null;(r=(t=t||"").indexOf(":")<0?n.getPermObject(e+":"+t):n.getPermObject(t))&&r.key&&(s[r.key]=r)}),s},s.prototype.mergePermkey=function(t,e){if(!e||!zzb.types.isNonEmptyString(e))return t;if(!t||!zzb.types.isNonEmptyString(t))return e;var r=null,s={},n={};if(t.indexOf(":")<=0?(s.key=t.trim(),s.perm=""):(r=t.split(":"),s.key=r[0].trim(),s.perm=r[1].trim().toUpperCase()),e.indexOf(":")<=0?(n.key=e.trim().toUpperCase(),n.perm=""):(r=e.split(":"),n.key=r[0].trim(),n.perm=r[1].trim().toUpperCase()),s.key!==n.key||s.perm===n.perm||0===n.perm.length)return t;if(0===s.key.length)return e;for(var i=0;i<n.perm.length;i++)s.perm.indexOf(n.perm[i])<0&&(s.perm+=n.perm[i]);return s.key+":"+s.perm},s.prototype.getPermObject=function(t,e,r){var s={key:null,perm:null,attr:{},toPermkey:function(){return this.key+":"+this.perm}};if((r||zzb.types.isNonEmptyString(r))&&(t=this.mergePermkey(t,r)),!t||!zzb.types.isNonEmptyString(t))return s.attr=this.getPermAttributes(),s;if(t.indexOf(":")<=0)return s.key=t,s.perm="",s.attr=this.getPermAttributes(),s;var n=t.split(":");if(s.key=n[0],s.perm=n[1],s.perm=s.perm.trim().toUpperCase(),0<s.perm.length&&e&&zzb.types.isNonEmptyString(e)){e=e.trim().toUpperCase();for(var i=s.perm.length-1;0<=i;i--)e.indexOf(s.perm[i])<0&&(s.perm=s.perm.replace(s.perm[i],""))}return s.attr=this.getPermAttributes(s.toPermkey(),e),s};var n=new RegExp("^[CRUDX]*$");s.prototype.getPermAttributes=function(t){var e={canRead:!1,canCreate:!1,canUpdate:!1,canDelete:!1,canExecute:!1};return t&&zzb.types.isNonEmptyString(t)?(0<=t.indexOf(":")&&(t=t.split(":")[1]),0===(t=t.trim().toUpperCase()).length||n.test(t)&&(e.canRead=0<=t.indexOf("C"),e.canCreate=0<=t.indexOf("R"),e.canUpdate=0<=t.indexOf("U"),e.canDelete=0<=t.indexOf("D"),e.canExecute=0<=t.indexOf("X")),e):e},s.prototype.hasMatch=function(t,e){if(!t||!e)return!1;var r=t;if(zzb.types.isNonEmptyString(t)&&(r=this.getPermObject(t)),!zzb.types.isObject(r)||!r.key||!r.perm||0===r.perm.length)return!1;var s=null;if(zzb.types.isNonEmptyString(e))s=this.getPermObject(e);else if(Array.isArray(e)){var n=this;o.each(e,function(t){if(zzb.types.isNonEmptyString(t)&&(t=n.getPermObject(t)),t.key===r.key)return s=t,!1})}else{if(!zzb.types.isObject(e))return!1;if(e.key)s=e;else{if(!e[r.key])return!1;s=zzb.types.isNonEmptyString(e[r.key])?this.getPermObject(r.key+":"+e[r.key]):e[r.key]}}if(!s||!s.key||!s.perm||0===!s.perm.length)return!1;for(var i=0;i<s.perm.length;i++)if(0<=r.perm.indexOf(s.perm[i]))return!0;return!1},r.perms=s},{}],5:[function(t,e,r){function s(){}var i=window._;function n(t){if((t=i.merge({type:"error",message:null,field:"_system",stack:null,isErr:!0,title:null},t)).isErr)switch("warn"===t.type?t.type="warning":"err"===t.type?t.type="error":"emerg"===t.type&&(t.type="emergency"),t.type){case"warning":case"notice":case"info":case"debug":t.isErr=!1;break;default:t.isErr=!0}return t}s.prototype.newROB=function(t){return i.merge({errs:null,recs:[],fields:[],paginate:{page:0,limit:0,count:0},hasErrors:function(){return this.errs&&Array.isArray(this.errs)&&0<this.errs.length},hasFields:function(){return this.fields&&Array.isArray(this.fields)&&0<this.fields.length},hasRecords:function(){return this.recs&&Array.isArray(this.recs)&&0<this.recs.length},isEmpty:function(){return!this.hasRecords()||this.hasRecords()&&null===this.first()},first:function(){return this.recs&&Array.isArray(this.recs)&&0<this.recs.length?this.recs[0]:null},find:function(e,r){var s=null;return i.each(this.recs,function(t){if(t&&zzb.types.isObject(t)&&!Array.isArray(t)&&t[e]===r)return s=t,!1}),s},length:function(){return this.recs&&Array.isArray(this.recs)?this.recs.length:0}},t)},s.prototype.toObject=function(t){if(!t||!Array.isArray(t))return{_system:[t]};var e={};return i.each(t,function(t){t&&(t.field||(t.field="_system"),e[t.field]||(e[t.field]=[]),e[t.field].push(t))}),e};function o(t,e){if(!t)return n();if(zzb.types.isNonEmptyString(t))return n(i.merge({message:t},e));if(!Array.isArray(t)&&zzb.types.isObject(t))return n(t);throw new Error("bad input in createError - unrecognized err datatype")}s.prototype.createError=o,s.prototype.sanitizeErrors=function(t){var e=null;return t&&(Array.isArray(t)?0<t.length&&(e=[],i.each(t,function(t){e.push(o(t))})):e=[o(t)]),e},s.prototype.sanitizeRecords=function(t){return t?Array.isArray(t)?t:[t]:[]},s.prototype.toListErrs=function(t){var e=[],r=[],s=[],n=[];return t&&Array.isArray(t)&&0<t.length&&i.each(t,function(t){!0===t.isErr?"_system"===t.system?r.push(t):zzb.types.isNonEmptyString(t.field)?"_system"===t.field?r.push(t):e.push(t):r.push(t):"_system"===t.system?s.push(t):zzb.types.isNonEmptyString(t.field)?"_system"===t.field?s.push(t):n.push(t):s.push(t)}),{system:r,fields:e,systemMessages:s,fieldMessages:n,hasSystemErrors:function(){return this.system&&0<this.system.length},hasFieldErrors:function(){return this.fields&&0<this.fields.length},combinedErrors:function(){return this.system.concat(this.fields)},hasErrors:function(){return this.hasSystemErrors()||this.hasFieldErrors()},hasSystemMessages:function(){return this.systemMessages&&0<this.systemMessages.length},hasFieldMessages:function(){return this.fieldMessages&&0<this.fieldMessages.length},combinedMessages:function(){return this.systemMessages.concat(this.fieldMessages)},hasMessages:function(){return this.hasSystemMessages()||this.hasFieldMessages()}}},s.prototype.renderListErrs=function(r){r=i.merge({errs:[],format:"text",defaultTitle:"",template:null},r);var s=[];return zzb.types.isArrayHasRecords(r.errs)&&i.each(r.errs,function(t){var e="";zzb.types.isNonEmptyString(r.defaultTitle)?e=r.defaultTitle:zzb.types.isNonEmptyString(t.field)&&(e=t.field),r.template?s.push(zzb.strings.format(r.template,e,t.message)):"html"===r.format||"html-list"===r.format?s.push(zzb.strings.format('<li class="zzb-rob-list-error-item">{0}</li>',t.message)):"html-list-label"===r.format?s.push(zzb.strings.format('<li class="zzb-rob-list-error-item"><span>{0}:</span> {1}</li>',e,t.message)):"label"===r.format?s.push(zzb.strings.format("{0}: {1}",e,t.message)):s.push(zzb.strings.format(t.message))}),s.join("")},r.rob=s},{}],6:[function(t,e,r){function s(){this.zzbStatus=null}var i=window.$,o=window._;s.prototype.get=function(t,e){var r=(t=o.merge({path:window.location.path,role:null})).path===window.location.path&&!t.role;if(r){if(this.zzbStatus)return e&&e(null,this.zzbStatus);var s=null;if("undefined"!=typeof Storage&&sessionStorage.zzbStatus){try{s=JSON.parse(sessionStorage.getItem("zzbStatus"))}catch(t){console.log("unable to parse zzbStatus from sessionStorage: "+t)}if(sessionStorage.setItem("zzbStatus",null),s)return this.zzbStatus=s,e&&e(null,this.zzbStatus)}if(0<i("#zzbStatus").length&&zzb.types.isNonEmptyString(i("#zzbStatus").attr("status"))){try{s=JSON.parse(i("#zzbStatus").attr("status"))}catch(t){console.log("unable to parse zzbStatus from embedded attribute in #zzbStatus: "+t)}if(s)return this.zzbStatus=s,e&&e(null,this.zzbStatus)}}s={user:{isLoggedIn:!1,username:null},page:{path:window.location.pathname}};var n=this;zzb.ajax.postJSON({url:"/zzb/status",data:t}).then(function(t){t.errs?e&&e(t.errs,s):(r&&(n.zzbStatus=t.one()),e&&e(null,t.one()))}).catch(function(t){console.log("failed to retrieve zzbStatus: using defaults"),e&&e(zzb.types.sanitizeErrors(t),s)})},r.status=s},{}],7:[function(t,e,r){function s(){}var n=window._;function d(t){var e=new Error(t);return e.name="ValueError",e}var p;s.prototype.format=(p={},function(t){var a=Array.prototype.slice.call(arguments,1),l=0,u="UNDEFINED";return Array.isArray(a)&&0<a.length&&Array.isArray(a[0])&&(a=a[0].map(function(t){return t})),t.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g,function(t,e,r,s){if(null!=e)return e;var n=r;if(0<n.length){if("IMPLICIT"===u)throw d("cannot switch from implicit to explicit numbering");u="EXPLICIT"}else{if("EXPLICIT"===u)throw d("cannot switch from explicit to implicit numbering");u="IMPLICIT",n=String(l),l+=1}var i=n.split("."),o=(/^\d+$/.test(i[0])?i:["0"].concat(i)).reduce(function(t,r){return t.reduce(function(t,e){return null!=e&&r in Object(e)?["function"==typeof e[r]?e[r]():e[r]]:[]},[])},[a]).reduce(function(t,e){return e},"");if(null==s)return o;if(Object.prototype.hasOwnProperty.call(p,s))return p[s](o);throw d('no transformer named "'+s+'"')})}),s.prototype.formatEmpty=function(t){var r=Array.prototype.slice.call(arguments,1);return Array.isArray(r)?t.replace(/{(\d+)}/g,function(t,e){return void 0!==r[e]?r[e]:""}):t.replace(/{((?:(?=([^{}]+|{{[^}]*}}))\2)*)}/g,function(t,e){return 0<r.length&&r[0][e]?r[0][e]:""})},s.prototype.appendIfMoreThan=function(t,e,r){return t&&t.length>r?t.substring(0,r)+e:t},s.prototype.joinArrToCommas=function(s,n){return s&&Array.isArray(s)&&0!==s.length?s.map(s,function(t,e){var r="";return e<s.index-1&&(r=""),n?t[n]+r:t+r}).join(""):""},s.prototype.toPlural=function(t,e,r){return r=n.merge({forcePlural:!1,suffix:null},r),1!==e&&-1!==e||r.forcePlural?r.suffix?t+r.suffix:t+"s":t},r.strings=s},{}],8:[function(t,e,r){function s(){}s.prototype.escapeJqueryId=function(t,e){return(e=null==e?"#":e)+t.replace(/(:|\.|\[|\]|,)/g,"\\$1")},s.prototype.escapeHtml=function(t){return t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},s.prototype.isArray=function(t){return t&&void 0!==t&&"[object Array]"===Object.prototype.toString.call(t)},s.prototype.isArrayHasRecords=function(t){return this.isArray(t)&&0<t.length},s.prototype.isObject=function(t){return t&&"object"==typeof t},s.prototype.isNumber=function(t){return!isNaN(t-0)&&null!==t&&""!==t&&!1!==t},s.prototype.isNonEmptyString=function(t){return t&&"string"==typeof t&&0<t.trim().length},s.prototype.isEmptyString=function(t){return t&&"string"==typeof t&&0===t.trim().length},s.prototype.isString=function(t){return t&&"string"==typeof t},s.prototype.isFunction=function(t){return t&&"[object Function]"==={}.toString.call(t)},s.prototype.isBoolean=function(t){return"boolean"==typeof t},s.prototype.compare=function(t,e,r){return t===e?0:r?e<t?-1:1:e<t?1:-1},r.types=s},{}],9:[function(t,e,r){function s(){}var n=window._;s.prototype.createPanelGroup=function(t){t=n.merge({id:zzb.uuid.newV4(),classPanelGroup:"",innerHtml:""},t);return zzb.strings.format('<div id="panelGroup_{id}" class="panel-group {classPanelGroup}">{innerHtml}</div>',t)},s.prototype.createPanelBody=function(t){t=n.merge({id:zzb.uuid.newV4(),classPanelBody:"",innerHtml:""},t);return zzb.strings.format('<div id="panelBody_{id}" class="panel-body {classPanelBody}">{innerHtml}</div>',t)},s.prototype.createPanel=function(t){t=n.merge({id:zzb.uuid.newV4(),className:"",attributesExtra:"",classPanelHeading:"",name:"",classPanelBody:"",innerHtml:""},t);var e='<div id="panel_{id}" class="panel panel-default {className}" {attributesExtra}><div class="panel-heading {classPanelHeading}>">{name}</div><div id="panelBody_{id}" class="panel-body {classPanelBody}">'+this.createPanelBody(t)+"</div></div>";return zzb.strings.format(e,t)},s.prototype.createPanelCollapsible=function(t){(t=n.merge({id:zzb.uuid.newV4(),className:"",attributesExtra:"",name:"",classPanelBody:"",innerHtml:"",isPanelCollapsed:!1,classNamePanelCollapsed:"",titleHtmlExtra:"",titleHtmlExtraRight:""},t)).isPanelCollapsed?(t._panelCollapsedClass1="collapsed",t._panelCollapsedClass2=""):(t._panelCollapsedClass1="",t._panelCollapsedClass2="in");var e='<div id="panel_{id}" class="panel panel-default {className}" {attributesExtra}><div class="panel-heading"><h4 class="panel-title">{titleHtmlExtra}<a data-toggle="collapse" data-target="#panelCollapse_{id}" href="#panelCollapse_{id}" class="{_panelCollapsedClass1}{classNamePanelCollapsed}">{name}</a> {titleHtmlExtraRight}</h4></div><div id="panelCollapse_{id}" class="panel-collapse collapse {_panelCollapsedClass2}">'+this.createPanelBody(t)+"</div></div>";return zzb.strings.format(e,t)},s.prototype.createPanelCollapsibleBegin=function(t){(t=n.merge({id:zzb.uuid.newV4(),className:"",attributesExtra:"",name:"",classPanelBody:"",innerHtml:"",isPanelCollapsed:!1,classNamePanelCollapsed:"",titleHtmlExtra:"",titleHtmlExtraRight:""},t)).isPanelCollapsed?(t._panelCollapsedClass1="collapsed",t._panelCollapsedClass2=""):(t._panelCollapsedClass1="",t._panelCollapsedClass2="in");return zzb.strings.format('<div class="panel panel-default {className}" id="panel_{id}" {attributesExtra}><div class="panel-heading"><h4 class="panel-title">{titleHtmlExtra}<a data-toggle="collapse" data-target="#panelCollapse_{id}" href="#panelCollapse_{id}" class="{_panelCollapsedClass1}{classNamePanelCollapsed}">{name}</a> {titleHtmlExtraRight}</h4></div><div id="panelCollapse_{id}" class="panel-collapse collapse {_panelCollapsedClass2}"><div class="panel-body" id="panelBody_{id}">',t)},s.prototype.createPanelCollapsibleEnd=function(){return"</div></div></div>"},r.uib=s},{}],10:[function(t,e,r){function s(){}var n=window._;s.prototype.newV4=function(){var r=n.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(r+n.random(16))%16|0;return r=Math.floor(r/16),("x"===t?e:3&e|8).toString(16)})},s.prototype.isV4=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},s.prototype.isValid=function(t){return/^([a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}?)$/i.test(t)},r.uuid=s},{}],11:[function(t,e,r){var i=window._;function n(t,e,r,s){return new o(t,e,r,s)}function o(t,e,r,s){this.parent=t,this.data=e,this.pkField=r,this.parentField=s,this.nodeConstructor=n,this.nodeItemConstructor=n,this.isDirty=!1,this.data[r]||(this.data[r]=null),this.data[s]||(this.data[s]=null),this.parent?this.parent.getId()!==this.data[s]&&(this.data[s]=this.parent.getId(),this.isDirty=!0):this.parent=null,this.children=[],this.getData=function(){return this.data},this.getId=function(){return this.data[r]},this.getParent=function(){return this.parent},this.getRoot=function(){return null===this.parent?this:this.parent.getRoot()},this.removeChild=function(e){if(0<this.children.length){var t=i.findIndex(this.children,function(t){return t.getId()===e});-1<t&&this.children.splice(t,1)}},this.addChild=function(e,t,r){var s=this,n=i.find(this.children,function(t){return t.getId()===e[s.pkField]});return n||(n=this.nodeConstructor(this,e,t||this.pkField,r||this.parentField),this.children.push(n)),n},this.findChild=function(e,r){var s=null;return this.getId()===e?s=this:(r&&0<this.items.length&&i.each(this.items,function(t){if(t.getId()===e)return s=t,!1}),!s&&0<this.children.length&&i.each(this.children,function(t){if(s=t.findChild(e,r))return!1})),s},this.items=[],this.itemOwner=null,this.getItemOwner=function(){return this.itemOwner},this.addItem=function(e,t,r){var s=this,n=i.find(this.items,function(t){return t.getId()===e[s.pkField]});return n||((n=this.nodeItemConstructor(null,e,t,r)).itemOwner=this).items.push(n),n},this.removeItem=function(e){if(0<this.items.length){var t=i.findIndex(this.items,function(t){return t.getId()===e});-1<t&&this.items.splice(t,1)}},this.findItem=function(e){var r=null;return 0<this.items.length&&i.each(this.items,function(t){if(t.getId()===e)return r=t,!1}),!r&&0<this.children.length&&i.each(this.children,function(t){if(r=t.findItem(e))return!1}),r},this.sortChildren=function(e,t){e&&0<this.children.length&&(this.children.sort(e),t||i.each(this.children,function(t){t.sortChildren(e)}))},this.sortItems=function(t,e,r){t&&0<this.items.length&&(this.items.sort(t),e&&i.each(this.items,function(t){r||t.sortChildren(e,r)}))},this.getLevelDeep=function(){var t=0;return this.parent&&(t=1,t+=this.parent.getLevelDeep()),t},this.branchCallFunction=function(t,e,r){e||t&&t(this),this.parent&&this.parent.branchCallfunction(t,e,r),r&&this.itemOwner&&this.itemOwner.branchCallfunction(t,e,r),e&&t&&t(this)},this.branchCallFunctionChildren=function(e,r){e&&e(this),0<this.children.length&&i.each(this.children,function(t){t.branchCallFunctionChildren(e,r)}),r&&0<this.items.length&&i.each(this.items,function(t){t.branchCallFunctionChildren(e,r)})}}e.exports.zzNode=o},{}],12:[function(c,r,t){if("undefined"==typeof jQuery)throw new Error("zazzy-browser's JavaScript requires jQuery. jQuery must be included before zazzy-browser's JavaScript.");if("undefined"==typeof _)throw new Error("zazzy-browser's JavaScript requires lodash. lodash must be included before zazzy-browser's JavaScript.");!function(t,e){if("undefined"!=typeof window)window.zzb=e();else if(void 0!==t)t.zzb=e();else if("function"==typeof define&&define.amd)define(e);else{if("object"!=typeof r||!r.exports)throw new Error("could not locate global cache object in which to create zzb");r.exports=e()}}(this,function(){"use strict";var t=c("./zzNode.js"),e=c("./types.js").types,r=c("./uuid.js").uuid,s=c("./strings.js").strings,n=c("./uib.js").uib,i=c("./forms.js").forms,o=c("./dialogs.js").dialogs,a=c("./perms.js").perms,l=c("./rob.js").rob,u=c("./ajax.js").ajax,d=c("./status.js").status;function p(){}return p.prototype.zzNode=t,p.prototype.types=new e,p.prototype.uuid=new r,p.prototype.strings=new s,p.prototype.uib=new n,p.prototype.forms=new i,p.prototype.dialogs=new o,p.prototype.perms=new a,p.prototype.rob=new l,p.prototype.ajax=new u,p.prototype.status=new d,new p})},{"./ajax.js":1,"./dialogs.js":2,"./forms.js":3,"./perms.js":4,"./rob.js":5,"./status.js":6,"./strings.js":7,"./types.js":8,"./uib.js":9,"./uuid.js":10,"./zzNode.js":11}]},{},[12]);
!function i(o,a,l){function u(e,t){if(!a[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(d)return d(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var n=a[e]={exports:{}};o[e][0].call(n.exports,function(t){return u(o[e][1][t]||t)},n,n.exports,i,o,a,l)}return a[e].exports}for(var d="function"==typeof require&&require,t=0;t<l.length;t++)u(l[t]);return u}({1:[function(t,e,r){var s=window.$;function n(){this.ajax=function(o){return new Promise(function(n,i){s.ajax(o).done(function(t,e,r){if(o.RAWRETURN)return n(t);if(!t)return i(new Error("Data returned is empty when at minimum a status is required"));var s=zzb.rob.newROB();if(r.responseJSON){if(t.redirect&&0<t.redirect.length)return void(window.location.href=t.redirect);t.ISROBERRORS||(t.err?(t.errs=zzb.rob.sanitizeErrors(t.err),t.err=null):t.error?(t.errs=zzb.rob.sanitizeErrors(t.error),t.err=null):t.errs&&(t.errs=zzb.rob.sanitizeErrors(t.errs),t.err=null)),t.ISROBRECS||(t.recs?t.recs=zzb.rob.sanitizeRecords(t.recs):t.rec?(t.recs=zzb.rob.sanitizeRecords(t.rec),t.rec=null):Array.isArray(t.errs)&&0!==t.errs.length||(t.recs=zzb.rob.sanitizeRecords(t))),t.paginate&&(s.paginate=t.paginate),s.errs=t.errs,s.recs=t.recs,s.fields=t.fields,s.listErrs=zzb.rob.toListErrs(s.errs)}else s.recs=[t];n(s)}).fail(function(t,e,r){i(r),!0===o.NOFAILLOG&&console.log(r)})})}}n.prototype.get=function(t){return t.type="GET",t.contentType="application/json; charset=UTF-8",t.data=JSON.stringify(t.data),this.ajax(t)},n.prototype.getJSON=function(t){return t.type="GET",t.dataType="json",t.contentType="application/json; charset=UTF-8",t.data=JSON.stringify(t.data),this.ajax(t)},n.prototype.postJSON=function(t){return t.type="POST",t.dataType="json",t.contentType="application/json; charset=UTF-8",t.data=JSON.stringify(t.data),this.ajax(t)},r.ajax=n},{}],2:[function(t,e,r){var o=window._,a=function(t){this.defaultOptions=a.getDialogDefaults(t),this.defaultOptions.onShow="function"==typeof t.onShow?t.onShow:function(){},this.defaultOptions.onShown="function"==typeof t.onShown?t.onShown:function(){},this.defaultOptions.onHide="function"==typeof t.onHide?t.onHide:function(){},this.defaultOptions.onHidden="function"==typeof t.onHidden?t.onHidden:function(){}};a.getButtonDefaults=function(t){var e={id:null,type:a.TYPE_NONE,label:"",className:"",action:null,isDismiss:!1,isOutline:!1};return zzb.types.isObject(t)?o.merge(e,t):e},a.getDialogDefaults=function(t){var e={id:zzb.uuid.newV4(),type:a.TYPE_NONE,className:"",extraAttributes:"",noFade:!1,title:"",body:"",buttons:[],onShow:null,onShown:null,onHide:null,onHidden:null,doVerticalCenter:!0,doAutoDestroy:!0,underlay:{isOn:!1,id:null,className:"",bg:"#838383",opacity:.5}};return zzb.types.isObject(t)?o.merge(e,t):e},a.BUTTON_CLOSE="button-close",a.BUTTON_OK="button-ok",a.BUTTON_YES="button-yes",a.BUTTON_NO="button-no",a.BUTTON_CANCEL="button-cancel",a.TYPE_NONE="none",a.TYPE_PRIMARY="primary",a.TYPE_SECONDARY="secondary",a.TYPE_SUCCESS="success",a.TYPE_DANGER="danger",a.TYPE_WARNING="warning",a.TYPE_INFO="info",a.TYPE_LIGHT="light",a.TYPE_DARK="dark",a.TYPE_LINK="link",a.getButtonPreset=function(t,e,r){var s=a.getButtonDefaults();switch(s.isDismiss=!0,e===r-1?s.type=a.TYPE_PRIMARY:e===r-2&&(s.type=a.TYPE_SECONDARY),t){case"button-close":s.label="Close";break;case"button-ok":s.label="Ok";break;case"button-accept":s.label="Accept";break;case"button-yes":s.label="Yes";break;case"button-no":s.label="No";break;case"button-cancel":s.label="Cancel";break;default:s=null}return s},a.validateType=function(t){if(!t)return a.TYPE_NONE;switch(t){case a.TYPE_PRIMARY:case a.TYPE_SECONDARY:case a.TYPE_SUCCESS:case a.TYPE_DANGER:case a.TYPE_WARNING:case a.TYPE_INFO:case a.TYPE_LIGHT:case a.TYPE_DARK:case a.TYPE_LINK:return t;default:return a.TYPE_NONE}},a.isTypeNone=function(t){return a.validateType(t)===a.TYPE_NONE},a.prototype.getId=function(){return zzb.types.isNonEmptyString(this.defaultOptions.id)||(this.defaultOptions.id=zzb.uuid.newV4()),this.defaultOptions.id},a.prototype.getClassName=function(){return zzb.types.isNonEmptyString(this.defaultOptions.className)||(this.defaultOptions.className=""),this.defaultOptions.className},a.prototype.getTitle=function(){return zzb.types.isNonEmptyString(this.defaultOptions.title)||(this.defaultOptions.title=""),this.defaultOptions.title},a.prototype.getBody=function(){return zzb.types.isNonEmptyString(this.defaultOptions.body)||(this.defaultOptions.body=""),this.defaultOptions.body},a.prototype.create$Modal=function(){var t=o.merge({id:this.getId(),arialabel:"arialabel"+this.getId(),className:this.getClassName(),title:this.getTitle(),body:this.getBody(),classVerticalCenter:this.defaultOptions.doVerticalCenter?" modal-dialog-centered":"",classModalHeader:""},this.defaultOptions);t.classFade="fade",zzb.types.isBoolean(t.noFade)&&!0===t.noFade&&(t.classFade=""),a.isTypeNone(this.defaultOptions.type)||(t.classModalHeader+=" alert-"+this.defaultOptions.type),zzb.types.isNonEmptyString(t.dataBackdrop)&&(t.extraAttributes+=' data-backdrop="'+t.dataBackdrop+'"'),zzb.types.isBoolean(t.dataKeyboard)&&(t.extraAttributes+=' data-keyboard="'+t.dataKeyboard+'"');var s=$(zzb.strings.format('<div class="modal {classFade} modal-fullscreen {className}" {extraAttributes} id="{id}" tabindex="-1" role="dialog" aria-labelledby="{arialabel}" aria-hidden="true"><div class="modal-dialog{classVerticalCenter}" role="document"><div class="modal-content"><div class="modal-header{classModalHeader}"><h5 class="modal-title" id="{arialabel}">{title}</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body">{body}</div><div class="modal-footer"></div></div></div></div>',t));Array.isArray(this.defaultOptions.buttons)||(this.defaultOptions.buttons=[]);var n=this,i=this.defaultOptions.buttons.length;return o.each(this.defaultOptions.buttons,function(t,e){if(zzb.types.isNonEmptyString(t)&&(t=a.getButtonPreset(t,e,i)),zzb.types.isObject(t)){zzb.types.isNonEmptyString(t.id)||(t.id="button-"+e+"-"+n.getId()),t.isDismiss&&(zzb.types.isFunction(t.action)||(t.action=function(t,e){t.close()}),s.find(".modal-header button.close").attr("aria-label",t.label)),a.isTypeNone(t.type)||(t.isOutline?t.className+=" btn-outline-"+t.type:t.className+=" btn-"+t.type);var r=$(zzb.strings.format('<button id="{id}" type="button" class="btn {className}">{label}</button>',t));r.data("button",t),r.on("click",{dialog:n,$button:r,button:t},function(t){var e=t.data.dialog,r=t.data.$button,s=r.data("button");if("function"==typeof s.action)return s.action.call(r,e,t)}),0<s.find(".modal-footer > button").length?r.insertAfter(s.find(".modal-footer > button").last()):s.find(".modal-footer").append(r)}}),s},a.prototype.open=function(){if(!this.$modal){this.$modal=this.create$Modal();var e=this;this.$modal.on("show.bs.modal",function(t){e.onShow(t)}),this.$modal.on("shown.bs.modal",function(t){e.onShown(t)}),this.$modal.on("hide.bs.modal",function(t){e.onHide(t)}),this.$modal.on("hidden.bs.modal",function(t){e.onHidden(t)})}if(zzb.types.isObject(this.defaultOptions.underlay)&&!0===this.defaultOptions.underlay.isOn){zzb.types.isNonEmptyString(this.defaultOptions.underlay.id)||(this.defaultOptions.underlay.id="zzbModalUnderlay");var t=t=$("#"+this.defaultOptions.underlay.id);if(0===t.length){var r=[];zzb.types.isNonEmptyString(this.defaultOptions.underlay.className)?r.push(' class="'+this.defaultOptions.underlay.className+'"'):(r.push(' style="'),r.push("position:absolute;top:0;left:0;width:100%;height:100%;display:none;"),zzb.types.isNonEmptyString(this.defaultOptions.underlay.bg)&&(r.push("background-color:"+this.defaultOptions.underlay.bg+";"),zzb.types.isNumber(this.defaultOptions.underlay.opacity)&&r.push("opacity:"+this.defaultOptions.underlay.opacity+";")),r.push('"')),$('<div id="'+this.defaultOptions.underlay.id+'" '+r.join("")+"></div>").appendTo("body"),t=$("#"+this.defaultOptions.underlay.id)}t.show()}this.$modal.modal("show"),this.$modal.appendTo("body")},a.prototype.onShow=function(t){this.defaultOptions.onShow(t,this,this.$modal)},a.prototype.onShown=function(t){this.defaultOptions.onShown(t,this,this.$modal)},a.prototype.onHide=function(t){this.defaultOptions.onHide(t,this,this.$modal)},a.prototype.onHidden=function(t){this.defaultOptions.onHidden(t,this,this.$modal),this.defaultOptions.doAutoDestroy&&this.$modal.remove()},a.prototype.close=function(){if(this.$modal.modal("hide"),zzb.types.isObject(this.defaultOptions.underlay)&&!0===this.defaultOptions.underlay.isOn&&zzb.types.isNonEmptyString(this.defaultOptions.underlay.id)){var t=t=$("#"+this.defaultOptions.underlay.id);0<t.length&&t.hide()}},a.prototype.destroy=function(){if(this.$modal.modal("hide"),this.$modal.modal("dispose"),0<$("#"+this.getId()).length&&$("#"+this.getId()).remove(),zzb.types.isObject(this.defaultOptions.underlay)&&!0===this.defaultOptions.underlay.isOn&&zzb.types.isNonEmptyString(this.defaultOptions.underlay.id)){var t=t=$("#"+this.defaultOptions.underlay.id);0<t.length&&t.remove()}this.$modal=null};function s(){}s.prototype.ZazzyDialog=a,s.prototype.modal=function(t){return new a(t)},s.prototype.showMessage=function(t){zzb.dialogs.modal(o.merge({type:a.TYPE_NONE,buttons:[a.BUTTON_OK]},t)).open()},s.prototype.showMessageChoice=function(t){zzb.dialogs.modal(o.merge({type:a.TYPE_NONE,buttons:[a.BUTTON_CANCEL,a.getButtonDefaults({type:a.TYPE_PRIMARY,label:"Accept",action:function(t,e){t.close()}})]},t)).open()},s.prototype.handleError=function(t){if((t=o.merge({log:null,type:a.TYPE_DANGER,title:"",body:'<div class="zzb-dialog-errors">{errors}</div><div class="zzb-dialog-message">{message}</div>',message:"",errs:null,errors:"",buttons:[a.getButtonDefaults({type:a.TYPE_DANGER,label:"Ok",action:function(t,e){t.close()}})]},t)).log&&console.log(t.log),!zzb.types.isNonEmptyString(t.errors)&&zzb.types.isArray(t.errs)){var r=[];o.each(t.errs,function(t,e){t.message&&zzb.types.isNonEmptyString(t.message)&&r.push(zzb.strings.format('<div class="zzb-dialog-error-item">{0}</div>',t.message))}),t.errors=r.join("\n")}t.body=zzb.strings.format(t.body,t),this.showMessage(t)},r.dialogs=s},{}],3:[function(t,e,r){function s(){}var f=window.$,h=window._;s.prototype.displayUIErrors=function(o,t){if(o=h.merge({selector:null,$form:null,selectorField:".zzb-form-field",attrFieldname:"zzb-fieldname",selectorValidateMessage:".zzb-form-field-validate-message",isTooltip:!1,addIsValidCSS:!1,selectorDisplaySystemMessage:".zzb-form-display-system-message",listErrs:null,errs:null,rob:null,fnSystemErrorContent:null,fnDialogSystemErrors:null,fnDialogErrors:null,fnDialogSuccess:null},o),zzb.types.isNonEmptyString(o.selector)&&0<f(o.selector).length&&(o.$form=f(o.selector)),o.$form&&0===o.$form.length)return t&&t(!1,new Error("could not select the form"));var a=null;if(o.listErrs)a=o.listErrs;else if(o.rob&&o.rob.listErrs)a=o.rob.listErrs;else{if(!o.errs)return t&&t(!1,new Error("could not find the list of errors"));a=zzb.rob.toListErrs(o.errs)}function e(){t&&t(!a.hasErrors(),null)}var l="is-valid ",u="is-invalid",d="valid-feedback",p="invalid-feedback";o.isTooltip&&(d="valid-tooltip",p="invalid-tooltip");var c=a.hasFieldErrors();if(o.$form.find(o.selectorField).each(function(t,e){var r=f(e),s=r.attr(o.attrFieldname),n=null;if(zzb.types.isNonEmptyString(s)){c&&h.each(a.fields,function(t){if(t.field===s)return n=t,!1});var i=o.$form.find(o.selectorValidateMessage+"["+o.attrFieldname+"='"+s+"']");i&&0<i.length&&(n?(i.html(n.message),i.addClass(p),i.removeClass(d)):(i.addClass(d),i.removeClass(p)))}n?(r.addClass(u),r.removeClass(l)):(o.addIsValidCSS&&r.addClass(l),r.removeClass(u))}),a.hasSystemErrors()&&o.fnDialogSystemErrors&&zzb.types.isFunction(o.fnDialogSystemErrors))o.fnDialogSystemErrors(zzb.rob.renderListErrs({errs:a.system,format:"html-list"}),function(){e()});else{if(zzb.types.isNonEmptyString(o.selectorDisplaySystemMessage)){var r=o.$form.find(o.selectorDisplaySystemMessage);if(r&&0<r.length&&(r.hide(),r.html(""),a.hasSystemErrors())){var s=zzb.rob.renderListErrs({errs:a.system,format:"html-list"});zzb.types.isNonEmptyString(s)&&(s=o.fnSystemErrorContent&&zzb.types.isFunction(o.fnSystemErrorContent)?o.fnSystemErrorContent(s):"<ul>"+s+"</ul>",r.html(s),r.removeClass(d),r.addClass(p),r.show())}}a.hasErrors()?o.fnDialogErrors&&zzb.types.isFunction(o.fnDialogErrors)?o.fnDialogErrors(function(){e()}):e():o.fnDialogSuccess&&zzb.types.isFunction(o.fnDialogSuccess)?o.fnDialogSuccess(function(){e()}):e()}},r.forms=s},{}],4:[function(t,e,r){function s(){}var o=window._;s.prototype.getPO=function(t,e){var r=t[e];return r||this.getPermObject(e+":")},s.prototype.getPermObjectFromPermkeys=function(t){var s={},n=this;return Array.isArray(t)?o.each(t,function(t){var e=n.getPermObject(t);e.key&&(s[e.key]=e)}):zzb.types.isObject(t)&&o.forOwn(t,function(t,e){var r=null;(r=(t=t||"").indexOf(":")<0?n.getPermObject(e+":"+t):n.getPermObject(t))&&r.key&&(s[r.key]=r)}),s},s.prototype.mergePermkey=function(t,e){if(!e||!zzb.types.isNonEmptyString(e))return t;if(!t||!zzb.types.isNonEmptyString(t))return e;var r=null,s={},n={};if(t.indexOf(":")<=0?(s.key=t.trim(),s.perm=""):(r=t.split(":"),s.key=r[0].trim(),s.perm=r[1].trim().toUpperCase()),e.indexOf(":")<=0?(n.key=e.trim().toUpperCase(),n.perm=""):(r=e.split(":"),n.key=r[0].trim(),n.perm=r[1].trim().toUpperCase()),s.key!==n.key||s.perm===n.perm||0===n.perm.length)return t;if(0===s.key.length)return e;for(var i=0;i<n.perm.length;i++)s.perm.indexOf(n.perm[i])<0&&(s.perm+=n.perm[i]);return s.key+":"+s.perm},s.prototype.getPermObject=function(t,e,r){var s={key:null,perm:null,attr:{},toPermkey:function(){return this.key+":"+this.perm}};if((r||zzb.types.isNonEmptyString(r))&&(t=this.mergePermkey(t,r)),!t||!zzb.types.isNonEmptyString(t))return s.attr=this.getPermAttributes(),s;if(t.indexOf(":")<=0)return s.key=t,s.perm="",s.attr=this.getPermAttributes(),s;var n=t.split(":");if(s.key=n[0],s.perm=n[1],s.perm=s.perm.trim().toUpperCase(),0<s.perm.length&&e&&zzb.types.isNonEmptyString(e)){e=e.trim().toUpperCase();for(var i=s.perm.length-1;0<=i;i--)e.indexOf(s.perm[i])<0&&(s.perm=s.perm.replace(s.perm[i],""))}return s.attr=this.getPermAttributes(s.toPermkey(),e),s};var n=new RegExp("^[CRUDX]*$");s.prototype.getPermAttributes=function(t){var e={canRead:!1,canCreate:!1,canUpdate:!1,canDelete:!1,canExecute:!1};return t&&zzb.types.isNonEmptyString(t)?(0<=t.indexOf(":")&&(t=t.split(":")[1]),0===(t=t.trim().toUpperCase()).length||n.test(t)&&(e.canRead=0<=t.indexOf("C"),e.canCreate=0<=t.indexOf("R"),e.canUpdate=0<=t.indexOf("U"),e.canDelete=0<=t.indexOf("D"),e.canExecute=0<=t.indexOf("X")),e):e},s.prototype.hasMatch=function(t,e){if(!t||!e)return!1;var r=t;if(zzb.types.isNonEmptyString(t)&&(r=this.getPermObject(t)),!zzb.types.isObject(r)||!r.key||!r.perm||0===r.perm.length)return!1;var s=null;if(zzb.types.isNonEmptyString(e))s=this.getPermObject(e);else if(Array.isArray(e)){var n=this;o.each(e,function(t){if(zzb.types.isNonEmptyString(t)&&(t=n.getPermObject(t)),t.key===r.key)return s=t,!1})}else{if(!zzb.types.isObject(e))return!1;if(e.key)s=e;else{if(!e[r.key])return!1;s=zzb.types.isNonEmptyString(e[r.key])?this.getPermObject(r.key+":"+e[r.key]):e[r.key]}}if(!s||!s.key||!s.perm||0===!s.perm.length)return!1;for(var i=0;i<s.perm.length;i++)if(0<=r.perm.indexOf(s.perm[i]))return!0;return!1},r.perms=s},{}],5:[function(t,e,r){function s(){}var i=window._;function n(t){if((t=i.merge({type:"error",message:null,field:"_system",stack:null,isErr:!0,title:null},t)).isErr)switch("warn"===t.type?t.type="warning":"err"===t.type?t.type="error":"emerg"===t.type&&(t.type="emergency"),t.type){case"warning":case"notice":case"info":case"debug":t.isErr=!1;break;default:t.isErr=!0}return t}s.prototype.newROB=function(t){return i.merge({errs:null,recs:[],fields:[],paginate:{page:0,limit:0,count:0},hasErrors:function(){return this.errs&&Array.isArray(this.errs)&&0<this.errs.length},hasFields:function(){return this.fields&&Array.isArray(this.fields)&&0<this.fields.length},hasRecords:function(){return this.recs&&Array.isArray(this.recs)&&0<this.recs.length},isEmpty:function(){return!this.hasRecords()||this.hasRecords()&&null===this.first()},first:function(){return this.recs&&Array.isArray(this.recs)&&0<this.recs.length?this.recs[0]:null},find:function(e,r){var s=null;return i.each(this.recs,function(t){if(t&&zzb.types.isObject(t)&&!Array.isArray(t)&&t[e]===r)return s=t,!1}),s},length:function(){return this.recs&&Array.isArray(this.recs)?this.recs.length:0}},t)},s.prototype.toObject=function(t){if(!t||!Array.isArray(t))return{_system:[t]};var e={};return i.each(t,function(t){t&&(t.field||(t.field="_system"),e[t.field]||(e[t.field]=[]),e[t.field].push(t))}),e};function o(t,e){if(!t)return n();if(zzb.types.isNonEmptyString(t))return n(i.merge({message:t},e));if(!Array.isArray(t)&&zzb.types.isObject(t))return n(t);throw new Error("bad input in createError - unrecognized err datatype")}s.prototype.createError=o,s.prototype.sanitizeErrors=function(t){var e=null;return t&&(Array.isArray(t)?0<t.length&&(e=[],i.each(t,function(t){e.push(o(t))})):e=[o(t)]),e},s.prototype.sanitizeRecords=function(t){return t?Array.isArray(t)?t:[t]:[]},s.prototype.toListErrs=function(t){var e=[],r=[],s=[],n=[];return t&&Array.isArray(t)&&0<t.length&&i.each(t,function(t){!0===t.isErr?"_system"===t.system?r.push(t):zzb.types.isNonEmptyString(t.field)?"_system"===t.field?r.push(t):e.push(t):r.push(t):"_system"===t.system?s.push(t):zzb.types.isNonEmptyString(t.field)?"_system"===t.field?s.push(t):n.push(t):s.push(t)}),{system:r,fields:e,systemMessages:s,fieldMessages:n,hasSystemErrors:function(){return this.system&&0<this.system.length},hasFieldErrors:function(){return this.fields&&0<this.fields.length},combinedErrors:function(){return this.system.concat(this.fields)},hasErrors:function(){return this.hasSystemErrors()||this.hasFieldErrors()},hasSystemMessages:function(){return this.systemMessages&&0<this.systemMessages.length},hasFieldMessages:function(){return this.fieldMessages&&0<this.fieldMessages.length},combinedMessages:function(){return this.systemMessages.concat(this.fieldMessages)},hasMessages:function(){return this.hasSystemMessages()||this.hasFieldMessages()}}},s.prototype.renderListErrs=function(r){r=i.merge({errs:[],format:"text",defaultTitle:"",template:null},r);var s=[];return zzb.types.isArrayHasRecords(r.errs)&&i.each(r.errs,function(t){var e="";zzb.types.isNonEmptyString(r.defaultTitle)?e=r.defaultTitle:zzb.types.isNonEmptyString(t.field)&&(e=t.field),r.template?s.push(zzb.strings.format(r.template,e,t.message)):"html"===r.format||"html-list"===r.format?s.push(zzb.strings.format('<li class="zzb-rob-list-error-item">{0}</li>',t.message)):"html-list-label"===r.format?s.push(zzb.strings.format('<li class="zzb-rob-list-error-item"><span>{0}:</span> {1}</li>',e,t.message)):"label"===r.format?s.push(zzb.strings.format("{0}: {1}",e,t.message)):s.push(zzb.strings.format(t.message))}),s.join("")},r.rob=s},{}],6:[function(t,e,r){function s(){this.zzbStatus=null}var i=window.$,o=window._;s.prototype.get=function(t,e){var r=(t=o.merge({path:window.location.path,role:null})).path===window.location.path&&!t.role;if(r){if(this.zzbStatus)return e&&e(null,this.zzbStatus);var s=null;if("undefined"!=typeof Storage&&sessionStorage.zzbStatus){try{s=JSON.parse(sessionStorage.getItem("zzbStatus"))}catch(t){console.log("unable to parse zzbStatus from sessionStorage: "+t)}if(sessionStorage.setItem("zzbStatus",null),s)return this.zzbStatus=s,e&&e(null,this.zzbStatus)}if(0<i("#zzbStatus").length&&zzb.types.isNonEmptyString(i("#zzbStatus").attr("status"))){try{s=JSON.parse(i("#zzbStatus").attr("status"))}catch(t){console.log("unable to parse zzbStatus from embedded attribute in #zzbStatus: "+t)}if(s)return this.zzbStatus=s,e&&e(null,this.zzbStatus)}}s={user:{isLoggedIn:!1,username:null},page:{path:window.location.pathname}};var n=this;zzb.ajax.postJSON({url:"/zzb/status",data:t}).then(function(t){t.errs?e&&e(t.errs,s):(r&&(n.zzbStatus=t.one()),e&&e(null,t.one()))}).catch(function(t){console.log("failed to retrieve zzbStatus: using defaults"),e&&e(zzb.types.sanitizeErrors(t),s)})},r.status=s},{}],7:[function(t,e,r){function s(){}var n=window._;function d(t){var e=new Error(t);return e.name="ValueError",e}var p;s.prototype.format=(p={},function(t){var a=Array.prototype.slice.call(arguments,1),l=0,u="UNDEFINED";return Array.isArray(a)&&0<a.length&&Array.isArray(a[0])&&(a=a[0].map(function(t){return t})),t.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g,function(t,e,r,s){if(null!=e)return e;var n=r;if(0<n.length){if("IMPLICIT"===u)throw d("cannot switch from implicit to explicit numbering");u="EXPLICIT"}else{if("EXPLICIT"===u)throw d("cannot switch from explicit to implicit numbering");u="IMPLICIT",n=String(l),l+=1}var i=n.split("."),o=(/^\d+$/.test(i[0])?i:["0"].concat(i)).reduce(function(t,r){return t.reduce(function(t,e){return null!=e&&r in Object(e)?["function"==typeof e[r]?e[r]():e[r]]:[]},[])},[a]).reduce(function(t,e){return e},"");if(null==s)return o;if(Object.prototype.hasOwnProperty.call(p,s))return p[s](o);throw d('no transformer named "'+s+'"')})}),s.prototype.formatEmpty=function(t){var r=Array.prototype.slice.call(arguments,1);return Array.isArray(r)?t.replace(/{(\d+)}/g,function(t,e){return void 0!==r[e]?r[e]:""}):t.replace(/{((?:(?=([^{}]+|{{[^}]*}}))\2)*)}/g,function(t,e){return 0<r.length&&r[0][e]?r[0][e]:""})},s.prototype.appendIfMoreThan=function(t,e,r){return t&&t.length>r?t.substring(0,r)+e:t},s.prototype.joinArrToCommas=function(s,n){return s&&Array.isArray(s)&&0!==s.length?s.map(s,function(t,e){var r="";return e<s.index-1&&(r=""),n?t[n]+r:t+r}).join(""):""},s.prototype.toPlural=function(t,e,r){return r=n.merge({forcePlural:!1,suffix:null},r),1!==e&&-1!==e||r.forcePlural?r.suffix?t+r.suffix:t+"s":t},r.strings=s},{}],8:[function(t,e,r){function s(){}s.prototype.escapeJqueryId=function(t,e){return(e=null==e?"#":e)+t.replace(/(:|\.|\[|\]|,)/g,"\\$1")},s.prototype.escapeHtml=function(t){return t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},s.prototype.isArray=function(t){return t&&void 0!==t&&"[object Array]"===Object.prototype.toString.call(t)},s.prototype.isArrayHasRecords=function(t){return this.isArray(t)&&0<t.length},s.prototype.isObject=function(t){return t&&"object"==typeof t},s.prototype.isNumber=function(t){return!isNaN(t-0)&&null!==t&&""!==t&&!1!==t},s.prototype.isNonEmptyString=function(t){return t&&"string"==typeof t&&0<t.trim().length},s.prototype.isEmptyString=function(t){return t&&"string"==typeof t&&0===t.trim().length},s.prototype.isString=function(t){return t&&"string"==typeof t},s.prototype.isFunction=function(t){return t&&"[object Function]"==={}.toString.call(t)},s.prototype.isBoolean=function(t){return"boolean"==typeof t},s.prototype.compare=function(t,e,r){return t===e?0:r?e<t?-1:1:e<t?1:-1},r.types=s},{}],9:[function(t,e,r){function s(){}var n=window._;s.prototype.createPanelGroup=function(t){t=n.merge({id:zzb.uuid.newV4(),classPanelGroup:"",innerHtml:""},t);return zzb.strings.format('<div id="panelGroup_{id}" class="panel-group {classPanelGroup}">{innerHtml}</div>',t)},s.prototype.createPanelBody=function(t){t=n.merge({id:zzb.uuid.newV4(),classPanelBody:"",innerHtml:""},t);return zzb.strings.format('<div id="panelBody_{id}" class="panel-body {classPanelBody}">{innerHtml}</div>',t)},s.prototype.createPanel=function(t){t=n.merge({id:zzb.uuid.newV4(),className:"",attributesExtra:"",classPanelHeading:"",name:"",classPanelBody:"",innerHtml:""},t);var e='<div id="panel_{id}" class="panel panel-default {className}" {attributesExtra}><div class="panel-heading {classPanelHeading}>">{name}</div><div id="panelBody_{id}" class="panel-body {classPanelBody}">'+this.createPanelBody(t)+"</div></div>";return zzb.strings.format(e,t)},s.prototype.createPanelCollapsible=function(t){(t=n.merge({id:zzb.uuid.newV4(),className:"",attributesExtra:"",name:"",classPanelBody:"",innerHtml:"",isPanelCollapsed:!1,classNamePanelCollapsed:"",titleHtmlExtra:"",titleHtmlExtraRight:""},t)).isPanelCollapsed?(t._panelCollapsedClass1="collapsed",t._panelCollapsedClass2=""):(t._panelCollapsedClass1="",t._panelCollapsedClass2="in");var e='<div id="panel_{id}" class="panel panel-default {className}" {attributesExtra}><div class="panel-heading"><h4 class="panel-title">{titleHtmlExtra}<a data-toggle="collapse" data-target="#panelCollapse_{id}" href="#panelCollapse_{id}" class="{_panelCollapsedClass1}{classNamePanelCollapsed}">{name}</a> {titleHtmlExtraRight}</h4></div><div id="panelCollapse_{id}" class="panel-collapse collapse {_panelCollapsedClass2}">'+this.createPanelBody(t)+"</div></div>";return zzb.strings.format(e,t)},s.prototype.createPanelCollapsibleBegin=function(t){(t=n.merge({id:zzb.uuid.newV4(),className:"",attributesExtra:"",name:"",classPanelBody:"",innerHtml:"",isPanelCollapsed:!1,classNamePanelCollapsed:"",titleHtmlExtra:"",titleHtmlExtraRight:""},t)).isPanelCollapsed?(t._panelCollapsedClass1="collapsed",t._panelCollapsedClass2=""):(t._panelCollapsedClass1="",t._panelCollapsedClass2="in");return zzb.strings.format('<div class="panel panel-default {className}" id="panel_{id}" {attributesExtra}><div class="panel-heading"><h4 class="panel-title">{titleHtmlExtra}<a data-toggle="collapse" data-target="#panelCollapse_{id}" href="#panelCollapse_{id}" class="{_panelCollapsedClass1}{classNamePanelCollapsed}">{name}</a> {titleHtmlExtraRight}</h4></div><div id="panelCollapse_{id}" class="panel-collapse collapse {_panelCollapsedClass2}"><div class="panel-body" id="panelBody_{id}">',t)},s.prototype.createPanelCollapsibleEnd=function(){return"</div></div></div>"},r.uib=s},{}],10:[function(t,e,r){function s(){}var n=window._;s.prototype.newV4=function(){var r=n.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(r+n.random(16))%16|0;return r=Math.floor(r/16),("x"===t?e:3&e|8).toString(16)})},s.prototype.isV4=function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},s.prototype.isValid=function(t){return/^([a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}?)$/i.test(t)},r.uuid=s},{}],11:[function(t,e,r){var i=window._;function n(t,e,r,s){return new o(t,e,r,s)}function o(t,e,r,s){this.parent=t,this.data=e,this.pkField=r,this.parentField=s,this.nodeConstructor=n,this.nodeItemConstructor=n,this.isDirty=!1,this.data[r]||(this.data[r]=null),this.data[s]||(this.data[s]=null),this.parent?this.parent.getId()!==this.data[s]&&(this.data[s]=this.parent.getId(),this.isDirty=!0):this.parent=null,this.children=[],this.getData=function(){return this.data},this.getId=function(){return this.data[r]},this.getParent=function(){return this.parent},this.getRoot=function(){return null===this.parent?this:this.parent.getRoot()},this.removeChild=function(e){if(0<this.children.length){var t=i.findIndex(this.children,function(t){return t.getId()===e});-1<t&&this.children.splice(t,1)}},this.addChild=function(e,t,r){var s=this,n=i.find(this.children,function(t){return t.getId()===e[s.pkField]});return n||(n=this.nodeConstructor(this,e,t||this.pkField,r||this.parentField),this.children.push(n)),n},this.findChild=function(e,r){var s=null;return this.getId()===e?s=this:(r&&0<this.items.length&&i.each(this.items,function(t){if(t.getId()===e)return s=t,!1}),!s&&0<this.children.length&&i.each(this.children,function(t){if(s=t.findChild(e,r))return!1})),s},this.items=[],this.itemOwner=null,this.getItemOwner=function(){return this.itemOwner},this.addItem=function(e,t,r){var s=this,n=i.find(this.items,function(t){return t.getId()===e[s.pkField]});return n||((n=this.nodeItemConstructor(null,e,t,r)).itemOwner=this).items.push(n),n},this.removeItem=function(e){if(0<this.items.length){var t=i.findIndex(this.items,function(t){return t.getId()===e});-1<t&&this.items.splice(t,1)}},this.findItem=function(e){var r=null;return 0<this.items.length&&i.each(this.items,function(t){if(t.getId()===e)return r=t,!1}),!r&&0<this.children.length&&i.each(this.children,function(t){if(r=t.findItem(e))return!1}),r},this.sortChildren=function(e,t){e&&0<this.children.length&&(this.children.sort(e),t||i.each(this.children,function(t){t.sortChildren(e)}))},this.sortItems=function(t,e,r){t&&0<this.items.length&&(this.items.sort(t),e&&i.each(this.items,function(t){r||t.sortChildren(e,r)}))},this.getLevelDeep=function(){var t=0;return this.parent&&(t=1,t+=this.parent.getLevelDeep()),t},this.branchCallFunction=function(t,e,r){e||t&&t(this),this.parent&&this.parent.branchCallfunction(t,e,r),r&&this.itemOwner&&this.itemOwner.branchCallfunction(t,e,r),e&&t&&t(this)},this.branchCallFunctionChildren=function(e,r){e&&e(this),0<this.children.length&&i.each(this.children,function(t){t.branchCallFunctionChildren(e,r)}),r&&0<this.items.length&&i.each(this.items,function(t){t.branchCallFunctionChildren(e,r)})}}e.exports.zzNode=o},{}],12:[function(c,r,t){if("undefined"==typeof jQuery)throw new Error("zazzy-browser's JavaScript requires jQuery. jQuery must be included before zazzy-browser's JavaScript.");if("undefined"==typeof _)throw new Error("zazzy-browser's JavaScript requires lodash. lodash must be included before zazzy-browser's JavaScript.");!function(t,e){if("undefined"!=typeof window)window.zzb=e();else if(void 0!==t)t.zzb=e();else if("function"==typeof define&&define.amd)define(e);else{if("object"!=typeof r||!r.exports)throw new Error("could not locate global cache object in which to create zzb");r.exports=e()}}(this,function(){"use strict";var t=c("./zzNode.js"),e=c("./types.js").types,r=c("./uuid.js").uuid,s=c("./strings.js").strings,n=c("./uib.js").uib,i=c("./forms.js").forms,o=c("./dialogs.js").dialogs,a=c("./perms.js").perms,l=c("./rob.js").rob,u=c("./ajax.js").ajax,d=c("./status.js").status;function p(){}return p.prototype.zzNode=t,p.prototype.types=new e,p.prototype.uuid=new r,p.prototype.strings=new s,p.prototype.uib=new n,p.prototype.forms=new i,p.prototype.dialogs=new o,p.prototype.perms=new a,p.prototype.rob=new l,p.prototype.ajax=new u,p.prototype.status=new d,new p})},{"./ajax.js":1,"./dialogs.js":2,"./forms.js":3,"./perms.js":4,"./rob.js":5,"./status.js":6,"./strings.js":7,"./types.js":8,"./uib.js":9,"./uuid.js":10,"./zzNode.js":11}]},{},[12]);
{
"name": "zazzy-browser",
"version": "1.1.26",
"version": "1.1.27",
"description": "A collection of general-purpose browser utilities used as higher-level building-blocks to create Bootstrap v4 websites and assist in client-server communications.",

@@ -5,0 +5,0 @@ "engines": {

@@ -40,3 +40,3 @@ // client only

if (options.$form && options.$form.length === 0) {
if (options.$form || options.$form.length === 0) {
// eslint-disable-next-line standard/no-callback-literal

@@ -43,0 +43,0 @@ return callback && callback(false, new Error('could not select the form'))

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc