diff --git a/public/js/site.js b/public/js/site.js index 0b5fad817..80257daa8 100644 --- a/public/js/site.js +++ b/public/js/site.js @@ -1 +1 @@ -(()=>{var t,n,i={86367:(t,e,n)=>{"use strict";n.d(e,{Z:()=>b});n(69826),n(41539),n(91058),n(39714),n(92222),n(96649),n(96078),n(82526),n(41817),n(9653),n(30489),n(81299),n(12419),n(32165),n(66992),n(78783),n(33948);var i=n(53865),o=n(22092),r=n(19755);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n .select-reveal__instance")),i="";i=void 0!==t.data("reveal_id")?"#".concat(this.input.attr("id"),"_").concat(t.data("reveal_id")):"#".concat(this.input.attr("id"),"_").concat(t.data("value")),n.each((function(t,n){r(n).hide(),e.disableFields(n,!0)})),r(i).show(),this.disableFields(r(i),!1)}},{key:"disableFields",value:function(t,e){var n=r(t).find("input, textarea");e?n.prop("disabled",!0):n.removeAttr("disabled")}},{key:"updateHovered",value:function(t){var e=this.options[this.optionHoveredIndex],n=this.options[t];e&&e.classList.remove(g),n&&n.classList.add(g),this.optionHoveredIndex=t}},{key:"updateChecked",value:function(t){var e=r(t).data("value"),n=r(t).html();this.toggleButton.find("span").html(n),this.toggleButton.find("span").removeClass(v),this.options.removeClass(m),this.options.attr("aria-selected",!1),r(t).addClass(m),r(t).attr("aria-selected",!0),this.optionChecked=e}},{key:"supportKeyboardNavigation",value:function(t){if(40===t.keyCode&&this.optionHoveredIndex0&&(t.preventDefault(),this.updateHovered(this.optionHoveredIndex-1)),13===t.keyCode||32===t.keyCode){t.preventDefault();var e=this.options[this.optionHoveredIndex],n=e&&r(e).data("value");n&&this.input.val(n).trigger("change"),this.handleClose(t)}27===t.keyCode&&this.handleClose(t)}},{key:"resetSelect",value:function(){var t=this.input[0].placeholder;this.toggleButton.find("span").html(t),this.toggleButton.find("span").addClass(v),this.options.removeClass(m),this.options.attr("aria-selected",!1),this.input.removeAttr("value"),this.input.removeAttr("data-restore-value")}}])&&s(e.prototype,n),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.wA);d=y,p=y,(h=f(h="self"))in d?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p;const b=y},80478:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});var i=n(19755),o=n(48764).lW,r=window.do_plot_json=function(t,e){!function(t,e){var n=t.xlabels,o={},r="line"==e.type;o.highlighter={showMarker:r,tooltipContentEditor:function(t,e,n,i){return i._plotData[e][n][1]}};var s=a();e.type in s?o.seriesDefaults=s[e.type]:o.seriesDefaults=s.default,"donut"!=e.type&&"pie"!=e.type&&(o.series=t.labels,o.axes={xaxis:{renderer:i.jqplot.CategoryAxisRenderer,ticks:n,label:e.x_axis_name,labelRenderer:i.jqplot.CanvasAxisLabelRenderer},yaxis:{label:e.y_axis_label,labelRenderer:i.jqplot.CanvasAxisLabelRenderer}},t.options.y_max&&(o.axes.yaxis.max=t.options.y_max),t.options.is_metric&&(o.axes.yaxis.tickOptions={formatString:"%d%"}),o.axesDefaults={tickRenderer:i.jqplot.CanvasAxisTickRenderer,tickOptions:{angle:-30,fontSize:"8pt"}}),o.stackSeries=e.stackseries,o.legend={renderer:i.jqplot.EnhancedLegendRenderer,show:e.showlegend,location:"ne",placement:"inside"},o.grid={background:"#ffffff",shadow:!1},i("[data-chart-id=".concat(e.id,"]")).jqplot(t.points,o)}(t=JSON.parse(o.from(t,"base64")),e=JSON.parse(o.from(e,"base64")))},a=function(){return{bar:{renderer:i.jqplot.BarRenderer,rendererOptions:{shadow:!1,fillToZero:!0,barMinWidth:10},pointLabels:{show:!1,hideZeros:!0}},donut:{renderer:i.jqplot.DonutRenderer,rendererOptions:{sliceMargin:3,showDataLabels:!0,dataLabels:"value",shadow:!1}},pie:{renderer:i.jqplot.PieRenderer,rendererOptions:{showDataLabels:!0,startAngle:-90,dataLabels:"value",shadow:!1}},default:{pointLabels:{show:!1}}}}},38042:(t,e,n)=>{"use strict";n.d(e,{Z:()=>m});n(69826),n(41539),n(39714),n(38862),n(92222),n(30489),n(81299),n(12419),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948);var i=n(53865),o=n(79475);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n0){var e="";c.each(this.frame.error,(function(t,n){e+="
  • ".concat(n,"
  • ")})),t.html("
    ".concat("

    There were problems with the following fields:

    ","
      ").concat(e,"
    ")),t.show(),this.el.animate({scrollTop:t.offset().top},500)}else t.hide()}},{key:"unbindEventHandlers",value:function(t){t.find(".modal-footer .btn").unbind(),t.find("input[required]").unbind(".modalEvent")}},{key:"setNextButtonState",value:function(t){t?(this.frame.buttons.next.removeAttr("disabled"),this.frame.buttons.next.removeClass("btn-disabled"),this.frame.buttons.next.addClass("btn-default")):(this.frame.buttons.next.attr("disabled","disabled"),this.frame.buttons.next.addClass("btn-disabled"),this.frame.buttons.next.removeClass("btn-default"))}},{key:"setInvisibleButtonState",value:function(t){t?this.frame.buttons.invisible.removeClass("btn-invisible"):this.frame.buttons.invisible.addClass("btn-invisible")}},{key:"activateStep",value:function(t){this.el.find(".modal__step").each((function(e,n){c(n).data("step")===t?c(n).addClass("modal__step--active"):c(n).removeClass("modal__step--active")}))}},{key:"handleUpload",value:function(t){var e=this.el.data("config").url,n=this.el.data("config").id,i=this,o=c("body").data("csrf").toString();t.csrf_token=o||"";var r=JSON.stringify(t),a=n?"".concat(e,"/").concat(n):e;c.ajax({method:"POST",contentType:"application/json",url:a,data:r,processData:!1}).done((function(t,e,n){location.reload()})).fail((function(t,e,n){var o=t.responseJSON.message;i.showError(o)}))}},{key:"showError",value:function(t){var e=this.frame.object.find(".alert");e.html("

    Error: ".concat(t,"

    ")),e.show(),this.el.animate({scrollTop:e.offset().top},500)}},{key:"handleNext",value:function(){var t=this.frame.number+1;this.frames.length>=t&&this.activateFrame(t,this.frame.number)}},{key:"handleBack",value:function(){this.frame.back>0&&this.activateFrame(this.frame.back,this.frame.back-1),this.validateFrame()}},{key:"handleSkip",value:function(t){this.activateFrame(t,this.frame.number)}},{key:"handleAdd",value:function(t){o.o.update(t),this.clearFields(t),this.validateFrame()}},{key:"handleActivate",value:function(t,e){this.activateFrame(t,this.frame.number,e)}},{key:"handleShow",value:function(t){c(t).modal("show")}},{key:"handleClear",value:function(t){this.clearFrames(t)}},{key:"handleValidate",value:function(){this.validateFrame()}},{key:"handleClose",value:function(){this.clearFrames(),this.isWizzard&&(this.activateFrame(1,0,!0),this.el.data("config")&&this.el.data("config").id&&(this.el.data("config").id=null)),this.el.unbind("hide.bs.modal hidden.bs.modal"),o.o.unsubscribe(this)}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.wA)},79475:(t,e,n)=>{"use strict";n.d(e,{o:()=>a});n(40561),n(41539),n(54747),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;n{"use strict";n.d(e,{Z:()=>h});n(74916),n(15306),n(41539),n(39714),n(69826),n(23123),n(30489),n(81299),n(12419),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948);var i=n(53865),o=n(42438),r=n(33099),a=n(21526),s=n(19755);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){for(var n=0;n=0&&n.find("."+i).attr("data-actual-height",t.height())}))})),i.remove(),t.attr("data-actual-height")}}},{key:"reInitMoreLess",value:function(){this.clearMoreLess(),this.initMoreLess()}},{key:"clearMoreLess",value:function(){var t=s(this.el);if(t.hasClass("clipped")){var e=t.find(".expandable").html();t.html(e).removeClass("clipped")}}},{key:"initMoreLess",value:function(){var t=s(this.el),e=t.data("column"),n=t.html();if(r.W.addSubscriber(this),t.removeClass("transparent"),!(this.getActualHeight(t)<50)){t.addClass("clipped");var i=s("
    ",{class:"expandable popover column-content card card--secundary",html:n}),l="Show "+e+" ⇒",u=s("