PageSourceSearch

https://getrave.com/static/bundle/commons.bundle.js?version=10.0.hf-product5hf2.100374.0

js getrave.com collected 2026-10-01 11:24:07 UTC 554,504 bytes, 3 lines download raw bytes

1/*! For license information please see commons.bundle.js.LICENSE.txt */
2(self.webpackChunk_rave_alertweb=self.webpackChunk_rave_alertweb||[]).push([[4223],{O3EO:function(e,t,n){"use strict";var i=n("mABH"),o=n("PcWQ"),a=function(){};a.prototype.add=function(e,t,n){e.tooltip("dispose"),i.A.getInstance();var a=o.extend({},{title:function(){return t},delay:500,html:!0,trigger:"hover focus click"},n);e.tooltip(a)},a.prototype.HelpTipTemplate='\n    <div class="tooltip" role="tooltip">\n        <div class="arrow"></div>\n        <div class="tooltip-inner help"></div>\n    </div>',a.prototype.showManually=function(e){e.tooltip("show")},a.prototype.hide=function(e){e.tooltip("hide")},a.prototype.show=function(e){var t=e.target;if(!t.getAttribute("data-tooltip-added")){t.setAttribute("data-tooltip-added",!0);var n={template:this.HelpTipTemplate},i=o(t);this.add(i,t.getAttribute("data-tooltip-content"),n),i.trigger("mouseover")}},a.prototype.destroy=function(e){o(e).tooltip("dispose")},t.A=new a},m4dW:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n("PcWQ");class o{constructor(e,t){if(!e||"INPUT"!==e.nodeName||"checkbox"!==e.type)throw Error('Checkbox needs a parameter of type <INPUT type="checkbox">');const n=i('<div class="radio-btn-wrap rave-checkbox form-inline">\n                    <label class="radio-btn-label">\n                        <input type="checkbox" name="" id="" class="styled-checkbox"/>\n                        <span class="checkbox-custom is-checked"></span>\n                        <div class="radio-btn-rest"> </div>\n                    </label>\n                </div>'),o=i(e);n.insertBefore(o),o.remove();const a=n.find("input");a.attr("name",o.attr("name")),a.attr("id",o.attr("id")),a.attr("value",o.attr("value")),a.addClass(o.attr("class")),o.is(":checked")?(n.find(".checkbox-custom").addClass("is-checked"),a.prop("checked",!0)):(n.find(".checkbox-custom").removeClass("is-checked"),a.prop("checked",!1)),t&&(i(t).remove(),n.find(".radio-btn-rest").append(t)),n.on("click",e=>{if(e.target===i(e.currentTarget).find("input")[0])return;const t=i(e.currentTarget).find(".checkbox-custom"),n=!t.hasClass("is-checked");t.toggleClass("is-checked",n),e.stopPropagation()})}}},ax7N:function(e,t,n){"use strict";var i=n("ZU6F"),o=n("7RMj"),a=n("akzv"),s=n("PcWQ"),r=function(){var e,t=function(e){this.config=e||{},this.editorLoaded=!1};t.prototype.loadEditor=function(e){if(this.editorLoaded)e();else{var t=this;window.CKEDITOR_BASEPATH="/js/libs/ckeditor/",(0,o.loadScript)("/js/libs/ckeditor/ckeditor.js"+a.Ay.raveVersion).done(function(){t.editorLoaded=!0,e()})}},t.prototype.loadEditorAsync=async function(){if(this.editorLoaded)return new Promise(function(e){e()});{const e=this;return window.CKEDITOR_BASEPATH="/js/libs/ckeditor/",new Promise(t=>{(0,o.loadScript)("/js/libs/ckeditor/ckeditor.js"+a.Ay.raveVersion).done(function(){e.editorLoaded=!0,t()})})}},t.prototype.monkeyPatch=function(){CKEDITOR.ui.dialog.file.prototype.getInputElement=function(){try{var e=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return e.$.forms.length>0?new CKEDITOR.dom.element(e.$.forms[0].elements[0]):this.getElement()}catch(e){var t=s("#"+this.domId).find("iframe"),n=s('<iframe src="blank:about"></iframe>');return n.attr("frameborder",t.attr("frameborder")),n.attr("allowtransparency",t.attr("allowtransparency")),n.attr("class",t.attr("class")),n.attr("role",t.attr("role")),n.attr("id",t.attr("id")),t.parent().append(n),t.remove(),this.getElement()}}},t.prototype.addCustomStylesheet=function(e){var t=document.createElement("style");t.appendChild(document.createTextNode("rules")),e.document.$.head.appendChild(t)},t.prototype.lineBreaksTextToHtml=function(e){return e.replace(/\r\n|\r|\n/g,"<br/>")},t.prototype.plainToRichSimple=function(e){return e=this.htmlEscape(e||""),this.simulateCkEditorSetData(this.lineBreaksTextToHtml(e))},t.prototype.simulateCkEditorSetData=function(e){return(e=e||"").includes("<p>")?e:"<p>"+e+"</p>"},t.prototype.convertToHtml=function(e){let t=e;return t=t.replace(/<[^>]*>/g,""),t=t.replace(/\r\n\r\n|\r\r|\n\n/g,"<doubleline>"),t=t.replace(/\r\n|\r|\n/g,"<singleline>"),t=t.replace(/<doubleline>/g,"</p>\n\n<p>"),t=t.replace(/<singleline>/g,"<br />\n"),"<p>"+t+"</p>"},t.prototype.convertToText=function(e){let t=document.createElement("div");return t.innerHTML=e.trim(),t.textContent},t.prototype.richToPlain=function(e,t){void 0===t&&(t=!0);let n=this.stripMarkup(e).trim();return t?this.htmlUnescape(n):n},t.prototype.htmlUnescape=function(e){let t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue},t.prototype.htmlEscape=function(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},t.prototype.stripMarkup=function(e){return e.replace(/<!--.*?-->/gim,"").replace(/<\/li>/gim," </li>").replace(/<(script|style)((\b[^>]*>(.*?)<\/(script|style)>(r)?)|(.*?\/>))/gim,"").replace(/<br[^>]*?>/gim,"").replace(/<[^>]*>/gim,"").replace(/&nbsp;/gim," ").trim()},t.prototype.getPlainText=function(e){var t=e?e.getData():"";return this.stripMarkup(t)},t.prototype.htmlTrim=function(e){var t=s("<div>").html(e),n=t.find("*"),i=n.length,o={};function a(e){var t=e.tagName;if("DIV"===t||"P"===t||"SPAN"===t){var n=e.innerHTML;if(!(n=n.replace(/&nbsp;/g,"").trim()))return!0}return!1}for(let e=0;e<i;e++){if(!a(n[e]))break;o[e]=!0}for(let e=i-1;e>-1;e--){if(!a(n[e]))break;o[e]=!0}return t.find("*").filter(function(e){return o[e]}).remove(),t.html()},t.prototype.editorInit=function(e,t){if(CKEDITOR.plugins.addExternal("autogrow","/includes/js/autogrow/","plugin.js"),t=t||{},CKEDITOR.env.ie&&CKEDITOR.env.version<9&&CKEDITOR.tools.enableHtml5Elements(document),CKEDITOR.config.height=t.height||150,CKEDITOR.config.width=t.width||"auto",CKEDITOR.config.language=a.Ay.region&&a.Ay.language?`${a.Ay.language.toLowerCase()}-${a.Ay.region.toLowerCase()}`:"en",n(t),!Rave.defaults||!Rave.defaults.CKEditorService||!Rave.defaults.CKEditorService.imageUploadUrl)throw Error("CKEditorService: imageUploadUrl not defined");var i=CKEDITOR.replace(e);return null==i||i.once("instanceReady",function(){var e,t,n;let o=null===(e=i.toolbar.filter(e=>"paragraph"===e.name)[0])||void 0===e||null===(t=e.items.filter(e=>"justifycenter"===e.name)[0])||void 0===t||null===(n=t._)||void 0===n?void 0:n.id;
2if(o){let e=i.container.$.querySelector("a#"+o),t=e.onclick;e.onclick=()=>{let e=t();return i.getSelection().getType()===CKEDITOR.SELECTION_ELEMENT&&"IMG"===i.getSelection().getSelectedElement().$.nodeName&&("center"===i.getSelection().getRanges()[0].startContainer.getStyle("text-align")?i.getSelection().getRanges()[0].startContainer.removeStyle("text-align"):i.getSelection().getRanges()[0].startContainer.setStyle("text-align","center"),i.fire("change")),e}}}),i},t.prototype.destroy=function(e){CKEDITOR.instances[e]&&CKEDITOR.instances[e].destroy()},t.prototype.isCkInstanceReady=function(e){return e&&("ready"===e.status||"loaded"===e.status)},t.prototype.disableEditor=function(e,t){if(this.isCkInstanceReady(e))try{e.setReadOnly(t),this.setBackgroundColor(e,t)}catch(e){console.warn("Email editor not ready. Will try again.")}},t.prototype.setBackgroundColor=function(e,t){s(e.document.$).find("body, html").css("backgroundColor",t?"#ccc":"#fff")},t.prototype.setData=function(e,t,n){null==e||e.setData(t,{callback:()=>{e.readOnly&&this.setBackgroundColor(e,!0),n&&n()}})},t.prototype.transformHTMLforEditor=function(e,t){return e.dataProcessor.toDataFormat(t)},t.prototype.validateIlligalCharacters=function(e,t,n,o){var a=(0,i.testForIllegalCharacters_IdentifyOnError)(t,{value:o},n,!1);return a?this.showWarning(e,!0):this.showWarning(e,!1),a},t.prototype.validateIlliegalCharactersWithNoModal=function(e,t,n,o){var a=(0,i.testForIllegalCharacters_IdentifyOnError)(t,{value:o},n,!1);return a?this.showWarning(e,!0):this.showWarning(e,!1),a},t.prototype.showWarning=function(e,t){try{s(e.container.$).toggleClass("textAlertError",t)}catch(e){}};var n=function(e){var t=CKEDITOR.config,n=s("meta[name='_csrf']").attr("th:content");t.fileTools_requestHeaders={"X-CSRF-TOKEN":n},t.imageUploadUrl=Rave.defaults.CKEditorService.imageUploadUrl,t.filebrowserImageUploadUrl=Rave.defaults.CKEditorService.imageUploadUrl,t.extraPlugins="autogrow,uploadimage,notification,colordialog",t.removePlugins="elementspath,resize",t.customConfig="",t.contentsCss=["/includes/css/contents_custom.css"+a.Ay.raveVersion],t.toolbarGroups=[{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"styles",groups:["styles"]},{name:"colors",groups:["colors"]},{name:"editing",groups:["find","selection","spellchecker","editing"]},{name:"paragraph",groups:["list","blocks","align","indent","bidi","paragraph"]},{name:"forms",groups:["forms"]},{name:"links",groups:["links"]},{name:"insert",groups:["insert"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"others",groups:["others"]},{name:"about",groups:["about"]},{name:"document",groups:["mode","document","doctools"]},{name:"tools",groups:["tools"]}],t.removeButtons="Save,NewPage,Preview,Print,Templates,Find,Replace,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,About,ShowBlocks,Strike,Subscript,Superscript,RemoveFormat,Format,Styles,CopyFormatting,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Anchor,Flash,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe",a.Ay.admin||(t.removeButtons+=",Source,Maximize"),t.format_tags="p;h1;h2;h3;pre",t.removeDialogTabs="image:advanced;link:advanced",t.disableNativeSpellChecker=!1,t.image_previewText=" ",t.autoGrow_onStartup=!0,t.autoGrow_minHeight=200,t.autoGrow_maxHeight=1e3,t.linkShowAdvancedTab=!1,t.linkShowTargetTab=!1,t.removeDialogTabs="link:advanced;link:upload;image:Link;image:advanced",r(),e.allowedContent&&(t.allowedContent=e.allowedContent)},r=function(){CKEDITOR.on("dialogDefinition",function(e){var t=e.data.definition,n=e.data.name;if("link"===n){var i=t.getContents("info");i.get("linkType").style="display: none";var o=i.get("protocol");o.items=o.items.filter(function(e){return e[0].startsWith("http://")||e[0].startsWith("https://")}),t.getContents("target").get("linkTargetType").default="_blank"}})};return{instance:function(n){return e||(e=new t(n))},reset(){e=null}}}();t.A=r},"0+ZZ":function(e,t,n){"use strict";var i=n("PcWQ");t.A={store:{},cache:{},clone(e,t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)this.cache[e]=t;else if(Array.isArray(t))this.cache[e]=i.extend(!0,[],t);else{if("object"!=typeof t)throw Error("Trying to cache a js data of unknown type");this.cache[e]=i.extend(!0,{},t)}},restore(e,t){const n=this.cache[e];return null==t?this.cache[e]=null:"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t&&(Array.isArray(t)&&(t.splice(0),this.cache[e].forEach(e
2=>t.push(e))),Object.assign(t,this.cache[e])),delete this.cache[e],n},getCached(e){return this.cache[e]},clear(){Object.keys(this.store).forEach(e=>delete this.store[e])}}},"48N6":function(e,t,n){"use strict";n.r(t),n.d(t,{clearAllClientSideMessages:function(){return h},clearClientSideErrors:function(){return c},clearClientSideNotice:function(){return p},clearClientSideSuccess:function(){return u},clearClientSideWarning:function(){return d},clearSystemSuccess:function(){return l},displayClientSideError:function(){return b},hideAllAlertsOnLoad:function(){return C},scrollToClientSideSuccess:function(){return y},showClientSideError:function(){return v},showClientSideNotice:function(){return m},showClientSideSuccess:function(){return g},showClientSideWarning:function(){return f}});var i=n("7RMj"),o=n("Cpa8"),a=n("PcWQ"),s=["systemWarningMessages","systemSuccessMessages","systemNoticeMessages","clientPlatformOnOffToggle","clientSideSuccessMessages","clientSideWarningMessages","clientSideNoticeMessages"];function r(e){a("#"+e).addClass("hide")}function l(){r("systemSuccessMessages")}function c(){r("clientSideErrorMessages")}function d(){r("clientSideWarningMessages")}function u(){r("clientSideSuccessMessages")}function p(){r("clientSideNoticeMessages")}function h(){p(),u(),d(),c()}function m(e){a("#clientSideNotice").html(o.A.t("common.action.notice")+": "+e),a("#clientSideNoticeMessages").removeClass("hide")}function f(e){a("#clientSideWarning").text(o.A.t("common.action.warning")+": "+e),a("#clientSideWarningMessages").removeClass("hide")}function g(e){a("#systemSuccessMessages").hide(),a("#clientSideSuccess").text(o.A.t("common.success")+": "+e),a("#clientSideSuccessMessages").removeClass("hide")}function v(e){a("#clientSideError").html(o.A.t("common.action.error")+": "+e),a("#clientSideErrorMessages").removeClass("hide"),a("#errorList").hide()}function y(){(0,i.scrollToTop)(a("#clientSideSuccessMessages"))}function b(e){"string"==typeof e&&(e=[e]);const t=a("#errorList");t.empty(),e.forEach(e=>{const n=a("<li></li>");n.text(e),t.append(n)}),a("#errorList, #clientSideErrorMessages").removeClass("hide"),(0,i.scrollToTop)(a("#clientSideErrorMessages"))}function C(){a("#clientSideNoticeMessages").addClass("hidden"),a("#clientSideWarningMessages").addClass("hidden"),a("#clientSideSuccessMessages").addClass("hidden"),a("#clientSideErrorMessages").addClass("hidden"),a("#clientPlatformOnOffToggle").addClass("hidden"),a("#systemNoticeMessages").addClass("hidden"),a("#systemWarningMessages").addClass("hidden"),a("#systemSuccessMessages").addClass("hidden"),a("#systemErrorMessages").addClass("hidden"),a("#adminSystemWarningMessages").addClass("hidden"),a(".profileWarningModule").addClass("hidden"),a("#originalAlertName").addClass("hidden"),a("#trainingModeWarningMessages").addClass("hidden")}document.addEventListener("DOMContentLoaded",()=>{h();for(let e of s){const t=document.querySelector("#"+e+" > a");t&&t.addEventListener("click",r.bind(void 0,e))}},!1)},"2Fom":function(e,t,n){"use strict";var i=n("vjP/"),o=n("2U2a"),a=n("tTGf"),s=n("SrVf");i.Yv.add(o.vlp,o.b6I,o.oMV,o.Rpi,o.pej,o._ur,o.Tip,o.ecg,o.jbh,o.a04,o.kYh,o.SXj,o.fH7,o.WxX,o.rCU,o.UHg,o.$sC,o.tdl,o.Uec,o.vmR,o.GF6,o.Oh6,o.mwg,o.f3N,o.QOm,o.Bib,o.GwW,o.XKU,o.XBh,o.Chb,o.fc6,o.XZv,o.oKu,o.PCw,o.mXe,o.vkE,o.EW_,o.Ugq,o.kZU,o.HJg,o.AfT,o.r5V,o.pOL,o._sz,o.vh1,o.wx0,o.B0C,o.GRb,o.wHw,o.dGG,o.Wul,o.CeG,o.dmS,o.mJD,o.T4q,o.ekQ,o.bY1,o.n6T,o.f9x,o.omj,o.xxn,o.INu,o.AuN,o.TFt,o.ltR,o.zhB,o.iHE,o.KIL,o.SZ5,o.kZq,o.Hzw,o.ywV,o.TH3,o.LUC,o.Zsp,o.GR4,o.Dfk,o.BdD,o.m8z,o.d$A,o.w3s,o.JMs,o.Osl,o.bBc,o.WR_,o.dw1,o.VsA,o.eLu,o.CfV,o.Uz,o.W6R,o.pXz,o.SRz,o.Sfn,o.T4C,o.CZR,o.z$e,o.iN5,o.N6U,o.cW4,o.RUt,o.TGy,o.nSW,o.l5I,o.zm_,o.iyL,o.LBj,o.XWh,o.G06,o.NiD,o.A3e,o.THi,o.Inp,o.HCy,o.DUd,o.KMh,o.vOb,o.LJS,o.KeQ,o.XWX,o.T3b,o.aQl,o.Ux7,o.nBi,o.u4D,o.rWQ,o.c9S,o.wG0,o.URI,o.e4L,o.pvD,o.N0x,o.wY8,o.yqK,o.okg,o.BEE,o.wM0,o.wal,o.ZpR,o.a9Q,o._JS,o.wTi,o.rwq,o.KFW,o.Bed,o.M1V,o.mrs,o.XyR,o.KvI,o.L6J,o.QwY,o.Otu,o.fU5,o.Os8,o.Zix,o.q5A,o.rXm,o.S$_,o.xBV,o.Tu5,o.K$j,o.fmL,o.JmM,o.$Fj,o.gK3,o.W1p,o.e68,o.SGM,o.rQb,o.Q9c,o.fP1,o.Mdh,o.SAk,o.a$r,o.f$h,o.BN$,o.UqJ,o.NCF,o.ApA,o.WV7,o.bDW,o.Wr$,o.V2R,o.PnM,o.miO,o.DqM,o.QEZ,o.xnu,o.AeV,o.g_i,o.fMY,o.kpQ,o.DEr,o.Wzs,o.XkK,o.Edd,o.v3y,o.MgQ,o.fb1,o.w2A,o.woZ,o.GEE,o.s4k,o.KTq,o.Iae,o.YEm,o.a$,o.$3n,o.UMp,o.jBL,o.xCW,o.uqk,o.wFc,o.rOd,o.iAn,o.jTw,o.Xbc,o.ofm,o.Dy7,o.euM,o.dB,o.Ubc,o.tjk,o.DN2,o.wXH,o.SKW,o.QLV,o.I9J,o.Hzh,o.RtX,o._45,o.q6V,o.vl5,o.Uhk,o.ECx,o.vu7,o.Bep,o.TDy,o.ubP,o.I$7,o.lpu,o.vdI,o.azE,o.tZ0,o.HXy,o.q9p,o.$P6,o.Q9Y,o.gr3,o.rMD,o.lHL,o.WAi,o.M$o,o.DUZ,o.jPR,o.f$3,o.QSE,o.$O8,o.Vtz,o._X3,o.$4E,o.K1P,o.zTK,o.br3,o.kwR,o.IS_,o.GC3,o.hem,o.GGN,o.ArK,o.jmm,o.rhC,o.euE,o.zLo,o.Vpi,o.msb,o.n9h,o.UsO,o.Efu,o.xRw,o.JVZ,o.RVf,o.AX5,o.cbP,o.VwO,o.MT7,o.njF,o.vHW,o.mQl,o.vaG,o.uNk,o.OgW,o.v2,o.IP$,o.s5m,o.rLL,o._qq,o.bxP,o.tUE,o.YYJ,o.oZK,o.vQu,o.wUg,o.pGo,o.NPP,o.vMs,o.AaJ,o._yr,o.lRq,o.pS3,o.jC5,o.k6j,o.v2M,o.byU,o.x$_,o.gZX,o.pKh,o.YX3,o.A4h,o.h8M,o.oHY,o.qe6,o.yZV,o.ruc,o.Eur,o.fny,o.FT3,o.xdS,o.JQR,o.ojY,o.M08,o.O_q,o._dY,o.zkx,o.UP,o.n$V,o.W1P,o.OxR,o.lQJ,o.mRM,o.kNw,o.vo8,o.Ajo,o.s6x,o.o9H,o.rIc,o.ao0,o.Uj9,o.jrc,o.aqW,o.mGM,o.luG,o.vFJ,o.Uzu,o.wB1,o.U7U,o.Rbk,o.pnh,o.R70,o.U31,o.C97,o.c_y,o.VmC,o.yQA,o.eST,o.XIx,o.RDv,o.K1h,o.Dn6,o.tx8,o.w5M,o.c7N,o.uUT,o.zxN,o.eG7,o.vg9,o.JEh,o.JUx,o.D9e,o.Lp0,o.QPp,o.jr8,o.qyE,o.A8r,o.PBr,o.EdY,o.QcR,o.BsH,o.STm,o.csg,o.JN2,o._fF,o.Z8x,o.E3j,o.CYF,o.MBK,o.AmE,o.Per,o.qcK,o.KEd,o.jGF,o._gR,o.WoM,o.Int,o.gB2,o.Y93,o.v02,o.vNp,o.woh,o.JcE,o.un4,o.AoE,o.pXE,o.TuH,o.etS,o.lSN,o.CI$,o.cKG,o.UKC,o.Cyq,o.yvG,o.Up0,o.jAr,o.A$W,o.WVH,o.wod,o.ntT,o.ktq,o.iW_,o.DAP,o.UP$,o.SIw,o.yU5,o.bMg,o.Lhe,o.OXV,o.mh,o.YBv,o.YHM,o.U1s,o.t1k,o.GdE,o.rro,o.RvJ,o.erI,o.O0T,o.rC2,o.CQO,o.Lmg,o.ITF,o.hhY,o.Tsj,o.pch,o.agC,o.DW4,o.LgV,o.pNp,o.Aih,o.ejj,o.Piq,o.M9Z,o.Dg7,o.zsT,o.cU$,o.ltm,o.AWu,o.Ra3,o.oW3,o.iwd,o.nET,o.I6g,o.rDZ,o.e5w,o.sFQ,o.RUA,o.knH,o.fLd,o.a_9,o.lym,o.v2z,o.hWH,o.O9M,o.s_F,o.Dxf,o.YSV,o.A54,o.rOq,o.$zK,o.EZy,o.Ip$,o.Evd,o.Z1g,o.xbI,o.GrJ,o.XRN,o.J0B,o.Yzi,o.d0D,o.iy8,o.PJS,o.PzQ,o.ii0,o.XaT,o.vYM,o.bG5,o.UPF,o.cWs,o.Rvk,o.TQf,o.FC0,o._eQ,o.fyG,o.K3L,o.DLS,o.isI,o.WMI,o.EDt,o.qZX,o.R9T,o.G1Y,o.SVv,o.GY1,o.hpd,o.G7W,o.iUr,o.zLW,o.cNj,o.QTK,o.wcF,o.Bi7,o.KoH,o.tJU,o.MzA,o.KKr,o.a6c,o.Jo,o.Xe4,o.WJz,o.I46,o.Qz3,o.w8F,o.pQM,o.ijD,o.e74,o.QtJ,o.QLR,o.GU8,o.l1B,o.CHJ,o.uaS,o._bB,o.eh1,o.Vjz,o.enb,o.sv0,o.LAV,o.JxU,o.o4J,o._Xl,o.Yop,o.EvL,o.Rv3,o.FvW,o.$7g,o.oE6,o.Bcj,o.WER,o.fKj,o._VX,o.gaH,o.Cpz,o.v3E,o.yek,o.dLQ,o.kvw,o.VH5,o.O9b,o.Ppu,o.Qoo,o.Eze,o.Jlc,o.Uw9,o.RY_,o.KQC,o.cOs,o.KMJ,o.TBz,o.eGu,o.JLp,o.f6_,o.iM3,o.hSh,o.kGH,o.j0V,o.f3I,o.K2K,o.MjD,o.YBE,o.KmH,o.DJx,o.D6w,o.t5Z,o.cGd,o.QOt,o.hO,o.gnH,o.JZj,o.V2x,o.imB,o.R1H,o._d0,o.WWd,o.tEm,o.qj_,o.wsI,o._Ro,o.mlZ,o.vNh,o.nD,o.Kh_,o.rhE,o.dV$,o.dbg,o.GxD,o.M1s,o.FFg,o.wQq,o.XTN,o.K0N,o.TAM,o.Qpm,o.Q3O,o.sw8,o.Wkq,o.OM7,o.gjH,o.H98,o.YpS,o.TJL,o.Ync,o.nkA,o.MiF,o.Dvs,o.JPZ,o.f5I,o.sqy,o.Nfw,o.WPY,o.yy,o.XFB,o.NcW,o.L4I,o.BxI,o.jrv,o.jyJ,o.APi,o.SG1,o.nwU,o.yLE,o.$6A,o.$TY,o.VoM,o.Rwe,o.oMq,o.sxe,o.VNe,o.OtC,o.ZQ8,o.w97,o.PyV,o.w7B,o.DIx,o.bA2,o.q5J,o.GNt,o.xYH,o.cWh,o.xiI,o._2z,o.DX_,o.A9o,o.AgW,o.EvH,o.KR8,o.MNM,o.S_v,o.$fY,o.UTC,o.l9V,o.s7H,o.GgG,o.SC4,o.rlR,o.Rog,o.sfq,o.KQh,o.lS9,o.Wcv,o.vJC,o.ycA,o.Fny,o.GRI,o.ECt,o.Fgt,o.s0Q,o.Xnr,o.hG5,o.tKC,o.npb,o.jID,o.UGf,o.bO8,o.YWI,o.yLS,o.BeE,o.aGl,o.tLM,o.CKr,o.iHh,o.NMy,o.raf,o.OFt,o.NRt,o.ZMv,o.rnd,o.RP$,o.vAn,o.UoT,o.kSO,o.eaI,o.chs,o.U23,o.doH,o.jUV,o.QnR,o.vev,o.KKb,o.HEq,o.kVf,o.rw9,o.e9J,o.VFr,o.EeG,o.nWR,o.LkM,o.XK8,o.gdJ,o.Q4F,o.nU$,o.dD$,o.VNx,o.ImM,o.jrx,o.uMp,o.FsV,o.a2R,o.vtF,o.n2W,o.XYj,o.uOS,o.PRH,o.Cx5,o.PKk,o.tJ_,o.jY_,o.D_b,o.Eox,o.iTS,o.S6c,o.GKc,o.gK5,o.BwJ,o.u0F,o.CXA,o.IjD,o._vK,o.umU,o.aFw,o.jAW,o.JKM,o.h6r,o.GIS,o.zPk),i.Yv.add(a.GEE,a.pS3,a.k6j,a.KmH,a.YBE,a.tUE,a.SGM,a.Nfw),i.Yv.add(s.hHK,s.buz,s.k$s,s.vzR,s.QKf,s.AHs,s.nyQ,s.Y3c,s.SdE,s.p_V,s.VL8,s.F8J,s.IXf,s.cq6,s.GMH,s.$5D,s.yKf,s.qKs,s.KLg,s.UMI,s.Kn7,s.cnf,s.aOD,s.s18,s.xK$,
2s.aDo,s.EDg,s.ja6,s.pfo,s.J8x,s.Uoz,s.ity,s.$IF,s.J60,s.CNb,s.Gyb,s.gmJ,s.Exd,s.fyU,s.ANA,s.Y4b,s.EhK,s.FKg,s.em0,s.RnD,s.tm$,s.lov,s.CVd,s.p0l,s.hX3,s.D2A,s.M7Y,s.EKY,s.n$V,s.cB_,s.Teq,s.IHx,s.g25,s.DQs,s.wfE,s.HdV,s.vdQ,s.Yxq,s.Tel,s.nxV,s.Fh0,s.lyh,s.dck,s.zaH,s.sxt,s.uEP,s.LxG,s.y3H,s._2G,s.$rQ,s.l6c,s._yG,s.Bqu,s.m1U,s.xG$,s.mhH,s.A6U,s.yqR,s.VuJ,s.RIr,s.Zoq,s.$2G,s._Gs,s.Z9I,s.Zpd,s.Lbx,s.ds,s.gLS,s.aUl,s.Kjv,s.LA0,s.Dg6,s.lCt,s.oIz,s.Vy,s.zMR,s.ZKg,s.F_$,s.QVq,s.xX4,s.G7d,s.dK_,s.OA2,s.EJ$,s.n_X,s.vME,s.H8o,s.owy,s.DUV,s.KbL,s.SLi,s.wQe,s._gr,s.xf3,s.Vz1,s.ccf,s.KQs,s.IiH,s.rYY,s.vgA,s.fLh,s.kIx,s.OiW,s.GTO,s.tJC,s.FjH,s.xG9,s.JYj,s.JDj,s.YV_,s.O2J,s.y9h,s.pZ8,s.uLu,s.kTC,s.elu,s.aQb,s.NeR,s.cik,s.YG8,s.$DF,s.L$o,s.YJ6,s.wr1,s.Y5v,s.j2,s.gJ6,s.QV6,s.ybi,s.og0,s.SR2,s.Cjy,s.SYk,s.yn3,s.DlM,s.wjc,s.hz0,s.gRe,s.R0y,s.KJi,s.rtF,s.cK2,s.u6w,s.tUq,s.hmD,s.sO_,s.t7R,s.btD,s.C$0,s.IAJ,s.B_4,s.hXb,s.M_V,s.Bsn,s.blW,s.Z2v,s.azz,s.T03,s.MEX,s.EJB,s.Q2d,s.uu9,s.w2m,s.$cv,s.c,s.A3,s.kKh,s.lfW,s.U94,s._xH,s.lSG,s.RSX,s.HxY,s.Lxo,s.Kf,s.cm9,s.$Rg,s.nyG,s.INO,s.xQb,s.xuk,s.QGh,s.Oe8,s.tiM,s.Btl,s.Eol,s.PMi,s.TN_,s.Ouy,s.qwR,s.TWc,s.JC0,s.ise,s.arX,s.O$9,s.BeC,s.QK7,s.O9i,s.BYe,s.ar7,s.QWc,s.dIS,s.omR,s.RAD,s.zk,s._Rc,s.Oy,s.rev,s.onr,s.jO6,s.LU7,s.R4S,s.M4Y,s.Mto,s.DSw,s.wgh,s.J26,s.Cks,s.kyA,s.N$i,s.NEH,s.HYz,s.BbU,s.e0W,s.ZU0,s.kKM,s.Yqj,s.KDY,s.sdk,s._X9,s.qu9,s.U$,s.wxb,s.kUS,s.v9C,s.HhR,s.YNY,s.bc4,s.QEP,s.lsb,s.WBX,s.w5p,s.Gi,s.PEU,s.OwJ,s.ahN,s.N9_,s.pw7,s.yFx,s.X4E,s.QuN,s.cKb,s.pOn,s.fCj,s.NFJ,s.htK,s.jcG,s.G5g,s.uz6,s.SBT,s.LXe,s.Zhe,s.HQ1,s.eMj,s.NLt,s.b2g,s.Kmk,s.wgI,s.RMr,s.I1p,s.YIk,s.v$8,s.nkp,s.Zcq,s.Y$4,s.RDK,s.OP,s.Uzf,s.vYD,s.CDg,s.snx,s.b82,s.AyP,s.ltK,s.g5c,s.oSu,s.EYA,s.Ve,s.K8o,s.y0K,s.tQI,s.naC,s.n7_,s.tIM,s.WKh,s.kEL,s.PJF,s.s5V,s.t7A,s.fXb,s.aaw,s.Zy9,s.VPt,s.ka4,s.EtG,s.B4m,s.II3),i.tT.watch()},e1No:function(e,t,n){"use strict";n.d(t,{A:function(){return a},l:function(){return s}});var i=n("PcWQ"),o=n.n(i);function a(e,t){var n=o()("html"),i=o()("body");if("string"!=typeof e||""===e)throw"A valid fontName is required. fontName must be a string and must not be an empty string.";var a={font:e,fontClass:e.toLowerCase().replace(/\s/g,""),success:function(){},failure:function(){},testFont:"Courier New",testString:"QW@HhsXJ",glyphs:"",delay:50,timeOut:1e3,callback:o().noop},s=o().extend(a,t),r=o()("<span>"+s.testString+s.glyphs+"</span>").css("position","absolute").css("top","-9999px").css("left","-9999px").css("visibility","hidden").css("fontFamily",s.testFont).css("fontSize","250px");i.append(r);var l=r.outerWidth();r.css("fontFamily",s.font+","+s.testFont);var c=function(){var e=r.outerWidth();l!==e?(s.callback(),n.addClass(s.fontClass),s&&s.success&&s.success(),r.remove()):s.timeOut<0?(n.addClass("no-"+s.fontClass),s&&s.failure&&s.failure(),s.callback(new Error("FontSpy timeout")),r.remove()):(setTimeout(c,s.delay),s.timeOut=s.timeOut-s.delay)};c()}var s=function(){return!!/MSIE 10/i.test(navigator.userAgent)||(!(!/MSIE 9/i.test(navigator.userAgent)&&!/rv:11.0/i.test(navigator.userAgent))||(!!/Edge\/\d./i.test(navigator.userAgent)||void 0))};o()(document).ready(function(){s()&&a("fontello",{glyphs:"\ue817\ue818\ue819\u2714\u2716\u21e7\u270e",failure:function(){o()("body").addClass("no-fontello")},timeout:500})})},"6tdQ":function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n("Cpa8");async function o(e){return function(e){return n("Kfzd")(`./${e}.js`).then(e=>e).catch(()=>{throw Error("error loading lang file.")})}(e).then(e=>(e.default.forEach(e=>{i.A.add(e)}),e.default))}},o9Et:function(e,t,n){"use strict";n.d(t,{A:function(){return Ge}});var i=n("+cQT"),o=n.n(i),a=(n("BP8U"),n("XfKG"),n("fN96"),n("7h0T"),n("INYr"),n("9GYK"),n("PcWQ")),s=n("PcWQ");if(window.unescape=window.unescape||window.decodeURI,"function"!=typeof window.CustomEvent){var r=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};r.prototype=window.Event.prototype,window.CustomEvent=r}"function"!=typeof Object.assign&&(Object.assign=Object.assign),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],o=0;o<n;){var a=t[o];if(e.call(i,a,o,t))return a;o++}}}),void 0===Number.parseInt&&(Number.parseInt=Number.parseInt),Number.prototype.pad||(Number.prototype.pad=function(e){for(var t=String(this);t.length<(e||2);)t="0"+t;return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substring(t,t+e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),null==Element.prototype.getAttributeNames&&(Element.prototype.getAttributeNames=function(){const e=this.attributes,t=e.length,n=new Array(t);for(let i=0;i<t;i++)n[i]=e[i].name;return n}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(e){Object.prototype.hasOwnProperty.call(e,"remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})});var l=function(e,t){var n=t;if(t){if(t)return""}else{if(null===this||0===this.length)return"";n=this}return e>0?n.substring(0,1).toUpperCase()+n.substring(1):n.substring(0,1).toLowerCase()+n.substring(1)};if(String.prototype.capitalize||(String.prototype.capitalize=function(e){return l.call(this,1,e)}),String.prototype.uncapitalize||(String.prototype.uncapitalize=function(e){return l.call(this,-1,e)}),!window.console){var c=function(){};window.console={log:c,error:c,debug:c,info:c,warn:c,trace:c}}window.console.debug||(window.console.debug=window.console.log);const d={};if(["block","flex","none","inline","inline-block","inline-flex","table","table-cell"].forEach(e
2=>{d["d-sm-"+e]=!0,d["d-md-"+e]=!0,d["d-lg-"+e]=!0}),a&&s){const e=s.fn.hide;s.fn.hide=function(t){let n=null;t&&(n=this.each(function(){const e=[],t=s(this);t.attr("class").split(/\s+/).forEach(t=>{d[t]&&e.push(t)}),e.length&&(t.removeClass(e),t.attr("bootstrap-display-classes",e))}));return e.apply(n||this,arguments)};const t=s.fn.show;s.fn.show=function(){let e=this.each(function(){const e=s(this),t=e.attr("bootstrap-display-classes");t&&(e.addClass(t),e.removeAttr("bootstrap-display-classes"))});return t.apply(e,arguments)}}var u={},p=function(e){if(!u[e]){var t,n;if(arguments.length>1&&(n=Array.prototype.slice.call(arguments,1)),Rave[e]&&Rave[e].instance)t=Rave[e].instance.apply(Rave[e],n);else{if(!Rave[e]||"function"!=typeof Rave[e])throw Error("service ["+e+"] is not declared.");t=new Rave[e].apply(Rave[e],n)}return u[e]=t,t}return u[e]},h={getListPickerService:function(e){return p("ListPickerService",e)},getCapNotificationService:function(e){return p("CapNotificationService",e)},getAlertSummaryService:function(e){return p("AlertSummaryService",e)}},m=n("vV2i"),f=n("9oYx"),g=n("PcWQ"),v={init:function(e){var t=this;this.config=e||{},this.modal=new m.default({payload:g("#_raveTimeoutModal"),className:"modal-size-350",messageType:m.default.MessageType.DIRE_WARNING}),this.errorModal=new m.default({payload:g("#_raveTimeoutModalFailed"),className:"modal-size-350",messageType:m.default.MessageType.DIRE_WARNING});var n={idleAfter:e.idleAfter,pollingInterval:e.pollingInterval,warningLength:e.warningLength,keepAliveURL:e.keepAliveUrl,serverResponseOk:"OK",serverResponseExpired:"EXPIRED",titleMessage:"Warning: %s minutes until log out | ",AJAXTimeout:0,failedRequests:5,cacheBust:function(){return"?q="+Date.now()},onTimeout:function(){t.doLogout("TIMED_OUT")},onIdle:function(){t.showTimeoutModal()},onCountdown:function(e){var n=Math.ceil(e/60);t.modal.container.find(".rave-modal-ticker").html(n)},onResume:function(){g.ajax({url:t.config.keepAliveUrl+"?cmd=KEEP_WORKING",complete:function(){}}).fail(function(){t.showErrorModal()}).done(function(e){e.msg!==n.serverResponseOk&&(t.showErrorModal(),n.onTimeout())}),t.modal.close()},justCheckSession:function(){g.ajax({url:t.config.keepAliveUrl+"?cmd=KEEP_WORKING",complete:function(){}}).fail(function(){t.showErrorModal()}).done(function(e){e.msg!==n.serverResponseOk&&(t.showErrorModal(),n.onTimeout())})},onAbort:function(){t.showErrorModal()}};this.idleTimeout=g.idleTimeout("body","#btnTimeoutContinueWorking, #_raveTimeoutCancel",n)},showErrorModal:function(){this.errorModal.open(),this.errorModal.background[0].classList.add("session-timeout"),this.errorModal.container[0].classList.add("session-timeout")},showTimeoutModal:function(){this.modal.open(),this.modal.background[0].classList.add("session-timeout"),this.modal.container[0].classList.add("session-timeout")},dismissErrorModal:function(){this.errorModal.close()},stopTimer:function(){this.idleTimeout._unbind()},logout:function(){this.doLogout("LOGOUT")},doLogout:function(e){g.ajax({url:this.config.keepAliveUrl+"?cmd="+e,complete:function(){sessionStorage.clear()}}),setTimeout(function(){(new f.A).changeLocation("/logout.action")},50)}},y=n("7RMj"),b=n("O3EO"),C=n("mABH"),_=(n("SYky"),n("PcWQ")),w=function(e,t){this.$el=_(e),this.htmlContent=t,this.tooltipManager=C.A.getInstance()};w.prototype.add=function(){var e=this;return this.$el.popover({content:function(){return e.htmlContent},template:this.template,html:!0,trigger:"click",container:"body",placement:"bottom"}),this},w.prototype.destroy=function(){this.$el.popover("dispose")},w.prototype.show=function(){this.$el.popover("show")},w.prototype.template='\n    <div class="popover" role="tooltip">\n        <div class="arrow"></div>\n        <h3 class="popover-header"></h3>\n        <div class="popover-body p-x-0"></div>\n    </div>';var E=w,A=n("Cpa8"),S=n("47BN"),x=n("w5zF"),T=n("PcWQ"),M=function(){var e=this;this.items={},T("HTML").on("click",function(t){Object.keys(e.items).forEach(function(n){var i=e.items[n];0===T(t.target).closest(i.item).length&&(i.item.removeClass(i.toggleClass),delete e.items[n])})})};M.prototype.register=function(e,t,n){this.items[e]?delete this.items[e]:this.items[e]={item:T(t),toggleClass:n}},M.prototype.collapseAllButMe=function(e){var t=this;
2Object.keys(this.items).forEach(function(n){if(n!==e){const e=t.items[n];e.item.removeClass(e.toggleClass),delete t.items[n]}})},M.prototype.clear=function(){this.items={}};var L=new M,O=n("UDvT"),k=n("4Ugr");function I(){}I.prototype.on=function(e,t){return this._collection=this._collection||{},this._collection[e]=this._collection[e]||[],this._collection[e].push(t),this},I.prototype.once=function(e,t){var n=this;function i(){n.off(e,i),t.apply(this,arguments)}return i.listener=t,this.on(e,i),this},I.prototype.off=function(e,t){var n=this._collection&&this._collection[e],i=0;if(void 0!==n){for(;i<n.length;i+=1)if(n[i]===t||n[i].listener===t){n.splice(i,1);break}0===n.length&&this.removeAllListeners(e)}return this},I.prototype.removeAllListeners=function(e){return this._collection=this._collection||{},delete this._collection[e],this},I.prototype.listeners=function(e){return this._collection=this._collection||{},this._collection[e]},I.prototype.emit=function(){if(void 0===this._collection)return this;var e,t=[].slice.call(arguments,0),n=t.shift(),i=this._collection[n],o=0;if(i)for(e=(i=i.slice(0)).length;o<e;o+=1)i[o].apply(this,t);return this};var P=I,N=new I,R=n("+R3k"),D=n("PcWQ"),B=function(e){this.tableRef=e.tableRef,"string"==typeof this.tableRef?this.tableRef.startsWith("#")?this.tableEl=D(this.tableRef):this.tableEl=D("#"+this.tableRef):this.tableEl=this.tableRef,this.onExpand=e.onExpand,this.onCollapse=e.onCollapse};B.ICONS={UP:"/images/arrow_up.gif",DOWN:"/images/arrow_down.gif"},B.prototype.init=function(){var e=this;return this.triggerRows=this.tableEl.find("tr.row-expandable, tr[row-expandable]"),this.triggerRows.each(function(){new R.A({rowEl:this,onExpand:e.onExpand,onCollapse:e.onCollapse})}),this},B.prototype.getExpanderRow=function(e){return D(e).next()},B.prototype.removeRow=function(e){var t=D(e).next();e.off("click"),t.remove()},B.prototype.destroy=function(){this.triggerRows.off("click")};var F=B,U=n("nQlO"),$=n("EIuQ"),W=n("xEXe"),V=n("e1No"),H=n("woUU"),j=n("EMDz"),K=n("cpVg"),G=n("0+ZZ"),z=n("PcWQ"),q={select2AlertModeIconRenderer:function(e,t){var n="",i=[];e.item&&(e.item.text&&i.push("text"),e.item.email&&i.push("email"),e.item.voice&&i.push("voice"),e.item.rss&&i.push("rss"),e.item.alertus&&i.push("alertus"),e.item.twitter&&i.push("twitter"),e.item.facebook&&i.push("facebook"),e.item.desktop&&i.push("desktop"),e.item.cap&&i.push("cap"),e.item.ipaws&&i.push("ipaws"),e.item.guardian&&i.push("guardian"),e.item.mysmartapp&&i.push("mysmartapp"),n='<b class="icon-'+e.item.icon+'"></b>');var o="";return i.forEach(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);o+='<i class="p-r icon-'+e+'" title="'+t+'"></i>'}),z(t).addClass("bootstrap3"),z(`<div class="w-fit">\n                    <div class="s-tpl-name s-tpl-adjusted">${n}${e.text}</div>\n                    <div class="s-tpl-modes">${o}</div>\n                 </div>`)}},X=n("lJwB"),J=n("CIKd"),Y=n("wqex"),Q=n("fz80"),Z=n("87Il"),ee=n("WRXa"),te=n("astW"),ne={name:"Popper",props:{popperData:{type:Object,required:!1},renderFn:{type:Function,required:!0}},beforeDestroy(){this.popper&&this.popper.destroy()},methods:{createPopper(e){this.popover||(this.popover=new E(e,this.renderFn(this.popperData)),this.popover.add(),this.popover.show())}}},ie=n("KHd+"),oe=(0,ie.A)(ne,function(){var e=this;return(0,e._self._c)("span",{on:{click:function(t){return e.createPopper(t.target)}}},[e._t("default")],2)},[],!1,null,null,null).exports,ae=n("PcWQ");const se="raveHotKey_search_term_result";var re={name:"QuickSwitchModal",extends:te.A,components:{Popper:oe},data(){return{searchTerm:"".toUpperCase(),results:{headers:[],rows:[],domainIdUsed:null},domainId:this.modalData.config.domainId,uiRefreshEnabled:document.body.classList.contains("ui-refresh-enabled")}},created(){this.serviceBase=new f.A,this.voiceActivated=this.modalData.voiceActivated},mounted(){this._addModalListeners();const e=this.serviceBase.getFromLocalStorage(se);e&&this.search(e)},computed:{searchReady(){return this.searchTerm.trim().length>0}},methods:{searchTermEntered(){this.recognition&&this.recognition.stop()},speechToJunk(){this.voiceActivated&&(window.SpeechRecognition||window.webkitSpeechRecognition)&&(this.recognition=window.SpeechRecognition?new SpeechRecognition:new webkitSpeechRecognition,this.recognition.start(),this.recognition.onspeechend=()=>{this.recognition.stop()},this.recognition.onresult=e=>{let t=e.results[e.results.length-1][0].transcript;t&&(this.searchTerm=t)})},search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.searchTerm;this._removePopovers(),ae.ajax({url:"/raveConsole/hotkeys/siteSearch.action",method:"GET",dataType:"json",cache:!1,data:{q:e}}).done(t=>{var n;const i=(null===(n=t.results)||void 0===n?void 0:n.length)>0?e:null;this.serviceBase.putToLocalStorage(se,i),this.results.headers=t.headers,this.results.rows=t.results}).fail(()=>{Rave.modalService.makeGeneric({header:"Quick Switch",message:"Search Failed",confirmButtonLabel:"OK",messageType:m.default.MessageType.DIRE_WARNING}).open()})},renderMenuFn(e){const t=ae('<div><UL class="popover-menu"></UL></div>');return[{name:"System Tab",fn:this._showSystemTab},{name:"People Tab",fn:this._showPeopleTab},{name:"RCV",fn:this._showRaveCommandView},{name:"View Settings",fn:this._showSiteSettings}
2].forEach(n=>{const i=ae(`<LI><a>${n.name}</a></LI>`);i.find("a").on("click",e=>{n.fn&&n.fn.call(this,e.target)}).data("rowData",e),t.find("UL").append(i)}),t},_showSiteSettings(e){this._removePopovers();var t=ae(e).data("rowData"),n=ae("<div/>");(new Rave.Modal).makeGeneric({header:"Site Settings",className:"modal-size-800",payload:n}).open(),ae.ajax({url:t.fetchUnivUrl,method:"GET",dataType:"json"}).done(function(e){var t=ae('<pre><code class="language-json"></code></pre><');t.find("code").text(JSON.stringify(e,null,"\t")),n.append(t),hljs.configure({ignoreUnescapedHTML:!0}),hljs.highlightElement(t[0])})},_showSystemTab(e){this._removePopovers();var t=ae(e).data("rowData");window.location.assign(t.systemUrl)},_showPeopleTab(e){this._removePopovers(this);var t=ae(e).data("rowData");window.location.assign(t.peopleUrl)},_showRaveCommandView(e){this._removePopovers(this);var t=ae(e).data("rowData");window.location.assign(t.rcvUrl)},_removePopovers(){Rave.TooltipManager.getInstance().hideAll()},_addModalListeners(){this.localEvents.$on(m.default.Events.AFTER_OPEN,()=>{this.speechToJunk(),ae(this.$el).find("[search-term]").focus()}),this.localEvents.$on(m.default.Events.AFTER_CLOSE,()=>{this.recognition&&this.recognition.stop()})}}},le=re,ce=(0,ie.A)(le,function(){var e=this,t=e._self._c;return t("div",{staticClass:"formElementGroup"},[t("div",{staticClass:"formElement form-inline-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.searchTerm,expression:"searchTerm"}],staticClass:"r4 mousetrap flex-fill",attrs:{type:"text","search-term":"",autofocus:"",id:"changeSiteSearchTerm",placeholder:"Where would you like to go today? I am domainId: "+e.domainId},domProps:{value:e.searchTerm},on:{input:[function(t){t.target.composing||(e.searchTerm=t.target.value)},function(t){return e.searchTermEntered()}],keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.searchReady&&e.search()}}}),e._v(" "),e.uiRefreshEnabled?t("a",{staticClass:"button-secondary m-l-10 m-r-0",class:[e.searchReady?"button-primary":""],attrs:{href:"#",id:"btnChangeSiteSearch"},on:{click:function(t){e.searchReady&&e.search()}}},[e._v("Search")]):t("a",{staticClass:"btnJ2 m-l-10 m-r-0",class:[e.searchReady?"green":"gray"],attrs:{href:"#",id:"btnChangeSiteSearch"},on:{click:function(t){e.searchReady&&e.search()}}},[e._v("Search")]),e._v(" "),e._m(0)]),e._v(" "),t("div",{staticClass:"formElement changeSiteSearchResults"},[t("table",{staticClass:"r4 max",attrs:{"sleuth-table":""}},[t("thead",[t("tr",e._l(e.results.headers,function(n){return t("th",{key:n},[e._v(e._s(n))])}),0)]),e._v(" "),t("tbody",e._l(e.results.rows,function(n){return t("tr",{key:n.domainId},[t("td",{staticClass:"break-word-all"},[e._v(e._s(n.name))]),e._v(" "),t("td",[e._v(e._s(n.domainId))]),e._v(" "),t("td",{staticClass:"break-word-all"},[e._v(e._s(n.flex1))]),e._v(" "),t("td",[e._v(e._s(n.flex2))]),e._v(" "),t("td",{staticClass:"nowrap"},[t("a",{attrs:{"hotkey-g":"",href:n.url}},[e._v("Go")]),e._v(" \xa0|\xa0\n                        "),t("a",{attrs:{"hotkey-r":"",href:n.reportsUrl}},[e._v("Reports")]),e._v(" \xa0|\xa0\n                        "),t("a",{attrs:{"hotkey-e":"",href:n.editSiteUrl}},[e._v("Edit Domain")]),e._v(" "),t("popper",{staticClass:"d-inline",attrs:{renderFn:e.renderMenuFn,popperData:n}},[t("img",{staticClass:"sort-arrow",attrs:{"popper-attach-point":"","arrow-down":"",src:"/images/arrow_down.gif",alt:"Down"}})])],1)])}),0)])])])},[function(){var e=this._self._c;return e("span",{staticClass:"raveWebFontIcon querycircle flex-item-center",attrs:{onclick:"Rave.quickSwitch.showHelp()"}},[e("span",{staticClass:"icon-question"})])}],!1,null,null,null).exports,de={name:"QuickSwitchHelp",data:()=>({keyMaps:{},isMac:!0}),created(){this.isMac=ge(),this.keyMaps=fe[ge()?"macos":"windows"]}},ue=(0,ie.A)(de,function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"hotkeyHelp"}},[t("div",{staticClass:"p-b-10"},[e._v('Enter any part of a site name, domain or domain id and press search.  You may also enter "alert:" followed by the alert id to jump right to the alert.')]),e._v(" "),t("div",{staticClass:"w-fit clearfix"},[t("table",{staticClass:"table w-50p fltlft"},[t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.switch.help))])]),e._v(" "),t("td",[e._v("Switch Domain")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.user.help))])]),e._v(" "),t("td",[e._v("User page")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.alert.help))])]),e._v(" "),t("td",[e._v("Rave Alert")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.rave.help))])]),e._v(" "),t("td",[e._v("Rave page")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.list.help))])]),e._v(" "),t("td",[e._v("Lists")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.sites.help))])]),e._v(" "),t("td",[e._v("Sites")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.roles.help))])]),e._v(" "),t("td",[e._v("Manage Role Permissions")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.admin.help))])]),e._v(" "),t("td",[e._v("Manage Admins")])])]),e._v(" "),t("table",{staticClass:"table w-50p fltlft"},[t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.settings.help))])]),e._v(" "),t("td",[e._v("Site Settings")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.logout.help))])]),e._v(" "),t("td",[e._v("Logout")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.help.help))])]),e._v(" "),t("td",[e._v("Help")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.wide.help))])]),e._v(" "),t("td",[e._v("Screen Width Toggle")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.guardian.help))])]),e._v(" "),t("td",[e._v("Guardian")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.cap_inbound.help))])]),e._v(" "),t("td",[e._v("Cap Inbound")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.system.help))])]),e._v(" "),t("td",[e._v("System")])]),e._v(" "),t("tr",[t("td",[t("span",{staticClass:"short-cut"},[e._v(e._s(e.keyMaps.dashboard.help))])]),e._v(" "),t("td",[e._v("Dashboard")])])])])])},[],!1,null,null,null).exports,pe=n("imBb"),he=n.n(pe),me=n("PcWQ");const fe={windows:{switch:{combo:"shift,shift",help:"Shift, Shift"},user:{combo:"option+ctrl+u",help:"Alt + Ctrl + U"},alert:{combo:"option+ctrl+a",help:"Alt + Ctrl + A"},rave:{combo:"option+ctrl+r option+ctrl+r",help:"Alt + Ctrl + R, A"},logout:{combo:"option+ctrl+x",help:"Alt + Ctrl + X"},help:{combo:"option+ctrl+h",help:"Alt + Ctrl + H"},settings:{combo:"option+ctrl+s option+ctrl+e",help:"Alt + Ctrl + S, E"},sites:{combo:"option+ctrl+s option+ctrl+i",help:"Alt + Ctrl + S, I"},wide:{combo:"option+ctrl+w",help:"Alt + Ctrl + W"},list:{combo:"option+ctrl+l",help:"Alt + Ctrl + L"},guardian:{combo:"option+ctrl+g",help:"Alt + Ctrl + G"},system:{combo:"option+ctrl+s option+ctrl+y",help:"Alt + Ctrl + S, Y"},cap_inbound:{combo:"option+ctrl+c option+ctrl+i",help:"Alt + Ctrl + C, I"},dashboard:{combo:"option+ctrl+d",help:"Alt + Ctrl + D"},roles:{combo:"option+ctrl+r option+ctrl+o",help:"Alt + Ctrl + R, O"},admin:{combo:"option+ctrl+m option+ctrl+a",help:"Alt + Ctrl + M, A"},security:{combo:"option+ctrl+s option+ctrl+t",help:"Alt + Ctrl + S, T"}},macos:{switch:{combo:"shift,shift",help:"\u21e7, \u21e7"},user:{combo:"ctrl+u",help:"\u2303U"}
2,alert:{combo:"ctrl+a",help:"\u2303A"},rave:{combo:"ctrl+r ctrl+a",help:"\u2303R, \u2303A"},logout:{combo:"ctrl+x",help:"\u2303X"},help:{combo:"ctrl+h",help:"\u2303H"},settings:{combo:"ctrl+s ctrl+e",help:"\u2303S, \u2303E"},sites:{combo:"ctrl+s ctrl+i",help:"\u2303S, \u2303I"},wide:{combo:"ctrl+w",help:"\u2303W"},list:{combo:"ctrl+l",help:"\u2303L"},guardian:{combo:"ctrl+g",help:"\u2303G"},system:{combo:"ctrl+s ctrl+y",help:"\u2303S, \u2303Y"},cap_inbound:{combo:"ctrl+c ctrl+i",help:"\u2303C, \u2303I"},dashboard:{combo:"ctrl+d",help:"\u2303\u2325D"},roles:{combo:"ctrl+r ctrl+o",help:"\u2303R, \u2303O"},admin:{combo:"ctrl+m ctrl+a",help:"\u2303M, \u2303A"},security:{combo:"ctrl+s ctrl+t",help:"\u2303S, \u2303T"}}};function ge(){return!!navigator.platform.match(/Mac/i)}const ve="screenWidth";var ye=n("8+gp"),be=n("P16u"),Ce=n("88Hz"),_e=n("kPKb"),we=n("HJAl"),Ee=n("WfTS"),Ae=n("PcWQ");var Se=function(e,t){this.activeHoursComponent=new(o())({el:e,render:e=>e("div",[e(Ee.A,{ref:"capRuleSentTime",props:{selectedActiveHours:t}})]),setTabState:function(e){this.setTabState(Ae("#sentTimeTab"),e)},mounted(){this.$refs.capRuleSentTime.$on("activeHoursChanged",this.handleActiveHoursChanged)},methods:{handleActiveHoursChanged(e){this.activeHoursParent=e}}})},xe=n("jPkd"),Te=(n("4N3r"),n("nWPM")),Me=n("mIew"),Le=n("9fWp"),Oe=n("ax7N"),ke=n("5WJX"),Ie=n.n(ke),Pe=(n("7Cf0"),n("DWi2"),n("sIDj"),n("cZOo"),n("ZNhe"),n("MVQK"),n("Tqh3"),n("hOyB"),n("Qjfq"),n("B9FH"),n("nF3L"));var Ne=function(){let e;return{getInstance:function(){return e||(e={initEditor:async function(e,t){Pe.A.images_upload_url=null!=t&&t.images_upload_url?null==t?void 0:t.images_upload_url:Pe.A.images_upload_url;const n=Object.assign({},Pe.A,t),i=n.setup;n.selector=e,n.setup=e=>{"function"==typeof i&&i(e),e.on("click",function(){e.options.unset("max_height"),e.execCommand("mceAutoResize")})};const o=await Ie().init(n);return Array.isArray(o)?o[0]:o},destroyEditor:function(e){Ie().get(e)&&Ie().get(e).destroy()},getContent:function(e){const t=Ie().get(e);return t?t.getContent():""},setContent:function(e,t){const n=Ie().get(e);n&&n.setContent(t)}}),e}}}(),Re=n("4Aza"),De={props:{previewAltText:{type:String,default:A.A.get("common.imageInput.preview")},disabled:{type:Boolean},inputId:String,inputClass:String,name:String,defaultPreviewSrc:String,fileSizeLimit:Number},data:()=>({urlObject:null}),computed:{previewSrc(){return this.urlObject||this.defaultPreviewSrc}},methods:{updateImage(e){let t=e.target.files;if(t&&0!==t.length){if(this.fileSizeLimit&&t[0].size>this.fileSizeLimit)return m.default.warning(null,A.A.get("common.imageInput.file.too.large",[(0,y.formatFileSize)(this.fileSizeLimit)]),null,null,{categoryType:m.default.CategoryType.VALIDATION}),void(e.target.value="");this.urlObject&&window.URL.revokeObjectURL(this.urlObject),this.urlObject=window.URL.createObjectURL(t[0])}}}},Be=(0,ie.A)(De,function(){var e=this,t=e._self._c;return t("div",[t("input",{staticClass:"image-input",class:e.inputClass,attrs:{type:"file",id:e.inputId,name:e.name,accept:"image/*",disabled:e.disabled},on:{change:e.updateImage}}),t("br"),e._v(" "),t("img",{staticClass:"image-fluid image-input-preview",attrs:{alt:e.previewAltText,src:e.previewSrc}})])},[],!1,null,null,null).exports,Fe=n("vjP/"),Ue=n("PcWQ"),$e={build(e){const t=function(e){const t={},n=e.getAttributeNames();return n.forEach(n=>{const i=e.getAttribute(n);if("size"===n)t.classes=t.classes||[],t.classes.push("fa-"+i);else if("icon"===n){const e=JSON.parse(i.replace(/'/g,'"'));t.icon={prefix:e[0],iconName:e[1]}}else t[n]=i}),t}(e),n={prefix:t.icon.prefix,iconName:t.icon.iconName},i=t.classes,o=(0,Fe.Kk)(n,{classes:i}),a=Ue("<span>"+o.html+"</span>").find("svg")[0];delete t.icon,delete t.classes,Object.keys(t).forEach(e=>{const n=a.getAttribute(e);a.setAttribute(e,n?`${n} ${t[e]}`:t[e])});return e.parentNode.insertBefore(a,e),e.remove(),a}};var We=n("PcWQ"),Ve=function(e){return 0===e.length||(0===e.val().trim().length?(We("#raveTrainingModeModal #btnEnterTrainingMode").removeClass("ready").addClass("gray"),!1):(We("#raveTrainingModeModal #btnEnterTrainingMode").removeClass("gray").addClass("ready"),!0))},He={init:function(){var e=this;this.confirmationModal=new m.default({payload:We("#raveTrainingModeModal"),className:"modal-size-450"}),this.initials=We("#raveTrainingModeModal #trainingInitials"),Ve(this.initials),this.initials.on("change keyup blur keypress",function(){Ve(e.initials)})},proceed:function(){Ve(this.initials)&&(this.state===Rave.TrainingModeService.clickSource.CHANGE_SITE?window.location.href=We("#t1ChangeSite").data("url"):We("#trainingModeForm, #TrainingModeBean").submit())},showExplanation:function(){this.explanation=new Rave.Modal({payload:We("#raveTrainingModeExplanationModal"),className:"modal-size-350"}),this.explanation.open()},state:null,clickSource:{TRAINING_MODE_LINK:0,CHANGE_SITE:1}};var je=n("akzv");n("Xjjk");Y.A.exposeVueGlobally();var Ke={constants:{},defaults:{},ServiceFactory:h,DateTimePicker:K.A,Timeout:v,Util:y,Tooltip:b.A,TooltipManager:C.A,PopoverHelper:E,Lang:A.A,t:A.A.get,Validation:x.A,ExpandedItemManager:L,Modal:m.default,Modal2:O.Ay,modalService:k.A,Jvent:P,eventBus:N,RowExpander:R.A,TableExpander:F,SpinKit:U.A,PaginationBar:$.A,ProgressBar:W.A,ImageInput:Be,RaveTagIt:H.Ay,fontDetect:V.A,isIE:V.l,Vue:{},SendFlowDataStore:G.A,DataStore:G.A,Select2Helper:q,ChangeToggleEvent:X.A.CHANGE_TOGGLE,ServiceBase:f.A,FileUploaderService:J.A,FileUploaderXhrFactory:Q.A,RecipientWarningDecision:Z.A,QueryListService:be.A,OptInlistOrderService:Ce.A,ResourceType:ye.A,SendFlowConstants:ee.A,RaveMap:_e.Ay,RaveMapOpenLayers:Te.Ay,RaveConf:je.Ay,GeoPolygonTools:Re.A,MapConstants:_e.sC,MapHelper:Me.A,geoService:Le.A,TagItUtil:{raTagInitialization:function(){j.I.apply(null,arguments)}},QuickSwitch:class{constructor(e){const t=(new f.A).changeLocation;this.voiceActivated=e.voiceActivated,this.config=e,this._initScreenWidth(),this.localEvents=new(o());var n=ge()?"macos":"windows";function i(e){var t=me(e);t[0]&&t[0].click()}he().bind(fe[n].user.combo,()=>{i("#t1MyAccount")}
2),he().bind(fe[n].alert.combo,()=>{i("#t1Admin")}),he().bind(fe[n].rave.combo,()=>{i("#t1Rave")}),he().bind(fe[n].logout.combo,()=>{i("#btnLogout")}),he().bind(fe[n].help.combo,()=>{this.showHelp()}),he().bind(fe[n].settings.combo,()=>{i("#t1RaveSiteSettings")}),he().bind(fe[n].wide.combo,()=>{this.screenWidthToggle()}),he().bind(fe[n].sites.combo,()=>{this.config.sitesUrl&&t(this.config.sitesUrl)}),he().bind(fe[n].list.combo,()=>{i("#quickSwitchLists")}),he().bind(fe[n].guardian.combo,()=>{this.config.guardianUrl&&t(this.config.guardianUrl)}),he().bind(fe[n].system.combo,()=>{t(this.config.systemSettingsUrl)}),he().bind(fe[n].cap_inbound.combo,()=>{t(this.config.capInboundSettings)}),he().bind(fe[n].dashboard.combo,()=>{t(this.config.quickSendUrl)}),he().bind(fe[n].roles.combo,()=>{t(this.config.rolesUrl)}),he().bind(fe[n].admin.combo,()=>{t(this.config.adminsUrl)}),this.config.domainSecurityUrl&&he().bind(fe[n].security.combo,()=>{t(this.config.domainSecurityUrl)}),he().bind("shift shift",()=>{this.openQuickSwitchModal()},null,300),he().bind("ctrl+/",()=>{this.openQuickSwitchModal()})}screenWidthToggle(){var e=new f.A;e.getFromLocalStorage(ve)?e.removeFromLocalStorage(ve):e.putToLocalStorage(ve,"wide"),me("body").toggleClass("wide")}openQuickSwitchModal(){this.isQuickSwitchOpen||((new O.Ay).makeGeneric({title:"Quick Switch",vueComponent:ce,localEvents:this.localEvents,data:{config:this.config},className:"modal-size-900",afterClose:()=>{this.isQuickSwitchOpen=!1}}).open(),this.isQuickSwitchOpen=!0)}showHelp(){this.isHelpOpen||((new O.Ay).makeGeneric({header:"Hot Key Help",vueComponent:ue,className:"modal-size-600",afterClose:()=>{this.isHelpOpen=!1}}).open(),this.isHelpOpen=!0)}_initScreenWidth(){(new f.A).getFromLocalStorage(ve)&&me("body").toggleClass("wide")}},CKEditorService:Oe.A,TinyMCEService:Ne,FontAwesomeUtil:$e,icon:Fe.Kk,TrainingModeService:He,Drag:class{constructor(e){this.elmnt=e,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,document.getElementById(this.elmnt.id)?document.getElementById(this.elmnt.id).onmousedown=this.dragMouseDown.bind(this):this.elmnt.onmousedown=this.dragMouseDown.bind(this)}dragMouseDown(e){(e=e||window.event).preventDefault(),this.pos3=e.clientX,this.pos4=e.clientY,document.onmouseup=this.closeDragElement.bind(this),document.onmousemove=this.elementDrag.bind(this)}elementDrag(e){(e=e||window.event).preventDefault(),this.pos1=this.pos3-e.clientX,this.pos2=this.pos4-e.clientY,this.pos3=e.clientX,this.pos4=e.clientY,this.elmnt.style.top=this.elmnt.offsetTop-this.pos2+"px",this.elmnt.style.left=this.elmnt.offsetLeft-this.pos1+"px"}closeDragElement(){document.onmouseup=null,document.onmousemove=null}},OneMap:we.Di,CapRuleSentTimeFilter:Se,TinyMCEditor:xe.A};window.Vue&&(o().use(S.A),o().component("one-map",we.Di)),window.Rave&&(Ke=Object.assign(Ke,window.Rave));var Ge=Ke},Cpa8:function(e,t,n){"use strict";n.d(t,{C:function(){return m}});var i=n("EnQL"),o=n.n(i),a=n("xjXS"),s=n.n(a),r=(n("pE84"),n("akzv")),l=n("dhqo"),c=n.n(l);const d={},u={},p={};function h(){if(!window.moment)throw Error("moment.js is not loaded")}const m={LT:"LT",LTS:"LTS",L:"L",LL:"LL",LLL:"LLL",LLLL:"LLLL"},f={add:function(e){for(var t in e)d[t],d[t]=e[t]},addOverride:function(e){for(var t in e)u[t]=e[t]},addRecent:function(e){for(var t in e)p[t]=e[t]},get:function(e,t){var n=d[e];return n&&n.indexOf("{")>-1&&t&&Array.isArray(t)&&t.forEach(function(e,t){n=n.replace("{"+t+"}",e)}),n||"???? "+e+" ????"},t(e,t){return this.get(e,t)},getAll:function(){return d},getAllOverrides:function(){return u},getAllRecent:function(){const e={};for(var t in p)e[t]=d[t];return e},isEmpty:function(e){return!d[e]},setLocale:function(e){h(),o().locale(e)},dateFormat:function(e,t){return h(),t?t.startsWith("L")?o()(e).format(o().localeData().longDateFormat(t)):o()(e).format(t):o()(e).format("MM/DD/YYYY h:mm a")},dateFormatWithTz:function(e,t,n){var i=o()(e).utcOffset(t);return this.dateFormat(i,n)},dateParse:function(e,t){return o()(e,o().localeData().longDateFormat(t)).toDate()},dateParseWithTz:function(e,t,n){n=n||"MM/DD/YYYY hh:mm a Z";var i=(t<0?"-":"+")+Math.abs(Math.floor(t/60)).pad(2)+(t%60).pad(2);return o()(e+" "+i,n).toDate()},numberFormat:function(e,t){return t=t||"0,0",s()(e).format(t)},numberParse:function(e){return s()(e)},getSingularValue:e=>c().singular(e),getPluralValue:e=>c().plural(e),pluralizeMap(e){Object.keys(e).forEach(t=>{e[t]=this.getPluralValue(e[t])})},populateValues(e,t){var n=document.getElementById(e);n&&t&&!t.isEmpty()&&(n.text=t)}};r.Ay.language&&f.setLocale(r.Ay.language),t.A=f},vSwR:function(e,t,n){"use strict";var i=n("mIew");t.A={alertId:-1,bottomToolBar:!0,boundsNElatitude:null,boundsNElongitude:null,boundsSWlatitude:null,boundsSWlongitude:null,circleFillColor:"#0000ff",circleFillOpacity:.35,circleStrokeColor:"#0000ff",circleStrokeOpacity:.8,circleStrokeWeight:2,height:400,initialZoom:14,jurisdiction:null,latitude:42.31185,longitude:-71.38885,mapToolBar:!0,mapToolBarWithDrawControls:!1,mapToolBarBicycleTrafficButtons:!0,allowMapToPopOut:!1,allowPins:!1,pinsKml:null,allowAdditionalShapes:!1,advancedShapesUrl:"",additionalShapesClass:null,minZoom:9,maxZoom:20,onKmlLoadFunc:null,saveFunction:()=>{},shapeFillColor:"#ff0000",shapeFillOpacity:.35,shapeStrokeColor:"#ff0000",shapeStrokeOpacity:.8,shapeStrokeWeight:2,t
2itleToolBar:!0,parseKmlUrl:null,viewportNElatitude:null,viewportNElongitude:null,viewportSWlatitude:null,viewportSWlongitude:null,width:500,pickedShape:i.A.NOTHING,pickedLayer:i.A.NOTHING,numPointsToSimplify:500,padding:[100,50,150,100]}},"4Aza":function(e,t,n){"use strict";var i=n("PcWQ"),o=-1;function a(){this.id=++o,this.vertices={},this.lines=[],this.bounds={lowerLeft:{lat:null,lng:null},upperRight:{lat:null,lng:null}},this.containedVertices={}}var s=-1;function r(e,t,n){if(this.id=++s,this.outOfBounds=!1,void 0!==e){this.polyId=null==n?-1:n,this.startPoint=e,this.endPoint=t;var i=t.lng-e.lng,o=t.lat-e.lat;Math.abs(i)<1e-6?this.slope=1e5:this.slope=o/i,this.b=this.slope*e.lng-e.lat}}var l=-1;function c(e,t,n){this.id=++l,this.lat=e,this.lng=t,this.isIntersectingPoint=!1,this.nextPointId=-1,void 0!==n&&(this.previousPointId=n),this.polyId=-1,this.intersectionPointMateId=-1,this.isContained=!1}var d=-1;const u=9e-6,p=111111.1;function h(e,t){return!(e.lowerLeft.lat>t.upperRight.lat||e.upperRight.lat<t.lowerLeft.lat||e.lowerLeft.lng>t.upperRight.lng||e.upperRight.lng<t.lowerLeft.lng)}function m(e){return Math.PI/180*e}function f(e,t){var n,i,o,a;"function"==typeof e.lat?(n=e.lat(),o=e.lng(),i=t.lat(),a=t.lng()):(n=e.lat,o=e.lng,i=t.lat,a=t.lng);var s=(n-i)*p,r=(o-a)*p*Math.cos(m(n));return Math.trunc(Math.sqrt(s*s+r*r))}const g=1e-6;function v(e,t){if(e.startPoint.isIntersectingPoint&&t.startPoint.isIntersectingPoint&&e.startPoint.intersectionPointMateId==t.startPoint.id)return null;if(e.startPoint.isIntersectingPoint&&t.endPoint.isIntersectingPoint&&e.startPoint.intersectionPointMateId==t.endPoint.id)return null;if(e.endPoint.isIntersectingPoint&&t.startPoint.isIntersectingPoint&&e.endPoint.intersectionPointMateId==t.startPoint.id)return null;if(e.endPoint.isIntersectingPoint&&t.endPoint.isIntersectingPoint&&e.endPoint.intersectionPointMateId==t.endPoint.id)return null;if(Math.abs(e.slope-t.slope)<1e-6)return null;var n=(e.b-t.b)/(e.slope-t.slope),i=t.slope*n-t.b,o=n+g,a=n-g,s=i+g,r=i-g;if(o<e.startPoint.lng&&o<e.endPoint.lng)return null;if(a>e.startPoint.lng&&a>e.endPoint.lng)return null;if(o<t.startPoint.lng&&o<t.endPoint.lng||a>t.startPoint.lng&&a>t.endPoint.lng)return null;if(s<e.startPoint.lat&&s<e.endPoint.lat||r>e.startPoint.lat&&r>e.endPoint.lat)return null;if(s<t.startPoint.lat&&s<t.endPoint.lat||r>t.startPoint.lat&&r>t.endPoint.lat)return null;if(Math.abs(e.startPoint.lat-t.startPoint.lat)<g&&Math.abs(e.startPoint.lng-t.startPoint.lng)<g)return null;if(Math.abs(e.startPoint.lat-t.endPoint.lat)<g&&Math.abs(e.startPoint.lng-t.endPoint.lng)<g)return null;if(Math.abs(e.endPoint.lat-t.endPoint.lat)<g&&Math.abs(e.endPoint.lng-t.endPoint.lng)<g)return null;if(Math.abs(e.endPoint.lat-t.startPoint.lat)<g&&Math.abs(e.endPoint.lng-t.startPoint.lng)<g)return null;var l=new c(i,n);return l.isContained=!0,l.isIntersectingPoint=!0,l.line0ref={polyId:e.polyId,lineId:e.id},l.line1ref={polyId:t.polyId,lineId:t.id},l}function y(e,t,n){for(var i=0;i<t.lines.length;i++)if(t.lines[i].startPoint.id==e.id){for(;n&&void 0===t.containedVertices[t.lines[i].startPoint.id]&&void 0===t.containedVertices[t.lines[i].endPoint.id];)++i>=t.lines.length&&(i=0);return t.lines[i]}return null}function b(e,t){for(var n=0;n<t.lines.length;n++)if(t.lines[n].endPoint.id==e.id)return t.lines[n];return null}function C(e,t,n,i){for(let i=0;i<n.lines.length;i++)if(n.lines[i].startPoint.id==e&&n.lines[i].endPoint.id==t||n.lines[i].startPoint.id==t&&n.lines[i].endPoint.id==e)return n.lines[i];for(let n=0;n<i.lines.length;n++)if(i.lines[n].startPoint.id==e&&i.lines[n].endPoint.id==t||i.lines[n].startPoint.id==t&&i.lines[n].endPoint.id==e)return i.lines[n];return null}function _(e,t){for(var n=0;n<t.lines.length;n++)if(t.lines[n].id==e.id)return n;return-1}function w(e,t,n){let i=t;return e.polyId==i.id&&(i=n),A(new c((e.startPoint.lat+e.endPoint.lat)/2,(e.startPoint.lng+e.endPoint.lng)/2),i)}function E(e,t){return!(e.lat<t.lowerLeft.lat)&&(!(e.lat>t.upperRight.lat)&&(!(e.lng<t.lowerLeft.lng)&&!(e.lng>t.upperRight.lng)))}function A(e,t){for(var n=0,i=!1,o=e.lng,a=e.lat,s=0;s<t.lines.length;s++)++n==t.lines.length&&(n=0),(t.lines[s].startPoint.lat<a&&t.lines[n].startPoint.lat>=a||t.lines[n].startPoint.lat<a&&t.lines[s].startPoint.lat>=a)&&t.lines[s].startPoint.lng+(a-t.lines[s].startPoint.lat)/(t.lines[n].startPoint.lat-t.lines[s].startPoint.lat)*(t.lines[n].startPoint.lng-t.lines[s].startPoint.lng)<o&&(i=!i);return i}function S(e){var t=[];
2for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(e[n]);return t}function x(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].intersectionPointMateId>=0)return e[t];return null}function T(e,t,n){for(let i in e){if(!e[i].isIntersectingPoint)continue;const o=e[e[i].nextPointId],a=e[e[i].prevPointId];if(void 0!==o&&(o.isIntersectingPoint||A(o,t)||(e[i].nextPointId=-1),o.isIntersectingPoint)){const a=C(e[i].id,o.id,t,n);null==a||w(a,n,t)||(e[i].nextPointId=-1,o.previousPointId=-1)}if(void 0!==a&&(a.isIntersectingPoint||A(a,t)||(e[i].previousPointId=-1),a.isIntersectingPoint)){const o=C(e[i].id,a.id,t,n);null==o||w(o,n,t)||(e[i].previousPointId=-1,a.nextPointId=-1)}}return e}function M(e,t){for(var n=k(e.containedVertices),i=0;i<e.lines.length;i++){var o=e.lines[i];if(!E(o.startPoint,t)&&!E(o.endPoint,t)){if(void 0!==n[o.startPoint.id])b(o.startPoint,e).outOfBounds&&delete n[o.startPoint.id];if(void 0!==n[o.endPoint.id])E(y(o.endPoint,e).endPoint,t)||delete n[o.endPoint.id];o.outOfBounds=!0}}return n}function L(e,t){return t.lat<e.lowerLeft.lat&&(e.lowerLeft.lat=t.lat),t.lat>e.upperRight.lat&&(e.upperRight.lat=t.lat),t.lng<e.lowerLeft.lng&&(e.lowerLeft.lng=t.lng),t.lng>e.upperRight.lng&&(e.upperRight.lng=t.lng),e}function O(e){const t=new a;t.id=e.id;for(let n in e.vertices){const i=e.vertices[n],o=new c(i.lat,i.lng);o.id=i.id,o.polyId=i.polyId,o.isIntersectingPoint=i.isIntersectingPoint,o.nextPointId=i.nextPointId,o.previousPointId=i.previousPointId,o.intersectionPointMateId=i.intersectionPointMateId,o.isContained=i.isContained,t.vertices[n]=o}for(let n in e.containedVertices){const i=e.containedVertices[n],o=new c(i.lat,i.lng);o.id=i.id,o.polyId=i.polyId,o.isIntersectingPoint=i.isIntersectingPoint,o.nextPointId=i.nextPointId,o.previousPointId=i.previousPointId,o.intersectionPointMateId=i.intersectionPointMateId,o.isContained=i.isContained,t.containedVertices[n]=o}for(let n in e.lines){const i=e.lines[n],o=new r;o.id=i.id,o.startPoint=t.vertices[i.startPoint.id],o.endPoint=t.vertices[i.endPoint.id],o.slope=i.slope,o.b=i.b,o.polyId=i.polyId,o.outOfBounds=i.outOfBounds,t.lines[n]=o}return t.bounds={lowerLeft:{lat:e.bounds.lowerLeft.lat,lng:e.bounds.lowerLeft.lng},upperRight:{lat:e.bounds.upperRight.lat,lng:e.bounds.upperRight.lng}},t}function k(e){var t={};for(let o in e){var n=e[o],i=new c(n.lat,n.lng);i.id=n.id,i.polyId=n.polyId,i.isIntersectingPoint=n.isIntersectingPoint,i.nextPointId=n.nextPointId,i.previousPointId=n.previousPointId,i.intersectionPointMateId=n.intersectionPointMateId,i.isContained=n.isContained,t[o]=i}return t}function I(e){const t=[],n=i.parseXML(e);let o=i(n).find("Placemark coordinates").first().text();o=o.trim().replace(/\r?\n|\r/g," ");const a=o.split(" ");if(a[0].trim()!==a[a.length-1].trim())throw Error("Failed to parse KML. Please ensure file is a valid KML file.");return a.forEach(function(e){const n=e.split(","),i=parseFloat(n[0]),o=parseFloat(n[1]);if(n.length>1){if(Number.isNaN(i)||Number.isNaN(o))throw Error("Failed to parse KML. Please ensure file is a valid KML file.");t.push(new google.maps.LatLng(o,i))}}),t}function P(e){if(!e||!e.length)return null;const t=new a;let n=new c(e[0].lat(),e[0].lng());const i=n.id;n.polyId=t.id,t.vertices[n.id]=n,t.bounds.lowerLeft.lat=t.bounds.upperRight.lat=n.lat,t.bounds.lowerLeft.lng=t.bounds.upperRight.lng=n.lng;let o=n.id;for(let i=1;i<e.length;i++)n=new c(e[i].lat(),e[i].lng(),o),n.polyId=t.id,t.vertices[o].nextPointId=n.id,t.vertices[n.id]=n,o=n.id,t.bounds=L(t.bounds,n);t.vertices[n.id].nextPointId=i,t.vertices[i].previousPointId=n.id,t.bounds=L(t.bounds,n);let s=i;do{var l=t.vertices[t.vertices[s].nextPointId];t.lines.push(new r(t.vertices[s],l,t.id)),s=l.id}while(t.vertices[s].nextPointId!=i);return t.lines.push(new r(t.vertices[s],t.vertices[i],t.id)),t.containedVertices=k(t.vertices),t}t.A={createRPolygonFromPath:P,createPolygonFromKML:I,createPathFromKML:function(e){return I(e)},RCircle:function(e,t,n,i){this.id=++d,this.lat=e,this.lng=t,this.radius=n;for(var o=2*Math.PI/i,a=0,s=[];a<2*Math.PI;){var r=Math.cos(a)*n,l=Math.sin(a)*n/Math.cos(m(e)),c=e+r*u,p=t+l*u;s.push(new google.maps.LatLng(c,p)),a+=o}this.rPolygon=P(s),this.bounds={lowerLeft:{lat:e-n*u,lng:t-n*u*Math.cos(m(e))},upperRight:{lat:e+n*u,lng:t+n*u*Math.cos(m(e))}}},findIntersectingPolygons:function(e,t){var n=[];if(!h(e.bounds,t.bounds))return n;var o=O(e),a=O(t);o.containedVertices=M(o,a.bounds),a.containedVertices=M(a,o.bounds);var s=function(e,t){var n=[],i=Object.keys(e.containedVertices).length;if(0==i)return n;try{var o=e.containedVertices[Object.keys(e.containedVertices)[0]],a=o,s=t.containedVertices[Object.keys(t.containedVertices)[0]],l=s;if(null==l)return n;for(var d=y(o,e,!0);d.endPoint.id!=a.id;){d=y(o,e);var u=y(l,t);s=l;for(var p=Object.keys(t.containedVertices).length,h=0;u.endPoint.id!=l.id&&h<=p;){h++;var m=v(d,u=y(s,t,!0));if(null!=m){var f=new r(m,d.endPoint,e.id);m.nextPointId=d.endPoint.id,e.containedVertices[d.endPoint.id].previousPointId=m.id,m.previousPointId=d.startPoint.id,e.containedVertices[d.startPoint.id].nextPointId=m.id,d.endPoint=m;var g=_(d,e)+1;e.lines.splice(g,0,f),e.containedVertices[m.id]=m,i++;var b=new c(m.lat,m.lng);b.isIntersectingPoint=!0,b.intersectionPointMateId=m.id,m.intersectionPointMateId=b.id,f=new r(b,u.endPoint,t.id),b.nextPointId=u.endPoint.id,t.containedVertices[u.endPoint.id].previousPointId=b.id,b.previousPointId=u.startPoint.id,t.containedVertices[u.startPoint.id].nextPointId=b.id,u.endPoint=b;var C=_(u,t)+1;t.lines.splice(C,0,f),t.containedVertices[b.id]=b,p++,n.push(m)}s=u.endPoint}o=d.endPoint}return n}catch(e){console.error("Eek: _findIntersectionsAndBreakLines() ",e)}return n}(o,a);if(o.containedVertices=T(o.containedVertices,a,o),a.containedVertices=T(a.containedVertices,o,a),s.length<1){var l=0,d=0;return Object.keys(o.vertices).some(function(e){A(o.vertices[e],a)&&l++}),Object.keys(a.vertices).some(function(e){A(a.vertices[e],o)&&d++}),(l>0||d>0)&&(l>=d?n.push(S(o.vertices)):n.push(S(a.vertices))),n}for(var u=i.extend({},o.containedVertices,a.containedVertices),p=[],m=0;Object.keys(u).length>0&&m++<100;){var f={};p=[];var g=x(u);if(null==g)break;var b=g.id,C=g.nextPointId>=0,w=3500;try{for(;--w>0&&(p.push(g),f[g.id]=g,(g=C?u[g.nextPointId]:u[g.previousPointId]).intersectionPointMateId>=0&&(C=(g=u[g.intersectionPointMateId]).nextPointId>=0),!(g.intersectionPointMateId>=0)||g.intersectionPointMateId!=b&&g.id!=b););}catch(e){console.error("eek")}n.push(p);for(var E=0;E<p.length;E++)if(void 0!==u[p[E].id]){var L=u[p[E].id].intersectionPointMateId;L>=0&&void 0!==u[L]&&delete u[L],delete u[p[E].id]}}return n},isContainsPolygon:function(e,t){if(!h(e.bounds,t.bounds))return!1;const n=t.vertices;let i=!1;return Object.keys(n).find(t=>(A(n[t],e)||(i=!0),i)),!i},createPolygonFromShapeString:function(e){const t=/\((?:\[??[^([]*?\))/g;let n,i;const o=[];for(;null!==(i=t.exec(e));
2)i.index===t.lastIndex&&t.lastIndex++,i.forEach((e,t)=>{n=e.trim().replace(/\r?\n|\r/g," "),n=n.replace(/[\])}[{(]/g,""),o.push(n)});return function(e){const t=[],n=e.split(",");return n.forEach(function(e){const n=e.split(" "),i=parseFloat(n[0]),o=parseFloat(n[1]);if(n.length>1){if(Number.isNaN(i)||Number.isNaN(o))throw Error("Failed to parse KML. Please ensure file is a valid KML file.");t.push(new google.maps.LatLng(o,i))}}),t}(o[0])},isPolygonInvalid:function(e){for(var t=0;t<e.lines.length-1;t++)for(var n=t+1;n<e.lines.length;n++)if(null!=v(e.lines[t],e.lines[n]))return!0;return!1},distanceToPolygon:function(e,t){if(A(e,t))return 0;var n,i,o=null,a=null,s=null,r=null,l=null;for(let n in t.vertices)if(null!=o){var c=f(e,t.vertices[n]);c<r&&(r=c,o=t.vertices[n])}else o=t.vertices[n],r=f(e,t.vertices[n]);var d=!1,u=null,p=null,h=null,m=null;do{i=(n=((s=f(o,a=d?t.vertices[o.previousPointId]:t.vertices[o.nextPointId]))*s+r*r-(l=f(e,a))*l)/(2*s*r))<0?0:r*n,u=Math.sqrt(r*r-i*i),d?m<u&&(a=t.vertices[o.nextPointId],u=m,s=p,i=h):(m=u,p=s,h=i),d=!d}while(d);return u},getLineByPoint:function(e,t){for(var n=0;n<t.lines.length;n++){if(t.lines[n].startPoint.id==e.id)return t.lines[n];if(t.lines[n].endPoint.id==e.id)return t.lines[n]}return null},getLineBy2Points:function(e,t,n){for(let i=0;i<n.lines.length;i++){if(n.lines[i].startPoint.id==e.id&&n.lines[i].endPoint.id==t.id)return n.lines[i];if(n.lines[i].endPoint.id==t.id&&n.lines[i].endPoint.id==e.id)return n.lines[i]}return null},radiansToDegrees:function(e){return 180/Math.PI*e},verticesInBounds:function(e,t){var n=k(e);for(let o in e){var i=e[o];(i.lat<t.lowerLeft.lat||i.lat>t.upperRight.lat||i.lng<t.lowerLeft.lng||i.lng>t.upperRight.lngt)&&delete n[o]}return n}}},mIew:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var i=n("4Aza"),o=n("Cpa8"),a=n("Vu1O"),s=n("PcWQ");function r(){google.maps.Polygon.prototype.getBounds||(google.maps.Polygon.prototype.getBounds=function(){for(var e,t=new google.maps.LatLngBounds,n=this.getPaths(),i=0;i<n.getLength();i++){e=n.getAt(i);for(var o=0;o<e.getLength();o++)t.extend(e.getAt(o))}return t})}t.A={LON:0,LAT:1,MONITORED_AREA_FILL:"#33ccff",MONITORED_AREA_STROKE:"#33ccff",RECIPIENTS_FILL:"#ff6633",RECIPIENTS_STROKE:"#ff6633",JURISDICTION_FILL:"#ff3300",JURISDICTION_STROKE:"#ff3300",AFFECTED_AREA_FILL:"#fdfb66",AFFECTED_AREA_STROKE:"#fdfb66",DEBUG_1_FILL:"#16A085",DEBUG_1_STROKE:"#117A65",DEBUG_2_FILL:"#b066fd",DEBUG_2_STROKE:"#b066fd",NOTHING:"NOTHING",OPTIMIZED_KML:"#00ffff",getShapeData(e){var t=[];
2return s(e).find("tr").each(function(e,n){n.raveMap?t.push(n.raveMap):n.dataset.mapData&&(n.raveMap=Rave.MapHelper.getShapeDataFromJson(n.dataset.mapData),t.push(n.raveMap))}),t},getUSACenter:()=>({center:new google.maps.LatLng(40,-95),zoom:4}),getShapeDataAsJson:function(e){var t=[];return this.getShapeData(e).forEach(function(e){var n={};n.label=e.name,n.radius=e.radius,2===e.polygon.length?(n.polygon=!1,n.shape=e.polygon[Rave.MapHelper.LON]+","+e.polygon[Rave.MapHelper.LAT]):1===e.polygon.length&&"object"==typeof e.polygon[0]?(n.polygon=!1,n.shape=e.polygon[0].lng()+","+e.polygon[0].lat()):e.polygon.length>2?(n.polygon=!0,n.shape="",e.polygon.forEach(function(e){n.shape+=e.lng()+","+e.lat()+"!"})):n.polygon=!1,t.push(n)}),JSON.stringify(t)},getShapeDataFromJson:function(e){var t=JSON.parse(e),n={polygon:[],name:t.label,radius:t.radius},i=t.shape.split("!"),o=1===i.length;return i.forEach(function(e){var t=e.split(",");o?(n.polygon.push(t[Rave.MapHelper.LON]),n.polygon.push(t[Rave.MapHelper.LAT])):n.polygon.push(new google.maps.LatLng(t[Rave.MapHelper.LAT],t[Rave.MapHelper.LON]))}),n},parseShapeFromBackendFormat:function(e){if(!e)return[];var t="";if(e.indexOf("POINT")>-1)t=e.replace(/POINT\(/g,"").replace(/POINT \(/g,"").replace(/\)/g,"").replace(/ /g,",");else{var n=e.replace(/POLYGON\(\(/g,"").replace(/POLYGON \(\(/g,"").replace(/\)/g,"").split(",");for(let e of n){var i=s.trim(e).split(" ");t+=i[0]+","+i[1]+"!"}t=t.substring(0,t.length-1)}return Rave.MapHelper.parseShapeFromCustomFormat(t)},parseShapeFromCustomFormat:function(e){if(""===e)return[];for(var t=e.split("!"),n=[],i=0;i<t.length;i++){var o=t[i].split(",");n.push(new google.maps.LatLng(o[1],o[0]))}return n},serializeToCustomFormat:function(e){var t="";if(e.isPolygon)for(var n=0;n<e.polygon.length;n++)t.length>0&&(t+="!"),t+=e.polygon[n].lng()+","+e.polygon[n].lat();else t=e.center.lng()+","+e.center.lat();return t},parseWktFormat:function(e){if(!e)return[];for(var t=e.substring(e.indexOf("((")+2,e.length-2).split(","),n=[],i=0;i<t.length-1;i++){var o=t[i].trim().split(" ");n.push(new google.maps.LatLng(o[1],o[0]))}return n},parseKmlIntoFormat(e,t){const n=i.A.createPolygonFromKML(e);if("LATLNG"===t)return n;{let e="POLYGON((";const t=[];return n.forEach(e=>{t.push(e[0]+" "+e[1])}),e+=t.join(", ")+"))",e}},serializeWktFormat:function(e,t){if(e&&!(e.length<1)){if(!Array.isArray(e)&&void 0===e.lat)return e;var n=t?"POLYGON ((":"POINT (";return t?(e.forEach(function(e){n+=e.lng()+" "+e.lat()+", "}),n+=e[0].lng()+" "+e[0].lat(),n+="))"):n+=e.lng()+" "+e.lat()+(t?"))":")"),n}},toSimpleArray:function(e){if(!e)return[];var t=[];return e.forEach(function(e){t.push({latitude:e.lat(),longitude:e.lng()})}),e.length>0&&t.push({latitude:e[0].lat(),longitude:e[0].lng()}),t},calculateZoomToFit:function(e,t){if(!e)return 0;var n=new google.maps.LatLngBounds;s.isArray(e)?e.forEach(function(e){e.getBounds?n.extend(e.getBounds()):n.extend(e.getPosition())}):n=e.getBounds();var i=256,o=256;function a(e){var t=Math.sin(e*Math.PI/180),n=Math.log((1+t)/(1-t))/2;return Math.max(Math.min(n,Math.PI),-Math.PI)/2}function r(e,t,n){return Math.floor(Math.log((e||1)/t/n)/Math.LN2)}
2var l=n.getNorthEast(),c=n.getSouthWest(),d=(a(l.lat())-a(c.lat()))/Math.PI,u=l.lng()-c.lng(),p=(u<0?u+360:u)/360,h=s(t).find("[map-canvas]"),m=r(h.height(),i,d),f=r(h.width(),o,p);return Math.min(m,f,21)},metersToMilesFeet:e=>e<30.48?(3.2808399*e).toFixed(0)+" feet":(.000621371192*e).toFixed(2)+" miles",formatDistance:(e,t)=>t&&t.match(/_CA/)?e>=1e3?(e/1e3).toFixed(2)+" "+o.A.t("mgtConsole.map.km"):e.toFixed(0)+" "+o.A.t("mgtConsole.map.meters"):e<30.48?(3.2808399*e).toFixed(0)+" "+o.A.t("mgtConsole.map.feet"):(.000621371192*e).toFixed(2)+" "+o.A.t("mgtConsole.map.miles"),coordsToLatLng:e=>(0,a.transform)(e,"EPSG:3857","EPSG:4326")}},"2cXZ":function(e,t,n){"use strict";var i=n("PcWQ");const o={stickyTooltip:!1,stickyAccuracy:!1,currentTooltip:null,currentAccuracyCircle:null,currentMarker:null};t.A={registerTooltip(e,t,n,i){const a=this,s=n instanceof google.maps.Polyline;i=!0===i;const r=new google.maps.InfoWindow({content:"",pixelOffset:s?new google.maps.Size(0,-3):null,disableAutoPan:i}),l={mouseOverRef:n.addListener("mouseover",t=>{o.stickyTooltip||(o.currentMarker=n,o.currentTooltip=r,this.infoWindowTimeoutHandle=d(e,n,n.contentData,this.infoWindowTimeoutHandle,t))}),mouseClickRef:n.addListener("click",t=>{s||(n!==o.currentMarker?(c(),o.stickyTooltip=!0,setTimeout(()=>{o.currentMarker=n},0),this.infoWindowTimeoutHandle=d(e,n,n.contentData,this.infoWindowTimeoutHandle,t),o.currentTooltip=r):o.stickyTooltip=!o.stickyTooltip)}),mouseOutRef:n.addListener("mouseout",()=>{o.stickyTooltip||(clearInterval(a.infoWindowTimeoutHandle),setTimeout(()=>{r.close(t,this)},100),o.currentTooltip=null)})};r.addListener("closeclick",()=>{this.dismissAll()});const c=()=>{o.stickyTooltip=!1,o.currentTooltip&&o.currentTooltip.close()},d=(e,n,i,o,a)=>{if(!n.editable)return setTimeout(()=>{r.setContent(e.contentFormatter?e.contentFormatter(i):i),r.setPosition(a.latLng),r.open(t,n),clearInterval(o)},100)};return l},unregisterTooltip(e){e&&(google.maps.event.removeListener(e.mouseOverRef),google.maps.event.removeListener(e.mouseClickRef),google.maps.event.removeListener(e.mouseOutRef))},registerAccuracyDisplay(e,t,n){const a={center:e.location||new google.maps.LatLng(e.lat,e.lng),radius:e.accuracy,fillColor:e.color1,fillOpacity:0,strokeColor:e.color1,strokeOpacity:0,strokeWeight:3,editable:!1},s=new google.maps.Circle(a);n.addListener("mouseover",()=>{o.stickyAccuracy||(l(),o.currentMarker=n,r())}),n.addListener("click",()=>{n!==o.currentMarker?(l(),setTimeout(()=>{o.currentMarker=n},0),r()):o.stickyAccuracy=!o.stickyAccuracy}),n.addListener("mouseout",()=>{o.stickyAccuracy||l()});const r=()=>{o.currentAccuracyCircle=s,i({val:a.fillOpacity}).animate({val:.2},{step(e){a.fillOpacity=e,a.strokeOpacity=1.2*e,s.setOptions(a)},start(){s.setMap(t)}})},l=()=>{s.setMap(null),o.currentAccuracyCircle&&o.currentAccuracyCircle.setMap(null),a.fillOpacity=a.strokeOpacity=0,clearTimeout(null)}},dismissAll(){o.stickyTooltip=!1,o.stickyAccuracy=!1,o.currentTooltip&&o.currentTooltip.close(),o.currentAccuracyCircle&&o.currentAccuracyCircle.setMap(null)}}},kPKb:function(e,t,n){"use strict";n.d(t,{Ay:function(){return C},WU:function(){return v},sC:function(){return b},sV:function(){return y}});var i=n("PcWQ"),o=n.n(i),a=n("mIew"),s=n("vSwR"),r=n("3Op4"),l=n("2cXZ"),c=n("4Aza"),d=n("7RMj"),u=n("uXSz"),p=n("UDvT"),h=n("Vb5x"),m=n("+cQT"),f=n.n(m);const g=(0,d.whichTransitionEvent)(),v={MILES:"Miles",METERS:"Meters"},y={RESET_MAP:"RESET_MAP",MAP_LOADED:"MAP_LOADED",SHAPE_PICKED:"SHAPE_PICKED",CREATE_SHAPE_CLICKED:"CREATE_SHAPE_CLICKED"},b={Events:y};class C{constructor(e,t){this.config=t,this.elId=e;const n=!!this.hasMapData(t.mapData);let{centerOfMap:i,initialZoom:r}=this.defaultCenterAndZoom(t);t.colors||(t.colors={fill:a.A.RECIPIENTS_FILL,stroke:a.A.RECIPIENTS_STROKE}),this.mapOptions=o().extend({},s.A,{jurisdiction:this.getJurisdictionUrl(t),jurisdictionKmlUrl:this.getJurisdictionKmlUrl(t),jurisdictionTest:t.jurisdictionUrlTest,parseKmlUrl:this.getParseKmlUrl(t),latitude:i.lat(),longitude:i.lng(),minZoom:2,initialZoom:r,width:this.getEl().width(),titleToolBar:!1,mapToolBar:"boolean"!=typeof t.mapToolBar||t.mapToolBar,mapToolBarWithDrawControls:"boolean"!=typeof t.mapToolBarWithDrawControls||t.mapToolBarWithDrawControls,allowMapToPopOut:this.config.allowMapToPopOut,allowPins:this.config.allowPins,pinsKml:this.config.pinsKml,allowAdditionalShapes:this.config.allowAdditionalShapes||t.allowAdditionalShapes,additionalShapesJson:this.config.additionalShapesJson||t.additionalShapesJson,additionalShapesClass:this.config.additionalShapesClass||t.additionalShapesClass,shapeFillColor:t.colors.fill,shapeStrokeColor:t.colors.stroke,cir
2cleFillColor:t.colors.fill,circleStrokeColor:t.colors.stroke,onKmlLoadFunc:t.onKmlLoadFunc||_.bind(this,n),bottomToolBar:!1,requireNew:t.requireNew,skipCenterOnKmlLoad:n,clearQueryResults:t.clearQueryResults,shapeMenu:t.shapeMenu,readOnly:!1,mapOpenLayersEnabled:!1,selectedShapes:[]},t),!0===t.readOnly&&(this.mapOptions.mapToolBarWithDrawControls=!1),(0,a.B)(),this.didMapLoad=!1,this.kmlLayer,this.kmlLayer1,this.kmlLayer2,this.overlay,this.placeMarkPremisesMap=[],this._map=null,this.polygonLatLngArray=[],this.mapListener=null,this.drawingListener=null,this.circleListeners=[],this.originalPolygon=null,this.polygonShape=null,this.circleShape=null,this.trafficLayer=null,this.bicyclingLayer=null,this.markers=[],this.polygonShapeCallback=null,this.circleShapeCallback=null,this.pinsLayer=null,this.deselectedMapSelections=!1,this.infoWindowTimeoutHandle,this.raveJurisdictionShapeMap=null,this.localEvents=t.localEvents||new(f()),this.mapOptions.pickedShape=t.pickedShape||a.A.NOTHING}defaultCenterAndZoom(e){let t,n;return e.center&&e.center.lat()&&(t=e.center),e.longitude&&e.latitude&&!e.center&&(t=new google.maps.LatLng(e.latitude,e.longitude)),n=e.mapZoom||10,e.initialZoom||delete e.initialZoom,t||(t=a.A.getUSACenter().center,n=a.A.getUSACenter().zoom),{centerOfMap:t,initialZoom:n}}loadMap(){return this.didMapLoad||(this.restoredShapes=null,this.installPolygonEventHandlers(),this.buildVueComponent(),this.mapOptions.mapData&&(this.mapOptions.mapData.length>0?this.mapOptions.mapData.forEach(e=>this.restoredShapes=this.restoreMap(e)):this.restoredShapes=this.restoreMap(this.mapOptions.mapData)),this.restoredShapes&&this.restoredShapes.zoom&&this.getMap().setZoom(this.restoredShapes.zoom),this.didMapLoad=!0),this}installPolygonEventHandlers(){const e=this.mapOptions.polygonAdded?this.mapOptions.polygonAdded:()=>{o()("#dtr_sm_geo").show()};this.polygonShapeCallback=this.circleShapeCallback=e}getJurisdictionZoom(){return this.mapOptions.mapZoom}getParseKmlUrl(e){return e.parseKmlUrl?e.parseKmlUrl:e.uploadCsvUrl?e.uploadCsvUrl:void 0}getJurisdictionUrl(e){if(e.jurisdictionUrl)return e.jurisdictionUrl+(0,u.cacheBuster)()}getJurisdictionKmlUrl(e){return e.jurisdictionkmlUrl?e.jurisdictionkmlUrl+(0,u.cacheBuster)():this.getJurisdictionUrl(e)}hasMapData(e){return!!(e&&e.polygon&&e.polygon.length>0)}restoreRadius(e){if(e&&e.polygon&&e.radius)return e.radius=+e.radius,"object"==typeof e.polygon[0]?this.circleLocation(e.polygon[0].lat(),e.polygon[0].lng(),e.radius,!this.config.readOnly):this.circleLocation(e.polygon[a.A.LAT],e.polygon[a.A.LON],e.radius,!this.config.readOnly)}restoreMap(e){let t,n,i,o;return e&&(e.polygon&&e.polygon.length>2?(n=this.restorePolygon(e),t=a.A.calculateZoomToFit(n,this.getEl()),o=this.getRavePolygonCenter()):(i=this.restoreRadius(e),o=this.getCenter(),t=a.A.calculateZoomToFit(i,this.getEl())),o&&this.centerMap(o.lat(),o.lng())),{zoom:t,polygon:n,circle:i}}getRavePolygonCenter(){return null===this.polygonShape?null:this.polygonShape.getBounds().getCenter()}dropPoint(e,t,n){let i=new google.maps.LatLng(e,t);this.markers[this.markers.length]=new google.maps.Marker({position:i,map:this._map,title:"You live here",draggable:n})}circleLocation(e,t,n,i,o){return o=o||{fill:this.mapOptions.circleFillColor,stroke:this.mapOptions.circleStrokeColor},this.circleShape=new google.maps.Circle({map:this._map,center:new google.maps.LatLng(e,t),radius:n,fillColor:o.fill,fillOpacity:this.mapOptions.circleFillOpacity,strokeColor:o.stroke,strokeOpacity:this.mapOptions.circleStrokeOpacity,strokeWeight:this.mapOptions.circleStrokeWeight,editable:i}),this.initCircleListeners(),this.circleShape}panToLocation(e,t){this._map.panTo(new google.maps.LatLng(e,t))}getEl(){return o()("#"+this.elId)}initCircleListeners(){this.labelCircle(this.circleShape),this.scheduleLabelHide(),this.circleListeners.push(google.maps.event.addListener(this.circleShape,"radius_changed",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()})),this.circleListeners.push(google.maps.event.addListener(this.circleShape,"click",()=>{const e=o()("#"+this.elId+"_circleLabel");e.hasClass("fade")?e.removeClass("fade"):e.addClass("fade")})),this.circleListeners.push(google.maps.event.addListener(this._map,"idle",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()})),this.circleListeners.push(google.maps.event.addListener(this.circleShape,"center_changed",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()})),this.circleListeners.push(google.maps.event.addListener(this._map,"center_changed",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()}))}scheduleLabelHide(){setTimeout(()=>{this.hideLabel()},2e3)}hideLabel(){o()("#"+this.elId+"_circleLabel").addClass("fade")}labelCircle(e){if(e&&this.overlay&&this.overlay.getProjection()){let t=this.overlay.getProjection().fromLatLngToContainerPixel(e.getCenter());o()("#"+this.elId+"_circleLabel").removeClass("fade").css({top:t.y,left:t.x}).text("Radius: "+a.A.formatDistance(e.getRadius(),Rave.defaults.locale)).show()}}restorePolygon(e){let t=e.polygon,n=this.polygonLatLngArray;n.length=0;for(let e=0,i=t.length;e<i;e++)n[e]=new google.maps.LatLng(t[e].lat(),t[e].lng());return this.drawPolygon(this.polygonLatLngArray,null,null,!this.config.readOnly)}createMarkerOnLayer(e,t){let n=t.createMarker(e);google.maps.event.addListener(n,"click",function(){o()("#subscriberInfoPopup").hide()}),this.markers.push(n);let i=e.description;i=i.substring(i.indexOf("(")+1,i.indexOf(")")),i=i.split(","),2===i.length&&this.placeMarkPremisesMap.push(parseInt(i[1]))}kmlClick(e){google.maps.event.trigger(this.markers[e],"click")}processMarkers(){"function"==typeof this.postProcessMarkers&&this.postProcessMarkers()}failedmarkers(){alert("markers failed")}renderMap(e,t,n,i,o){let a=null;if(null!=this.mapOptions.viewportNElatitude&&null!=this.mapOptions.viewportNElongitude&&null!=this.mapOptions.viewportSWlatitude&&null!=this.mapOptions.viewportSWlongitude){let e=new google.maps.LatLng(this.mapOptions.viewportNElatitude,this.mapOptions.viewportNElongitude),t=new google.maps.LatLng(this.mapOptions.viewportSWlatitude,this.mapOptions.viewportSWlongitude);a=new google.maps.LatLngBounds(t,e)}let s=new google.maps.LatLng(e,t),r={zoom:this.mapOptions.initialZoom,center:s,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:!0,gestureHandling:"cooperative",streetViewControl:!1},l=new google.maps.Map(document.getElementById(i),r);return a&&l.fitBounds(a),google.maps.event.addListenerOnce(l,"tilesloaded",()=>{null!=a&&(this.mapOptions.initialZoom=this._map.getZoom()),this.overlay=new google.maps.OverlayView,this.overlay.draw=()=>{this.circleShape&&this.labelCircle(this.circleShape)},this.overlay.setMap(this._map),o()}),l}buildVueComponent(){const e=this.localEvents,t=this;this.mapVue=new(f())({el:"#"+this.elId,components:{RaveMapVue:r.A},render(e){return e(r.A,{props:{id:this.id,options:this.options}})},provide:()=>({raveMap:t,localEvents:e}),data:{options:this.mapOptions,id:this.elId},beforeDestroy(){const e=o()("<div>");e.insertAfter(this.$el),this.$el.parentNode.removeChild(this.$el),this.$el.id="",e.attr("id",this.id)}})}postMapLoad(){this.mapOptions.jurisdiction&&this.paintJurisdiction(this.mapOptions.jurisdiction,this.mapOptions.jurisdictionTest,this.mapOptions.jurisdictionKmlUrl),this.localEvents.$emit(y.MAP_LOADED,this._map)}showMapTypeSelections(){this.deselectedMapSelections?this.deselectedMapSelections=!1:o()("#"+this.elId+"_mapTypeSelections").css("display","block")}makeMapTypeSelection(e){o()("#"+this.elId+"_mapTypeSelections").css("display","none"),this.deselectedMapSelections=!0,o()("#"+this.elId+"_mapTypeSelection").html(e.innerHTML),this._map.setMapTypeId(e.getAttribute("value").toLowerCase())}getCorrectServer(e){return location.origin+e.substring(e.indexOf("/managementConsole"))}paintJurisdiction(e,t,n){if(this.raveMapJurisdictionKmlLayer=new google.maps.KmlLayer(this.getCorrectServer(e),{suppressInfoWindows:!0,clickable:!1,preserveViewport:!0,map:this._map}),google.maps.event.addListenerOnce(this.raveMapJurisdictionKmlLayer,"defaultviewport_changed",()=>{null!=this.mapOptions.onKmlLoadFunc&&this.mapOptions.onKmlLoadFunc()}),t||n){var i=t;if(!i)i=location.href.substring(0,location.href.indexOf("/managementConsole"))+n.substring(n.indexOf("/managementConsole"));o().ajax({url:i,type:"GET",dataType:"text",crossDomain:!0}).done(e=>{let t=c.A.createPathFromKML(e);this.raveMapJurisdictionKmlLayer.ravePolygon=c.A.createRPolygonFromPath(t)}
2).fail((e,t,n)=>{console.error("failed to load kml file",n)})}}clear(e,t,n){if(this.localEvents.$emit(y.RESET_MAP),n||(this.mapOptions.pickedShape=a.A.NOTHING),e=e||!1,t=t||!1,null!=this.polygonShape&&this.polygonShape.setMap(null),this.polygonShape=null,this.polygonLatLngArray=[],t){for(let e=0;e<this.markers.length;e++)this.markers[e].setMap(null);this.markers.length=0}this.circleShape&&(this.circleShape.setMap(null),o()("#"+this.elId+"_circleLabel").hide()),this.circleShape=null,this.drawingListener&&google.maps.event.removeListener(this.drawingListener),this.circleListeners.forEach(function(e){google.maps.event.removeListener(e)}),this.circleListeners=[],e&&null!=this.kmlLayer1&&(this.kmlLayer1.hideDocument(),this.kmlLayer1=null,o()("#first1000Shown").length>0&&o()("#first1000Shown").hide()),this.placeMarkPremisesMap=[],o()("#"+this.elId+"_raveMapWidgetControlBar1 A").removeClass("active"),o()("#"+this.elId+"_raveMapWidgetControlBar2 A").removeClass("active")}saveMap(){let e={};null!=this.circleShape?(this.circleShape.setEditable(!1),e.latitude=this.circleShape.getCenter().lat(),e.longitude=this.circleShape.getCenter().lng(),e.radius=this.circleShape.getRadius(),this.mapOptions.saveFunction(!1,e)):this.raveShapeMa?(this.polygonShape.setEditable(!1),this.mapOptions.saveFunction(!0,this.getPolygonLatLngArray().bind(this))):this.markers.length>0&&this.mapOptions.saveFunction(!0,this.getPolygonLatLngArray().bind(this))}raveMapShowTraffic(){if(null!=this.trafficLayer)return this.trafficLayer.setMap(null),o()("#"+this.elId+"_btnTraffic").removeClass("active"),void(this.trafficLayer=null);this.trafficLayer=new google.maps.TrafficLayer,this.trafficLayer.setMap(this._map),o()("#"+this.elId+"_btnTraffic").addClass("active")}raveMapShowBicyclePaths(){if(null!=this.bicyclingLayer)return this.bicyclingLayer.setMap(null),o()("#"+this.elId+"_btnBicycle").removeClass("active"),void(this.bicyclingLayer=null);this.bicyclingLayer=new google.maps.BicyclingLayer,this.bicyclingLayer.setMap(this._map),o()("#"+this.elId+"_btnBicycle").addClass("active")}resize(){google.maps.event.trigger(this._map,"resize")}allowMapToPopOutClose(){o()("#"+this.elId).insertBefore(o()("#"+this.elId+"-rt-anchor")),(0,p.Nn)(),o()(".allowMapToPopOut A.closeModal").hide(),o()(".allowMapToPopOut A.openModal").show()}allowMapToPopOutOpen(){(0,p.F)(o()(".allowMapToPopOutModalContainer"),"allowMapToPopOutModalContainerStyles"),o()(".allowMapToPopOut A.openModal").hide(),o()(".allowMapToPopOut A.closeModal").show(),o()("#"+this.elId).appendTo(o()(".allowMapToPopOutModalContainerStyles").find(".allowMapToPopOutModalPlaceHolder").first()),this.resize()}clearDropPoints(){for(let e=0;e<this.markers.length;e++)this.markers[e].setMap(null);this.markers.length=0}async drawMarkersFromKml(e){const t=o().Deferred();this.placeMarkPremisesMap.length=0;const n=this.kmlLayer1=new geoXML3.parser({singleInfoWindow:!0,zoom:!1,map:this._map,createMarker:e=>{this.createMarkerOnLayer(e,n),t.resolve()},afterParse:()=>{this.processMarkers(),t.resolve()},failedParse:()=>{this.failedmarkers(),t.reject()}});return this.kmlLayer1.parse(e),t.promise()}showPins(){this.clearDropPoints(),null==this.pinsLayer?null!=this.mapOptions.pinsKml&&(this.saveMap(),this.drawMarkersFromKml(this.mapOptions.pinsKml),this.pinsLayer="Pretend Layer"):this.pinsLayer=null}wipeOutEverything(){this.raveJurisdictionShapeMap=null,this.mapListener=null,this.drawingListener=null,this.circleListeners=[],this.polygonShape=null,this.circleShape=null,this.trafficLayer=null,this.bicyclingLayer=null,this.markers=[],this.polygonShapeCallback=null,this.circleShapeCallback=null,this.deselectedMapSelections=!1,this.polygonLatLngArray=[],this._map=null,this.elId=null,this.kmlLayer=null,this.kmlLayer1=null,this.kmlLayer2=null,this.overlay=null,this.placeMarkPremisesMap=[]}getMap(){return this._map}isPolygon(){return null===this.circleShape}isCircle(){return!!this.circleShape}getPolygonLatLngArray(){return this.polygonShape?this.polygonShape.getPath().getArray():[]}getTotalPoints(){let e=this.getMapObjects(),t=0;return e&&(t+=e.polygon.length),t}getCenter(){return null===this.circleShape?null:this.circleShape.getCenter()}getRadius(){return null===this.circleShape?0:this.circleShape.getRadius()}drawShape(e,t){let n,i;return e&&(e.polygon&&e.polygon.length>1?n=this.drawPolygon(e.polygon,e.fill,e.stroke,t):i=this.drawCircle(e.polygon,e.radius,e.fill,e.stroke,t)),n||i}drawCircle(e,t,n,i,o){let a=new google.maps.Circle({map:this._map,center:e instanceof google.maps.LatLng?e:new google.maps.LatLng(e[0].lat(),e[0].lng()),radius:t,fillColor:n||"#5c699b",fillOpacity:this.mapOptions.circleFillOpacity,strokeColor:i||"#374062",strokeOpacity:this.mapOptions.circleStrokeOpacity,strokeWeight:this.mapOptions.circleStrokeWeight,editable:void 0===o||o});return this.circleShape=a,this.initCircleListeners(),a}startCircleDraw(){this.clear();let e=10*Math.pow(2,this.mapOptions.maxZoom+1-this._map.getZoom());this.drawingListener=google.maps.event.addListenerOnce(this._map,"click",t=>{this.drawCircle(t.latLng,e,this.mapOptions.circleFillColor,this.mapOptions.circleStrokeColor,!0),null!=this.circleShapeCallback&&this.circleShapeCallback()}),o()("#"+this.elId+"_btnDraw").removeClass("active"),o()("#"+this.elId+"_btnRadius").addClass("active")}drawPolygon(e,t,n,i){return this.polygonShape&&i&&(this.unregisterVerticeEditEvents(this.polygonShape.getPath()),this.polygonShape.setMap(null)),this.polygonShape=new h.A({paths:e,strokeColor:n||this.mapOptions.shapeStrokeColor||"#374062",strokeOpacity:this.mapOptions.shapeStrokeOpacity,strokeWeight:this.mapOptions.shapeStrokeWeight,fillColor:t||this.mapOptions.shapeFillColor||"#5c699b",fillOpacity:this.mapOptions.shapeFillOpacity,editable:void 0===i||i}),this.polygonLatLngArray=this.polygonShape.getPath().getArray().slice(0),this.polygonShape.setMap(this._map),window.DEBUG_MAP=this.polygonShape,this.polygonShape}startPolygonDraw(){this.clear(),this.drawingListener=google.maps.event.addListener(this._map,"click",e=>{const t=Object.assign([],this.getPolygonLatLngArray());t.push(new google.maps.LatLng(e.latLng.lat(),e.latLng.lng())),this.drawPolygon(t,null,null,!0)}),o()("#"+this.elId+"_btnRadius").removeClass("active"),o()("#"+this.elId+"_btnDraw").addClass("active"),this.polygonShapeCallback&&this.polygonShapeCallback()}storeShapeOnElement(e){let t=this.getMapObjects();t.name=e.mapName,e.raveMap=t}
2storeShapesOnElements(e,t,n){let i=this.getMapObjects();o()(e).val(i.isPolygon),o()(t).val(i.radius),o()(n).val(a.A.serializeToCustomFormat(i))}getMapObjects(){let e=this.getCenter();return{polygon:e?[e.lng(),e.lat()]:this.getPolygonLatLngArray(),originalPolygon:this.originalPolygon,isPolygon:this.isPolygon(),radius:this.getRadius(),center:e}}getCenterPoint(e){if(!e)return null;if(o().isArray(e)){let t=new google.maps.LatLngBounds;return e.forEach(function(e){t.extend(e)}),t.getCenter()}return e.getBounds().getCenter()}panAndZoom(e){const t=new google.maps.LatLngBounds;Array.isArray(e)||(e=[e]),e.forEach(e=>{e.getPosition?t.extend(e.getPosition()):e.getBounds?t.union(e.getBounds()):t.extend(e)}),this._map.fitBounds(t),this._map.panToBounds(t)}setCenter(e){e&&this.centerMap(e.lat(),e.lng())}centerMap(e,t){this._map.setCenter(new google.maps.LatLng(e,t))}setZoom(e){this.getMap().setZoom(e)}removeAllShapes(){this.clear()}destroy(){this.wipeOutEverything(),this.mapVue.$destroy(),this.mapVue.raveMap=null,this.mapVue=null,this.drawingListener&&google.maps.event.removeListener(this.drawingListener),o()(".mt-additionalShapes").remove()}fitToShape(e){void 0!==this._map&&null!==this._map&&this._map.setCenter(this.getCenterPoint(e));let t=a.A.calculateZoomToFit(e,this.getEl());this.setZoom(t)}generateMarker(e,t){this.svgMarkerCache=this.svgMarkerCache||{};let n="colorSVG_"+e||0;if(this.svgMarkerCache[n])return this.svgMarkerCache[n];let i=`<?xml version="1.0" ?>\n            <svg height="24" version="1.1" width="24" xmlns="http://www.w3.org/2000/svg" >\n             <g transform="translate(0 -1028.4)">\n              <path d="m12 0c-4.4183 2.3685e-15 -8 3.5817-8 8 0 1.421 0.3816 2.75 1.0312 3.906 0.1079 0.192 0.221 0.381 0.3438 0.563l6.625 11.531 6.625-11.531c0.102-0.151 0.19-0.311 0.281-0.469l0.063-0.094c0.649-1.156 1.031-2.485 1.031-3.906 0-4.4183-3.582-8-8-8zm0 4c2.209 0 4 1.7909 4 4 0 2.209-1.791 4-4 4-2.2091 0-4-1.791-4-4 0-2.2091 1.7909-4 4-4z" fill="${e}" transform="translate(0 1028.4)"/>\n              <path d="m12 3c-2.7614 0-5 2.2386-5 5 0 2.761 2.2386 5 5 5 2.761 0 5-2.239 5-5 0-2.7614-2.239-5-5-5zm0 2c1.657 0 3 1.3431 3 3s-1.343 3-3 3-3-1.3431-3-3 1.343-3 3-3z" fill="'+ color2 + '" transform="translate(0 1028.4)"/>\n             </g>\n            </svg>`;return this.svgMarkerCache[n]={url:"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(i),scaledSize:new google.maps.Size(35,35)},this.svgMarkerCache[n]}addMarkers(e){let t=[];return e.forEach(e=>{t.push(this.addMarker(e))}),t}addMarker(e){let t=new google.maps.Marker({position:e.location||new google.maps.LatLng(e.lat,e.lng),icon:this.generateMarker(e.color1,e.color2),map:this._map,optimized:!1,contentData:e.contentData});return e.showAccuracy&&l.A.registerAccuracyDisplay(e,this._map,t),l.A.registerTooltip(e,this._map,t),this.markers.push(t),t}showAccuracy(e,t){t.addListener("click",()=>{let t=new google.maps.Circle({map:this._map,center:e.location||new google.maps.LatLng(e.lat,e.lng),radius:e.accuracy,fillColor:e.color1,fillOpacity:this.mapOptions.circleFillOpacity,strokeColor:e.color2,strokeOpacity:this.mapOptions.circleStrokeOpacity,strokeWeight:this.mapOptions.circleStrokeWeight,editable:!1});const n=this._map.getBounds();n.union(t.getBounds()),this._map.fitBounds(n,{top:80,right:10,left:10,bottom:80}),this._map.setZoom(this._map.getZoom()+1)})}removeMarker(e){return e&&e.setMap(null),e}updateVerticies(e){this.polygonLatLngArray=e.getArray().slice(0)}registerVerticeEditEvents(e){google.maps.event.addListener(this.polygonShape.getPath(),"set_at",()=>{this.updateVerticies(e)}),google.maps.event.addListener(this.polygonShape.getPath(),"insert_at",()=>{this.updateVerticies(e)})}unregisterVerticeEditEvents(e){try{google.maps.event.clearListeners(e,"set_at"),google.maps.event.clearListeners(e,"insert_at")}catch(e){}}toggleVeil(e,t,n){if(!e||!t)throw new Error("targetElem or veilElem are undefined");t=o()(t),e=o()(e),t.width(e.width()).height(e.height()).css("position","absolute").css("z-index",201).addClass("fade"),n&&t.show(),g?(t.bind(g,()=>{n||t.hide(),t.off(g)}),n?t.addClass("show"):t.removeClass("show")):t.toggle(n)}}
2const _=function(e){if(!(this.restoredShapes&&(this.restoredShapes.circle||this.restoredShapes.polygon)||e||0!==this.markers.length)){let e=this.raveMapJurisdictionKmlLayer.getDefaultViewport();this._map.fitBounds(e)}}},nWPM:function(e,t,n){"use strict";n.d(t,{Ay:function(){return le}});var i=n("PcWQ"),o=n.n(i),a=n("mIew"),s=n("vSwR"),r=n("7RMj"),l=n("uXSz"),c=n("UDvT"),d=n("Vb5x"),u=n("+cQT"),p=n.n(u),h=n("3Op4"),m=n("fMi6"),f=n("bq4T"),g=n("ZdfX"),v=n("57R2"),y=n("aIax"),b=n("D/D5"),C=n("81Vk"),_=n("QsVC"),w=n("N3/v"),E=n("T2ux"),A=n("7FEy"),S=n("azsa"),x=n("37+i"),T=n("Vu1O"),M=n("XP/W"),L=n("wLJF"),O=n("1QhR"),k=n("Nijc"),I=n("qq79"),P=n("YHhx"),N=n("BWXT"),R=n("3qmu"),D=n("zuYd"),B=n("//vo"),F=n("ir2Y"),U=n("4Aza"),$=n("v265"),W=n("XhyP"),V=n("C9+w"),H=n("vgfv"),j=n("p+Sq"),K=n("GFs8"),G=n("9oYx"),z=n("Cpa8");const q="pk.eyJ1IjoibXJvYmVydHMiLCJhIjoiY2lpNjZva2N4MDFtdXN3a3FsczNsdXFmOCJ9.vhNOf-wZRBz6o0e7LBp3xA",X=(0,r.whichTransitionEvent)(),J=new C.A({filter:function(e,t){return t&&"REFERENCE"===t.get("layerType")}}),Y={RESET_MAP:"RESET_MAP",MAP_LOADED:"MAP_LOADED",SHAPE_PICKED:"SHAPE_PICKED",CREATE_SHAPE_CLICKED:"CREATE_SHAPE_CLICKED",UPDATE_SELECTED_SHAPES:"UPDATE_SELECTED_SHAPES"},Q="DrawingLayer",Z="JurisdictionLayer",ee="GoogleMapLayer",te="StreetMapLayer",ne="SatelliteLayer",ie="HybridLayer",oe="TopoLayer",ae="PointLayer",se="KmlConfirmSimpleLayer",re="KmlConfirmOriginalLayer";class le{constructor(e,t){var n=this;this.config=t,this.elId=e;const i=this.hasMapData(t.mapData);let{centerOfMap:r,initialZoom:l}=this.defaultCenterAndZoom(t);t.colors||(t.colors={fill:a.A.MONITORED_AREA_FILL,stroke:a.A.MONITORED_AREA_STROKE}),this.MapBoxAttribution='<a href="http://mapbox.com/about/maps" class="mapbox-logo" target="_blank">Mapbox</a><div class="mapbox-attribution-container"><a href="https://www.mapbox.com/about/maps/">\xa9 Mapbox | </a><a href="http://www.openstreetmap.org/copyright">\xa9 OpenStreetMap | </a><a href="https://www.mapbox.com/map-feedback/" target="_blank"><strong>Improve this map</strong></a>',this.layers={featureLayer:[],jurisdictionLayer:null,gridLayer:null},this.mapOptions=o().extend({},s.A,{additionalShapesClass:this.config.additionalShapesClass||t.additionalShapesClass,additionalShapesJson:this.config.additionalShapesJson||t.additionalShapesJson,allowAdditionalShapes:this.config.allowAdditionalShapes||t.allowAdditionalShapes,allowMapToPopOut:this.config.allowMapToPopOut,allowPins:this.config.allowPins,bottomToolBar:!1,circleFillColor:t.colors.fill,circleStrokeColor:t.colors.stroke,clearQueryResults:t.clearQueryResults,currentShape:"",initialZoom:l,jurisdiction:this.getJurisdictionUrl(t),jurisdictionKmlUrl:this.getJurisdictionKmlUrl(t),jurisdictionTest:t.jurisdictionUrlTest,latitude:r.lat(),longitude:r.lng(),mapOpenLayersEnabled:!0,mapToolBar:"boolean"!=typeof t.mapToolBar||t.mapToolBar,mapToolBarWithDrawControls:"boolean"!=typeof t.mapToolBarWithDrawControls||t.mapToolBarWithDrawControls,minZoom:2,drawMultipleShapes:t.drawMultipleShapes,onKmlLoadFunc:t.onKmlLoadFunc||ce.bind(this,i),parseKmlUrl:this.getParseKmlUrl(t),pinsKml:this.config.pinsKml,readOnly:!1,requireNew:t.requireNew,shapeFillColor:t.colors.fill,shapeMenu:t.shapeMenu,shapeStrokeColor:t.colors.stroke,showEditShapeColor:!1,showEditShapeOptions:!1,referenceLayers:t.referenceLayers,showHand:!1,showPen:!1,skipCenterOnKmlLoad:i,titleToolBar:!1,width:this.getEl().width(),selectedShapes:[],selectedLayers:[],currentColorPalette:null},t),!0===t.readOnly&&(this.mapOptions.mapToolBarWithDrawControls=!1),this._map=null,this.circleListeners=[],this.circleShape=null,this.circleShapeCallback=null,this.colorRotationIndex=0,this.deselectedMapSelections=!1,this.didMapLoad=!1,this.drawingListener=null,this.editFeatureColor="#aaaaaa",this.featureStyle=[],this.fillColor=["#f88","#8f8","#88f","#ff8","#8ff","#f8f"],this.gridClickDisabled=!1,this.infoWindowTimeoutHandle=null,this.localEvents=t.localEvents||new(p()),this.mapListener=null,this.mapOptions.pickedShape=[t.pickedShape||a.A.NOTHING],this.mapOptions.pickedLayer=[t.pickedLayer||a.A.NOTHING],this.markers=[],this.originalPolygon=null,this.pinsLayer=null,this.placeMarkPremisesMap=[],this.polygonLatLngArray=[],this.polygonShape=null,this.polygonShapeCallback=null,this.raveJurisdictionShapeMap=null,this.selectShape=null,this.shapes=[],this.strokeColor=["#8f8","#88f","#ff8","#8ff","#f8f","#f88"],this.trafficLayer=null,this.overlay=null,this.toEditOrDeleteShapeFeature=null,this.serviceBase=new G.A;for(var c=0;c<this.fillColor.length;c++)this.featureStyle[c]=this._setFeatureStyleColors(this.fillColor[c],this.strokeColor[c]);this.gfs=function(e){return[new I.Ay({stroke:new k.A({color:"black",width:1}),fill:new L.A({color:n.hexToRGBA("#8f8",.05)}),image:new M.A({radius:5,stroke:new k.A({color:"black",width:1}),fill:new L.A({color:"#8f8"})}),text:new P.A({text:e.get("USNG")?e.get("USNG"):e.get("CITY")})})]},this.gridHighlightStyle=new I.Ay({stroke:new k.A({color:"#f00",width:1}),fill:new L.A({color:"rgba(255,0,0,0.1)"}),text:new P.A({font:"12px Calibri,sans-serif",fill:new L.A({color:"#000"}),stroke:new k.A({color:"#f00",width:3})})}),this.gridOverlay=null;var d=[new I.Ay({stroke:new k.A({color:"blue",width:3}),fill:new L.A({color:"rgba(0, 0, 255, 0.1)"})}),new I.Ay({image:new M.A({radius:5,fill:new L.A({color:a.A.MONITORED_AREA_FILL}
2)}),geometry:function(e){var t=e.getGeometry().getCoordinates()[0];return new D.A(t)}})];this.gooleLayerRoad=new S.A({title:"Google Road Map",name:ee,source:new _.A({url:"http://mt1.google.com/vt/lyrs=m&x={x}&y={y}&z={z}"})}),this.streetMapLayer=new v.Ay({styleUrl:"mapbox://styles/mapbox/bright-v9",accessToken:q,styles:d,name:te}),this.satelliteLayer=new S.A({source:new A.A({url:"https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token="+q}),visible:!1,name:ne}),this.hybridLayer=new S.A({source:new A.A({url:"https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v10/tiles/{z}/{x}/{y}?access_token="+q}),visible:!1,name:ie}),this.topoLayer=new v.Ay({styleUrl:"mapbox://styles/mapbox/outdoors-v11",accessToken:q,visible:!1,name:oe}),this.jurisdictionLayer=new x.A({name:Z,source:new E.A({url:this.getJurisdictionKmlUrl(t),format:new $.Ay({extractStyles:!1,showPointNames:!0,extractAttributes:!0,maxDepth:10}),style:[this.getShapeStyle()]}),visible:!0,editable:!1}),this.drawingSource=new E.A({wrapX:!1}),this.drawingLayer=new x.A({name:Q,source:this.drawingSource,style:[this.getShapeStyle()]}),this.drawingLayer.setZIndex(99),this.pointSource=new E.A({wrapX:!1}),this.pointLayer=new x.A({name:ae,source:this.pointSource,style:[this.getShapeStyle()]}),this.kmlConfirmSimplifiedSource=new E.A({wrapX:!1}),this.kmlConfirmSimplifiedLayer=new x.A({name:se,source:this.kmlConfirmSimplifiedSource}),this.kmlConfirmOriginalSource=new E.A({wrapX:!1}),this.kmlConfirmOriginalLayer=new x.A({name:re,source:this.kmlConfirmOriginalSource})}_objectToHTML(e){let t="";for(let n in e)"object"!=typeof e[n]&&(t+="<b>"+n+"</b>: "+e[n]+"<br/>");return t}_setFeatureStyleColors(e){return[new I.Ay({stroke:new k.A({color:"black",width:1}),fill:new L.A({color:e}),image:new M.A({radius:5,stroke:new k.A({color:"black",width:1}),fill:new L.A({color:e})}),text:new P.A({text:""})})]}addMarker(e){let t=new B.A((0,T.fromLonLat)([e.lng||e.location.lng(),e.lat||e.location.lat()])),n=new g.A({geometry:t,name:e.contentData&&e.contentData.firstName+" "+e.contentData.lastName,html:e.contentData&&e.contentFormatter(e.contentData)}),i=`<?xml version="1.0" ?>\n            <svg height="24" version="1.1" width="24" xmlns="http://www.w3.org/2000/svg" >\n                <g transform="translate(0 -1028.4)">\n                    <path d="m12 0c-4.4183 2.3685e-15 -8 3.5817-8 8 0 1.421 0.3816 2.75 1.0312 3.906 0.1079 0.192 0.221 0.381 0.3438 0.563l6.625 11.531 6.625-11.531c0.102-0.151 0.19-0.311 0.281-0.469l0.063-0.094c0.649-1.156 1.031-2.485 1.031-3.906 0-4.4183-3.582-8-8-8zm0 4c2.209 0 4 1.7909 4 4 0 2.209-1.791 4-4 4-2.2091 0-4-1.791-4-4 0-2.2091 1.7909-4 4-4z" fill="${e.color1}" transform="translate(0 1028.4)"/>\n                    <path d="m12 3c-2.7614 0-5 2.2386-5 5 0 2.761 2.2386 5 5 5 2.761 0 5-2.239 5-5 0-2.7614-2.239-5-5-5zm0 2c1.657 0 3 1.3431 3 3s-1.343 3-3 3-3-1.3431-3-3 1.343-3 3-3z" fill="#ff3300" transform="translate(0 1028.4)"/>\n                </g>\n            </svg>`;var o=new Image;o.src="data:image/svg+xml,"+encodeURIComponent(i);var a=new I.Ay({image:new O.A({img:o,imgSize:[30,30]}),zIndex:1/0});return n.setStyle(a),this.pointLayer.getSource().addFeature(n),this._map.getView().fit(t,{padding:s.A.padding,maxZoom:s.A.maxZoom}),n}addMarkers(e){let t=[];return e.forEach(e=>{t.push(this.addMarker(e))}),t}allowMapToPopOutClose(){o()("#"+this.elId).insertBefore(o()("#"+this.elId+"-rt-anchor")),(0,c.Nn)(),o()(".allowMapToPopOut A.closeModal").hide(),o()(".allowMapToPopOut A.openModal").show()}allowMapToPopOutOpen(){(0,c.F)(o()(".allowMapToPopOutModalContainer"),"allowMapToPopOutModalContainerStyles"),o()(".allowMapToPopOut A.openModal").hide(),o()(".allowMapToPopOut A.closeModal").show(),o()("#"+this.elId).appendTo(o()(".allowMapToPopOutModalContainerStyles").find(".allowMapToPopOutModalPlaceHolder").first()),this.resize()}buildVueComponent(){const e=this.localEvents,t=this;this.mapVue=new(p())({el:"#"+this.elId,components:{RaveMapVue:h.A},template:'<rave-map-vue :id="id" :options="options"></rave-map-vue>',provide:()=>({raveMap:t,localEvents:e}),data:{options:this.mapOptions,id:this.elId},mounted(){var e=this,n=o()("#"+this.id+"_map")[0];if(void 0!==n){var i=o()("#"+this.id+"_map").offset().top-o()("#alertDeliveryPopupContent").offset().top;n.addEventListener("touchstart",function(n){e.touchDuration=(new Date).getTime(),n.pixel=[n.touches[0].clientX,n.touches[0].clientY-i],e.contextMenuTimeoutHandle=setTimeout(function(){e.options.readOnly||t.rightClickHandler(n)},1e3)}),n.addEventListener("touchend",function(t){e.touchDuration=(new Date).getTime()-e.touchDuration,t.pixel=[t.layerX,t.layerY],e.touchDuration<1e3&&clearTimeout(e.contextMenuTimeoutHandle),e.contextMenuTimeoutHandle=null})}},beforeDestroy(){const e=o()("<div>");e.insertAfter(this.$el),this.$el.parentNode.removeChild(this.$el),this.$el.id="",e.attr("id",this.id)}})}centerMap(e,t){this._map.getView().animate({center:(0,T.fromLonLat)([e,t]),duration:2e3,zoom:15})}circleLocation(e,t,n,i,o){return o=o||{fill:this.mapOptions.circleFillColor,stroke:this.mapOptions.circleStrokeColor},this.circleShape=new google.maps.Circle({map:this._map,center:new google.maps.LatLng(e,t),radius:n,fillColor:o.fill,fillOpacity:this.mapOptions.circleFillOpacity,strokeColor:o.stroke,strokeOpacity:this.mapOptions.circleStrokeOpacity,strokeWeight:this.mapOptions.circleStrokeWeight,editable:i}),this.initCircleListeners(),this.circleShape}clear(e,t,n){if(this.localEvents.$emit(Y.RESET_MAP),this.draw&&(this.select&&this._map.removeInteraction(this.select),this.modify&&this._map.removeInteraction(this.modify)),this.drawingSource&&this.drawingSource.clear(),this.drawingLayer&&this.drawingLayer.getSource()&&this.drawingLayer.getSource().clear(),t&&this.pointSource.clear(),n||(this.mapOptions.pickedShape=[a.A.NOTHING]),e=e||!1,t=t||!1,null!=this.polygonShape&&this.polygonShape.setMap(null),this.polygonShape=null,this.polygonLatLngArray=[],t){for(let e of this.markers)e.setMap(null);this.markers.length=0}this.circleShape&&(this.circleShape.setMap(null),o()("#"+this.elId+"_circleLabel").hide()),this.circleShape=null,this.drawingListener&&google.maps.event.removeListener(this.drawingListener),this.circleListeners.forEac
2h(function(e){google.maps.event.removeListener(e)}),this.circleListeners=[],e&&null!=this.kmlLayer1&&(this.kmlLayer1.hideDocument(),this.kmlLayer1=null,o()("#first1000Shown").length>0&&o()("#first1000Shown").hide()),this.placeMarkPremisesMap=[],o()("#"+this.elId+"_raveMapWidgetControlBar1 A").removeClass("active"),o()("#"+this.elId+"_raveMapWidgetControlBar2 A").removeClass("active"),this._map.removeInteraction(this.select),this._map.removeInteraction(this.modify)}clearDropPoints(){for(let e=0;e<this.markers.length;e++)this.markers[e].setMap(null);this.markers.length=0}closePopup(){return this.overlay.setPosition(void 0),this.selectedFeatureName=null,!1}compareDrawnVsExistingJurisdictionPolygon(e){e&&o().ajax({url:e,type:"GET",dataType:"text",crossDomain:!0}).done(e=>{let t=U.A.createPathFromKML(e);this.raveMapJurisdictionKmlLayer.ravePolygon=U.A.createRPolygonFromPath(t)}).fail(e=>{console.error("failed to load kml file",e)})}correctedRadius(e,t,n){return e*(0,T.getPointResolution)("EPSG:3857",1,(0,T.fromLonLat)([t,n]))}radiusFromCircleOnMap(e,t){return e*(0,T.getPointResolution)("EPSG:3857",1,t)}radiusForCircleOnMap(e,t){return e/(0,T.getPointResolution)("EPSG:3857",1,(0,T.fromLonLat)([t[0],t[1]]))}createMarkerOnLayer(e,t){let n=t.createMarker(e);google.maps.event.addListener(n,"click",function(){o()("#subscriberInfoPopup").hide()}),this.markers.push(n);let i=e.description;i=i.substring(i.indexOf("(")+1,i.indexOf(")")),i=i.split(","),2===i.length&&this.placeMarkPremisesMap.push(parseInt(i[1]))}defaultCenterAndZoom(e){let t,n;return e.center&&e.center.lat()&&(t=e.center),e.longitude&&e.latitude&&!e.center&&(t=new google.maps.LatLng(e.latitude,e.longitude)),n=e.mapZoom||10,e.initialZoom||delete e.initialZoom,t||(t=a.A.getUSACenter().center,n=a.A.getUSACenter().zoom),{centerOfMap:t,initialZoom:n}}deleteShape(){this.drawingLayer.getSource().removeFeature(this.toEditOrDeleteShapeFeature),this.toEditOrDeleteShapeFeature=null}destroy(){this.wipeOutEverything(),this.mapVue.$destroy(),this.mapVue.raveMap=null,this.mapVue=null,o()(".mt-additionalShapes").remove()}drawCircle(e,t,n,i,o,a){var r=this.radiusForCircleOnMap(t,[Number(e[0].lng()),Number(e[0].lat())]);const l=new N.A((0,T.fromLonLat)([Number(e[0].lng()),Number(e[0].lat())]),r),c=new g.A({geometry:l});return c.setStyle(this.getShapeStyle(n,i)),c.shapeText=a,this.drawingLayer.getSource().addFeature(c),this._map.getView().fit(l,{padding:s.A.padding,maxZoom:s.A.maxZoom}),console.log("Editable: "+o),l}async drawMarkersFromKml(e){const t=o().Deferred();this.placeMarkPremisesMap.length=0;const n=this.kmlLayer1=new geoXML3.parser({singleInfoWindow:!0,zoom:!1,map:this._map,createMarker:e=>{this.createMarkerOnLayer(e,n),t.resolve()},afterParse:()=>{this.processMarkers(),t.resolve()},failedParse:()=>{this.failedmarkers(),t.reject()}});return this.kmlLayer1.parse(e),t.promise()}drawPolygon(e,t){if(this.mapOptions.mapOpenLayersEnabled&&!Array.isArray(e.polygon))return this.loadWKTShape(e,t);this.polygonShape=new d.A({paths:e.polygon,strokeColor:e.stroke||this.mapOptions.shapeStrokeColor||"#374062",strokeOpacity:this.mapOptions.shapeStrokeOpacity,strokeWeight:this.mapOptions.shapeStrokeWeight,fillColor:e.fill||this.mapOptions.shapeFillColor||"#5c699b",fillOpacity:this.mapOptions.shapeFillOpacity,editable:void 0===t||t}),this.polygonLatLngArray=e.polygon;const n=new F.Ay([this.parseBoundary(e.polygon)]),i=new g.A({geometry:n,style:this.getShapeStyle(e.fill,e.stroke)});i.setStyle(this.getShapeStyle(e.fill,e.stroke)),i.shapeText=e.shapeText;let o=this.drawingLayer;return e.originalKml?o=this.kmlConfirmOriginalLayer:e.simplifiedKml&&(o=this.kmlConfirmSimplifiedLayer),o.getSource().addFeature(i),this._map.getView().fit(n,{padding:s.A.padding,maxZoom:s.A.maxZoom}),o}drawShape(e,t){let n,i;if(this.isShapesOrPointsAllowed())return e&&(e.polygon&&e.polygon.length>1?n=this.drawPolygon(e,t):i=this.drawCircle(e.polygon,e.radius,e.fill,e.stroke,t,e.shapeText),this.polygonShapeCallback&&this.polygonShapeCallback()),n||i}dropPoint(e,t,n){let i=new google.maps.LatLng(e,t);this.markers[this.markers.length]=new google.maps.Marker({position:i,map:this._map,title:"You live here",draggable:n})}addReferenceLayer(e){const t=new w.A({url:e.url,params:JSON.parse(e.params),serverType:e.serverType,transition:e.transition}),n=new S.A({name:e.name,source:t,style:this.gfs,editable:!1});n.setOpacity(1),n.setVisible(!0),this._map.addLayer(n)}dynamicReferenceLayersZip(e,t){var n=this,i=!1;loadshp({url:e,encoding:"utf-8"},function(e){JSON.parse(t.params);const o=new V.A({featureProjection:n._map.getView().getProjection().getCode()}).readFeatures(e,{featureProjection:n._map.getView().getProjection().getCode()});if(!i){const e=new E.A({features:o}),a=new x.A({name:t.name,layerType:"REFERENCE",source:e,style:n.gfs,editable:!1});a.setOpacity(1),a.setVisible(!0),n._map.addLayer(a),n._map.getView().fit(e.getExtent()),i=!0}})}isThePointsLimitReached(e){let t=this.getTotalPoints();
2return e.forEach(e=>{t+=e.length}),t>this.mapOptions.maxPointsAllowed&&(c.Ay.warning(Rave.t("mgtConsole.system.category.warning"),Rave.t("mgtConsole.map.restriction.points",[this.mapOptions.maxPointsAllowed]),Rave.t("mgtConsole.sentAlert.ok")),!0)}addEsriToDrawingLayer(e){let t=this,n=!1,i=this.mapOptions.maxShapesAllowed;loadshp({url:e,encoding:"utf-8"},function(e){if(e.features.length+t.getMapObjects().length>i)return void c.Ay.warning(Rave.t("mgtConsole.system.category.warning"),Rave.t("mgtConsole.map.restriction.length",[i]),Rave.t("mgtConsole.sentAlert.ok"));e.features.forEach(e=>{if(e.geometry.coordinates.length>1)throw new c.Ay.warning(z.A.t("mgtConsole.map.esriParseError"),z.A.t("mgtConsole.map.esriInvalid")),Error("Invalid ESRI")});const o=(new V.A).readFeatures(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});n||(t.drawingLayer.getSource().addFeatures(o),n=!0)})}dynamicReferenceLayers(e){console.log("load reference layer "+e);let t=this;const n=new XMLHttpRequest;n.responseType="arraybuffer";const i="/shapeFiles/jeffco_usng.zip";n.onload=function(){if(200!==this.status||0===this.response.byteLength)return void alert("Failed to load shapefile/");const e=this.getResponseHeader("Content-Type"),n=this.response;console.log("Content-type: "+e+" data size: "+n.length+" Data "+n);const o=new Blob([n],{type:e}),a=new FileReader;a.onload=function(){loadshp({url:o,encoding:"utf-8"},function(e){const n=(new V.A).readFeatures(e,{featureProjection:t._map.getView().getProjection()}),o=new E.A({features:n});t.layers.gridLayer=new x.A({name:i,source:o,style:t.gfs}),t.layers.gridLayer.setOpacity(.6),t.layers.gridLayer.setVisible(!1),t._map.addLayer(t.layers.gridLayer)})},a.readAsDataURL(o)},n.onreadystatechange=function(){n.readyState===XMLHttpRequest.OPENED&&n.send()},n.open("get",i)}editOrDeleteDrawnShape(e,t){if("DELETE"===e&&this.toEditOrDeleteShapeFeature){this.drawingSource.removeFeature(this.toEditOrDeleteShapeFeature);let e=this.toEditOrDeleteShapeFeature.shapeText,t=this.mapOptions.selectedShapes.findIndex(t=>t.name===e);return-1!==t&&0===this.drawingLayer.getSource().getFeatures().filter(t=>t.shapeText===e).length&&(this.mapOptions.selectedShapes.splice(t,1),this.localEvents.$emit("updateSelectedShapes")),void(this.mapOptions.currentShape="")}this.toEditOrDeleteShapeFeature&&(this.toEditOrDeleteShapeFeature.getStyle().text_.setText(t),this.mapObjects[this.toEditOrDeleteShapeFeature.id].label=t,this.toEditOrDeleteShapeFeature.changed(),this.persistShape(this.mapObjects[this.toEditOrDeleteShapeFeature.id]),this.closePopup())}enableReferenceLayer(e){e||(this._map.removeInteraction(J),this.gridClickDisabled=!0,this.layers.gridLayer.setVisible(!1))}filterSelectableLayers(e,t){return t&&t.get("name")===Q}failedmarkers(){alert("markers failed")}fitToShape(e){}generateMarker(e,t){this.svgMarkerCache=this.svgMarkerCache||{};let n="colorSVG_"+e||0;if(this.svgMarkerCache[n])return this.svgMarkerCache[n];let i=`<?xml version="1.0" ?>\n            <svg height="24" version="1.1" width="24" xmlns="http://www.w3.org/2000/svg" >\n             <g transform="translate(0 -1028.4)">\n              <path d="m12 0c-4.4183 2.3685e-15 -8 3.5817-8 8 0 1.421 0.3816 2.75 1.0312 3.906 0.1079 0.192 0.221 0.381 0.3438 0.563l6.625 11.531 6.625-11.531c0.102-0.151 0.19-0.311 0.281-0.469l0.063-0.094c0.649-1.156 1.031-2.485 1.031-3.906 0-4.4183-3.582-8-8-8zm0 4c2.209 0 4 1.7909 4 4 0 2.209-1.791 4-4 4-2.2091 0-4-1.791-4-4 0-2.2091 1.7909-4 4-4z" fill="${e}" transform="translate(0 1028.4)"/>\n              <path d="m12 3c-2.7614 0-5 2.2386-5 5 0 2.761 2.2386 5 5 5 2.761 0 5-2.239 5-5 0-2.7614-2.239-5-5-5zm0 2c1.657 0 3 1.3431 3 3s-1.343 3-3 3-3-1.3431-3-3 1.343-3 3-3z" fill="'+ color2 + '" transform="translate(0 1028.4)"/>\n             </g>\n            </svg>`;return this.svgMarkerCache[n]={url:"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(i),scaledSize:new google.maps.Size(35,35)},this.svgMarkerCache[n]}getCenter(){return null===this.circleShape?null:this.circleShape.getCenter()}getEl(){return o()("#"+this.elId)}getJurisdictionKmlUrl(e){return e.jurisdictionKmlUrl?e.jurisdictionKmlUrl+(0,l.cacheBuster)():this.getJurisdictionUrl(e)}getJurisdictionUrl(e){if(e.jurisdictionUrl)return e.jurisdictionUrl+(0,l.cacheBuster)()}getJurisdictionStyle(e,t){return new I.Ay({stroke:new k.A({color:t||a.A.JURISDICTION_STROKE,width:2}),fill:new L.A({color:e||a.A.MONITORED_AREA_FILL}
2)})}getJurisdictionZoom(){return this.mapOptions.mapZoom}getMap(){return this._map}getMapObjects(){let e=[];return this.drawingLayer.getSource().getFeatures().forEach(t=>{const n=t.getGeometry().getType();if("Circle"===n){const n=this.radiusFromCircleOnMap(t.getGeometry().getRadius(),t.getGeometry().getCenter()),i=t.getGeometry().clone().transform("EPSG:3857","EPSG:4326");e.push({polygon:"POINT ("+i.getCenter()[0]+" "+i.getCenter()[1]+")",originalPolygon:null,isPolygon:!1,radius:n,center:"POINT ("+i.getCenter()[0]+" "+i.getCenter()[1]+")",shapeText:t.shapeText,fill:t.style_&&t.style_.fill_?t.style_.fill_.color_:this.mapOptions.currentColorPalette,stroke:t.style_&&t.style_.stroke_?t.style_.stroke_.color_:this.mapOptions.currentColorPalette})}else if("Polygon"===n){let n=(new W.A).writeGeometry(t.getGeometry(),{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});e.push({polygon:n,originalPolygon:null,isPolygon:!0,radius:null,center:null,shapeText:t.shapeText,fill:t.style_&&t.style_.fill_?t.style_.fill_.color_:this.mapOptions.currentColorPalette,stroke:t.style_&&t.style_.stroke_?t.style_.stroke_.color_:this.mapOptions.currentColorPalette})}}),e}fitAllShapes(){let e=[];this.drawingLayer.getSource().getFeatures().forEach(function(t){e.push(t.getGeometry())}),this.layers.jurisdictionLayer&&this.layers.jurisdictionLayer.getSource().getFeatures().forEach(function(t){e.push(t.getGeometry())});let t=new R.A(e);e.length>0&&this._map.getView().fit(t.getExtent(),{padding:s.A.padding,maxZoom:s.A.maxZoom})}getParseKmlUrl(e){return e.parseKmlUrl?e.parseKmlUrl:e.uploadCsvUrl?e.uploadCsvUrl:void 0}getPolygonLatLngArray(){let e=[],t=this.getMapObjects();return t&&t.forEach(t=>e=a.A.parseWktFormat(t.polygon)),e}getTotalPoints(){let e=this.getMapObjects(),t=0;if(e)for(const n of e)n.polygon.indexOf("POINT")>-1?t+=1:t+=a.A.parseWktFormat(n.polygon).length;return t}getRadius(){return null===this.circleShape?0:this.circleShape.getRadius()}getRavePolygonCenter(){return null===this.polygonShape?null:this.polygonShape.getBounds().getCenter()}getShapeStyle(e,t,n){return e=e&&e.includes("rgba")?e:this.hexToRGBA(e||this.mapOptions.shapeFillColor||"#374062",n),t=t&&t.includes("rgba")?t:this.hexToRGBA(t||this.mapOptions.shapeStrokeColor||"#374062"),new I.Ay({stroke:new k.A({color:t,width:4}),fill:new L.A({color:e})})}getZoom(){return this._map.getView().getZoom()}gridFeatureStyle(e,t){return[new I.Ay({stroke:new k.A({color:"black",width:1}),fill:new L.A({color:"#8f8"}),image:new M.A({radius:5,stroke:new k.A({color:"black",width:1}),fill:new L.A({color:"#8f8"})}),text:new P.A({text:""})})]}gridTextStyleFunction(){return[new I.Ay({text:new P.A({text:"doodah"})})]}hasMapData(e){return!!(e&&e.polygon&&e.polygon.length>0)}hexToRGBA(e,t){var n,i,o="";return 4===e.length?(n=e.charAt(1)+e.charAt(1),i=e.charAt(2)+e.charAt(2),o=e.charAt(3)+e.charAt(3)):(n=e.substr(1,2),i=e.substr(3,2),o=e.substr(5,2)),void 0===t&&(t=.5),"rgba( "+parseInt(n,16)+", "+parseInt(i,16)+", "+parseInt(o,16)+", "+t+" )"}hideLabel(){o()("#"+this.elId+"_circleLabel").addClass("fade")}initCircleListeners(){this.labelCircle(this.circleShape),this.scheduleLabelHide(),this.circleListeners.push(google.maps.event.addListener(this.circleShape,"radius_changed",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()})),this.circleListeners.push(google.maps.event.addListener(this.circleShape,"click",()=>{const e=o()("#"+this.elId+"_circleLabel");e.hasClass("fade")?e.removeClass("fade"):e.addClass("fade")})),this.circleListeners.push(google.maps.event.addListener(this._map,"idle",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()})),this.circleListeners.push(google.maps.event.addListener(this.circleShape,"center_changed",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()})),this.circleListeners.push(google.maps.event.addListener(this._map,"center_changed",()=>{this.labelCircle(this.circleShape),this.scheduleLabelHide()}))}initSelect(){if(!this.mapOptions.readOnly){var e=this;this.selectShape=new C.A({wrapX:!1,filter:this.filterSelectableLayers}),this.selectShape.on("select",function(t){if(t.selected.length>0){void 0!==t.selected[0].values_.geometry&&(e.mapOptions.currentShape=t.selected[0].values_.geometry.constructor.name);var n=t.target.getFeatures().array_;null!==e.toEditOrDeleteShapeFeature&&n[0].ol_uid===e.toEditOrDeleteShapeFeature.ol_uid||(e.toEditOrDeleteShapeFeature=o().extend({},n[0])),e.modify=new b.A({features:t.target.getFeatures()}),"Circle"===e.toEditOrDeleteShapeFeature.getGeometry().getType()&&(e.toEditOrDeleteShapeFeature.getGeometry().on("change",t=>{e.labelCircle(t.target.getSimplifiedGeometry())}),e.modify.on("modifyend",t=>{e.labelCircle(t.features.getArray()[0].getGeometry()),e.scheduleLabelHide()})),e._map.addInteraction(e.modify)}
2if(t.deselected.length>0&&(e._map.removeInteraction(e.modify),e.mapOptions.showEditShapeOptions=!1,e.mapOptions.currentShape="",null!==e.toEditOrDeleteShapeFeature)){var i=e.getShapeStyle(e.editFeatureColor,e.editFeatureColor,.5);e.toEditOrDeleteShapeFeature.setStyle(i),e.toEditOrDeleteShapeFeature=null}}),this._map.on("click",function(t){e._map.forEachFeatureAtPixel(t.pixel,(t,n)=>{n&&n.getProperties().name===Q&&t.ol_uid&&null!==t.getStyle()&&void 0!==t.getStyle().getFill&&(e.editFeatureColor=e.rgbaToHex(t.getStyle().getFill().getColor()))})}),this._map.addInteraction(this.selectShape)}}arToCol(e){for(var t={},n=0;n<e.length;n++)t[n.toString()]=e[n];return t}installPolygonEventHandlers(){const e=this.mapOptions.polygonAdded?this.mapOptions.polygonAdded:()=>{o()("#dtr_sm_geo").show()};this.polygonShapeCallback=this.circleShapeCallback=e}isCircle(){return!!this.circleShape}isPolygon(){return null===this.circleShape}isShapesOrPointsAllowed(){let e=!0;return this.getMapObjects().length>=this.mapOptions.maxShapesAllowed&&(c.Ay.warning(Rave.t("mgtConsole.system.category.warning"),Rave.t("mgtConsole.map.restriction.length",[this.mapOptions.maxShapesAllowed]),Rave.t("mgtConsole.sentAlert.ok")),e=!1),this.getTotalPointsSelected()>=this.mapOptions.maxPointsAllowed&&(c.Ay.warning(Rave.t("mgtConsole.system.category.warning"),Rave.t("mgtConsole.map.restriction.points",[this.mapOptions.maxPointsAllowed]),Rave.t("mgtConsole.sentAlert.ok")),e=!1),e}getTotalPointsSelected(){return this.getPointsInShape()}getPointsInShape(){let e=0;return this.getMapObjects().forEach(t=>{if(null!==t.polygon){var n=a.A.parseShapeFromBackendFormat(t.polygon);n&&(e+=n.length)}}),e}kmlClick(e){google.maps.event.trigger(this.markers[e],"click")}labelCircle(e){if(e){var t=this.radiusFromCircleOnMap(e.getRadius(),e.getCenter());this.radiusOverlay&&(o()("#"+this.elId+"_circleLabel").removeClass("fade").text("Radius: "+a.A.formatDistance(t,Rave.defaults.locale)).show(),this.radiusOverlay.setPosition(e.getCenter()))}}loadMap(){return this.didMapLoad||(this.restoredShapes=null,this.installPolygonEventHandlers(),this.buildVueComponent(),this.removeAllShapes(),this.mapOptions.mapData&&(this.mapOptions.mapData.length>0?this.mapOptions.mapData.forEach(e=>this.restoredShapes=this.restoreMap(e)):this.restoreMap(this.mapOptions.mapData)),this.restoredShapes&&this.restoredShapes.zoom&&this.getMap().setZoom(this.restoredShapes.zoom),this.didMapLoad=!0),this}loadReferenceLayer(e){this.serviceBase.send({url:Rave.defaults.referenceLayer.loadReferenceLayerUrl,data:e.filePath}).done(t=>{const n=Buffer.from(t),i=new Blob([n],{type:"application/zip"});this.dynamicReferenceLayersZip(i,e),o()("#mapVeilLoader").hide(),this._map.addInteraction(J)}).fail(e=>{console.error("failed to load referenceLayer file",e),o()("#mapVeilLoader").hide()})}loadWKTShape(e,t){let n=(new W.A).readFeature(e.polygon,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});if("Point"===n.getGeometry().getType()){let t=n.getGeometry().getFirstCoordinate(),i=this.radiusForCircleOnMap(e.radius,(0,T.toLonLat)(t));n=new g.A({geometry:new N.A(t,i)})}n.setStyle(this.getShapeStyle(e.fill,e.stroke)),n.shapeText=e.shapeText,this.drawingLayer.getSource().addFeature(n),this.polygonShape=new d.A({paths:a.A.parseWktFormat(e.polygon),strokeColor:e.stroke||this.mapOptions.shapeStrokeColor||"#374062",strokeOpacity:this.mapOptions.shapeStrokeOpacity,strokeWeight:this.mapOptions.shapeStrokeWeight,fillColor:e.fill||this.mapOptions.shapeFillColor||"#5c699b",fillOpacity:this.mapOptions.shapeFillOpacity,editable:void 0===t||t})}makeMapTypeSelection(e){o()("#"+this.elId+"_mapTypeSelections").css("display","none"),this.deselectedMapSelections=!0,o()("#"+this.elId+"_mapTypeSelection").html(e.innerHTML),this._map.setMapTypeId(e.getAttribute("value").toLowerCase())}paintJurisdiction(e,t,n){this.layers.jurisdictionLayer=new x.A({name:Z,source:new E.A({url:this.getJurisdictionKmlUrl(this.config),format:new $.Ay({extractStyles:!1,showPointNames:!0,extractAttributes:!0,maxDepth:10})}),style:[this.getShapeStyle("#ffffff","#0000ff",0,.6)],visible:!0,editable:!1}),this._map.addLayer(this.layers.jurisdictionLayer),this.raveMapJurisdictionKmlLayer=this.layers.jurisdictionLayer,this.compareDrawnVsExistingJurisdictionPolygon(this.config.jurisdictionKmlUrl),this.fitAllShapes()}panAndZoom(e){const t=new google.maps.LatLngBounds;
2Array.isArray(e)||(e=[e]),e.forEach(e=>{e.getPosition?t.extend(e.getPosition()):e.getBounds?t.union(e.getBounds()):t.extend(e)}),this.fitAllShapes()}panToLocation(e,t){this._map.panTo(new google.maps.LatLng(e,t))}parseBoundary(e){const t=[];return e.forEach(function(e){t.push((0,T.fromLonLat)([Number(e.lng()),Number(e.lat())]))}),t}postMapLoad(){this.mapOptions.jurisdiction&&this.paintJurisdiction(this.mapOptions.jurisdiction,this.mapOptions.jurisdictionTest,this.mapOptions.jurisdictionKmlUrl),this.localEvents.$emit(Y.MAP_LOADED,this)}processMarkers(){"function"==typeof this.postProcessMarkers&&this.postProcessMarkers()}removeAllShapes(){this.clear()}removeMarker(e){return e}renderMap(e,t,n,i,a){var r=j.NT;let l,c=this,d=["metric","us"],u=document.getElementById("markerOverLayPopup"),p=document.getElementById(this.elId+"_circleLabel");this.overlay=new H.A({element:document.getElementById("labelPopup"+this.elId),autoPan:!0,autoPanAnimation:{duration:250}}),this.markerOverlay=new H.A({element:u,autoPan:!0,autoPanAnimation:{duration:250}}),this.radiusOverlay=new H.A({element:p,autoPan:!0,autoPanAnimation:{duration:250}}),this._map=new m.A({controls:r({zoom:!1,rotate:!1}).extend([(l=new K.A({units:d[1]}),l)]),target:document.getElementById(i),overlays:[this.overlay,this.markerOverlay,this.radiusOverlay],layers:[c.streetMapLayer,c.satelliteLayer,c.hybridLayer,c.topoLayer,c.jurisdictionLayer,c.pointLayer,c.kmlConfirmSimplifiedLayer,c.kmlConfirmOriginalLayer,c.drawingLayer],view:new f.Ay({center:(0,T.transform)([t,e],"EPSG:4326","EPSG:3857"),zoom:this.mapOptions.initialZoom,projection:"EPSG:3857"})}),this._map.getViewport().addEventListener("dragover",function(e){e.preventDefault()}),this._map.getViewport().addEventListener("drop",function(e){e.preventDefault();const t=e.dataTransfer.files;for(let e=0,n=t.length;e<n;++e){const n=t.item(e);loadshp({url:n,encoding:"utf-8"},function(e){const t=(new V.A).readFeatures(e,{featureProjection:c._map.getView().getProjection()}),n=new E.A({features:t}),i=new x.A({name:"raveAlertOpenLayer",source:n,style:c.featureStyle[c.colorRotationIndex]}),o=i.getStyle();o[0].fill_.color_=c.hexToRGBA(o[0].fill_.color_,.05),i.setStyle(o),c.layers.featureLayer.push(i);var a=c.layers.featureLayer.length-1;c.layers.featureLayer[a].setOpacity(.6),c._map.addLayer(c.layers.featureLayer[a]),c._map.getView().fit(n.getExtent(),{padding:s.A.padding,maxZoom:s.A.maxZoom})})}c.colorRotationIndex++,c.colorRotationIndex>=c.fillColor.length&&(c.colorRotationIndex=0)}),this._map.once("postrender",function(e){window.onerror=function(e,t,n){return e.indexOf("removeEventListener")>=0||e.indexOf("getCoordinates")>=0||e.indexOf("feature.getStyle")>=0||e.indexOf("feature.setStyle")>=0}}),this._map.on("moveend",function(){if(null===c.layers.gridLayer)return;c._map.getView().getZoom()<12?(o()("#featurePopup").hide(),c.gridClickDisabled=!0):c.gridClickDisabled=!1}),this._map.on("contextmenu",function(e){c.mapOptions.readOnly||c.rightClickHandler(e)}),this._map.on("pointermove",function(e){!e.dragging&&c.gridClickDisabled});var h=e=>{var t=[];if(this._map.forEachFeatureAtPixel(e.pixel,(e,n)=>{n&&n.getProperties().name===ae&&e.ol_uid?t.push(e):(this.markerOverlay.setPosition(null),o()(u)&&o()(u).popover("dispose"))}),t.length>0){for(var n=[],i=0,a=t.length;i<a;++i)void 0!==t[i].get("html")&&(n=t[i].get("html"));o()(u).popover({placement:"top",html:!0,content:n}),this.markerOverlay.setPosition(e.coordinate),o()(u).popover("show")}};this._map.on("click",function(e){h(e)}),this._map.on("movestart",function(){o()(u).popover("dispose")}),c.gridOverlay=new x.A({name:"raveAlertOpenLayer",source:new E.A,map:c._map,style:function(e){return c.gridHighlightStyle.getText().setText(e.get("name")),c.gridHighlightStyle}});return J.on("select",function(e){if(!c.gridClickDisabled){var t=e.target.getFeatures();if(void 0===t.array_||t.array_.length<1)o()("#featurePopup").hide();else{var n=t.array_[0].values_;t.array_[0].selected=!0,void 0!==n?(n.USNG,o()("#featurePopup").html(c._objectToHTML(n)).show()):o()("#featurePopup").hide()}}}),c._map.on("singleclick",function(e){if(c.gridClickDisabled)return;const t=c._map.getView().getResolution();let n=!1;
2e.target.getLayers().forEach(i=>{if(void 0!==i.getSource().getFeatureInfoUrl){const a=i.getSource().getFeatureInfoUrl(e.coordinate,t,"EPSG:3857",{INFO_FORMAT:"application/json"});a&&fetch(a).then(e=>e.text()).then(e=>{let t=JSON.parse(e);o()("#featurePopup").html(c._objectToHTML(t.features[0].properties)).show(),c.addSelectedShape(t),n=!0})}}),n||o()("#featurePopup").hide()}),this._map.once("rendercomplete",()=>{o()("#"+this.elId+"_map").append(this.MapBoxAttribution),o()(".ol-scale-line-inner").bind("click",function(){l.getUnits()===d[0]?l.setUnits(d[1]):l.setUnits(d[0])}),a()}),this._map}addSelectedShape(e){if(!e)return;let t=this;this.drawingLayer.getSource().getFeatures().forEach(e=>{t.highlight===e&&t.drawingLayer.getSource().removeFeature(e)});const n=new F.Ay(e.features[0].geometry.coordinates[0]),i=new g.A({geometry:n,style:this.gridHighlightStyle});i.setStyle(this.gridHighlightStyle),i.shapeText="Selected",this.highlight=i,this.drawingLayer.getSource().addFeature(i)}resize(){google.maps.event.trigger(this._map,"resize")}restoreMap(e){let t,n,i,o;return this.mapOptions.mapOpenLayersEnabled?Array.isArray(e.polygon)&&1===e.polygon.length?n=this.drawCircle(e.polygon,e.radius,e.fill,e.stroke,!0,e.shapeText):(e.polygon&&e.polygon.indexOf("POLYGON")>-1||e.polygon&&e.polygon.indexOf("POINT")>-1)&&(n=this.restorePolygon(e)):e&&(e.polygon&&e.polygon.length>2?n=this.restorePolygon(e):(i=this.restoreRadius(e),o=this.getCenter(),t=a.A.calculateZoomToFit(i,this.getEl())),o&&this.centerMap(o.lat(),o.lng())),this.fitAllShapes(),{zoom:t,polygon:n,circle:i}}restorePolygon(e){return this.drawPolygon(e,!this.config.readOnly)}restoreRadius(e){if(e&&e.polygon&&e.radius)return e.radius=+e.radius,"object"==typeof e.polygon[0]?this.circleLocation(e.polygon[0].lat(),e.polygon[0].lng(),e.radius,!this.config.readOnly):this.circleLocation(e.polygon[a.A.LAT],e.polygon[a.A.LON],e.radius,!this.config.readOnly)}removeMapInteractionExternally(){this._map.removeInteraction(this.draw),this.select&&this._map.removeInteraction(this.select),this.modify&&this._map.removeInteraction(this.modify)}rgbaToHex(e){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")),n="#";t=t.split(",");for(var i=0;i<3;i++){var o=parseInt(t[i]).toString(16);n+=(o.length<2?"0":"")+o}return n}rightClickHandler(e){var t=this;e.preventDefault(),t._map.forEachFeatureAtPixel(e.pixel,(e,n)=>{if(n&&n.getProperties().name===Q&&e.ol_uid){void 0!==e.getStyle().getFill&&(t.editFeatureColor=t.rgbaToHex(e.getStyle().getFill().getColor())),t.toEditOrDeleteShapeFeature=e;var i=t.selectShape.getFeatures();i.clear(),i.push(e),t.selectShape.dispatchEvent({type:"select",selected:[t.toEditOrDeleteShapeFeature],deselected:[]}),t.mapOptions.showEditShapeOptions=!0}})}saveMap(){let e={},t=new W.A;this.drawingLayer.getFeatures().forEach(function(n){const i=n.getGeometry().getType();if("Circle"===i){let t=i.feature.getGeometry().getCenter(),n=i.feature.getGeometry().getRadius();this.circleShape.setEditable(!1),e.latitude=t.lat(),e.longitude=t.lng(),e.radius=n,this.mapOptions.saveFunction(!1,e)}else if("Polygon"==i){let e=t.writeGeometry(n.getGeometry());this.polygonShape.setEditable(!1),this.mapOptions.saveFunction(!0,e)}})}scheduleLabelHide(){setTimeout(()=>{this.hideLabel()},2e3)}setBaseLayer(e){let t=this;switch(t.streetMapLayer.setVisible(!1),t.satelliteLayer.setVisible(!1),t.hybridLayer.setVisible(!1),t.topoLayer.setVisible(!1),e){case"STREET":t.streetMapLayer.setVisible(!0);break;case"SATELLITE":t.satelliteLayer.setVisible(!0);break;case"HYBRID":t.hybridLayer.setVisible(!0);break;case"TERRAIN":t.topoLayer.setVisible(!0)}}setCenter(e){e&&this.centerMap(e.lng(),e.lat())}setZoom(e){this._map.getView().animate({zoom:e,duration:250})}showAccuracy(e,t){t.addListener("click",()=>{let t=new google.maps.Circle({map:this._map,center:e.location||new google.maps.LatLng(e.lat,e.lng),radius:e.accuracy,fillColor:e.color1,fillOpacity:this.mapOptions.circleFillOpacity,strokeColor:e.color2,strokeOpacity:this.mapOptions.circleStrokeOpacity,strokeWeight:this.mapOptions.circleStrokeWeight,editable:!1});const n=this._map.getBounds();n.union(t.getBounds()),this._map.fitBounds(n,{top:80,right:10,left:10,bottom:80}),this._map.setZoom(this._map.getZoom()+1)})}showMapTypeSelections(){this.deselectedMapSelections?this.deselectedMapSelections=!1:o()("#"+this.elId+"_mapTypeSelections").css("display","block")}showPins(){this.clearDropPoints(),null==this.pinsLayer?null!=this.mapOptions.pinsKml&&(this.saveMap(),this.drawMarkersFromKml(this.mapOptions.pinsKml),this.pinsLayer="Pretend Layer"):this.pinsLayer=null}startCircleDraw(){this._map.removeInteraction(this.draw),this.mapOptions.drawMultipleShapes||this.clear(),this.draw=new y.Ay({source:this.drawingSource,type:"Circle",style:this.getShapeStyle()}),this._map.addInteraction(this.draw),this.circleShape=this.draw;const e=this;this.draw.on("drawstart",e=>{e.feature.getGeometry().on("change",e=>{const t=e.target;this.labelCircle(t.getSimplifiedGeometry())})}),this.draw.on("drawend",t=>{this.labelCircle(t.feature.getGeometry()),e.stopPolygonDraw(t),e._map.removeInteraction(e.draw)}),o()("#"+this.elId+"_btnRadius").addClass("active")}startPolygonDraw(){this._map.removeInteraction(this.draw),this.mapOptions.drawMultipleShapes||this.clear(),this.draw=new y.Ay({source:this.drawingSource,type:"Polygon",style:this.getShapeStyle()}),this._map.addInteraction(this.draw);const e=this;this.draw.on("drawend",t=>{e._map.removeInteraction(e.draw),e.stopPolygonDraw(t),e.mapOptions.currentShape=""}),o()("#"+this.elId+"_btnDraw").addClass("active"),this.polygonShapeCallback&&this.polygonShapeCallback()}stopPolygonDraw(e){let t=new W.A,n=e.feature.getGeometry();const i=e.feature.getGeometry().getType();if("Circle"===i){let t=e.feature.getGeometry().getCenter(),i=e.feature.getGeometry().getRadius();console.log("Point ("+t+") Radius: "+i);const o=n.clone().transform("EPSG:3857","EPSG:4326");console.log("Point ("+o.getCenter()+") Radius: "+i)}else if("Polygon"==i){let e=t.writeGeometry(n,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});console.log("Polygon: "+e)}e.feature.on("modifyend",function(e){e.setStyle(this.getShapeStyle()),console.log("Feature edit end: "+e.getType())}),e.feature.setStyle(this.getShapeStyle()),this.scheduleLabelHide()}storeShapeOnElement(e){let t=this.getMapObjects();t[0].name=e.mapName,e.raveMap=t[0]}toggleVeil(e,t,n){if(!e||!t)throw new Error("targetElem or veilElem are undefined");t=o()(t),e=o()(e),t.width(e.width()).height(e.height()).css("position","absolute").css("z-index",201).addClass("fade"),n&&t.show(),X?(t.bind(X,()=>{n||t.hide(),t.off(X)}),n?t.addClass("show"):t.removeClass("show")):t.toggle(n)}wipeOutEverything(){this.raveJurisdictionShapeMap=null,this.mapListener=null,this.drawingListener=null,this.circleListeners=[],this.polygonShape=null,this.circleShape=null,this.markers=[],this.polygonShapeCallback=null,this.circleShapeCallback=null,this.deselectedMapSelections=!1,this.polygonLatLngArray=[],this._map=null,this.elId=null,this.kmlLayer=null,this.kmlLayer1=null,this.kmlLayer2=null,this.overlay=null,this.placeMarkPremisesMap=[]}}
2const ce=function(e){if(!(this.restoredShapes&&(this.restoredShapes.circle||this.restoredShapes.polygon)||e||0!==this.markers.length)){let e=this.raveMapJurisdictionKmlLayer.getDefaultViewport();this._map.fitBounds(e)}}},Vb5x:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});const i=e=>void 0===e;var o=n("2cXZ");class a{constructor(e,t){this.polygon=e,this.path=t,this.lines=[],this.createLines()}createLines(){const e=this,t=e.polygon,n=e.path,i=e.lines,o=this._lineLengths(n.getLength(),t.lineSize),a={strokeColor:t.get("strokeColor"),strokeOpacity:t.get("strokeOpacity"),strokeWeight:t.get("strokeWeight")},s=t.getMap();for(var r=0,l=0;l<o.length;l++){const e=[],c=Math.min(r+o[l],n.getLength());for(;r<c;r++)e.push(n.getAt(r));r--;const d=new google.maps.Polyline;d.setPath(e),d.setOptions(a),d.setMap(s),1===o.length&&d.setEditable(this.polygon.editable),s&&this.registerTooltip(d,s),d.addListener("click",()=>{i.forEach(e=>e.setEditable(!1)),d.setEditable(!0)}),d.addListener("mouseover",()=>{d.set("strokeColor",t.highlightColor),d.editable||d.setOptions({strokeWeight:10})}),d.addListener("mouseout",()=>{d.setOptions(a),d.setOptions({strokeWeight:3})}),i.push(d)}i[i.length-1].getPath().push(n.getAt(0));let c=!1,d=!0;i.forEach(n=>{n.getPath().addListener("insert_at",function(){e.updateFromLines(d)}),n.getPath().addListener("remove_at",function(){e.updateFromLines(d)}),n.getPath().addListener("set_at",function(t){if(0!==t&&t!==this.getLength()-1||c)c=!1,e.updateFromLines(d);else{const o=e.findNeighbor(i,n,t);c=!0,o.path.setAt(o.index,this.getAt(t))}}),n.addListener("rightclick",function(n){const o=n.vertex;if(null!=o){if(this.getPath().removeAt(n.vertex),0===o||o===this.getPath().getLength()){const t=e.findNeighbor(i,this,o),n=0===o?0:this.getPath().getLength()-1;d=!1,t.path.setAt(t.index,this.getPath().getAt(n)),d=!0}if(1===this.getPath().getLength()){this.setMap(null);const e=i.indexOf(this);i.splice(e,1)}const a=e.getPathIndex();t.getPaths().getAt(a).getLength()<3&&t.getPaths().removeAt(a)}})})}
2openTooltip(e,t,n){const i=new google.maps.InfoWindow({content:"<div>hi</div>"});this.tooltips.push(i),i.setPosition(n.latLng),i.open(e,t)}registerTooltip(e,t){e.unregisterRef=o.A.registerTooltip({contentFormatter:()=>"<div>Click on the line segment to edit.</div>"},this.polygon.getMap()||t,e,!0)}updateFromLines(e){const t=[];for(let e=0;e<this.lines.length;e++){const n=this.lines[e].getPath(),i=n.getLength();n.forEach(function(e,n){n!==i-1&&t.push(e)})}const n=this.getPathIndex();this.path=new google.maps.MVCArray(t),this.polygon.getPaths().setAt(n,this.path),e&&google.maps.event.trigger(this.polygon,"edited")}getPathIndex(){const e=this;let t;return e.polygon.getPaths().forEach(function(n,i){n===e.path&&(t=i)}),t}findNeighbor(e,t,n){const i=e.length,o=e.indexOf(t);let a,s,r;return 0===n?(a=0===o?i-1:o-1,s=e[a].getPath(),r=s.getLength()-1):(a=o===i-1?0:o+1,s=e[a].getPath(),r=0),{path:s,index:r}}_lineLengths(e,t){if(t>=e)return[e];var n=this._numLines(e,t),i=Math.floor(n),o=n-i,a=[];if(a=((e,t)=>{for(var n=[],i=0;i<t;i++)n[i]=e;return n})(t,i),o){var s=Math.ceil(t*o);s<2&&(s=2),a.push(s);for(var r=t-s-1,l=a.length-2,c=a.length-1;r>0;)l<0&&(l=a.length-1),a[l]=a[l]-1,r--,l--,a[c]++}return a}_numLines(e,t){return e/(t-1)}}window.google||(window.google={maps:{Polygon:class{}}});class s extends google.maps.Polygon{constructor(e){super(),this.lineSize=100,this.editable=!1,this.highlightColor="#CC3300",this.strokeWeight=3,this.editPaths=[],this.setOptions(e)}setOptions(e){if((a=e)===Object(a)){var t=this.getEditable();i(e.editable)||(t=e.editable,delete e.editable);var n=this.lineSize;i(e.lineSize)||(n=e.lineSize,delete e.lineSize);var o=this.highlightColor;i(e.highlightColor)||(o=e.highlightColor,delete e.highlightColor),super.setOptions(e),this.lineSize=n,this.setEditable(t),this.highlightColor=o}var a}setEditable(e){if(!0!==(t=e)&&!1!==t&&"[object Boolean]"!=toString.call(t)||(this.editable=e,!e))var t;else this.generateEditLines()}setMap(e){this.editPaths.forEach(t=>{t.lines.forEach(n=>{n.setMap(e),e&&t.registerTooltip(n,e)})}),super.setMap(e)}getEditable(){return this.editable}generateEditLines(){this.editPaths=[],this.getPaths().forEach(e=>{this.editPaths.push(new a(this,e))})}}},vV2i:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Events:function(){return Events},_raveModalAJAXGenericContainerClose:function(){return _raveModalAJAXGenericContainerClose},_raveModalAJAXGenericContainerOpen:function(){return _raveModalAJAXGenericContainerOpen},_raveModalAJAXGenericContainerOpen2:function(){return _raveModalAJAXGenericContainerOpen2},raveModalAlert:function(){return raveModalAlert},raveModalConfirm:function(){return raveModalConfirm},raveModalConfirmAdmin:function(){return raveModalConfirmAdmin},raveModalConfirmWithOptions:function(){return raveModalConfirmWithOptions}});var _modalManager__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("BmeT"),_modalService__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("4Ugr"),_lang__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("Cpa8"),jquery__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("PcWQ"),jquery__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_3__),vue__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("+cQT"),vue__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__),_js_commons_raveGlobal_vue_spinKitComponent__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("K9hY"),animejs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("EgnG");const Modal=function(e){this.config=e||{},this.isOpen=!1,this.stateChangePromise=null};Modal.MessageType={DIRE_WARNING:"DIRE_WARNING",DEFAULT:"DEFAULT",OTHER:"OTHER",SUPER_WARNING:"SUPER_WARNING"},Modal.CategoryType={VALIDATION:"VALIDATION"};const Events=Modal.Events={RENDER:"RENDER",CLOSE:"CLOSE",OPEN:"OPEN",BEFORE_OPEN:"BEFORE_OPEN",AFTER_OPEN:"AFTER_OPEN",BEFORE_CLOSE:"BEFORE_CLOSE",AFTER_CLOSE:"AFTER_CLOSE",BEFORE_CANCEL:"BEFORE_CANCEL",DESTROY:"DESTROY",SET_ERROR_MESSAGE:"SET_ERROR_MESSAGE"};Modal.ClassName={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",ACTIVE:"active",DIRE_WARNING:"direWarning",OTHER:"other",SUPER_WARNING:"superWarning"};const ClassName=Modal.ClassName;Modal.prototype.open=function(e){if(this.vueComponentInstance&&this.vueComponentInstance.localEvents.$emit(Modal.Events.BEFORE_OPEN),this.isRendered||(this.render(e),this.vueComponentInstance&&this.vueComponentInstance.localEvents.$emit(Modal.Events.BEFORE_OPEN)),this.isOpen)return;this.isOpen=!0,_modalManager__WEBPACK_IMPORTED_MODULE_0__.A.add(this);const t=jquery__WEBPACK_IMPORTED_MODULE_3___default()("body"),n=_checkScrollbar();return t.addClass("modal-open"),n.isBodyOverflowing&&(document.body.style.paddingRight=""),this.stateChangePromise=animateFadeIn(this).then(()=>{this.container.find("[tabindex]").first().focus(),this.vueComponentInstance&&(this.vueComponentInstance.localEvents.$emit(Modal.Events.OPEN,{instance:this.vueComponentInstance}),this.vueComponentInstance.localEvents.$emit(Modal.Events.AFTER_OPEN,{instance:this.vueComponentInstance}))}),this},Modal.prototype.isModalOpen=function(){return this.isOpen};let animationOn=!0;Modal.turnOffAnimation=function(){animationOn=!1},Modal.turnOnnAnimation=function(){animationOn=!0};const animateFadeIn=e=>{e.container.css({opacity:1,display:"block"}
2),e.container.children(".modal-dialog").first().css(animationOn?{opacity:0,transform:"translateY(-300px)"}:{opacity:0,transform:"translateY(0px)"}),e.background.css({opacity:0,display:"block"});const t=(0,animejs__WEBPACK_IMPORTED_MODULE_6__.A)({targets:e.container.children(".modal-dialog").first().get(),translateY:[animationOn?{value:e.extraOffset,duration:300,elasticity:0,easing:"easeOutCubic"}:{value:e.extraOffset,duration:0,easing:"linear"}],translateX:[{value:e.extraOffset,duration:0}],opacity:[animationOn?{value:1,duration:300,easing:"linear"}:{value:1,duration:0,easing:"linear"}]}).finished;return(0,animejs__WEBPACK_IMPORTED_MODULE_6__.A)({targets:e.background.get(),opacity:[animationOn?{value:.8,duration:200,easing:"linear"}:{value:.8,duration:0,easing:"linear"}]}),t},animateFadeOut=e=>{const t=_checkScrollbar(),n=e.container.children(".modal-dialog").first(),i=(0,animejs__WEBPACK_IMPORTED_MODULE_6__.A)({targets:e.background.get(),opacity:[animationOn?{value:0,duration:200,easing:"linear"}:{value:0,duration:0,easing:"linear"}],complete(){e.background.css("display","none"),e.container.css("display","none")}}).finished;return(0,animejs__WEBPACK_IMPORTED_MODULE_6__.A)({targets:n.get(),translateY:[animationOn?{value:-200,duration:400,elasticity:0,easing:"linear"}:{value:0,duration:0,elasticity:0,easing:"linear"}],translateX:[{value:Math.floor(t.scrollbarWidth/2),duration:0}],opacity:[animationOn?{value:0,duration:200,easing:"linear"}:{value:0,duration:0,easing:"linear"}]}),i};Modal.prototype.render=function(){this.isRendered=!0;const e=this.config;jquery__WEBPACK_IMPORTED_MODULE_3___default().extend(e,e||{}),normalizeConfig.call(this,e);const t=jquery__WEBPACK_IMPORTED_MODULE_3___default()("body");if(this.background||(this.background=jquery__WEBPACK_IMPORTED_MODULE_3___default()('\n            <div class="modal-backdrop ">\n                <div class="modal-backdrop-body"></div>\n            </div>'),this.background.css("display","none")),t.append(this.background),!this.container){const e=document.body.classList.contains("ui-refresh-enabled")?"modal-dialog modal-dialog-centered":"modal-dialog";this.container=jquery__WEBPACK_IMPORTED_MODULE_3___default()(`<div class="modal "><div class="${e}"><div class="modal-content"></div></div></div>`),this.modalDialog=this.container.find(".modal-dialog"),this.modalContent=this.container.find(".modal-content"),this.container.data("modal",this)}return t.append(this.container),_payloadFactory.call(this,e).build(this.container),e.className&&this.modalDialog.addClass(e.className),Modal.MessageType.DIRE_WARNING===e.messageType&&this.modalContent.addClass(Modal.ClassName.DIRE_WARNING),Modal.MessageType.OTHER===e.messageType&&this.modalContent.addClass(Modal.ClassName.OTHER),Modal.MessageType.SUPER_WARNING===e.messageType&&this.modalContent.addClass(Modal.ClassName.SUPER_WARNING),e.popupModalClass&&this.modalDialog.addClass(e.popupModalClass),e.containerClass&&this.container.addClass(e.containerClass),e.popupModalContentClass&&this.container.find(".popupModalContent").addClass(e.popupModalContentClass),this.closeBtn||(this.closeBtn=this.container.find(".closeModal")),this};const _payloadFactory=function(e){const t=this;return e.vueComponent?{build:function(n){const i=jquery__WEBPACK_IMPORTED_MODULE_3___default()("<div></div>").appendTo(n.find(".modal-content")),o=e.localEvents||new(vue__WEBPACK_IMPORTED_MODULE_4___default()),a=!e.footer&&!e.header&&!e.title;t.vueComponentInstance=new(vue__WEBPACK_IMPORTED_MODULE_4___default())({template:t.vueTemplate,el:i[0],components:{SpinKit:_js_commons_raveGlobal_vue_spinKitComponent__WEBPACK_IMPORTED_MODULE_5__.A},data:{errorMessage:void 0,componentName:e.vueComponent,footer:!1!==e.footer,header:!1!==e.header,modalData:e.data||{},title:e.title,localEvents:o,showCancel:!(!e.cancelAction&&!e.showCancel),modalContentClass:e.modalContentClass?e.modalContentClass:a?"p-0":"",confirmLabel:e.confirmLabel,cancelLabel:e.cancelLabel,isReady:!0,confirmSpinKit:!!e.confirmSpinKit,destroyOnClose:!1!==e.destroyOnClose,hasUiRefreshClass:document.body.classList.contains("ui-refresh-enabled"),i18n:{ok:_lang__WEBPACK_IMPORTED_MODULE_2__.A.t("common.action.ok"),cancel:_lang__WEBPACK_IMPORTED_MODULE_2__.A.t("common.action.cancel")}},beforeMount:function(){this.localEvents.$on(Modal.Events.CLOSE,()=>{this.close(()=>{this.destroyOnClose&&t.destroy()})}),this.localEvents.$on(Modal.Events.DESTROY,function(){t.destroy()}),this.localEvents.$on(Modal.Events.SET_ERROR_MESSAGE,e=>{this.errorMessage=e})},methods:{close:async function(){await t.close(()=>{this.destroyOnClose&&t.destroy()})},confirm:async function(){if(this.isReady){if(this.$refs&&this.$refs.compInstance&&this.$refs.compInstance.validate){if((await this.$refs.compInstance.validate()).hasErrors())return}this.errorMessage?Modal.warning(null,this.errorMessage,null,null,null):(this.confirmSpinKit&&this.$refs.confirmSpinKit&&this.$refs.confirmSpinKit.start(),o.$emit(Modal.Events.BEFORE_CLOSE),e.confirmAction&&e.confirmAction(),await this.close(),o.$emit(Modal.Events.AFTER_CLOSE))}},cancel:async function(){o.$emit(Modal.Events.BEFORE_CANCEL),e.cancelAction&&e.cancelAction(),await this.close(),o.$emit(Modal.Events.AFTER_CLOSE)}}})}}
2:{build:function(t){"string"==typeof e.payload?t.find(".modal-content").append(jquery__WEBPACK_IMPORTED_MODULE_3___default()(e.payload)):(t.find(".modal-content").append(e.payload),e.payload.css("display","block"))}}};Modal.prototype.weAreViewingThisRightNow=function(){return this.isOpen},Modal.prototype.close=function(callBack){if(!this.isOpen)return;this.isOpen=!1,_modalManager__WEBPACK_IMPORTED_MODULE_0__.A.remove(this);const overflowHelper=_checkScrollbar();if(overflowHelper.isBodyOverflowing){const e=this.container.children(".modal-dialog").first();e.css("transform","translateX("+Math.floor(overflowHelper.scrollbarWidth/2)+"px)")}return this.stateChangePromise=animateFadeOut(this).then(()=>{if(callBack&&("function"==typeof callBack?callBack():(console.warn("Modal callback should be changed to be a function!"),eval(callBack))),this.config.afterClose&&this.config.afterClose.bind(this)(),this.config.confirmButtonFocus){let e=jquery__WEBPACK_IMPORTED_MODULE_3___default()("#"+this.config.confirmButtonFocus);e.is(":disabled")||e.focus()}}).then(()=>this),this.stateChangePromise},Modal.prototype.compiledModalTemplate=function(){const e=this.config,t=document.body.classList.contains("ui-refresh-enabled"),n=`\n        <div class="popupModal">\n            <div class="popupModalHeader">\n                ${!t||e.messageType!==Modal.MessageType.DIRE_WARNING&&e.messageType!==Modal.MessageType.SUPER_WARNING?"":'<div class="warning_icon">\n                    <i class="fa-regular fa-circle-exclamation"></i>\n                    </div>'}\n               <div class="popupModal-title" modal-title >Header Missing</div>\n               <div><button class="btnJ2 closeModal" aria-label="Close"></button></div>\n            </div>\n            <div class="popupModalContent">\n               <div class="popupModalMessage">Message Missing</div>\n            </div>\n            <div class="popupModalFooter" modal-footer>\n                ${t?'<div class="button-bar justify-content-end">\n                        <button class="btnJ2 gray" aria-label="Close" cancel-btn>Button Label Missing</button>\n                        <button class="btnJ2 green" aria-label="Continue" confirm-btn>Button Label Missing</button>\n                    </div>':'<div class="button-bar">\n                        <button class="btnJ2 green" aria-label="Continue" confirm-btn>Button Label Missing</button>\n                        <button class="btnJ2 gray" aria-label="Close" cancel-btn>Button Label Missing</button>\n                    </div>'}\n            </div>\n        </div>`;return jquery__WEBPACK_IMPORTED_MODULE_3___default()(n)},Modal.prototype.vueTemplate='\n    <div class="popupModal clearfix" style="display: block;">\n        <div v-if="header" class="popupModalHeader">\n           <div class="popupModal-title" modal-title="">{{ title }}</div>\n           <div><button class="btnJ2 closeModal" @click.prevent="cancel()"></button></div>\n        </div>\n        <div class="popupModalContent" :class="modalContentClass">\n           <component :local-events="localEvents" :modal-data="modalData" :is="componentName" ref="compInstance" v-model="isReady"></component>\n        </div>\n        <div v-if="footer" class="popupModalFooter" modal-footer="">\n            <div class="button-bar">\n                <button class="btnJ2" :class="{green: isReady, gray: !isReady}" confirm-btn="" @click="confirm()">\n                    {{ confirmLabel || i18n.ok }}\n                    <spin-kit ref="confirmSpinKit" class="ib" v-if="confirmSpinKit"></spin-kit>\n                </button>\n                <button class="btnJ2" :class="hasUiRefreshClass ? \'gray\' : \'\'" cancel-btn="" v-if="showCancel" @click.prevent="cancel()">{{ cancelLabel || i18n.cancel }}</button>\n            </div>\n        </div>\n    </div>',Modal.prototype.makeGeneric=function(e){const t=this,n=document.body.classList.contains("ui-refresh-enabled");jquery__WEBPACK_IMPORTED_MODULE_3___default().extend(this.config,e||{}),this.config.config&&(jquery__WEBPACK_IMPORTED_MODULE_3___default().extend(this.config,this.config.config),delete this.config.config),normalizeConfig.call(this,this.config);const i=this.compiledModalTemplate();e.config&&e.config.categoryType&&i.attr("category-type",e.config.categoryType),e.vueComponent&&i.attr("vue-name",e.vueComponent.name),this.config.payload=i;const o=this.confirmBtn=i.find("[confirm-btn]"),a=this.cancelBtn=i.find("[cancel-btn]"),s=this.closeBtn=i.find(".closeModal"),r=this.title=i.find(".popupModal-title"),l=i.find(".popupModalMessage");if(Modal.MessageType.DIRE_WARNING===this.config.messageType&&(n||(o.attr("class","btnJ2"),a.attr("class","btnJ2"))),r.html(this.config.title),r.attr("aria-label",this.config.title),e.message?this.config.sanitize?(l.text(this.config.message),l.attr("aria-label","Dialog."+this.config.message.replace("<br/>"," "))):l.html(this.config.message):e.payload&&(l.empty(),l.append(e.payload),e.payload.show()),this.config.confirmLabel?(o.html(this.config.confirmLabel),o.attr("aria-label","Button. "+this.config.confirmLabel)):(o.html(_lang__WEBPACK_IMPORTED_MODULE_2__.A.t("common.action.ok")),o.attr("aria-label","Button. "+_lang__WEBPACK_IMPORTED_MODULE_2__.A.t("common.action.ok"))),this.config.confirmClass&&o.removeClass("btnJ2").addClass(this.config.confirmClass),s.on("click",e=>{e.preventDefault(),t.close(t.config.closeAction||""===t.config.closeAction?t.config.closeAction:t.config.cancelAction)}),o.on("click",e=>{e.preventDefault(),!1===t.config.closeOnConfirm?t.config.confirmAction&&t.config.confirmAction():t.close(t.config.confirmAction)}),this.config.cancelLabel?(a.html(this.config.cancelLabel),a.on("click",e=>{e.preventDefault(),t.close(t.config.cancelAction)}),this.config.cancelClass&&a.removeClass("btn").addClass(this.config.cancelClass)):a.hide(),this.config.buttonConfig){const e=i.find("[modal-footer]");e.empty();const t=this.config.buttonConfig.length;if(t){const i=jquery__WEBPACK_IMPORTED_MODULE_3___default()(`<div class="button-bar ${n?"justify-content-end":""}"></div>`),o=jquery__WEBPACK_IMPORTED_MODULE_3___default()('<div class="button-bar-items"></div>');i.append(o),e.append(i),this.config.buttonConfig.forEach(function(e,n){const a=jquery__WEBPACK_IMPORTED_MODULE_3___default()('<button class="btnJ2 newBtnJ2" confirm-btn>Button Label Missing</button>');e.id&&a.attr("id",e.id),e.attr&&Object.keys(e.attr).forEach(t=>{a.attr(t,e.attr[t])}),a.text(e.title),a.on("click",t=>{t.preventDefault(),e.handler(t)});const s=n===t-1&&1!==t;a.addClass(e.class||""),s?i.append(a):o.append(a)})}}return this};const normalizeConfig=function(e){e.confirmLabel=e.confirmLabel||e.confirmButtonLabel,e.cancelLabel=e.cancelLabel||e.cancelButtonLabel,e.confirmAction=e.confirmAction||e.confirmButtonAction,e.cancelAction=e.cancelAction||e.cancelButtonAction,e.title=e.title||e.header,e.confirmClass=e.confirmButtonClass||e.confirmClass,e.cancelClass=e.cancelButtonClass||e.cancelClass};Modal.prototype.appendPreviewFrame=function(e,t){_modalService__WEBPACK_IMPORTED_MODULE_1__.A.appendPreviewFrame(e,t)},Modal.prototype.setTitle=function(e){this.config.payload.find("[modal-title]").text(e)},Modal.prototype.confirmStart=function(){this.confirmBtn&&(this.oldConfirmClass=this.confirmBtn.attr("class"),this.confirmBtn.addClass("gray"),this.confirmBtn.css("pointerEvents","none"),this.oldConfirmLabel=this.confirmBtn.text(),this.confirmBtn.text(this.confirmBtn.text()+" ..."))},Modal.prototype.confirmStop=function(){this.confirmBtn.attr("class",this.oldConfirmClass),this.confirmBtn.css("pointerEvents","auto"),this.confirmBtn.text(this.oldConfirmLabel)},Modal.prototype.destroy=async function(){let e=0;for(;this.isOpen;)if(await this.close(),e++,10==e){console.error(`Modal was not closed after ${e} attempts.`),this.close();break}this.isRendered=!1,this.vueComponentInstance&&(this.vueComponentInstance.$destroy(),this.vueComponentInstance=null),this.container&&this.container.remove(),this.background&&this.background.remove()};const _checkScrollbar=function(){return{isBodyOverflowing:document.body.clientWidth<window.innerWidth,scrollbarWidth:_getScrollbarWidth()}},_getScrollbarWidth=function(){const e=document.createElement("div");e.className=ClassName.SCROLLBAR_MEASURER,document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t};
2function raveModalConfirm(e,t,n,i,o,a,s,r){return _modalService__WEBPACK_IMPORTED_MODULE_1__.A.makeGeneric({header:e,message:t,confirmButtonLabel:n,confirmButtonAction:i,confirmButtonFocus:s,cancelButtonAction:o,cancelButtonLabel:o?_lang__WEBPACK_IMPORTED_MODULE_2__.A.t("common.action.cancel"):null,cancelButtonFocus:r,messageType:a,popupModalClass:""}).open()}function raveModalConfirmAdmin(e,t,n,i,o,a,s,r,l){return _modalService__WEBPACK_IMPORTED_MODULE_1__.A.makeGeneric({header:e,message:t,confirmButtonLabel:n,confirmButtonAction:i,cancelButtonAction:o,cancelButtonLabel:a,cancelClass:s,closeAction:r,messageType:l,popupModalClass:""}).open()}function raveModalAlert(e,t,n,i,o){return _modalService__WEBPACK_IMPORTED_MODULE_1__.A.makeGeneric({header:e,message:t,confirmButtonLabel:n,confirmButtonFocus:o,cancelButtonFocus:o,messageType:i,popupModalClass:""}).open()}function raveModalWarning(e,t,n,i,o){if(!_modalManager__WEBPACK_IMPORTED_MODULE_0__.A.findByCategoryType(Modal.CategoryType.VALIDATION))return _modalService__WEBPACK_IMPORTED_MODULE_1__.A.makeGeneric({header:e||_lang__WEBPACK_IMPORTED_MODULE_2__.A.get("common.modal.warning"),message:t,confirmButtonLabel:n,confirmButtonAction:i,messageType:Modal.MessageType.DIRE_WARNING,popupModalClass:"",config:o}).open()}let stackedModal=!1;function _raveModalAJAXGenericContainerOpen2(e,t){stackedModal=jquery__WEBPACK_IMPORTED_MODULE_3___default()("#_raveModalAJAXGenericContainer").is(":visible"),stackedModal&&jquery__WEBPACK_IMPORTED_MODULE_3___default()("#_raveModalAJAXGenericContainer").hide(),_raveModalAJAXGenericContainerOpen(e,t)}function _raveModalAJAXGenericContainerOpen(e,t){const n=new Modal({payload:e,className:t});return n.open(),n}async function _raveModalAJAXGenericContainerClose(e,t){if(t){t.preventDefault();const n=jquery__WEBPACK_IMPORTED_MODULE_3___default()(t.target).closest(".modal").data("modal");n&&(await n.close(e),e=null)}else{const t=_modalManager__WEBPACK_IMPORTED_MODULE_0__.A.getLastModalOnStack();t&&(await t.close(e),e=null)}null!=e&&e()}
2function raveModalConfirmWithOptions(e){_modalService__WEBPACK_IMPORTED_MODULE_1__.A.makeGeneric(e).open()}Modal.alert=raveModalAlert,Modal.confirm=raveModalConfirm,Modal.admin=raveModalConfirmAdmin,Modal.warning=raveModalWarning,Modal.generic=raveModalConfirmWithOptions,Modal.close=_raveModalAJAXGenericContainerClose,__webpack_exports__.default=Modal},UDvT:function(e,t,n){"use strict";n.d(t,{F:function(){return _},Nn:function(){return w}});var i=n("BmeT"),o=n("BGLv"),a=n("Cpa8"),s=n("PcWQ"),r=n.n(s),l=n("+cQT"),c=n.n(l),d=n("K9hY"),u=n("EgnG");const p=function(e){this.config=e||{},this.isOpen=!1,this.stateChangePromise=null};p.MessageType={DIRE_WARNING:"DIRE_WARNING",DEFAULT:"DEFAULT",OTHER:"OTHER",SUPER_WARNING:"SUPER_WARNING"},p.CategoryType={VALIDATION:"VALIDATION"};p.Events={RENDER:"RENDER",CLOSE:"CLOSE",OPEN:"OPEN",BEFORE_OPEN:"BEFORE_OPEN",AFTER_OPEN:"AFTER_OPEN",BEFORE_CLOSE:"BEFORE_CLOSE",AFTER_CLOSE:"AFTER_CLOSE",BEFORE_CANCEL:"BEFORE_CANCEL",DESTROY:"DESTROY",SET_ERROR_MESSAGE:"SET_ERROR_MESSAGE"};p.ClassName={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",ACTIVE:"active",DIRE_WARNING:"direWarning",OTHER:"other",SUPER_WARNING:"superWarning"};const h=p.ClassName;p.prototype.open=function(e){if(this.vueComponentInstance&&this.vueComponentInstance.localEvents.$emit(p.Events.BEFORE_OPEN),this.isRendered||(this.render(e),this.vueComponentInstance&&this.vueComponentInstance.localEvents.$emit(p.Events.BEFORE_OPEN)),this.isOpen)return;this.isOpen=!0,i.A.add(this);const t=r()("body"),n=y();return t.addClass("modal-open"),n.isBodyOverflowing&&(document.body.style.paddingRight=""),this.stateChangePromise=f(this).then(()=>{this.container.find("[tabindex]").first().focus(),this.vueComponentInstance&&(this.vueComponentInstance.localEvents.$emit(p.Events.OPEN,{instance:this.vueComponentInstance}),this.vueComponentInstance.localEvents.$emit(p.Events.AFTER_OPEN,{instance:this.vueComponentInstance}))}),this},p.prototype.isModalOpen=function(){return this.isOpen};let m=!0;p.turnOffAnimation=function(){m=!1},p.turnOnnAnimation=function(){m=!0};const f=e=>{e.container.css({opacity:1,display:"block"}),e.container.children(".modal-dialog").first().css(m?{opacity:0,transform:"translateY(-300px)"}:{opacity:0,transform:"translateY(0px)"}),e.background.css({opacity:0,display:"block"});const t=(0,u.A)({targets:e.container.children(".modal-dialog").first().get(),translateY:[m?{value:e.extraOffset,duration:300,elasticity:0,easing:"easeOutCubic"}:{value:e.extraOffset,duration:0,easing:"linear"}],translateX:[{value:e.extraOffset,duration:0}],opacity:[m?{value:1,duration:300,easing:"linear"}:{value:1,duration:0,easing:"linear"}]}).finished;return(0,u.A)({targets:e.background.get(),opacity:[m?{value:.8,duration:200,easing:"linear"}:{value:.8,duration:0,easing:"linear"}]}),t};p.prototype.render=function(){this.isRendered=!0;const e=this.config;r().extend(e,e||{}),v.call(this,e);const t=r()("body");if(this.background||(this.background=r()('\n            <div class="modal-backdrop ">\n                <div class="modal-backdrop-body"></div>\n            </div>'),this.background.css("display","none")),t.append(this.background),!this.container){const e=document.body.classList.contains("ui-refresh-enabled")?"modal-dialog modal-dialog-centered":"modal-dialog";this.container=r()(`<div class="modal "><div class="${e}"><div class="modal-content"></div></div></div>`),this.modalDialog=this.container.find(".modal-dialog"),this.modalContent=this.container.find(".modal-content"),this.container.data("modal",this)}return t.append(this.container),g.call(this,e).build(this.container),e.className&&this.modalDialog.addClass(e.className),p.MessageType.DIRE_WARNING===e.messageType&&this.modalContent.addClass(p.ClassName.DIRE_WARNING),p.MessageType.OTHER===e.messageType&&this.modalContent.addClass(p.ClassName.OTHER),p.MessageType.SUPER_WARNING===e.messageType&&this.modalContent.addClass(p.ClassName.SUPER_WARNING),e.popupModalClass&&this.modalDialog.addClass(e.popupModalClass),e.containerClass&&this.container.addClass(e.containerClass),e.popupModalContentClass&&this.container.find(".popupModalContent").addClass(e.popupModalContentClass),this.closeBtn||(this.closeBtn=this.container.find(".closeModal")),this};const g=function(e){const t=this;return e.vueComponent?{build:function(n){const i=r()("<div></div>
2").appendTo(n.find(".modal-content")),o=e.localEvents||new(c()),s=!e.footer&&!e.header&&!e.title;t.vueComponentInstance=new(c())({render:t.vueRender,el:i[0],components:{SpinKit:d.A},data:{errorMessage:void 0,componentName:e.vueComponent,footer:!1!==e.footer,header:!1!==e.header,modalData:e.data||{},title:e.title,localEvents:o,showCancel:!(!e.cancelAction&&!e.showCancel),modalContentClass:e.modalContentClass?e.modalContentClass:s?"p-0":"",confirmLabel:e.confirmLabel,cancelLabel:e.cancelLabel,isReady:!0,confirmSpinKit:!!e.confirmSpinKit,destroyOnClose:!1!==e.destroyOnClose,i18n:{ok:a.A.t("common.action.ok"),cancel:a.A.t("common.action.cancel")}},beforeMount:function(){this.localEvents.$on(p.Events.CLOSE,()=>{this.close(()=>{this.destroyOnClose&&t.destroy()})}),this.localEvents.$on(p.Events.DESTROY,function(){t.destroy()}),this.localEvents.$on(p.Events.SET_ERROR_MESSAGE,e=>{this.errorMessage=e})},methods:{close:async function(){await t.close(()=>{this.destroyOnClose&&t.destroy()})},confirm:async function(){if(this.isReady){if(this.$refs&&this.$refs.compInstance&&this.$refs.compInstance.validate){if((await this.$refs.compInstance.validate()).hasErrors())return}this.errorMessage?p.warning(null,this.errorMessage,null,null,null):(this.confirmSpinKit&&this.$refs.confirmSpinKit&&this.$refs.confirmSpinKit.start(),o.$emit(p.Events.BEFORE_CLOSE),e.confirmAction&&e.confirmAction(),await this.close(),o.$emit(p.Events.AFTER_CLOSE))}},cancel:async function(t){t&&t.preventDefault(),o.$emit(p.Events.BEFORE_CANCEL),e.cancelAction&&e.cancelAction(),await this.close(),o.$emit(p.Events.AFTER_CLOSE)}}})}}:{build:function(t){"string"==typeof e.payload?(t.find(".modal-content").get(0).innerHTML=e.payload,e.payload.includes("viewSchedAlertDetails")&&Rave.viewSchedAlertsFuncs.bindAllButtonsToScripts()):(t.find(".modal-content").append(e.payload),e.payload.css("display","block"))}}};p.prototype.weAreViewingThisRightNow=function(){return this.isOpen},p.prototype.close=function(e){if(!this.isOpen)return;this.isOpen=!1,i.A.remove(this);const t=y();if(t.isBodyOverflowing){this.container.children(".modal-dialog").first().css("transform","translateX("+Math.floor(t.scrollbarWidth/2)+"px)")}return this.stateChangePromise=(e=>{const t=y(),n=e.container.children(".modal-dialog").first(),i=(0,u.A)({targets:e.background.get(),opacity:[m?{value:0,duration:200,easing:"linear"}:{value:0,duration:0,easing:"linear"}],complete(){e.background.css("display","none"),e.container.css("display","none")}}).finished;return(0,u.A)({targets:n.get(),translateY:[m?{value:-200,duration:400,elasticity:0,easing:"linear"}:{value:0,duration:0,elasticity:0,easing:"linear"}],translateX:[{value:Math.floor(t.scrollbarWidth/2),duration:0}],opacity:[m?{value:0,duration:200,easing:"linear"}:{value:0,duration:0,easing:"linear"}]}),i})(this).then(()=>{if(e)if("function"==typeof e)e();else if("string"==typeof e){const t=e.match(/location.href\s*=\s*"([^"]*)"/);if(t){const e=t[1].trim();e&&(window.location.href=e)}}if(this.config.afterClose&&this.config.afterClose.bind(this)(),this.config.confirmButtonFocus){let e=r()("#"+this.config.confirmButtonFocus);e.is(":disabled")||e.focus()}}).then(()=>this),this.stateChangePromise},p.prototype.compiledModalTemplate=function(){const e=this.config,t=document.body.classList.contains("ui-refresh-enabled"),n=`\n        <div class="popupModal">\n            <div class="popupModalHeader">\n               ${!t||e.messageType!==p.MessageType.DIRE_WARNING&&e.messageType!==p.MessageType.SUPER_WARNING?"":'<div class="warning_icon">\n                    <i class="fa-regular fa-circle-exclamation"></i>\n               </div>'}\n               <div class="popupModal-title" modal-title >Header Missing</div>\n               <div><button class="btnJ2 closeModal" aria-label="Close"></button></div>\n            </div>\n            <div class="popupModalContent">\n               <div class="popupModalMessage">Message Missing</div>\n            </div>\n            <div class="popupModalFooter" modal-footer>\n                ${t?'<div class="button-bar justify-content-end">\n                        <button class="btnJ2 gray" aria-label="Close" cancel-btn>Button Label Missing</button>\n                        <button class="btnJ2 green" aria-label="Continue" confirm-btn>Button Label Missing</button>\n                    </div>':'<div class="button-bar">\n                        <button class="btnJ2 green" aria-label="Continue" confirm-btn>Button Label Missing</button>\n                        <button class="btnJ2 gray" aria-label="Close" cancel-btn>Button Label Missing</button>\n                    </div>'}\n            </div>\n        </div>`;return r()(n)},p.prototype.vueRender=function(e){const t=document.body.classList.contains("ui-refresh-enabled"),n=this.header?e("div",{class:"popupModalHeader"}
2,[e("div",{class:"popupModal-title",attrs:{"modal-title":""}},this.title),e("div",{},[e("button",{class:"btnJ2 closeModal",on:{click:this.cancel}},[])])]):null,i=e("div",{class:["popupModalContent",this.modalContentClass]},[e("component",{is:this.componentName,props:{localEvents:this.localEvents,modalData:this.modalData,isReady:this.isReady},on:{ready:e=>{this.isReady=e}},ref:"compInstance"})]);let o,a;t?(o=["btnJ2","green"],a="btnJ2 gray"):(o=["btnJ2",{green:this.isReady,gray:!this.isReady}],a="btnJ2");const s=this.footer?e("div",{class:"popupModalFooter",attrs:{"modal-footer":""}},[e("div",{class:t?"button-bar justify-content-end":"button-bar"},[this.showCancel?e("button",{class:a,attrs:{"cancel-btn":""},on:{click:this.cancel}},this.cancelLabel||this.i18n.cancel):null,e("button",{class:o,attrs:{"confirm-btn":""},on:{click:this.confirm}},this.confirmLabel||this.i18n.ok),this.confirmSpinKit?e(d.A,{ref:"confirmSpinKit",class:"ib"}):null])]):null;return e("div",{class:"popupModal clearfix",style:{display:"block"}},[n,i,s])},p.prototype.makeGeneric=function(e){this.extendAndNormalizeConfig(e);const t=this.compiledModalTemplate();return this.applyTemplateModifications(t,e),this.setupInteractiveElements(t,e),this.dynamicButtonCreation(t),this},p.prototype.extendAndNormalizeConfig=function(e){r().extend(this.config,e||{}),this.config.config&&(r().extend(this.config,this.config.config),delete this.config.config),v.call(this,this.config)},p.prototype.applyTemplateModifications=function(e,t){t.config&&t.config.categoryType&&e.attr("category-type",t.config.categoryType),t.vueComponent&&e.attr("vue-name",t.vueComponent.name),this.config.payload=e},p.prototype.setupInteractiveElements=function(e,t){this.initializeButtons(e),this.setupTitleAndMessage(e,t),this.setupEventHandlers(e)},p.prototype.initializeButtons=function(e){const t=this.confirmBtn=e.find("[confirm-btn]"),n=this.cancelBtn=e.find("[cancel-btn]"),i=document.body.classList.contains("ui-refresh-enabled")?"btnJ2 green":"btnJ2",o=document.body.classList.contains("ui-refresh-enabled")?"btnJ2 gray":"btnJ2";this.closeBtn=e.find(".closeModal"),p.MessageType.DIRE_WARNING===this.config.messageType&&(t.attr("class",i),n.attr("class",o)),this.config.confirmLabel?t.html(this.config.confirmLabel):t.html(a.A.t("common.action.ok")),this.config.cancelLabel?n.html(this.config.cancelLabel).show():n.hide(),this.applyButtonStyles(t,n)},p.prototype.applyButtonStyles=function(e,t){const n=document.body.classList.contains("ui-refresh-enabled");this.config.confirmClass&&(n?e.removeClass("btnJ2 green").addClass(this.config.confirmClass):e.removeClass("btnJ2").addClass(this.config.confirmClass)),this.config.cancelClass&&(n?t.removeClass("btnJ2 gray").addClass(this.config.cancelClass):t.removeClass("btn").addClass(this.config.cancelClass))},p.prototype.setupTitleAndMessage=function(e,t){const n=this.title=e.find(".popupModal-title"),i=e.find(".popupModalMessage");n.html(this.config.title).attr("aria-label",this.config.title),t.message?this.config.sanitize?i.text(t.message).attr("aria-label","Dialog"):i.html(t.message):t.payload&&i.empty().append(t.payload).show()},p.prototype.setupEventHandlers=function(){const e=this;this.closeBtn.on("click",function(t){t.preventDefault(),e.close(e.config.closeAction||e.config.cancelAction)}),this.confirmBtn.on("click",function(t){t.preventDefault(),!1!==e.config.closeOnConfirm?e.close(e.config.confirmAction):e.config.confirmAction&&e.config.confirmAction()}),this.cancelBtn.on("click",function(t){t.preventDefault(),e.close(e.config.cancelAction)})},p.prototype.dynamicButtonCreation=function(e){if(!this.config.buttonConfig)return;const t=e.find("[modal-footer]");t.empty();const n=r()('<div class="button-bar"></div>').appendTo(t);this.config.buttonConfig.forEach(e=>{const t=r()("<button></button>",{text:e.title,id:e.id,class:"btnJ2 newBtnJ2 "+(e.class?e.class:""),click:function(t){t.preventDefault(),e.handler(t)}}).appendTo(n);Object.keys(e.attr||{}).forEach(n=>{t.attr(n,e.attr[n])})})};const v=function(e){e.confirmLabel=e.confirmLabel||e.confirmButtonLabel,e.cancelLabel=e.cancelLabel||e.cancelButtonLabel,e.confirmAction=e.confirmAction||e.confirmButtonAction,e.cancelAction=e.cancelAction||e.cancelButtonAction,e.title=e.title||e.header,e.confirmClass=e.confirmButtonClass||e.confirmClass,e.cancelClass=e.cancelButtonClass||e.cancelClass};p.prototype.appendPreviewFrame=function(e,t){o.A.appendPreviewFrame(e,t)},p.prototype.setTitle=function(e){this.config.payload.find("[modal-title]").text(e)},p.prototype.confirmStart=function(){this.confirmBtn&&(this.oldConfirmClass=this.confirmBtn.attr("class"),this.confirmBtn.addClass("gray"),this.confirmBtn.css("pointerEvents","none"),this.oldConfirmLabel=this.confirmBtn.text(),this.confirmBtn.text(this.confirmBtn.text()+" ..."))},p.prototype.confirmStop=function(){this.confirmBtn.attr("class",this.oldConfirmClass),this.confirmBtn.css("pointerEvents","auto"),this.confirmBtn.text(this.oldConfirmLabel)},p.prototype.destroy=async function(){let e=0;for(;this.isOpen;)if(await this.close(),e++,10==e){console.error(`Modal2 was not closed after ${e} attempts.`),this.close();break}this.isRendered=!1,this.vueComponentInstance&&(this.vueComponentInstance.$destroy(),this.vueComponentInstance=null),this.container&&this.container.remove(),this.background&&this.background.remove()};const y=function(){return{isBodyOverflowing:document.body.clientWidth<window.innerWidth,scrollbarWidth:b()}},b=function(){const e=document.createElement("div");e.className=h.SCROLLBAR_MEASURER,document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t};let C=!1;function _(e,t){C=r()("#_raveModalAJAXGenericContainer").is(":visible"),C&&r()("#_raveModalAJAXGenericContainer").hide(),function(e,t){const n=new p({payload:e,className:t});n.open()}(e,t)}async function w(e,t){if(t){t.preventDefault();const n=r()(t.target).closest(".modal").data("modal");n&&(await n.close(e),e=null)}else{const t=i.A.getLastModalOnStack();t&&(await t.close(e),e=null)}null!=e&&e()}p.alert=function(e,t,n,i,a){return o.A.makeGeneric({header:e,message:t,confirmButtonLabel:n,confirmButtonFocus:a,cancelButtonFocus:a,messageType:i,popupModalClass:""}).open()},p.confirm=function(e,t,n,i,s,r,l,c){return o.A.makeGeneric({header:e,message:t,confirmButtonLabel:n,confirmButtonAction:i,confirmButtonFocus:l,cancelButtonAction:s,cancelButtonLabel:s?a.A.t("common.action.cancel"):null,cancelButtonFocus:c,messageType:r,popupModalClass:""}).open()},p.admin=function(e,t,n,i,a,s,r,l,c){return o.A.makeGeneric({header:e,message:t,confirmButtonLabel:n,confirmButtonAction:i,cancelButtonAction:a,cancelButtonLabel:s,cancelClass:r,closeAction:l,messageType:c,popupModalClass:""}).open()},p.warning=function(e,t,n,s,r){if(!i.A.findByCategoryType(p.CategoryType.VALIDATION))return o.A.makeGeneric({header:e||a.A.get("common.modal.warning"),message:t,confirmButtonLabel:n,confirmButtonAction:s,messageType:p.MessageType.DIRE_WARNING,popupModalClass:"",config:r}).open()},p.generic=function(e){o.A.makeGeneric(e).open()},p.close=w,t.Ay=p},astW:function(e,t){"use strict";t.A={template:"<div></div>",props:["localEvents","modalData"]}},BmeT:function(e,t,n){"use strict";var i=n("PcWQ"),o=function(){this.openModalCounter=0,this.openModalStack=[],this.positionerSize=15,this.isInputFileClicked=null,this.inputFileTrackOn=!1};function a(){var e=this;this.inputFileTrackOn||(this.inputFileTrackOn=!0,i("body").on("click",function(t){"file"===i(t.target).attr("type")?e.isInputFileClicked=!0:e.isInputFileClicked=!1}))}o.prototype.add=function(e){e.extraOffset=0,this.openModalCounter++,this.openModalCounter>1&&(e.extraOffset=this.positionerSize*(this.openModalCounter-1)),this.openModalStack.push(e),this.processEventBindings(),a.call(this)},o.prototype.processEventBindings=function(){var e=this;1===this.openModalCounter&&i("body").on("keyup.modalManager",function(t){if(27==t.keyCode&&!e.isInputFileClicked){var n=e.getLastModalOnStack();if(!n)return;
2n.vueComponentInstance?n.vueComponentInstance.cancel():n.closeBtn&&0!==n.closeBtn.length?n.closeBtn[0].click():n.container.find(".closeModal").click()}}),0===this.openModalCounter&&i("body").off("keyup.modalManager")},o.prototype.remove=function(){this.openModalCounter--,this.openModalStack.pop();var e=this.openModalCounter<0?0:this.openModalCounter;this.openModalCounter=e,0===this.openModalCounter&&(i("body").removeClass("modal-open"),document.body.style.paddingRight="","hidden"===i("body").css("overflow-y")&&i("body").css("overflow-y","")),this.processEventBindings()},o.prototype.getLastModalOnStack=function(){return this.openModalStack[this.openModalStack.length-1]},o.prototype.findByCategoryType=function(e){return e?this.openModalStack.find(function(t){return t.config.categoryType===e}):null},t.A=new o},"4Ugr":function(e,t,n){"use strict";var i=n("vV2i");const o={makeGeneric:function(e){let t=new i.default({afterClose:function(){this.destroy()}});return t=t.makeGeneric(e),t},appendPreviewFrame:n("Wdqu").Y};t.A=o},BGLv:function(e,t,n){"use strict";var i=n("UDvT"),o={makeGeneric:function(e){var t=new i.Ay({afterClose:function(){this.destroy()}});return t=t.makeGeneric(e)},appendPreviewFrame:n("Wdqu").Y};t.A=o},Wdqu:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var i=n("7RMj"),o=n("PcWQ");function a(e,t,n){e=o(e),t=o(t),e.find("iframe").remove();let a="border-gray-a";a="string"==typeof(n=n||{}
2).cssClasses?n.cssClasses:a,a="w-fit "+a;var s=o('<iframe class="'+a+'" name="preview" sandbox="allow-same-origin allow-popups allow-popups-to-escape-sandbox"></iframe>');s.on("load",function(){s.contents().find("head").append('<link type="text/css" rel="stylesheet" href="/js/libs/ckeditor/contents.css?t=G87E">'),s.height(0);const e=s.contents().find("body"),o=(0,i.xssFilter)(t.html());e.append(o),e.find("a").attr("target","_blank").attr("rel","noopener noreferrer"),e.addClass("cke_editable"),n.bodyStyle&&e.css(n.bodyStyle);let a=!1,r=[],l=0;n.isTest&&(a=!0),function e(){try{r.push(s.contents().height())}catch(e){}if(r.length>3&&r[r.length-1]===r[r.length-3]&&(a=!0),a){var t=s.contents().height();s.height(t)}else++l<100&&setTimeout(e,20)}()}),e.append(s)}},EIuQ:function(e,t,n){"use strict";var i=n("nQlO"),o=n("Cpa8"),a=n("PcWQ"),s=function(e){this.navigationFn=e.navigationFn,this.anchor=a(e.anchor),this.spinKit=null,c.call(this)};s.prototype.render=function(e,t){if(this.destroy(),!(t<2)){var n=a('<div bar-instance class="form-inline-group"></div>'),i=r.bind(this);e>0&&(n.append(i("prev",null,e-1)),n.append(i("numeric",1,0))),e>3&&n.append(i("ellipsis")),e-2>0&&n.append(i("numeric",e-1,e-2)),e-1>0&&n.append(i("numeric",e,e-1)),n.append(i("numeric",e+1,e).addClass("carbon")),e+2<t&&n.append(i("numeric",e+2,e+1)),e+3<t&&n.append(i("numeric",e+3,e+2)),e+4<t&&n.append(i("ellipsis")),e<t-1&&(n.append(i("numeric",t,t-1)),n.append(i("next",null,e+1))),this.anchor.append(n)}},s.prototype.destroy=function(){this.spinKit&&this.spinKit.destroy(),this.anchor.find("[pagination-btn]").off("click"),this.anchor.find("[bar-instance]").remove()},s.prototype.cancel=function(){this.spinKit&&this.spinKit.destroy()};var r=function(e,t,n){var o=this,a=this.templateCache[e].clone();return t&&a.text(t),(n||0===n)&&a.on("click",function(){o.spinKit=new i.A({anchor:a}).show().start(),o.navigationFn(n)}),a},l=function(){return{prev:'<a class="btnJ2 gray" pagination-btn ><b data-icon="[" title="'+o.A.t("common.previous")+'" class="ico-l previous"></b>'+o.A.t("common.previous")+"</a>",next:'<a class="btnJ2 gray" pagination-btn  >'+o.A.t("common.buttonLabel.nextSimple")+'<b data-icon="]" title="'+o.A.t("common.buttonLabel.nextSimple")+'" class="ico-r next"></b></a>',numeric:'<a class="btnJ2 gray" pagination-btn >1</a>',ellipsis:'<a class="btnJ2 gray" pagination-btn >...</a>'}},c=function(){var e=this;this.templateCache||(this.templateCache={},Object.keys(l()).forEach(function(t){e.templateCache[t]=a(l()[t])}))};t.A=s},xEXe:function(e,t,n){"use strict";var i=n("7RMj"),o=n("PcWQ"),a=function(e){this.anchor=o(e.anchor),this.active=!1};a.prototype.render=function(){this.destroy();var e=l.call(this,"bar");return e.find("[progress-value]").hide(),this.anchor.append(e),this.active=!0,this},a.prototype.destroy=function(){this.anchor.find("[progress-bar-instance]").remove(),this.active=!1},a.prototype.destroyWithFade=function(){var e=(0,i.whichTransitionEvent)(),t=this.anchor.find("[progress-bar-instance]");e?t.bind(e,function(){this.remove()}).addClass("fade"):this.remove(),this.active=!1},a.prototype.setProgress=function(e,t){return e<0&&(e=0),this.anchor.find("[progress-bar]").css("width",e?e+"%":0),t&&this.anchor.find("[progress-value]").show().text(t),this};var s={bar:'\n        <div  class="rave-progress" progress-bar-instance>\n            <div class="rave-progress-bar" progress-bar style="width: 0;"></div>\n            <div class="rave-progress-bar-errors" style="width:0"></div>\n            <div class="rave-progress-value" progress-value >0</div>\n        </div>'},r={},l=function(e){if(!r[e]){if(!s[e])throw Error("template not found: "+e);r[e]=o(s[e])}return r[e].clone()};t.A=a},uXSz:function(e,t,n){"use strict";n.r(t),n.d(t,{_insertOption:function(){return w},_match:function(){return m},cacheBuster:function(){return x},cleanMasterList:function(){return E},copyList:function(){return b},copySelections:function(){return y},extractNumericalString:function(){return c},filterList:function(){return f},getDateStringUsingTimeZoneOffset:function(){return A},getGMTZ:function(){return S},getInternetExplorerVersion:function(){return M},getLocalTimestamp:function(){return T},isBlank:function(){return a},isMSIE:function(){return L},isNotBlank:function(){return s},moveMasterListedSelections:function(){return g},moveSelections:function(){return C},prettyUSPhoneNumber:function(){return d},prettyUSPhoneNumberInternal:function(){return u},removeDuplicates:function(){return _},removeMasterListedSelections:function(){return v},trim:function(){return r},trimCR:function(){return l}});var i=n("PcWQ"),o=n.n(i);function a(e){return"number"!=typeof e&&""==l(e)}function s(e){return""!=l(e)}function r(e){return null==e||e.length<1?"":e.trim?e.trim():e}function l(e){return e?e.replace(/^\s*|\s*$/g,""):""}function c(e){for(var t="",n=0;n<e.length;n++)e.charAt(n)>="0"&&e.charAt(n)<="9"&&(t+=e.charAt(n));return t}function d(e,t){if(!e)return"";var n="";0===e.indexOf("+1")&&(n="+1 ",e=e.substring(2));var i="";return t&&t.length>0&&(i=" ext: "+t),n+u(e)+i}function u(e){for(var t="(",n=0;n<e.length;n++)t+=e.charAt(n),2==n&&(t+=") "),5==n&&(t+="-");return t}var p,h=!1;function m(e,t){null==t&&(t="");var n=t.toLowerCase(),i=e.toLowerCase().split("*");if(1==i.length)return e==n;for(var o=0,a=0;a<i.length;
2a++)if(!(i[a].length<1)){if(0==a&&0!=n.indexOf(i[a]))return!1;if(!(n.indexOf(i[a],o)>=o))return!1;if(a==i.length-1&&n.lastIndexOf(i[a])!=n.length-i[a].length)return!1;o=n.indexOf(i[a])+1}return!0}function f(e,t,n,i,o){h=i;var a=document.getElementById(e),s=document.getElementById(t),r=document.getElementById(n).value;null!=o&&o&&(r=document.getElementById(n).value.toUpperCase()),s.options.length=0;for(let e=0,t=0;e<a.options.length;e++){var l="";l=a.options[e].getAttribute("filterName")?null!=o&&o?a.options[e].getAttribute("filterName").toUpperCase():a.options[e].getAttribute("filterName"):null!=o&&o?a.options[e].text.toUpperCase():a.options[e].text,i&&!m(r,l)||(s.options[t]=new Option,s.options[t].text=a.options[e].text,s.options[t].value=a.options[e].value,a.options[e].getAttribute("memberCount")&&s.options[t].setAttribute("memberCount",a.options[e].getAttribute("memberCount")),a.options[e].getAttribute("filterName")&&s.options[t].setAttribute("filterName",a.options[e].getAttribute("filterName")),t++)}i||(document.getElementById(n).value="")}function g(e,t,n){var i=document.getElementById(e),o=document.getElementById(t);y(t,n);var a=o.options.length-1,s=i.options.length-1;for(let e=a;e>=0;e--)if(o.options[e].selected){for(let t=s;t>=0;t--)if(o.options[e].value==i.options[t].value&&o.options[e].text==i.options[t].text){i.remove(t),s--;break}o.remove(e)}}function v(e,t,n,i,o){var a=document.getElementById(t),s=!1;null!=o&&o&&(s=!0),y(t,e);for(let e=a.options.length-1;e>=0;e--)a.options[e].selected&&a.remove(e);f(e,n,i,h,s)}function y(e,t){for(var n=document.getElementById(t),i=document.getElementById(e),o=0;o<i.options.length;o++)if(""!=r(i.options[o].text)&&i.options[o].selected){var a=0;for(a=0;a<n.options.length&&!(i.options[o].text<=n.options[a].text);a++);(a==n.options.length||i.options[o].text<n.options[a].text)&&w(i.options[o],n,a)}}function b(e,t){var n=document.getElementById(t),i=document.getElementById(e);n.options.length=0;for(var o=0;o<i.options.length;o++){var a=document.createElement("option");a.value=i.options[o].value,a.text=i.options[o].text,i.options[o].getAttribute("memberCount")&&a.setAttribute("memberCount",i.options[o].getAttribute("memberCount")),i.options[o].getAttribute("filterName")&&a.setAttribute("filterName",i.options[o].getAttribute("filterName"));try{n.add(a,null)}catch(e){n.add(a)}}}function C(e,t){for(var n=document.getElementById(t),i=document.getElementById(e),o=0;o<i.options.length;o++)if(i.options[o].selected){var a;for(a=0;a<n.options.length&&!(i.options[o].text.toUpperCase()<n.options[a].text.toUpperCase());a++);w(i.options[o],n,a)}for(o=i.options.length-1;o>=0;o--)i.options[o].selected&&i.remove(o)}function _(e,t){for(var n=document.getElementById(e),i=document.getElementById(t),o=0,a=0;a<n.options.length;a++)for(;o<i.options.length;o++){if(n.options[a].text.toUpperCase()==i.options[o].text.toUpperCase()){i.remove(o);break}if(n.options[a].text.toUpperCase()<i.options[o].text.toUpperCase())break}}function w(e,t,n){var i=document.createElement("option");i.value=e.value,i.text=e.text,e.getAttribute("memberCount")&&i.setAttribute("memberCount",e.getAttribute("memberCount")),e.getAttribute("filterName")&&i.setAttribute("filterName",e.getAttribute("filterName"));let o=t.options[n];n>=t.options.length&&(o=null);try{t.add(i,o)}catch(e){t.add(i,n)}}function E(e,t){for(var n=document.getElementById(t),i=document.getElementById(e),o=0;o<n.options.length;o++)for(var a=0;a<i.options.length;a++)if(n.options[o].value==i.options[a].value){i.options[a].getAttribute("memberCount")&&n.options[o].setAttribute("memberCount",i.options[a].getAttribute("memberCount")),i.options[a].getAttribute("filterName")&&n.options[o].setAttribute("filterName",i.options[a].getAttribute("filterName")),i.remove(a);break}}function A(e,t,n){var i=new Date(e.getTime()+t).toGMTString();return i.indexOf(" UTC")>=0?i.substring(0,i.indexOf(" UTC"))+" "+n:i.substring(0,i.indexOf(" GMT"))+" "+n}function S(e){var t=e>=0?"+":"-",n=Math.floor(e/36e5);n<0&&(n*=-1),n<10&&(n="0"+n);var i=e/6e4%60;return i<10&&(i="0"+i),t+n+i}function x(){return 1e16*Math.random()}function T(){var e=new Date,t=e.getMonth()+1;t<10&&(t="0"+t);var n=e.getDate();n<10&&(n="0"+n);var i=e.getHours();i<10&&(i="0"+i),i>12&&(i-=12);var o=e.getMinutes();o<10&&(o="0"+o);var a=e.getSeconds();a<10&&(a="0"+a);var s=e.getHours()>11?"p":"a";return t+"/"+n+"/"+e.getFullYear()+" "+i+":"+o+":"+a+" "+s}function M(){var e=-1;if("Microsoft Internet Explorer"==navigator.appName){var t=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}return e}function L(){return navigator.userAgent.indexOf("MSIE")>=0}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.isTrue=function(){return"true"==this.trim().toLowerCase()},String.prototype.isEmpty=function(){return this.trim().length<1},String.prototype.notEmpty=function(){return this.trim().length>0},o().fn.verticalAlignChildren=function(){var e=o()(this).children();o()(this).css("padding-top",0).css("padding-bottom",0);var t=o()(this).height();e.each(function(){if(o()(this).hasClass("clearAll"))return!1;"none"==o()(this).css("float")&&o()(this).css("float","left");var e=(t-o()(this).outerHeight())/2;o()(this).css("margin-top",e)})},(p=o()).cachedScript=function(e,t){return t=o().extend(t||{},{dataType:"script",cache:!0,url:e}),p.ajax(t)}},akzv:function(e,t,n){"use strict";const i="data-allow-special-characters-in-text",o="data-timezone-offset",a={};t.Ay={get allowSpecialCharactersInText(){return document.documentElement.hasAttribute(i)},set allowSpecialCharactersInText(e){e?document.documentElement.setAttribute(i,""):document.documentElement.removeAttribute(i)},get raveVersion(){return"?version="+this.getCachedAttribute("data-rave-version")},get admin(){return document.documentElement.hasAttribute("data-admin")},get trainingMode(){return document.documentElement.hasAttribute("data-training-mode")},get language(){return this.getCachedAttribute("data-language","en")},get region(){return this.getCachedAttribute("data-region","US")},get locale(){return this.getCachedAttribute("data-locale","en_US")},get dateFlatpickrFormat(){return this.getCachedAttribute("data-date-flatpikr-format","m/d/Y")},get timeFlatpickrFormat(){return this.getCachedAttribute("data-time-flatpikr-format","h:i K")},get timeTimeZoneOffset(){return this.getCachedAttribute(o)},get timeTimeZoneOffsetInMinutes(){return this.getCachedAttribute(o)/60/1e3},get timeTimeZoneId(){return this.getCachedAttribute("data-timezone-id")},get autoTranslationsEnabled(){return this.getBooleanCachedAttribute("data-auto-translations-enabled")},getBooleanCachedAttribute(e,t){return"true"===this.getCachedAttribute(e,t)},getCachedAttribute(e,t){let n=a[e];return void 0===n&&(n=a[e]=document.documentElement.getAttribute(e)||t),n}}},"+R3k":function(e,t,n){"use strict";var i=n("EgnG"),o=n("PcWQ");const a=function(e){let t;this.rowEl=o(e.rowEl),this.onExpand=e.onExpand,this.onCollapse=e.onCollapse,this.indicatorLocation=e.indicatorLocation,t=this.indicatorLocation?this.rowEl.find("td:first-child").find(this.indicatorLocation):this.rowEl.find("td:first-child"),t.addClass("tree-expander"),this.expanderControl=o('\n        <button type="button" class="expander-control is-collapsed m-r-5">\n            <div class="expander-control-wrapper">\n               <div class="icon-arrow-down"></div>\n            </div>\n        </button>'),t.prepend(this.expanderControl),this.rowEl.on("click",e=>{var t=o(e.target);t.closest("[expander-exclude]").length>0||t.is("[expander-exclude]")||this.expand(e.currentTarget)})};a.prototype.expand=function(e){const t=o(e).nextUntil("tr:not(.expander-row)"),n=o(t[0]),i=!0===n.data("visible");if(n.data("visible",!i),this.onExpand&&!i){if(this.onExpand(e,n[0]))return}this.onCollapse&&i&&this.onCollapse(e,n[0]),t.each((e,t)=>{const n=o(t);if(0===e&&(i?r(n):s(n)),0!==e){!0===n.data("visible")&&(i?r(n):s(n))}}),i?this.expanderControl.removeClass("is-expanded").addClass("is-collapsed"):this.expanderControl.removeClass("is-collapsed").addClass("is-expanded")},a.prototype.destroy=function(){o(this.rowEl).off("click")};const s=e=>{e.find(".expander-content").addClass("open"),(0,i.A)({targets:e.find(".expander-content").get(),translateY:[{value:-60,duration:0},{value:0,duration:1e3,elasticity:0}],opacity:[{value:0,duration:0},{value:1,duration:400,easing:"linear"}]})},r=e=>{(0,i.A)({targets:e.find(".expander-content").get(),translateY:[{value:-60,duration:400,elasticity:0,easing:"easeInQuad"}],opacity:[{value:0,duration:400,easing:"linear"}],complete(){e.find(".expander-content").removeClass("open")}})};t.A=a},CIKd:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("L5+t"),o=n("9oYx"),a=n("fz80");class s extends o.A{constructor(e){super(e)}upload(e,t,n){var i=new FormData;return e&&Array.prototype.forEach.call(e,function(e){i.append("files",e)}),this.send({url:this.config.upload,ajaxAlias:"fileUpload",contentType:!1,processData:!1,data:i,headers:null,
2suppressErrors:t,xhr:new a.A(n)})}deleteFile(e){return this.send({url:this.config.delete,data:e})}downloadFile(e){super.downloadFile.call(this,this.config.download,{path:e.path,fileName:e.name})}createFileHref(e){return super.createFileHref.call(this,this.config.download,{path:e.path,fileName:e.name})}}(0,i.A)(s,"ErrorType",{LIMIT_EXCEEDED:"LIMIT_EXCEEDED",EMPTY:"EMPTY",WRONG_FORMAT:"WRONG_FORMAT"})},"9oYx":function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n("L5+t"),o=n("UDvT"),a=n("7RMj"),s=n("PcWQ");function r(e,t){let n=s.param(t);return-1===e.indexOf("?")?e+"?"+n:e+"&"+n}class l{constructor(e){this.config=e,this.pendingRequests={},this.storageStrategy="sessionStorage"}putToLocalStorage(e,t){window[this.storageStrategy]?("string"!=typeof t&&(t=JSON.stringify(t)),window[this.storageStrategy].setItem(e,t)):console.error("localStorage not available")}getFromLocalStorage(e){if(!window[this.storageStrategy])return console.error("localStorage not available"),null;var t=window[this.storageStrategy].getItem(e);try{return JSON.parse(t)}catch(e){return t}}removeFromLocalStorage(e){if(!window[this.storageStrategy])return console.error("localStorage not available"),null;window[this.storageStrategy].removeItem(e)}localStorageAvailable(){var e="___modernizr___";try{return window[this.storageStrategy].setItem(e,e),window[this.storageStrategy].removeItem(e),!0}catch(e){return!1}}assertCsrf(e){if(!window[this.storageStrategy])return console.error("localStorage not available"),null;e!==this.getFromLocalStorage(l.PAGE_CSRF)&&(window[this.storageStrategy].clear(),this.putToLocalStorage(l.PAGE_CSRF,e))}fetch(e){let t=s.extend({},e);return t.type="GET",this.send(t)}put(e){let t=s.extend({},e);return t.type="PUT",this.send(t)}delete(e){let t=s.extend({},e);return t.type="DELETE",this.send(t)}debouncedSend(e){const t=e.alias||e.ajaxAlias;return t?(this.pendingRequests[t]||(this.pendingRequests[t]=(0,a.debounceAsync)(async e=>await this.send(e),100,{leading:!0})),this.pendingRequests[t](e)):this.send(e)}send(e){e.url||console.error("Error: url is empty"),e.data instanceof FormData||(e.data&&"object"==typeof e.data&&Object.keys(e.data).forEach(t=>{const n=e.data[t];n&&"string"==typeof n&&(e.data[t]=e.data[t].trim())}),"GET"!==e.type&&(e.data=JSON.stringify(e.data)));const t=new Error,n={type:"POST",dataType:"json",cache:!1,contentType:"application/json",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-TOKEN":s("meta[name='_csrf']").attr("th:content")},alias:e.ajaxAlias||e.alias};return s.ajax(s.extend({},n,e)).fail(n=>{const i=e.suppressErrors||!1,a=n.getResponseHeader("RAVE_EXCEPTION");let s="We are sorry, we have encountered an unexpected error, please try again. If you encounter it again, please contact Rave support ";console.error("Failure while sending request to url: ",e.url),!i&&e.responseContainsErrorMessage?this.displayErrorAfterAjax(n,t,a):a?(s+="with the following error code: "+a,i||o.Ay.warning("Server Error",s,"Continue"),console.error(s+"\n"+t.stack+"\n"+(new Error).stack)):(n.responseJSON&&(s=n.responseJSON.raveException),i||o.Ay.warning(null,s))}).always(()=>{this.pendingRequests&&(this.pendingRequests[e.ajaxAlias]=!1)})}displayErrorAfterAjax(e,t,n){const i=JSON.parse(e.responseText);if(i.errorMessage){const e=i.title||"Warning",a=i.textContinue||"Continue";o.Ay.warning(e,i.errorMessage,a),console.error(n+"\n"+t.stack+"\n"+(new Error).stack)}}createFileHref(e,t){return r(e,t)}downloadFile(e,t){window.location.assign(r(e,t))}changeLocationWithParameters(e,t){if(!e.hostname||!e.pathname)throw Error("supported location type: Location");var n=Rave.Util.parseParams(e.search);t&&s.extend(n,t);var i=s.param(n,!0),o=e.origin+e.pathname+"?"+i;window.location.assign(o)}changeLocation(e,t){let n="";t&&(n=s.param(t),e=e.includes("?")?e+"&"+n:e+"?"+n),window.location.assign(e)}requestGeoLocation(){var e=s.Deferred();return navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>e.resolve(t),t=>e.reject(t)):e.reject("not supported"),e.promise()}reload(){location.reload()}htmlDecode(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}}(0,i.A)(l,"PAGE_CSRF","pageCsrf")},nQlO:function(e,t,n){"use strict";n.d(t,{o:function(){return a}});var i=n("7RMj"),o=n("PcWQ");const a={DEFAULT:"DEFAULT",PARENT_OVERLAY:"PARENT_OVERLAY"},s=function(e){this.anchor=o(e.anchor),this.cssClass=e.cssClass,this.overlay=o(e.overlay),this.affectParent=e.affectParent,this.layoutStrategy=e.layoutStrategy||a.DEFAULT,this.alwaysShow=e.alwaysShow,this.title=e.title,this.alwaysShow?this.spinner=o('\n        <div class="spin-kit">
2\n            <span spin-kit-internal class="icon-spin3" title="Loading..."></span>\n        </div>'):this.spinner=o('\n        <div class="spin-kit hide">\n            <span spin-kit-internal class="icon-spin3 animate-spin" title="Loading..."></span>\n        </div>'),(e.overlay||this.layoutStrategy===a.PARENT_OVERLAY)&&(this.overlayEl=o('\n            <div class="spin-kit hide">\n                <div class="spin-kit-overlay" >\n                    <div class="spink-kit-background">\n                </div>\n                <div spin-kit-overlay-inner class="spin-kit-inner"></div>\n            </div>'),this.overlayEl.find("[spin-kit-overlay-inner]").append(this.spinner),this.spinner=this.overlayEl),this.spinnerInternal=this.spinner.find("[spin-kit-internal]"),this.cssClass&&this.spinnerInternal.addClass(this.cssClass),this.title&&(this.spinnerInternal[0].title=this.title),this.anchor.append(this.spinner)};s.prototype.start=function(){return this.spinnerInternal.addClass("animate-spin"),this},s.prototype.show=function(){return r[this.layoutStrategy].call(this)};const r={DEFAULT(){!1!==this.affectParent&&this.anchor.css("position","relative"),this.spinner.css("display","inline-block"),this.spinner.find(".spin-kit").css("display","inline-block"),this.spinner.find("[spin-kit-internal]").removeClass("rave-fadeOut");var e=this.anchor.offset().top+this.anchor.outerHeight();if(this.overlayEl){var t=this.overlayEl.find("[spin-kit-overlay-inner]"),n=t.offset().top+t.outerHeight()-e;n>0&&this.spinner.append('<div style="height:'+n+'" spin-kit-padding></div>')}return this},PARENT_OVERLAY(){const e=this.anchor.parent(),t=e.outerHeight();this.oldParentPosition=e.css("position"),e.css("position","relative"),this.spinner.removeClass("rave-fadeOut").addClass("rave-fadeIn"),this.spinner.css("display","block"),this.spinner.find(".spin-kit").css("display","block");const n=Math.min(.65*t,120),i=.2*t/2;return this.spinner.find(".spin-kit-overlay").css("font-size",n+"px"),this.spinner.find("[spin-kit-overlay-inner]").css({"margin-top":i+"px","padding-top":"0"}),this}};s.prototype.hide=function(){return this.alwaysShow||this.spinner.hide(),this.spinner.find("[spin-kit-padding]").remove(),this},s.prototype.hideAnimated=function(){let e=new o.Deferred,t=(0,i.whichAnimationEvent)(),n=this.layoutStrategy===a.PARENT_OVERLAY?this.spinner:this.spinner.find("[spin-kit-internal]");return n.removeClass("rave-fadeIn").addClass("rave-fadeOut"),t?n.bind(t,()=>{this.spinner.hide(),this.spinner.find("[spin-kit-padding]").remove(),n.unbind(t),e.resolve()}):(this.spinner.hide(),this.spinner.find("[spin-kit-padding]").remove()),e.promise()},s.prototype.stop=function(){return this.spinnerInternal.removeClass("animate-spin"),this},s.prototype.destroy=function(){this.spinner.remove()},t.A=s},nF3L:function(e,t,n){"use strict";n("5WJX"),n("7Cf0"),n("DWi2"),n("sIDj"),n("cZOo"),n("ZNhe"),n("MVQK"),n("Tqh3"),n("hOyB"),n("Qjfq"),n("B9FH"),n("u+q7");var i=n("Cpa8"),o=n("7RMj"),a=n("akzv"),s=n("PcWQ");const r={base_url:"/js/libs/tinymce/",body_class:"rave-tinymce-editor",color_cols:6,language:"fr_CA"===a.Ay.locale?"fr_FR":void 0,color_map:["1ABC9C","Strong Cyan","2ECC71","Emerald","3498DB","Bright Blue","9B59B6","Amethyst","4E5F70","Grayish Blue","F1C40F","Vivid Yellow","16A085","Dark Cyan","27AE60","Dark Emerald","2980B9","Strong Blue","8E44AD","Dark Violet","2C3E50","Desaturated Blue","F39C12","Orange","E67E22","Carrot","E74C3C","Pale Red","ECF0F1","Bright Silver","95A5A6","Light Grayish Cyan","DDD","Light Gray","FFF","White","D35400","Pumpkin","C0392B","Strong Red","BDC3C7","Silver","7F8C8D","Grayish Cyan","999","Dark Gray","000","Black"],custom_elements:"~rave-variable",invalid_elements:"wbr,script,iframe",images_upload_url:"/managementConsole/image-upload-url.action",images_upload_handler:(e,t)=>new Promise((n,a)=>{const l=new XMLHttpRequest;var c=s("meta[name='_csrf']").attr("th:content");l.withCredentials=!1,l.open("POST",r.images_upload_url),l.setRequestHeader("X-CSRF-TOKEN",c),l.upload.onprogress=e=>{t(e.loaded/e.total*100)};l.onload=()=>{const e=(e=>{let t=null;if("string"==typeof e&&e.trim().length>0)try{t=JSON.parse(e)}catch(e){t=null}return t})(null==l?void 0:l.responseText);400!==l.status?403!==l.status?l.status<200||l.status>=300?a("HTTP Error: "+l.status):e&&"string"==typeof e.location?n(e.location):a("Invalid JSON: "+l.responseText):a({message:"HTTP Error: "+l.status,remove:!0}):a({message:(null==e?void 0:e.raveException)||"HTTP Error: "+l.status,remove:!0})},l.onerror=()=>{a("Image upload failed due to a XHR Transport error. Code: "+l.status)};const d=new FormData;d.append("file",e.blob(),e.filename());const u=10485760;if(e.blob().size>u)return a({message:i.A.get("common.imageInput.file.too.large",[(0,o.formatFileSize)(u)]),remove:!0});l.send(d)}
2),relative_urls:!1,remove_script_host:!1,convert_urls:!1,content_skin:"tinymce-5",table_toolbar:"",content_style:"\n/*\n * This is loaded in an iframe, so we have to repeat this import (which we have in navigation's supernav.scss)\n */\n@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');\n\n.rave-tinymce-editor {\n    color: #333;\n    font-family: sans-serif, Arial, Verdana, \"Trebuchet MS\";\n    font-size: 13px;\n    line-height: 1.6;\n    word-wrap: break-word;\n    margin: 0 8px;\n}\n\n/*\n * For single-line, apply the types of style we have for regular input elements, so that this matches. May not\n * entirely match on all platforms, but should be close\n */\n.rave-tinymce-editor.rave-single-line {\n    margin: 3px 0.1rem;\n    font-size: 14px;\n    font-family: \"Roboto\", sans-serif !important;\n    -webkit-font-smoothing: antialiased;\n    line-height: 18.5px;\n    letter-spacing: 0.14px;\n    white-space: nowrap;\n}\n\n/*\n * Hide horizontal scrollbar so that clicking and dragging to select text that is too big to fit and dragging\n * toward the edge of the editor scrolls it toward the end like usual without you having to see the scrollbar\n */\nhtml:has(.rave-tinymce-editor.rave-single-line) {\n    scrollbar-width: none;\n}\n\n/*\n * This vertical margin on paragraph elements is actually what gives the TinyMCE editor it's vertical padding\n * normally. In this case we want a lot less padding than usual, and actually we will be sizing the editor\n * explicitly anyway, so we don't need any more margin from the paragraph\n */\n.rave-tinymce-editor.rave-single-line p {\n    margin: 0;\n}\n\n.mce-content-readonly {\n    background-color: #ccc !important;\n    overflow-y: auto !important;\n}\n\nrave-variable {\n    display: inline;\n    border-color: transparent;\n    border-width: 2px;\n    border-radius: 3px;\n    border-style: solid;\n    margin-top: -2px;\n    margin-bottom: -2px;\n    margin-left: -2px;\n    margin-right: -2px;\n    white-space: nowrap;\n}\n\nrave-variable.rave-variable-suggestion, rave-variable.rave-variable-suggestion:hover {\n    display: inline;\n    margin: 0;\n    padding: 0;\n    border: none;\n}\n\nrave-variable:hover {\n    border-color: #888;\n}\n\nrave-variable > .rave-variable-inner-name {\n    white-space: nowrap;\n}\n\nrave-variable.rave-variable-active.rave-variable-empty > .rave-variable-inner-name {\n    opacity: 0;\n}\n\nrave-variable.rave-variable-empty, rave-variable.rave-variable-empty:hover {\n    border-color: #88f;\n    margin-left: -1px;\n    margin-right: -1px;\n}\n\nrave-variable[contentEditable=false] {\n    cursor: default !important;\n    outline: none !important;\n}\n\nrave-variable.rave-variable-active, rave-variable.rave-variable-active:hover {\n    border-color: #00f;\n}\n\nrave-variable.rave-variable-active.rave-variable-empty {\n    width: 100px;\n}\n      ",font_family_formats:"Font=sans-serif, Arial, Verdana, Trebuchet MS; Arial=Arial,Helvetica,sans-serif; Comic Sans MS=Comic Sans MS,cursive; Courier New=courier new,courier,monospace; Georgia=Georgia,sans-serif; Lucida Sans Unicode=Lucida Sans Unicode,Lucida Grande,sans-serif; Tahoma=Tahoma,Geneva,sans-serif; Times New Roman=Times New Roman,Times,serif; Trebuchet MS=Trebuchet MS,Helvetica,sans-serif; Verdana=Verdana,Geneva,sans-serif",font_size_formats:"Size=13px 8px 9px 10px 11px 12px 14px 16px 18px 20px 22px 24px 26px 28px 36px 48px 72px",formats:{fontsize:{inline:"span",styles:{"font-size":"%value"}}},max_height:194,menubar:!1,min_height:194,skin:"tinymce-5",statusbar:!1,browser_spellcheck:!0,plugins:"autoresize code lists link image table fullscreen ",smart_paste:!0,paste_data_images:!0,paste_webkit_styles:"all",link_title:!1,anchor_top:!1,anchor_bottom:!1,link_target_list:!1,link_assume_external_targets:"https",link_default_protocol:"https",toolbar_persist:!1,contextmenu:"image table",toolbar:"bold italic underline | fontfamily | fontsize | forecolor backcolor | numlist bullist | alignleft aligncenter alignright al
2ignjustify | outdent indent | link unlink | image table | nopaste | undo redo | code | fullscreen ",toolbar_mode:"wrap"};t.A=r},VGUE:function(e,t,n){"use strict";n.d(t,{NQ:function(){return l},Sy:function(){return u},Ut:function(){return h},XM:function(){return a},Z2:function(){return m},aY:function(){return c},br:function(){return f},i3:function(){return d},n0:function(){return g},tC:function(){return r},tE:function(){return o},uk:function(){return v},z:function(){return p}});n("Cpa8"),n("7RMj");var i=n("ZU6F");const o="\n",a=(e,t,n,o)=>{const a=(0,i.testForIllegalCharacters_IdentifyOnError)(t,{value:o},n,!1,null,null,e);return s(e,!!a),a},s=(e,t)=>{try{const n=e.getContainer();t?n.classList.add("textAlertError"):n.classList.remove("textAlertError")}catch(e){}},r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?(t=e.replace(/<!--.*?-->/gim,""),t=t.replace(/<\/li>/gim," </li>"),t=t.replace(/<(script|style)((\b[^>]*>(.*?)<\/(script|style)>(r)?)|(.*?\/>))/gim,""),t=t.replace(/<br[^>]*?>/gim,n),t=t.replace(/<[^>]*>/gim,""),t=t.replace(/&nbsp;/gim," "),t.trim()):""};function l(e){const t=document.createElement("div");t.innerHTML=e;for(let e=0;e<t.children.length;++e){const n=t.children[e];"BR"!==n.tagName?n.nodeType===Node.ELEMENT_NODE&&(n.innerHTML=l(n.innerHTML)):(t.removeChild(n),e--)}return t.innerHTML}const c=function(e){if(!e)return"";let t=e;for(t=t.replace(/<[^>]*>/g,""),t=t.replace(/\r\n\r\n|\r\r|\n\n/g,"<doubleline>"),t=t.replace(/\r\n|\r|\n/g,"<singleline>"),t=t.replace(/<doubleline>/g,"</p>\n\n<p>"),t.endsWith("<singleline>")&&(t+="<singleline>"),t=t.replace(/<singleline>/g,"<br />\n");t.length>0&&" "===t[t.length-1];)t=t.replace(/ $/,"&nbsp;");for(;t.length>0&&" "===t[0];)t=t.replace(/^ /,"&nbsp;");return t=t.replaceAll(/\x20\x20/g,"&nbsp; ").replaceAll(/\x20\x20/g," &nbsp;"),"<p>"+t+"</p>"},d=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r(e).trim();return t?u(n):n},u=function(e){let t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue},p=function(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},h=function(e){return e.replace(/\r\n|\r|\n/g,"<br/>")},m=e=>{if(!e)return"";let t=e;return t=t.replace(/<[^>]*>/g,""),t=t.replace(/&nbsp;/gi,""),t=t.replace(/&[a-z]+;
2/gi,""),t=t.replace(/\\n/g,""),t=t.replace(/\r\n|\r|\n/g,""),t=t.replace(/\s+/g,""),t=t.trim(),t=t.toLowerCase(),t},f=e=>{if(!e)return[];const t=[];(e.match(/<img[^>]+src="([^"]+)"[^>]*>/gi)||[]).forEach(e=>{const n=(e.match(/src="([^"]+)"/i)||[])[1]||"";t.push(`img:${n}`)});return[{pattern:/<table[^>]*>/gi,label:"table"},{pattern:/<ul[^>]*>/gi,label:"ul"},{pattern:/<ol[^>]*>/gi,label:"ol"},{pattern:/<li[^>]*>/gi,label:"li"},{pattern:/<(b|strong)[^>]*>/gi,label:"bold"},{pattern:/<(i|em)[^>]*>/gi,label:"italic"},{pattern:/<u[^>]*>/gi,label:"underline"}].forEach(n=>{let{pattern:i,label:o}=n;(e.match(i)||[]).forEach(()=>t.push(o))}),t};function g(e,t,n){if(null!=e.dataset.mceBogus)return"";let i="",o="";for(let s=0;s<e.childNodes.length;++s){var a;const r=e.childNodes[s];if("P"===o&&null==(null===(a=r.dataset)||void 0===a?void 0:a.mceBogus)&&(i+="\n\n"),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent.replaceAll("\ufeff","").replaceAll("\n",""),o=""),r.nodeType===Node.ELEMENT_NODE)if(o=r.tagName,"BR"===r.tagName&&null!=r.nextSibling)i+="\n";else if("RAVE-VARIABLE"===r.tagName){if(!r.classList.contains("rave-variable-suggestion")&&(null==t?void 0:t.excludeVariable)!==r.dataset.name){const e=null==n?void 0:n.find(e=>e.name===r.dataset.name);null!=e&&(i+=e.value)}}else i+=g(r,t,n)}return i}function v(e,t,n){let i=g(e,{},n);for(;i.length>t;){let o=e.lastChild,a=!1;for(;o.nodeType!=Node.TEXT_NODE;){if(null==o.lastChild){o.parentNode.removeChild(o),i=g(e,{},n),a=!0;break}o=o.lastChild}if(a)continue;if(0===o.textContent.length){o.parentNode.removeChild(o),i=g(e,{},n);continue}const s=Math.min(i.length-t,o.textContent.length);s===o.textContent.length?o.parentNode.removeChild(o):o.textContent=o.textContent.substring(0,o.textContent.length-s),i=g(e,{},n)}}},t4rF:function(e,t,n){"use strict";n.d(t,{W:function(){return C}});var i=n("L5+t"),o=n("+cQT");function a(e,t){const n=e.parentNode;let i=null;for(let t=1;t<n.childNodes.length;++t)if(n.childNodes[t-1]===e){i=n.childNodes[t];break}const o=e.textContent.substring(0,t),a=document.createTextNode(o),s=e.textContent.substring(t),r=document.createTextNode(s);return n.removeChild(e),null!=i?(n.insertBefore(a,i),n.insertBefore(r,i)):(n.appendChild(a),n.appendChild(r)),{beforeNode:a,afterNode:r}}function s(e,t,n,i){let o=e.parentNode;for(;null!=o&&o!=i;){if(o.nodeType===Node.ELEMENT_NODE){if(o.tagName===t)return o;if(null!=n&&o.style[Object.entries(n)[0][0]]===Object.entries(n)[0][1])return o}o=o.parentNode}return null}function r(e,t){const n=t.nextIndex(),i=[];for(let n=0;n<e.childNodes.length;++n)i.push(r(e.childNodes[n],t));return{childNodes:i,node:e,nodeType:e.nodeType,sequence:n,tagName:e.tagName,textContent:e.textContent}}function l(e){const t={index:-1,nextIndex(){return this.index++,this.index}},n=[];for(let i=0;i<e.childNodes.length;++i)n.push(r(e.childNodes[i],t));return n}function c(e){const t=(0,o.ref)([]),n=(0,o.computed)(()=>{const e=[],n=[];for(let e=0;e<t.value.length;++e)n.push(t.value[e]);for(;n.length>0;){const t=n.shift();if(t.nodeType==Node.TEXT_NODE)e.push(t);else for(let e=t.childNodes.length-1;e>=0;--e)n.unshift(t.childNodes[e])}return e});if((0,o.isRef)(e)){const n=new MutationObserver(()=>{t.value=l(e.value)});(0,o.onMounted)(()=>{null!=e.value&&(t.value=l(e.value)),n.disconnect(),null!=e.value&&n.observe(e.value,{attributes:!0,subtree:!0,childList:!0,characterData:!0})}),(0,o.onUnmounted)(()=>{n.disconnect()}),(0,o.watch)(e,e=>{null!=e&&(null!=e&&(t.value=l(e)),n.disconnect(),n.observe(e,{attributes:!0,subtree:!0,childList:!0,characterData:!0}))})}function i(e,n){if((null==n?void 0:n.node)===e)return n;const o=null!=(null==n?void 0:n.childNodes)?n.childNodes:null!=n?n:t.value;for(let t=0;t<o.length;++t){const n=i(e,o[t]);if(null!=n)return n}return null}async function r(o){const s=i(o.focusNode,t.value),r=i(o.anchorNode,t.value),c=function(e,t){return null==e||null==t?null:t.sequence>=e.sequence?t:e}(r,s),d=function(e,t,n){return e.anchorNode===e.focusNode?e.anchorOffset>e.focusOffset?e.anchorOffset:e.focusOffset:null==t||null==n?0:n.sequence>=t.sequence?e.focusOffset:e.anchorOffset}(o,r,s),u=function(e,t){return null==e||null==t?null:t.sequence<e.sequence?t:e}(r,s),p=function(e,t,n){return e.anchorNode===e.focusNode?e.anchorOffset<e.focu
2sOffset?e.anchorOffset:e.focusOffset:null==t||null==n?0:n.sequence<t.sequence?e.focusOffset:e.anchorOffset}(o,r,s),h=o.focusNode===c.node&&o.focusOffset===d;let m=n.value.findIndex(e=>e.sequence===u.sequence),f=n.value.findIndex(e=>e.sequence===c.sequence),g=p,v=d;p===u.textContent.length&&(m++,g=0),0===d&&(f--,v=n.value[f].node.textContent.length);let y=n.value[m].node,b=n.value[f].node,C=y===b;if(g>0){const{beforeNode:e,afterNode:t}=a(y,g);y=t,g=0,h?(o.anchorNode=y,o.anchorOffset=g):(o.focusNode=y,o.focusOffset=g),C&&(b=t,v-=e.textContent.length,h?(o.focusNode=b,o.focusOffset=v):(o.anchorNode=b,o.anchorOffset=v))}if(v<b.textContent.length){const{beforeNode:e}=a(b,v);b=e,v=e.textContent.length,h?(o.focusNode=b,o.focusOffset=v):(o.anchorNode=b,o.anchorOffset=v),C&&(y=e,g=0,h?(o.anchorNode=y,o.anchorOffset=g):(o.focusNode=y,o.focusOffset=g))}t.value=l(e.value),m=n.value.findIndex(e=>e.node===y),f=n.value.findIndex(e=>e.node===b);const _=[];for(let e=m;e<=f;++e)_.push(n.value[e].node);return _}return{findVirtualNode:i,flatTextNodes:n,selectionToggleTag:async function(e,n,i){return function(e){return e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset}(i)?{}:function(e,n,i){const o=t.value;let a=!0,r=!0,l=!1;for(let t=0;t<e.length;++t)null!=s(e[t],n,i,o)?(0===t&&(l=!0),r=!1):a=!1;if(a||!r&&l){for(let t=0;t<e.length;++t){const a=e[t],r=s(e[t],n,i,o);if(null!=r){const e=r.parentNode,t=[];let i=null,o=!1;for(;r.childNodes.length>0&&!o;){const n=r.childNodes[0];e.insertBefore(n,r),n.contains(a)?(o=!0,i=n):t.push(n)}if(null!=i&&i!==a){const e=[],t=[];let o=!0;for(let n=0;n<i.childNodes.length;++n){const s=i.childNodes[n];s===a?o=!1:o?e.push(s):t.push(s)}if(e.length>0){const t=document.createElement(n);for(let n=0;n<e.length;++n)t.appendChild(e[n]);i.insertBefore(t,a)}if(t.length>0){const e=document.createElement(n);for(let n=0;n<t.length;++n)e.appendChild(t[n]);i.appendChild(e)}}else if(i===a&&r.tagName!==n){const t=document.createElement(r.tagName);e.insertBefore(t,i),t.appendChild(i)}for(let e=0;e<t.length;++e)if(t[e].nextSibling===a&&t[e].nodeType===Node.ELEMENT_NODE)"B"===n&&(t[e].style.fontWeight="bold");else if(t[e].nodeType===Node.TEXT_NODE)if(null!=a.previousSibling&&a.previousSibling.nodeType===Node.ELEMENT_NODE&&a.previousSibling.tagName===n)a.previousSibling.appendChild(t[e]);else{const i=document.createElement(n);i.appendChild(t[e]),a.parentNode.insertBefore(i,a)}0===r.childNodes.length&&e.removeChild(r)}}return{}}let c=null,d=null;for(let t=0;t<e.length;++t){var u;const i=e[t],o=i.parentNode;if(null!=d&&o!==d){const o=[i.parentNode],a=[];for(;o.length>0;){const e=o.shift();if(e.nodeType===Node.TEXT_NODE)a.push(e);else for(let t=e.childNodes.length-1;t>=0;--t)o.unshift(e.childNodes[t])}let s=!0,r=-1;for(let t=0;t<a.length;++t)e.includes(a[t])?r=e.findIndex(e=>e===a[t]):s=!1;if(s){const e=i.parentNode.previousSibling;if((null==e?void 0:e.tagName)===n){e.appendChild(i.parentNode);const t=e.nextSibling;if((null==t?void 0:t.tagName)===n){const n=[];for(let e=0;e<t.childNodes.length;++e)n.push(t.childNodes[e]);for(const t of n)e.appendChild(t);t.parentNode.removeChild(t)}}t=r;continue}}const a=i.previousSibling;if((null==a?void 0:a.tagName)===n){a.appendChild(i);const e=a.nextSibling;if((null==e?void 0:e.tagName)===n){const t=[];for(let n=0;n<e.childNodes.length;++n)t.push(e.childNodes[n]);for(const e of t)a.appendChild(e);e.parentNode.removeChild(e)}}else if((null===(u=i.nextSibling)||void 0===u?void 0:u.tagName)===n)i.nextSibling.childNodes.length>0?i.nextSibling.insertBefore(i,i.nextSibling.childNodes[0]):i.nextSibling.appendChild(i);else{const e=i.parentNode;let t=null;for(let n=1;n<e.childNodes.length;++n)if(e.childNodes[n-1]===i){t=e.childNodes[n];break}c=document.createElement(n),c.appendChild(i),null!=t?e.insertBefore(c,t):e.appendChild(c)}d=o}return{tagNode:c}}(await r(i),e,n)},splitNodesOnSelection:r,splitTextNode:a,virtualNodes:t}}var d=n("VGUE"),u=n("akzv");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?p(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const m=(0,o.ref)([]);let f=1;function g(e){return null!=e?e:0}function v(){const e=f;return f++,e}function y(){f=1}const b={SNAPSEND_SHORT_MESSAGE_EDITOR_INDEX:100,SNAPSEND_LONG_MESSAGE_EDITOR_INDEX:200,TEXT_CONTENT_EDITOR_INDEX:300,TEXT_MORE_INFO_EDITOR_INDEX:350,EMAIL_SUBJECT_EDITOR_INDEX:400,EMAIL_TEXT_BODY_EDITOR_INDEX:450,EMAIL_HTML_BODY_EDITOR_INDEX:451,VOICE_TTS_EDITOR_INDEX:500,TWITTER_MESSAGE_EDITOR_INDEX:600,FACEBOOK_MESSAGE_EDITOR_INDEX:650,DESKTOP_HEADLINE_EDITOR_INDEX:700,DESKTOP_BODY_EDITOR_INDEX:750,CAP_HEADLINE_EDITOR_INDEX:800,CAP_DESCRIPTION_EDITOR_INDEX:850,CAP_INSTRUCTION_EDITOR_INDEX:900,GUARDIAN_PUSH_EDITOR_INDEX:1100,GUARDIAN_BODY_EDITOR_INDEX:1150,MYSMARTAPP_PUSH_EDITOR_INDEX:1200,MYSMARTAPP_BODY_EDITOR_INDEX:1250};function C(e,t,n,i,a,s,r,l,p,f){const{findVirtualNode:C,splitTextNode:_,virtualNodes:w}=c(n);let E=null,A=null,S=!1;function x(e){return"\ufeff"===e.focusNode.textContent[e.focusOffset]}function T(e){return"\ufeff"===e.focusNode.textContent[e.focusOffset-1]}function M(e){var t;return"RAVE-VARIABLE"===(null===(t=e.focusNode.previousSibling)||void 0===t?void 0:t.tagName)&&(0===e.focusOffset||1===e.focusOffset&&T(e))}function L(e){var t;return"RAVE-VARIABLE"===(null===(t=e.focusNode.nextSibling)||void 0===t?void 0:t.tagName)&&(e.focusOffset===e.focusNode.textContent.length||e.focusOffset===e.focusNode.textContent.length-1&&x(e))}function O(e){var t;return"RAVE-VARIABLE"===(null===(t=e.focusNode.previousSibling)||void 0===t?void 0:t.tagName)&&1===e.focusOffset}function k(e,t){const n=e.selection.getSel();if(t.nodeType===Node.TEXT_NODE){let e=0,a=t.textContent.indexOf("\ufeff",e);for(;-1!==a;){if((n.focusNode!==t||n.focusOffset!==a+1&&n.focusOffset!==a)&&(n.anchorNode!==t||n.anchorOffset!==a+1&&n.anchorOffset!==a)){var i,o;if((null==t.previousSibling||"BR"===t.previousSibling.tagName)&&"\ufeff"===t.textContent&&"RAVE-VARIABLE"===(null===(i=t.nextSibling)||void 0===i?void 0:i.tagName)){e=a+1,a=t.textContent.indexOf("\ufeff",e);continue}if((null==t.nextSibling||"BR"===t.nextSibling.tagName)&&"\ufeff"===t.textContent&&"RAVE-VARIABLE"===(null===(o=t.previousSibling)||void 0===o?void 0:o.tagName)){e=a+1,a=t.textContent.indexOf("\ufeff",e);continue}let s=n.anchorOffset,r=n.focusOffset;n.anchorNode===t&&n.anchorOffset>=a&&(s-=1),n.focusNode===t&&n.focusOffset>=a&&(r-=1),t.textContent=t.textContent.substring(0,a)+t.textContent.substring(a+1),n.setBaseAndExtent(n.anchorNode,s,n.focusNode,r),e=a}else e=a+1;a=t.textContent.indexOf("\ufeff",e)}}else if(t.nodeType===Node.ELEMENT_NODE)for(let n=0;n<t.childNodes.length;++n)k(e,t.childNodes[n])}function I(){const e=i.value;for(let t=0;t<n.value.childNodes.length;++t)k(e,n.value.childNodes[t]);if(null!=F.value&&F.value.classList.contains("rave-variable-empty")&&F.value.childNodes[0].textContent.length>1){const t=F.value.childNodes[0].textContent.substring(1);F.value.classList.remove("rave-variable-empty");const n=e.selection.getSel();let i=0;for(let e=0;e<F.value.parentNode.childNodes.length;++e)F.value.parentNode.childNodes[e]===F.value&&(i=e);n.setBaseAndExtent(F.value.parentNode,i,F.value.parentNode,i),F.value.innerHTML="";const o=document.createTextNode(`${t}\ufeff`);F.value.appendChild(o),n.setBaseAndExtent(F.value.childNodes[0],1,F.value.childNodes[0],1)}if(null!=F.value&&!F.value.classList.contains("rave-variable-suggestion")&&!F.value.classList.contains("rave-variable-empty")){let t=e.selection.getSel(),{anchorOffset:n,focusOffset:i}=t;if(-1!==F.value.textContent.indexOf("\ufeff")&&0!==F.value.textContent.indexOf("\ufeff")&&F.value.textContent.indexOf("\ufeff")!==F.value.textContent.length-1&&(F.value.textContent=F.value.textContent.replaceAll("\ufeff","")+"\ufeff",t.setBaseAndExtent(F.value.childNodes[0],n,F.value.childNodes[0],i)),-1===F.value.textContent.indexOf("\ufeff")){let e=n,o=i,a=!1;n===F.value.textContent.length&&(a=!0),i===F.value.textContent.length&&(a=!0),a&&(F.value.childNodes[0].textContent+="\ufeff",t.setBaseAndExtent(F.value.childNodes[0],e,F.value.childNodes[0],o))}}re()}function P(e){let t=e.selection.getSel();if(null==(null==t?void 0:t.focusNode))return;let n=!1;
2G.value.forEach(e=>{let i=t.focusNode.parentNode,o=!1;for(;null!=i;){if(i===e){o=!0,n=!0;break}i=i.parentNode}if(o)if(null!=F.value&&F.value!==e&&(F.value.classList.contains("rave-variable-empty")?q(""):q(F.value.textContent.replaceAll("\ufeff",""))),z(e),e.classList.contains("rave-variable-empty")||t.focusOffset!==t.focusNode.textContent.length||"\ufeff"===t.focusNode.textContent[t.focusOffset-1]){if(!e.classList.contains("rave-variable-empty")&&0===t.focusOffset){const e=t.anchorOffset+1,n=1,i=t.focusNode;i.textContent=`\ufeff${i.textContent}`,t.setBaseAndExtent(i,e,i,n)}}else{const{anchorOffset:e,focusNode:n,focusOffset:i}=t;t.focusNode.textContent+="\ufeff",t.setBaseAndExtent(n,e,n,i)}}),n||null==F.value||F.value.classList.contains("rave-variable-suggestion")||(F.value.classList.contains("rave-variable-empty")?null!=W.value&&(W.value.value=""):q(F.value.textContent.replaceAll("\ufeff","")),F.value=null)}function N(){E.style.display="none"}function R(){if(null!=F.value){if(F.value.classList.contains("rave-variable-suggestion"))D();else{const e=K.value+1,t=H.value;E.childNodes[0].innerHTML=`${F.value.dataset.name} ${e} / ${t}`}const e=function(e){let t=e.getBoundingClientRect(),n=t.x,i=t.y;if(document!==e.ownerDocument){let o=null;const a=document.getElementsByTagName("iframe");for(let t=0;t<a.length;++t){const n=a[t];if(n.contentDocument===e.ownerDocument){o=n;break}}null!=o&&(t=o.getBoundingClientRect(),n+=t.x,i+=t.y)}return n+=document.documentElement.scrollLeft,i+=document.documentElement.scrollTop,{x:n,y:i}}(F.value);E.style.left=`${e.x}px`,E.style.top=`${e.y}px`,E.style.display="block"}else E.style.display="none"}function D(){A.innerHTML="";const e=document.createElement("div");e.style.border="1px solid black",e.style.padding="2px 5px",e.style.lineHeight="1",e.style.borderRadius="3px",e.style.background="#eee",e.style.fontSize="10px",e.style.color="#555",e.textContent="tab",A.appendChild(e);const t="fr"===u.Ay.language?"pour ins\xe9rer une variante":"to insert variable",n=document.createTextNode(t);A.appendChild(n)}function B(e){let n=m.value.find(t=>null!=t.elements.find(t=>t.el===e));if(null!=n)return;e.addEventListener("click",t=>{"readonly"!==i.value.mode.get()&&(e.classList.contains("rave-variable-empty")&&t.preventDefault(),null!=F.value&&F.value!==e&&(F.value.classList.contains("rave-variable-empty")?q(""):q(F.value.textContent.replaceAll("\ufeff",""))),z(e))});const a=e.dataset.name;e.classList.contains("rave-variable-suggestion")&&e.classList.remove("rave-variable-suggestion"),n=m.value.find(e=>e.name===a),null!=n&&n.value.length>0?e.innerHTML=n.value:(e.classList.add("rave-variable-empty"),e.innerHTML=`&nbsp;<span class="rave-variable-inner-name">${a}</span>&nbsp;`);let s=null!=e.dataset.id?parseInt(e.dataset.id):null;null==s&&(s=v(),e.dataset.id=s),function(e){let t=e.previousSibling;null==t||t.nodeType!==Node.TEXT_NODE?(t=document.createTextNode("\ufeff"),e.parentNode.insertBefore(t,e)):0===t.textContent.length&&(t.textContent="\ufeff");let n=e.nextSibling;null==n||n.nodeType!==Node.TEXT_NODE?(n=document.createTextNode("\ufeff"),null!=e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)):0===n.textContent.length&&(n.textContent="\ufeff")}(e),null==n&&(n={elements:[],name:a,value:""},m.value.push(n));const r=n.elements.find(e=>e.id===s);if(null!=r)return null!=r.el.parentNode?(console.error("There is more than one rave-variable element with the same id: "+s),void(e.dataset.id=v())):(r.el=e,void(r.sequence=(0,o.computed)(()=>{var t;return(null===(t=C(e))||void 0===t?void 0:t.sequence)||-1})));const l=(0,o.computed)(()=>{var t;return(null===(t=C(e))||void 0===t?void 0:t.sequence)||-1}),c=g(t);n.elements.push({editorIndex:c,el:e,hidden:(0,o.computed)(()=>f.value),id:s,currentMaxLength:()=>{if(null==p)return Number.MAX_SAFE_INTEGER;const e=te({excludeVariable:n.name}),t=n.elements.filter(e=>e.editorIndex===c);return Math.floor((p-e.length)/t.length)},sequence:l})}null!=e&&((0,o.onMounted)(()=>{E=document.createElement("div"),E.dataset.testid=`rave-variable-popup-${e}`,E.style.position="absolute",E.style.display="none",E.style.height="0",E.style.width="0",E.style.zIndex="10",A=document.createElement("div"),A.style.position="absolute",A.style.display="flex",A.style.bottom="0",A.style.background="white",A.style.boxShadow="1px 2px 4px rgba(0, 0, 0, 0.3)",A.style.fontSize="12px",A.style.padding="5px 8px",A.style.gap="4px",A.style.alignItems="center",A.style.border="1px soild rgba(0, 0, 0, 0.2)",A.style.borderRadius="0.5rem",A.style.width="max-content",D(),E.appendChild(A),document.body.appendChild(E)}),(0,o.onUnmounted)(()=>{var e;document.body.removeChild(E),function(){const e=g(t);for(let t=0;t<m.value.length;++t){const n=m.value[t];n.elements=n.elements.filter(t=>t.editorIndex!==e)}}(),null==(null===(e=F.value)||void 0===e?void 0:e.parentNode)&&(F.value=null)}));const F=(0,o.ref)(null),U=(0,o.ref)(null),$=(0,o.ref)(0),W=(0,o.computed)(()=>{const e=F.value;return null==e?null:m.value.find(t=>-1!==t.elements.findIndex(t=>t.el===e))});function V(e){var t,n;return null==(null===(t=e.el)||void 0===t?void 0:t.parentNode)||!0===(null===(n=e.hidden)||void 0===n?void 0:n.value)||!0===e.hidden}const H=(0,o.computed)(()=>{var e,t,n;return null===(e=W.value)||void 0===e||null===(t=e.elements)||void 0===t||null===(n=t.filter(e=>!V(e)))||void 0===n?void 0:n.length}),j=(0,o.computed)(()=>{const e=W.value;if(null==e)return null;const t=[];for(const n of e.elements)V(n)||t.push({editorIndex:n.editorIndex,el:n.el,sequence:n.sequence});return t.sort((e,t)=>
2e.editorIndex<t.editorIndex?-1:e.editorIndex>t.editorIndex?1:e.sequence-t.sequence),{elements:t,name:e.name}}),K=(0,o.computed)(()=>{var e,t;return null===(e=j.value)||void 0===e||null===(t=e.elements)||void 0===t?void 0:t.findIndex(e=>e.el===F.value)}),G=(0,o.computed)(()=>{const e=[];for(let n=0;n<m.value.length;++n){const i=m.value[n];for(let n=0;n<i.elements.length;++n){const o=i.elements[n];o.editorIndex===t&&e.push(o.el)}}return e});function z(e){var t,n,o,a;if(e.classList.contains("rave-variable-empty")&&null!=i.value){const t=i.value.selection.getSel();t.focusNode===e.childNodes[0]&&1===t.focusOffset&&t.anchorNode===e.childNodes[0]&&1===t.anchorOffset||i.value.selection.setCursorLocation(e.childNodes[0],1)}F.value===e&&e.classList.contains("rave-variable-active")||(F.value=e,(null===(t=e.nextSibling)||void 0===t?void 0:t.nodeType)===Node.TEXT_NODE&&(null===(n=e.nextSibling)||void 0===n?void 0:n.textContent.length)>1&&e.nextSibling.textContent.startsWith("\ufeff")&&(e.nextSibling.textContent=e.nextSibling.textContent.substring(1)),(null===(o=e.previousSibling)||void 0===o?void 0:o.nodeType)===Node.TEXT_NODE&&(null===(a=e.previousSibling)||void 0===a?void 0:a.textContent.length)>1&&e.previousSibling.textContent.endsWith("\ufeff")&&(e.previousSibling.textContent=e.previousSibling.textContent.substring(0,e.previousSibling.textContent.length-1)),e.classList.add("rave-variable-active"),R())}function q(e){if(null==W.value)return;let t=Number.MAX_SAFE_INTEGER;for(let e=0;e<W.value.elements.length;++e){const n=W.value.elements[e].currentMaxLength();n<t&&(t=n)}const n=W.value.value,i=e.substring(0,t);i!==n?W.value.value=i:de(F.value,W.value)}function X(e){var t;if(null==(null===(t=e.node.dataset)||void 0===t?void 0:t.mceBogus))if("RAVE-VARIABLE"!==e.tagName||e.node.classList.contains("rave-variable-suggestion"))e.childNodes.forEach(e=>X(e));else{B(e.node)}}function J(){w.value.forEach(e=>X(e))}function Y(e){let t=e.previousSibling;null==t||t.nodeType!==Node.TEXT_NODE?(t=document.createTextNode("\ufeff"),e.parentNode.insertBefore(t,e)):t.textContent.endsWith("\ufeff")||(t.textContent+="\ufeff");let n=e.nextSibling;null==n||n.nodeType!==Node.TEXT_NODE?(n=document.createTextNode("\ufeff"),null!=e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)):n.textContent.startsWith("\ufeff")||(n.textContent=`\ufeff${n.textContent}`)}function Q(e){for(let t=0;t<e.childNodes.length;++t){const n=e.childNodes[t];if("RAVE-VARIABLE"===n.tagName){const i=n.classList.contains("rave-variable-suggestion"),o=n.dataset.name,a=n.nextSibling;if(e.removeChild(n),!i){const t=m.value.find(e=>e.name===o);if(null!=t){const n=document.createTextNode(t.value);null!=a?e.insertBefore(n,a):e.appendChild(n)}}--t;continue}n.nodeType===Node.ELEMENT_NODE&&Q(n)}}function Z(e){const t=document.createElement("div");return t.innerHTML=e,Q(t),t.innerHTML}function ee(e,t){return(0,d.n0)(e,t,m.value)}function te(e){return ee(n.value,e).replaceAll("\xa0"," ")}function ne(e){for(let t=0;t<e.childNodes.length;++t){const n=e.childNodes[t];if("RAVE-VARIABLE"===n.tagName){if(n.classList.contains("rave-variable-suggestion")){e.removeChild(n),t-=1;continue}{for(const e of n.attributes)"data-name"!==e.name&&n.removeAttribute(e.name);const e=[];for(const t in n.dataset)"name"!==t&&e.push(t);e.forEach(e=>delete n.dataset[e]),n.contentEditable="inherit",n.innerHTML=""}}else n.nodeType===Node.ELEMENT_NODE?ne(n):n.nodeType===Node.TEXT_NODE&&(n.textContent=n.textContent.replaceAll("\ufeff",""))}}function ie(e){const t=document.createElement("div");return t.innerHTML=e,ne(t),t.innerHTML}function oe(){return ie(i.value.getContent({format:"html"}))}function ae(e){if(!e)return"";const t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll("span.over-limit-text").forEach(e=>{e.replaceWith(...e.childNodes)}),t.body.innerHTML.replaceAll("\xa0"," ").replaceAll("\ufeff","")}function se(e,t){if(null==e)return null==t;if(null==t)return!1;return ae(e)===ae(t)}function re(){const e=ee(n.value).replaceAll("\xa0"," "),t="text"===s?e:Z(i.value.getContent({format:"html"}));se(e,l.text)||(l.text=e,a("update:text",e)),se(t,l.value)&&r.value===l.truncatedFlag||(l.value=t,l.truncatedFlag=r.value,a("input",t,{truncated:r.value,text:e}));const o=oe();se(o,l.variablesHtml)||(l.variablesHtml=o,a("update:variablesHtml",o))}function le(e){let t=e;for(;null!=t&&t!==n.value;)t=t.parentNode;return t===n.value}(0,o.watch)(w,()=>{J();for(let e=0;e<m.value.length;++e){const n=m.value[e];for(let e=0;e<n.elements.length;++e)n.elements[e].editorIndex===t&&(le(n.elements[e].el)||(n.elements.splice(e,1),e--))}}),(0,o.watch)(F,(e,t)=>{null!=t&&t.classList.remove("rave-variable-active"),null==e||e.classList.contains("rave-variable-suggestion")||e.classList.add("rave-variable-active"),R()}),(0,o.watch)(j,()=>{R()});const ce=(0,o.computed)(()=>{const e=m.value,t={};for(let n=0;n<e.length;++n){const i=e[n];t[i.name]=i.value}return t});function de(e,t){if(t.value.length>0)e.classList.contains("rave-variable-empty")?(e.classList.remove("rave-variable-empty"),e.textContent=t.value,re()):e.classList.contains("rave-variable-suggestion")||e.textContent.replaceAll("\ufeff","")===t.value||(e.textContent=t.value,re());else if(!e.classList.contains("rave-variable-empty")){e.classList.add("rave-variable-empty");const n=t.name;e.innerHTML=`&nbsp;<span class="rave-variable-inner-name">${n}</span>&nbsp;`,re()}}return(0,o.watch)(ce,()=>{if(null!=(null==n?void 0:n.value))for(let e=0;e<m.value.length;++e){const n=m.value[e];for(let e=0;e<n.elements.length;++e){const i=n.elements[e];i.editorIndex===t&&de(i.el,n)}}}),h(h({},b),{},{activeVariableEl:F,getContent:function(){return"text"===s?ee(n.value).replaceAll("\xa0"," "):Z(i.value.getContent({format:"html"}))},getTextContent:te,getTextContentFromElement:ee,getVariablesByEditorIndices:function(e){return m.value.filter(t=>null!=t.elements.find(t=>e.includes(t.editorIndex)))},getVariablesHtml:oe,handleVariables:function(e){e.on("mousedown",e=>{G.value.forEach(t=>{const n=t.getBoundingClientRect();e.clientX>=n.x&&e.clientY>
2=n.y&&e.clientX<=n.x+n.width&&e.clientY<=n.y+n.height||(t.contentEditable="false")})}),e.on("mouseup",()=>{G.value.forEach(e=>{e.contentEditable="inherit"})}),e.on("SelectionChange",()=>{if(!e.getDoc().hasFocus())return;null!=e.selection.getSel()&&(P(e),I())}),e.on("focus",()=>{P(e)}),e.on("blur",()=>{N(),null!=F.value&&(null!=W.value?F.value.classList.contains("rave-variable-empty")&&""!==W.value.value?(W.value.value="",re()):F.value.classList.contains("rave-variable-empty")||W.value.value===F.value.textContent.replaceAll("\ufeff","")||(q(F.value.textContent.replaceAll("\ufeff","")),re()):F.value.classList.contains("rave-variable-suggestion")&&(F.value.parentNode.removeChild(F.value),F.value=null)),F.value=null}),e.on("click",t=>{var i,o;null!==(i=F.value)&&void 0!==i&&null!==(o=i.classList)&&void 0!==o&&o.contains("rave-variable-suggestion")&&(F.value.parentNode.removeChild(F.value),F.value=null);const a=G.value.find(e=>{const n=e.getBoundingClientRect();return t.clientX>=n.x&&t.clientY>=n.y&&t.clientX<=n.x+n.width&&t.clientY<=n.y+n.height});if(null!=a){var s,r;a.classList.contains("rave-variable-empty")&&t.preventDefault(),z(a);const n=e.selection.getSel();if(!F.value.classList.contains("rave-variable-empty")&&n.focusNode===(null===(s=F.value)||void 0===s?void 0:s.previousSibling)&&n.focusOffset===(null===(r=F.value)||void 0===r?void 0:r.previousSibling.textContent.length)){const e=F.value.childNodes[0];e.textContent=`\ufeff${e.textContent.replaceAll("\ufeff","")}`,n.setBaseAndExtent(e,1,e,1)}return}null==a&&(F.value=null),n.value.focus()}),e.on("compositionend",()=>{I()}),e.on("input",e=>{e.isComposing||I()}),e.on("compositionstart",()=>{S=!0}),e.on("compositionend",()=>{S=!1}),e.on("keydown",t=>{if(!S)if(null==F.value){if("ArrowLeft"===t.key){let n=e.selection.getSel();if(M(n))if(t.preventDefault(),t.shiftKey){const{anchorNode:e,focusNode:t}=n;let i=n.anchorOffset;const o=t.previousSibling.previousSibling;t.textContent.startsWith("\ufeff")&&(t.textContent=t.textContent.substring(1),e===t&&(i-=1)),o.textContent.endsWith("\ufeff")||(o.textContent+="\ufeff"),n.setBaseAndExtent(e,i,o,o.textContent.length-1)}else{const t=n.focusNode.previousSibling;t.classList.contains("rave-variable-empty")||(t.textContent.endsWith("\ufeff")||(t.textContent=`${t.textContent}\ufeff`),e.selection.setCursorLocation(t.childNodes[0],t.textContent.length-1)),z(t)}else if(O(n)){t.preventDefault();let i=n.anchorOffset;"\ufeff"!==n.focusNode.textContent[0]&&(n.focusNode.textContent=`\ufeff${n.focusNode.textContent}`,n.anchorNode===n.focusNode&&(i+=1)),t.shiftKey?n.setBaseAndExtent(n.anchorNode,i,n.focusNode,1):e.selection.setCursorLocation(n.focusNode,1)}}if("ArrowRight"===t.key){let n=e.selection.getSel();if(function(e){var t;return"RAVE-VARIABLE"===(null===(t=e.focusNode.nextSibling)||void 0===t?void 0:t.tagName)&&e.focusOffset===e.focusNode.textContent.length-1&&!e.focusNode.textContent.endsWith("\ufeff")}(n)){t.preventDefault();const i=n.anchorOffset;"\ufeff"!==n.focusNode.textContent[n.focusNode.textContent.length-1]&&(n.focusNode.textContent+="\ufeff"),t.shiftKey?n.setBaseAndExtent(n.anchorNode,i,n.focusNode,n.focusNode.textContent.length-1):e.selection.setCursorLocation(n.focusNode,n.focusNode.textContent.length-1)}else if(L(n))if(t.preventDefault(),t.shiftKey){const e=n.focusNode,t=n.anchorNode;let i=n.anchorOffset;const o=e.nextSibling;e.textContent.endsWith("\ufeff")&&(e.textContent=e.textContent.substring(0,e.textContent.length-1)),o.nextSibling.nodeType!==Node.TEXT_NODE||o.nextSibling.textContent.startsWith("\ufeff")||(o.nextSibling.textContent=`\ufeff${o.nextSibling.textContent}`,t===o.nextSibling&&(i+=1)),n.setBaseAndExtent(t,i,o.nextSibling,1)}else{const t=n.focusNode.nextSibling;t.classList.contains("rave-variable-empty")||(t.textContent.startsWith("\ufeff")||(t.textContent=`\ufeff${t.textContent}`),e.selection.setCursorLocation(t.childNodes[0],1)),z(t)}}if("]"===t.key){const n=e.selection.getSel();let i,o=!1,a=null,s=-1;if(n.focusNode.nodeType===Node.TEXT_NODE){for(a=n.focusNode,s=a.textContent.lastIndexOf("[",n.focusOffset);-1===s&&null!=a.previousSibling;)a=a.previousSibling,s=a.textContent.lastIndexOf("[");-1!==s&&(o=!0)}if(o){if(a===n.focusNode)i=a.textContent.substring(s+1,n.focusOffset);else{i=a.textContent.substring(s+1);let e=a;for(;e!==n.focusNode&&null!=e.nextSibling;)e=e.nextSibling,e===n.focusNode?i+=e.textContent.substring(0,n.focusOffset):i+=e.textContent}0!==i.length&&-1===i.indexOf("]")||(o=!1)}if(o){t.preventDefault(),U.value=a,$.value=s;const e=n.focusNode.parentNode,{beforeNode:o,afterNode:r}=_(n.focusNode,n.focusOffset);null==U.value.parentNode&&(U.value=o),o.textContent+="]";const l=function(e){const t=document.createElement("rave-variable");return t.dataset.name=e,t.classList.add("rave-variable-suggestion"),t}(i);e.insertBefore(l,r),0===r.textContent.length&&e.removeChild(r),n.setBaseAndExtent(o,o.textContent.length,o,o.textContent.length),F.value=l}}if("Backspace"===t.key){const n=e.selection.getSel(),{anchorNode:i,anchorOffset:o,focusNode:a,focusOffset:s}=n;if(a===i&&s===o&&M(n)){t.preventDefault();const n=a.previousSibling;Y(n);const i=n.previousSibling,o=n.nextSibling;e.selection.getSel().setBaseAndExtent(i,i.textContent.length-1,o,1)}else if(a===i&&s===o&&O(n)){t.preventDefault();const{focusNode:i}=n;i.textContent=`\ufeff${i.textContent.substring(1)}`,e.selection.setCursorLocation(i,1)}}if("Delete"===t.key){const n=e.selection.getSel(),{anchorNode:i,anchorOffset:o,focusNode:a,focusOffset:s}=n;if(a===i&&s===o&&L(n)){t.preventDefault();const n=a.nextSibling;Y(n);const i=n.previousSibling,o=n.nextSibling;e.selection.getSel().setBaseAndExtent(i,i.textContent.length-1,o,1)}}re()}else!function(e){const t=i.value;if(F.value.classList.contains("rave-variable-suggestion"))if("Tab"===e.key){e.preventDefault();let n=t.selection.getSel();const i=n.focusNode,o=n.focusOffset,{beforeNode:a,afterNode:s}=_(U.value,$.value);null==i.parentNode&&(t.selection.setCursorLocation(s,o-$.value),n=t.selection.getSel()),0===a.textContent.length&&a.parentNode.removeChild(a);let r=s;for(;r!==n.focusNode;){const e=r.nextSibling;r.parentNode.removeChild(r),r=e}n.focusNode.parentNode.removeChild(n.focusNode),B(F.value);const l=m.value.find(e=>e.name===F.value.dataset.name);if(null!=l&&l.value.length>0){if(null==F.value.nextSibling&&F.value.parentNode.appendChild(document.createTextNode("\ufeff")),F.value.nextSibling.nodeType===Node.ELEMENT_NODE){const e=F.value.nextSibling;F.value.parentNode.insertBefore(document.createTextNode("\ufeff"),e)}if(!F.value.nextSibling.textContent.startsWith("\ufeff")){const e=F.value.nextSibling;e.textContent="\ufeff"+e.textContent}t.selection.setCursorLocation(F.value.nextSibling,1),F.value=null}else z(F.value);R(),re()}else"Shift"!==e.key&&"Meta"!==e.key&&"Control"!==e.key&&"Alt"!==e.key&&(F.value.parentNode.removeChild(F.value),F.value=null);else if(F.value.classList.contains("rave-variable-empty")){if("Enter"===e.key)if(e.preventDefault(),W.value.value.length>0)W.value.value="",re();else{let e=F.value.nextSibling;null!=e&&e.nodeType===Node.TEXT_NODE||(e=document.createTextNode(""),null!=F.value.nextSibling?F.value.parentNode.insertBefore(e,F.value.nextSibling):F.value.parentNode.appendChild(e)),e.textContent.startsWith("\ufeff")||(e.textContent=`\ufeff${e.textContent}`),t.selection.setCursorLocation(e,1),F.value=null}else if("ArrowRight"===e.key){e.preventDefault();let n=F.value.nextSibling;null!=n&&n.nodeType===Node.TEXT_NODE||(n=document.createTextNode(""),null!=F.value.nextSibling?F.value.parentNode.insertBefore(n,F.value.nextSibling):F.value.parentNode.appendChild(n)),n.textContent.startsWith("\ufeff")||(n.textContent=`\ufeff${n.textContent}`),t.selection.setCursorLocation(n,1),W.value.value.length>0&&(W.value.value="",re()),F.value=null}else if("ArrowLeft"===e.key){e.preventDefault();let n=F.value.previousSibling;null!=n&&n.nodeType===Node.TEXT_NODE||(n=document.createTextNode(""),F.value.parentNode.insertBefore(n,F.value)),n.textContent.endsWith("\ufeff")||(n.textContent+="\ufeff"),t.selection.setCursorLocation(n,n.textContent.length-1),F.value.querySelector("span").removeAttribute("style"),W.value.value.length>0&&(W.value.value="",re()),F.value=null}else if("Backspace"===e.key||"Delete"===e.key){e.preventDefault(),Y(F.value);const n=F.value.previousSibling,i=F.value.nextSibling;t.selection.getSel().setBaseAndExtent(n,n.textContent.length-1,i,1),F.value=null}}else if("ArrowRight"===e.key){const n=t.selection.getSel();if(x(n)&&n.focusNode.textContent.length-1===n.focusOffset){e.preventDefault();let n=F.value.nextSibling;null!=n&&n.nodeType===Node.TEXT_NODE||(n=document.createTextNode(""),null!=F.value.nextSibling?F.value.parentNode.insertBefore(n,F.value.nextSibling):F.value.parentNode.appendChild(n)),n.textContent.startsWith("\ufeff")||(n.textContent=`\ufeff${n.textContent}`),t.selection.setCursorLocation(n,1),q(F.value.textContent.replaceAll("\ufeff","")),F.value=null,N(),re()}else if(T(n)&&1===n.focusOffset){e.preventDefault();const{anchorNode:i,focusNode:o}=n;let a=n.anchorOffset,s=o.textContent.substring(1);1===s.length&&(s+="\ufeff"),a-=1,o.textContent=s,e.shiftKey?n.setBaseAndExtent(i,a,o,1):t.selection.setCursorLocation(n.focusNode,1)}else if(n.focusOffset===n.focusNode.textContent.length-1){e.preventDefault();const{focusNode:i,anchorNode:o,anchorOffset:a}=n;i.textContent+="\ufeff",e.shiftKey?n.setBaseAndExtent(o,a,i,i.textContent.length-1):t.selection.setCursorLocation(i,i.textContent.length-1)}}else if("ArrowLeft"===e.key){const n=t.selection.getSel();if(x(n)&&n.focusNode.textContent.length-1===n.focusOffset){e.preventDefault();const{anchorOffset:i,focusNode:o}=n;let a=n.focusOffset,s=o.textContent;s=s.substring(0,s.length-1),a-=1,0===a&&(s="\ufeff"+s,a=1),F.value.textContent=s,e.shiftKey?n.setBaseAndExtent(F.value.childNodes[0],i,F.value.childNodes[0],a):t.selection.setCursorLocation(F.value.childNodes[0],a)}else if(T(n)&&1===n.focusOffset){e.preventDefault();let n=F.value.previousSibling;null!=n&&n.nodeType===Node.TEXT_NODE||(n=document.createTextNode(""),F.value.parentNode.insertBefore(n,F.value)),n.textContent.endsWith("\ufeff")||(n.textContent+="\ufeff"),t.selection.setCursorLocation(n,n.textContent.length-1),q(F.value.textContent.replaceAll("\ufeff","")),F.value=null,re(),N()}else if(1===n.focusOffset){e.preventDefault();const{focusNode:i,anchorNode:o}=n;let a=n.anchorOffset;i.textContent="\ufeff"+i.textContent,i===o&&(a+=1),e.shiftKey?n.setBaseAndExtent(o,a,i,1):t.selection.setCursorLocation(n.focusNode,1)}}else if("Backspace"===e.key){const n=t.selection.getSel();if(x(n)&&n.focusNode.textContent.length-1===n.focusOffset){if(1===n.focusNode.textContent.replaceAll("\ufeff","").length){e.preventDefault(),F.value.classList.add("rave-variable-empty");const t=W.value.name;F.value.innerHTML=`&nbsp;<span class="rave-variable-inner-name">${t}</span>&nbsp;`,i.value.selection.setCursorLocation(F.value.childNodes[0],1)}}else if(n.focusNode===n.anchorNode&&n.focusOffset===n.anchorOffset&&T(n)&&1===n.focusOffset){e.preventDefault();const n=F.value;Y(n);const i=n.previousSibling,o=n.nextSibling;t.selection.getSel().setBaseAndExtent(i,i.textContent.length-1,o,1)}else n.focusNode===n.anchorNode&&n.focusOffset===n.anchorOffset&&1===n.focusOffset&&(e.preventDefault(),n.focusNode.textContent=`\ufeff${n.focusNode.textContent.substring(1)}`,n.setBaseAndExtent(n.focusNode,1,n.focusNode,1))}else if("Delete"===e.key){const n=t.selection.getSel();if(T(n)&&1===n.focusOffset){if(1===n.focusNode.textContent.replaceAll("\ufeff","").length){e.preventDefault(),F.value.classList.add("rave-variable-empty");const t=W.value.name;F.value.innerHTML=`&nbsp;<span class="rave-variable-inner-name">${t}</span>&nbsp;`,i.value.selection.setCursorLocation(F.value.childNodes[0],1)}}else if(n.focusNode===n.anchorNode&&n.focusOffset===n.anchorOffset&&x(n)&&n.focusOffset===n.focusNode.textContent.length-1){e.preventDefault();const n=F.value;Y(n);const i=n.previousSibling,o=n.nextSibling;t.selection.getSel().setBaseAndExtent(i,i.textContent.length-1,o,1)}}else"Enter"===e.key&&(e.preventDefault(),q(F.value.textContent.replaceAll("\ufeff","")),re())}(t)})},makeElPlainText:function e(t,n){const i=["DIV","SPAN","P","BR"];n.allowVariables&&i.push("RAVE-VARIABLE");for(let o=0;o<t.childNodes.length;++o){const a=t.childNodes[o];if(a.nodeType===Node.ELEMENT_NODE&&-1===i.indexOf(a.tagName)){const e=document.createTextNode(a.textContent);t.replaceChild(e,a)}a.nodeType===Node.ELEMENT_NODE&&(a.removeAttribute("class"),a.removeAttribute("style"),e(a,n))}},matchCloseEnough:se,normalizeVariables:ie,resetId:y,trimElToFit:function(e,t){return(0,d.uk)(e,t,m.value)},variables:m})}},WXxF:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var i=n("L5+t"),o=n("+cQT");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function r(e){let{initContent:t,placeholderHtml:n,config:i={}}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;const r=(0,o.ref)({raw:"",html:t??null});let l=null;const c=(0,o.computed)(()=>({setup:e=>{l=e,e.on("init",()=>{r.value.html?(e.setContent(r.value.html),r.value.raw=e.getContent({format:"text"})):e.setContent(n)}),e.on("blur",()=>{r.value.raw||e.setContent(n)}),e.on("focus",()=>{r.value.raw||e.setContent("")});const t=()=>{r.value.html=e.getContent(),r.value.raw=e.getContent({format:"text"})};e.on("change input",()=>{e.hasFocus()&&t()}),e.on("keydown",t=>{e.getContent({format:"text"}).trim().length>=a&&!["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Tab"].includes(t.key)&&!t.ctrlKey&&!t.metaKey&&t.preventDefault()}),e.on("paste",n=>{const{clipboardData:i}=n,o=i.getData("text/plain");if(r.value.raw.length+o.length>a){n.preventDefault();const t=a-r.value.raw.length;if(t>0){const n=o.substring(0,t);e.insertContent(n)}}t()})}}));return{content:r,setContent:async e=>{if(await(0,o.nextTick)(),!l)throw new Error("TinyMCE editor is not initialized yet. Call setContent after editor is ready.");null!=e&&(l.setContent(e),r.value.html=e,r.value.raw=l.getContent({format:"text"}))},config:s(s({},i),c.value)}}},mABH:function(e,t,n){"use strict";n("SYky");var i,o=n("PcWQ");function a(){o("body").on("show.bs.tooltip show.bs.popover",e=>{this.setCurrent(e.target),s()}),o("body").on("shown.bs.tooltip shown.bs.popover",()=>{this.currentTooltip.tip=o(".tooltip, .popover")[0]}),o("body").on("click",e=>{const t=o(e.target);this.currentTooltip&&e.target!==this.currentTooltip.el&&this.currentTooltip.tip&&0===t.closest(this.currentTooltip.tip).length&&s()})}function s(){o(".tooltip").tooltip("hide"),o(".popover").popover("hide")}t.A={getInstance:function(){return i||(i={setCurrent:function(e){this.currentTooltip={el:e,tip:null}},hideAll:s},a.call(i),i)}}},V0Pq:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n("PcWQ");function o(e){return new Promise((t,n)=>{const o=i('<textarea readonly style="position: absolute; left: -9990px;"></textarea>')[0];o.value=e,document.body.appendChild(o);try{/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream?function(e){var t=e.contentEditable,n=e.readOnly,i=document.createRange();e.contenteditable=!0,e.readonly=!1,i.selectNodeContents(e);var o=window.getSelection();o.removeAllRanges(),o.addRange(i),e.setSelectionRange(0,999999),e.contentEditable=t,e.readOnly=n,document.execCommand("copy")}(o):function(e){const t=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);e.select(),document.execCommand("copy"),t&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(t));window.getSelection().removeAllRanges()}(o),t()}catch(e){n()}document.body.removeChild(o)})}},"/9Nn":function(e,t,n){"use strict";n.d(t,{rH:function(){return o}});var i=n("Cpa8");function o(e,t,n,i){if("object"==typeof e){let t=e.text||"";e.charCountEl?a(t,t.length,e.charCountEl[0],e.maxLength,e.withWarnings):a(t,t.length,document.getElementById(e.charCountId),e.maxLength,e.withWarnings,e.pollLength)}else{let o=document.getElementById(e);a(o.value,o.value.length,document.getElementById(t),n,i)}}function a(e,t,n,i,o,a){n.innerHTML=s(e,t,i,o,a)}function s(e,t,n,o,a){let s=i.A.t("common.charactersLeft",[n-t]);return n-t<0&&(s=`${i.A.t("common.charactersLeft",[0])} <span style='color:red'> ${i.A.t("common.messageTrucated")}</span>`),o&&(s=`${i.A.t("common.charactersLeft",[n-t])} <span style='color:red'> ${i.A.t("common.messageTrucated")}</span>`),a>0&&(s+=' <span style="color:red">'+i.A.t("common.charsResForPoll",[a])+"</span>"),s}const r={charInputObjNameCounter:o,charInputObjCounter:a,charCounter:s,countWithPrecalculatedLen:function(e,t,n,i){return e=e||"",s(0,t,n,i)},count:function(e,t,n){return s(0,(e=e||"").length,t,n)}};t.Ay=r;(window.Rave||{}).CharCount=r},JiKY:function(e,t,n){"use strict";function i(e,t,n){var i;return function(){var o=this,a=arguments,s=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(o,a)},t),s&&e.apply(o,a)}}n.d(t,{A:function(){return i}})},fz80:function(e,t,n){"use strict";function i(e){return function(){var t=new window.XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var n=t.loaded/t.total;e&&e(t,n,t.loaded,t.total)}},!1),t}}n.d(t,{A:function(){return i}})},wqex:function(e,t){"use strict";t.A={exposeVueGlobally(){window.Vue_default&&!window.Vue&&(window.Vue=window.Vue_default.default)},exposeAllKeysToWindow(e){Object.keys(e).forEach(t=>{window[t]=e[t]})}}},"7RMj":function(e,t,n){"use strict";n.r(t),n.d(t,{POLL_FUDGE_FACTOR:function(){return w},POLL_TINY_URL_LEN:function(){return _},calculateTotalPollLen:function(){return E},clearAllClientSideMessages:function(){return s.clearAllClientSideMessages},clearMessage:function(){return v},dataAttributesToVueProps:function(){return M},debounce:function(){return l.A},debounceAsync:function(){return r},displayClientSideError:function(){return s.displayClientSideError},formatFileSize:function(){return u},formatNumber:function(){return d},formatPhoneNumber:function(){return h},getResponsiveModalWidth:function(){return P},gxid:function(){return x},isUiRefreshEnabled:function(){return I},loadScript:function(){return b},looseNumericTruthy:function(){return C},measureText:function(){return S},parseParams:function(){return g},prettyUSPhoneNumber:function(){return i.prettyUSPhoneNumber},relativeTime:function(){return k},scrollToClientSideSuccess:function(){return s.scrollToClientSideSuccess},scrollToTop:function(){return y},showClientSideError:function(){return s.showClientSideError},showClientSideNotice:function(){return s.showClientSideNotice},showClientSideSuccess:function(){return s.showClientSideSuccess},showClientSideWarning:function(){return s.showClientSideWarning},starMatch:function(){return T},stripPhoneNumber:function(){return p},unescapeHtml:function(){return A},whichAnimationEvent:function(){return f},whichTransitionEvent:function(){return m},xssFilter:function(){return O}});var i=n("uXSz"),o=n("Xjjk"),a=n.n(o),s=n("48N6");function r(e){let t,n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[];return function(){const l=function(e){return"function"==typeof e?e():e}(o),c=(new Date).getTime(),d=!t||c-t>l;t=c;for(var u=arguments.length,p=new Array(u),h=0;h<u;h++)p[h]=arguments[h];if(d&&a.leading)return a.accumulate?Promise.resolve(e.call(this,[p])).then(e=>e[0]):Promise.resolve(e.call(this,...p));if(n?clearTimeout(i):n=function(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}(),s.push(p),i=setTimeout(r.bind(this),l),a.accumulate){const e=s.length-1;return n.promise.then(t=>t[e])}return n.promise};function r(){const t=n;clearTimeout(i),Promise.resolve(a.accumulate?e.call(this,s):e.apply(this,s[s.length-1])).then(t.resolve,t.reject),s=[],n=null}}var l=n("JiKY"),c=n("PcWQ");function d(e){if(null==e)return"";let t=(e+="").split("."),n=t[0],i=t.length>1?"."+t[1]:"";for(var o=/(\d+)(\d{3})/;o.test(n);)n=n.replace(o,"$1,$2");return n+i}function u(e){if(0==e)return"0 B";var t=parseInt(Math.floor(Math.log(e)/Math.log(1024))),n=Math.round(e/Math.pow(1024,t),2)+" "+["B","KB","MB","GB","TB"][t];return"NaN undefined"===n?"0 B":n}function p(e){return e.replace(/[^+0-9]/g,"")}function h(e){if(null===e)return"";let t="";return 12===(e=p(e)).length&&e.startsWith("+1")?(t="+1 ",e=e.substr(2)):11===e.length&&"1"===e.charAt(0)&&(t="1 ",e=e.substr(1)),10===e.length&&"+"!==e.charAt(0)&&(e=(0,i.prettyUSPhoneNumber)(e)),t+e}function m(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}function f(){var e,t=document.createElement("fakeelement"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}function g(e){const t=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.replace(/\+/g," "))},i={};if(e){"?"==e.substr(0,1)&&(e=e.substr(1));for(let o=t.exec(e);o;o=t.exec(e)){const e=n(o[1]),t=n(o[2]);void 0!==i[e]?(c.isArray(i[e])||(i[e]=[i[e]]),i[e].push(t)):i[e]=t}}return i}function v(e){e&&c(e.target).closest(".systemMessage").hide()}function y(e,t){let n=t?t.offset().top:0,i=t?t.scrollTop():0;c(t||"html, body").animate({scrollTop:e.first().offset().top-0-n-10+i},500)}function b(e){var t=c.Deferred(),n=document.createElement("script");return n.async="async",n.type="text/javascript",n.src=e,n.onload=n.onreadystatechange=function(e,i){n.readyState&&!/loaded|complete/.test(n.readyState)||(i?t.reject():t.resolve())},n.onerror=function(){t.reject()},c("head")[0].appendChild(n),t.promise()}function C(e){return null!=e&&0!==e&&"0"!==e}const _=13,w=3;function E(){var e=window.location.href.split("/");return e[0].length+2+e[2].length+3+_+w}function A(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}function S(e,t){const n=c("<span>").hide();n.appendTo(document.body),n.text(e),n.css(t);const i=n.width();return n.remove(),i}function x(e){return e.replace(/[^a-zA-Z0-9]+/g,"")}function T(e,t){if(""===(0,i.trim)(e))return t;let n=(0,i.trim)(e);return n.startsWith("*")||(n="*"+n+"*"),(0,i._match)(n,t)?t:null}function M(e){if(null==e||!e.dataset)return console.error("Not an HTMLElement: no dataset property.",e),{};const t={};for(let n in e.dataset){const i=n.charAt(n.length-1);"B"===i?t[n.substring(0,n.length-1)]="true"===e.dataset[n]:"F"===i?t[n.substring(0,n.length-1)]=parseFloat(e.dataset[n]):"I"===i?t[n.substring(0,n.length-1)]=parseInt(e.dataset[n]):"S"===i?t[n.substring(0,n.length-1)]=e.dataset[n]:t[n]=e.dataset[n]}return t}const L=["style","border","cellpadding","cellspacing","src"];function O(e){return a()(e,{onTagAttr:function(e,t,n,i){return i||L.find(e=>e===t)?t+'="'+n+'"':""}})}function k(e){if(null==e)return"Just now";let t;if("number"==typeof e){const n=e,i=new Date(n);t=n<1e12?new Date(1e3*e):i}else{if("string"!=typeof e)return"Just now";if(t=new Date(e),!isFinite(t.getTime()))if(/^\d+$/.test(e)){const n=Number.parseInt(e,10);t=new Date(1e3*n)}else if(/^\d+\.\d+$/.test(e)){const n=Number.parseFloat(e);t=new Date(1e3*n)}}if(!t||!isFinite(t.getTime()))return"Just now";const n=(new Date).getTime()-t.getTime();if(n<=0)return"Just now";const i=Math.floor(n/1e3);if(i<60)return`${i}s ago`;const o=Math.floor(i/60);if(o<60)return`${o}${1===o?"min":"mins"} ago`;const a=Math.floor(o/60);if(a<24)return`${a}h ago`;const s=Math.floor(a/24);if(s<30)return`${s}d ago`;const r=Math.floor(s/30.44);if(r<12)return`${r}mo ago`;return`${Math.floor(r/12)}y ago`}function I(){return document.body.classList.contains("ui-refresh-enabled")}function P(e){return window.innerWidth<768?Math.floor(.95*window.innerWidth):e}},ZU6F:function(e,t,n){"use strict";n.r(t),n.d(t,{CONFERENCE_BLAST_THREASHOLD:function(){return E},GEMA_INVALID_CHARS_REGEX:function(){return _},ILLEGAL_EMOJI_REGEX:function(){return l},ILLEGAL_WHITE_SPACE_REGEX:function(){return d},IPAWS_SENDER_ILLEGAL_CHARACTERS_REGEX:function(){return g},IPAWS_URL_REGEX:function(){return h},NEW_ILLEGAL_IPAWS_SENDER_CHARS:function(){return u},PLACEHOLDERS:function(){return w},POLL_QUOTA_NUMBER_RANGE:function(){return b},POLL_QUOTA_RANGE_REGEX:function(){return c},SMS_ILLEGAL_CHARACTERS_REGEX:function(){return C},SMS_ILLEGAL_CHARACTERS_REGEX1:function(){return v},SMS_ILLEGAL_CHARACTERS_REGEX2:function(){return y},STANDARD_ILLEGAL_CHARACTERS:function(){return r},STANDARD_ILLEGAL_CHARACTERS_REGEX:function(){return m},STANDARD_ILLEGAL_CHARACTERS_REGEX2:function(){return f},_setLabelErrorStyleClass:function(){return Ke},charTestForIllegalCharacters:function(){return R},charTestForIllegalCharactersWithRegex:function(){return D},charTestForIllegalCharactersWithRegexObject:function(){return B},clearLabelErrorStyleClass:function(){return Ge},deScript:function(){return A},disableFormSubmitButtons:function(){return He},enableFormSubmitButtons:function(){return je},isDate:function(){return Ve},passwordEval:function(){return Xe},testForIllegalCharacters:function(){return P},testForIllegalCharactersAndAddNewLine:function(){return I},testForIllegalCharactersNoTrim:function(){return N},testForIllegalCharacters_IdentifyOnError:function(){return F}
2,validateAlpha:function(){return H},validateAlphaAndSpace:function(){return W},validateAlphaAndSpace_IdentifyOnError:function(){return V},validateAlphaNumericString:function(){return U},validateAlphaNumericString_IdentifyOnError:function(){return $},validateAlpha_IdentifyOnError:function(){return j},validateBridgeCode:function(){return ze},validateBridgePhone:function(){return qe},validateConfirmEmail:function(){return ue},validateConfirmEmail_IdentifyOnError:function(){return pe},validateConfirmPassword:function(){return ve},validateConfirmPassword_IdentifyOnError:function(){return ye},validateDate:function(){return De},validateDateIsNotBeforeDate_IdentifyOnError:function(){return Fe},validateDateOnly_IdentifyOnError:function(){return We},validateDateTimeMeridian_IdentifyOnError:function(){return Ue},validateDate_IdentifyOnError:function(){return Be},validateEmail:function(){return re},validateEmailStr:function(){return ce},validateEmailStr_IdentifyOnError:function(){return de},validateEmail_IdentifyOnError:function(){return le},validateExtension:function(){return Ie},validateExtensionOnly:function(){return ke},validateExtension_IdentifyOnError:function(){return Pe},validateInteger:function(){return z},validateInteger_IdentifyOnError:function(){return q},validateMaxLength:function(){return Z},validateMaxLength_IdentifyOnError:function(){return ee},validateNewUrl:function(){return M},validateNotContains_IdentifyOnError:function(){return Ee},validateNotEmpty:function(){return be},validateNotEmptyNoTrim:function(){return Ce},validateNotEmpty_IdentifyOnError:function(){return _e},validateNotEmpty_IdentifyOnErrorNoTrim:function(){return we},validateNumericString:function(){return K},validateNumericString_IdentifyOnError:function(){return G},validatePassword:function(){return fe},validatePassword_IdentifyOnError:function(){return ge},validatePositiveRealNumber:function(){return Y},validatePositiveRealNumber_IdentifyOnError:function(){return Q},validateProperNoun:function(){return S},validateProperNoun_IdentifyOnError:function(){return x},validateRadioChecked:function(){return Ne},validateRadioChecked_IdentifyOnError:function(){return Re},validateRavePhoneNumber:function(){return Le},validateRavePhoneNumber_IdentifyOnError:function(){return Oe},validateRealNumber:function(){return X},validateRealNumber_IdentifyOnError:function(){return J},validateSelection:function(){return Ae},validateSelection_IdentifyOnError:function(){return Se},validateTime:function(){return $e},validateURL:function(){return L},validateURLCharacters:function(){return T},validateURLCharacters_IdentifyOnError:function(){return O},validateURLOrEmail:function(){return k},validateUSPhoneNumber:function(){return Te},validateUSPhoneNumberOnly:function(){return xe},validateUSPhoneNumber_IdentifyOnError:function(){return Me},validateUserName:function(){return he},validateUserName_IdentifyOnError:function(){return me},validateZipCode:function(){return te},validateZipCodeRaw:function(){return ae},validateZipCodeRawWithCA:function(){return oe},validateZipCodeRaw_IdentifyOnError:function(){return se},validateZipCodeWithCA:function(){return ne},validateZipCode_IdentifyOnError:function(){return ie}});var i=n("uXSz"),o=n("Cpa8"),a=n("Aook"),s=n("PcWQ");const r="\\<\\>",l="\ud83d[\ude00-\ude4f]",c="^([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1[0-9][0-9][0-9]|2000)$",d=" ",u="|/^~\\\\\\[\\]\\{\\}\\(\\)\\u2018\\u2019\\u201C\\u201D",p=()=>{var e,t;return null===(e=document.body)||void 0===e||null===(t=e.classList)||void 0===t?void 0:t.contains("ui-refresh-enabled")},h={pattern:"https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)",get display(){return o.A.t("common.validator.url.invalid.ipaws")}},m={pattern:"["+r+"]|"+l,get display(){return o.A.t("common.standard.regex.illegal.chars1")}},f={pattern:"["+d+"]|["+r+"]|"+l,get display(){return o.A.t("common.standard.regex.illegal.chars2")}},g={pattern:`[${d}]|[,&]|[${r}]|${l}|[${u}]`,get display(){return o.A.t("common.ipaws.sender.regex.illegal.chars")},ignoreSpaceAround:!1},v={pattern:"["+r+"~]|"+l,get display(){return o.A.t("common.sms.regex.illegal.chars1")}},y={pattern:"["+r+"~_\\$@]|"+l,get display(){return o.A.t("common.sms.regex.illegal.chars2")}},b={pattern:c,get display(){return o.A.t("common.number.out.of.range")}},C=document.documentElement.hasAttribute("data-allow-special-characters-in-text")?v:y,_=a.qm,w=/\[INSERT/i,E=1e3;function A(e){return e.replace(/[<>&#{}()[\]]/g,"")}function S(e,t,n,a,s,r){var l="",c=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=c,null==c||0==c.length){if(null!=n&&0==n)return"";l="'"+e+"' "+o.A.t("common.cannot.be.empty")+"\n"}else null!=a&&c.length<a&&(l+="'"+e+"' "+o.A.t("common.validator.at.least.characters",[a])+"\n");return null!=s&&c.length>s&&(l+="'"+e+"' "+o.A.t("common.validator.more.than.characters",[s])+"\n"),void 0!==r&&!1!==r||null!=c.match(/[^a-zA-Z.\-' ]/)&&(l+="'"+e+"' "+o.A.t("common.validator.illegal.chars")),!0===r&&null!=c.match(/[^a-zA-Z0-9.\-' ]/)&&(l+="'"+e+"' "+o.A.t("common.validator.illegal.chars")),l}function x(e,t,n,i,o,a){var s=document.getElementById(e),r=S(s.innerHTML,t,n,i,o,a);return r.length>0&&!p&&(r+="<br/>"),Ke(s,0==r.length),r}function T(e,t,n,a){var s=(0,i.trim)(document.getElementById(t).value),r="",l=a?"":"'";return null==s||0==s.length?null!=n&&0==n?"":l+e+l+" "+o.A.t("common.validator.empty")+"\n":(null==s.match(/^[,&?a-zA-Z0-9$\-_.+!*'()/:%=#]*$/)&&(r+=l+e+l+" "+o.A.t("common.validator.illegal.chars")),r)}function M(e,t){var n=document.getElementById(e),o="",a=(0,i.trim)(document.getElementById(t).value);return a&&!a.match(h.pattern)&&(o=`${h.display}`),Ke(n,0==o.length),o}function L(e,t,n,i){var a="",s=document.getElementById(t).value;s.toLowerCase().startsWith("http://")||s.toLowerCase().startsWith("https://")||(a+=o.A.t("guardianConsole.content.category.url.starts",[i]));var r=O(e,t,n,i);return r.length>0&&(a+="<br/>"+r),Ke(document.getElementById(e),0==a.length),a.length>0?a+="<br/>":a}function O(e,t,n,i){var o=document.getElementById(e),a=T(void 0!==i?i+" URL":o.innerHTML.trim(),t,n,void 0!==i);return Ke(o,0==a.length),a}function k(e,t,n,i){var o="",a=L(e,t,n,i);if(0===a.length)return"";o+=a;var s=document.getElementById(t).value;if(!s.toLowerCase().startsWith("http://")&&!s.toLowerCase().startsWith("https://")){var r=le(e,t,n,i);if(0===r.length)return"";r.length>0&&(o+=(o.length>0?"<br/>":"")+r)}return o}function I(e,t,n,i,o){var a="",s=P(e,t,n,i,o);return""!=s&&(a+=s+"<br/>"),a}function P(e,t,n,a,s,r){var l,c="";return null==(l="object"==typeof t?t.value:"string"==typeof r?r:null!=r&&r.getContent?r.getContent({format:"text"}):!1===n.ignoreSpaceAround?document.getElementById(t).value:(0,i.trim)(document.getElementById(t).value))||0==l.length?null!=a&&0==a?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n":(l.match(n.pattern)&&(c+=null!=s&&s?"'"+e+"' "+o.A.t("common.validator.url.contains.illegal.chars")+"\n"+n.display:"'"+e+"' "+o.A.t("common.validator.url.contains.illegal.chars")+"<br/>"+n.display),c)}function N(e,t,n,i,a){var s,r="";
2return null==(s="object"==typeof t?t.value:document.getElementById(t).value)||0==s.length?null!=i&&0==i?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n":(s.match(n.pattern)&&(r+=null!=a&&a?"'"+e+"' "+o.A.t("common.validator.url.contains.illegal.chars")+"\n"+n.display:"'"+e+"' "+o.A.t("common.validator.url.contains.illegal.chars")+"<br/>"+n.display),r)}function R(e){return e.match("["+r+"]")?o.A.t("common.one.or.more.illegal.chars")+" <br/>"+r.replace(/\\/g,""):""}function D(e,t){return e.match("["+t+"]")?o.A.t("common.one.or.more.illegal.chars")+" <br/>"+t.replace(/\\/g,""):""}function B(e,t){let n="";return null==e||0===e.length?"":(e.match(t.pattern)&&(n+=o.A.t("common.one.or.more.illegal.chars")+" <br/>"+t.display),n)}function F(e,t,n,i,o,a,r){let l;l="string"==typeof e?document.getElementById(e):s(e)[0];let c=l.innerHTML;o&&(c+=" "+o);let d=P(c,t,n,i,null,r);return d.length>0&&(d+="<br/>"),(null==a||a)&&Ke(l,0==d.length),d}function U(e,t,n,a,s,r){var l,c="",d=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=d,null==d||0==d.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";for(d=d.toLowerCase(),l=0;l<d.length;l++){var u=d.charAt(l);if((" "!=u||null!=r&&0!=r)&&((u<"a"||u>"z")&&(u<"0"||u>"9"))){c+="'"+e+"' "+o.A.t("common.validator.only.alpha.or.numbers")+"\n";break}}return null!=a&&d.length<a&&(c+="'"+e+"' "+o.A.t("common.validator.at.least.characters",[a])+"\n"),null!=s&&d.length>s&&(c+="'"+e+"' "+o.A.t("common.validator.more.than.characters",[s])+"\n"),c}function $(e,t,n,i,o,a){var s=document.getElementById(e),r=U(s.innerHTML,t,n,i,o,a);return r.length>0&&(r+="<br/>"),Ke(s,0==r.length),r}function W(e,t,n,a,s,r){var l,c="",d=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=d,null==d||0==d.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";for(d=d.toLowerCase(),l=0;l<d.length;l++){var u=d.charAt(l);if((" "!=u||null!=r&&0!=r)&&(u<"a"||u>"z")){c+="'"+e+"' "+o.A.t("common.only.alpha.chars")+"\n";break}}return null!=a&&d.length<a&&(c+="'"+e+"' "+o.A.t("common.validator.at.least.characters",[a])+"\n"),null!=s&&d.length>s&&(c+="'"+e+"' "+o.A.t("common.validator.more.than.characters",[s])+"\n"),c}function V(e,t,n,i,o,a){var s=document.getElementById(e),r=W(s.innerHTML,t,n,i,o,a);return r.length>0&&(r+="<br/>"),Ke(s,0==r.length),r}function H(e,t,n,i,o){return W(e,t,n,i,o,!0)}function j(e,t,n,i,o){var a=document.getElementById(e),s=H(a.innerHTML,t,n,i,o);return s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function K(e,t,n,a,s){var r="",l=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=l,null==l||0==l.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";for(var c=0;c<l.length;c++){var d=l.charAt(c);if(d<"0"||d>"9"){r+="'"+e+"' "+o.A.t("common.only.numbers")+"\n";break}}return null!=a&&l.length<a&&(r+="'"+e+"' "+o.A.t("common.validator.at.least.digits",[a])+"\n"),null!=s&&l.length>s&&(r+="'"+e+"' "+o.A.t("common.validator.more.than.digits",[s])+"\n"),r}function G(e,t,n,i,o){var a=document.getElementById(e),s=K(a.innerHTML,t,n,i,o);return s.length>0&&!p&&(s+="<br/>"),Ke(a,0==s.length),s}function z(e,t,n,a,s){var r="",l=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=l,null==l||0==l.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";for(d=0;d<l.length;d++){var c=l.charAt(d);if(c<"0"||c>"9")return r+="'"+e+"' "+o.A.t("common.only.numberical")+"\n"}var d=parseInt(l);return null!=a&&d<a&&(r+="'"+e+"' "+o.A.t("common.greater.or.equal.to",[a])+"\n"),null!=s&&d>s&&(r+="'"+e+"' "+o.A.t("common.less.or.equal.to",[s])+"\n"),r}function q(e,t,n,i,o){var a=document.getElementById(e),s=z(a.innerHTML,t,n,i,o);return s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function X(e,t,n,a,s){var r,l=(0,i.trim)(document.getElementById(t).value);if("+"!=l.charAt(0)&&"-"!=l.charAt(0)||(document.getElementById(t).value=l.substr(1)),(r=Y(e,t,n,null,null)).length<1){var c=parseFloat(l);null!=a&&c<parseFloat(a)&&(r+="'"+e+"' "+o.A.t("common.greater.or.equal.to",[a])+"\n"),null!=s&&c>parseFloat(s)&&(r+="'"+e+"' "+o.A.t("common.less.or.equal.to",[s])+"\n")}return document.getElementById(t).value=l,r}function J(e,t,n,i,o){var a=document.getElementById(e),s=X(a.innerHTML,t,n,i,o);return s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function Y(e,t,n,a,s){var r="",l=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=l,null==l||0==l.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";var c,d=0;for(c=0;c<l.length;c++){var u=l.charAt(c);if("."!=u){if(u<"0"||u>"9")return r+="'"+e+"' "+o.A.t("common.validator.illegal.chars")+"\n"}else if(++d>1)return r+="'"+e+"' "+o.A.t("common.only.one.decimal")}var p=parseFloat(l);return null!=a&&p<parseFloat(a)&&(r+="'"+e+"' "+o.A.t("common.greater.or.equal.to",[a])+"\n"),null!=s&&p>parseFloat(s)&&(r+="'"+e+"' "+o.A.t("common.less.or.equal.to",[s])+"\n"),r}function Q(e,t,n,i,o){var a=document.getElementById(e),s=Y(a.innerHTML,t,n,i,o);return s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function Z(e,t,n){var a="",s=(0,i.trim)(document.getElementById(t).value);return document.getElementById(t).value=s,s.length>n&&(a+="'"+e+"' "+o.A.t("common.cannot.exceed",[n])),a}function ee(e,t,n,i){var o=document.getElementById(e),a=Z(o.innerHTML,t,n);return null!=i&&(a+=P(o.innerHTML,t,i,!1)),a.length>0&&(a+="<br/>"),Ke(o,0==a.length),a}function te(e,t,n){var o=(0,i.trim)(document.getElementById(t).value);return document.getElementById(t).value=o,ae(e,o,n)}function ne(e,t,n){let a=(0,i.trim)(document.getElementById(t).value);return document.getElementById(t).value=a,null!=n&&!1===n?"":null==a||0===a.length?"'"+e+"' "+o.A.t("common.validator.empty")+"\n":oe(e,a)}function ie(e,t,n){var i=document.getElementById(e),o=te(i.innerHTML,t,n);return o.length>0&&(o+="<br/>"),Ke(i,0==o.length),o}function oe(e,t){let n="";return!1===new RegExp(/^[A-Z]\d[A-Z]([ ]?\d[A-Z]\d)?$/i).test(t)&&(n+="'"+e+"' "+o.A.t("common.illegal.zip.code")+"\n"),n}function ae(e,t,n){var a="";if(null==(t=(0,i.trim)(t))||0===t.length)return null!=n&&!1===n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";for(var s=0;s<t.length;s++){var r=t.charAt(s);if(r<"0"||r>"9"){if(5===s&&("-"===r||" "===r)&&10===t.length)continue;return a+="'"+e+"' "+o.A.t("common.illegal.zip.code")+"\n"}}return 5!==t.length&&10!==t.length&&(a+="'"+e+"' "+o.A.t("common.illegal.zip.format")+"\n"),a}function se(e,t,n){var i=document.getElementById(e),o=ae(i.innerHTML,t,n);return o.length>0&&(o+="<br/>"),Ke(i,0==o.length),o}function re(e,t,n,o){var a=(0,i.trim)(document.getElementById(t).value);return document.getElementById(t).value=a,ce(e,a,n,o)}function le(e,t,n,i){var o=document.getElementById(e),a=re(void 0!==i?i+" Email":o.innerHTML.trim(),t,n,void 0!==i);return a.length>0&&!p&&(a+="<br/>"),Ke(o,0==a.length),a}function ce(e,t,n,a){let s="";t=(0,i.trim)(t);const r=a?"":"'",l=" ",c=p()?"":"<br/>";if(null==t||0==t.length)return null!=n&&0==n?"":(s=r+e+r+l+o.A.t("common.validator.empty")+c,s);var d,u;t.length>254&&(s=r+e+r+l+o.A.t("common.greater.than.254")+c);var h=t.split("@");if(h.length<2)return s+=r+e+r+l+o.A.t("common.missing.around")+c,s;h.length>2&&(s+=r+e+r+l+o.A.t("common.more.than.one.around")+c);null!=(d=h[0]).match(/[^0-9a-zA-Z.!#$%&'*+-/=?^_`{|}~]/)?s+=r+e+r+l+o.A.t("common.local.invalid.characters")+c:d.indexOf("..")>=0&&(s+=r+e+r+l+o.A.t("common.local.two.or.more.periods")+c),0==d.indexOf(".")&&(s+=r+e+r+l+o.A.t("common.local.begins.with.period")+c),d.lastIndexOf(".")==d.length-1&&(s+=r+e+r+l+o.A.t("common.local.ends.with.period")+c),d.length>64&&(s+=r+e+r+l+o.A.t("common.local.greater.than.64.chars")+c);if((u=h[1]).length>0){null!=u.match(/[^0-9a-zA-Z.-]/)?s+=r+e+r+l+o.A.t("common.host.name.invali
2d.chars")+c:u.indexOf("..")>=0&&(s+=r+e+r+l+o.A.t("common.host.name.two.or.more.periods")+c),0==u.indexOf(".")&&(s+=r+e+r+l+o.A.t("common.host.name.begins.with.period")+c),u.lastIndexOf(".")==u.length-1&&(s+=r+e+r+l+o.A.t("common.host.name.ends.with.period")+c),u.lastIndexOf("-")==u.length-1&&(s+=r+e+r+l+o.A.t("common.host.name.ends.with.hyphen")+c),-1===u.indexOf(".")&&(s+=r+e+r+o.A.t("common.host.name.does.not.contain.period")+c),u.length>255&&(s+=r+e+r+l+o.A.t("common.host.name.greater.255.chars")+c);for(var m=u.split("."),f=0;f<m.length;f++)m[f].length>63&&(s+=r+e+r+l+o.A.t("common.host.name.label.greater.63.chars")+c)}else s+=s+=r+e+r+l+o.A.t("common.missing.hostname");return s}function de(e,t,n){var i=document.getElementById(e),o=ce(i.innerHTML,t,n);return o.length>0&&(o+="<br/>"),Ke(i,0==o.length),o}function ue(e,t){var n="",i=document.getElementById(e).value,a=document.getElementById(t).value;return i.toUpperCase()!=a.toUpperCase()&&(n+=o.A.t("common.email.does.not.match")+"\n"),n}function pe(e,t,n){var i=document.getElementById(e),o=ue(t,n);return o.length>0&&(o+="<br/>"),Ke(i,0==o.length),o}function he(e,t,n,a,s){var r="",l=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=l,null==l||0==l.length){if(null!=n&&0==n)return"";r="'"+e+"' "+o.A.t("common.validator.empty")+" "}else null!=a&&l.length<a&&(r+="'"+e+"' "+o.A.t("common.validator.at.least.characters",[a]));null!=s&&l.length>s&&(r+="'"+e+"' "+o.A.t("common.validator.more.than.characters",[s]));/([<>()[\]\\,;:\s"]+(\[^<>()[\]\\,;:\s"]+)*)/.test(l)&&(r+=o.A.t("common.username.illegal.chars"));l.match(".*[A-Za-z].*")||(r+=o.A.t("common.username.at.least.one.letter"));return l.match("^[0-9].*")&&(r+=o.A.t("common.username.cannot.start.with.digit")),r}function me(e,t,n,i,o){var a=document.getElementById(e),s=he(a.innerHTML,t,n,i,o);return s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function fe(e,t,n,i){var a=!1,s=!1,r="",l=document.getElementById(t).value;if(l.length<1)r+="'"+e+"' "+o.A.t("common.validator.empty")+"\n";else{null!=n&&l.length<n&&(r+="'"+e+"' "+o.A.t("common.validator.at.least.characters",[n])+"\n"),null!=i&&l.length>i&&(r+="'"+e+"' "+o.A.t("common.validator.more.than.characters",[i])+"\n");for(var c=0;c<l.length;c++){var d=l.charAt(c);d>="A"&&d<="Z"||d>="a"&&d<="z"?s=!0:a=!0}a||(r+="'"+e+"' "+o.A.t("common.one.number.or.non.alpha.numeric")+"\n"),s||(r+="'"+e+"' "+o.A.t("common.at.least.one.non.alpha.numeric")+"\n")}return r}function ge(e,t,n,i){var o=document.getElementById(e),a=fe(o.innerHTML,t,n,i);return a.length>0&&!p&&(a+="<br/>"),Ke(o,0==a.length),a}function ve(e,t){var n="";return document.getElementById(e).value!=document.getElementById(t).value&&(n+=o.A.t("common.password.does.not.match")+"\n"),n}function ye(e,t,n){var i=document.getElementById(e),o=ve(t,n);return o.length>0&&!p&&(o+="<br/>"),Ke(i,0==o.length),o}function be(e,t,n,a){var s="",r=(0,i.trim)(document.getElementById(t).value);return a&&(r=A(r)),document.getElementById(t).value=r,r.length<1&&(s+="'"+e+"' "+o.A.t("common.validator.empty")+"\n"),null!=n&&r.length>n&&(s+="'"+e+"' "+o.A.t("common.validator.max.chars",[n])+"\n"),s}function Ce(e,t,n,i){var a="",s=document.getElementById(t).value;return i&&(s=A(s)),document.getElementById(t).value=s,s.length<1&&(a+="'"+e+"' "+o.A.t("common.validator.empty")+"\n"),null!=n&&s.length>n&&(a+="'"+e+"' "+o.A.t("common.validator.max.chars",[n])+"\n"),a}function _e(e,t,n,i,o){var a=document.getElementById(e),s=be(a.innerHTML,t,n,i);return null!=o&&(s+=P(a.innerHTML,t,o,!1)),s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function we(e,t,n,i,o){var a=document.getElementById(e),s=Ce(a.innerHTML,t,n,i);return null!=o&&(s+=N(a.innerHTML,t,o,!1)),s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function Ee(e,t,n){var i=document.getElementById(e),a="";document.getElementById(t).value.match(n)&&(a+="The "+i.innerHTML.substring(0,i.innerHTML.length-1)+" "+o.A.t("common.validator.illegal.chars")+"<br/>");return Ke(i,0==a.length),a}function Ae(e,t){var n="";return 0==document.getElementById(t).selectedIndex&&(n+="'"+e+"' "+o.A.t("common.selection.made")+"\n"),n}function Se(e,t){var n=document.getElementById(e),i=Ae(n.innerHTML,t);return i.length>0&&(i+="<br/>"),Ke(n,0==i.length),i}function xe(e,t,n,a){let s="";if(!t)return null!==n&&!1===n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";if(10!==(t=(0,i.extractNumericalString)(t)).length)s="'"+e+"' "+o.A.t("common.validator.phone.number.max.digits")+"\n";else if(null!=a&&1==a)return s;return s}function Te(e,t,n,a){var s="",r=document.getElementById(t).value;if(null==r||0==r.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";if(10!=(r=(0,i.extractNumericalString)(r)).length)s="'"+e+"' "+o.A.t("common.validator.phone.number.max.digits")+"\n";else{if(null!=a&&1==a)return document.getElementById(t).value=r,s;document.getElementById(t).value=(0,i.prettyUSPhoneNumber)(r)}return s}function Me(e,t,n,i){var o=document.getElementById(e),a=Te(o.innerHTML,t,n,i);return a.length>0&&(a+="<br/>"),Ke(o,0==a.length),a}function Le(e,t,n,a){var s="",r=document.getElementById(t).value;if(null==r||0==r.length)return null!=n&&0==n?"":"'"+e+"' "+o.A.t("common.validator.empty")+"\n";if(/(^\+[1-9]\d{5,14}$|^\d{10}$)/.test(r)){if(null!=a&&1==a)return document.getElementById(t).value=r,s;document.getElementById(t).value=(0,i.prettyUSPhoneNumber)(r)}else s="'"+e+"' "+o.A.t("common.validator.phoneNumber.10.digits");return s}function Oe(e,t,n,i){var o=document.getElementById(e),a=Le(o.innerHTML,t,n,i);return a.length>0&&!p&&(a+="<br/>"),Ke(o,0==a.length),a}function ke(e,t,n){let a="";if(!(t=(0,i.trim)(t))){if(null!=n&&0==n)return"";a="'"+e+"' "+o.A.t("common.validator.empty")+" "}for(var s=0;s<t.length;s++){var r=t.charAt(s);if(!(r>="0"&&r<="9"||"P"==r||"p"==r||"*"==r||"#"==r))return a="'"+e+"' "+o.A.t("common.specific.invalid.characters"),a}return a}function Ie(e,t,n){var a="",s=(0,i.trim)(document.getElementById(t).value);if(document.getElementById(t).value=s,null==s||0==s.length){if(null!=n&&0==n)return"";a="'"+e+"' "+o.A.t("common.validator.empty")+" "}for(var r=0;r<s.length;r++){var l=s.charAt(r);if(!(l>="0"&&l<="9"||"P"==l||"p"==l||"*"==l||"#"==l))return a="'"+e+"' "+o.A.t("common.specific.invalid.characters")}return a}function Pe(e,t,n){var i=document.getElementById(e);let o=Ie(i.innerHTML,t,n);return o.length>0&&(o+="<br/>"),Ke(i,0==o.length),o}function Ne(e,t){for(var n="",i=document.getElementsByName(t),a=0;a<i.length;a++)if(i[a].checked)return"";
2return n+="'"+e+"' "+o.A.t("common.requires.selection")+"\n"}function Re(e,t){var n=document.getElementById(e),i=Ne(n.innerHTML,t);return i.length>0&&(i+="<br/>"),Ke(n,0==i.length),i}function De(e,t,n,i,a){var s="",r=document.getElementById(t).value,l=document.getElementById(n).value,c=document.getElementById(i).value;return a||""!=r||""!=l||""!=c?(Ve(r,l,c)||(s="'"+e+"' "+o.A.t("common.invalid")),s):s}function Be(e,t,n,i,o){var a=document.getElementById(e),s=De(a.innerHTML,t,n,i,o);return s.length>0&&(s+="<br/>"),Ke(a,0==s.length),s}function Fe(e,t,n,i){if(n.getTime()<i.getTime()){var a=document.getElementById(e),s=document.getElementById(t);return Ke(a,!1),"'"+a.innerHTML+"' "+o.A.t("common.may.occur")+"'"+s.innerHTML+"'.<br/>"}return""}function Ue(e,t,n,i){var a=document.getElementById(e),r=document.getElementById(n).value,l=document.getElementById(i),c=s("#"+t)[0].flatpickr.getDate();if(!c)return s(a).text()+" "+o.A.t("common.specify.date");var d=c.getMonth(),u=c.getDate();if(""==r&&""==l.options[l.selectedIndex].text&&""==d)return"";if(!(1==r.indexOf(":")&&4==r.length||2==r.indexOf(":")&&5==r.length))return Ke(a,!1),o.A.t("common.time.format")+"<br>";var p=r.split(":"),h=p[0],m=p[1];if(1==h.length&&(h="0"+h),1==m.length&&(m="0"+m),h<"01"||h>"12")return Ke(a,!1),o.A.t("common.12.hour.format")+"<br>";if(m<"00"||m>"59")return Ke(a,!1),o.A.t("common.minutes.between")+"<br>";if(""==l.options[l.selectedIndex].text)return Ke(a,!1),o.A.t("common.am.or.pm")+"<br>";"PM"==l.options[l.selectedIndex].text?"12"!=h&&(h=parseInt(h,10)+12+""):"12"==h&&(h="00"),d<10&&(d="0"+d),u<10&&(u="0"+u);var f=parseInt(d,10)+1;return f<10&&(f="0"+f),""}function $e(e,t){if(!e||!t)return{valid:!1};if(!(1===e.indexOf(":")&&4===e.length||2===e.indexOf(":")&&5===e.length))return{valid:!1,msg:o.A.t("common.time.format")+"<br>"};var n=e.split(":"),i=n[0],a=n[1];return 1===i.length&&(i="0"+i),1===a.length&&(a="0"+a),i<"01"||i>"12"?{valid:!1,msg:o.A.t("common.12.hour.format")+"<br>"}:a<"00"||a>"59"?{valid:!1,msg:o.A.t("common.minutes.between")+"<br>"}:t?("PM"===t?"12"!=i&&(i=parseInt(i,10)+12+""):"12"==i&&(i="00"),{valid:!0,ts:60*parseInt(i)+parseInt(a)}):{valid:!1,msg:o.A.t("common.am.or.pm")+"<br>"}}function We(e,t,n,i){var o=document.getElementById(n+"_Month_ID").options[document.getElementById(n+"_Month_ID").selectedIndex].value,a=document.getElementById(n+"_Day_ID").options[document.getElementById(n+"_Day_ID").selectedIndex].text,s=document.getElementById(n+"_Year_ID").value;if(i&&""==o)return document.getElementById(t).value="","";o<10&&(o="0"+o),a<10&&(a="0"+a);var r=parseInt(o,10)+1;return r<10&&(r="0"+r),document.getElementById(t).value=r+"/"+a+"/"+s,""}function Ve(e,t,n){var i=new Date(e+"/"+t+"/"+n);return i.getMonth()+1==e&&i.getDate()==t&&i.getFullYear()==n}function He(){for(var e=document.getElementsByTagName("INPUT"),t=0;t<e.length;t++)null!=e[t].getAttribute("formSubmitButton")&&(e[t].disabled=!0)}function je(){for(var e=document.getElementsByTagName("INPUT"),t=0;t<e.length;t++)null!=e[t].getAttribute("formSubmitButton")&&(e[t].disabled=!1)}function Ke(e,t){t?null!==e&&e.className.indexOf(" error")>=0&&(e.className=e.className.substring(0,e.className.indexOf(" error"))):null!==e&&e.className.indexOf(" error")<0&&(e.className+=" error")}function Ge(e){Ke(document.getElementById(e),!0)}function ze(){if(s("#bridgeCode").length<1)return"";var e="";s("#conferenceBlast").is(":checked")&&((0,i.trim)(s("#bridgeCode")[0].value).match(/[^0-9#*p,]/)&&(e=o.A.t("mgtConsole.alerts.voiceRecording.validator.bridge.code")),Ke(s("#bridgeCodeLabel")[0],0==e.length));return e}function qe(){if(s("#bridgePhone").length<1)return"";var e="";return s("#conferenceBlast").is(":checked")&&(0==(0,i.trim)(s("#bridgePhone")[0].value).indexOf("1")&&(e=o.A.t("mgtConsole.alerts.voiceRecording.validator.number.size")),Ke(s("#bridgePhoneLabel")[0],0==e.length)),e}function Xe(e,t){var n=document.getElementById(t);n.innerHTML="",n.style.color="red";var i,o=e.value;if(o.length<1)return!1;var a="",s=!1,r=!1,l=!1,c=!1,d=0;const u=Number.parseInt(document.documentElement.dataset.passwordMinLength)||14;
2for(var p=0;p<o.length;p++){if(!((i=o.charAt(p))>="!"&&i<="~"))return n.innerHTML="Illegal character.",p<o.length-1?e.value="":(o=o.substr(0,o.length-1),e.value=o),!1;i>="a"&&i<="z"?(s||d++,s=!0):i>="A"&&i<="Z"?(r||d++,r=!0):i>="0"&&i<="9"?(l||d++,l=!0):(c||d++,c=!0)}return d<3&&(a+=Rave.t("common.password.validation.password.weak"),o.length<u&&(a+=Rave.t("common.password.validation.password.notLongEnough")),a+=Rave.t("common.password.validation.password.tryAdding"),s||(a+=Rave.t("common.password.validation.password.lowerCase"),++d<=3&&(a+=Rave.t("common.password.validation.password.or"))),r||(a+=Rave.t("common.password.validation.password.upperCase"),++d<=3&&(a+=Rave.t("common.password.validation.password.or"))),l||(a+=Rave.t("common.password.validation.password.numbers"),++d<=3&&(a+=Rave.t("common.password.validation.password.or"))),c||(a+=Rave.t("common.password.validation.password.nonAlphaNumeric")),a+="."),a.length<1&&o.length<u&&(a+=Rave.t("common.password.validation.password.atleast8Chars").replace("{0}",u)),a.length>0?(n.innerHTML=a,!1):(n.style.color="green",n.innerHTML=Rave.t("common.password.validation.password.success"),!0)}},w5zF:function(e,t,n){"use strict";var i=n("Cpa8"),o=n("ZU6F");t.A={validateTime:function(e,t){return(0,o.validateTime)(e,t)},testForIllegalCharacters:function(e,t,n,o){if(!e)return!1===o?"":"'"+t+"' "+i.A.t("common.validator.empty")+"\n";var a="";return e.match(n.pattern)&&(a+="'"+t+"' "+i.A.t("common.validator.url.contains.illegal.chars")+"\n"+n.display),a},testForValidNumOfResponses:function(e,t,n){if(!e)return"'"+t+"' "+i.A.t("common.validator.empty")+"\n";var o="";return null===e.match(n.pattern)&&(o+="'"+t+"' "+i.A.t("common.validator.url.number.out.range")),o},validateDateTime:(e,t)=>t?t.isValid()?"":e.text()+" Must be valid. ":e.text()+" Must specify date. ",dateIsNotBeforeDate:(e,t,n,i)=>i.isBefore(n)?((0,o._setLabelErrorStyleClass)(e[0],!1),`'${e[0].innerHTML}' may not occur before '${t[0].innerHTML}'.<br/>`):""}},"j+9I":function(e,t,n){"use strict";var i=n("+cQT"),o=n.n(i);t.A={inserted:function(e,t){t.value&&o().nextTick(()=>{e.focus()})}}},"4mxm":function(e,t,n){"use strict";n.d(t,{Dk:function(){return a},Xt:function(){return i},y6:function(){return o}});n("8ZBC");const i="START_TIMER_EVENT",o="TIMER_EXPIRED",a="TIMER_DEACTIVATED"},Y2du:function(e,t,n){"use strict";n.d(t,{Kv:function(){return i},Su:function(){return o}});n("8ZBC");const i="START_REGULAR_TIMER_EVENT",o="REGULAR_TIMER_DEACTIVATED"},"4N3r":function(e,t,n){"use strict";const i={rgb:{r:[0,255],g:[0,255],b:[0,255]},hsv:{h:[0,360],s:[0,100],v:[0,100]},hsl:{h:[0,360],s:[0,100],l:[0,100]}
2,alpha:{alpha:[0,1]},HEX:{HEX:[0,16777215]}},o=window.Math,a=o.round;let s={},r={};const l={r:.298954,g:.586434,b:.114612},c={r:.2126,g:.7152,b:.0722};let d=function(e){this.colors={RND:{}},this.options={color:"rgba(0,0,0,0)",grey:l,luminance:c,valueRanges:i},u(this,e||{})},u=function(e,t){let n=e.options;p(e);for(let e in t)void 0!==t[e]&&(n[e]=t[e]);let i=n.customBG;n.customBG="string"==typeof i?f.txt2color(i).rgb:i,r=h(e.colors,n.color,void 0,!0)},p=function(e){s!==e&&(s=e,r=e.colors)};function h(e,t,n,o,a){if("string"==typeof t)n=(t=f.txt2color(t)).type,r[n]=t[n],a=void 0!==a?a:t.alpha;else if(t)for(let o in t)e[n][o]=b(t[o]/i[n][o][1],0,1);return void 0!==a&&(e.alpha=b(+a,0,1)),m(n,o?e:void 0)}function m(e,t){let n=t||r;const l=f,c=s.options,d=i;let u=n.RND;const p={hsl:"hsv",rgb:e};let h=u.rgb;if("alpha"!==e){for(let t in d)if(!d[t][t]){if(e!==t){let e=p[t]||"rgb";n[t]=l[e+"2"+t](n[e])}u[t]||(u[t]={});const i=n[t];for(let e in i)u[t][e]=a(i[e]*d[t][e][1])}h=u.rgb,n.HEX=l.RGB2HEX(h),n.equivalentGrey=c.grey.r*n.rgb.r+c.grey.g*n.rgb.g+c.grey.b*n.rgb.b,n.webSave=g(h,51);let i=n.webSave;n.webSmart=g(h,17);let o=n.webSmart;n.saveColor=h.r===i.r&&h.g===i.g&&h.b===i.b?"web save":h.r===o.r&&h.g===o.g&&h.b===o.b?"web smart":"",n.hueRGB=f.hue2RGB(n.hsv.h),t&&(n.background=function(e,t,n){let i=s.options.grey,o={};return o.RGB={r:e.r,g:e.g,b:e.b},o.rgb={r:t.r,g:t.g,b:t.b},o.alpha=n,o.equivalentGrey=a(i.r*e.r+i.g*e.g+i.b*e.b),o.rgbaMixBlack=y(t,{r:0,g:0,b:0},n,1),o.rgbaMixWhite=y(t,{r:1,g:1,b:1},n,1),o.rgbaMixBlack.luminance=v(o.rgbaMixBlack,!0),o.rgbaMixWhite.luminance=v(o.rgbaMixWhite,!0),s.options.customBG&&(o.rgbaMixCustom=y(t,s.options.customBG,n,1),o.rgbaMixCustom.luminance=v(o.rgbaMixCustom,!0),s.options.customBG.luminance=v(s.options.customBG,!0)),o}(h,n.rgb,n.alpha))}let m=n.rgb,b=n.alpha,C="luminance",_=n.background,w=y(m,{r:0,g:0,b:0},b,1);w[C]=v(w,!0),n.rgbaMixBlack=w;let E=y(m,{r:1,g:1,b:1},b,1);if(E[C]=v(E,!0),n.rgbaMixWhite=E,c.customBG){let e=y(m,_.rgbaMixCustom,b,1);e[C]=v(e,!0),e.WCAG2Ratio=function(e,t){let n=1;n=e>=t?(e+.05)/(t+.05):(t+.05)/(e+.05);return a(100*n)/100}(e[C],_.rgbaMixCustom[C]),n.rgbaMixBGMixCustom=e,e.luminanceDelta=o.abs(e[C]-_.rgbaMixCustom[C]),e.hueDelta=(A=_.rgbaMixCustom,S=e,x=!0,(o.max(A.r-S.r,S.r-A.r)+o.max(A.g-S.g,S.g-A.g)+o.max(A.b-S.b,S.b-A.b))*(x?255:1)/765)}var A,S,x;return n.RGBLuminance=v(h),n.HUELuminance=v(n.hueRGB),c.convertCallback&&c.convertCallback(n,e),n}d.prototype.setColor=function(e,t,n){return p(this),e?h(this.colors,e,t,void 0,n):(void 0!==n&&(this.colors.alpha=b(n,0,1)),m(t))},d.prototype.setCustomBackground=function(e){return p(this),this.options.customBG="string"==typeof e?f.txt2color(e).rgb:e,h(this.colors,void 0,"rgb")},d.prototype.saveAsBackground=function(){return p(this),h(this.colors,void 0,"rgb",!0)},d.prototype.toString=function(e,t){return f.color2text((e||"rgb").toLowerCase(),this.colors,t)};const f={txt2color:function(e){let t={},n=e.replace(/(?:#|\)|%)/g,"").split("("),o=(n[1]||"").split(/,\s*/),a=n[1]?n[0].substr(0,3):"rgb";if(t.type=a,t[a]={},n[1])for(let e=3;e--;){let n=a[e]||a.charAt(e);t[a][n]=+o[e]/i[a][n][1]}else t.rgb=f.HEX2rgb(n[0]);return t.alpha=o[3]?+o[3]:1,t},color2text:function(e,t,n){let i=!1!==n&&a(100*t.alpha)/100,o="number"==typeof i&&!1!==n&&(n||1!==i),s=t.RND.rgb,r=t.RND.hsl,l="hex"===e&&o,c="hex"===e&&!l,d="rgb"===e||l?s.r+", "+s.g+", "+s.b:c?"#"+t.HEX:r.h+", "+r.s+"%, "+r.l+"%";return c?d:(l?"rgb":e)+(o?"a":"")+"("+d+(o?", "+i:"")+")"},RGB2HEX:function(e){return((e.r<16?"0":"")+e.r.toString(16)+(e.g<16?"0":"")+e.g.toString(16)+(e.b<16?"0":"")+e.b.toString(16)).toUpperCase()},HEX2rgb:function(e){return{r:+("0x"+(e=e.split(""))[0]+e[e[3]?1:0])/255,g:+("0x"+e[e[3]?2:1]+(e[3]||e[1]))/255,b:+("0x"+(e[4]||e[2])+(e[5]||e[2]))/255}},hue2RGB:function(e){let t=6*e,n=~~t%6,i=6===t?0:t-n;return{r:a(255*[1,1-i,0,0,i,1][n]),g:a(255*[i,1,1,1-i,0,0][n]),b:a(255*[0,0,i,1,1,1-i][n])}},rgb2hsv:function(e){let t=e.r,n=e.g,i=e.b,a=0;n<i&&(n=i+(i=n,0),a=-1);let s=i;t<n&&(t=n+(n=t,0),a=-2/6-a,s=o.min(n,i));let l=t-s;return{h:(t?l/t:0)<1e-15?r&&r.hsl&&r.hsl.h||0:l?o.abs(a+(n-i)/(6*l)):0,s:t?l/t:r&&r.hsv&&r.hsv.s||0,v:t}},hsv2rgb:function(e){let t=6*e.h,n=e.s,i=e.v,o=~~t,a=t-o,s=i*(1-n),r=i*(1-a*n),l=i*(1-(1-a)*n),c=o%6;return{r:[i,r,s,s,l,i][c],g:[l,i,i,r,s,s][c],b:[s,s,l,i,i,r][c]}},hsv2hsl:function(e){let t=(2-e.s)*e.v,n=e.s*e.v;return n=e.s?t<1?t?n/t:0:n/(2-t):0,{h:e.h,s:e.v||n?n:r&&r.hsl&&r.hsl.s||0,l:t/2}},rgb2hsl:function(e,t){const n=f.rgb2hsv(e);return f.hsv2hsl(t?n:r.hsv=n)},hsl2rgb:function(e){let t=6*e.h,n=e.s,i=e.l,o=i<.5?i*(1+n):i+n-n*i,a=i+i-o,s=~~t,r=o*(o?(o-a)/o:0)*(t-s),l=a+r,c=o-r,d=s%6;return{r:[o,c,a,a,l,o][d],g:[l,o,o,c,a,a][d],b:[a,a,l,o,o,c][d]}}};function g(e,t){let n={};const i=t/2;
2for(let o in e){let a=e[o]%t;n[o]=e[o]+(a>i?t-a:-a)}return n}function v(e,t){let n=t?1:255,i=[e.r/n,e.g/n,e.b/n],a=s.options.luminance;for(let e=i.length;e--;)i[e]=i[e]<=.03928?i[e]/12.92:o.pow((i[e]+.055)/1.055,2.4);return a.r*i[0]+a.g*i[1]+a.b*i[2]}function y(e,t,n,i){let o={};const a=void 0!==n?n:1,s=void 0!==i?i:1,r=a+s*(1-a);for(let n in e)o[n]=(e[n]*a+t[n]*s*(1-a))/r;return o.a=r,o}function b(e,t,n){return e>n?n:e<t?t:e}var C,_,w,E,A,S,x,T,M,L,O,k=d,I=n("PcWQ"),P=I(document),N=I(),R="touchstart.tcp mousedown.tcp pointerdown.tcp",D=!1,B=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){e()},F='<div class="cp-color-picker"><div class="cp-z-slider"><div class="cp-z-cursor"></div></div><div class="cp-xy-slider"><div class="cp-white"></div><div class="cp-xy-cursor"></div></div><div class="cp-alpha"><div class="cp-alpha-cursor"></div></div></div>',U=".cp-color-picker{position:absolute;overflow:hidden;padding:6px 6px 0;background-color:#444;color:#bbb;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:400;cursor:default;border-radius:5px}.cp-color-picker>div{position:relative;overflow:hidden}.cp-xy-slider{float:left;height:128px;width:128px;margin-bottom:6px;background:linear-gradient(to right,#FFF,rgba(255,255,255,0))}.cp-white{height:100%;width:100%;background:linear-gradient(rgba(0,0,0,0),#000)}.cp-xy-cursor{position:absolute;top:0;width:10px;height:10px;margin:-5px;border:1px solid #fff;border-radius:100%;box-sizing:border-box}.cp-z-slider{float:right;margin-left:6px;height:128px;width:20px;background:linear-gradient(red 0,#f0f 17%,#00f 33%,#0ff 50%,#0f0 67%,#ff0 83%,red 100%)}.cp-z-cursor{position:absolute;margin-top:-4px;width:100%;border:4px solid #fff;border-color:transparent #fff;box-sizing:border-box}.cp-alpha{clear:both;width:100%;height:16px;margin:6px 0;background:linear-gradient(to right,#444,rgba(0,0,0,0))}.cp-alpha-cursor{position:absolute;margin-left:-4px;height:100%;border:4px solid #fff;border-color:#fff transparent;box-sizing:border-box}",$=function(e){_=this.color=new k(e),w=_.options,C=this};function W(e){return e.value||e.getAttribute("value")||I(e).css("background-color")||"#FFF"}function V(e){return(e=e.originalEvent&&e.originalEvent.touches?e.originalEvent.touches[0]:e).originalEvent?e.originalEvent:e}function H(e){return I(e.find(w.doRender)[0]||e[0])}function j(e){var t=I(this),n=t.offset(),i=I(window),o=w.gap;e?((E=H(t))._colorMode=E.data("colorMode"),C.$trigger=t,(A||(I("head")[w.cssPrepend?"prepend":"append"]('<style type="text/css" id="tinyColorPickerStyles">'+(w.css||U)+(w.cssAddon||"")+"</style>"),I(F).css({margin:w.margin}).appendTo("body").show(0,function(){C.$UI=A=I(this),D=w.GPU&&void 0!==A.css("perspective"),S=I(".cp-z-slider",this),x=I(".cp-xy-slider",this),T=I(".cp-xy-cursor",this),M=I(".cp-z-cursor",this),L=I(".cp-alpha",this),O=I(".cp-alpha-cursor",this),w.buildCallback.call(C,A),A.prepend("<div>").children().eq(0).css("width",A.children().eq(0).width()),A._width=this.offsetWidth,A._height=this.offsetHeight}).hide())).css(w.positionCallback.call(C,t)||{left:(A._left=n.left)-((A._left+=A._width-(i.scrollLeft()+i.width()))+o>0?A._left+o:0),top:(A._top=n.top+t.outerHeight())-((A._top+=A._height-(i.scrollTop()+i.height()))+o>0?A._top+o:0)}).show(w.animationSpeed,function(){!0!==e&&(L.toggle(!!w.opacity)._width=L.width(),x._width=x.width(),x._height=x.height(),S._height=S.height(),_.setColor(W(E[0])),X(!0))}).off(".tcp").on(R,".cp-xy-slider,.cp-z-slider,.cp-alpha",K)):C.$trigger&&I(A).hide(w.animationSpeed,function(){X(!1),C.$trigger=null}).off(".tcp")}function K(e){var t=this.className.replace(/cp-(.*?)(?:\s*|$)/,"$1").replace("-","_");(e.button||e.which)>1||(e.preventDefault&&e.preventDefault(),e.returnValue=!1,E._offset=I(this).offset(),(t="xy_slider"===t?G:"z_slider"===t?z:q)(e),X(),P.on("touchend.tcp mouseup.tcp pointerup.tcp",function(){P.off(".tcp")}).on("touchmove.tcp mousemove.tcp pointermove.tcp",function(e){t(e),X()}))}function G(e){var t=V(e),n=t.pageX-E._offset.left,i=t.pageY-E._offset.top;_.setColor({s:n/x._width*100,v:100-i/x._height*100},"hsv")}function z(e){var t=V(e).pageY-E._offset.top;_.setColor({h:360-t/S._height*360},"hsv")}function q(e){var t=(V(e).pageX-E._offset.left)/L._width;_.setColor({},"rgb",t)}function X(e){var t=_.colors,n=t.hueRGB,i=w.dark,o=w.light,a=_.toString(E._colorMode,w.forceAlpha),s=t.HUELuminance>.22?i:o,r=t.rgbaMixBlack.luminance>.22?i:o,l=(1-t.hsv.h)*S._height,c=t.hsv.s*x._width,d=(1-t.hsv.v)*x._height,u=t.alpha*L._width,p=D?"translate3d":"",h=E[0].value,m=E[0].hasAttribute("value")&&""===h&&void 0!==e;x._css={backgroundColor:"rgb("+n.r+","+n.g+","+n.b+")"},T._css={transform:p+"("+c+"px, "+d+"px, 0)",left:D?"":c,top:D?"":d,borderColor:t.RGBLuminance>.22?i:o},M._css={transform:p+"(0, "+l+"px, 0)",top:D?"":l,borderColor:"transparent "+s},L._css={backgroundColor:"#"+t.HEX},O._css={transform:p+"("+u+"px, 0, 0)",left:D?"":u,borderColor:r+" transparent"},E._css={backgroundColor:m?"":a,color:m?"":t.rgbaMixBGMixCustom.luminance>.22?i:o},E.text=m?"":h!==a?a:"",void 0!==e?J(e):B(J)}function J(e){x.css(x._css),T.css(T._css),M.css(M._css),L.css(L._css),O.css(O._css),w.doRender&&E.css(E._css),E.text&&E.val(E.text),w.renderCallback.call(C,E,"boolean"==typeof e?e:void 0)}$.prototype={render:X,toggle:j},I.fn.colorPicker=function(e){var t=this,n=function(){};return e=I.extend({animationSpeed:150,GPU:!0,doRender:!0,customBG:"#FFF",opacity:!0,renderCallback:n,buildCallback:n,positionCallback:n,body:document.body,scrollResize:!0,gap:4,dark:"#222",light:"#DDD"},e),!C&&e.scrollResize&&I(window).on("resize.tcp scroll.tcp",function(){C.$trigger&&C.toggle.call(C.$trigger[0],!0)}),N=N.add(this),this.colorPicker=C||new $(e),this.options=e,I(e.body).off(".tcp").on(R,function(e){-1===N.add(A).add(I(A).find(e.target)).index(e.target)&&j()}),this.on("focusin.tcp click.tcp",function(e){C.color.options=I.extend(C.color.options,w=t.options),j.call(this,e)}).on("change.tcp",function(){_.setColor(this.value||"#FFF"),t.colorPicker.render(!0)}).each(function(){var t=W(this),n=t.split("("),i=H(I(this));
2i.data("colorMode",n[1]?n[0].substr(0,3):"HEX").attr("readonly",w.preventFocus),e.doRender&&i.css({"background-color":t,color:function(){return _.setColor(t).rgbaMixBGMixCustom.luminance>.22?e.dark:e.light}})})},I.fn.colorPicker.destroy=function(){I("*").off(".tcp"),C.toggle(!1),N=I()}},"47BN":function(e,t,n){"use strict";n.d(t,{A:function(){return qe}});var i=n("bveE"),o=n("+R3k"),a=n("PcWQ"),s={name:"row-expander",bind:function(e,t){t.value.onExpand&&a(e).data("rowExpander",new o.A({rowEl:e,onExpand:(e,n)=>{r(e,t,n)},onCollapse:(e,n)=>{l(e,t,n)},indicatorLocation:t.value.indicatorLocation}))},update(e,t){const n=a(e).data("rowExpander");n.onExpand=(e,n)=>{r(e,t,n)},n.onCollapse=(e,n)=>{l(e,t,n)}},unbind:function(e){var t=a(e).data("rowExpander");t&&t.destroy(),a(e).data("rowExpander")}};function r(e,t,n){t.value.onExpand(e,t.value.row,n)}function l(e,t,n){t.value.onCollapse&&t.value.onCollapse(e,t.value.row,n)}var c=n("PcWQ"),d={name:"row-expander-2",bind:function(e,t){t.value.onExpand&&c(e).data("rowExpander",new o.A({rowEl:e,onExpand:(e,n)=>{t.value.onExpand(e,t.value.row,n)},onCollapse:(e,n)=>{t.value.onCollapse&&t.value.onCollapse(e,t.value.row,n)},indicatorLocation:t.value.indicatorLocation}))},unbind:function(e){var t=c(e).data("rowExpander");t&&t.destroy(),c(e).data("rowExpander")},update:function(e,t){t.def.unbind(e);var n=c(e).data("rowExpander");
2n&&n.destroy(),t.value&&!t.value.row.expanderData&&(n.expanderControl[0].remove("is-expanded"),n.expanderControl[0].classList.add("is-collapsed")),t.def.bind(e,t)}},u=n("juGh"),p=n("fH+4"),h=n("O3EO"),m=n("PcWQ"),f={name:"tooltip",props:{manual:{type:Boolean,default:!1},opened:{type:Boolean,required:!1},content:{type:[String,Function],required:!0},context:{type:[Object,String],required:!1}},data:function(){return{tipContent:""}},watch:{opened(){this.opened?h.A.showManually(m(this.$el)):h.A.hide(m(this.$el))}},mounted(){let e;e="function"==typeof this.content?this.content(this.context):this.content;const t={template:h.A.HelpTipTemplate};this.manual&&(t.trigger="manual"),h.A.add(m(this.$el),e,t)}},g=n("KHd+"),v=(0,g.A)(f,function(){return(0,this._self._c)("span",[this._t("default")],2)},[],!1,null,null,null).exports,y={name:"modal-base",template:"<div></div>",props:["localEvents","modalData"]},b=n("Z6Wl"),C=n("lJwB");const _={colorChecked:"#75C791",colorUnchecked:"#bfcbd9",cssColors:!1,labelChecked:"on",labelUnchecked:"off",width:50,height:22,margin:3};var w={CHANGE_TOGGLE:"CHANGE_TOGGLE",extends:C.A,props:{height:{type:Number,default:_.height},width:{type:Number,default:_.width}},computed:{buttonRadius:function(){return this.height+2*_.margin},distance:function(){return(0,C.px)(this.width-this.buttonRadius)},buttonStyle:function(){return{width:(0,C.px)(this.buttonRadius),height:(0,C.px)(this.buttonRadius),transition:"transform "+this.speed+"ms",transform:this.toggled?`translate3d(${this.distance}, ${-this.height-3}px, 0px)`:`translate3d(0, ${-this.height-3}px, 0px)`}},coreStyle:function(){return{width:(0,C.px)(this.width),height:(0,C.px)(this.height),backgroundColor:this.cssColors?null:this.backgroundColorCurrent,borderRadius:"4px"}},checkedClass:function(){return this.toggled?"is-checked":"is-not-checked"}},methods:{getConstants:()=>_}},E=(0,g.A)(w,function(){var e=this,t=e._self._c;return t("a",{staticClass:"square-toggle-button"},[t("label",{staticClass:"vue-js-switch-square radio-btn-wrap m-b-0",class:e.className,attrs:{tabindex:"0",role:"switch","aria-checked":e.ariaChecked}},[t("input",{staticClass:"v-switch-input",attrs:{type:"checkbox"},on:{click:function(t){return t.stopPropagation(),e.toggle.apply(null,arguments)}}}),e._v(" "),t("div",{staticClass:"v-switch-core v-switch-core-square",style:e.coreStyle}),e._v(" "),t("div",{staticClass:"v-switch-button v-switch-button-square checkbox-custom",class:e.checkedClass,style:e.buttonStyle})])])},[],!1,null,null,null),A=E.exports;const S={colorChecked:"#75C791",colorUnchecked:"#bfcbd9",cssColors:!1,labelChecked:"on",labelUnchecked:"off",width:50,height:22,margin:3};var x={CHANGE_TOGGLE:"CHANGE_TOGGLE",extends:C.A,name:"CircleToggleButton",props:{height:{type:Number,default:S.height},width:{type:Number,default:S.width}},computed:{buttonRadius:function(){return this.height+2*S.margin},distance:function(){return(0,C.px)(this.width-this.buttonRadius)},coreStyle:function(){return{}},checkedClass:function(){return this.toggled?"is-checked":"is-not-checked"}},methods:{getConstants:()=>S}},T=(0,g.A)(x,function(){var e=this,t=e._self._c;return t("a",{staticClass:"round-toggle-button"},[t("label",{staticClass:"vue-js-switch-square radio-btn-wrap m-b-0",class:e.className,attrs:{tabindex:"0",role:"switch","aria-checked":e.ariaChecked}},[t("input",{staticClass:"v-switch-input",attrs:{type:"checkbox"},on:{click:function(t){return t.stopPropagation(),e.toggle.apply(null,arguments)}}}),e._v(" "),t("div",{staticClass:"v-switch-core v-switch-core-square",style:e.coreStyle},[e._t("default")],2)])])},[],!1,null,null,null),M=T.exports,L=n("PcWQ"),O={props:{value:{type:Boolean,default:!0},showControl:{type:Boolean,default:!0},useFontAwesome:{type:Boolean,default:!1},hasErrors:{type:Boolean,default:!1},hotTitle:{type:Boolean,default:!1}},watch:{value(){this.isExpanded=this.value}},data(){return{isExpanded:this.value}},mounted:function(){},methods:{toggle(){this.isExpanded=!this.isExpanded,this.$emit("input",this.isExpanded)},propagateEvent(e){this.$emit("input",e)},afterEnter(){this.$emit("transition-end")},processClick(e){if(!this.hotTitle)return;const t=L(this.$el).find(".box-expander-inner>>")[0],n=t.offsetTop+t.clientHeight,i=!!L(e.target).parents(".expander-exclude").length;e.pageY>0&&e.pageY<n&&!i&&this.toggle()}}},k=(0,g.A)(O,function(){var e=this,t=e._self._c;return t("div",{staticClass:"box-expander clearfix",class:{textAlertError:e.hasErrors}},[e.showControl?t("expander-control",{attrs:{useFontAwesome:e.useFontAwesome},on:{input:function(t){return e.propagateEvent(t)}},model:{value:e.isExpanded,callback:function(t){e.isExpanded=t},expression:"isExpanded"}}
2):e._e(),e._v(" "),t("div",{staticClass:"box-expander-inner",on:{click:function(t){return e.processClick(t)}}},[t("transition",{attrs:{name:"slide-fade",mode:"out-in"},on:{"after-enter":e.afterEnter}},[e.isExpanded?e._t("content"):e._t("title")],2)],1)],1)},[],!1,null,null,null).exports,I=n("bwlw"),P=n("K9hY"),N={name:"TreeExpander",props:{value:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},showExpanderControl:{type:Boolean,default:!0}},watch:{value(){this.isExpanded=this.value},loading(){this.loading?this.$refs.spinKit.start():this.$refs.spinKit.stop()}},data(){return{isExpanded:this.value,ExpanderType:I.Z,LayoutStrategy:P.o}},mounted:function(){},methods:{toggle(){this.showExpanderControl&&(this.isExpanded=!this.isExpanded,this.$emit("input",this.isExpanded))},toggled(){this.$emit("input",this.isExpanded)}}},R=(0,g.A)(N,function(){var e=this,t=e._self._c;return t("div",{staticClass:"tree-expander",class:{"is-expanded":e.isExpanded}},[t("div",{staticClass:"te-top-row",on:{click:function(t){return e.toggle()}}},[t("expander-control",{style:[e.showExpanderControl?"":{visibility:"hidden"}],attrs:{type:e.ExpanderType.TRIANGLE_UP_DOWN,"skip-events":!0},on:{input:function(t){return e.toggled()}},model:{value:e.isExpanded,callback:function(t){e.isExpanded=t},expression:"isExpanded"}}),e._v(" "),t("div",{staticClass:"te-top-row-content"},[e._t("top-row")],2),e._v(" "),t("spin-kit",{ref:"spinKit",attrs:{layout:e.LayoutStrategy.PARENT_OVERLAY}})],1),e._v(" "),t("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[e.isExpanded?t("div",{staticClass:"te-expander-row"},[e._t("expander-row")],2):e._e()])],1)},[],!1,null,null,null).exports,D=n("jopW"),B=n("7CNq"),F=n("EIuQ"),U=n("PcWQ"),$={name:"paginationBar",props:["page","totalPages"],watch:{page:function(){this.barInstance.render(this.page,this.totalPages)},totalPages:function(){this.barInstance.render(this.page,this.totalPages)}},mounted:function(){var e=this,t=0;this.barInstance=new F.A({navigationFn:function(n){t!==n?(e.$emit("navigating",n),t=n):e.barInstance.cancel()},anchor:U(this.$el)}),this.barInstance.render(this.page,this.totalPages)}},W=(0,g.A)($,function(){return(0,this._self._c)("div",{staticClass:"pagination-bar"})},[],!1,null,null,null).exports,V=n("PcWQ"),H={name:"high-charts",props:{width:Number,height:Number,seriesData:Array,chartColors:{type:Array,required:!1},title:{type:String,required:!1},layout:{type:String,required:!1},align:{type:String,required:!1},verticalAlign:{type:String,required:!1}},data:function(){return{tipContent:""}},mounted:function(){V(this.$el).width(this.width),V(this.$el).height(this.height);const e={text:this.title,style:{display:"none"}},t={pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}};this.chartColors&&(t.pie.colors=this.chartColors);const n=[{type:"pie",name:this.title,data:this.seriesData}];
2V(this.$el).highcharts({chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,events:{load:function(){var e=this,t=!1;if(n&&n[0].data&&(t=n[0].data.find(e=>e.y>0)),!n.length||!n[0].data.length||!t){var i=Math.min(e.plotWidth/2,e.plotHeight/2),o=e.plotHeight/2+e.plotTop,a=e.plotWidth/2+e.plotLeft;e.pieOutline=e.renderer.circle(a,o,i).attr({fill:"#ddd",stroke:"black","stroke-width":1}).add()}}}},title:e,credits:{enabled:!1},tooltip:{pointFormat:"{series.name}: <b>{point.percentage:.1f}%</b>"},series:n,legend:{margin:0,enabled:!0,layout:this.layout||"vertical",align:this.align||"right",verticalAlign:this.verticalAlign||"bottom",labelFormatter:function(){return`${this.name} ${this.y.toFixed(1)}%`}},plotOptions:t})}},j=(0,g.A)(H,function(){return(0,this._self._c)("div")},[],!1,null,null,null).exports,K=n("7RMj"),G=n("nQlO"),z=n("Cpa8"),q=n("PcWQ"),X={filters:{formatFileSize:K.formatFileSize},props:{files:{type:Array,required:!1,default:function(){return[]}},uploaderService:{type:Object,required:!1},preDelete:{type:Function,required:!1}},data:()=>({i18n:{name:z.A.t("common.name"),size:z.A.t("common.size"),action:z.A.t("common.tblHeader.action"),uploadDate:z.A.t("mgtConsole.alerts.uploadDate")}}),methods:{preDeleteFile:function(e,t){this.preDelete?this.preDelete(e,t):this.deleteFile(e,t)},deleteFile:function(e,t,n){let i=this,o=t.target;if(this.files){this.$set(e,"deleted",!0);for(let t=0;t<this.files.length;t++){if(this.files[t].path===e.path){let i=q(o),s=new G.A({anchor:i.parent()}).show().start();if(n||!this.uploaderService){a(s,e,t);break}this.uploaderService.deleteFile(e).done(function(){a(s,e,t)});break}}}function a(e,t,n){e.stop(),e.destroy(),i.files.splice(n,1),i.$emit("delete-file",t,i.files)}},downloadFile:function(e){this.uploaderService&&this.uploaderService.downloadFile(e),this.$emit("download-file",e,self.files)}}},J=(0,g.A)(X,function(){var e=this,t=e._self._c;return t("table",{staticClass:"table table-hover",attrs:{"upload-file-list":"","data-testid":"upload-file-list"}},[t("thead",[t("tr",[t("th",[e._v(e._s(e.i18n.name))]),e._v(" "),t("th",[e._v(e._s(e.i18n.size))]),e._v(" "),t("th",[e._v(e._s(e.i18n.uploadDate))]),e._v(" "),t("th",[e._v(e._s(e.i18n.action))])])]),e._v(" "),t("tbody",e._l(e.files,function(n){return t("tr",{attrs:{"data-testid":"file-row"}},[t("td",{staticClass:"break-word-all"},[e._v(e._s(n.name))]),e._v(" "),t("td",[e._v(e._s(e._f("formatFileSize")(n.size)))]),e._v(" "),t("td",[e._v(e._s(n.uploadDateStr))]),e._v(" "),t("td",[n.expired?e._e():t("a",{staticClass:"btn-action",on:{click:function(t){return e.downloadFile(n,t)}}},[t("span",{staticClass:"icon-download-alt"})]),e._v(" "),n.deleted?e._e():t("a",{staticClass:"btn-action",attrs:{"data-testid":"delete-attachment-button"},on:{click:function(t){return e.preDeleteFile(n,t)}}},[t("span",{staticClass:"icon-delete delete"})])])])}),0)])},[],!1,null,null,null).exports,Y=n("Lcm2"),Q=n("aT0v"),Z=n("w5zF"),ee=n("vV2i"),te=n("PcWQ"),ne={name:"number-validation",bind:function(e,t,n){var i=e.value;e.onkeyup=function(o){var a=o.target.value;i!==a&&(ie(e,a,t,n),i=o.target.value)},e.onclick=function(o){var a=o.target.value;i!==a&&(ie(e,a,t,n),i=o.target.value)},ie(e,e.value,t,n)},unbind:function(e){e["number-validation-unwatch"]&&e["number-validation-unwatch"](),te(e).off("input.number-validation")}};function ie(e,t,n,i){var o=Z.A.testForValidNumOfResponses(t,n.value.errorLabel,n.value.rule);o?(""!==t&&ee.default.warning(null,o),te(e).addClass("textAlertError")):te(e).removeClass("textAlertError");var a=function(e){if(e.data&&e.data.directives){var t=e.data.directives.find(function(e){return"model"===e.name});return t?t.expression:null}}(i),s=new CustomEvent("number-input-validated",{detail:{originalEvent:null,errMsg:o,errorFor:a,isValid:!o}});e.dispatchEvent(s)}let oe;var ae={deep:!0,bind:function(e,t){let i=e.querySelectorAll("code");oe?se(i,t):Promise.all([n.e(435),n.e(8135)]).then(n.bind(n,"wUvT")).then(e=>{oe=e.default,se(i,t)})},componentUpdated:function(e,t){se(e.querySelectorAll("code"),t)}};function se(e,t){e.forEach(e=>{t.value&&(e.textContent=t.value),oe.highlightElement(e)})}var re=n("8L3F"),le=n("PcWQ"),ce={data:function(){return{expanded:!1}},computed:{iconClass:function(){return this.expanded?"icon-arrow-up":"icon-arrow-down"}},methods:{expand:function(e){let t=this;e.stopPropagation(),this.expanded=!this.expanded;let n=le(this.$el).outerWidth(),i=le(this.$el),o=i.find(".rave-menu-items");o.width("auto");let a=o.outerWidth()-o.width();o.outerWidth()<=n?o.width(n-a):o.width(o.width()-a);let s=-1*(o.outerWidth()-n),r=new re.default(i,o,{placement:"bottom-start",modifiers:{offset:{offset:s+"px, 2px"}}});
2this.$nextTick(function(){r.update()}),this.expanded&&le("body").on("click",function(){t.expanded=!1})}}},de=(0,g.A)(ce,function(){var e=this,t=e._self._c;return t("div",{staticClass:"rave-menu",class:{expanded:e.expanded}},[t("div",{staticClass:"rave-menu-inner",on:{click:function(t){return e.expand(t)}}},[t("div",[e._t("title")],2),e._v(" "),t("div",{staticClass:"rave-menu-indicator"},[t("b",{class:e.iconClass})])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expanded,expression:"expanded"}],staticClass:"rave-menu-items"},[e._t("items")],2)])},[],!1,null,null,null).exports,ue=n("0AVP"),pe={name:"TabMenuItem",props:{action:{type:null},active:{type:Boolean},itemEnd:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},methods:{clicked(e){this.selectable&&!this.disabled&&(this.$parent.$emit("action",this.action),this.$parent.$emit("select-menu",{event:e,action:this.action}))},plusMinus(e){this.selectable&&!this.disabled&&this.$parent.$emit("plus-minus",{event:e,action:this.action,active:this.active})}}},he=(0,g.A)(pe,function(){var e=this;return(0,e._self._c)("a",{staticClass:"nav-item nav-link",class:{active:e.active,"item-end":e.itemEnd,"no-under":!e.selectable||e.disabled,disabled:!e.selectable||e.disabled},attrs:{action:e.action,tabindex:e.selectable?0:-1,href:"#",disabled:!e.selectable,role:"tab","aria-selected":e.active},on:{click:function(t){return t.preventDefault(),e.clicked(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"plus",void 0,t.key,void 0)&&e._k(t.keyCode,"minus",void 0,t.key,void 0)?null:(t.stopPropagation(),e.plusMinus(t))}}},[e._t("default")],2)},[],!1,null,null,null).exports,me={name:"TabContent",props:{shadow:{type:Boolean,required:!1}},computed:{menuClasses:()=>""}},fe=(0,g.A)(me,function(){return(0,this._self._c)("div",{staticClass:"tab-content clearfix"},[this._t("default")],2)},[],!1,null,null,null).exports,ge={props:{action:{type:Function},active:{type:Boolean}},methods:{clicked:function(){this.$parent.$emit("action",this.action)}}},ve=(0,g.A)(ge,function(){var e=this,t=e._self._c;return t("div",{staticClass:"rave-menu-item",on:{click:function(t){return e.clicked()}}},[t("div",{staticClass:"rave-menu-item-inner",class:{active:e.active}},[e._t("default")],2)])},[],!1,null,null,null).exports,ye=n("woUU");const be={},Ce={};var _e={get componentInstanceCounter(){return be},get rootComponents(){return Ce},removeRootComponent(e){delete Ce[e]}};const we=/vue-component-\d+-(.+)/;var Ee={mounted(){let e=this.$options._componentTag;if(!e){if(!this.$vnode||!this.$vnode.tag)return;this.$options.name?e=this.$options.name:this.$vnode.tag.replace(we,(t,n)=>{e=n})}const t=_e.componentInstanceCounter;if(void 0===t[e]?t[e]=0:t[e]++,!this.$el.setAttribute)return;this.$root===this.$parent&&(_e.rootComponents[e]=this),this.$el.setAttribute("vue-name",e),this.$el.setAttribute("vue-instance",`${e}_${t[e]}`)},destroyed(){let e=this.$options._componentTag;this.$root===this.$parent&&_e.removeRootComponent(e)}},Ae=n("O6RD"),Se=n("qmtd"),xe=n("bDMI"),Te=n("cpVg"),Me=n("kmjl"),Le=n("3Tuy"),Oe=n("MBdx"),ke=n("PLRs"),Ie=n("j+9I"),Pe=n("vjP/"),Ne=n("rT2p"),Re=n("vuN+"),De=n("dHPE"),Be={name:"I18N",props:{t:{type:String,required:!0}},render(e){const t=z.A.getAll()[this.t];if(!t)return this._v(`??? ${this.t} ???`);const n=[];return t.split(/(\{\d\})/).forEach(e=>{const t=e.match(/\{(\d)\}/);if(t){const e=t[1];n.push(this.$slots[e])}else n.push(e)}),e("span",{},n)}},Fe=(0,g.A)(Be,void 0,void 0,!1,null,null,null).exports,Ue=n("0+ZZ"),$e={name:"SortableColumn",props:{name:{type:[Number,String],required:!0},sortedColumn:{type:[Number,String],required:!1}},data:()=>({filterVal:"",direction:1,touched:!1}),watch:{sortedColumn(e){this.name!==e&&(this.touched=!1,this.direction=1)}},methods:{sort(){this.touched=!0,this.$emit("sort",{colName:this.name,direction:this.direction}),this.direction=-1*this.direction},filter(){this.$emit("filter",{colName:this.name,filterVal:this.filterVal})}}},We=(0,g.A)($e,function(){var e=this,t=e._self._c;return t("th",{staticClass:"sortable-column-th",on:{click:function(t){return e.sort()}}},[t("div",{staticClass:"sortable-column-cell"},[e._t("default"),e._v(" "),t("transition",{attrs:{name:"fade"}},[e.touched&&e.sortedColumn===e.name?t("div",[t("expander-control",{key:"h",attrs:{value:e.direction>0,type:"Type.TRIANGLE_UP_DOWN"}}
2)],1):e._e()])],2)])},[],!1,null,null,null).exports,Ve=n("4Ugr"),He=n("PcWQ"),je={name:"HTMLPreview",props:{value:{type:[String,Object],required:!0},config:{type:Object,required:!1}},mounted(){const e={cssClasses:"",bodyStyle:{margin:0,"overflow-y":"hidden"}};this.config&&He.extend(!0,e,this.config),Ve.A.appendPreviewFrame(this.$el,He(`<div>${this.value}</div>`),e)}},Ke=(0,g.A)(je,function(){return(0,this._self._c)("div")},[],!1,null,null,null).exports,Ge=n("fp4J"),ze=n("jPkd"),qe={name:"RaveVuePlugin",install:function(e){if(e._installedPlugins.find(function(e){return"RaveVuePlugin"===e.name}))return;e.config.productionTip=!1;const t=new e;e.prototype.$bus||e.prototype.$t||Object.defineProperties(e.prototype,{$store:{get:()=>Ue.A.store,configurable:!0},$bus:{get:()=>t},$t:{get:()=>z.A.get}}),e.config.keyCodes={minus:189,plus:187},Pe.Yv.add(Re.Ay),Pe.Yv.add(De.Ay),Pe.tT.watch(),e.component("high-charts",j),e.component("help-tooltip",p.A),e.component("tooltip",v),e.component("modalComponentBase",y),e.component("toggle-button",C.A),e.component("RoundToggleButton",M),e.component("box-expander",k),e.component("TreeExpander",R),e.component("ExpanderControl",I.A),e.component("square-toggle-button",A),e.component("pagination-bar",W),e.component("char-counter",b.A),e.component("CharCounter",b.A),e.component("file-list",J),e.component("file-uploader",Y.A),e.component("rave-menu",de),e.component("rave-menu-item",ve),e.component("tab-menu",ue.A),e.component("tab-menu-item",he),e.component("tab-content",fe),e.component("rave-tag-it",ye.Ay),e.component("alert-modes-component",Ae.A),e.component("confirmationSummaryComponent",Se.A),e.component("select2",xe.A),e.component("date-time-picker",Te.A),e.component("DateTimePicker",Te.A),e.component("DateFormatter",Me.A),e.component("ActionButton",Le.Ay),e.component("spin-kit",P.A),e.component("RaveInput",Oe.A),e.component("rave-radio",D.A),e.component("RadioButton",D.A),e.component("rave-checkbox",B.A),e.component("Checkbox",B.A),e.component("rave-textarea",ke.A),e.component("RaveTextarea",ke.A),e.component("FontAwesomeIcon",Ne.gc),e.component("I18N",Fe),e.component("SortableColumn",We),e.component("HTMLPreview",Ke),e.component("training-mode-banner",Ge.A),e.component("tiny-mce",ze.A),e.directive("t",i.A),e.directive("tooltip",u.A),e.directive("text-validation",Q.A),e.directive("number-validation",ne),e.directive("row-expander",s),e.directive("row-expander-2",d),e.directive("autofocus",Ie.A),e.directive("highlightjs",ae),e.mixin(Ee)}}},bveE:function(e,t,n){"use strict";var i=n("Cpa8");t.A={name:"t",bind:function(e,t){e.textContent=i.A.get(t.value)}}},EMDz:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var i=n("PcWQ"),o=n("PcWQ");i.ui=i.ui||{};const a=window.define;var s;function r(e){var t=function(){var e=!1;i(".ra-tag-list").css("border-style","none"),i(".ra-tag-list").css("padding","0"),i(".ra-tag-list LI.tagit-choice-editable").each(function(){i(this).removeClass("tagit-choice-editable"),i(this).addClass("tagit-choice-read-only"),e=!0}),i(".ra-tag-list LI.tagit-choice-read-only").each(function(){e=!0}),i(".ra-tag-list A.tagit-close").hide(),i(".ra-tag-list LI.tagit-new INPUT").attr("disabled","disabled"),i(".ra-tag-list LI.tagit-new").hide(),i(".ra-tag-save-btn").hide(),i(".ra-tag-edit-btn").show(),i(".ra-tag-cnr").toggle(e)};t(),i(".ra-tag-edit-btn").click(function(e){i(".ra-tag-list").css("border-style","solid"),i(".ra-tag-list").css("padding","1px 5px"),i(".ra-tag-list LI.tagit-choice-read-only").each(function(){i(this).removeClass("tagit-choice-read-only"),i(this).addClass("tagit-choice-editable")}),i(".ra-tag-list A.tagit-close").show(),i(".ra-tag-list LI.tagit-new").show(),i(".ra-tag-list LI.tagit-new INPUT").removeAttr("disabled"),i(".ra-tag-list LI.tagit-new INPUT").focus(),i(".ra-tag-save-btn").show(),i(".ra-tag-edit-btn").hide(),i(".ra-tag-cnr").show(),e.preventDefault()}),i(".ra-tag-save-btn").click(function(n){t(),i(e||"#formForSavingTagsToTheReport").submit(),n.preventDefault()})}i.uniqueSort||(i.uniqueSort=i.unique),i.extend(i.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),s=function(e){var t,n=0,i=Array.prototype.hasOwnProperty,o=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var i,o,a;for(a=0;null!=(o=n[a]);a++)(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove");t(n)}),e.widget=function(t,n,i){var o,a,s,r={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);
vendor: 8,317 bytes, line 2
2return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},o=e[l][t],a=e[l][t]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){e.isFunction(i)?r[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,a=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=a,t}}():r[t]=i}),a.prototype=e.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||t},r,{constructor:a,namespace:l,widgetName:t,widgetFullName:c}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delete o._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var n,a,s=o.call(arguments,1),r=0,l=s.length;r<l;r++)for(n in s[r])a=s[r][n],i.call(s[r],n)&&void 0!==a&&(e.isPlainObject(a)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],a):e.widget.extend({},a):t[n]=a);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(a){var s="string"==typeof a,r=o.call(arguments,1),l=this;return s?this.length||"instance"!==a?this.each(function(){var n,o=e.data(this,i);return"instance"===a?(l=o,!1):o?e.isFunction(o[a])&&"_"!==a.charAt(0)?(n=o[a].apply(o,r))!==o&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+a+"' for "+t+" widget instance"):void 0}):l=void 0:(r.length&&(a=e.widget.extend.apply(null,[a].concat(r))),this.each(function(){var t=e.data(this,i);t?(t.option(a||{}),t._init&&t._init()):e.data(this,i,new n(a,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,a,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},i=t.split("."),t=i.shift(),i.length){for(o=s[t]=e.widget.extend({},this.options[t]),a=0;a<i.length-1;a++)o[i[a]]=o[i[a]]||{},o=o[i[a]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(){t.element.each(function(t,n){e.map(i.classesElementLookup,function(e){return e}).some(function(e){return e.is(n)})||i._on(e(n),{remove:"_untrackClassesElement"})})}function a(a,s){var r,l;for(l=0;l<a.length;l++)r=i.classesElementLookup[a[l]]||e(),t.add?(o(),r=e(e.uniqueSort(r.get().concat(t.element.get())))):r=e(r.not(t.element).get()),i.classesElementLookup[a[l]]=r,n.push(a[l]),s&&t.classes[a[l]]&&n.push(t.classes[a[l]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&a(t.keys.match(/\S+/g)||[],!0),t.extra&&a(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,a={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return a.element.toggleClass(this._classes(a),i),this},_on:function(t,n,i){var o,a=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,s){function r(){if(t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?a[s]:s).apply(a,arguments)}"string"!=typeof s&&(r.guid=s.guid=s.guid||r.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,d=l[2];d?o.on(c,d,r):n.on(c,r)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,a,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],a=n.originalEvent)for(o in a)o in n||(n[o]=a[o]);return this.element.trigger(n,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,a){var s;"string"==typeof o&&(o={effect:o});var r=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),s=!e.isEmptyObject(o),o.complete=a,o.delay&&i.delay(o.delay),s&&e.effects&&e.effects.effect[r]?i[t](o):r!==t&&i[r]?i[r](o.duration,o.easing,a):i.queue(function(n){e(this)[t](),a&&a.call(i[0]),n()})}}),e.widget},"function"==typeof a&&a.amd?a(["jquery"],s):s(o),function(e){"function"==typeof a&&a.amd?a(["jquery"],e):e(o)}(function(e){return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}}),function(e){"function"==typeof a&&a.amd?a(["jquery"],e):e(o)}(function(e){return e.fn.extend({uniqueId:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
vendor: 4,171 bytes, line 2
2)&&e(this).removeAttr("id")})}});var t}),function(e){"function"==typeof a&&a.amd?a(["jquery"],e):e(o)}(function(e){return function(){var t,n=Math.max,i=Math.abs,o=/left|center|right/,a=/top|center|bottom/,s=/[+-]\d+(\.[\d]+)?%?/,r=/^\w+/,l=/%$/,c=e.fn.position;function d(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function u(t,n){return parseInt(e.css(t,n),10)||0}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,i,o=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),a=o.children()[0];return e("body").append(o),n=a.offsetWidth,o.css("overflow","scroll"),n===(i=a.offsetWidth)&&(i=o[0].clientWidth),o.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=e.isWindow(n[0]),o=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:o,offset:!i&&!o?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);t=e.extend({},t);var l,p,h,m,f,g,v,y,b=e(t.of),C=e.position.getWithinInfo(t.within),_=e.position.getScrollInfo(C),w=(t.collision||"flip").split(" "),E={};return g=9===(y=(v=b)[0]).nodeType?{width:v.width(),height:v.height(),offset:{top:0,left:0}}:e.isWindow(y)?{width:v.width(),height:v.height(),offset:{top:v.scrollTop(),left:v.scrollLeft()}}:y.preventDefault?{width:0,height:0,offset:{top:y.pageY,left:y.pageX}}:{width:v.outerWidth(),height:v.outerHeight(),offset:v.offset()},b[0].preventDefault&&(t.at="left top"),p=g.width,h=g.height,m=g.offset,f=e.extend({},m),e.each(["my","at"],function(){var e,n,i=(t[this]||"").split(" ");1===i.length&&(i=o.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=o.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=s.exec(i[0]),n=s.exec(i[1]),E[this]=[e?e[0]:0,n?n[0]:0],t[this]=[r.exec(i[0])[0],r.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?f.left+=p:"center"===t.at[0]&&(f.left+=p/2),"bottom"===t.at[1]?f.top+=h:"center"===t.at[1]&&(f.top+=h/2),l=d(E.at,p,h),f.left+=l[0],f.top+=l[1],this.each(function(){var o,a,s=e(this),r=s.outerWidth(),c=s.outerHeight(),g=u(this,"marginLeft"),v=u(this,"marginTop"),y=r+g+u(this,"marginRight")+_.width,A=c+v+u(this,"marginBottom")+_.height,S=e.extend({},f),x=d(E.my,s.outerWidth(),s.outerHeight());"right"===t.my[0]?S.left-=r:"center"===t.my[0]&&(S.left-=r/2),"bottom"===t.my[1]?S.top-=c:"center"===t.my[1]&&(S.top-=c/2),S.left+=x[0],S.top+=x[1],o={marginLeft:g,marginTop:v},e.each(["left","top"],function(n,i){e.ui.position[w[n]]&&e.ui.position[w[n]][i](S,{targetWidth:p,targetHeight:h,elemWidth:r,elemHeight:c,collisionPosition:o,collisionWidth:y,collisionHeight:A,offset:[l[0]+x[0],l[1]+x[1]],my:t.my,at:t.at,within:C,elem:s})}),t.using&&(a=function(e){var o=m.left-S.left,a=o+p-r,l=m.top-S.top,d=l+h-c,u={target:{element:b,left:m.left,top:m.top,width:p,height:h},element:{element:s,left:S.left,top:S.top,width:r,height:c},horizontal:a<0?"left":o>0?"right":"center",vertical:d<0?"top":l>0?"bottom":"middle"};p<r&&i(o+a)<p&&(u.horizontal="center"),h<c&&i(l+d)<h&&(u.vertical="middle"),n(i(o),i(a))>n(i(l),i(d))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),s.offset(e.extend(S,{using:a}))})},e.ui.position={fit:{left:function(e,t){var i,o=t.within,a=o.isWindow?o.scrollLeft:o.offset.left,s=o.width,r=e.left-t.collisionPosition.marginLeft,l=a-r,c=r+t.collisionWidth-s-a;t.collisionWidth>s?l>0&&c<=0?(i=e.left+l+t.collisionWidth-s-a,e.left+=l-i):e.left=c>0&&l<=0?a:l>c?a+s-t.collisionWidth:a:l>0?e.left+=l:c>0?e.left-=c:e.left=n(e.left-r,e.left)},top:function(e,t){var i,o=t.within,a=o.isWindow?o.scrollTop:o.offset.top,s=t.
vendor: 8,846 bytes, line 2
2within.height,r=e.top-t.collisionPosition.marginTop,l=a-r,c=r+t.collisionHeight-s-a;t.collisionHeight>s?l>0&&c<=0?(i=e.top+l+t.collisionHeight-s-a,e.top+=l-i):e.top=c>0&&l<=0?a:l>c?a+s-t.collisionHeight:a:l>0?e.top+=l:c>0?e.top-=c:e.top=n(e.top-r,e.top)}},flip:{left:function(e,t){var n,o,a=t.within,s=a.offset.left+a.scrollLeft,r=a.width,l=a.isWindow?a.scrollLeft:a.offset.left,c=e.left-t.collisionPosition.marginLeft,d=c-l,u=c+t.collisionWidth-r-l,p="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,h="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,m=-2*t.offset[0];d<0?((n=e.left+p+h+m+t.collisionWidth-r-s)<0||n<i(d))&&(e.left+=p+h+m):u>0&&((o=e.left-t.collisionPosition.marginLeft+p+h+m-l)>0||i(o)<u)&&(e.left+=p+h+m)},top:function(e,t){var n,o,a=t.within,s=a.offset.top+a.scrollTop,r=a.height,l=a.isWindow?a.scrollTop:a.offset.top,c=e.top-t.collisionPosition.marginTop,d=c-l,u=c+t.collisionHeight-r-l,p="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,h="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];d<0?((o=e.top+p+h+m+t.collisionHeight-r-s)<0||o<i(d))&&(e.top+=p+h+m):u>0&&((n=e.top-t.collisionPosition.marginTop+p+h+m-l)>0||i(n)<u)&&(e.top+=p+h+m)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position}),function(e){"function"==typeof a&&a.amd?a(["jquery"],e):e(o)}(function(e){return e.widget("ui.menu",{version:"@VERSION",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var n=e(t.target),i=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this._menuItems().first();t||this.focus(e,n)},blur:function(t){this._delay(function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var n=e(t.target).closest(".ui-menu-item"),i=e(t.currentTarget);n[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var n,i,o,a,s=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:s=!1,i=this.previousFilter||"",a=!1,o=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),o===i?a=!0:o=i+o,n=this._filterMenuItems(o),(n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(o=String.fromCharCode(t.keyCode),n=this._filterMenuItems(o)),n.length?(this.focus(t,n),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,i,o,a=this,s=this.options.icons.submenu,r=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev(),i=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(i,"ui-menu-icon","ui-icon "+s),n.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",n.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(t=r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")}),o=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,i,o;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,i,o,a,s,r;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,o=t.offset().top-this.activeMenu.offset().top-n-i,a=this.activeMenu.scrollTop(),s=this.activeMenu.height(),r=t.outerHeight(),o<0?this.activeMenu.scrollTop(a+o):o+r>s&&this.activeMenu.scrollTop(a+o-s+r))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(t),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i},n?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
2se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,n){var i;this.active&&(i="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),i&&i.length&&this.active||(i=this._menuItems(this.activeMenu)[t]()),this.focus(n,i)},nextPage:function(t){var n,i,o;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i-o<0}),this.focus(t,n)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){let n,i,o;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-i+o>0}),this.focus(t,n)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(e.trim(e(this).children(".ui-menu-item-wrapper").text()))})}})}),function(e){"function"==typeof a&&a.amd?a(["jquery"],e):e(o)}(function(e){return e.widget("ui.autocomplete",{version:"@VERSION",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){let t,n,i,o=this.element[0].nodeName.toLowerCase(),a="textarea"===o,s="input"===o;this.isMultiLine=a||!s&&this._isContentEditable(this.element),this.valueMethod=this.element[a||s?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return t=!0,i=!0,void(n=!0);t=!1,i=!1,n=!1;var a=e.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case a.UP:t=!0,this._keyEvent("previous",o);break;case a.DOWN:t=!0,this._keyEvent("next",o);break;case a.ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o)}},keypress:function(i){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var o=e.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(e){if(i)return i=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 6,746 bytes, line 2
2)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,n){var i,o;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});o=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:o})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(o.value),(i=n.item.attr("aria-label")||o.value)&&e.trim(i).length&&(this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,n){var i=n.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,i=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,i){i(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,o){i.xhr&&i.xhr.abort(),i.xhr=e.ajax({url:n,data:t,dataType:"json"}).done(function(e){o(e)}).fail(function(){o([])})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||n||i)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var i=this;e.each(n,function(e,n){i._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var i=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return i.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){this._superApply(arguments),this.options.disabled||this.cancelSearch||(e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults)}}),e.ui.autocomplete}),function(e){e.widget("ui.tagit",{options:{allowDuplicates:!1,caseSensitive:!0,fieldName:"tags",placeholderText:null,readOnly:!1,removeConfirmation:!1,tagLimit:null,availableTags:[],autocomplete:{},showAutocompleteOnFocus:!1,allowSpaces:!1,singleField:!1,singleFieldDelimiter:",",singleFieldNode:null,animate:!0,tabIndex:null,beforeTagAdded:null,afterTagAdded:null,beforeTagRemoved:null,afterTagRemoved:null,onTagClicked:null,onTagLimitExceeded:null,onTagAdded:null,onTagRemoved:null,tagSource:null},_create:function(){var t=this;
2this.element.is("input")?(this.tagList=e("<ul></ul>").insertAfter(this.element),this.options.singleField=!0,this.options.singleFieldNode=this.element,this.element.addClass("tagit-hidden-field")):this.tagList=this.element.find("ul, ol").addBack().last(),this.tagInput=e('<input type="text" />').addClass("ui-widget-content"),this.options.readOnly&&this.tagInput.attr("disabled","disabled"),this.options.tabIndex&&this.tagInput.attr("tabindex",this.options.tabIndex),this.options.placeholderText&&this.tagInput.attr("placeholder",this.options.placeholderText),this.options.autocomplete.source||(this.options.autocomplete.source=function(t,n){var i=t.term.toLowerCase(),o=e.grep(this.options.availableTags,function(e){return 0===e.toLowerCase().indexOf(i)});this.options.allowDuplicates||(o=this._subtractArray(o,this.assignedTags())),n(o)}),this.options.showAutocompleteOnFocus&&(this.tagInput.focus(function(){t._showAutocomplete()}),void 0===this.options.autocomplete.minLength&&(this.options.autocomplete.minLength=0)),e.isFunction(this.options.autocomplete.source)&&(this.options.autocomplete.source=e.proxy(this.options.autocomplete.source,this)),e.isFunction(this.options.tagSource)&&(this.options.tagSource=e.proxy(this.options.tagSource,this)),this.tagList.addClass("tagit").addClass("ui-widget ui-widget-content ui-corner-all").append(e('<li class="tagit-new"></li>').append(this.tagInput)).click(function(n){var i=e(n.target);if(i.hasClass("tagit-label")){var o=i.closest(".tagit-choice");o.hasClass("removed")||t._trigger("onTagClicked",n,{tag:o,tagLabel:t.tagLabel(o)})}else t.tagInput.focus()});var n=!1;if(this.options.singleField)if(this.options.singleFieldNode){var i=e(this.options.singleFieldNode),o=i.val().split(this.options.singleFieldDelimiter);i.val(""),e.each(o,function(e,i){t.createTag(i,null,!0),n=!0})}else this.options.singleFieldNode=e('<input type="hidden" style="display:none;" value="" name="'+this.options.fieldName+'" />'),this.tagList.after(this.options.singleFieldNode);if(n||this.tagList.children("li").each(function(){e(this).hasClass("tagit-new")||(t.createTag(e(this).text(),e(this).attr("class"),!0),e(this).remove())}),this.tagInput.keydown(function(n){if(n.which==e.ui.keyCode.BACKSPACE&&""===t.tagInput.val()){var i=t._lastTag();!t.options.removeConfirmation||i.hasClass("remove")?t.removeTag(i):t.options.removeConfirmation&&i.addClass("remove ui-state-highlight")}else t.options.removeConfirmation&&t._lastTag().removeClass("remove ui-state-highlight");(n.which===e.ui.keyCode.COMMA&&!1===n.shiftKey||n.which===e.ui.keyCode.ENTER||n.which==e.ui.keyCode.TAB&&""!==t.tagInput.val()||n.which==e.ui.keyCode.SPACE&&!0!==t.options.allowSpaces&&('"'!=e.trim(t.tagInput.val()).replace(/^s*/,"").charAt(0)||'"'==e.trim(t.tagInput.val()).charAt(0)&&'"'==e.trim(t.tagInput.val()).charAt(e.trim(t.tagInput.val()).length-1)&&e.trim(t.tagInput.val()).length-1!=0))&&(n.which===e.ui.keyCode.ENTER&&""===t.tagInput.val()||n.preventDefault(),t.options.autocomplete.autoFocus&&t.tagInput.data("autocomplete-open")||(t.tagInput.autocomplete("close"),t.createTag(t._cleanedInput())))}).blur(function(){t.tagInput.data("autocomplete-open")||t.createTag(t._cleanedInput())}),this.options.availableTags||this.options.tagSource||this.options.autocomplete.source){var a={select:function(e,n){return t.createTag(n.item.value),!1}};e.extend(a,this.options.autocomplete),a.source=this.options.tagSource||a.source,this.tagInput.autocomplete(a).bind("autocompleteopen.tagit",function(){t.tagInput.data("autocomplete-open",!0)}).bind("autocompleteclose.tagit",function(){t.tagInput.data("autocomplete-open",!1)}),this.tagInput.autocomplete("widget").addClass("tagit-autocomplete")}},destroy:function(){return e.Widget.prototype.destroy.call(this),this.element.unbind(".tagit"),this.tagList.unbind(".tagit"),this.tagInput.removeData("autocomplete-open"),this.tagList.removeClass(["tagit","ui-widget","ui-widget-content","ui-corner-all","tagit-hidden-field"].join(" ")),this.element.is("input")?(this.element.removeClass("tagit-hidden-field"),this.tagList.remove()):(this.element.children("li").each(function(){e(this).hasClass("tagit-new")?e(this).remove():(e(this).removeClass(["tagit-choice","ui-widget-content","ui-state-default","ui-state-highlight","ui-corner-all","remove","tagit-choice-editable","tagit-choice-read-only"].join(" ")),e(this).text(e(this).children(".tagit-label").text()))}),this.singleFieldNode&&this.singleFieldNode.remove()),this},_cleanedInput:function(){return e.trim(this.tagInput.val().replace(/^"(.*)"$/,"$1"))},_lastTag:function(){return this.tagList.find(".tagit-choice:last:not(.removed)")},_tags:function(){return this.tagList.find(".tagit-choice:not(.removed)")},assignedTags:function(){var t=this,n=[];return this.options.singleField?""===(n=e(this.options.singleFieldNode).val().split(this.options.singleFieldDelimiter))[0]&&(n=[]):this._tags().each(function(){n.push(t.tagLabel(this))}),n},_updateSingleTagsField:function(t){e(this.options.singleFieldNode).val(t.join(this.options.singleFieldDelimiter)).trigger("change")},_subtractArray:function(t,n){for(var i=[],o=0;o<t.length;o++)-1==e.inArray(t[o],n)&&i.push(t[o]);return i},tagLabel:function(t){return this.options.singleField?e(t).find(".tagit-label:first").text():e(t).find("input:first").val()},_showAutocomplete:function(){this.tagInput.autocomplete("search","")},_findTagByLabel:function(t){var n=this,i=null;return this._tags().each(function(){if(n._formatStr(t)==n._formatStr(n.tagLabel(this)))return i=e(this),!1}),i},_isNew:function(e){return!this._findTagByLabel(e)},_formatStr:function(t){return this.options.caseSensitive?t:e.trim(t.toLowerCase())},_effectExists:function(t){return Boolean(e.effects&&(e.effects[t]||e.effects.effect&&e.effects.effect[t]))},createTag:function(t,n,i){var o=this;if(t=e.trim(t),this.options.preprocessTag&&(t=this.options.preprocessTag(t)),""===t)return!1;if(!this.options.allowDuplicates&&!this._isNew(t)){var a=this._findTagByLabel(t);return!1!==this._trigger("onTagExists",null,{existingTag:a,duringInitialization:i})&&this._effectExists("highlight")&&a.effect("highlight"),!1}if(this.options.tagLimit&&this._tags().length>=this.options.tagLimit)return this._trigger("onTagLimitExceeded",null,{duringInitialization:i}),!1;var s=e(this.options.onTagClicked?'<a class="tagit-label"></a>':'<span class="tagit-label"></span>').text(t),r=e("<li></li>").addClass("tagit-choice ui-widget-content ui-state-default ui-corner-all").addClass(n).append(s);if(this.options.readOnly)r.addClass("tagit-choice-read-only");else{r.addClass("tagit-choice-editable");var l=e("<span></span>").addClass("ui-icon ui-icon-close"),c=e('<a><span class="text-icon">\xd7</span></a>').addClass("tagit-close").append(l).click(function(){o.removeTag(r)});r.append(c)}if(!this.options.singleField){var d=s.html();r.append('<input type="hidden" value="'+d+'" name="'+this.options.fieldName+'" class="tagit-hidden-field" />')}if(!1!==this._trigger("beforeTagAdded",null,{tag:r,tagLabel:this.tagLabel(r),duringInitialization:i})){if(this.options.singleField){var u=this.assignedTags();u.push(t),this._updateSingleTagsField(u)}this._trigger("onTagAdded",null,r),this.tagInput.val(""),this.tagInput.parent().before(r),this._trigger("afterTagAdded",null,{tag:r,tagLabel:this.tagLabel(r),duringInitialization:i}),this.options.showAutocompleteOnFocus&&!i&&setTimeout(function(){o._showAutocomplete()},0)}},removeTag:function(t,n){if(n=void 0===n?this.options.animate:n,t=e(t),this._trigger("onTagRemoved",null,t),!1!==this._trigger("beforeTagRemoved",null,{tag:t,tagLabel:this.tagLabel(t)})){if(this.options.singleField){var i=this.assignedTags(),o=this.tagLabel(t);i=e.grep(i,function(e){return e!=o}),this._updateSingleTagsField(i)}if(n){t.addClass("removed");var a=this._effectExists("blind")?["blind",{direction:"horizontal"},"fast"]:["fast"],s=this;a.push(function(){t.remove(),s._trigger("afterTagRemoved",null,{tag:t,tagLabel:s.tagLabel(t)})}),t.fadeOut("fast").hide.apply(t,a).dequeue()}else t.remove(),this._trigger("afterTagRemoved",null,{tag:t,tagLabel:this.tagLabel(t)})}},removeTagByLabel:function(e,t){var n=this._findTagByLabel(e);if(!n)throw"No such tag exists with the name '"+e+"'";this.removeTag(n,t)},removeAll:function(){var e=this;this._tags().each(function(t,n){e.removeTag(n,!1)})},destroyAndCleanUp:function(){this.removeAll(),this.destroy()},createTags:function(e){var t=this;e.forEach(function(e){t.createTag(e,null,!0)})}})}(o)},aT0v:function(e,t,n){"use strict";var i=n("w5zF"),o=n("vV2i"),a=n("7RMj"),s=n("Cpa8"),r=n("uXSz"),l=n("+cQT"),c=n.n(l),d=n("PcWQ");function u(e){if(e.data&&e.data.directives){var t=e.data.directives.find(function(e){return"model"===e.name});return t?t.expression:null}}function p(e,t,n,a){let l="",p=!1!==n.value.highlight,h="textAlertError",m=!1,f=!1;if(n.value.rule&&(l=i.A.testForIllegalCharacters(t,n.value.errorLabel,n.value.rule,!!n.value.required)),l)if((0,r.isBlank)(t)||n.value.inline)n.value.inline?m=!0:f=!0;else{var g,v;if(n.value.onValidationError&&"function"==typeof n.value.onValidationError)n.value.onValidationError({message:l,element:e,errorFor:n.value.errorFor||u(
2a)});else"localhost"===(null===(g=window)||void 0===g||null===(v=g.location)||void 0===v?void 0:v.hostname)&&console.error("[textValidationDirective] DEPRECATED: Direct modal usage. Please use onValidationError callback to call the Modal."),o.default.warning(null,l,null,null,{categoryType:o.default.CategoryType.VALIDATION});m=!0}else f=!0;if(n.value.required&&((0,r.isBlank)(t)?(l=s.A.t("common.validator.empty"),m=!0):f=!0),"function"==typeof n.value.validationFn){let e=n.value.validationFn(t);e.isValid||(l=e.errMsg)}var y;p&&(m?d(e).addClass(h):f&&d(e).removeClass(h)),y=Object.prototype.hasOwnProperty.call(n.value,"watch")?n.value.watch.field:u(a),y=n.value.errorFor||y;var b=new CustomEvent("input-validated",{detail:{originalEvent:null,errMsg:l,errorFor:y,isValid:!l,css:m?h:""}});a.context.$data.$raveValidation&&a.context.$data.$raveValidation.add(y,b.detail);let C=n.value.errorBag;C&&(C[y]||c().set(C,y,{}),C[y]=b.detail),c().nextTick(()=>{e.dispatchEvent(b)})}t.A={name:"text-validation",bind:function(e,t,n){var i=(0,a.debounce)(function(i){p(e,i,t,n)},0);if(Object.prototype.hasOwnProperty.call(t.value,"watch"))t.value.watch.scope&&t.value.watch.field&&(e["text-validation-unwatch"]=n.context.$watch(function(){return t.value.watch.scope[t.value.watch.field]},i,{deep:!0}));else{var o=u(n);-1!==o.indexOf("[")&&console.error("v-text-validation can be used with complex v-model. But Vue needs help watching it. Use additional parameter: {watch: {scope: vm, field: vmFieldName}}"),o&&(e["text-validation-unwatch"]=n.context.$watch(o,i,{deep:!0}))}p(e,e.value,t,n)},unbind:function(e){e["text-validation-unwatch"]&&e["text-validation-unwatch"](),d(e).off("input.text-validation")}}},juGh:function(e,t,n){"use strict";var i=n("O3EO"),o=n("PcWQ");t.A={name:"tooltip",inserted:function(e,t){if(!t.value)return;let n;n="function"==typeof t.value.renderFn?t.value.renderFn(t.value.val):"string"==typeof t.value?t.value:t.value.val,i.A.add(o(e),n,{template:t.value.template})},unbind:function(e){o(e).tooltip("dispose")}}},ntoN:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n("L5+t");class o{constructor(){(0,i.A)(this,"immediate",!1)}validate(){throw Error("AbstractValidationRule is not meant to be executed")}}},G0N1:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i=n("ntoN");class o extends i.A{constructor(e){super(),this.fn=e}async validate(e,t){return await this.fn(e,t)}}},qqD0:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("ntoN"),o=n("uXSz");class a extends i.A{constructor(e){super(),this.errorMsg=e,this.immediate=!1}async validate(e){return(0,o.isBlank)(e)?this.errorMsg:""}}},XgGP:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n("ntoN"),o=n("Aook"),a=n("Cpa8"),s=n("vV2i"),r=n("MBdx");class l extends i.A{constructor(e){super(),this.immediate=!0,this.showInvalidCharacters=e}async validate(e){return e&&e.match(o.S.pattern)?(this.errorVal=this.assembleError(e),this.errorVal):""}assembleError(e){let t=a.A.t("common.fema.extended.illegal.chars");t+=o.S.display,t+=" ";const n=e.match(RegExp(o.S.pattern,"g")),i={},s=[];return this.showInvalidCharacters?(n.forEach(e=>{i[e]=e}
2),Object.keys(i).forEach(e=>s.push(e)),t+=`<p>${s.join()}</p>`):t+="<p/>",t+=a.A.t("common.fema.extended.illegal.chars.remove"),t}handleError(e,t){return new Promise(n=>{let i=`${e}  ${this.errorVal}`;s.default.warning(null,i,"Remove",()=>{const e=t.replace(RegExp(o.S.pattern,"g"),"");n({action:r.i.EmitNewValue,data:e}),s.default.alert(a.A.t("common.success"),a.A.t("common.fema.extended.illegal.chars.remove.ack"))},{confirmLabel:a.A.t("common.buttonLabel.remove"),cancelLabel:a.A.t("common.buttonLabel.cancel"),categoryType:s.default.CategoryType.VALIDATION,cancelAction:()=>n()})})}}},CofK:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("ntoN"),o=n("Aook");class a extends i.A{constructor(){super(),this.immediate=!0}async validate(e){return e&&e.match(o.qm.pattern)?(this.errorVal=o.qm.display(),this.errorVal):""}}},"5CDX":function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("ntoN"),o=n("Cpa8");class a extends i.A{constructor(e){super(),this.immediate=e,this.ERROR_MSG=o.A.t("common.validator.invalid.integer"),this.pattern=/^-?(0|[1-9][0-9]{0,18})$/}async validate(e){return""===e||null==e||this.pattern.test(e)?"":this.ERROR_MSG}}},Z2xB:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("ntoN"),o=n("Cpa8");class a extends i.A{constructor(){super(),this.immediate=!1}validate(e){const t=e;if(t.length<1)return!1;let n,i="",a=!1,s=!1,r=!1,l=!1,c=0;const d=Number.parseInt(document.documentElement.dataset.passwordMinLength)||14;for(let e=0;e<t.length;e++){if(n=t.charAt(e),!(n>="!"&&n<="~"))return"Illegal character.";n>="a"&&n<="z"?(a||c++,a=!0):n>
2="A"&&n<="Z"?(s||c++,s=!0):n>="0"&&n<="9"?(r||c++,r=!0):(l||c++,l=!0)}return c<3&&(i+=o.A.t("common.password.validation.password.weak"),t.length<d&&(i+=o.A.t("common.password.validation.password.notLongEnough")),i+=o.A.t("common.password.validation.password.tryAdding"),a||(i+=o.A.t("common.password.validation.password.lowerCase"),++c<=3&&(i+=o.A.t("common.password.validation.password.or"))),s||(i+=o.A.t("common.password.validation.password.upperCase"),++c<=3&&(i+=o.A.t("common.password.validation.password.or"))),r||(i+=o.A.t("common.password.validation.password.numbers"),++c<=3&&(i+=o.A.t("common.password.validation.password.or"))),l||(i+=o.A.t("common.password.validation.password.nonAlphaNumeric")),i+="."),i.length<1&&t.length<d&&(i+=o.A.t("common.password.validation.password.atleast8Chars").replace("{0}",d)),i}}},"R/a6":function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("ntoN"),o=n("Cpa8");class a extends i.A{constructor(e,t){super(),this.immediate=!0,this.prohibitedWords=e,this.prohibitMessageContent=t}async validate(e){return this.prohibitMessageContent&&this.prohibitedWords.test(e)?`${o.A.t("common.validator.prohibitedWords")}`:""}}},n4VA:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("ntoN"),o=n("Cpa8");const a=/^\+?[0-9\-() ]*$/;class s extends i.A{constructor(){super(),this.immediate=!0}async validate(e){return e&&!e.match(a)?o.A.t("common.validator.relaxed.phone.number.invalid"):""}}},wlhR:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("ntoN"),o=n("ZU6F"),a=n("Cpa8");class s extends i.A{constructor(){super(),this.immediate=!0}async validate(e){return e&&e.match(o.STANDARD_ILLEGAL_CHARACTERS_REGEX2.pattern)?`${a.A.t("common.validator.url.contains.illegal.chars")} ${o.STANDARD_ILLEGAL_CHARACTERS_REGEX2.display}`:""}}},AxQ1:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("ntoN"),o=n("Aook"),a=n("Cpa8");class s extends i.A{constructor(){super(),this.immediate=!0}async validate(e){return e&&e.match(o._T.pattern)?`${a.A.t("common.validator.url.contains.illegal.chars")} ${o._T.display}`:""}}},tGt7:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("ntoN"),o=n("Cpa8"),a=n("ON3F");window.Big=a.A;class s extends i.A{constructor(e,t,n){super(),this.immediate=e;try{this.min=null==t?(0,a.A)(Number.MIN_SAFE_INTEGER):(0,a.A)(t)}catch(e){this.min=(0,a.A)(Number.MIN_SAFE_INTEGER)}try{this.max=null==n?(0,a.A)(Number.MAX_SAFE_INTEGER):(0,a.A)(n)}catch(e){this.max=(0,a.A)(Number.MAX_SAFE_INTEGER)}}async validate(e){if("string"==typeof e&&e&&e.length>=2&&(e.startsWith("0")||e.startsWith("-0")))return o.A.t("common.validator.invalid.number");if(""===e||null==e)return"";try{const t=(0,a.A)(e);if(t.gt(this.max)||t.lt(this.min))return o.A.t("common.validator.number.range.invalid",[e,this.min.toString(),this.max.toString()])}catch(e){return o.A.t("common.validator.invalid.number")}return""}}},Aook:function(e,t,n){"use strict";n.d(t,{Es:function(){return m},S:function(){return p},Zb:function(){return d},_T:function(){return r},je:function(){return u},qm:function(){return h}});var i=n("akzv"),o=n("Cpa8");const a="\ud83d[\ude00-\ude4f]",s="[\\uD800-\\uFFFF]",r={pattern:new RegExp("[\\<\\>]|"+a+"|"+s),display:"< > emojis or unsupported characters"},l={pattern:new RegExp("[\\<\\>~]|"+a+"|"+s),display:"< > ~ emojis or unsupported characters"},c={pattern:new RegExp("[\\<\\>~_\\$@]|"+a+"|"+s),display:"< > ~ _ $ @ emojis or unsupported characters"},d={pattern:"^([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1[0-9][0-9][0-9]|2000)$",display:"number out of range"},u=/\[INSERT/i,p={pattern:new RegExp("[\\<\\>]|"+a+"|[\\{\\}\\|\\\\\\^\\~]|[\\u0080-\\uFFFF]|"+s),display:""},h={pattern:new RegExp((i.Ay.allowSpecialCharactersInText?l:c).pattern.source+"|[^\\u0000-\\u00ff\\u2018\\u2019\\u201b\\u201c\\u201d\\u201f\\u2012\\u2013\\u2014\\u2015\\u2053\\u00A0]"),display:()=>o.A.t("common.contains.invalid.chars")},m={pattern:new RegExp("[\\u00A0]"),display:""}},paRU:function(e,t,n){"use strict";var i=n("L5+t"),o=n("+cQT"),a=n.n(o);t.A={createErrorBag:()=>new s};class s{constructor(){(0,i.A)(this,"errors",{}),(0,i.A)(this,"highlightErrors",!1)}
2async validate(){let e={isValid:!0,errMsgs:[]};return await Promise.all(Object.keys(this.errors).map(async t=>{let n=this.errors[t];await n.validate(),n.isValid||(e.isValid=!1,e.errMsgs.push(n))})),this.highlightErrors=!0,e}async validateFor(e){let t={isValid:!0,errMsgs:[]},n=this.errors[e];if(!n)throw Error(`Validator: errorFor [${e}] is not present in validator. There is nothing to validate. Bailing.`);return await n.validate(),n.isValid||(t.isValid=!1,t.errMsgs.push(n)),this.highlightErrors=!0,t}displayMessage(){return this.getMessages().join("<br/>")}getMessages(){let e=[];return Object.keys(this.errors).forEach(t=>{let n=this.errors[t];n.isValid||("object"!=typeof n.errMsg||n.errMsg.propagate?e.push(n.errMsg):e.push(n.errMsg.errMsg))}),e}add(e,t){this.errors[e]||a().set(this.errors,e,{}),this.errors[e].errMsg=t,this.errors[e].isValid=!t}get(e){return Object.assign({},this.errors[e])}clearErrors(){this.highlightErrors=!1,Object.keys(this.errors).forEach(e=>{let t=this.errors[e];t.isValid=!0,t.errMsg=""})}clearErrorFor(e){a().delete(this.errors,e)}has(e){return!(!this.errors[e]||this.errors[e].isValid)}first(e){return this.errors[e]&&!this.errors[e].isValid?this.errors[e].errMsg:""}hasErrors(){let e=0;return Object.keys(this.errors).forEach(t=>{let n=this.errors[t];e+=!0===n.isValid?0:1}),e>0}}},"1vLz":function(){},AKfq:function(){},exLI:function(){},"3fwm":function(){},"f+9f":function(){},"3w55":function(){},K9AQ:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("+cQT"),o=n("Cpa8"),a={__name:"TheFooter",props:{isLoggedIn:Boolean,preferredRegion:String,whiteLabelLogoId:{type:Number,required:!1},whiteLabelUrl:String},setup(e){const t=e,n=o.A.t("footer.go.rave"),a="US"===t.preferredRegion?"footer.copyright":"footer.copyright.canada",s=o.A.t(a,[(new Date).getFullYear()]),r=document.body.classList.contains("ui-refresh-enabled"),l=(0,i.ref)(document.body.clientWidth<=768);function c(){l.value=document.body.clientWidth<=768}return(0,i.onMounted)(()=>{window.addEventListener("resize",c)}),(0,i.onUnmounted)(()=>{window.removeEventListener("resize",c)}),{__sfc:!0,props:t,goToRave:n,copyrightKey:a,copyright:s,uiRefreshEnabled:r,mobile:l,resizeFn:c,Lang:o.A}}},s=(n("IXiy"),(0,n("KHd+").A)(a,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{class:{"ui-refresh-enabled":n.uiRefreshEnabled},attrs:{id:"footer"}},[n.uiRefreshEnabled?e._e():t("div",{staticClass:"footer-divider"}),e._v(" "),n.uiRefreshEnabled?t("div",{style:{display:"flex",gap:"15px",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap"}},["number"!=typeof e.whiteLabelLogoId||e.whiteLabelLogoId<=0?t("a",{attrs:{href:"http://ravemobilesafety.com","aria-label":n.goToRave}},[t("img",{attrs:{src:"/images/logos/rave-dayct.png"}})]):e._e(),e._v(" "),"number"==typeof e.whiteLabelLogoId&&e.whiteLabelLogoId>0?[e.whiteLabelUrl?t("a",{attrs:{href:e.whiteLabelUrl}},[t("img",{staticStyle:{border:"none"},attrs:{src:`/getImg?id=${e.whiteLabelLogoId}&size=1&nocache=`,alt:n.goToRave}})]):t("img",{attrs:{src:`/getImg?id=${e.whiteLabelLogoId}&size=1&nocache=`,alt:n.goToRave}})]:e._e(),e._v(" "),t("div",{staticClass:"footer-right-side"},[t("div",{staticClass:"footerPPTermsContainer"},[t("div",{staticClass:"footerPPTerms"},[t("p",[t("a",{attrs:{href:"https://www.motorolasolutions.com/en_us/about/privacy-policy.html",target:"_HELP"}},[e._v(e._s(n.Lang.t("footer.privacyPolicy")))]),e._v("\n                        |\n                        "),t("a",{attrs:{href:"/help/Terms.action",target:"_HELP"}},[e._v(e._s(n.Lang.t("footer.termsOfUse")))]),e._v("\n                        |\n                        "),t("a",{attrs:{href:"https://submit-irm.trustarc.com/services/validation/b00cccf6-c71c-4dd4-ad03-a581b65f808d",target:"_HELP"}},[e._v(e._s(n.Lang.t("footer.californiaPrivacy")))])]),e._v(" "),t("p",{domProps:{innerHTML:e._s(n.copyright)}})])]),e._v(" "),e.isLoggedIn?e._e():t("div",{staticClass:"footerNeedHelp"},[t("a",{attrs:{href:"/help/unauthenticatedHelp.action",target:"_HELP"}},[t("div",{style:{background:"white",padding:"11px",border:"1px solid #757F8F",borderRadius:"9999px",height:"44px"}},[t("div",{style:{display:"flex",gap:"8px",width:"74px",alignItems:"center",justifyContent:"center"}},[t("font-awesome-icon",{style:{width:"20px",height:"20px"},attrs:{icon:["rave","circle-question"]}}),e._v("\n                            "+e._s(n.Lang.t("common.link.help"))+"\n                        ")],1)])])])])],2):e._e(),e._v(" "),n.uiRefreshEnabled?e._e():t("div",{staticClass:"footerContent"},[t("div",{staticClass:"form-inline-group justify-content-between w-fit"},[t("div",{staticClass:"flex-column"},["number"!=typeof e.whiteLabelLogoId||e.whiteLabelLogoId<=0?t("a",{staticClass:"corp",attrs:{href:"http://ravemobilesafety.com","aria-label":n.goToRave}}
2):e._e(),e._v(" "),"number"==typeof e.whiteLabelLogoId&&e.whiteLabelLogoId>0?[e.whiteLabelUrl?t("a",{attrs:{href:e.whiteLabelUrl}},[t("img",{staticStyle:{border:"none"},attrs:{src:`/getImg?id=${e.whiteLabelLogoId}&size=1&nocache=`,alt:n.goToRave}})]):t("img",{attrs:{src:`/getImg?id=${e.whiteLabelLogoId}&size=1&nocache=`,alt:n.goToRave}})]:e._e(),e._v(" "),t("div",{staticClass:"footerPPTerms"},[t("a",{attrs:{href:"https://www.motorolasolutions.com/en_us/about/privacy-policy.html",target:"_HELP"}},[e._v(e._s(e.$t("footer.privacyPolicy")))]),e._v("\n                    \xa0\xb7\xa0\n                    "),t("a",{attrs:{href:"/help/Terms.action",target:"_HELP"}},[e._v(e._s(e.$t("footer.termsOfUse")))]),e._v("\n                    \xa0\xb7\xa0\n                    "),t("a",{attrs:{href:"https://submit-irm.trustarc.com/services/validation/b00cccf6-c71c-4dd4-ad03-a581b65f808d",target:"_HELP"}},[e._v(e._s(e.$t("footer.californiaPrivacy")))]),e._v(" "),t("br"),e._v(" "),t("div",{domProps:{innerHTML:e._s(n.copyright)}})])],2),e._v(" "),t("div",{staticClass:"footerNeedHelp"},[t("div",[e._v(e._s(e.$t("footer.need.help")))]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"/help/unauthenticatedHelp.action",target:"_HELP"}},[e._v(e._s(e.$t("footer.help2")))])])])])])])])},[],!1,null,null,null).exports)},"9AXY":function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var i=n("L5+t"),o=n("9oYx"),a=n("+cQT"),s=n("EnQL"),r=n.n(s),l=n("JiKY"),c=n("Cpa8");function d(e){return c.A.t(`mgtConsole.mode.${e.replaceAll("_","").toLowerCase()}`)}function u(e){if(null==e||0===e.length)return"";const t=e.split(",").map(e=>c.A.t(`common.lang.${e.replaceAll("-",".").toLowerCase()}`));return t.sort(),t.join(", ")}const p=[{key:"NAME",nameKey:"mgtConsole.alerts.name"},{key:"TYPE",nameKey:"mgtConsole.alerts.type",valueFn:e=>{if(!e)return e;return{STANDARD:c.A.t("mgtConsole.sendAlerts.alerType.standard"),SNAP_SEND:c.A.t("mgtConsole.sendAlerts.alerType.snapSend"),POLLING:c.A.t("mgtConsole.sendAlerts.alerType.polling")}[e]||e}},{key:"CATEGORY",nameKey:"mgtConsole.alerts.template.category.name"},{key:"MODES",nameKey:"mgtConsole.alerts.modes",valueFn:e=>null==e?"":e.split(",").map(e=>d(e)).join(", ")},{key:"DELIVERY_TARGETS",nameKey:"mgtConsole.alert.delivery.targets",valueFn:e=>{var t;if(!e)return e;let n=e.split(","),i="true"===(null===(t=n[2])||void 0===t?void 0:t.toLowerCase())?`, ${c.A.t("mgtConsole.alert.geo.applied")}`:"";return`${c.A.t("mgtConsole.alerts.dashboard.people")}(${n[0]}), ${c.A.t("mgtConsole.alerts.dashboard.lists")}(${n[1]})${i}`}},{key:"TEXT_LANGUAGES",nameKey:"mgtConsole.sendAlerts.lang.languages",valueFn:u},{key:"TEXT_PROFILE",nameKey:"mgtConsole.alert.profile"},{key:"TEXT_MESSAGE_BODY",nameKey:"mgtConsole.alerts.emailAlertSettings.label.messageBody"},{key:"TEXT_MORE_INFO_URL",nameKey:"mgtConsole.alert.text.sms.more.info.message"},{key:"TEXT_MORE_INFO_URL_MESSAGE_BODY",nameFn:e=>`${d(e.mode)} - ${c.A.t("mgtConsole.alert.text.sms.more.info.message")} - ${c.A.t("mgtConsole.alerts.emailAlertSettings.label.messageBody")}`},{key:"EMAIL_LANGUAGES",nameKey:"mgtConsole.sendAlerts.lang.languages",valueFn:u},{key:"EMAIL_PROFILE",nameKey:"mgtConsole.alert.profile"},{key:"EMAIL_SUBJECT",nameKey:"mgtConsole.reports.alertReports.sentReports.subject"},{key:"EMAIL_MESSAGE_TYPE",nameKey:"mgtConsole.alerts.type",valueFn:e=>"TEXT"===e?c.A.t("mgtConsole.alerts.emailAlertSettings.label.plainText"):c.A.t("mgtConsole.alerts.emailAlertSettings.label.html")},{key:"EMAIL_MESSAGE_BODY",nameKey:"mgtConsole.alerts.emailAlertSettings.label.messageBody"},{key:"EMAIL_ATTACHMENTS",nameKey:"mgtConsole.alerts.emailAlertSettings.preview.attachments"},{key:"VOICE_LANGUAGES",nameKey:"mgtConsole.sendAlerts.lang.languages",valueFn:u},{key:"VOICE_FORMAT",nameKey:"mgtConsole.alert.voice.format"},{key:"VOICE_TTS_TEXT",nameKey:"mgtConsole.alert.enter.text.and.message"},{key:"VOICE_PROFILE",nameKey:"mgtConsole.alert.profile"},{key:"VOICE_NOTES_SCRIPT",nameKey:"mgtConsole.alert.voice.notes.script"},{key:"VOICE_MESSAGE_RECORDED",nameKey:"mgtConsole.alert.voice.message.recorded.no.lang"},{key:"VOICE_CALLED_PARTY_RESPONSES",nameKey:"mgtConsole.alert.voice.manage.call"},{key:"RSS_CHANNELS",nameKey:"mgtConsole.alerts.channels"},{key:"RSS_CHANNEL_LINK",nameKey:"mgtConsole.review.send.rss.link"},{key:"RSS_CHANNEL_DESCRIPTION",nameKey:"mgtConsole.review.send.rss.description"},{key:"RSS_CHANNEL_IMAGE_URL",nameKey:"mgtConsole.review.send.rss.image.url"},{key:"ALERTUS_PROFILE",nameKey:"mgtConsole.alert.profile"},{key:"ALERTUS_MESSAGE",nameKey:"mgtConsole.alert.message"},{key:"ALERTUS_DURATION",nameKey:"mgtConsole.alert.alertus.alarm.duration.label",valueFn:e=>{if(null==e)return"";const t=parseInt(e);if(Number.isNaN(t))return"";const n=Math.floor(t/6e4),i=Math.floor(n/60),o=n%60;return`${Math.floor(i/10)}${i%10}:${Math.floor(o/10)}${o%10}`}},{key:"X_PROFILES",nameKey:"mgtConsole.alerts.profiles"},{key:"X_PROFILE_MESSAGE",nameKey:"mgtConsole.alerts.emailAlertSettings.label.message"},{key:"FACEBOOK_PROFILES",nameKey:"mgtConsole.alerts.profiles"},{key:"FACEBOOK_PROFILE_MESSAGE",nameKey:"mgtConsole.alert.facebook.message"},{key:"DESKTOP_PROFILE",nameKey:"mgtConsole.alert.profile"},{key:"DESKTOP_HEADLINE",nameKey:"mgtConsole.alerts.desktop.label.title"},{key:"DESKTOP_MESSAGE_BODY",nameKey:"mgtConsole.alerts.desktop.label.messageBody"},{key:"CAP_PROFILES",nameKey:"mgtConsole.alerts.profiles"},{key:"CAP_PROFILE_EVENT",nameKey:"mgtConsole.review.send.cap.event"},{key:"CAP_PROFILE_HEADLINE",nameKey:"mgtConsole.review.send.cap.headline"},{key:"CAP_PROFILE_DESCRIPTION",nameKey:"mgtConsole.review.send.cap.description"},{key:"CAP_PROFILE_INSTRUCTION",nameKey:"mgtConsole.review.send.cap.instruction"},{key:"IPAWS_PROFILE",nameKey:"mgtConsole.alert.profile"},{key:"IPAWS_EVENT_PARAMETERS",nameKey:"mgtConsole.alerts.IPAWS.eventParameters"},{key:"IPAWS_MESSAGE_CONTENT",nameKey:"mgtConsole.alert.details.message.content"}
2,{key:"GUARDIAN_PUSH_NOTIFICATION",nameKey:"mgtConsole.alerts.smartAlertSettings.label.pushNotification"},{key:"GUARDIAN_MESSAGE_BODY",nameKey:"mgtConsole.alerts.emailAlertSettings.label.messageBody"},{key:"MOBILE_PUSH_NOTIFICATION"},{key:"MOBILE_MESSAGE_BODY"},{key:"SMART911_PUSH_NOTIFICATION"},{key:"SMART911_MESSAGE_BODY"}],h=e=>{const t=p.find(t=>t.key===e.field);if(null==t)return e.field;const{nameKey:n}=t;if(null!=n){const{mode:t,channelName:i,profileName:o}=e;return null!=t?null!=i?`${d(t)} - ${i} - ${c.A.t(n)}`:null!=o?`${d(t)} - ${o} - ${c.A.t(n)}`:`${d(t)} - ${c.A.t(n)}`:c.A.t(n)}return null!=t&&t.nameFn?t.nameFn(e):e.field};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g={__name:"EntityAuditLog",props:{modalData:{type:Object,required:!0},localEvents:{type:Object,required:!0}},setup(e){const t=e,n=new o.A,i=(0,a.computed)(()=>t.modalData.entityId||t.modalData.templateId),s=(0,a.computed)(()=>t.modalData.entityName||t.modalData.templateName),d=(0,a.computed)(()=>t.modalData.entityType||"template"),u=(0,a.computed)(()=>t.modalData.objectType||"ALERT_TEMPLATE"),m=(0,a.ref)(null),g=(0,a.ref)([]),v=(0,a.ref)(1),y=(0,a.ref)(!1),b=(0,a.ref)(!0),C=(0,a.ref)(!0),_=(0,a.ref)(null);let w=null;const E=(0,a.ref)(null);function A(e){return c.A.t(`mgtConsole.auditlog.${u.value.replaceAll("_","").toLowerCase()}.${e.action.toLowerCase()}`,[e.userEmail,s.value])}const S=e=>{const t=(e=>{const t=p.find(t=>t.key===e);return(null==t?void 0:t.valueFn)||null})(e.field),n=e=>t&&e?t(e):e;return f(f({},e),{},{fieldEnum:e.field,field:e.fieldDisplayName||h(e),before:n(e.before),after:n(e.after)})},x=e=>{const t=(e.details||[]).map(S);return t.sort((e,t)=>{if(null!=e.mode&&null==t.mode)return 1;if(null!=t.mode&&null==e.mode)return-1;if(null==e.mode&&null==t.mode){const n=p.findIndex(t=>t.key===e.fieldEnum),i=p.findIndex(e=>e.key===t.fieldEnum);return null==n||null==i?-1:n-i}if(e.mode===t.mode){if(null!=e.channelName&&null!=t.channelName&&e.channelName!==t.channelName)return e.channelName<t.channelName?-1:1;if(null!=e.profileName&&null!=t.profileName&&e.profileName!==t.profileName)return e.profileName<t.profileName?-1:1}const n=p.findIndex(t=>t.key===e.fieldEnum),i=p.findIndex(e=>e.key===t.fieldEnum);return null==n||null==i?-1:n-i}),f(f({},e),{},{description:A(e),changes:t})},T=(e,t)=>{e&&(t?e.classList.remove("disabled"):e.classList.add("disabled"))},M=async()=>{if(y.value||!b.value)return;y.value=!0,_.value=null;const e=document.querySelector("button.btnJ2.green[confirm-btn]");try{let t,o=[];t=null!=w?await n.send({url:w,type:"GET",ajaxAlias:"fetchAuditLogs"}):await n.send({url:"/managementConsole/alerts/auditLogEntity.action",type:"GET",ajaxAlias:"fetchAuditLogs",data:{objectType:u.value,id:i.value}});const a=t&&t.entries?t.entries:[];w=t.nextPage,o=a.map(x),null==w&&(b.value=!1),T(e,o.length>0);for(let e=0;e<o.length;++e)g.value.push(f(f({},o[e]),{},{expanded:0===g.value.length&&0===e}));v.value++}catch(t){console.error("Failed to fetch audit logs:",t),_.value="Failed to load history. Please try again later.",e&&(e.disabled=!0)}finally{y.value=!1,C.value=!1}},L=()=>{const e=m.value;e&&(E.value=(0,l.A)(()=>{const{scrollTop:t,scrollHeight:n,clientHeight:i}=e;t+i>=n-150&&M()},200),e.addEventListener("scroll",E.value))},O=()=>{const e=m.value;e&&E.value&&e.removeEventListener("scroll",E.value)},k=()=>{if(0===g.value.length)return void t.localEvents.$emit("disable-export-button");const e=`/managementConsole/alerts/exportAuditEntity.action?objectType=${u.value}&id=${i.value}`,n=document.createElement("a");n.href=e,n.setAttribute("download",""),document.body.appendChild(n),n.click(),document.body.removeChild(n)};return(0,a.onMounted)(()=>{M(),L(),t.localEvents.$on("export-to-csv",k)}),(0,a.onBeforeUnmount)(()=>{O(),t.localEvents.$off("export-to-csv",k)}
2),{__sfc:!0,props:t,serviceBase:n,entityId:i,entityName:s,entityType:d,objectType:u,timeline:m,auditLogs:g,page:v,isLoading:y,hasMore:b,isFirstLoad:C,error:_,nextPage:w,scrollHandler:E,formatDate:e=>r()(e).format("MM/DD/YYYY hh:mm A"),toggleEvent:e=>{e.expanded=!e.expanded},getDescription:A,transformChange:S,transformLog:x,updateExportButton:T,loadMore:M,setupInfiniteScroll:L,removeInfiniteScroll:O,exportToCSV:k,Lang:c.A}}},v=(n("VZIi"),(0,n("KHd+").A)(g,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"audit-log-container"},[t("div",{ref:"timeline",staticClass:"timeline"},[e._l(n.auditLogs,function(i,o){return t("div",{key:i.id,staticClass:"timeline-item",class:{"is-last":!n.hasMore&&o===n.auditLogs.length-1}},[t("div",{staticClass:"timeline-marker",class:{active:i.expanded}}),e._v(" "),t("div",{staticClass:"timeline-content"},[t("div",{staticClass:"timeline-header",on:{click:function(e){return n.toggleEvent(i)}}},[t("div",{staticClass:"timeline-info"},[t("div",{staticClass:"timeline-date"},[e._v(e._s(n.formatDate(i.timestamp)))]),e._v(" "),t("div",{staticClass:"timeline-actor",domProps:{innerHTML:e._s(i.description)}})]),e._v(" "),t("div",{staticClass:"timeline-actions"},[t("font-awesome-icon",{attrs:{icon:["fas",i.expanded?"fa-chevron-up":"fa-chevron-down"]}})],1)]),e._v(" "),t("transition",{attrs:{name:"fade"}},[i.expanded?t("div",{staticClass:"timeline-details"},[t("table",{staticClass:"table table-sm audit-details-table"},[t("thead",[t("tr",[t("th",{staticClass:"w-250"},[e._v("What was changed")]),e._v(" "),t("th",{staticClass:"w-250"},[e._v("Before")]),e._v(" "),t("th",{staticClass:"w-250"},[e._v("After")])])]),e._v(" "),t("tbody",e._l(i.changes,function(i,o){return t("tr",{key:o},[t("td",[e._v(e._s(i.field))]),e._v(" "),i.omitValue&&null!=i.before?t("td",[e._v(e._s(n.Lang.t("mgtConsole.auditlog.omitted")))]):t("td",{staticClass:"text-muted strike-before-value"},[e._v(e._s(i.before||""))]),e._v(" "),i.omitValue&&null!=i.after?t("td",[e._v(e._s(n.Lang.t("mgtConsole.auditlog.omitted")))]):t("td",[t("strong",[e._v(e._s(i.after||""))])])])}),0)])]):e._e()])],1)])}),e._v(" "),n.isLoading&&!n.isFirstLoad&&n.hasMore&&n.auditLogs.length>0?t("div",{key:"loading-more",staticClass:"text-center p-3"},[t("i",{staticClass:"fas fa-spinner fa-spin"}),e._v(" \n            Loading more history...\n        ")]):e._e(),e._v(" "),n.error?t("div",{key:"error-msg",staticClass:"alert alert-danger text-center m-3"},[t("i",{staticClass:"fas fa-exclamation-triangle mr-1"}),e._v(" "+e._s(n.error)+"\n        ")]):e._e(),e._v(" "),n.isLoading||n.error||0!==n.auditLogs.length||n.isFirstLoad?e._e():t("div",{key:"empty-msg",staticClass:"p-5 text-muted d-flex align-items-center justify-content-center"},[t("i",{staticClass:"fas fa-history mr-3"}),e._v("\n            No audit history to show for this "+e._s(n.entityType||"entity")+".\n        ")]),e._v(" "),!n.isLoading&&!n.hasMore&&n.auditLogs.length>0?t("div",{key:"end-of-results",staticClass:"text-center p-3 text-muted small"},[e._v("\n            "+e._s(n.Lang.t("mgtConsole.auditlog.showmore.export.text"))+"\n        ")]):e._e()],2)])},[],!1,null,"6f789cf0",null).exports)},"3Op4":function(e,t,n){"use strict";n.d(t,{A:function(){return V}});var i=n("kPKb"),o=n("UDvT"),a=n("Cpa8"),s=n("PcWQ"),r={name:"AutoComplete",props:{id:{type:String,required:!0},options:{type:Object,required:!0}},inject:["raveMap","localEvents"],data(){return{autoCompleteClass:this.options.mapOpenLayersEnabled?"ib2 r4 w-200":"ib2 r4 w-200 m-y-10",autoCompleteVisible:!1,hideCenterButton:!1}},mounted(){let e=s(this.$el).find("input[map-auto-complete]");this.localEvents.$on(i.sV.MAP_LOADED,t=>{google.maps.places&&(this.autoCompleteVisible=!0,this.autocomplete=new google.maps.places.Autocomplete(e[0]),this.options.mapOpenLayersEnabled?(e.show(),this.setAutoCompleteListener(t)):(t.controls[google.maps.ControlPosition.TOP_LEFT].push(e[0]),this.autocomplete.bindTo("bounds",t),this.setAutoCompleteListener(t),setTimeout(()=>e.show(),5)))}),this.localEvents.$on(i.sV.RESET_MAP,()=>{this.raveMap.removeMarker(this.marker)})},destroyed(){this.localEvents.$off(i.sV.MAP_LOADED)},methods:{showAutoComplete(){this.options.shapeMenu&&this.options.shapeMenu.length&&(this.autoCompleteVisible=!this.autoCompleteVisible,this.shapeMenuVisible=!this.shapeMenuVisible,this.shapeOrCenterTitle=this.autoCompleteVisible?"Shapes":"Center")},setAutoCompleteListener:function(e){const t=t=>
2{t.geometry.viewport?this.options.mapOpenLayersEnabled?e.addMarker(t.geometry):e.fitBounds(t.geometry.viewport):(e.setCenter(t.geometry.location),e.setZoom(17));let n="";t.address_components&&(n=[t.address_components[0]&&t.address_components[0].short_name||"",t.address_components[1]&&t.address_components[1].short_name||"",t.address_components[2]&&t.address_components[2].short_name||""].join(" ")),this.marker=this.raveMap.addMarker({color1:"#ff3300",location:t.geometry.location,contentData:n,name:n,contentFormatter:function(e){return e}})};this.autocomplete.addListener("place_changed",()=>{this.marker&&this.raveMap.removeMarker(this.marker);let e=this.autocomplete.getPlace();e.geometry?t.call(this,e):this.findFirstAvailableAutocomplete().done(function(e){e.geometry?t.call(this,e):o.Ay.alert(a.A.t("mgtConsole.map.maps"),s("<div/>").text(a.A.t("mgtConsole.map.placeNotFound")))})})},findFirstAvailableAutocomplete(){let e=s(".pac-container:last .pac-item:first").text();e||(e=s(`#${this.id}autoCompleteInput`).val());let t=new s.Deferred;return(new google.maps.Geocoder).geocode({address:e},(n,i)=>{i==google.maps.GeocoderStatus.OK?(s(".pac-container .pac-item:first").addClass("pac-selected"),s(`#${this.id}autoCompleteInput`).val(e),t.resolve(n[0])):t.resolve({name:s(`#${this.id}autoCompleteInput`).val()})}),t.promise()},findPlaces(e){if(!google.maps.places)throw Error("Places API is not turned on or isn't loaded.");this.autoCompleteService=this.autoCompleteService||new google.maps.places.AutocompleteService;var t=s.Deferred();return this.autoCompleteService.getQueryPredictions({input:e},function(e,n){t.resolve(e,n)}),t.promise()}}},l=n("KHd+"),c=(0,l.A)(r,function(){var e=this,t=e._self._c;return e.options.mapOpenLayersEnabled?t("div",{staticClass:"newAutocompleteWrapper inputGroup w-fit",attrs:{"map-autocomplete-shape":""}},[t("span",{staticClass:"inputGroupText"},[t("font-awesome-icon",{attrs:{icon:["fas","search"]}})],1),e._v(" "),t("input",{staticClass:"formControl",attrs:{"map-auto-complete":"",id:e.id+"autoCompleteInput"}})]):t("div",{staticClass:"ib2 hide",attrs:{"map-autocomplete-shape":""}},[t("input",{class:e.autoCompleteClass,attrs:{"map-auto-complete":"",id:e.id+"autoCompleteInput"}})])},[],!1,null,null,null).exports,d=n("mIew"),u=n("rT2p"),p=n("wouM"),h=n.n(p),m=(n("2Fom"),n("PcWQ"));function f(e){let t=[];return e.forEach(e=>{-1===t.findIndex(t=>t.id===e.id)&&t.push(e)}),t}var g={name:"StoredShapes",components:{FontAwesomeIcon:u.gc},directives:{clickOutside:h().directive},props:{id:{type:String,required:!0},options:{type:Object,required:!0},dropdownType:{type:String}},inject:["raveMap","localEvents"],data(){let e=[];return this.options.selectedShapes.forEach(t=>{-1===e.findIndex(e=>e.id===t.id)&&e.push(t)}),{shapeMenu:this.options.shapeMenu,pickedShape:d.A.NOTHING,pickedShapes:[],referenceLayers:this.options.referenceLayers,conf:{width:"100%"},shapeMenuVisible:!!(this.options.shapeMenu&&this.options.shapeMenu.length>0),referenceLayersVisible:!!(this.options.referenceLayers&&this.options.referenceLayers.length>0),hideCenterButton:!1,shapeOrCenterTitle:"Center",selectedShapeItems:[],selectedLayerItems:[],toggleDropdown:!1,toggleLayerDropdown:!1,selectedShapeNamesForUI:f(this.options.selectedShapes||[]),selectedLayerNamesForUI:[],something:null,maxShapesAllowed:this.options.maxShapesAllowed,maxPointsAllowed:this.options.maxPointsAllowed,geoServicesEnabled:this.options.geoServicesEnabled,optionsState:this.options}},watch:{selectedShapeNamesForUI(e){this.optionsState.selectedShapes=e,this.optionsState.pickedShape=e.map(e=>e.id)}},mounted(){this.shapeMenuVisible||(this.hideCenterButton=!0),this.$root.$on("clearSelectedOptionsOnDraw",()=>{this.clearMapAndAttributes()}),this.localEvents.$on("updateSelectedShapes",()=>{this.setShapesOnLoad()}),this.setShapesOnLoad()},methods:{addRemoveSelectedShapes(e,t){this.$root.$emit("emptyInteractions");let n=this.pickedShapes.indexOf(e),i=this.selectedShapeNamesForUI.findIndex(t=>t.id===e);if(n>-1)this.pickedShapes.splice(n,1);else{if(!this.raveMap.isShapesOrPointsAllowed())return;this.pickedShapes.push(e)}i>-1?this.selectedShapeNamesForUI.splice(i,1):this.selectedShapeNamesForUI.push({id:e,name:t}),this.switchShape()},canAddMoreShapes(e){let t=!0;return this.raveMap.getMapObjects().length>=this.maxShapesAllowed&&(o.Ay.warning(Rave.t("mgtConsole.system.category.warning"),Rave.t("mgtConsole.map.restriction.length",[this.maxShapesAllowed]),Rave.t("mgtConsole.sentAlert.ok")),t=!1),this.getTotalPointsSelected(e)>=this.maxPointsAllowed&&(o.Ay.warning(Rave.t("mgtConsole.system.category.warning"),Rave.t("mgtConsole.map.restriction.points",[this.maxPointsAllowed]),Rave.t("mgtConsole.sentAlert.ok")),t=!1),t},getTotalPointsSelected(e){let t=this.getPointsInShape(e);
2return this.optionsState.selectedShapes.forEach(e=>{t+=this.getPointsInShape(e.id)}),t},getPointsInShape(e){let t=0;return this.shapeMenu.forEach(n=>{if(n.id===e){var i=d.A.parseShapeFromBackendFormat(n.shape);i&&(t=i.length)}}),t},addRemoveSelectedLayers(e){m("#mapVeilLoader").show();let t=this.optionsState.pickedLayer.indexOf(e.id),n=this.selectedLayerNamesForUI.findIndex(t=>t.id===e.id);if(t>-1?this.optionsState.pickedLayer.splice(t,1):this.optionsState.pickedLayer.push(e.id),n>-1?this.selectedLayerNamesForUI.splice(n,1):this.selectedLayerNamesForUI.push({id:e.id,name:e.name,filePath:e.filePath}),this.optionsState.pickedLayer.length<=0||1===this.optionsState.pickedLayer.length&&this.optionsState.pickedLayer[0]===d.A.NOTHING)return this.selectedLayerItems.splice(0),void(this.optionsState.pickedLayer!==d.A.NOTHING&&this.raveMap.clear(null,null,!0));e.url?(this.raveMap.addReferenceLayer(e),m("#mapVeilLoader").hide()):this.raveMap.loadReferenceLayer(e)},clearMapAndAttributes(){this.selectedShapeNamesForUI.map(e=>{this.raveMap.drawingLayer&&this.raveMap.drawingLayer.getSource().getFeatures().map(t=>{e.name===t.shapeText&&this.raveMap.drawingLayer.getSource().removeFeature(t)})}),this.pickedShape=d.A.NOTHING,this.pickedShapes.splice(0),this.selectedShapeItems.splice(0),this.selectedShapeNamesForUI.splice(0),this.optionsState.mapOpenLayersEnabled?this.optionsState.pickedShape.splice(0):(this.optionsState.pickedShape=d.A.NOTHING,this.raveMap.clear(null,null,!0))},clearReferenceLayerMapAndAttributes(e,t){let n=this;m("#mapVeilLoader").show(),m("#featurePopup").hide(),this.selectedLayerItems.splice(0),this.selectedLayerNamesForUI=this.selectedLayerNamesForUI.filter(e=>e.id!==t),this.optionsState.pickedLayer=this.optionsState.pickedLayer.filter(e=>e!==t),this.raveMap._map.getLayers().getArray().filter(t=>{t&&t.getProperties().name===e&&(n.raveMap._map.removeLayer(t),m("#mapVeilLoader").hide(),n.raveMap.highlight&&(n.raveMap.gridOverlay.getSource().removeFeature(n.raveMap.highlight),n.raveMap.highlight=void 0))})},closeMenu(){this.toggleDropdown=!1,this.shapeMenu=this.optionsState.shapeMenu},closereferenceLayers(){this.toggleLayerDropdown=!1,this.referenceLayers=this.optionsState.referenceLayers},checkPickedShapesGoogleMaps(e){let t;return this.pickedShape&&this.pickedShape!==d.A.NOTHING?(t=[this.shapeMenu.find(t=>(this.raveMap.clear(null,null,e),this.pickedShape==t.id))],t):(this.selectedShapeItems.splice(0),void this.raveMap.clear(null,null,e))},checkPickedShapesOpenLayersMaps(){let e;return(!this.pickedShapes||this.pickedShapes.length<=0||""===this.pickedShapes[0]||this.pickedShapes[0]===d.A.NOTHING)&&this.selectedShapeItems.splice(0),e=this.optionsState.shapeMenu.filter(e=>this.pickedShapes.includes(e.id)&&e),e},shapeOnMap(e){return this.raveMap.drawingLayer.getSource().getFeatures().filter(t=>t.shapeText===e).length>0},toggleStoredShapesMenu(){this.toggleDropdown=!this.toggleDropdown,this.shapeMenu=this.optionsState.shapeMenu},togglereferenceLayers(){this.toggleLayerDropdown=!this.toggleLayerDropdown,this.referenceLayers=this.optionsState.referenceLayers},searchShapesFromList(e){""!==e.target.value?this.shapeMenu=this.optionsState.shapeMenu.filter(t=>t.name.toLowerCase().includes(e.target.value.toLowerCase())):this.shapeMenu=this.optionsState.shapeMenu},searchLayersFromList(e){""!==e.target.value?this.referenceLayers=this.referenceLayers.filter(t=>t.name.toLowerCase().includes(e.target.value.toLowerCase())):this.referenceLayers=this.optionsState.referenceLayers},setShapesOnLoad(){let e=f(this.optionsState.selectedShapes);this.selectedShapeNamesForUI=e.map(e=>({id:e.id,name:e.name})),this.pickedShapes=e.map(e=>e.id),this.pickedShape=this.pickedShapes.length>0?this.pickedShapes[0]:d.A.NOTHING},switchShape(){let e;e=this.optionsState.mapOpenLayersEnabled?this.checkPickedShapesOpenLayersMaps():this.checkPickedShapesGoogleMaps(true),e&&(this.selectedShapeItems=e,this.optionsState.mapOpenLayersEnabled?(e.reverse().every(e=>!!this.shapeOnMap(e.name)||this.drawShape(e)),this.raveMap.drawingLayer.getSource().getFeatures().forEach(e=>{null!==e.shapeText&&0===this.selectedShapeItems.filter(t=>t.name===e.shapeText).length&&this.raveMap.drawingLayer.getSource().removeFeature
2(e)}),this.raveMap.fitAllShapes()):(e=this.getTheLastPickedItem(e),this.drawShape(e.pop())))},getTheLastPickedItem:function(e){let t=/[\d][,\/]/g;if(e.length>1){let n=this.raveMap.getMapObjects().map(e=>e.polygon.replace(/\s+/g,"").replace(t,""));e=e.filter(e=>!e.geoFilters.some(e=>n.includes(e.shape.replace(/\s+/g,"").replace(t,""))))}return e},drawShape:function(e){if(e){let t={};e.geoFilters.forEach(n=>{void 0!==t&&(t=this.raveMap.drawShape({polygon:d.A.parseShapeFromBackendFormat(n.shape),radius:n.radius||0,fill:n.fill||d.A.RECIPIENTS_FILL,stroke:n.stroke||d.A.RECIPIENTS_STROKE,shapeText:e.name},!0))}),void 0===t?this.addRemoveSelectedShapes(e.id,e.name):this.raveMap.fitToShape(t)}e?i.sV&&this.localEvents.$emit(i.sV.SHAPE_PICKED,e):this.optionsState.allowCreateShape&&(this.raveMap.startPolygonDraw(),this.localEvents.$emit(i.sV.CREATE_SHAPE_CLICKED))}}},v=(0,l.A)(g,function(){var e=this,t=e._self._c;return"layerDropdown"!==e.dropdownType?t("div",[e.optionsState.mapOpenLayersEnabled?t("div",[e.shapeMenuVisible?t("div",{staticClass:"ib2 w-fit storedshapeMenu",attrs:{"shape-menu":""}},[t("div",{staticClass:"d-flex align-items-center storedshapebutton",on:{click:function(t){return e.toggleStoredShapesMenu()}}},[t("button",{staticClass:"w-fit noStyle nobackground ml-5 text-uppercase btnFont"},[e._v("\n          "+e._s(e.$t("mgtConsole.raveMap.loadStoreShape"))+" "+e._s(e.selectedShapeNamesForUI.length>0?`(${e.selectedShapeNamesForUI.length})`:"")+"\n        ")]),e._v(" "),0===e.selectedShapeNamesForUI.length?t("font-awesome-icon",{staticClass:"iconCls iconSize",attrs:{icon:["fas",e.toggleDropdown?"caret-up":"caret-down"]}}):t("font-awesome-icon",{staticClass:"iconCls",attrs:{icon:["fas","times-circle"]},on:{click:function(t){return e.clearMapAndAttributes()}}})],1),e._v(" "),e.toggleDropdown?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"dropdownMenuShapes"},[t("div",{staticClass:"m-4 sticky-top"},[t("input",{staticClass:"w-fit r4",attrs:{placeholder:e.$t("mgtConsole.lists.broadcast.listShapes.search")},on:{input:e.searchShapesFromList}}),e._v(" "),t("button",{staticClass:"searchIconPos"},[t("font-awesome-icon",{attrs:{icon:["fas","search"]}})],1)]),e._v(" "),e.optionsState.allowCreateShape?t("div",{attrs:{value:"CREATE_NEW"}},[e._v(e._s(e.$t("mgtConsole.raveMap.newShape")))]):e._e(),e._v(" "),e.selectedShapeNamesForUI.length>0?t("div",[e._l(e.selectedShapeNamesForUI,function(n){return t("div",{key:n.id,staticClass:"d-flex align-items-center mt-3 mb-3",attrs:{value:n.id},on:{click:function(t){return e.addRemoveSelectedShapes(n.id,n.name)}}},[e.pickedShapes.includes(n.id)?t("font-awesome-icon",{staticClass:"iconCls iconSize iconSizeActive",attrs:{icon:["fas","check-square"]}}):e._e(),e._v(" "),t("span",[e._v(e._s(n.name))])],1)}),e._v(" "),t("hr")],2):e._e(),e._v(" "),e._l(e.shapeMenu,function(n){return t("div",{key:n.id,attrs:{value:n.id},on:{click:function(t){return e.addRemoveSelectedShapes(n.id,n.name)}}},[e.pickedShapes.includes(n.id)?e._e():t("div",{staticClass:"d-flex align-items-center mt-3 mb-3"},[t("font-awesome-icon",{staticClass:"iconCls iconSize",attrs:{icon:["far","square"]}}),e._v(" "),t("span",[e._v(e._s(n.name))])],1)])})],2):e._e()]):e._e()]):t("div",[e.shapeMenuVisible?t("div",{staticClass:"ib2 w-fit",attrs:{"shape-menu":""}},[t("select2",{attrs:{id:"' + self.elId + '_shapeMenu",config:e.conf},on:{input:function(t){return e.switchShape()}},model:{value:e.pickedShape,callback:function(t){e.pickedShape=t},expression:"pickedShape"}},[t("option",{attrs:{value:"NOTHING"}},[e._v(e._s(e.$t("mgtConsole.raveMap.loadStoreShape")))]),e._v(" "),e.optionsState.allowCreateShape?t("option",{attrs:{value:"CREATE_NEW"}},[e._v(e._s(e.$t("mgtConsole.raveMap.newShape")))]):e._e(),e._v(" "),e._l(e.shapeMenu,function(n){return t("option",{key:n.id,domProps:{value:n.id}},[e._v(e._s(n.name))])})],2)],1):e._e()])]):t("div",[e.referenceLayersVisible?t("div",{staticClass:"ib2 w-fit storedshapeMenu",attrs:{"layer-menu":""}},[t("div",{staticClass:"d-flex align-items-center storedshapebutton",on:{click:function(t){return e.togglereferenceLayers()}}},[t("button",{staticClass:"w-fit noStyle nobackground ml-5 text-uppercase btnFont"},[e._v("\n          "+e._s(e.$t("mgtConsole.map.layers.title"))+" "+e._s(e.selectedLayerNamesForUI.length>0?`(${e.selectedLayerNamesForUI.length})`:"")+"\n        ")]),e._v(" "),t("font-awesome-icon",{staticClass:"iconCls iconSize",attrs:{icon:["fas",e.toggleLayerDropdown?"caret-up":"caret-down"]}})],1),e._v(" "),e.toggleLayerDropdown?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closereferenceLayers,expression:"closereferenceLayers"}],staticClass:"dropdownMenuShapes"},[t("div",{staticClass:"m-4"},[t("input",{staticClass:"w-fit r4",attrs:{placeholder:e.$t("mgtConsole.lists.broadcast.listShapes.search")},on:{input:e.searchLayersFromList}}),e._v(" "),t("button",{staticClass:"searchIconPos"},[t("font-awesome-icon",{attrs:{icon:["fas","search"]}})],1)]),e._v(" "),e.selectedLayerNamesForUI.length>0?t("div",[e._l(e.selectedLayerNamesForUI,function(n){return t("div",{key:n.id,staticClass:"d-flex align-items-center mt-3 mb-3",attrs:{value:n.id},on:{click:function(t){return e.clearReferenceLayerMapAndAttributes(n.name,n.id)}}}
2,[e.optionsState.pickedLayer.includes(n.id)?t("font-awesome-icon",{staticClass:"iconCls iconSize iconSizeActive",attrs:{icon:["fas","check-square"]}}):e._e(),e._v(" "),t("span",[e._v(e._s(n.name))])],1)}),e._v(" "),t("hr")],2):e._e(),e._v(" "),e._l(e.referenceLayers,function(n){return t("div",{key:n.id,attrs:{value:n.id},on:{click:function(t){return e.addRemoveSelectedLayers(n)}}},[e.optionsState.pickedLayer.includes(n.id)?e._e():t("div",{staticClass:"d-flex align-items-center mt-3 mb-3"},[t("font-awesome-icon",{staticClass:"iconCls iconSize",attrs:{icon:["far","square"]}}),e._v(" "),t("span",[e._v(e._s(n.name))])],1)])})],2):e._e()]):e._e()])},[],!1,null,null,null).exports,y=n("nWPM"),b=n("PcWQ"),C={name:"MapToolbar",components:{AutoComplete:c,StoredShapes:v,FontAwesomeIcon:u.gc},directives:{clickOutside:h().directive},props:{id:{type:String,required:!0},options:{type:Object,required:!0}},inject:["raveMap","localEvents"],data(){return{baseMapToggle:!0,currentShape:"",fullSize:!1,referenceLayersVisible:!!(this.options.referenceLayers&&this.options.referenceLayers.length>0),gridReferenceEnabled:!1,paletteColor:"#ff9900",showAdvancedTools:!1,mapOpenLayersEnabled:this.raveMap instanceof y.Ay,selectedFeatureName:"",moreMobileOn:!1,moreSelectedOption:"searchLocation",i18n:{title:a.A.t("mgtConsole.map.title"),draw:a.A.t("mgtConsole.map.draw"),circle:a.A.t("mgtConsole.map.circle"),radius:a.A.t("mgtConsole.map.radius"),clear:a.A.t("common.buttonLabel.clear"),advancedTools:a.A.t("mgtConsole.map.advancedTools"),traffic:a.A.t("mgtConsole.map.traffic"),bicyclePaths:a.A.t("mgtConsole.map.bicyclePaths"),latLng:a.A.t("mgtConsole.map.latLng"),cancel:a.A.t("common.buttonLabel.cancel"),save:a.A.t("common.buttonLabel.save"),deleteShape:a.A.t("mgtConsole.map.delete.shape"),titleTxt:a.A.t("mgtConsole.map.shape.name"),placeholderTxt:a.A.t("mgtConsole.map.shape.placeholder"),zoomIn:a.A.t("mgtConsole.map.zoom.in"),zoomOut:a.A.t("mgtConsole.map.zoom.out"),fullSize:a.A.t("mgtConsole.map.zoom.fullSize"),mapLayersTitle:a.A.t("mgtConsole.map.baselayers.title"),street:a.A.t("mgtConsole.map.baselayer.street"),satellite:a.A.t("mgtConsole.map.baselayer.satellite"),hybrid:a.A.t("mgtConsole.map.baselayer.hybrid"),terrain:a.A.t("mgtConsole.map.baselayer.terrain"),searchLocation:a.A.t("mgtConsole.map.mobile.searchlocation"),shapesTxt:a.A.t("mgtConsole.map.mobile.shapes"),LayersTxt:a.A.t("mgtConsole.map.mobile.layers"),drawToolsTxt:a.A.t("mgtConsole.map.mobile.draw.tools")},toggleLayersDropdown:!1,optionsState:this.options}},mounted(){window.addEventListener("resize",this.getScreenSize),document.addEventListener("keydown",e=>{"Delete"!=e.key&&"Backspace"!=e.key||null===self.toEditOrDeleteShapeFeature||this.editOrDeleteDrawnShape("DELETE","")}),document.addEventListener("fullscreenchange",()=>this.escapeFullScreen()),document.addEventListener("webkitfullscreenchange",()=>{this.escapeFullScreen()}),this.$root.$on("emptyInteractions",()=>{this.currentShape=null,this.optionsState.currentShape="",this.raveMap.removeMapInteractionExternally()}),this.optionsState.currentColorPalette||(this.optionsState.currentColorPalette="#ff9900"),this.getScreenSize()},destroyed:function(){b(".cp-color-picker").hide(),this.$destroy()},methods:{clear(){this.$root.$emit("clearSelectedOptionsOnDraw"),(this.optionsState.clearQueryResults||window.clearQueryResults)&&(this.optionsState.clearQueryResults?this.optionsState.clearQueryResults():window.clearQueryResults(),b(this.$el).find("#autoCompleteInput").val(null))},saveMap(){this.raveMap.saveMap()},startPolygonDraw(){this.raveMap.startPolygonDraw()},startCircleDraw(){this.raveMap.startCircleDraw()},raveMapShowBicyclePaths(){this.raveMap.raveMapShowBicyclePaths()},raveMapShowTraffic(){this.raveMap.raveMapShowTraffic()},toggleAdvancedTools(){this.showAdvancedTools=!this.showAdvancedTools,this.$emit("advanced-tools-toggled",this.showAdvancedTools)},toggleLayersMenu(){this.toggleLayersDropdown=!this.toggleLayersDropdown},toggleMoreMobile(){this.moreMobileOn=!this.moreMobileOn},closeMoreMobile(){this.moreMobileOn=!1},getScreenSize(){document.body.clientWidth<=720?this.moreSelectedOption="searchLocation":this.moreSelectedOption="All"},addInteraction(e){if(this.raveMap.isShapesOrPointsAllowed()){if("hand"===e)return this.currentShape=e,void(this.optionsState.currentShape=e);this.currentShape=e,this.optionsState.currentShape=e,"Circle"===e?this.raveMap.startCircleDraw():"Polygon"===e&&this.raveMap.startPolygonDraw()}}
2,openColorPalette(){this.optionsState.mapToolBarWithDrawControls&&this.optionsState.mapOpenLayersEnabled&&this.loadColorPalette(),document.getElementById("fontColorButton"+this.id).click(),this.fullSize&&b(".cp-color-picker").appendTo(".mapWrapper")},loadColorPalette:function(){let e=this;b(this.$el).find("[brandColorInput]").colorPicker({opacity:!1,cssAddon:'{zIndex: "1050px !important"}',renderCallback(t,n){if(!1===n){let t="#"+this.color.colors.HEX;e.paletteColor=t,e.optionsState.currentColorPalette=t,e.optionsState.shapeFillColor=e.paletteColor,e.optionsState.shapeStrokeColor=e.paletteColor,e.raveMap.getShapeStyle(t,t)}}})},toggleSize(){if(this.fullSize=!this.fullSize,b(".cp-color-picker").hide(),b("div > .modal-dialog")[0]?(b("div > .modal-dialog").css({transform:this.fullSize&&"none"}),b("div > .modal-dialog").find("#mt_map").css({height:this.fullSize?1100:400})):b("#mt_map").css({height:this.fullSize?1100:400}),document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),b(".cp-color-picker").appendTo("body");else{let e=b(".mapWrapper").get(0);e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?(e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT),b(".mapWrapper").css({height:"auto"})):e.msRequestFullscreen&&e.msRequestFullscreen(),b(".cp-color-picker").appendTo(".mapWrapper")}Vue.nextTick(()=>{this.raveMap._map.updateSize()})},customZoom(e){this.raveMap.setZoom(this.raveMap.getZoom()+e)},changePaletteColor(){this.paletteColor=null,this.paletteColor=document.getElementById("fontColorButton"+this.id).value},toggleBaseMap(){this.baseMapToggle=!this.baseMapToggle},setBaseLayer(e){this.raveMap.setBaseLayer(e)},editOrDeleteDrawnShape(e,t){this.raveMap.editOrDeleteDrawnShape&&this.raveMap.editOrDeleteDrawnShape(e,t)},showReferenceLayers(){return this.optionsState.referenceLayers&&this.optionsState.referenceLayers.length>0},escapeFullScreen(){document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||(this.fullSize=!1,b(".cp-color-picker").appendTo("body"))}}},_=(0,l.A)(C,function(){var e=this,t=e._self._c;return e.optionsState.mapOpenLayersEnabled?t("div",{staticClass:"mapWrapper",class:{fullSize:e.fullSize},attrs:{id:e.id+"mapWIdget"}},[e._t("default"),e._v(" "),t("div",[t("div",{staticClass:"mapControlsRow"},[e.optionsState.readOnly?e._e():t("auto-complete",{directives:[{name:"show",rawName:"v-show",value:"searchLocation"===e.moreSelectedOption||"All"===e.moreSelectedOption,expression:"moreSelectedOption === 'searchLocation' || moreSelectedOption === 'All'"}],staticClass:"autoComplete",class:{"mr-5":"All"===e.moreSelectedOption},attrs:{id:e.id,options:e.optionsState}}),e._v(" "),e.optionsState.readOnly?e._e():t("stored-shapes",{directives:[{name:"show",rawName:"v-show",value:"StoredShapes"===e.moreSelectedOption||"All"===e.moreSelectedOption,expression:"moreSelectedOption === 'StoredShapes' || moreSelectedOption === 'All'"}],staticClass:"storedShape w-fit",class:{"mr-5":"All"===e.moreSelectedOption},attrs:{id:e.id,options:e.optionsState}}),e._v(" "),e.optionsState.readOnly?e._e():t("stored-shapes",{directives:[{name:"show",rawName:"v-show",value:"StoredLayers"===e.moreSelectedOption||"All"===e.moreSelectedOption,expression:"moreSelectedOption === 'StoredLayers' || moreSelectedOption === 'All'"}],staticClass:"storedShape w-fit",class:{"mr-5":"All"===e.moreSelectedOption},attrs:{id:e.id,options:e.optionsState,dropdownType:"layerDropdown"}}),e._v(" "),t("div",{class:{"mr-5":"All"===e.moreSelectedOption,drawToolsmobile:"DrawTools"===e.moreSelectedOption}},[e.optionsState.mapToolBarWithDrawControls?t("ul",{directives:[{name:"show",rawName:"v-show",value:"DrawTools"===e.moreSelectedOption||"All"===e.moreSelectedOption,expression:"moreSelectedOption === 'DrawTools' || moreSelectedOption === 'All'"}
2],staticClass:"mapControlsA"},[t("li",{staticClass:"drawButton uppercase"},[e._v("\n                        "+e._s(e.i18n.draw)+"\n                    ")]),e._v(" "),t("li",{on:{click:function(t){return e.openColorPalette()}}},[t("font-awesome-icon",{staticClass:"iconCls",style:{color:e.paletteColor},attrs:{icon:["fas","palette"]}}),e._v(" "),t("input",{staticClass:"noStyleAtAll",attrs:{brandColorInput:"",id:"fontColorButton"+e.id,name:"backgroundColor"},domProps:{value:e.paletteColor},on:{change:e.changePaletteColor}})],1),e._v(" "),e.optionsState.showPen?t("li",{class:{active:"LineString"===e.currentShape},on:{click:function(t){return e.addInteraction("LineString",!0)}}},[t("font-awesome-icon",{staticClass:"iconCls pen",class:{selected:"LineString"===e.currentShape},attrs:{icon:["rave","ravePenIcon"]}})],1):e._e(),e._v(" "),t("li",{class:{active:"Circle"===e.optionsState.currentShape},on:{click:function(t){return e.addInteraction("Circle")}}},[t("font-awesome-icon",{staticClass:"iconCls",attrs:{icon:["fas","circle"]}})],1),e._v(" "),t("li",{class:{active:"Polygon"===e.optionsState.currentShape},on:{click:function(t){return e.addInteraction("Polygon")}}},[e._m(0)]),e._v(" "),e.optionsState.showHand?t("li",{class:{active:"hand"===e.optionsState.currentShape},on:{click:function(t){return e.addInteraction("hand")}}},[t("font-awesome-icon",{staticClass:"iconCls",attrs:{icon:["fas","hand-paper"]}})],1):e._e()]):e._e()]),e._v(" "),t("div",{staticClass:"d-none d-md-flex",class:{pushRightSingleItem:e.optionsState.readOnly}},[t("ul",{staticClass:"mapControlsA"},[e.fullSize?t("li",{staticClass:"spacedButton",on:{click:function(t){return e.toggleSize()}}},[t("font-awesome-icon",{attrs:{icon:["fas","compress-alt"]}})],1):t("li",{staticClass:"spacedButton",on:{click:function(t){return e.toggleSize()}}},[t("font-awesome-icon",{attrs:{icon:["fas","expand-alt"]}})],1)])]),e._v(" "),e.optionsState.readOnly?e._e():t("div",{staticClass:"moreBtn"},[t("button",{staticClass:"moreBtn text-uppercase p-r-10 p-l-10",on:{click:function(t){return e.toggleMoreMobile()}}},[t("font-awesome-icon",{staticClass:"fasIcon",attrs:{icon:["fas","ellipsis-v"]}})],1),e._v(" "),e.moreMobileOn?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMoreMobile,expression:"closeMoreMobile"}],staticClass:"moreDropDownStyle"},[t("div",{staticClass:"d-flex align-items-center mt-3 mb-3",on:{click:function(t){e.moreSelectedOption="searchLocation"}}},[t("font-awesome-icon",{staticClass:"iconCls iconSize",class:["searchLocation"===e.moreSelectedOption?"iconSizeActive":""],attrs:{icon:["searchLocation"===e.moreSelectedOption?"fas":"far","searchLocation"===e.moreSelectedOption?"dot-circle":"circle"]}}),e._v("\n                        "+e._s(e.i18n.searchLocation)+"\n                    ")],1),e._v(" "),t("div",{staticClass:"d-flex align-items-center mt-3 mb-3",on:{click:function(t){e.moreSelectedOption="StoredShapes"}}},[t("font-awesome-icon",{staticClass:"iconCls iconSize",class:["StoredShapes"===e.moreSelectedOption?"iconSizeActive":""],attrs:{icon:["StoredShapes"===e.moreSelectedOption?"fas":"far","StoredShapes"===e.moreSelectedOption?"dot-circle":"circle"]}}),e._v("\n                        "+e._s(e.i18n.shapesTxt)+"\n                    ")],1),e._v(" "),e.referenceLayersVisible?t("div",{staticClass:"d-flex align-items-center mt-3 mb-3",on:{click:function(t){e.moreSelectedOption="StoredLayers"}}},[t("font-awesome-icon",{staticClass:"iconCls iconSize",class:["StoredLayers"===e.moreSelectedOption?"iconSizeActive":""],attrs:{icon:["StoredLayers"===e.moreSelectedOption?"fas":"far","StoredLayers"===e.moreSelectedOption?"dot-circle":"circle"]}}),e._v("\n                        "+e._s(e.i18n.LayersTxt)+"\n                    ")],1):e._e(),e._v(" "),t("div",{staticClass:"d-flex align-items-center mt-3 mb-3",on:{click:function(t){e.moreSelectedOption="DrawTools"}}},[t("font-awesome-icon",{staticClass:"iconCls iconSize",class:["DrawTools"===e.moreSelectedOption?"iconSizeActive":""],attrs:{icon:["DrawTools"===e.moreSelectedOption?"fas":"far","DrawTools"===e.moreSelectedOption?"dot-circle":"circle"]}}),e._v("\n                        "+e._s(e.i18n.drawToolsTxt)+"\
2n                    ")],1)]):e._e()])],1)]),e._v(" "),t("ul",{staticClass:"mapControls mapControlsB",class:{active:!e.baseMapToggle}},[e.fullSize?t("li",{staticClass:"spacedButton mb-5 d-md-none",on:{click:function(t){return e.toggleSize()}}},[t("font-awesome-icon",{attrs:{icon:["fas","compress-alt"]}})],1):t("li",{staticClass:"spacedButton mb-5 d-md-none",on:{click:function(t){return e.toggleSize()}}},[t("font-awesome-icon",{attrs:{icon:["fas","expand-alt"]}})],1),e._v(" "),t("li",{attrs:{title:e.i18n.zoomIn}},[t("font-awesome-icon",{staticClass:"fasIcon",attrs:{icon:["far","search-plus"]},on:{click:function(t){return e.customZoom(1)}}})],1),e._v(" "),t("li",{attrs:{title:e.i18n.zoomOut}},[t("font-awesome-icon",{staticClass:"fasIcon reverse",attrs:{icon:["far","search-minus"]},on:{click:function(t){return e.customZoom(-1)}}})],1),e._v(" "),t("li",{staticClass:"mapSelect",attrs:{title:e.i18n.mapLayersTitle},on:{click:function(t){return e.toggleBaseMap()}}},[t("font-awesome-icon",{staticClass:"fasIcon",attrs:{icon:["fas","chevron-left"]}}),e._v(" "),t("font-awesome-icon",{staticClass:"fasIcon",attrs:{icon:["fas","chevron-right"]}})],1),e._v(" "),e.optionsState.allowAdditionalShapes?t("li",{staticClass:"mapToolBarBtn",on:{click:function(t){return e.toggleAdvancedTools()}}},[t("font-awesome-icon",{staticClass:"fasIcon",attrs:{icon:["fas","cog"]}})],1):e._e()]),e._v(" "),e.baseMapToggle?e._e():t("ul",{staticClass:"mapViewsCtrls",class:{active:!e.baseMapToggle},attrs:{id:"mapSelector"}},[t("li",{staticClass:"text-center uppercase",attrs:{title:"STREET"},on:{click:function(t){return e.setBaseLayer("STREET")}}},[t("div",{staticClass:"street_view"}),t("small",{staticClass:"mt-1"},[e._v(e._s(e.i18n.street))])]),e._v(" "),t("li",{staticClass:"text-center uppercase",attrs:{title:"SATELLITE"},on:{click:function(t){return e.setBaseLayer("SATELLITE")}}},[t("div",{staticClass:"satellite_view"}),t("small",{staticClass:"mt-1"},[e._v(e._s(e.i18n.satellite))])]),e._v(" "),t("li",{staticClass:"text-center uppercase",attrs:{title:"HYBRID"},on:{click:function(t){return e.setBaseLayer("HYBRID")}}},[t("div",{staticClass:"hybrid_view"}),t("small",{staticClass:"mt-1"},[e._v(e._s(e.i18n.hybrid))])]),e._v(" "),t("li",{staticClass:"text-center uppercase",attrs:{title:"TERRAIN"},on:{click:function(t){return e.setBaseLayer("TERRAIN")}}},[t("div",{staticClass:"terrain_view"}),t("small",{staticClass:"mt-1"},[e._v(e._s(e.i18n.terrain))])])]),e._v(" "),t("div",{staticClass:"ol-popup",attrs:{id:"labelPopup"+e.id}},[t("div",{staticClass:"d-flex align-items-center justify-content-between mb-5"},[t("h3",[t("strong",[e._v(e._s(e.i18n.titleTxt))])]),e._v(" "),t("button",{staticClass:"btnJ2 red",attrs:{title:e.i18n.deleteShape,id:"popup-closer"},on:{click:function(t){return e.editOrDeleteDrawnShape("DELETE","")}}},[t("font-awesome-icon",{attrs:{icon:["fas","trash"]}})],1)]),e._v(" "),t("div",{attrs:{id:"popup-content"}},[t("div",{staticClass:"d-flex align-items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedFeatureName,expression:"selectedFeatureName"}],staticClass:"r4 w-fit",attrs:{placeholder:e.i18n.placeholderTxt},domProps:{value:e.selectedFeatureName},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.editOrDeleteDrawnShape("EDIT",e.selectedFeatureName)},input:function(t){t.target.composing||(e.selectedFeatureName=t.target.value)}}})])]),e._v(" "),t("div",{staticClass:"popup-footer d-flex align-items-center justify-content-between mt-5"},[t("button",{staticClass:"btn-action secondary",attrs:{id:"popup-closer"},on:{click:function(t){return e.editOrDeleteDrawnShape("EDIT",e.selectedFeatureName)}}},[e._v(e._s(e.i18n.save))]),e._v(" "),t("button",{staticClass:"btn-action default",attrs:{id:"popup-closer"},on:{click:function(t){return e.closePopup()}}},[e._v(" "+e._s(e.i18n.cancel)+" ")])])]),e._v(" "),t("div",{attrs:{id:"markerOverLayPopup"}})],2):t("div",{staticClass:"raveMapWidget",attrs:{id:e.id+"mapWIdget"}},[e.optionsState.titleToolBar?t("div",{staticClass:"raveMapWidgetControlBar1",attrs:{id:e.id+"_raveMapWidgetControlBar1"}},[t("div",{staticStyle:{display:"inline"},attrs:{id:e.id+"_mapWidgetTitle"}},[e._v(e._s(e.i18n.title))]),e._v(" "),t("div",{staticStyle:{float:"right"},attrs:{id:e.id+"_mapWidgetControlBar1ButtonWrapper"}},[t("button",{staticClass:"rmBtn",attrs:{"map-btn-poly":"",id:e.id+"_btnDraw"},on:{click:function(t){return e.startPolygonDraw()}}},[e._v(e._s(e.i18n.draw))]),e._v(" "),t("button",{staticClass:"rmBtn",attrs:{"map-btn-circle":"",id:e.id+"_btnRadius"},on:{click:function(t){return e.startCircleDraw()}}},[e._v(e._s(e.i18n.circle))]),e._v(" "),e.optionsState.parseKmlUrl?t("form",{staticStyle:{float:"left"},attrs:{action:"uploadShapeFile.action",id:e.id+"_theForm",namespace:"/registration",enctype:"multipart/form-data"}},[t("input",{staticStyle:{height:"20px"},attrs:{type:"file",name:"shapeFile",id:"shapeFile"}}
2)]):e._e()])]):e._e(),e._v(" "),e.optionsState.mapToolBar?t("div",{staticClass:"raveMapWidgetControlBar2 form-inline",attrs:{id:e.id+"_raveMapWidgetControlBar2"}},[e.optionsState.mapToolBarWithDrawControls?t("div",{staticClass:"d-flex align-items-center",attrs:{id:e.id+"_mapDrawControls"}},[t("button",{staticClass:"rmBtn rmBtnFirst",attrs:{"map-btn-circle":"",id:e.id+"_btnRadius"},on:{click:function(t){return e.startCircleDraw()}}},[e._v(e._s(e.i18n.radius))]),e._v(" "),t("button",{staticClass:"rmBtn",attrs:{"map-btn-draw":"",id:e.id+"_btnDraw"},on:{click:function(t){return e.startPolygonDraw()}}},[e._v(e._s(e.i18n.draw))]),e._v(" "),t("stored-shapes",{attrs:{id:e.id,options:e.optionsState}}),e._v(" "),t("auto-complete",{attrs:{id:e.id,options:e.optionsState}}),e._v(" "),t("button",{staticClass:"rmBtn",attrs:{"map-btn-clear":"",id:e.id+"_btnClear"},on:{click:function(t){return e.clear()}}},[e._v(e._s(e.i18n.clear))])],1):e._e(),e._v(" "),t("div",{staticClass:"m-l-auto m-r-10 d-flex"},[e.optionsState.allowAdditionalShapes?t("button",{staticClass:"rmBtn",class:{active:e.showAdvancedTools},attrs:{"map-btn-advanced-tools":""},on:{click:function(t){return e.toggleAdvancedTools()}}},[e._v(e._s(e.i18n.advancedTools))]):e._e(),e._v(" "),e.optionsState.mapToolBarBicycleTrafficButtons?[t("button",{staticClass:"rmBtn",attrs:{"map-btn-traffic":"",id:e.id+"_btnTraffic"},on:{click:function(t){return e.raveMapShowTraffic()}}},[e._v(e._s(e.i18n.traffic))]),e._v(" "),t("button",{staticClass:"rmBtn",attrs:{"map-btn-bicycle":"",id:e.id+"_btnBicycle"},on:{click:function(t){return e.raveMapShowBicyclePaths()}}},[e._v(e._s(e.i18n.bicyclePaths))])]:e._e()],2)]):e._e(),e._v(" "),e._t("default"),e._v(" "),e.optionsState.bottomToolBar?t("div",{staticClass:"raveMapWidgetControlBar3",attrs:{id:e.id+"_raveMapWidgetControlBar3"}},[t("span",{staticClass:"clearfix",staticStyle:{float:"left","font-size":"0.7em"},attrs:{id:e.id+"tattle"}},[e._v(e._s(e.i18n.latLng))]),e._v(" "),t("div",{staticStyle:{float:"right"}},[t("button",{staticClass:"rmBtn",attrs:{"map-btn-cancel":""},on:{click:function(t){return e.clear()}}},[e._v(e._s(e.i18n.cancel))]),e._v(" "),t("button",{staticClass:"rmBtn",attrs:{"map-btn-save":""},on:{click:function(t){return e.saveMap()}}},[e._v(e._s(e.i18n.save))])])]):e._e()],2)},[function(){var e=this._self._c;return e("span",{staticStyle:{width:"30px",height:"36px","line-height":"36px"}},[e("img",{staticStyle:{width:"18px","margin-left":"6px","margin-top":"8px"},attrs:{src:"/images/icons/svg/polygon.svg"}})])}],!1,null,null,null).exports,w=n("9oYx"),E=n("3Tuy"),A=n("7RMj"),S=n("juGh"),x=n("PcWQ"),T={name:"AdvancedTools",props:{options:{type:Object,required:!0},id:{type:String,required:!0}},inject:["raveMap","localEvents"],directives:{TooltipDirective:S.A},data(){return{sortKey:"phone",reverse:!1,search:"",columns:[{name:"phone",label:a.A.t("mgtConsole.map.phone"),sortClass:""},{name:"app",label:a.A.t("mgtConsole.map.app"),sortClass:""},{name:"os",label:a.A.t("mgtConsole.map.os"),sortClass:""},{name:"date",label:a.A.t("mgtConsole.map.date"),sortClass:""},{name:"location",label:a.A.t("mgtConsole.map.location"),sortClass:""},{name:"radius",label:a.A.t("mgtConsole.map.radius"),sortClass:""},{name:"actions",label:a.A.t("mgtConsole.map.actions"),sortClass:""}],filters:{loadedLandlines:{label:a.A.t("mgtConsole.map.loadedLandlines"),enabled:!1},s911Optin:{label:a.A.t("mgtConsole.map.s911OptIn"),enabled:!1},managedContacts:{label:a.A.t("mgtConsole.map.managedContacts"),enabled:!1},guardian:{label:a.A.t("mgtConsole.map.guardian"),enabled:!1},custom:{label:a.A.t("mgtConsole.map.custom"),enabled:!1},expired:{label:a.A.t("mgtConsole.map.expired"),enabled:!1,tooltip:a.A.t("mgtConsole.map.expiredTooltip")}},newShape:this.defaultNewShape(),showRadius:!1,shapes:[],shapesMapReferences:[],shapesIndex:0,showAll:!1,showingEverything:!1,filteredAndSortedShapes:[],categories:{loadedLandlines:!1,s911Optin:!1,managedContacts:!1,guardian:!1,custom:!1,expired:!1},BUTTON_TYPE:E.II,maxedOut:!1,customShapes:{},i18n:{additionalShapePlaceholder:a.A.t("mgtConsole.map.additionalShapePlaceholder"),additionalShapef
2ilterPlh:a.A.t("mgtConsole.map.additionalShapefilterPlh"),searchTooltip:a.A.t("mgtConsole.map.searchTooltip"),add:a.A.t("common.action.add"),search:a.A.t("common.action.search"),showAll:a.A.t("mgtConsole.map.showAll"),hideAll:a.A.t("mgtConsole.map.hideAll"),maximize:a.A.t("mgtConsole.map.maximize")}}},created(){this.serviceBase=new w.A,this.filters.expired.enabled=!!this.options.alertExpired},watch:{shapes(){this.filteredAndSortedShapes=this.filterAndSort(this.shapes)},"newShape.location":function(){this.showRadius=this.newShape.location.includes("POINT")}},methods:{sortBy(e){this.reverse=this.sortKey===e&&!this.reverse,this.sortKey=e,this.columns.forEach(t=>{t.name===e?t.sortClass=this.reverse?"sorting_desc":"sorting_asc":t.sortClass=""}),this.shapes=this.filterAndSort(this.shapes)},filterAndSort(e){return e.filter(e=>""===this.search||e.phone&&-1!==e.phone.toLowerCase().indexOf(this.search.toLowerCase())||-1!==e.date.toString().toLowerCase().indexOf(this.search.toLowerCase())).sort(this.comparator)},performSearch(){this.filteredAndSortedShapes=this.filterAndSort(this.shapes)},comparator(e,t){const n=e[this.sortKey],i=t[this.sortKey];let o=0;return n<i&&(o=-1),n>i&&(o=1),this.reverse?-1*o:o},showShapeClicked(e){this.showShape(e),this.scrollToMap()},showShape(e,t){let n=this.shapesMapReferences[e];if(n)n.setMap(this.raveMap._map),t||this.raveMap.panAndZoom(n);else{let i=this.getShape(e);if(i){const o=d.A.parseShapeFromBackendFormat(i.shape);n="pin"===i.displayType?this.raveMap.addMarker({lat:o[0].lat(),lng:o[0].lng(),color1:i.color,contentData:i,contentFormatter:this.tooltipFormatter}):this.raveMap.drawShape({polygon:o,radius:this.toMeters(i.radius||0,i.radiusUnits),fill:i.color,stroke:i.color},!1),t||this.raveMap.panAndZoom(n),this.shapesMapReferences[e]=n}}let i=this.getShape(e);return i&&(i.hidden=!1),n},tooltipFormatter:e=>`\n                    <div>\n                        <div><strong>Name: </strong> ${e.name}</div>\n                        <div><strong>App: </strong> ${e.app}</div>\n                        <div><strong>date: </strong> ${e.date}</div>\n                        <div><strong>os: </strong> ${e.os}</div>\n                        <div><strong>phone: </strong> ${e.phone}</div>\n                        <div><strong>shape: </strong> ${e.shape}</div>\n                    </div>`,rowClicked(e,t){var n=x(e.target);n.closest("[expander-exclude]").length>0||n.is("[expander-exclude]")||(this.showShape(t.asi),this.scrollToMap())},scrollToMap(){const e=x(this.$el).closest(".modal");let t=null;e[0]&&(t=e),(0,A.scrollToTop)(x(`#${this.id}`),t)},hideShape(e){let t=this.shapesMapReferences[e];if(t){t.setMap(null);let n=this.getShape(e);n&&(n.hidden=!0)}},addCustomShape(){let e=this.addAdditionalShape(this.newShape.location,parseInt(this.newShape.radius||0),"Meters","Custom","N/A","N/A",d.A.DEBUG_2_FILL,(new Date).getTime());this.customShapes[e.asi]=e,this.showShape(e.asi),this.newShape=this.defaultNewShape()},defaultNewShape:()=>({location:"",radius:""}),getShape:function(e){return this.shapes.find(t=>t.asi===e)},async fetchShapes(){if(this.removeAllAdditionalShapes(),this.options.advancedShapesUrl){let e=await this.serviceBase.fetch({url:this.options.advancedShapesUrl,data:{alertId:this.options.alertId,smLL:this.filters.loadedLandlines.enabled,smC:this.filters.custom.enabled,smMC:this.filters.managedContacts.enabled,sm911:this.filters.s911Optin.enabled,smG:this.filters.guardian.enabled,expired:this.filters.expired.enabled}});this.loadShapes(e)}},toggleShapeVisibility(e){let t=[];e&&this.scrollToMap(),this.filteredAndSortedShapes.forEach(n=>{if(e){let e=this.showShape(n.asi,!0);t.push(e)}else this.hideShape(n.asi)}),e&&this.raveMap.panAndZoom(t),this.showAll=e},loadShapes(e){this.removeAllAdditionalShapes(),e.forEach(e=>{this.addAdditionalShape(e.shape,e.notificationRadius,e.notificationUnits,e.phoneNumber,e.product,e.appOsType,e.color,e.dateUpdated,e.displayType)})},rmdf(e){let t=new Date(e);return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).substr(-2)+"-"+("0"+t.getDate()).substr(-2)+" "+("0"+t.getHours()).substr(-2)+":"+("0"+t.getMinutes()).substr(-2)+":"+("0"+t.getSeconds()).substr(-2)},toMeters:(e,t)=>t===i.WU.MILES?1609.34*e:e,addAdditionalShape(e,t,n,i,o,a,s,r,l){let c={asi:"rmas"+ ++this.shapesIndex,phone:i,app:o,os:a,date:this.rmdf(r),shape:e,radius:t,radiusUnits:n,color:s,hidden:!0,displayType:l};return this.shapes.push(c),c}
2,removeAllAdditionalShapes(){this.shapes.forEach(e=>{this.hideShape(e.asi)}),this.shapes=this.shapes.filter(e=>!!this.customShapes[e.asi]),this.shapesMapReferences=[]},resizeMap(){const e=x(`#${this.id}_map`);x(this.$el).closest(".modal-dialog").css("cssText",this.maxedOut?"":"width: 100% !important; max-width:100% !important;"),this.oldHeight=this.maxedOut?this.oldHeight:e.css("height");const t=x(window).height()-200;e.css("height",this.maxedOut?this.oldHeight:t),this.maxedOut=!this.maxedOut,this.onCloseRegistered||(this.localEvents.$on(o.Ay.Events.AFTER_CLOSE,()=>{x(this.$el).closest(".modal-dialog").css("cssText",""),x(`#${this.id}_map`).css("height",this.maxedOut?this.oldHeight:t),this.maxedOut=!1}),this.onCloseRegistered=!0)},customShapeTooltip:()=>'\n                    <div class="tleft">\n                        <h4 class="m-b-10">Examples:</h4>\n                        <div class="m-b-10">POLYGON ((-71.3833236694336 42.31118007360445, -71.383216381073 42.30894265383264, -71.38014793395996 42.31011691242401, -71.3833236694336 42.31118007360445))</div>\n                        <div class="m-b-10">POINT (-71.38763666152954 42.31094205400478)</div>\n                        <i>Press CTRL + Enter to add the shape</i>\n                    </div>\n                '}},M=(0,l.A)(T,function(){var e=this,t=e._self._c;return t("div",{staticClass:"mt-additionalShapes card",class:[e.options.additionalShapesClass]},[t("div",{staticClass:"additionalShapesCategory d-flex align-items-center"},[t("span",{staticClass:"m-r-auto"},[e._l(e.filters,function(n,i){return[t("div",{key:i,staticClass:"form-check form-check-inline ib"},[t("label",{directives:[{name:"tooltip",rawName:"v-tooltip",value:n.tooltip,expression:"filter.tooltip"}],staticClass:"form-check-label"},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.enabled,expression:"filter.enabled"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(n.enabled)?e._i(n.enabled,null)>-1:n.enabled},on:{change:[function(t){var i=n.enabled,o=t.target,a=!!o.checked;if(Array.isArray(i)){var s=e._i(i,null);o.checked?s<0&&e.$set(n,"enabled",i.concat([null])):s>-1&&e.$set(n,"enabled",i.slice(0,s).concat(i.slice(s+1)))}else e.$set(n,"enabled",a)},function(t){return e.fetchShapes()}]}}),e._v("\n                        "+e._s(n.label)+"\n                    ")])])]})],2),e._v(" "),t("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.i18n.maximize,expression:"i18n.maximize"}],staticClass:"btn-action-svg icon-maximize m-r-0",class:{bordered:e.maxedOut},on:{click:function(t){return e.resizeMap()}}},[t("svg",{staticStyle:{width:"15px"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 348.198 348.198"}},[t("polygon",{attrs:{points:"297.843,71.569 348.198,121.924 348.198,0 226.274,0 276.63,50.356 174.099,152.886 71.569,50.356 121.924,0 0,0\n                    0,121.924 50.356,71.569 152.886,174.099 50.356,276.63 0,226.274 0,348.198 121.924,348.198 71.569,297.842 174.099,195.312\n                    276.63,297.842 226.274,348.198 348.198,348.198 348.198,226.274 297.843,276.63 195.312,174.099 "}})])])]),e._v(" "),t("div",{staticClass:"mt-additionalShapesForm d-flex align-items-center"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newShape.location,expression:"newShape.location"},{name:"tooltip",rawName:"v-tooltip",value:{renderFn:e.customShapeTooltip,val:"Mobile 1"},expression:"{ renderFn: customShapeTooltip, val: 'Mobile 1'}"}],staticClass:"r4 rsShape flex-fill m-r-30",staticStyle:{flex:"1"},attrs:{rows:"2",type:"text",placeholder:e.i18n.additionalShapePlaceholder},domProps:{value:e.newShape.location},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.addCustomShape(t):null},input:function(t){t.target.composing||e.$set(e.newShape,"location",t.target.value)}}}),e._v(" "),e.showRadius?t("input",{directives:[{name:"model",rawName:"v-model",value:e.newShape.radius,expression:"newShape.radius"}],staticClass:"r4 rsShapeRadius m-r-30",attrs:{type:"text",placeholder:"Radius (meters)"}
2,domProps:{value:e.newShape.radius},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addCustomShape()},input:function(t){t.target.composing||e.$set(e.newShape,"radius",t.target.value)}}}):e._e(),e._v(" "),t("button",{staticClass:"rsShapeAdd btnJ2 gray",on:{click:function(t){return e.addCustomShape()}}},[e._v(e._s(e.i18n.add))])]),e._v(" "),t("div",{staticClass:"mt-additionalShapesFilter formElement d-flex align-items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"},{name:"tooltip",rawName:"v-tooltip",value:e.i18n.searchTooltip,expression:"i18n.searchTooltip"}],staticClass:"r4 m-r-30",staticStyle:{flex:"1"},attrs:{placeholder:e.i18n.additionalShapefilterPlh},domProps:{value:e.search},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.performSearch(e.shapes)},input:function(t){t.target.composing||(e.search=t.target.value)}}}),e._v(" "),t("button",{staticClass:"btnJ2 gray",on:{click:function(t){return e.performSearch(e.shapes)}}},[e._v(e._s(e.i18n.search))]),e._v(" "),e.showAll?t("button",{staticClass:"btnJ2 gray",on:{click:function(t){return e.toggleShapeVisibility(!1)}}},[e._v(e._s(e.i18n.hideAll))]):t("button",{staticClass:"btnJ2 gray",on:{click:function(t){return e.toggleShapeVisibility(!0)}}},[e._v(e._s(e.i18n.showAll))])]),e._v(" "),t("table",{staticClass:"table R4 table-hover table-padding max mt-additionalShapesTable"},[t("thead",[t("tr",e._l(e.columns,function(n){return t("th",{key:n.name,class:n.sortClass},[t("a",{on:{click:function(t){return e.sortBy(n.name)}}},[e._v("\n                            "+e._s(n.label)+"\n                      ")])])}),0)]),e._v(" "),t("tbody",e._l(e.filteredAndSortedShapes,function(n){return t("tr",{key:n.asi,on:{click:function(t){return e.rowClicked(t,n)}}},[t("td",[e._v(e._s(n.phone))]),e._v(" "),t("td",[e._v(e._s(n.app))]),e._v(" "),t("td",[e._v(e._s(n.os))]),e._v(" "),t("td",[e._v(e._s(n.date))]),e._v(" "),t("td",[e._v(e._s(n.shape))]),e._v(" "),t("td",[n.radius&&"pin"!==n.displayType?t("span",[e._v(e._s(n.radius)+" "+e._s(n.radiusUnits))]):e._e()]),e._v(" "),t("td",[t("action-button",{class:{hide:!n.hidden},attrs:{type:e.BUTTON_TYPE.ADD,id:"rmasa_show_"+n.asi},on:{click:function(t){return e.showShapeClicked(n.asi)}}}),e._v(" "),t("action-button",{class:{hide:n.hidden},attrs:{type:e.BUTTON_TYPE.DELETE,id:"rmasa_hide_"+n.asi},on:{click:function(t){return e.hideShape(n.asi)}}})],1)])}),0)])])},[],!1,null,null,null).exports,L=n("Lcm2");function O(e,t){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function k(e,t,n){var i=t.x,o=t.y,a=n.x-i,s=n.y-o;if(0!==a||0!==s){var r=((e.x-i)*a+(e.y-o)*s)/(a*a+s*s);r>1?(i=n.x,o=n.y):r>0&&(i+=a*r,o+=s*r)}return(a=e.x-i)*a+(s=e.y-o)*s}function I(e,t,n,i,o){for(var a,s=i,r=t+1;r<n;r++){var l=k(e[r],e[t],e[n]);l>s&&(a=r,s=l)}s>i&&(a-t>1&&I(e,t,a,i,o),o.push(e[a]),n-a>1&&I(e,a,n,i,o))}function P(e,t){var n=e.length-1,i=[e[0]];return I(e,0,n,t,i),i.push(e[n]),i}var N=function(e,t,n){if(e.length<=2)return e;var i=void 0!==t?t*t:1;return e=P(e=n?e:function(e,t){for(var n,i=e[0],o=[i],a=1,s=e.length;a<s;a++)O(n=e[a],i)>t&&(o.push(n),i=n);return i!==n&&o.push(n),o}(e,i),i)},R=n("astW"),D={name:"ConfirmKMl",extends:R.A,data:()=>({uploadKmlStyle:"background: "+d.A.JURISDICTION_FILL+"; height: 15px; width: 50px;",optimizedKmlStyle:"background: "+d.A.OPTIMIZED_KML+"; height: 15px; width: 50px;",simpleMap:{},originalPoly:null,simplePoly:null,i18n:{uploadedKml:a.A.t("mgtConsole.map.uploadedKml"),optimizedKml:a.A.t("mgtConsole.map.optimizedKml")}}),mounted(){this.simpleMap=new i.Ay("confirmMap",{readOnly:!0,allowUploadKml:!1}),this.simpleMap.loadMap(),this.simplePoly=this.simpleMap.drawShape({polygon:this.modalData.simplifiedShape,radius:0,fill:d.A.OPTIMIZED_KML,stroke:d.A.OPTIMIZED_KML},!1),this.originalPoly=this.simpleMap.drawShape({polygon:this.modalData.shape,fill:d.A.JURISDICTION_FILL,stroke:d.A.JURISDICTION_STROKE},!1);const e=new google.maps.LatLngBounds;this.modalData.simplifiedShape.forEach(function(t){e.extend(t)}),this.simpleMap._map.fitBounds(e)},methods:{showSimplifiedOnly(){this.originalPoly.setMap(null),this.simplePoly.setMap(this.simpleMap._map)},showOriginalOnly(){this.simplePoly.setMap(null),this.originalPoly.setMap(this.simpleMap._map)},showBothKmls(){this.originalPoly.setMap(this.simpleMap._map),this.simplePoly.setMap(this.simpleMap._map)}}},B=(0,l.A)(D,function(){var e=this,t=e._self._c;return t("div",[t("div",[t("div",{staticClass:"rave-editor-preview val-message"},[e._v(e._s(e.$t("mgtConsole.map.kmlConfirmMsg")))])]),e._v(" "),e._m(0),e._v(" "),t("div",{attrs:{id:"c
2onfirmMap"}}),e._v(" "),t("br"),e._v(" "),t("div",{staticClass:"form-inline-group",staticStyle:{"justify-content":"center"}},[t("div",{style:e.uploadKmlStyle,on:{mouseover:e.showOriginalOnly,mouseleave:e.showBothKmls}}),e._v(" "),t("label",[e._v(e._s(e.i18n.uploadedKml))]),e._v(" "),t("div",{style:e.optimizedKmlStyle,on:{mouseover:e.showSimplifiedOnly,mouseleave:e.showBothKmls}}),e._v(" "),t("label",[e._v(e._s(e.i18n.optimizedKml))])])])},[function(){var e=this._self._c;return e("div",[e("br")])}],!1,null,null,null).exports,F={name:"ConfirmESRI",extends:R.A,data:()=>({uploadKmlStyle:"background: "+d.A.JURISDICTION_FILL+"; height: 15px; width: 50px;",optimizedKmlStyle:"background: "+d.A.OPTIMIZED_KML+"; height: 15px; width: 50px;",simpleMap:{},originalPoly:[],simplePoly:[],i18n:{uploadedEsri:a.A.t("mgtConsole.map.uploadedEsri"),optimizedEsri:a.A.t("mgtConsole.map.optimizedEsri")}}),mounted(){this.simpleMap=new i.Ay("confirmMap",{readOnly:!0,allowUploadKml:!1}),this.simpleMap.loadMap(),this.modalData.simplifiedShape.forEach(e=>{this.simplePoly.push(this.simpleMap.drawShape({polygon:e,radius:0,fill:d.A.OPTIMIZED_KML,stroke:d.A.OPTIMIZED_KML},!1));const t=new google.maps.LatLngBounds;e.forEach(function(e){t.extend(e)}),this.simpleMap._map.fitBounds(t)}),this.modalData.shape.forEach(e=>{this.originalPoly.push(this.simpleMap.drawShape({polygon:e,fill:d.A.JURISDICTION_FILL,stroke:d.A.JURISDICTION_STROKE},!1))})},methods:{showSimplifiedOnly(){this.originalPoly.forEach(e=>{e.setMap(null)}),this.simplePoly.forEach(e=>{e.setMap(this.simpleMap._map)})},showOriginalOnly(){this.simplePoly.forEach(e=>{e.setMap(null)}),this.originalPoly.forEach(e=>{e.setMap(this.simpleMap._map)})},showBothEsris(){this.simplePoly.forEach(e=>{e.setMap(this.simpleMap._map)}),this.originalPoly.forEach(e=>{e.setMap(this.simpleMap._map)})}}},U=(0,l.A)(F,function(){var e=this,t=e._self._c;return t("div",[t("div",[t("div",{staticClass:"rave-editor-preview val-message"},[e._v(e._s(e.$t("mgtConsole.map.esriConfirmMsg")))])]),e._v(" "),e._m(0),e._v(" "),t("div",{attrs:{id:"confirmMap"}}),e._v(" "),t("br"),e._v(" "),t("div",{staticClass:"form-inline-group",staticStyle:{"justify-content":"center"}},[t("div",{style:e.uploadKmlStyle,on:{mouseover:e.showOriginalOnly,mouseleave:e.showBothEsris}}),e._v(" "),t("label",[e._v(e._s(e.i18n.uploadedEsri))]),e._v(" "),t("div",{style:e.optimizedKmlStyle,on:{mouseover:e.showSimplifiedOnly,mouseleave:e.showBothEsris}}),e._v(" "),t("label",[e._v(e._s(e.i18n.optimizedEsri))])])])},[function(){var e=this._self._c;return e("div",[e("br")])}],!1,null,null,null).exports,$=n("PcWQ"),W={name:"RaveMapVue",props:{id:{type:String,required:!0},options:{type:Object,required:!0}},components:{MapToolbar:_,AdvancedTools:M,FileUploader:L.A},inject:["raveMap","localEvents"],data(){return{changedColor:"#ee33dd",height:this.options.height+"px",init:!0,width:"100%",showAdvancedTools:!1,simplifiedShape:[],originalShape:[],numPointsToSimplify:this.options.numPointsToSimplify,i18n:{delete:a.A.t("mgtConsole.map.editShapeOpts.delete"),editColor:a.A.t("mgtConsole.map.editShapeOpts.editColor"),editShape:a.A.t("mgtConsole.map.editShapeOpts.editShape"),kmlConfirmMsg:a.A.t("mgtConsole.map.kmlConfirmMsg"),esriConfirmMsg:a.A.t("mgtConsole.map.esriConfirmMsg"),kmlSimplificationTitle:a.A.t("mgtConsole.map.kmlOptimization"),esriSimplificationTitle:a.A.t("mgtConsole.map.esriOptimization"),shapeOptions:a.A.t("mgtConsole.map.editShapeOpts.shapeOptions")},optionsState:this.options}},mounted(){this.raveMap._map=this.raveMap.renderMap(this.optionsState.latitude,this.optionsState.longitude,100,this.id+"_map",this.raveMap.postMapLoad.bind(this.raveMap));var e=this;void 0!==$(this.$el).find("[brandColorInputA]").colorPicker&&$(this.$el).find("[brandColorInputA]").colorPicker({opacity:!1,renderCallback(t,n){if(!1===n){e.optionsState.showEditShapeColor=!1,this.color.colors.HEX.indexOf("NAN")>=0?e.changedColor=e.rgbhToHex(this.color.colors.hueRGB):e.changedColor="#"+this.color.colors.HEX,e.raveMap.editFeatureColor=e.changedColor;let t=e.raveMap.toEditOrDeleteShapeFeature;setTimeout(function(){var n=e.raveMap.getShapeStyle(e.raveMap.editFeatureColor,e.raveMap.editFeatureColor,.5);t.setStyle(n)},500)}}}),void 0!==e.raveMap.initSelect&&e.raveMap.initSelect()},methods:{acceptKml(){if(this.optionsState.mapOpenLayersEnabled&&!this.raveMap.isShapesOrPointsAllowed())return;this.optionsState.mapOpenLayersEnabled||this.raveMap.clear(!1,!0),this.raveMap.drawShape({polygon:this.originalShape,fill:"#ff9900",stroke:"#ff9900"});const e=new google.maps.LatLngBounds;this.simplifiedShape.forEach(function(t){e.extend(t)}),this.optionsState.mapOpenLayersEnabled||this.raveMap._map.fitBounds(e),this.raveMap.originalPolygon=this.originalShape},acceptESRI(e){this.optionsState.mapOpenLayersEnabled&&this.optionsState.multipleShapesEnabled||this.raveMap.clear(!1,!0);for(let t=0;t<e.length;t++)this.raveMap.drawShape({polygon:e[t],fill:"#ff9900",stroke:"#ff9900"});const t=new google.maps.LatLngBounds;this.simplifiedShape.forEach(function(e){t.extend(e)}),this.optionsState.mapOpenLayersEnabled||this.raveMap._map.fitBounds(t)},cancelKmlSimplification(){this.raveMap.clear(!0,!0)},changeEditPaletteColor(){},selectEditShapeMode(e){switch(this.optionsState.showEditShapeOptions=!1,e){case"EDIT_COLOR":this.optionsState.showEditShapeColor=!0,$("#fontColorButtonA").trigger("click"),this.$refs.mapToolBar&&this.$refs.mapToolBar.fullSize&&$(".cp-color-picker").appendTo(".mapWrapper");break;case"DELETE":this.raveMap.editOrDeleteDrawnShape("DELETE",""),this.optionsState.currentShape=""}},toggleShowAdvancedTools(e){this.showAdvancedTools=e},kmlPicked(e){if(!this.optionsState.mapOpenLayersEnabled||"application/zip"!=e[0].originalFile.type&&"application/x-zip-compressed"!=e[0].originalFile.type){try{this.originalShape=Rave.GeoPolygonTools.createPathFromKML(e[0].data),this.simplifiedShape=this.simplifyShape(this.originalShape)}catch(e){return void new o.Ay.warning(a.A.t("mgtConsole.map.kmlParseError"),a.A.t("mgtConsole.map.kmlInvalidXML"))}this.originalShape.length||new o.Ay.warning(a.A.t("mgtConsole.map.kmlParseError"),a.A.t("mgtConsole.map.kmlNoVertexes")),this.originalShape.length<this.numPointsToSimplify?this.acceptKml():this.showConfirmKML(this.simplifiedShape,this.originalShape)}else{let t,n=this.raveMap.getMapObjects();this.raveMap.clear(!1,!0),this.raveMap.addEsriToDrawingLayer(e[0].originalFile);let i=[],s=[],r=[],l=this.numPointsToSimplify,c=!1;setTimeout(async()=>{try{if(t=this.raveMap.getMapObjects(),this.raveMap.clear(!1,!0),n.length>0){for(let e=0;e<n.length;e++){let t=Rave.GeoPolygonTools.createPolygonFromShapeString(n[e].polygon);r.push(t)}this.acceptESRI(r)}for(let e=0;e<t.length;e++){let n=Rave.GeoPolygonTools.createPolygonFromShapeString(t[e].polygon);i.push(n),n.length>l&&(c=!0),s.push(this.simplifyShape(n))}if(this.raveMap.isThePointsLimitReached(s))return;if(c){for(let e=0;e<n.length;e++)s.push(r[e]),i.push(r[e]);this.showConfirmESRI(s,i)}else{for(let e=0;e<n.length;e++)i.push(r[e]);this.acceptESRI(i)}}catch(e){return new o.Ay.warning(a.A.t("mgtConsole.map.esriParseError"),a.A.t("mgtConsole.map.esri
2Invalid")),void this.raveMap.clear(!1,!0)}},100)}},simplifyShape(e){let t=[],n=[];e.forEach(function(e){t.push({x:e.lat(),y:e.lng()})});let i=1e-5;for(;t.length>this.numPointsToSimplify;)t=N(t,i,!0),i*=1.1;t.forEach(function(e){n.push(new google.maps.LatLng(e.x,e.y))});let o=Rave.GeoPolygonTools.createRPolygonFromPath(n);return Rave.GeoPolygonTools.isPolygonInvalid(o)?e:n},showConfirmKML(e,t){this.moreInfoModal=new Rave.Modal2({title:this.i18n.kmlSimplificationTitle,vueComponent:B,className:"modal-size-900",data:{simplifiedShape:e,shape:t,latitude:this.raveMap.latitude,longitude:this.raveMap.longitude,zoom:this.raveMap.zoom,mapOpenLayersEnabled:this.optionsState.mapOpenLayersEnabled},confirmAction:this.acceptKml,cancelAction:this.cancelKmlSimplification}).open()},showConfirmESRI(e,t){this.moreInfoModal=new Rave.Modal2({title:this.i18n.esriSimplificationTitle,vueComponent:U,className:"modal-size-900",data:{simplifiedShape:e,shape:t,latitude:this.raveMap.latitude,longitude:this.raveMap.longitude,zoom:this.raveMap.zoom,mapOpenLayersEnabled:this.optionsState.mapOpenLayersEnabled},confirmAction:this.acceptESRI(e),cancelAction:this.cancelKmlSimplification}).open()},rgbToHex(e){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")),n=t.split(","),i=[];t="#";for(var o=0;o<3;o++)i[o]=parseInt(n[o]).toString(16),i[o]=i[o].length<2?"0"+i[o]:i[o],t+=i[o];return t},rgbhToHex(e){var t="#",n=[];n[0]=parseInt(e.r).toString(16),n[1]=parseInt(e.g).toString(16),n[2]=parseInt(e.b).toString(16);for(var i=0;i<3;i++)n[i].length<2&&(n[i]="0"+n[i]),t+=n[i];return t}}},V=(0,l.A)(W,function(){var e=this,t=e._self._c;return t("div",{attrs:{id:e.id}},[t("div",{staticClass:"map-container",class:{cursorPencil:"LineString"===e.optionsState.currentShape,cursorCircle:"Circle"===e.optionsState.currentShape,cursorPolygon:"Polygon"===e.optionsState.currentShape}},[t("div",{staticClass:"haze hide p-b-20",attrs:{id:"mapVeil"}}),e._v(" "),e._m(0),e._v(" "),t("map-toolbar",{ref:"mapToolBar",attrs:{id:e.id,options:e.optionsState},on:{"advanced-tools-toggled":function(t){return e.toggleShowAdvancedTools(t)}}},[t("div",{style:{height:e.height,width:e.width},attrs:{id:e.id+"_map","map-canvas":""}}),e._v(" "),t("div",{staticClass:"raveMapCircleLabel",attrs:{id:e.id+"_circleLabel"}}),e._v(" "),t("div",{attrs:{id:"featurePopup"}}),e._v(" "),t("div",{attrs:{id:"featureLabel"}}),e._v(" "),t("div",{attrs:{id:"featureInfo"}}),e._v(" "),e.optionsState.showEditShapeOptions?t("div",{staticClass:"editShapeOptions forAlert"},[t("h2",[e._v(e._s(e.i18n.shapeOptions))]),e._v(" "),t("div",{staticClass:"close",on:{click:function(t){e.optionsState.showEditShapeOptions=!1}}}),e._v(" "),t("ul",[t("li",{on:{click:function(t){return e.selectEditShapeMode("EDIT_COLOR")}}},[e._v(e._s(e.i18n.editColor))]),e._v(" "),t("li",{on:{click:function(t){return e.selectEditShapeMode("DELETE")}}},[e._v(e._s(e.i18n.delete))])])]):e._e(),e._v(" "),t("div",{staticClass:"editShapeOptions forAlert forEditColor",class:{colorPickerHide:!e.optionsState.showEditShapeColor}},[t("input",{staticClass:"noStyleAtAll",attrs:{brandColorInputA:"",id:"fontColorButtonA"},domProps:{value:"selectedFeatureMapObj.color"},on:{change:e.changeEditPaletteColor}})])])],1),e._v(" "),e.showAdvancedTools?t("advanced-tools",{attrs:{id:e.id,options:e.optionsState}}):e._e(),e._v(" "),!1===e.optionsState.allowUploadKml||e.optionsState.readOnly?e._e():t("div",{staticClass:"mtUploadKML"},[t("file-uploader",{attrs:{"client-side-only":!0},on:{"upload-file":function(t){return e.kmlPicked(t)}}},[t("label",{attrs:{for:"shapefileWrapper"}},[e._v(e._s(this.optionsState.mapOpenLayersEnabled?e.$t("mgtConsole.smartPrepare.uploadKmlOrEsri"):e.$t("mgtConsole.smartPrepare.uploadKml")))]),e._v(" "),t("button",{staticClass:"btnJ2 gray",attrs:{id:"shapefileWrapper"}},[e._v(e._s(e.$t("mgtConsole.smartPrepare.chooseFile")))])])],1)],1)},[function(){var e=this._self._c;return e("div",{staticClass:"haze hide p-b-20",attrs:{id:"mapVeilLoader"}},[e("div",{staticClass:"busy"})])}],!1,null,null,null).exports},"47P9":function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var i=n("L5+t"),o=n("+cQT"),a=n("nF3L"),s=n("VGUE"),r=n("t4rF"),l=n("UklR");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u={__name:"SimpleTinyEditor",props:{id:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},customConfig:{type:Object,default:()=>({})},editorIndex:{type:Number,default:0},format:{type:String,default:"html",validator:e=>["raw","text","html","tree"].includes(e)},hidden:{type:Boolean,default:!1},multiLine:{type:Boolean,default:!0,required:!1},maxChars:{type:Number},value:String,variables:{type:Boolean,default:!1},variablesHtml:{type:String,required:!1}},emits:["input","keydown","update:text","update:variablesHtml"],setup(e,t){let{expose:n,emit:i}=t;const c=e,u=(0,o.ref)(null),p=(0,o.ref)(null),h=(0,o.ref)(null),m=(0,o.ref)(!1);let f=!1,g=!1,v=null;const y=new Promise(e=>v=e),b=(0,o.reactive)({truncatedFlag:!1,text:"text"===c.format?c.value:"",value:c.value,variablesHtml:c.variablesHtml});let C=(0,o.ref)(!1);const _=(0,o.computed)(()=>c.hidden),{activeVariableEl:w,getContent:E,getTextContent:A,getTextContentFromElement:S,getVariablesHtml:x,handleVariables:T,makeElPlainText:M,matchCloseEnough:L,normalizeVariables:O,trimElToFit:k}=(0,r.W)(c.id,c.editorIndex,h,p,i,c.format,C,b,c.maxChars,_);function I(){return c.variables&&null!=c.variablesHtml?c.variablesHtml:"text"===c.format?(0,s.Ut)(c.value||""):c.value||""}let P=!1;const N=(0,o.ref)(I()),R={min_height:0,newline_behavior:"linebreak",toolbar:""},D={body_class:"rave-tinymce-editor rave-single-line",min_height:24.5,max_height:24.5,plugins:""},B=(0,o.computed)(()=>d(d(d(d({},a.A),{},{setup:e=>{V(e),c.variables&&T(e),e.on("SetContent",()=>{g&&(f||$())}),e.on("BeforeSetContent",function(e){if(e.content&&"string"==typeof e.content){(0,s.tC)(e.content)===e.content&&(e.content=(0,s.Ut)(e.content))}}),e.on("focus",()=>{m.value=!0}),e.on("blur",()=>{m.value=!1}),e.on("init",()=>{if(p.value=e,c.disabled){e.mode.set("readonly");const t=I();if(t&&(t.includes("<img")||t.includes("<table"))){setTimeout(()=>{e.setContent(t)},50)}}H(e),h.value=e.getBody(),v(),g=!0,setTimeout(()=>{f||$()},1)})},paste_preprocess:function(e,t){const n=document.createElement("div");n.innerHTML=t.content,"text"===c.format&&(M(n,{allowVariables:c.variables}),t.content=n.innerHTML);const i=S(n),o=U();let a=e.selection.getContent({format:"text"});const s=o.length-a.length+i.length;c.maxChars&&s>c.maxChars&&(k(n,c.maxChars-o.length+a.length),t.content=n.innerHTML,C.value=!0,P=!0)}},"text"===c.format?R:{}),c.multiLine?{}:D),c.customConfig));function F(){return E()}function U(){return A()}function $(){const e=U();L(e,b.text)||(b.text=e,i("update:text",e));const t=F();if(P?P=!1:(null==c.maxChars||e.length<c.maxChars)&&(C.value=!1),L(t,b.value)&&C.value===b.truncatedFlag||(b.value=t,b.truncatedFlag=C.value,i("input",t,{truncated:C.value,text:e})),c.variables){const e=x();L(e,b.variablesHtml)||(b.variablesHtml=e,i("update:variablesHtml",e))}}async function W(){return y}function V(e){e.on("keydown",e=>{("text"!==c.format||"b"!==e.key&&"i"!==e.key&&"u"!==e.key||!e.metaKey&&!e.ctrlKey)&&(c.multiLine||"Enter"!==e.key)?c.maxChars&&null==w.value&&j(e):e.preventDefault()})}function H(e){if("text"===c.format)for(const t in e.shortcuts.shortcuts){const n=t.split(",");let i="",o="";for(const e of n)["access","alt","ctrl","meta","shift"].includes(e)?0===i.length?i=e:i+="+"+e:o=e;if(i.length>0&&o.length>0){if("meta"===i&&o===`${"Z".charCodeAt(0)}`)continue;e.shortcuts.remove(`${i}+${o}`)}}}function j(e){const t=c.maxChars;if(!t)return;if(e.metaKey||e.ctrlKey)return;if(new Set(["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Tab","Escape"]).has(e.key))return;U().length>=t&&(e.preventDefault(),C.value=!0,$())}(0,o.onMounted)(async()=>{b.text="text"===c.format?c.value:null,b.value=c.value,b.variablesHtml=c.variablesHtml}),(0,o.onUnmounted)(()=>{f=!0}),(0,o.watch)(()=>c.value,async e=>{await W();const t=F();if(!L(t,e)&&("text"===c.format?N.value=(0,s.Ut)(e):N.value=e,c.disabled&&e&&(e.includes("<img")||e.includes("<table")))){setTimeout(()=>{var t;null===(t=p.value)||void 0===t||t.setContent(e)},50)}}),(0,o.watch)(()=>c.variablesHtml,async e=>{if(await W(),null==e&&null!=c.value){var t;const e=c.value;let n="text"===c.format?(0,s.Ut)(e):e;return N.value===n&&(n+='<br data-mce-bogus="1">'),N.value=n,void(null===(t=p.value)||void 0===t||t.setContent(N.value))}if(!c.variables)return;const n=x(),i=O(e);
2null==e||L(n,i)||(N.value=e)}),(0,o.watch)(()=>c.error,e=>{var t,n;c.multiLine&&(e?null===(t=p.value)||void 0===t||t.getContainer().classList.add("textAlertError"):null===(n=p.value)||void 0===n||n.getContainer().classList.remove("textAlertError"))}),(0,o.watch)(()=>c.variables,(e,t)=>{p.value&&e&&!t&&T(p.value)}),(0,o.watch)(()=>c.disabled,e=>{if(p.value)if(e){p.value.mode.set("readonly");const e=F();if(e&&(e.includes("<img")||e.includes("<table"))){setTimeout(()=>{p.value.setContent(e)},50)}}else p.value.mode.set("design")}),n({editor:p,editorBody:h,ready:W});const K=(0,o.computed)(()=>{const e=c.disabled;return c.multiLine?{}:{background:e?"#ccc":"white",border:c.error?"2px solid #900 !important":"1px solid #aaa !important",padding:"0 0.4rem",height:"34.5px",display:"flex",alignItems:"center",outline:m.value?"#0000FF dotted thin":"none"}});return{__sfc:!0,emit:i,editor:u,tinyAPIEditor:p,editorBody:h,focused:m,unmounted:f,isReady:g,readyResolve:v,readyPromise:y,props:c,cachedValues:b,truncatedFlag:C,hiddenComputed:_,activeVariableEl:w,getContentWithVariables:E,getTextContentWithVariables:A,getTextContentFromElement:S,getVariablesHtml:x,handleVariables:T,makeElPlainText:M,matchCloseEnough:L,normalizeVariables:O,trimElToFit:k,getInitialValue:I,pendingTruncatedPaste:P,dynamicValue:N,plainTextConfig:R,singleLineConfig:D,mergedTinyMCEConfig:B,removeMaxHeight:function(){p.value.options.unset("max_height"),p.value.execCommand("mceAutoResize")},getContent:F,getTextContent:U,doEmits:$,ready:W,registerKeyDownListener:V,removeShortcuts:H,preventExceedMaxChars:j,handleInput:function(){null!=p.value&&$()},outerStyle:K,Editor:l.A}}},p=(0,n("KHd+").A)(u,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{style:n.outerStyle,on:{click:function(e){return n.tinyAPIEditor.focus()}}},[t(n.Editor,{ref:"editor",attrs:{"data-multi-line":`${e.multiLine}`,id:e.id,init:n.mergedTinyMCEConfig,value:n.dynamicValue},on:{onClick:n.removeMaxHeight,onKeydown:e=>n.emit("keydown",e),input:n.handleInput}})],1)},[],!1,null,null,null).exports},jPkd:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var i=n("L5+t"),o=n("+cQT"),a=n("5WJX"),s=n.n(a),r=(n("7Cf0"),n("DWi2"),n("sIDj"),n("cZOo"),n("ZNhe"),n("MVQK"),n("Tqh3"),n("hOyB"),n("Qjfq"),n("B9FH"),n("nF3L")),l=n("UklR");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u={__name:"TinyMCEditor",props:{id:String,htmlValue:String,isVisible:Boolean,customConfig:{type:Object,default:()=>({})}},emits:["change","update"],setup(e,t){let{expose:n,emit:i}=t;const a=e,c=(0,o.computed)(()=>d(d({},r.A),a.customConfig)),u=(0,o.ref)(null),p=s(),h=()=>(u.value=p.get(a.id),b(),f(),u.value),m=async()=>await p.init({selector:a.id}).then(function(){return h()}),f=()=>{var e;null===(e=u.value)||void 0===e||e.show()},g=()=>{u.value.hide(),u.value.setContent("")},v=()=>(u.value&&(p.get(a.id).remove(),u.value=null),u.value),y=e=>{var t;null===(t=p.get(a.id))||void 0===t||t.mode.set(e?"readonly":"design")},b=()=>{var e;null===(e=u.value)||void 0===e||e.ui.registry.addButton("nopaste",{tooltip:"Please use the Ctrl+X/C/V or CMD+X/C/V keyboard shortcut instead",icon:"paste",enabled:!1,onAction:()=>{}})};return n({destroyEditor:v,disableEditor:y,getInstance:h,hideEditorInstance:g,reInitialize:m,showEditorInstance:f,tinyMCEInstance:u}),{__sfc:!0,emit:i,props:a,mergedTinyMCEConfig:c,tinyMCEInstance:u,tmcLib:p,getInstance:h,reInitialize:m,showEditorInstance:f,hideEditorInstance:g,destroyEditor:v,disableEditor:y,removeMaxHeight:()=>{p.activeEditor.options.unset("max_height"),p.activeEditor.execCommand("mceAutoResize")},addCustomFunctions:b,Editor:l.A}}},p=(0,n("KHd+").A)(u,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.isVisible?t(n.Editor,{attrs:{id:e.id,init:n.mergedTinyMCEConfig,value:e.htmlValue},on:{change:function(e){return n.emit("change")}
2,input:function(e){return n.emit("update")},onClick:n.removeMaxHeight}}):e._e()},[],!1,null,null,null).exports},"3Tuy":function(e,t,n){"use strict";n.d(t,{II:function(){return s},VQ:function(){return l},ez:function(){return r},Ay:function(){return d}});var i=n("Cpa8"),o=n("K9hY"),a=n("PcWQ");const s={DELETE:{icon:"delete",class:"delete",get title(){return i.A.t("common.buttonLabel.delete")}},DELETE2:{icon:"delete",class:"red",get title(){return i.A.t("common.buttonLabel.delete")}},ADD:{icon:"add",class:"green",get title(){return i.A.t("common.buttonLabel.add")}},ADMIN:{icon:"edit_admins",class:"",get title(){return i.A.t("common.buttonLabel.editAdmin")}},EDIT:{icon:"edit",class:"",get title(){return i.A.t("common.buttonLabel.edit")}},COPY:{icon:"squares",class:"",get title(){return i.A.t("common.buttonLabel.copy")}},SECONDARY:{icon:"",class:"secondary",get title(){return null}},GREEN:{icon:"",class:"primary green",title:""},YELLOW:{icon:"",class:"primary yellow btnJ2",title:""},GRAY:{icon:"",class:"primary gray btnJ2",title:""},CLEAR:{icon:"",class:"primary clear btnJ2",title:""},RED:{icon:"",class:"btnJ2 red",title:""},PLUS:{icon:null,class:"primary clear btnJ2",title:"",svgConfig:{icon:["rave","plus"],class:"pluscircle x16 m-space-right"}},CHECK:{icon:null,class:"primary clear btnJ2",title:"",svgConfig:{icon:["rave","check"],class:"pluscircle x16 m-space-right"}},EDIT_NEW:{icon:null,class:"",title:"",svgConfig:{icon:["rave","ravePencilIcon"],class:"pluscircle x16 m-space-right"}},EDIT_LIST:{icon:null,class:"",title:"",svgConfig:{icon:["rave","raveEditList"],class:"pluscircle x16 m-space-right"}}},r={HIDE:"HIDE",REMOVE:"REMOVE",INSIDE:"INSIDE"},l=s;var c={name:"ActionButton",components:{SpinKit:o.A},props:{type:{type:[Object,String],default:()=>l.GREEN},spin:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},title:{type:String,required:!1},bordered:{type:Boolean,default:!0},spinTransitionType:{type:String,required:!1},buttonClass:{type:String,required:!1},disabled:{type:Boolean,default:!1},config:{type:Object,default:()=>({})},unEvenSVG:{type:Boolean,default:!1}},watch:{spin(){this.$nextTick(()=>{this.$refs.spinKit?this.spin?this.$refs.spinKit.start():this.$refs.spinKit.stop():this.$refs.spinKit2&&(this.spin?this.$refs.spinKit2.start():this.$refs.spinKit2.stop())})}},data:()=>({currentType:{},iconCls:"",configInternal:{},SpinTransitionType:r}),created(){if(!this.type)throw Error("ActionButtonComponent: type is required");if("object"==typeof this.type)this.currentType=this.type;else if(this.currentType=l[this.type.toUpperCase()],!this.currentType)throw Error("ActionButtonComponent: currentType is undefined means ActionButton's type unknown");this.configureTheButton(),this.iconCls=this.currentType.icon?`icon-${this.currentType.icon}`:null},methods:{onClick(e){e.preventDefault(),this.disabled||this.spin||this.$emit("click",e)},configureTheButton(){this.configInternal=a.extend(!0,{},this.config),this.configInternal.spinTransitionType=this.spinTransitionType||this.configInternal.spinTransitionType||r.REMOVE,this.configInternal.slotResponsive=void 0===this.configInternal.slotResponsive||this.configInternal.slotResponsive}}},d=(0,n("KHd+").A)(c,function(){var e=this,t=e._self._c;return t("span",{staticClass:"form-inline d-inline-flex",attrs:{"expander-exclude":""}},[e.spin&&e.configInternal.spinTransitionType!==e.SpinTransitionType.HIDE&&e.configInternal.spinTransitionType!==e.SpinTransitionType.INSIDE?e._e():t("a",{directives:[{name:"show",rawName:"v-show",value:!e.spin||e.configInternal.spinTransitionType===e.SpinTransitionType.INSIDE,expression:"!spin || configInternal.spinTransitionType === SpinTransitionType.INSIDE"}],staticClass:"btn-action",class:[e.type.class,{"no-border":!e.bordered,disabled:e.disabled},e.buttonClass],attrs:{href:"#",tabindex:"0",role:"button",ariaLabel:e.title,id:e.id,title:e.title||e.currentType.title,disabled:e.disabled},on:{click:function(t){return e.onClick(t)}}},[e.iconCls?t("b",{class:e.iconCls,attrs:{title:e.title||e.currentType.title}}):e._e(),e._v(" "),e.currentType.svgConfig?t("font-awesome-icon",{class:[e.currentType.svgConfig.class,e.unEvenSVG?"editlistIcons":""],attrs:{icon:e.currentType.svgConfig.icon}}
2):e._e(),e._v(" "),e.currentType.icon?e._e():e._t("default"),e._v(" "),e.spin?t("spin-kit",{ref:"spinKit2",staticClass:"ib"}):e._e()],2),e._v(" "),e.spin&&e.configInternal.spinTransitionType!==e.SpinTransitionType.INSIDE?t("spin-kit",{ref:"spinKit",staticStyle:{padding:"4px 0"}}):e._e(),e._v(" "),e.$slots.default&&e.currentType.icon?t("a",{staticClass:"d-md-block",class:e.configInternal.slotResponsive?"d-none":"",attrs:{"expander-exclude":""},on:{click:function(t){return e.onClick(t)}}},[e._t("default")],2):e._e()],1)},[],!1,null,null,null).exports},kZTM:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i={__name:"ButtonPrimary",props:{href:String,id:String,title:String},setup:e=>({__sfc:!0})},o=(n("pJrR"),(0,n("KHd+").A)(i,function(){var e=this,t=e._self._c;e._self._setupProxy;return e.href?t("a",{attrs:{id:e.id,href:e.href,title:e.title}},[t("button",[e._t("default")],2)]):t("button",{attrs:{id:e.id}},[e._t("default")],2)},[],!1,null,"40b05624",null).exports)},Z6Wl:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var i=n("/9Nn"),o=n("Cpa8"),a=n("7RMj"),s=n("9oYx");let r;var l={name:"CharCounter",props:{value:{type:String},max:{type:Number},counterHtml:{type:String},id:{type:String},countingAlgo:{type:String},numReservedForPoll:{type:Number,default:0},useFudgeFactor:{type:Boolean,default:!1},allowTextOverflow:{type:Boolean,default:!1},sms160Enabled:{type:Boolean,default:!1},userEnteredUrlPresent:{type:Boolean,default:!1}},beforeCreate(){this.serviceBase=new s.A},async mounted(){await async function(){return r||await n.e(6372).then(n.bind(n,"+Qz8")).then(e=>{r=e.default})}(),this.twitterModuleLoaded=!0;const e=this;this.totalPollLen="poll"===this.countingAlgo?this.numReservedForPoll:0,void 0===this.counterHtml&&(this.$watch("value",{handler:function(t,n){e.recalculate(t,n)},immediate:!0}),this.$watch("countingAlgo",{handler:function(){e.totalPollLen=e.oldVal&&"poll"===e.oldVal.countingAlgo?e.numReservedForPoll:0,e.value&&e.recalculate(e.value)}}))},data:function(){return{counterHtmlInternal:this.counterHtml||"",messageCount:"0"}},methods:{async recalculate(e,t){let n,s=!1,l=t&&t.length>this.max-this.totalPollLen&&void 0!==t?t:e;this.oldVal=l;let c=e?e.length:0;switch(this.userEnteredUrlPresent&&(c+=23),this.countingAlgo){case"twitter":{this.counterHtmlInternal=i.Ay.countWithPrecalculatedLen(l,r.getTweetLength(l),this.max);let e=l;for(;r.getTweetLength(e)>this.max;)e=e.substring(0,e.length-1);e.length!==l.length&&this.$emit("input",e);break}case"poll":n=this.numReservedForPoll+(this.useFudgeFactor?a.POLL_FUDGE_FACTOR:0),e&&e.length+n>this.max&&(e=e.substring(0,this.max-n),this.$emit("input",e)),this.sms160Enabled?await this.getTextMessageCount(c,e,"poll"):this.counterHtmlInternal=i.Ay.countWithPrecalculatedLen(e,e.length+this.numReservedForPoll,this.max)+' <span style="color:red">'+o.A.t("common.charsResForPoll",[this.numReservedForPoll])+"</span>";break;case"moreInfoUrl":c=this.value.length+this.numReservedForPoll;case"allowOverFlow":if(this.sms160Enabled){await this.getTextMessageCount(c,l,"allowOverFlow");break}c>this.max?this.counterHtmlInternal=`<span style='color:red'> ${o.A.t("common.charactersLeft",[this.max-c])}</span>`:this.counterHtmlInternal=`<span> ${o.A.t("common.charactersLeft",[this.max-c])}</span>`;break;default:l&&l.match(/\r\n/g)&&(l=l.replace(/\r\n/g,"\n"),s=!0),this.counterHtmlInternal=null!=l?i.Ay.countWithPrecalculatedLen(l,l.length,this.max):i.Ay.count(l,this.max),l&&l.length>this.max&&(l=l.substring(0,this.max),s=!0),s&&this.$emit("input",l)}},getTextMessageCount(e,t,n){this.serviceBase.send({url:"/managementConsole/alerts/getTextMessageCount.action",data:{completeTextMessage:t}}).done(a=>{this.messageCount=0===e?0:a,0===this.value.length&&(this.messageCount=0);const s=` (${this.messageCount} ${"1"===this.messageCount?"Message":"Messages"})`;if("allowOverFlow"===n){const t=`${this.sms160Enabled?s:""}</span>`;e>this.max?this.counterHtmlInternal=`<span style='color:red'> ${o.A.t("common.charactersLeft",[this.max-e])}`+t:this.counterHtmlInternal=`<span> ${o.A.t("common.charactersLeft",[this.max-e])}`+t}else if("poll"===n){const e=`<span> ${this.sms160Enabled?s:""}</span>`;this.counterHtmlInternal=i.Ay.countWithPrecalculatedLen(t,t.length+this.numReservedForPoll,this.max)+e+' <span style="color:red">'+o.A.t("common.charsResForPoll",[this.numReservedForPoll])+"</span>"}}).fail(e=>{(0,a.showClientSideError)([e.statusText])})}}},c=(0,n("KHd+").A)(l,function(){var e=this;return(0,e._self._c)("span",{staticClass:"minitext",attrs:{id:e.id},domProps:{innerHTML:e._s(e.counterHtmlInternal)}})},[],!1,null,null,null).exports},"7CNq":function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i={name:"Checkbox",extends:n("jopW").A,model:{prop:"modelVal",event:"change"},props:{modelVal:{type:Boolean,default:!1},value:{required:!1}},computed:{shouldBeChecked(){return this.modelVal instanceof Array?this.modelVal.includes(this.value):!0===this.modelVal}},methods:{changed(e){let t=e.target.checked;if(this.modelVal instanceof Array){let e=[...this.modelVal];t?e.push(this.value):e.splice(e.indexOf(this.value),1),this.$emit("change",e)}else this.$emit("change",!!t)}}},o=(0,n("KHd+").A)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"radio-btn-wrap rave-checkbox form-inline"},[t("label",{staticClass:"radio-btn-label",class:{disabled:e.disabled}},[t("input",{class:{"styled-checkbox":e.styled},attrs:{type:"checkbox",id:e.id,role:"checkbox","aria-checked":e.shouldBeChecked,disabled:e.disabled},domProps:{value:e.value,checked:e.shouldBeChecked},on:{change:function(t){return e.changed(t)}}}),e._v(" "),e.styled?t("span",{staticClass:"checkbox-custom",class:{"
2is-checked":e.shouldBeChecked,disabled:e.disabled}}):e._e(),e._v(" "),t("div",{staticClass:"radio-btn-rest"},[e._t("default")],2)]),e._v(" "),e._t("outside")],2)},[],!1,null,null,null).exports},BDXA:function(e,t,n){"use strict";n.d(t,{Ay:function(){return r}});var i=n("8ZBC"),o=n.n(i);const a="TIMER_EXPIRED";var s={name:"CountdownTimer",props:{timerBus:{Object:Object,default:function(){return this.$bus}},id:{type:String,required:!1}},data:function(){return{threadId:null,internalEndDate:null}},mounted:function(){this.timerBus.$on("START_TIMER_EVENT",e=>{e&&(this.internalEndDate=e),this.startCountdownTimer()}),this.timerBus.$on("TIMER_DEACTIVATED",()=>{null!==this.threadId&&clearInterval(this.threadId)})},methods:{startCountdownTimer:function(){null!==this.threadId&&clearInterval(this.threadId),this.internalEndDate>=new Date?this.threadId=o()(e=>{this.isTimeout(e)?(this.$el.innerText="00:00:00",this.timerBus.$emit(a),clearInterval(this.threadId)):this.$el.innerText=(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)+":"+(e.seconds<10?"0"+e.seconds:e.seconds)},this.internalEndDate,o().HOURS|o().MINUTES|o().SECONDS):(this.$el.innerText="00:00:00",this.timerBus.$emit(a))},isTimeout:e=>e.value<=0}},r=(0,n("KHd+").A)(s,function(){var e=this._self._c;this._self._setupProxy;return e("span",{attrs:{id:"timer"}})},[],!1,null,null,null).exports},kmjl:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var i=n("Cpa8"),o=n("akzv"),a=n("EnQL"),s=n.n(a),r={name:"DateFormatter",props:{value:{type:[Number,Date],required:!1},format:{type:String,required:!1},localizedFormat:{}},data:()=>({formattedDate:""}),created(){this.dateToString()},watch:{value(){this.dateToString()}},methods:{dateToString(){let e;e=this.localizedFormat&&!i.A.isEmpty(this.localizedFormat)?i.A.t(this.localizedFormat):this.format,n.e(9657).then(n.t.bind(n,"f0Wu",23)).then(()=>{this.formattedDate=this.value?s()(this.value).tz(o.Ay.timeTimeZoneId).format(e||"LLL"):""})}}},l=(0,n("KHd+").A)(r,function(){var e=this;return(0,e._self._c)("span",[e._v(e._s(e.formattedDate))])},[],!1,null,null,null).exports},cpVg:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var i=n("quXc"),o=n.n(i),a=n("qRxh"),s=n("EnQL"),r=n.n(s),l=n("akzv"),c=n("Cpa8");const d={enableTime:!0,wrap:!0,altFormat:`${l.Ay.dateFlatpickrFormat} ${l.Ay.timeFlatpickrFormat}`,altInput:!0,dateFormat:"m/d/Y h:i K",allowInput:!1,altInputClass:"input-group date form-control input"};!function(){const e=l.Ay.language;"en"!==e&&n("li5H")(`./${e}.js`).then(e=>{a.default.localize(e.default.fr)})}();var u={name:"DateTimePicker",props:{value:{type:Number,required:!1},id:{type:String,required:!1},options:{type:Object,required:!1},date:{type:String,required:!1},time:{type:String,default:""},meridiem:{type:String,default:""},timezone:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:String,required:!1,default:"date"},errorBag:{type:Object,required:!1},errorFor:{type:String,required:!1},keepErrorsOnDestroy:{type:Boolean,default:!1},placeholderKey:{type:String,required:!1,default:"common.date.selectDate"},iconName:{type:String,required:!1,default:"icon-th"},iconType:{type:String,required:!1,default:"fontellow"}},data(){const e={dateInternal:null,timeInternal:this.time,meridiemInternal:this.meridiem,mergedOptions:{},errorBagState:this.errorBag,placeholder:c.A.t(this.placeholderKey)};return this.isErrorHandlingConfigured()&&(e.state={pristine:!0,isValid:!0,errMsg:"",showImmediateError:!1},e.state.isValid=!this.errorBag.has(this.errorFor),e.state.isValid||(e.state.errMsg=this.errorBag.first(this.errorFor))),e},components:{FlatPickr:o()},computed:{computedClass(){let e={};return this.disabled&&(e.disabled=!0),this.isErrorHandlingConfigured()&&this.errorBagState.highlightErrors&&this.errorBagState.errors[this.errorFor]&&!this.errorBagState.errors[this.errorFor].isValid&&(e.textAlertError=!0),e}},created(){this.isErrorHandlingConfigured()&&this.initializeErrorBag(),this.mergedOptions=Object.assign({},d,this.options,{}),this.timezone&&(this.mergedOptions.altFormat=this.mergedOptions.altFormat+" "+this.timezone),this.mergedOptions.enableTime||(this.mergedOptions.altFormat=this.options.altFormat||l.Ay.dateFlatpickrFormat,this.mergedOptions.dateFormat=this.options.dateFormat||"m/d/Y"),this.dateInternal=this.assembleDateFromParts(),void 0!==this.value&&(this.usingTimestemp=!0,this.dateInternal=this.value)},mounted(){this.flatpickr=this.$el._flatpickr},beforeDestroy(){!this.keepErrorsOnDestroy&&this.isErrorHandlingConfigured()&&this.errorBagState.errors[this.errorFor]&&this.errorBagState.clearErrorFor(this.errorFor)},watch:{date(){p.call(this)},time(){this.timeInternal=this.time,p.call(this)},meridiem(){this.meridiemInternal=this.meridiem,p.call(this)}},methods:{initializeErrorBag(){this.errorBagState.errors[this.errorFor]?this.errorBagState.errors[this.errorFor]=this.state:this.$set(this.errorBagState.errors,this.errorFor,this.state),this.errorBagState.errors[this.errorFor].validate=()=>{}}
2,toggleOpen(){this.flatpickr.toggle()},setDate(e){this.flatpickr.setDate(e,!0)},onClose(e){const t=this.jsToRaveDateTime(e[0]);this.$emit("close",t)},dateChanged(e){const t=this.jsToRaveDateTime(e[0]);this.usingTimestemp?this.$emit("input",t?t.timestamp:null):this.$emit("input",t)},jsToRaveDateTime(e){if(!e)return null;const t=new(r())(e);if(this.options&&this.options.minuteIncrement){let e=t.minute();const n=e%this.options.minuteIncrement;n&&(e=n>=this.options.minuteIncrement/2?e+this.options.minuteIncrement-n:e-n,t.set("minute",e),this.timeInternal=t.format("hh:mm"),p.call(this))}const n={date:t.isValid()?t.format("MM/DD/YYYY"):"",time:t.isValid()?t.format("hh:mm"):"",meridiem:t.isValid()?t.format("A"):"",jsDate:e,moment:t,timestamp:e.getTime()};return this.mergedOptions.dateFormat&&(n.dateFormatted=this.flatpickr.formatDate(e,this.mergedOptions.dateFormat)),n},assembleDateFromParts(){return this.date&&""===this.timeInternal&&""===this.meridiemInternal?this.date:this.date&&this.timeInternal&&this.meridiemInternal?`${this.date} ${this.timeInternal} ${this.meridiemInternal}`:""},getDate(){return this.flatpickr.selectedDates[0]},getMoment(){return new(r())(this.getDate())},getRaveDateTime(){return this.jsToRaveDateTime(this.getDate())},clearPicker(){this.flatpickr&&(this.flatpickr.clear(),this.dateInternal=null)},isErrorHandlingConfigured(){return!(!this.errorBag||!this.errorFor)},close(){var e;null===(e=this.flatpickr)||void 0===e||e.close()}}};const p=function(){this.flatpickr.setDate(this.assembleDateFromParts())};var h=u,m=(0,n("KHd+").A)(h,function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-group date date-time-picker",class:e.computedClass,attrs:{id:e.id}},[t("flat-pickr",{ref:"flatInstance",staticClass:"form-control",attrs:{value:e.dateInternal,config:e.mergedOptions,placeholder:e.placeholder,name:e.name},on:{"on-close":function(t){return e.onClose(t)},"on-change":function(t){return e.dateChanged(t)}}}),e._v(" "),"fontAwesome"===e.iconType?t("div",[t("button",{staticClass:"input-group-append m-r-20 date-time-picker-rave-icon",on:{click:function(t){return e.toggleOpen()}}},[t("font-awesome-icon",{attrs:{icon:["rave",e.iconName]}})],1)]):t("div",{staticClass:"input-group-append",on:{click:function(t){return e.toggleOpen()}}},[t("div",{staticClass:"input-group-text"},[t("i",{class:e.iconName})])])],1)},[],!1,null,null,null).exports},"fH+4":function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("O3EO"),o=n("PcWQ"),a={props:{icon:{type:String,default:"icon-question"}},data:function(){return{tipContent:""}},mounted:function(){var e=o(this.$el).find("[tip-content]")[0];i.A.add(o(this.$el),e,{template:i.A.HelpTipTemplate})}},s=(0,n("KHd+").A)(a,function(){var e=this,t=e._self._c;return t("span",{staticClass:"raveWebFontIcon querycircle"},[t("span",{class:e.icon}),e._v(" "),t("div",{staticClass:"hide",attrs:{"tip-content-wrapper":""}},[t("div",{attrs:{"tip-content":""}},[e._t("default")],2)])])},[],!1,null,null,null).exports},jopW:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i={name:"RadioButton",model:{prop:"modelVal",event:"change"},props:{modelVal:{type:[String,Number,Boolean],default:""},value:{type:[String,Number,Boolean],default:""},id:{type:String,required:!1},disabled:{type:Boolean,default:!1},styled:{type:Boolean,default:!0}},data(){return{originalDataType:this.getModelValType()}},computed:{isChecked(){return this.castValueToOriginalType(this.value)===this.castValueToOriginalType(this.modelVal)}},methods:{changed(e){const t=this.castValueToOriginalType(e.target.value);this.$emit("change",t)},castValueToOriginalType(e){let t=e;return this.originalDataType===Number?t=+t:this.originalDataType===Boolean?t="string"==typeof e?"true"===t:!!t:this.originalDataType===String&&(t=String(t)),t},getModelValType(){let e=this.modelVal;switch(null==e&&(e=this.value),typeof e){case"number":return Number;case"boolean":return Boolean;default:return String}}}},o=(0,n("KHd+").A)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"radio-btn-wrap form-inline"},[t("label",{staticClass:"radio-btn-label",class:{disabled:e.disabled}},[t("input",{class:{"styled-checkbox":e.styled},attrs:{type:"radio",role:"radio","aria-checked":e.isChecked,id:e.id,disabled:!!e.disabled},domProps:{value:e.value,checked:e.isChecked},on:{change:function(t){return e.changed(t)}}}),e._v(" "),e.styled?t("span",{staticClass:"radio-custom",class:{"
2is-checked":e.isChecked,disabled:e.disabled}}):e._e(),e._v(" "),t("div",{staticClass:"radio-btn-rest"},[e._t("default")],2)]),e._v(" "),e._t("outside")],2)},[],!1,null,null,null).exports},"K+l+":function(e,t,n){"use strict";n.d(t,{Ay:function(){return s}});var i=n("8ZBC"),o=n.n(i);var a={name:"RegularTimer",props:{timerBus:{Object:Object,default:function(){return this.$bus}}},data:function(){return{intervalId:null}},mounted:function(){this.timerBus.$on("START_REGULAR_TIMER_EVENT",()=>{this.startRegularTimer()}),this.timerBus.$on("REGULAR_TIMER_DEACTIVATED",()=>{null!==this.intervalId&&clearInterval(this.intervalId)})},methods:{startRegularTimer:function(){null!==this.intervalId&&clearInterval(this.intervalId),this.intervalId=o()(e=>{this.$el.innerText=e.seconds},new Date,o().SECONDS)}}},s=(0,n("KHd+").A)(a,function(){var e=this._self._c;this._self._setupProxy;return e("span",{attrs:{id:"regularTimer"}})},[],!1,null,null,null).exports},bDMI:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n("L5+t"),o=n("CmcD"),a=n.n(o),s=n("uXSz"),r=n("PcWQ");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}r.fn.select2||a()(r);var d={name:"select2",props:["options","value","config"],mounted:function(){const e=this.preInitialize();r(this.$el).select2(e).val(this.normalizeValue(this.value)).trigger("change").on("change",e=>{let t=r(e.currentTarget).val();r.isArray(t)||t===this.lastValue?"string"==typeof t?t!==this.lastValue&&this.$emit("input",this.normalizeReturnValue(t)):0===r(t).not(this.lastValue).length&&0===r(this.lastValue).not(t).length||this.$emit("input",t):this.$emit("input",this.normalizeReturnValue(t)),this.lastValue=t}).on("select2:clearing",()=>{this.$emit("cleared")}),r.isArray(this.value)&&setTimeout(()=>{r(this.$el).select2("val",this.normalizeValue(this.value))},0),this.postInitialize(e)},watch:{value:function(e){null!=e&&(Array.isArray(e)?[...e].sort().join(",")!==[...r(this.$el).val()].sort().join(",")&&r(this.$el).val(this.normalizeValue(e)).trigger("change"):r(this.$el).val(this.normalizeValue(e)).trigger("change"))},options:{handler:function(){const e=this.preInitialize();this.$nextTick(()=>{r(this.$el).select2("destroy").empty().select2(e),r(this.$el).val(this.normalizeValue(this.value)).trigger("change"),this.postInitialize(e)})},deep:!0}},destroyed:function(){r(this.$el).off().select2("destroy")},computed:{rawOptions(){return this.preProcessData()}},methods:{preInitialize(){var e;let t=this.withMatcher(this.config);t=this.withConfigDefaults(t),t=this.customCss(t),this.datatype=typeof this.value;let n=this.$slots.default&&this.$slots.default.length>0,i=this.options&&this.options.length>0;return n||!i?t:(null===(e=this.rawOptions)||void 0===e?void 0:e.length)<1e3?(t.data=this.rawOptions,t):(t.ajax={transport:(e,t)=>{var n,i;const o=(null==e||null===(n=e.data)||void 0===n?void 0:n.page)||1,a=null!=e&&null!==(i=e.data)&&void 0!==i&&i.term?e.data.term.toLowerCase():"",s=a?this.filterOptionsByTerm(this.rawOptions,a):this.rawOptions,r=10*(o-1),l=r+10;t({results:s.slice(r,l),pagination:{more:l<s.length}})},delay:250},t)},postInitialize(e){var t;this.select2Instance=r(this.$el).data("select2");let n=this.$vnode.data.staticClass||"";this.$vnode.data.class&&(n+=" "+Object.keys(this.$vnode.data.class).map(e=>this.$vnode.data.class[e]?e:"").join(" ")),e&&e.containerClass&&(n+=e.containerClass);const i=this.$vnode.data.style||this.$vnode.data.staticStyle;if(n&&this.select2Instance.$container.addClass(n),i&&this.select2Instance.$container.css(i),this.dropdownCssClass&&this.select2Instance.$dropdown.addClass(this.dropdownCssClass),(null===(t=this.rawOptions)||void 0===t?void 0:t.length)>1e3&&this.value)if(r(this.$el).find(`option[value="${r.escapeSelector(this.value)}"]`).length)r(this.$el).val(this.value).trigger("change");else{let e=new Option(this.value,this.value,!0,!0);r(this.$el).append(e).trigger("change")}},normalizeReturnValue(e){let t;return t="boolean"===this.datatype?""===e?"":"true"===e.toLowerCase():"number"===this.datatype?+e:e,t},withMatcher:function(e){return(e=r.extend({},e)).matcher||(e.matcher=this.matchCustom.bind(this)),e},preProcessData(){return Array.isArray(this.options)&&this.options.length?this.options.map(e=>{var t;return"string"!=typeof e.id&&"number"!=typeof e.id&&null!==(t=this.config)&&void 0!==t&&t.key?c(c({},e),{},{$$id:e.id,id:e[this.config.key]??e.id}):e}):this.options},withConfigDefaults:function(e){return(e=r.extend({},e))||(e.width="100%"),e.width||(e.width=null),e},customCss(e){return(e=r.extend({},e)).dropdownCssClass&&(this.dropdownCssClass=e.dropdownCssClass,delete e.dropdownCssClass),e},normalizeValue:function(e){return null==e?-1:e+""},matchCustom:function(e,t){if(""===(0,s.trim)(e.term))return t;var n=(0,s.trim)(e.term);return n.startsWith("*")||(n="*"+n+"*"),(0,s._match)(n,t.text||t.value||t.name)?t:(t.text,null)},focus(){r(this.$el).select2("focus")},triggerChange(){setTimeout(()=>{r(this.$el).trigger("change")},0)},filterOptionsByTerm(e,t){const n=t.toLowerCase();return e.filter(e=>{const t=e.name&&e.name.toLowerCase().includes(n),i=e.text&&e.text.toLowerCase().includes(n);return t||i})}}},u=(0,n("KHd+").A)(d,function(){var e=this,t=e._self._c;return t("select",{staticClass:"select2-hidden-accessible"},[e.config&&e.config.placeholder?t("option"):e._e(),e._v(" "),e._t("default")],2)},[],!1,null,null,null).exports},JtxK:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("+cQT"),o={props:{ajax:{type:Object,required:!1,default:null},maximumSelectionLength:{type:Number,required:!1,default:0},multiple:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!1,default:()=>[]},placeholder:{type:String,required:!1,default:""}},setup(e,t){const n=(0,i.ref)(null),o=(0,i.ref)(null),a=(0,i.ref)(!1),s=(0,i.ref)(""),r=(0,i.ref)(0),l=(0,i.ref)(e.multiple?[]:null),c=(0,i.ref)(-1),d=(0,i.ref)([]),u=e=>{null==n.value||n.value.contains(e.target)||(a.value=!1,c.value=-1)};function p(){a.value=!1,s.value="",r.value=0,l.value=e.multiple?[]:null,c.value=-1,d.value=[];for(let t=0;t<e.options.length;++t)d.value.push(e.options[t])}(0,i.onMounted)(()=>{document.body.addEventListener("click",u)}),(0,i.onUnmounted)(()=>{document.body.removeEventListener("click",u),p()});for(let t=0;t<e.options.length;++t)d.value.push(e.options[t]);let h=null;function m(n){e.multiple?l.value.includes(n)||l.value.push(n):l.value=n,t.emit("input",l.value)}return(0,i.watch)(d,e=>{t.emit("resultsChanged",e)}),{clickHandler:function(){d.value instanceof Array&&d.value.length>0&&(a.value=!0,c.value=0),o.value.focus()},container:n,handleInput:function(t){var n;s.value=t.target.value,null!=e.ajax&&(null!=h&&clearTimeout(h),h=setTimeout(()=>{!async function(){if("function"==typeof e.ajax.data){const t=e.ajax.data({term:s.value,page:r.value}),n=new URLSearchParams(t),i=await fetch(`${e.ajax.url}?${n}`),o=await i.json();let l=o;"function"==typeof e.ajax.processResults&&(l=e.ajax.processResults(o)),d.value=l.results,d.value instanceof Array&&d.value.length>0?(a.value=!0,c.value=0):(a.value=!1,c.value=-1)}}()},(null===(n=e.ajax)||void 0===n?void 0:n.delay)||0))},handleKeydown:function(e){if(a.value&&0!==d.value.length)switch(e.key){case"ArrowDown":e.preventDefault(),c.value=(c.value+1)%d.value.length;break;case"ArrowUp":e.preventDefault(),c.value=c.value<=0?d.value.length-1:c.value-1;break;case"Enter":e.preventDefault(),c.value>
2=0&&c.value<d.value.length&&(m(d.value[c.value].id),a.value=!1,c.value=-1);break;case"Escape":e.preventDefault(),a.value=!1,c.value=-1}},handleMouseEnter:function(e){c.value=e},highlightedIndex:c,input:o,opened:a,page:r,privateOptions:d,reset:p,select:m,term:s}}},a=(n("Hgl5"),(0,n("KHd+").A)(o,function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"container",on:{click:e.clickHandler}},[t("input",{ref:"input",attrs:{type:"search",role:"combobox",placeholder:e.placeholder,autocomplete:"off"},domProps:{value:e.term},on:{input:e.handleInput,keydown:e.handleKeydown}}),e._v(" "),t("div",{style:{width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center"}},[t("font-awesome-icon",{style:{height:"20px",color:"#667085"},attrs:{icon:["rave","chevron-down"]}})],1),e._v(" "),e.opened?t("div",{staticClass:"options"},e._l(e.privateOptions,function(n,i){return t("div",{key:`${n.id}-${n.text}`,staticClass:"option",class:{highlighted:i===e.highlightedIndex},on:{click:function(t){return e.select(n.id)},mouseenter:function(t){return e.handleMouseEnter(i)}}},[e._v("\n            "+e._s(n.text)+"\n        ")])}),0):e._e()])},[],!1,null,"d425fc8e",null).exports)},Ge8O:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("+cQT"),o={__name:"TextBox",props:{id:String,autocomplete:{type:String,default:"off",required:!1},autofocus:{type:Boolean,default:!1,required:!1},autofilled:{type:Boolean,default:!1,required:!1},error:{type:Boolean,default:!1},modelValue:{type:String,required:!1},name:{type:String,required:!1},placeholder:{type:String,default:""},type:{type:String,default:"text"},value:{type:String,required:!1}},emits:["input","update:modelValue","update:autofilled"],setup(e,t){let{emit:n}=t;const o=e,a=Vue.version.startsWith("3"),s=(0,i.computed)(()=>o.name?o.name:o.id),r=(0,i.computed)(()=>a?o.modelValue:o.value),l=(0,i.ref)(null),c=(0,i.ref)(!1),d=(0,i.computed)(()=>c.value?["rave","eye"]:["rave","eye-off"]),u=(0,i.computed)(()=>"password"===o.type?c.value?"text":"password":o.type);return(0,i.onMounted)(()=>{setTimeout(()=>{l.value.matches(":autofill")&&n("update:autofilled",!0)},100)}),{__sfc:!0,props:o,isVue3:a,nameComputed:s,valueComputed:r,emit:n,input:l,passwordVisible:c,eyeIcon:d,typeComputed:u,emitUpdate:function(e){var t;a?n("update:modelValue",e.target.value):Vue.version.startsWith("2")&&n("input",e.target.value),n("update:autofilled",null===(t=l.value)||void 0===t?void 0:t.matches(":autofill"))}}}},a=(n("dUSo"),(0,n("KHd+").A)(o,function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"container"},[t("input",{ref:"input",class:{error:e.error},attrs:{id:e.id,name:n.nameComputed,placeholder:e.placeholder,autofocus:e.autofocus,autocorrect:"off",autocapitalize:"off",spellcheck:"false",autocomplete:e.autocomplete,type:n.typeComputed},domProps:{value:n.valueComputed},on:{input:n.emitUpdate}}),e._v(" "),"password"===e.type?t("div",{staticClass:"eye-button",on:{click:function(e){n.passwordVisible=!n.passwordVisible}}},[t("font-awesome-icon",{style:{fontSize:"20px"},attrs:{icon:n.eyeIcon}})],1):e._e()])},[],!1,null,"f6cf8316",null).exports)},lJwB:function(e,t,n){"use strict";n.d(t,{A:function(){return l},px:function(){return a}});var i={colorChecked:"#75C791",colorUnchecked:"#bfcbd9",cssColors:!1,labelChecked:"on",labelUnchecked:"off",width:60,height:30,margin:3};const o=function(e,t){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t)},a=function(e){return e+"px"};var s={CHANGE_TOGGLE:"CHANGE_TOGGLE",props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},sync:{type:Boolean,default:!0},speed:{type:Number,default:300},spinnerOn:{type:Boolean,default:void 0},manual:{type:Boolean,default:!1},config:{type:Object,default:()=>({})},color:{type:[String,Object],validator:function(e){return"object"==typeof e?e.checked||e.unchecked:"string"==typeof e}},cssColors:{type:Boolean,default:!0},labels:{type:[Boolean,Object],default:!1,validator:function(e){return"object"==typeof e?e.checked||e.unchecked:"boolean"==typeof e}},cssOff:{type:String},cssOn:{type:String},height:{type:Number,default:i.height},width:{type:Number,default:i.width}},computed:{className:function(){var e=this.toggled,t=this.disabled,n=this.cssOn,i=this.cssOff,o=["vue-js-switch",{toggled:e,disabled:t}];return e&&n&&o.push(n),!e&&i&&o.push(i),o},ariaChecked:function(){return this.toggled.toString()},coreStyle:function(){return{width:a(this.width),height:a(this.height),backgroundColor:this.cssColors?null:this.backgroundColorCurrent,borderRadius:a(Math.round(this.height/2))}},buttonRadius:function(){return this.height-2*i.margin},distance:function(){return a(this.width-this.height+i.margin)},buttonStyle:function(){return{width:a(this.buttonRadius),height:a(this.buttonRadius),transition:"transform "+this.speed+"ms",transform:this.toggled?"translate3d("+this.distance+", 3px, 0px)":null}},labelStyle:function(){return{lineHeight:a(this.height)}},colorChecked:function(){const e=this.getConstants();var t=this.color;return"object"!=typeof t?t||e.colorChecked:o(t,"checked")?t.checked:e.colorChecked},colorUnchecked:function(){var e=this.color;return o(e,"unchecked")?e.unchecked:i.colorUnchecked},backgroundColorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return o(this.labels,"checked")?this.labels.checked:i.labelChecked},labelUnchecked:function(){return o(this.labels,"unchecked")?this.labels.unchecked:i.labelUnchecked},spinnerCss(){return this.pristine||void 0===this.spinnerOn?"d-none":this.spinnerOn?"rave-fadeIn":"rave-fadeOut"}},watch:{value:function(e){this.sync&&(this.toggled=e),this.pristine=!1}},data:function(){return{toggled:!!this.value,pristine:!0}},mounted:function(){var e=this;this.$bus.$on(this.CHANGE_TOGGLE,function(t){e.toggled=t,e.$emit("change",{value:e.toggled,srcEvent:event})})}
2,methods:{toggle(){if(this.manual)return!1;this.pristine=!1,this.toggled=this.manual?this.value:!this.toggled,this.$emit("input",this.toggled)},getConstants:()=>i,setState(e){this.toggled=e,this.$emit("input",this.toggled)}}},r=(0,n("KHd+").A)(s,function(){var e=this,t=e._self._c;return t("div",[t("label",{class:e.className,attrs:{role:"checkbox","aria-checked":e.ariaChecked}},[t("input",{staticClass:"v-switch-input",attrs:{type:"checkbox"},on:{change:function(t){return t.stopPropagation(),e.toggle.apply(null,arguments)}}}),e._v(" "),t("div",{staticClass:"v-switch-core",style:e.coreStyle},[t("div",{staticClass:"v-switch-button",style:e.buttonStyle},[t("div",{staticClass:"spin-kit",class:e.spinnerCss},[t("span",{staticClass:"icon-spin3 animate-spin",attrs:{"spin-kit-internal":"",title:"Loading..."}})])]),e._v(" "),e.labels?[e.toggled?t("span",{staticClass:"v-switch-label v-left",style:e.labelStyle,domProps:{innerHTML:e._s(e.labelChecked)}}):t("span",{staticClass:"v-switch-label v-right",style:e.labelStyle,domProps:{innerHTML:e._s(e.labelUnchecked)}})]:e._e()],2)])])},[],!1,null,null,null),l=r.exports},"981F":function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var i=n("MBdx"),o=n("PcWQ"),a={name:"TweetBox",extends:i.A,props:{limit:{type:Number,default:140},value:{type:String},showCounter:{type:Boolean,default:!1},rows:{type:Number,default:2},inputClass:{type:String,required:!1},inputStyle:{type:String,required:!1},readonly:{type:Boolean,require:!1,default:!1},id:{type:String,default:""+Math.random()}},data:function(){return{htmlId:this.id+"html"}},computed:{valueAllowed(){var e;return this.limit?null===(e=this.value)||void 0===e?void 0:e.slice(0,this.limit):this.value},valueExcess(){var e,t,n,i;return"\n"===(null===(e=this.value)||void 0===e?void 0:e.slice((null===(t=this.value)||void 0===t?void 0:t.length)-1))?this.limit?(null===(i=this.value)||void 0===i?void 0:i.slice(this.limit))+" ":"":this.limit?null===(n=this.value)||void 0===n?void 0:n.slice(this.limit):""},limitStatus(){var e;return(null===(e=this.value)||void 0===e?void 0:e.length)/this.limit*100},remainingCharacters(){var e;return this.limit-(null===(e=this.value)||void 0===e?void 0:e.length)}},mounted(){let e=this;o("#"+this.id).on("scroll",function(){o("#"+e.htmlId).scrollTop(o(this).scrollTop())})},methods:{}},s=(0,n("KHd+").A)(a,function(){var e=this,t=e._self._c;return t("div",{class:[e.$options.name,{"has-exceeded-limit":e.limitStatus>100}]},[t("div",{class:`${e.$options.name}__htmlarea`,attrs:{id:e.htmlId,"aria-hidden":""}},[e._v(e._s(e.valueAllowed)),e.valueExcess?t("span",[e._v(e._s(e.valueExcess))]):e._e()]),e._v(" "),t("span",{staticClass:"rave-tweetbox"},[t("textarea",{ref:"textarea",class:e.inputClass+` ${e.$options.name}__textarea`,style:e.inputStyle,attrs:{id:e.id,maxlength:e.maxlength,placeholder:e.placeholder,rows:e.rows,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.value},on:{input:function(t){return e.handleInput(t)}}})]),e._v(" "),e.showCounter?t("div",{class:`${e.$options.name}__limit`},[t("span",{class:`${e.$options.name}__remainingCharacters`},[e._v("\n      "+e._s(e.remainingCharacters)+"\n    ")]),e._v(" "),t("svg",{class:`${e.$options.name}__counter`,attrs:{viewBox:"0 0 33.83098862 33.83098862",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{class:`${e.$options.name}__counterUnderlay`,attrs:{cx:"16.91549431",cy:"16.91549431",r:"15.91549431",fill:"none","stroke-width":"2"}}),e._v(" "),t("circle",{class:`${e.$options.name}__counterProgress`,attrs:{"stroke-dasharray":`${e.limitStatus},100`,cx:"16.91549431",cy:"16.91549431",r:"15.91549431",fill:"none","stroke-width":"4"}})])]):e._e()])},[],!1,null,null,null).exports},fPvG:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var i=n("PcWQ");n("4N3r");var o={name:"ColorPicker",props:{value:{type:String,required:!1}},data:()=>({}),mounted(){i(this.$el).find(".color-picker").colorPicker({renderCallback:e=>{e.text&&(this.$emit("input",e.text),this.$emit("color-picked",{backgroundColor:e._css.backgroundColor,color:e._css.color}))}})}},a=(0,n("KHd+").A)(o,function(){var e=this._self._c;return e("div",[e("input",{staticClass:"r4 textField-100 color-picker",attrs:{type:"text"},domProps:{value:this.value}})])},[],!1,null,null,null).exports},bwlw:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},A:function(){return s}});var i=n("Cpa8");const o={PLUS_MINUS:"PLUS_MINUS",TRIANGLE_UP_DOWN:"TRIANGLE_UP_DOWN"};var a={name:"ExpanderControl",props:{type:{type:String,default:o.PLUS_MINUS},useFontAwesome:{type:Boolean,default:!1},value:{type:Boolean,default:!0},skipEvents:{type:Boolean,default:!1}},watch:{value(){this.isExpanded=this.value}},data(){return{isExpanded:this.value,Type:o,i18n:{collapse:i.A.t("common.collapse"),expand:i.A.t("common.expand")}}}
2,methods:{toggle(){this.skipEvents||(this.isExpanded=!this.isExpanded,this.$emit("input",this.isExpanded))}}},s=(0,n("KHd+").A)(a,function(){var e=this,t=e._self._c;return t("button",{staticClass:"expander-control",class:[e.isExpanded?"is-expanded":"is-collapsed"],attrs:{type:"button",title:e.isExpanded?e.i18n.collapse:e.i18n.expand},on:{click:function(t){return e.toggle()}}},[t("div",{staticClass:"expander-control-wrapper",class:{"ec-plus-minus":e.type===e.Type.PLUS_MINUS}},[e.type===e.Type.PLUS_MINUS?[e.useFontAwesome?[e.isExpanded?t("font-awesome-icon",{attrs:{icon:["rave","raveCollapse"]}}):t("font-awesome-icon",{attrs:{icon:["rave","raveExpand"]}})]:[t("div",{staticClass:"expander-horizontal"}),e._v(" "),t("div",{staticClass:"expander-vertical"})]]:[t("div",{staticClass:"icon-arrow-down"})]],2)])},[],!1,null,null,null).exports},Lcm2:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var i=n("CIKd"),o=n("xEXe"),a=n("Cpa8"),s=n("PcWQ");const r="upload-file-url";var l={data:function(){return{filesList:this.files,inTransitFileCount:0,inTransitFileSize:0,totalLoaded:0,success:!1,error:!1,uploaderService:new i.A(this.urls),i18n:{dd:a.A.t("mgtConsole.alerts.attachments.ddToAttach"),browse:a.A.t("mgtConsole.alerts.attachments.orBrowse"),uploading:a.A.t("mgtConsole.alerts.attachments.uploading"),done:a.A.t("common.buttonLabel.done"),error:a.A.t("error.error"),uploadMore:a.A.t("mgtConsole.alerts.attachments.uploadMore"),tryAgain:a.A.t("mgtConsole.alerts.attachments.tryAgain")}}},props:{urls:{type:Object,required:!1},clientSideOnly:{type:Boolean,required:!1,default:!1},files:{type:Array,required:!1,default:function(){return[]}},limit:{type:Object,default:function(){return{count:10,size:1e7}}},preDelete:{type:Function,required:!1},skipForm:{type:Boolean,default:!1},accept:{type:String,default:null},name:{type:String,default:null},skipResetInput:{type:Boolean,default:!1},suppressErrors:{type:Boolean,default:!1}},mounted:function(){const e=this,t=s(this.$el),n=this.form=this.skipForm?t.parents("form"):t.find("form"),i=this.input=t.find('input[type="file"]');c&&this.setupDragAndDrop();const a=t.find("[progress-bar]");this.progressBar=new o.A({anchor:a}),i.on("change",function(t){e.triggerFormSubmit(t)}),n.on("submit",function(t){e.handleFormSubmit(t)}),i.on("focus",function(){i.addClass("has-focus")}),i.on("blur",function(){i.removeClass("has-focus")})},computed:{hasAdvancedUpload:function(){return{"has-advanced-upload":c}},gotFiles:function(){return this.filesList.length>0},hasSlot(){return!!this.$slots.default}},methods:{setupDragAndDrop:function(){var e=this,t=this.form,n="Files";function i(e){var t=e.originalEvent.dataTransfer.types;if(t){if(t.includes&&t.includes(n))return!1;if(t.contains&&t.contains(n))return!!t.contains("text/uri-list")}return!0}["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(e){t.on(e,function(e){e.preventDefault(),e.stopPropagation()})}),["dragover","dragenter"].forEach(function(e){t.on(e,function(e){i(e)||t.addClass("is-dragover")})}),["dragleave","dragend","drop"].forEach(function(e){t.on(e,function(){t.removeClass("is-dragover")})}),t.on("drop",function(t){i(t)||(e.droppedFiles=t.originalEvent.dataTransfer.files,e.triggerFormSubmit(t))})},handleFormSubmit(e){if(this.form.hasClass("is-uploading"))return!1;if(this.form.removeClass("is-error"),c){e.preventDefault();const t=this.droppedFiles||this.input[0].files;try{this.hasSlot&&this.droppedFiles&&(this.input[0].files=this.droppedFiles)}catch(e){return}const n=this.dropAccept(t);if(!n.valid)return this.resetInput(),void this.$emit("upload-not-accepted",n);this.clientSideOnly?this.loadFilesClientSide(t):this.uploadFiles(t),this.droppedFiles=null}},uploadFiles(e){var t=s(this.$el).find(".box__error span");let n=e.length,o=Array.prototype.reduce.call(e,(e,t)=>e+t.size,0);this.inTransitFileCount+=n,this.inTransitFileSize+=o;let a=0;this.uploaderService.upload(e,this.suppressErrors,(e,t,n)=>{this.totalLoaded+=n-a,a=n,this.updateProgress()}).done(e=>{e.files=e.files||e.shapes,(e.success||e.status)&&this.renderUploadedFileList(e.files),this.resetInput(),this.$emit("upload-file",e.files,this.filesList),this.inTransitFileCount-=n,this.inTransitFileSize-=o,this.totalLoaded-=a,this.updateProgress()}).fail(e=>{t.textContent=void 0!==e.error?e.error:Rave.Lang.t(e.responseJSON.errorMessageKey),this.resetInput(),this.$emit("upload-not-accepted",{valid:!1,code:i.A.ErrorType.WRONG_FORMAT,reason:t.textContent}),this.inTransitFileCount-=n,this.inTransitFileSize-=o,this.totalLoaded-=a,this.updateProgress()})},loadFilesClientSide(e){const t=Array.from(e).map(e=>({name:e.name,size:e.size,uploadDateStr:e.lastModifiedDate,data:"",originalFile:e}));this.renderUploadedFileList(t);const n=new FileReader,i=new FileReader;let o=0;const a=e.length;n.onload=e=>{const n=function(e){let t="";const n=new Uint8Array(e),i=n.byteLength;for(let e=0;e<i;e++)t+=String.fromCharCode(n[e]);return t}(e.target.result);t[o].data=n,o++,this.updateProgress(),o===a&&this.$emit("upload-file",t,this.filesList)},i.onload=e=>{this.$emit(r,{data:e.target.result,name:e.target.fileName,size:e.target.size})}
2,Array.from(e).forEach(e=>{this.$listeners[r]?(i.fileName=e.name,i.size=e.size,i.readAsDataURL(e)):n.readAsArrayBuffer(e)}),this.skipResetInput||this.resetInput()},triggerFileSelect:function(e){e.preventDefault(),this.input.trigger("click")},triggerFormSubmit:function(){var e=this.form[0],t=document.createEvent("HTMLEvents");t.initEvent("submit",!0,!0),e.dispatchEvent(t)},showFiles:function(e){var t=s(this.$el).find("label"),n=this.input;t.textContent=e.length>1?(n.attr("data-multiple-caption")||"").replace("{count}",e.length):e[0].name},updateProgress:function(){0===this.inTransitFileSize?setTimeout(()=>{this.progressBar.destroyWithFade()},2e3):(this.progressBar.active||this.progressBar.render(),this.progressBar.setProgress(100*this.totalLoaded/this.inTransitFileSize))},renderUploadedFileList:function(e){this.filesList=this.filesList.concat(e)},clearFiles:function(e){if(!e)for(let e=0;e<this.filesList.length;e++)this.uploaderService.deleteFile(this.filesList[e]);this.filesList.splice(0)},deleteFile:function(e,t,n){this.$refs.fileListComponent.deleteFile(e,t,n)},fileDeleted(){this.resetInput();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit("delete-file",...t)},resetInput:function(){this.form[0].reset(),this.droppedFiles=null},dropAccept:function(e){if(e.length+this.filesList.length+this.inTransitFileCount>this.limit.count)return{valid:!1,code:i.A.ErrorType.LIMIT_EXCEEDED,reason:"file count limit reached"};let t=this.inTransitFileSize;return t+=Array.prototype.reduce.call(e,(e,t)=>e+t.size,0),t+=Array.prototype.reduce.call(this.filesList,(e,t)=>e+t.size,0),t>this.limit.size?{valid:!1,code:i.A.ErrorType.LIMIT_EXCEEDED,reason:"file size limit reached"}:Array.prototype.some.call(e,function(e){if(0===e.size)return!0})?{valid:!1,code:i.A.ErrorType.EMPTY,reason:"file(s) cannot be empty"}:{valid:!0}}}};const c=function(){const e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}();var d=l,u=(0,n("KHd+").A)(d,function(){var e=this,t=e._self._c;return t("div",[e.hasSlot?t("div",[e.skipForm?t("div",{staticClass:"bootstrap3",class:e.hasAdvancedUpload},[t("input",{staticClass:"box__file",attrs:{type:"file",name:e.name,"data-multiple-caption":"{count} files selected",multiple:"",accept:e.accept}})]):t("form",{staticClass:"bootstrap3",class:e.hasAdvancedUpload,attrs:{method:"post",enctype:"multipart/form-data",novalidate:""}},[t("input",{attrs:{type:"hidden",name:"ajax",value:"1"}}),e._v(" "),t("input",{staticClass:"box__file",attrs:{type:"file",name:"files[]","data-multiple-caption":"{count} files selected",multiple:"",accept:e.accept}})]),e._v(" "),t("span",{on:{click:function(t){return e.triggerFileSelect(t)}}},[e._t("default")],2),e._v(" "),t("div",{staticClass:"m-t-20",attrs:{"progress-bar":""}})]):t("div",{staticClass:"upload-container"},[t("form",{staticClass:"box bootstrap3",class:e.hasAdvancedUpload,attrs:{method:"post",enctype:"multipart/form-data",novalidate:""}},[t("input",{attrs:{type:"hidden",name:"ajax",value:"1"}}),e._v(" "),e.filesList.length>0?t("file-list",{ref:"fileListComponent",attrs:{files:e.filesList,uploaderService:e.uploaderService,"pre-delete":e.preDelete},on:{"delete-file":e.fileDeleted}}):e._e(),e._v(" "),t("div",{staticClass:"box__input"},[0==e.filesList.length?t("svg",{staticClass:"box__icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"43",viewBox:"0 0 50 43"}},[t("path",{attrs:{d:"M48.4 26.5c-.9 0-1.7.7-1.7 1.7v11.6h-43.3v-11.6c0-.9-.7-1.7-1.7-1.7s-1.7.7-1.7 1.7v13.2c0 .9.7 1.7 1.7 1.7h46.7c.9 0 1.7-.7 1.7-1.7v-13.2c0-1-.7-1.7-1.7-1.7zm-24.5 6.1c.3.3.8.5 1.2.5.4 0 .9-.2 1.2-.5l10-11.6c.7-.7.7-1.7 0-2.4s-1.7-.7-2.4 0l-7.1 8.3v-25.3c0-.9-.7-1.7-1.7-1.7s-1.7.7-1.7 1.7v25.3l-7.1-8.3c-.7-.7-1.7-.7-2.4 0s-.7 1.7 0 2.4l10 11.6z"}})]):e._e(),e._v(" "),t("input",{staticClass:"box__file",attrs:{type:"file",name:"files[]","data-multiple-caption":"{count} files selected",multiple:"",accept:e.accept}}),e._v(" "),t("label",{attrs:{"upload-label":""},on:{click:function(t){return e.triggerFileSelect(t)}}},[e._v(e._s(e.i18n.dd)+" "),t("a",{staticClass:"rave-blue-link-lg box__dragndrop"},[e._v(e._s(e.i18n.browse))]),e._v(".")]),e._v(" "),t("button",{staticClass:"box__button",attrs:{type:"submit"}},[e._v("Upload")])]),e._v(" "),t("div",{staticClass:"box__uploading"},[e._v(e._s(e.i18n.uploading))]),e._v(" "),e.success?t("div",{staticClass:"box__success"},[e._v(e._s(e.i18n.done)+" "),t("a",{staticClass:"rave-blue-link-lg box__restart",attrs:{href:"",role:"button"},on:{click:function(t){return e.triggerFileSelect(t)}}}
2,[e._v(e._s(e.i18n.uploadMore))])]):e._e(),e._v(" "),e.error?t("div",{staticClass:"box__error"},[e._v(e._s(e.i18n.error)+" "),t("span"),e._v(". "),t("a",{staticClass:"box__restart",attrs:{href:"",role:"button"}},[e._v(e._s(e.i18n.tryAgain))])]):e._e(),e._v(" "),t("div",{attrs:{"progress-bar":""}})],1)])])},[],!1,null,null,null).exports},"0AVP":function(e,t,n){"use strict";n.d(t,{V:function(){return i},A:function(){return a}});const i={LEFT:"LEFT",CENTER:"CENTER"};var o={name:"TabMenu",props:{orientation:{type:String,default:i.LEFT},shadow:{type:Boolean,required:!1},chickletMode:{type:Boolean,default:!1}},computed:{menuClasses(){let e="";return this.chickletMode||(e+=this.orientation===i.LEFT?"":"nav-equispace"),e+=this.shadow?" nav-shadow-top":"",e+=this.chickletMode?" chicklet-mode ":"",e}}},a=(0,n("KHd+").A)(o,function(){var e=this;return(0,e._self._c)("div",{staticClass:"nav nav-tabs",class:e.menuClasses,attrs:{role:"tablist"}},[e._t("default")],2)},[],!1,null,null,null).exports},K9hY:function(e,t,n){"use strict";n.d(t,{o:function(){return s},A:function(){return l}});var i=n("nQlO"),o=n("PcWQ"),a=n.n(o);const s=i.o;var r={props:{overlay:{type:Boolean,default:!1},isRelative:{type:Boolean,default:!1},layout:{type:String,default:s.DEFAULT},alwaysShow:{type:Boolean,default:!1},animate:{type:Boolean,required:!1},title:{type:String,required:!1}},data(){return{show:this.alwaysShow}},watch:{animate(){this.animate?this.start():this.stop()}},mounted(){this.spinKit=new i.A({anchor:a()(this.$el),overlay:this.overlay,affectParent:!1,layoutStrategy:this.layout,alwaysShow:this.alwaysShow,title:this.title})},methods:{start(){this.spinKit.show().start(),this.show=!0;var e=a()(this.$el).parent();this.oldPosition=e.css("position"),e.css("position","relative")},stop(){if(!this.show)return;this.alwaysShow?this.spinKit.stop():this.spinKit.hideAnimated().done(()=>{this.show=!1});a()(this.$el).parent().css("position",this.oldPosition||"")}},beforeDestroy(){this.spinKit.destroy(),a()(this.$el).parent().css("position",this.oldPosition||"")}},l=(0,n("KHd+").A)(r,function(){var e=this;return(0,e._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"spin-kit-component",class:{"spin-kit-large":e.overlay}})},[],!1,null,null,null).exports},woUU:function(e,t,n){"use strict";n.d(t,{$F:function(){return a},Ay:function(){return r}});n("EMDz");var i=n("9oYx"),o=n("PcWQ"),a="TAG_IT_CLOSE_OUT",s={name:"rave-tag-it",props:{value:{type:String,default:""},resourceType:{type:String,default:"DomainAlertMsg"},resourceId:{type:Number},saveUrl:{type:String},autocompleteUrl:{},tooltip:{type:String,default:"mgtConsole.reports.tags.toolTip",required:!1},readonly:{type:Boolean,default:!1}},data:function(){return{tags:this.value,serviceBase:new i.A}},mounted:function(){var e=this,t=o(this.$el);t.find(".ra-tag-list").tagit({autocomplete:{source:this.autocompleteUrl,delay:500,minLength:2},allowSpaces:!0,caseSensitive:!1,singleField:!0,singleFieldNode:t.find("[single-field-node]"),preprocessTag:function(e){return e.substring(0,100)}}),this.initialState(),this.$bus&&this.$bus.$on(a,function(){e.isEditMode&&e.save()})},watch:{value:{handler:function(e,t){this.valueChanged(e,t)}}},methods:{valueChanged:function(e){var t=o(this.$el).find(".ra-tag-list");t.tagit("assignedTags").join(",")!==e&&(t.tagit("removeAll"),t.tagit("createTags",e.split(",")))},save:function(){const e=this,t=o(this.$el);this.initialState();const n=t.find("[single-field-node]").val();this.saveUrl?this.serviceBase.send({url:this.saveUrl,ajaxAlias:"save",data:{resourceType:this.resourceType,resourceId:this.resourceId,tags:n}}).done(function(){e.$emit("input",n)}):e.$emit("input",n),this.isEditMode=!1},edit:function(){var e=o(this.$el);this.isEditMode=!0,e.find(".ra-tag-list").css("border-style","solid"),e.find(".ra-tag-list").css("padding","1px 5px"),e.find(".ra-tag-list LI.tagit-choice-read-only").each(function(){o(this).removeClass("tagit-choice-read-only"),o(this).addClass("tagit-choice-editable")}),e.find(".ra-tag-list A.tagit-close").show(),e.find(".ra-tag-list LI.tagit-new").show(),e.find(".ra-tag-list LI.tagit-new INPUT").removeAttr("disabled"),e.find(".ra-tag-list LI.tagit-new INPUT").focus(),e.find(".ra-tag-save-btn").show(),e.find(".ra-tag-edit-btn").hide(),e.find(".ra-tag-cnr").show()},initialState:function(){var e=o(this.$el),t=!1;e.find(".ra-tag-list").css("border-style","none"),e.find(".ra-tag-list").css("padding","0"),e.find(".ra-tag-list LI.tagit-choice-editable").each(function(){o(this).removeClass("tagit-choice-editable"),o(this).addClass("tagit-choice-read-only"),t=!0}),e.find(".ra-tag-list LI.tagit-choice-read-only").each(function(){t=!0}),e.find(".ra-tag-list A.tagit-close").hide(),e.find(".ra-tag-list LI.tagit-new INPUT").attr("disabled","disabled"),e.find(".ra-tag-list LI.tagit-new").hide(),e.find(".ra-tag-save-btn").hide(),e.find(".ra-tag-edit-btn").show(),e.find(".ra-tag-cnr").toggle(t)}}},r=(0,n("KHd+").A)(s,function(){var e=this,t=e._self._c;return t("span",{staticClass:"container-flex flex-items-center"},[e._m(0),e._v(" "),e.readonly?e._e():[t("div",{staticClass:"ra-tag-btns"},[t("a",{staticClass:"ra-tag-save-btn",staticStyle:{display:"none"},on:{click:function(t){return e.save()}}},[e._v(e._s(e.$t("common.buttonLabel.done")))]),e._v(" "),t("a",{staticClass:"ra-tag-edit-btn",on:{click:function(t){return e.edit()}}},[e._v(e._s(e.$t("common.action.edit")))]),e._v(" "),t("help-tooltip",[e._v(e._s(e.$t(e.tooltip)))])],1)],e._v(" "),t("input",{staticClass:"hide",attrs:{"single-field-node":""},domProps:{value:e.tags}})],2)},[function(){var e=this._self._c;return e("div",{staticClass:"ra-tag-cnr"},[e("ul",{staticClass:"ra-tag-list"})])}],!1,null,null,null).exports},MBdx:function(e,t,n){"use strict";n.d(t,{i:function(){return h},A:function(){return f}});var i=n("vV2i"),o=n("ntoN"),a=n("uXSz");class s extends o.A{constructor(){super()}async validate(e){return(0,a.isBlank)(e)?"required field":""}}var r=n("G0N1"),l=n("j+9I"),c=n("Aook");class d{constructor(){}mutate(e){if(null==e)return{newValue:e,changed:!1};const t=this.mutateValue(e);return e!==t?{newValue:t,changed:!0}:{newValue:e,changed:!1}}mutateValue(){throw Error("AbstractMutatorRule is not meant to be executed")}}class u extends d{constructor(){super()}mutateValue(e){return"string"==typeof e?e.replace(RegExp(c.Es.pattern,"g")," "):e}}var p=n("e1No");const h={EmitNewValue:"emitNewValue"};var m={name:"rave-input",directives:{autofocus:l.A},props:{rule:{type:[Object,Array],required:!1,default:()=>[]},ruleFn:{type:Function,required:!1},ruleFnContext:{required:!1},required:{type:Boolean,required:!1,default:!1},errorBag:{type:Object,required:!0},errorFor:{type:String,required:!0},keepErrorsOnDestroy:{type:Boolean,default:!1},immediate:{type:Boolean,required:!1,default:!1},manual:{type:Boolean,required:!1,default:!1},errorForLabel:{type:String,required:!0},inlineEdit:{type:Boolean,default:!1},maxlength:{type:[String,Number],required:!1},size:{type:String,required:!1},type:{type:String,required:!1,default:"search"},inputmode:{type:String,required:!1,default:void 0},max:{type:[String,Number],required:!1,default:"10000"},min:{type:[String,Number],required:!1,default:"0"},placeholder:{type:String,required:!1,default:""},inputStyle:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},autofocus:{required:!1},autocomplete:{type:String,required:!1},name:{type:String,required:!1},step:{required:!1},value:{type:[String,Number,Boolean],required:!1,default:""},inputClass:{type:String,required:!1},skipHighlightErrors:{type:Boolean,default:!1},stripNbsp:{type:Boolean,required:!1,default:!0}},data(){const e={pristine:!0,isValid:!0,errMsg:"",showImmediateError:!1};return e.isValid=!this.errorBag.has(this.errorFor),{state:e,errorBagState:this.errorBag}},computed:{computedClass(){let e=!1;!this.state.isValid&&this.state.showImmediateError&&(e=!0),this.skipHighlightErrors||!this.errorBagState.highlightErrors&&!this.immediate||this.state.isValid||(e=!0);let t=[];return e?t.push("textAlertError"):t.push(""),this.disabled?t.push("disabled disabledTextField"):t.push(""),this.inputClass&&t.push(this.inputClass),this.inlineEdit&&t.push("inline-edit"),t.join(" ").trim()},typeComputed(){return(0,p.l)()&&"password"!==this.type?"search":this.type},autocompleteComputed(){return void 0!==this.autocomplete?this.autocomplete:"password"===this.type?"new-password":this.autocompleteBreak},nameComputed(){return void 0===this.name?this.autocompleteBreak:this.name}},watch:{required:function(e){if(e){this.rules.find(e=>e instanceof s)||this.rules.push(new s)}else this.rules=this.rules.filter(e=>!(e instanceof s));this.validate()}},created(){this.initialize(),this.autocompleteBreak=Math.random()},beforeDestroy(){!this.keepErrorsOnDestroy&&this.errorBagState.errors[this.errorFor]&&this.errorBagState.clearErrorFor(this.errorFor)},methods:{initialize(){this.initializeRules(),this.initializeErrorBag()},async handleInput(e){if(this.value===e.target.value)return;this.$emit("input",e.target.value);let t=e.target.selectionStart,n=e.target.selectionEnd;await this.validate(e,e.target.value,this.manual),"text"!==e.target.type&&"search"!==e.target.type||e.target.setSelectionRange(t,n)},async validate(e,t,n){if(!0===n)return;let a;this.errorBagState.errors[this.errorFor]||this.initialize(),void 0===t&&(t=this.value,a=!0),this.state.pristine=!1,this.state.isValid=!0,this.state.errMsg="",this.state.showImmediateError=!1;for(let e of this.rules){let n=e instanceof o.A,s=e instanceof r.A;if(e instanceof d){let n=e.mutate(t);n.changed&&this.emitNewValue(n.newValue)}else s?this.state.errMsg=await e.validate(this.ruleFnContext,t):n&&(this.state.errMsg=await e.validate(t));if(this.state.isValid=!this.state.errMsg,this.state.errMsg&&(this.state.errMsg=e.formatError?e.formatError(this.errorFor,this.errorForLabel,this.state):`${this.errorForLabel} ${this.state.errMsg}`,e.immediate&&this.state.errMsg&&!a&&(e.handleError?e.handleError(this.errorForLabel,t).then(e=>{e&&this.postProcessHandleError(e)}):i.default.warning(null,this.state.errMsg,null,null,{categoryType:i.default.CategoryType.VALIDATION})),this.state.showImmediateError=this.state.showImmediateError||e.immediate),this.errorBagState.errors[this.errorFor]&&Object.assign(this.errorBagState.errors[this.errorFor],this.state,{errorFor:this.errorFor,errorForLabel:this.errorForLabel}),!this.state.isValid)return}},initializeRules(){let e=[];this.stripNbsp&&"number"!==this.type&&e.push(new u),Array.isArray(this.rule)&&this.rule.length>0?(this.rule.forEach(t=>{t instanceof d&&e.push(t)}),this.rule.forEach(t=>{t instanceof d||e.push(t)})):e.push(this.rule),this.required&&e.push(new s),this.ruleFn&&e.push(new r.A(this.ruleFn)),this.rules=e},initializeErrorBag(){this.errorBagState.errors[this.errorFor]?this.errorBagState.errors[this.errorFor]=this.state:this.$set(this.errorBagState.errors,this.errorFor,this.state),this.errorBagState.errors[this.errorFor].validate=this.validate.bind(this)},postProcessHandleError(e){if(!e&&!this[e.action])throw Error('postProcessHandleError called but without a valid "command" and "command.action". ');this[e.action].call(this,e.data)},emitNewValue(e){"number"===this.type&&this.$refs.inputField.value!==e&&(this.$refs.inputField.value=e),this.$emit("input",e)}}},f=(0,n("KHd+").A)(m,function(){var e=this,t=e._self._c;return t("span",{staticClass:"rave-input r4"},[t("input",{directives:[{name:"autofocus",rawName:"v-autofocus",value:""===e.autofocus,expression:"autofocus === '' ? true : false"}],ref:"inputField",staticClass:"r4",class:e.computedClass,style:e.inputStyle,attrs:{id:e.id,maxlength:e.maxlength,size:e.size,max:e.max,min:e.min,type:e.typeComputed,inputmode:e.inputmode,step:e.step,placeholder:e.placeholder,disabled:e.disabled,autocomplete:e.autocompleteComputed,name:e.nameComputed},domProps:{value:e.value},on:{input:function(t){return e.handleInput(t)},keyup:function(t){return e.$emit("keyup",t)},keydown:function(t){return e.$emit("keydown",t)}}})])},[],!1,null,null,null).exports},PLRs:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var i={name:"rave-textarea",extends:n("MBdx").A,props:{rows:{type:String,require:!1},readonly:{type:Boolean,require:!1,default:!1}}},o=(0,n("KHd+").A)(i,function(){var e=this,t=e._self._c;return t("span",{staticClass:"rave-textarea"},[t("textarea",{staticClass:"r4",class:e.computedClass,style:e.inputStyle,attrs:{id:e.id,maxlength:e.maxlength,placeholder:e.placeholder,rows:e.rows,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.value},on:{input:function(t){return e.handleInput(t)}}})])},[],!1,null,null,null).exports},Hewp:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var i=n("Cpa8"),o=n("WRXa"),a=n("9qIK"),s=n("09/Y"),r=n("vV2i"),l=n("dclb"),c=n("3Tuy"),d=n("+cQT"),u=n.n(d);const p=o.A.Constants.TTS_Mode;var h={name:"ManageVoiceRecording",props:{lang:{type:Object,required:!0},supportsVoiceRec:{type:Boolean,default:!0},supportsTts:{type:Boolean,default:!0},allowTTS:{type:Boolean,default:!0}},data(){return{TTS_Mode:p,ButtonType:c.VQ,i18n:{textAndTTY:i.A.t("mgtConsole.alert.enter.text.and.message"),voiceFormat:i.A.t("mgtConsole.alert.voice.format"),voiceRecording:i.A.t("mgtConsole.alert.voice.recording"),createRecording:i.A.t("mgtConsole.alert.voice.create.recording"),reviewRecording:i.A.t("mgtConsole.alert.voice.review.recording"),t2s:i.A.t("mgtConsole.alerts.voiceRecording.text.to.speech"),tt
2sNotAvailable:i.A.t("mgtConsole.alerts.voiceRecording.ttsNotAvailable"),voiceRecNotAvailableForPolling:i.A.t("mgtConsole.alerts.voiceRecording.voiceRecNotAvailable",[i.A.t("mgtConsole.sendAlerts.alerType.polling")])},formatLabelId:"voiceFormatLabel_"+this.lang.code,voiceFormatAudioRecId:"msgTypeRecOnly_"+this.lang.code,voiceFormatTTSId:"voiceMsgTypeTTS_"+this.lang.code,restorePoints:{tts:{},recording:{}},langState:this.lang,mainVoiceRecorder:null}},computed:{recordButtonStatusReady(){return this.langState.ttsMode===p.TTS||!!this.langState.msgRecorded},recordButtonName(){return this.recordButtonStatusReady?this.i18n.reviewRecording:this.i18n.createRecording},recordButtonId(){return this.recordButtonStatusReady?"voiceRecordButtonEdit_"+this.langState.code:"voiceRecordButtonCreate_"+this.langState.code}},watch:{lang:{handler(){this.$emit("change",this.langState)},deep:!0}},mounted(){const e=this.$store.sendFlowConfig.step2,t=this.$store.sendFlowConfig.alert;if(this.voiceProfile=e.voice.profiles.find(e=>e.id===t.voiceMsgProfileId)||t.voiceMsgProfile,this.voiceRecorderEvents=new(u()),void 0!==this.langState.ttsMode&&null!==this.langState.ttsMode||(this.langState.ttsMode=e.voice.defaultVoiceModeIsTTS&&this.supportsTts&&this.allowTTS?p.TTS:p.AudioRecording),this.langState.msgCode){const e=this.getAudioFormat();this.restorePoints[e]={msgCode:this.langState.msgCode,msgRecorded:this.langState.msgRecorded}}},beforeDestroy:function(){this.voiceRecorderEvents.$emit("voice-recorder-stop-polling")},methods:{record(){const e=this.$store.sendFlowConfig.alert,t=this.$store.sendFlowConfig.step2;if(!a.A.validateBeforePopupOpen(this.voiceProfile,(new s.A).mapToLocalizedMessage(this.langState)))return;const n=this.$store.sendFlowConfig.urls,o=a.A.getVoiceMsgUrl(t,this.langState.msgCode);this.voiceRecorderConfig=a.A.getVoiceRecorderConfigDefaults(this.voiceProfile,t,e,(new s.A).mapToLocalizedMessage(this.langState),n,o),this.voiceRecorderConfig.localEvents=this.voiceRecorderEvents,this.mainVoiceRecorder=(new r.default).makeGeneric({header:!0,title:i.A.t("mgtConsole.alert.voice.manage.message"),vueComponent:l.A,footer:!1,className:"modal-size-400",confirmLabel:this.$t("common.buttonLabel.save"),data:this.voiceRecorderConfig,localEvents:this.voiceRecorderEvents,destroyOnClose:!0}),this.voiceRecorderEvents.$on("haveRecording",e=>{this.mainVoiceRecorder&&this.mainVoiceRecorder.open();const t=this.restorePoints[this.getAudioFormat()];this.voiceMsgUrl=e.voiceMsgUrl,e.localizedVoice?(this.langState.msgRecorded=t.msgRecorded=e.localizedVoice.msgRecorded,this.langState.ttsTextHash=t.ttsTextHash=e.localizedVoice.ttsTextHash,this.langState.msgCode=t.msgCode=e.localizedVoice.msgCode,this.langState.id=e.localizedVoice.id):(this.langState.msgCode=t.msgCode=e.voiceMsgCode,this.langState.msgRecorded=t.msgRecorded=e.isRecorded)}),this.voiceRecorderEvents.$on("weDonthaveRecording",()=>{this.langState.msgRecorded=!1}),this.voiceRecorderEvents.$on("recordingCleared",e=>{if(this.langState.msgRecorded=!1,e){const t=this.getAudioFormat();this.langState.msgCode=this.restorePoints[t].msgCode=e}}),this.voiceRecorderEvents.$on("voiceRecordingUpdate",e=>{const t=this.getAudioFormat();this.langState.msgCode=this.restorePoints[t].msgCode=e}),this.mainVoiceRecorder.render()},ttsModeChanged(){const e=this.restorePoints[this.getAudioFormat()];this.langState.msgCode=e.msgCode||0,this.langState.msgRecorded=e.msgRecorded||!1,this.langState.ttsTextHash=e.ttsTextHash},getAudioFormat(){return this.langState.ttsMode===p.AudioRecording?"recording":"tts"}}},m=(0,n("KHd+").A)(h,function(){var e=this,t=e._self._c;return t("div",{staticClass:"d-flex flex-column"},[t("label",{attrs:{id:e.formatLabelId}},[e._v(e._s(e.i18n.voiceFormat))]),e._v(" "),t("table",[t("tr",[t("td",{staticClass:"td vmiddle"},[t("RadioButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{val:e.supportsVoiceRec?null:e.i18n.voiceRecNotAvailableForPolling},expression:"{ val: supportsVoiceRec ? null : i18n.voiceRecNotAvailableForPolling }"}],staticClass:"m-b-0 m-r-20",attrs:{id:e.voiceFormatAudioRecId,value:e.TTS_Mode.AudioRecording,disabled:!e.supportsVoiceRec},on:{change:function(t){return e.ttsModeChanged()}},model:{value:e.langState.ttsMode,callback:function(t){e.$set(e.langState,"ttsMode",t)},expression:"langState.ttsMode"}},[e._v(e._s(e.i18n.voiceRecording))])],1),e._v(" "),t("td",{staticClass:"td"},[t("ActionButton",{attrs:{id:e.recordButtonId,type:e.recordButtonStatusReady?e.ButtonType.GREEN:e.ButtonType.YELLOW},on:{click:function(t){return e.record()}}},[e._v(e._s(e.recordButtonName))])],1)]),e._v(" "),e.allowTTS?t("tr",[t("td",{staticClass:"p-t-5"},[t("RadioButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{val:e.supportsTts?null:e.i18n.ttsNotAvailable},expression:"{ val: supportsTts ? null : i18n.ttsNotAvailable }"}],staticClass:"m-b-0 m-r-20",attrs:{id:e.voiceFormatTTSId,value:e.TTS_Mode.TTS,disabled:!e.supportsTts},on:{change:function(t){return e.ttsModeChanged()}},model:{value:e.langState.ttsMode,callback:function(t){e.$set(e.langState,"ttsMode",t)},expression:"langState.ttsMode"}},[e._v("\n                    "+e._s(e.i18n.t2s)+"\n                ")])],1)]):e._e(
2)])])},[],!1,null,null,null).exports},dclb:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var i=n("astW"),o=n("uXSz"),a=n("9oYx"),s=n("UDvT"),r=n("Cpa8"),l=n("7RMj"),c=n("vkHc"),d=n("PcWQ"),u={name:"VoiceRecording",extends:i.A,props:["localEvents","closeVoiceRecordingModal"],data(){return{serviceBase:new a.A,tts:this.modalData.tts||!1,previewUrls:this.modalData.previewUrls||null,introVoiceMsgUrl:this.modalData.introVoiceMsgUrl||null,provider:this.modalData.provider||null,vpCallTollFreeNumber:(0,l.formatPhoneNumber)(this.modalData.callTollFreeNumber||""),localizedVoice:this.modalData.localizedVoice,vpUsername:this.modalData.username,vpPassword:this.modalData.password,vpVoiceMsgCodeType:this.modalData.voiceMsgCodeType,vpRecordingStatus:this.modalData.vpRecordingStatus,vpPopupTitle:this.modalData.vpPopupTitle,vpPopupCaption:this.modalData.vpPopupCaption,alertName:this.modalData.alertName,maxReplays:this.modalData.maxReplays,maxRetries:this.modalData.maxRetries,maxRetryWait:this.modalData.maxRetryWait,ttsMessage:this.modalData.ttsMessage,chopLengthTo:this.modalData.chopLengthTo||3e3,isRecorded:this.modalData.isRecorded||!1,voiceMsgCode:this.modalData.voiceMsgCode||null,ctx:null,hash:null,locale:this.modalData.locale||"en_US",conferenceBlast:this.modalData.conferenceBlast,hasPreviewUrl:null!=this.previewUrls&&null!=this.previewUrls[0]&&""!=this.previewUrls[0],popupUrl:this.modalData.popupUrl,voiceRecordingUpdate:this.modalData.voiceRecordingUpdate||null,bridgePhone:this.modalData.bridgePhone,ttsErrorMsg:this.modalData.ttsErrorMsg||r.A.t("mgtConsole.alert.voice.tts.unavailable"),pollVoiceRecorded:this.modalData.isRecorded||!1,callAdminUrl:this.modalData.callAdminUrl,isVoiceRecordedUrl:this.modalData.isVoiceRecordedUrl,toggleVoicePopup:!1,vpCallMe2:!1,vpPhoneNumberDisabled:!1,vpPhoneNumber:"",vpCallMe:!1,vpAudioFile:!1,btnDialing:!0,vpDial:!0,vpnDefault:"other",pollingVoiceRecordingInterval:20,phones:[],vpCounter:0,isPreviewSupported:!1,pollVoiceRecordingTimeoutID:-1,playerFootNote:this.modalData.playerFootNote,voiceMsgUrlIndex:0,vpCallNowMsgShow:!1,voiceMsgUrl:null,audioType:"audio/mp3",callNow:null,showCallButton:!0,showDialingButton:!1,notSupportedUrl:"",showCallNowMsg:!1,vpCallNowMsgNumber:"XXX-XXX-XXXX",callerId:this.modalData.callerId,preRecordedVoiceAudioEnabled:this.modalData.preRecordedVoiceAudioEnabled||!1,fileUploadLimit:{size:10485760,count:1},fileUploaderAttachments:[],fileName:"",fileUploaderKey:0}},computed:{eventsBus(){return this.localEvents||this.modalData.localEvents},recordedClass(){return{vpYes:this.isRecorded,vpNo:!this.isRecorded}},carbonClass(){return{carbon:this.toggleVoicePopup,noCarbon:!this.toggleVoicePopup}}},created(){},async mounted(){this.eventsBus.$on("startPolling",()=>{this.pollVoiceRecording()}),this.localEvents.$on("showPopup",()=>{}),this.localEvents.$on("voice-recorder-stop-polling",()=>{window.clearTimeout(this.pollVoiceRecordingTimeoutID)}),await this.displayVoiceRecordingInfo(),this.pollVoiceRecording()},methods:{i18n:c.A,getAudioPlayerRefs(){return{mainPlayer:this.$refs.avrPlayerMain,mainSource:this.$refs.avrPlayerUrlMain,audioFilePlayer:this.$refs.avrPlayer,audioFileSource:this.$refs.avrPlayerUrl}},async displayVoiceRecordingInfo(){const e=this.tts?this.chop(this.ttsMessage,this.chopLengthTo):"";return this.serviceBase.send({url:this.popupUrl,data:{voiceAlertEnabled:!0,"domainAlertMsg.name":this.alertName,voiceProfile:{maxReplays:this.maxReplays,maxRetries:this.maxRetries,maxRetryWait:this.maxRetryWait,conferenceBlast:this.conferenceBlast,bridgePhone:this.bridgePhone},locale:this.locale,domainAlertMsg:{voiceTTSMode:this.tts?1:0,voiceTTSText:e,voiceMsgCode:this.voiceMsgCode,voiceMsgRecorded:this.isRecorded,localizedVoices:this.localizedVoice?[this.localizedVoice]:null},voiceProvider:this.provider,voiceMsgCode:this.voiceMsgCode,isRecorded:this.isRecorded}}).done(e=>{e.successful?(this.addToPreviewUrls(e.voiceMsgUrl),this.voiceMsgCode=e.voiceMsgCode,this.hash=e.msgCodeHash,this.ctx=e.msgCodeCtx,this.isRecorded=e.isRecorded,this.localEvents.$emit("opened",e.voiceMsgUrl),this.phones=e.phones,0!==e.phones.length&&(this.vpnDefault=this.getDefaultPhone(e.phones)),this.voiceMsgUrl=e.voiceMsgUrl,this.audioType=e.audioType,this.preRecordedVoiceAudioEnabled=e.preRecordedVoiceAudioEnabled,this.initVoicePopup(),this.localEvents.$emit("haveRecording",e),this.updateMessagePreview()):(this.localEvents.$emit("error"),this.tts=!1,s.Ay.warning(null,this.tt
2sErrorMsg,"Continue"),this.closeVoicePopupWindow())}).fail(()=>{this.displayConnectionError()})},addToPreviewUrls(e){this.previewUrls||(this.previewUrls=[]),this.previewUrls.includes(e)||(this.introVoiceMsgUrl&&this.previewUrls[0]===this.introVoiceMsgUrl?this.previewUrls[1]=e:this.previewUrls=[e])},initVoicePopup(){this.btnDialing=!1,this.vpCallMe=!0,this.vpDial=!1,this.toggleVoicePopup=!1,this.vpCallMe2=!0;const e=this.getAudioPlayerRefs();e.mainPlayer&&d(e.mainPlayer).bind("ended",()=>{this.playVoiceMessages()}),e.audioFilePlayer&&d(e.audioFilePlayer).bind("ended",()=>{this.playVoiceMessages()}),this.vpnDefault=this.getDefaultPhone(this.phones),this.vpPhoneNumber=""},getDefaultPhone:function(e){return e&&e.length&&(e=e.filter(e=>!e.extension)).length?e[0].phoneNumber:"other"},playVoiceMessages(){let e=this.previewUrls;if(!e||0===e.length)return;const t=this.getAudioPlayerRefs();if(this.vpAudioFile){this.voiceMsgUrlIndex++;let n=!0;return this.voiceMsgUrlIndex>=e.length&&(n=!1,this.voiceMsgUrlIndex=0),this.isRecorded&&t.audioFileSource&&(t.audioFileSource.src=this.addCacheBuster(e[this.voiceMsgUrlIndex]),t.audioFileSource.type=this.audioType),t.audioFilePlayer&&(t.audioFilePlayer.pause(),t.audioFilePlayer.load()),void(n&&t.audioFilePlayer&&t.audioFilePlayer.play())}this.voiceMsgUrlIndex++;let n=!0;this.voiceMsgUrlIndex>=e.length&&(n=!1,this.voiceMsgUrlIndex=0),this.isRecorded&&(t.mainSource&&(t.mainSource.src=this.addCacheBuster(e[this.voiceMsgUrlIndex]),t.mainSource.type=this.audioType),t.audioFileSource&&(t.audioFileSource.src=this.addCacheBuster(e[this.voiceMsgUrlIndex]),t.audioFileSource.type=this.audioType)),t.mainPlayer&&(t.mainPlayer.pause(),t.mainPlayer.load()),t.audioFilePlayer&&(t.audioFilePlayer.pause(),t.audioFilePlayer.load()),n&&t.mainPlayer&&t.mainPlayer.play()},changeVpn:function(e){this.vpnDefault=e.target.value},chop:(e,t)=>null!=e&&e.length>t&&null!=t&&t>0?e.substring(0,t):e,closeVoicePopupWindow(){this.stopPreview(),this.localEvents.$emit(s.Ay.Events.CLOSE,this.voiceMsgUrl),this.closeVoiceRecordingModal(),this.pollVoiceRecording()},stopPreview(){const e=this.getAudioPlayerRefs();null!==e.mainPlayer&&e.mainPlayer.pause(),null!==e.audioFilePlayer&&e.audioFilePlayer.pause()},toggleBetweenDialingChoices(e){this.preRecordedVoiceAudioEnabled?"vpCallMe2"===e.target.id?(this.vpDial=!1,this.vpCallMe=!0,this.toggleVoicePopup=!1,this.showCallButton=!0,this.vpAudioFile=!1,this.$nextTick(()=>{this.updateMessagePreview()})):"vpIWillDial"===e.target.id?(this.vpDial=!0,this.vpCallMe=!1,this.showCallButton=!1,this.vpAudioFile=!1,this.$nextTick(()=>{this.updateMessagePreview()})):(this.vpDial=!1,this.vpCallMe=!1,this.showCallButton=!1,this.vpAudioFile=!0,this.showCallButton=!0,this.$nextTick(()=>{this.updateMessagePreview()})):"vpCallMe2"===e.target.id?(this.vpDial=!1,this.vpCallMe=!0,this.toggleVoicePopup=!1,this.showCallButton=!0):(this.vpDial=!0,this.vpCallMe=!1,this.showCallButton=!1)},callAdminNow:function(){let e=this.vpnDefault;if("other"==e&&(e=this.vpPhoneNumber),(0,o.isBlank)(e))return void alert(r.A.t("mgtConsole.alert.voice.enter.phone.number"));if(!this.validatePhone(e))return;this.showCallButton=!1,this.showDialingButton=!0,this.vpCallNowMsgNumber=e,this.vpCallNowMsgShow=!0;let t=this.callAdminUrl;this.serviceBase.send({url:this.addCacheBuster(t),data:{voiceMsgCode:this.voiceMsgCode,callerId:this.callerId,phoneNumber:e,tts:this.tts,ctx:this.ctx,hash:this.hash},type:"GET",dataType:"text",cache:!1,contentType:"text/plain",headers:{Accept:"text/plain","Content-Type":"text/plain"}}).done(()=>{this.callNow=r.A.t("mgtConsole.alert.voice.redial"),this.showDialingButton=!1,this.showCallButton=!0,this.pollVoiceRecording()}).fail(()=>{this.vpCallNowMsgShow=!1,this.showCallButton=!0,this.displayConnectionError()})},formatPhone(e){let t="";for(let n=0;n<e.length;n++)t+=e.charAt(n),2==n&&(t+="-"),5==n&&(t+="-");return t},pollVoiceRecording(){this.tts?window.clearTimeout(this.pollVoiceRecordingTimeoutID):this.voiceMsgCode?this.serviceBase.send({url:this.addCacheBuster(this.isVoiceRecordedUrl),data:{voiceProvider:this.provider,voiceMsgCode:this.voiceMsgCode,ctx:this.ctx,hash:this.hash},type:"GET"}).done(e=>{this.pollVoiceRecorded=!1,this.tts||(this.isRecorded=e.isRecorded,e.isRecorded?(this.pollVoiceRecorded=!0,this.localEvents.$emit("haveRecording",e),this.audioType=e.audioType,this.addToPreviewUrls(e.voiceMsgUrl),this.updateMessagePreview()):(this.localEvents.$emit("weDonthaveRecording",e),this.pollVoiceRecordingTimeoutID=setTimeout(this.pollVoiceRecording,1e3*this.pollingVoiceRecordingInterval)),this.updateRecordingStatus(this.pollVoiceRecorded),this.localEvents.$emit("updatedRecordingStatus"),this.localEvents.$emit("voiceRecordingUpdate",e.voiceMsgCode),window.status="rc: "+this.vpCounter++)}).fail(()=>{this.displayConnectionError()}):this.pollVoiceRecordingTimeoutID=setTimeout(this.pollVoiceRecording,1e3*this.pollingVoiceRecordingInterval)},validatePhone(e){let t="";for(let n=0;n<e.length;n++){let i=e.charAt(n);if(i>="0"&&i<="9")t+=e.charAt(n);else if("-"!=i&&" "!=i&&"("!=i&&")"!=i&&"."!=i&&"*"!=i&&"+"!=i)return alert(r.A.t("mgtConsole.alerts.voiceRecording.validator.invali
2d.chars",[e],[""])),!1}return"1"==t.charAt(0)&&11==t.length&&(t=t.substring(1)),"+"==t.charAt(0)&&"1"==t.charAt(1)&&12==t.length&&(t=t.substring(2)),10==t.length||(alert(r.A.t("mgtConsole.alerts.voiceRecording.validator.invalid.size",[e])),!1)},displayConnectionError(){alert(r.A.t("mgtConsole.alert.connection.error"))},updateRecordingStatus(e){this.isRecorded=e},updateMessagePreview(){if(this.hasPreviewUrl=null!=this.previewUrls&&null!=this.previewUrls[0]&&""!=this.previewUrls[0],this.isPreviewSupported="audio/mpeg"===this.audioType||!this.isIE()&&!this.isSafari(),this.hasPreviewUrl){this.isPreviewSupported&&this.$nextTick(()=>{this.reloadMessagePreview()});let e=this.previewUrls&&this.previewUrls.length>1?this.previewUrls[1]:this.previewUrls[0];this.notSupportedUrl=e}this.vpCallNowMsgShow=!1,this.callNow=r.A.t("mgtConsole.alert.voice.call.me")},reloadMessagePreview(){if(!this.isRecorded)return;const e=this.getAudioPlayerRefs();e.mainPlayer&&e.mainSource&&(e.mainPlayer.pause(),e.mainSource.src=this.addCacheBuster(this.previewUrls[0]),e.mainPlayer.load()),e.audioFilePlayer&&e.audioFileSource&&(e.audioFilePlayer.pause(),e.audioFileSource.src=this.addCacheBuster(this.previewUrls[0]),e.audioFilePlayer.load())},addCacheBuster:function(e){return e+(null!=e&&e.indexOf("?")>0?"&":"?")+"cb="+this.rcb()},rcb:()=>1e16*Math.random(),isIE(){let e=navigator.userAgent.toLowerCase(),t=/msie/.test(e),n=/(trident)(?:.*rv:([\w.]+))?/.test(e);return t||n},isSafari(){let e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("safari")&&-1==e.indexOf("chrome")},handleFileUploadError(e){let t="Error uploading file";e.reason&&(t="file size limit reached"===e.reason?"File exceeds maximum size of 10MB":e.reason),s.Ay.warning(null,t,"Ok"),this.clearFileName()},handleFileUpload(e){if(e&&e.length>0){const t=e[0];this.fileName=t.name;const n=new FormData;n.append("file",t.originalFile||t),this.voiceMsgCode&&n.append("voiceMsgCode",this.voiceMsgCode),this.serviceBase.send({url:"/managementConsole/alerts/voiceRecording/upload.action",data:n,type:"POST",processData:!1,contentType:!1,dataType:"json",headers:null,suppressErrors:!0}).done(e=>{e.success&&(this.voiceMsgCode=e.voiceMsgCode,this.voiceMsgUrl=e.voiceMsgUrl,this.audioType=e.audioType,this.isRecorded=!0,null!=e.msgCodeHash&&null!=e.msgCodeCtx&&(this.hash=e.msgCodeHash,this.ctx=e.msgCodeCtx),this.pollVoiceRecordingTimeoutID&&(window.clearTimeout(this.pollVoiceRecordingTimeoutID),this.pollVoiceRecordingTimeoutID=-1),this.addToPreviewUrls(e.voiceMsgUrl),this.updateMessagePreview(),e.isRecorded=this.isRecorded,this.localEvents.$emit("haveRecording",e))}).fail(e=>{let t="Error uploading file";e.responseJSON&&e.responseJSON.message?t=e.responseJSON.message:e.responseJSON&&e.responseJSON.error?t=e.responseJSON.error:e.statusText&&413===e.status&&(t="File exceeds maximum size of 10MB"),s.Ay.warning(null,t,"Ok"),this.clearFileName()})}},clearAudioFile(){if(this.clearFileName(),this.pollVoiceRecordingTimeoutID&&(window.clearTimeout(this.pollVoiceRecordingTimeoutID),this.pollVoiceRecordingTimeoutID=-1),this.voiceMsgUrl=null,this.audioType="audio/mp3",this.voiceMsgCode&&this.voiceMsgCode>0){const e=new FormData;e.append("voiceMsgCode",this.voiceMsgCode),this.serviceBase.send({url:"/managementConsole/alerts/voiceRecording/cancel.action",data:e,type:"POST",processData:!1,contentType:!1,dataType:"json",headers:null,suppressErrors:!0}).done(e=>{e.success&&(this.voiceMsgCode=e.voiceMsgCode,this.isRecorded=!1,this.localEvents.$emit("recordingCleared",e.voiceMsgCode))}).fail(e=>{let t="Error cancelling file";e.responseJSON&&e.responseJSON.message?t=e.responseJSON.message:e.responseJSON&&e.responseJSON.error&&(t=e.responseJSON.error),s.Ay.warning(null,t,"Ok"),this.clearFileName()})}else this.localEvents.$emit("recordingCleared");this.previewUrls&&this.previewUrls.length>0&&(this.previewUrls=[]),this.updateMessagePreview()},clearFileName(){this.fileName="",this.fileUploaderAttachments=[],this.fileUploaderKey+=1}}},p=(n("2hsj"),(0,n("KHd+").A)(u,function(){var e=this,t=e._self._c;return t("div",{staticClass:"rave-voice-recording"},[t("div",[t("div",[t("label",{staticClass:"r4"},[t("span",{staticClass:"vpPopupCaption"},[e._v(e._s(e.vpPopupCaption||e.$t("mgtConsole.alert.voice.message.recorded"))+":")])]),e._v(" "),t("h2",[t("span",{staticClass:"vpRecordingStatus",class:e.recordedClass},[e._v(e._s(e.isRecorded?e.$t("mgtConsole.alert.voice.yes"):e.$t("mgtConsole.alert.voice.no")))])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isPreviewSupported&&e.isRecorded&&!e.vpAudioFile,expression:"isPreviewSupported && isRecorded && !vpAudioFile"}],staticClass:"vpSec vpXOPlayer"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.voice.message.preview"))+":")]),e._v(" "),t("audio",{ref:"avrPlayerMain",staticClass:"avrPlayer",attrs:{controls:"",preload:"auto",loading:"eager"}},[t("source",{ref:"avrPlayerUrlMain",staticClass:"avrPlayerUrl",attrs:{src:"/voice/silence_browser_safe.mp3",type:"audio/mpeg"}}),e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.audio.preview.not.avaialable"))),t("br"),e._v(" "),t("span",{staticClass:"fltlft"},[t("a",{staticClass:"vpXOPlayerNotSupportedUrl",attrs:{href:e.notSupportedUrl}},[e._v(e._s(e.$t("mgtConsole.alert.voice.audio.click.download")))]),e._v(" "+e._s(e.$t("mgtConsole.alert.voice.your.message"))+":")]),e._v(" "),t("span",{staticClass:"raveWebFontIcon querycircle null",staticStyle:{float:"left"},attrs:{title:e.$t("mgtConsole.alert.voice.download.record")},on:{click:function(t){e.window.alert(e.Lang.t("mgtConsole.alert.voice.download.record"))}}},[t("span",[e._v("?")])])]),e._v(" "),t("br"),e._v(" "),t("span",{staticClass:"minitext avrPlayerFootNote"},[e._v(e._s(e.playerFootNote))])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isPreviewSupported&&!e.vpAudioFile,expression:"!isPreviewSupported && !vpAudioFile"}],staticClass:"vpSec vpXOPlayerNotSupported"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.voice.message.preview"))+":")]),e._v(" "),t("div",[e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.audio.preview.not.avaialable"))),t("br"),e._v(" "),t("span",{staticClass:"fltlft"},[t("a",{staticClass:"vpXOPlayerNotSupportedUrl",attrs:{href:e.notSupportedUrl}},[e._v(e._s(e.$t("mgtConsole.alert.voice.audio.click.download")))]),e._v(" "+e._s(e.$t("mgtConsole.alert.voice.your.message"))+":")]),e._v(" "),t("span",{staticClass:"raveWebFontIcon querycircle null",staticStyle:{float:"left"},attrs:{title:e.$t("mgtConsole.alert.voice.download.record")},on:{click:function(t){e.window.alert(e.Lang.t("mgtConsole.alert.voice.download.record"))}}},[t("span",[e._v("?")])])]),e._v(" "),t("div",{staticClass:"clearMe"},[e._v("\xa0")])]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.tts,expression:"!tts"}],staticClass:"vpHideOnTTS"},[t("div",{staticClass:"vpSec"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.voice.how.to.manage.message"))+"?")]),e._v(" "),t("label",{staticStyle:{"font-weight":"bold"}},[t("input",{attrs:{type:"radio",name:"vpCallChoice",id:"vpCallMe2",checked:""},on:{click:e.toggleBetweenDialingChoices}}),e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.rave.call"))+"\n            ")]),e._v(" "),t("br"),e._v(" "),t("label",{staticStyle:{"font-weight":"bold"}},[t("input",{attrs:{type:"radio",name:"vpCallChoice",id:"vpIWillDial"},on:{click:e.toggleBetweenDialingChoices}}),e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.dial.in"))+"\n            ")]),e._v(" "),t("br"),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:this.preRecordedVoiceAudioEnabled,expression:"this.preRecordedVoiceAudioEnabled"}]},[t("label",{staticStyle:{"font-weight":"bold"}},[t("input",{attrs:{type:"radio",name:"vpCallChoice",id:"vpAudioFile"},on:{click:e.toggleBetweenDialingChoices}}),e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.audio.file"))+"\n              ")]),e._v(" "),t("help-tooltip",[e._v(e._s(e.$t("mgtConsole.alert.voice.tooltip.audio.file")))])],1
2)]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpDial,expression:"vpDial"}],staticClass:"vpSec vpDial"},[t("span",[e._v(e._s(e.$t("mgtConsole.alert.voice.dial.steps")))])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpDial,expression:"vpDial"}],staticClass:"vpSec vpDial"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.voice.dial"))+":")]),e._v(" "),t("h2",[t("span",{staticClass:"vpCallTollFreeNumber"},[e._v(e._s(e.vpCallTollFreeNumber))])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpDial,expression:"vpDial"}],staticClass:"vpSec vpDial"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alerts.settings.cap.label.username"))+":")]),e._v(" "),t("h2",[t("span",{staticClass:"vpUsername"},[e._v(e._s(e.vpUsername))])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpDial,expression:"vpDial"}],staticClass:"vpSec vpDial"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alerts.settings.cap.label.password"))+":")]),e._v(" "),t("h2",[t("span",{staticClass:"vpPassword"},[e._v(e._s(e.vpPassword))])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpDial,expression:"vpDial"}],staticClass:"vpSec vpDial"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.details.voice.message.code")))]),e._v(" "),t("h2",[t("span",{staticClass:"voiceMsgCode"},[e._v(e._s(e.voiceMsgCode))])])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpAudioFile&&this.preRecordedVoiceAudioEnabled,expression:"vpAudioFile && this.preRecordedVoiceAudioEnabled"}],staticClass:"vpSec"},[t("div",{staticClass:"d-flex align-items-center justify-content-between voice-recording-button-container"},[t("file-uploader",{key:e.fileUploaderKey,attrs:{"client-side-only":!0,limit:e.fileUploadLimit,files:e.fileUploaderAttachments,name:"voiceFile",accept:".wav, .mp3, .mpeg, .wave, .vnd.wave, .x-wav"},on:{"upload-file":e.handleFileUpload,"upload-not-accepted":e.handleFileUploadError}},[t("button",{staticClass:"btnJ2 newBtnJ2 gray newGray",attrs:{type:"button"}},[e._v("\n              "+e._s(e.$t("mgtConsole.smartPrepare.chooseFile"))+"\n            ")]),e._v(" "),e.fileName?t("span",[e._v(e._s(e.fileName))]):e._e()]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.isRecorded,expression:"isRecorded"}],staticClass:"btnJ2 newBtnJ2 gray newGray m-b-20",attrs:{type:"button"},on:{click:function(t){return e.clearAudioFile()}}},[e._v(e._s(e.$t("common.buttonLabel.cancel")))])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isPreviewSupported&&e.isRecorded,expression:"isPreviewSupported && isRecorded"}],staticClass:"vpSec vpXOPlayer"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.voice.message.preview"))+":")]),e._v(" "),t("audio",{ref:"avrPlayer",staticClass:"avrPlayer",attrs:{controls:"",preload:"auto",loading:"eager"}},[t("source",{ref:"avrPlayerUrl",staticClass:"avrPlayerUrl",attrs:{src:"/voice/silence_browser_safe.mp3",type:"audio/mpeg"}}),e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.audio.preview.not.avaialable"))),t("br"),e._v(" "),t("span",{staticClass:"fltlft"},[t("a",{staticClass:"vpXOPlayerNotSupportedUrl",attrs:{href:e.notSupportedUrl}},[e._v(e._s(e.$t("mgtConsole.alert.voice.audio.click.download")))]),e._v(" "+e._s(e.$t("mgtConsole.alert.voice.your.message"))+":")]),e._v(" "),t("span",{staticClass:"raveWebFontIcon querycircle null",staticStyle:{float:"left"},attrs:{title:e.$t("mgtConsole.alert.voice.download.record")},on:{click:function(t){e.window.alert(e.Lang.t("mgtConsole.alert.voice.download.record"))}}},[t("span",[e._v("?")])])]),e._v(" "),t("br"),e._v(" "),t("span",{staticClass:"minitext avrPlayerFootNote"},[e._v(e._s(e.playerFootNote))])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isPreviewSupported,expression:"!isPreviewSupported"}],staticClass:"vpSec vpXOPlayerNotSupported"},[t("label",{staticClass:"r4"},[e._v(e._s(e.$t("mgtConsole.alert.voice.message.preview"))+":")]),e._v(" "),t("div",[e._v("\n                "+e._s(e.$t("mgtConsole.alert.voice.audio.preview.not.avaialable"))),t("br"),e._v(" "),t("span",{staticClass:"fltlft"},[t("a",{staticClass:"vpXOPlayerNotSupportedUrl",attrs:{href:e.notSupportedUrl}},[e._v(e._s(e.$t("mgtConsole.alert.voice.audio.click.download")))]),e._v(" "+e._s(e.$t("mgtConsole.alert.voice.your.message"))+":")]),e._v(" "),t("span",{staticClass:"raveWebFontIcon querycircle null",staticStyle:{float:"left"},attrs:{title:e.$t("mgtConsole.alert.voice.download.record")},on:{click:function(t){e.window.alert(e.Lang.t("mgtConsole.alert.voice.download.record"))}}},[t("span",[e._v("?")])])]),e._v(" "),t("div",{staticClass:"clearMe"},[e._v("\xa0")])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpCallMe||e.vpAudioFile&&this.preRecordedVoiceAudioEnabled,expression:"vpCallMe || (vpAudioFile && this.preRecordedVoiceAudioEnabled)"}],staticClass:"vpSec vpCallMe"},[t("label",{directives:[{name:"show",rawName:"v-show",value:!e.tts&&!e.vpAudioFile,expression:"!tts && !vpAudioFile"}],staticClass:"r4 vpCallMeVoice",attrs:{for:"phone0"}},[e._v(e._s(e.$t("mgtConsole.alert.voice.reach"))+"?")]),e._v(" "),t("label",{directives:[{name:"show",rawName:"v-show",value:e.tts||e.vpAudioFile&&this.preRecordedVoiceAudioEnabled,expression:"tts || (vpAudioFile && this.preRecordedVoiceAudioEnabled)"}],staticClass:"r4 vpCallMeTTS",attrs:{for:"phone0"}},[e._v(e._s(e.$t("mgtConsole.alert.voice.hear.phone.message"))+":")]),e._v(" "),t("span",{attrs:{id:"vpCallMeEligiblePhones"}},[e._l(e.phones,function(n,i){return[n.extension?e._e():t("div",{key:i},[t("label",{staticClass:"r4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.vpnDefault,expression:"vpnDefault"}],attrs:{id:"phone"+i,type:"radio",name:"vpPN",disabled:"other"===n.phoneNumber},domProps:{value:n.phoneNumber,checked:e._q(e.vpnDefault,n.phoneNumber)},on:{change:[function(t){e.vpnDefault=n.phoneNumber},e.changeVpn]}}),e._v("\xa0\n                            "+e._s(1===n.phoneType?"Mobile":"Voice Only Line")+" "+e._s(e.formatPhone(n.phoneNumber))+"\n                        ")])])]})],2),e._v(" "),t("label",{staticClass:"r4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.vpnDefault,expression:"vpnDefault"}],attrs:{id:"other",type:"radio",name:"vpPN"},domProps:{value:"other",checked:e._q(e.vpnDefault,"other")},on:{change:function(t){e.vpnDefault="other"}}}),e._v("\xa0\n                "+e._s(e.$t("mgtConsole.alert.voice.call.number"))+":\n            ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.vpPhoneNumber,expression:"vpPhoneNumber"}],staticClass:"r4",attrs:{type:"text",id:"vpPhoneNumber",disabled:"other"!==e.vpnDefault,size:"13"},domProps:{value:e.vpPhoneNumber},on:{input:function(t){t.target.composing||(e.vpPhoneNumber=t.target.value)}}})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.vpCallNowMsgShow,expression:"vpCallNowMsgShow"}],staticClass:"vpSec vpCallNowMsg"},[t("span",[e._v(e._s(e.$t("mgtConsole.alert.voice.dialing"))+" "),t("span",{staticClass:"vpCallNowMsgNumber"},[e._v(e._s(e.formatPhone(e.vpCallNowMsgNumber)))]),e._v(", "+e._s(e.$t("mgtConsole.alert.voice.several.seconds"))+"...")])]),e._v(" "),t("div",{staticClass:"button-bar justify-content-end mt-5"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.btnDialing,expression:"btnDialing"}],attrs:{id:"btnDialing"}},[e._v(e._s(e.$t("mgtConsole.alert.voice.dialing"))+"..")]),e._v(" "),t("button",{staticClass:"btnJ2 gray newGray mr-5",attrs:{id:"btnVPXOClose"},on:{click:function(t){return e.closeVoicePopupWindow()}}},[e._v(e._s(e.$t("mgtConsole.alert.details.voice.close")))]),e._v(" "),t("button",{directives:[{name:"show",rawName:"v-show",value:e.showCallButton,expression:"showCallButton"}
2],staticClass:"btnJ2 green newGreen vpCallMe",attrs:{id:"btnCallNow"},on:{click:function(t){return e.callAdminNow()}}},[e._v(e._s(e.callNow?e.callNow:e.$t("mgtConsole.alert.voice.call.now")))])]),e._v(" "),t("div",{staticClass:"clearMe"})])])},[],!1,null,"6918e7a4",null).exports)},IXiy:function(e,t,n){var i=n("1vLz");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);(0,n("er8A").A)("996321ce",i,!0,{sourceMap:!0})},VZIi:function(e,t,n){var i=n("AKfq");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);(0,n("er8A").A)("40161c2c",i,!0,{sourceMap:!0})},pJrR:function(e,t,n){var i=n("exLI");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);(0,n("er8A").A)("5afa8cc1",i,!0,{sourceMap:!0})},Hgl5:function(e,t,n){var i=n("3fwm");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);(0,n("er8A").A)("03e1d1d1",i,!0,{sourceMap:!0})},dUSo:function(e,t,n){var i=n("f+9f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);(0,n("er8A").A)("3cffc5a7",i,!0,{sourceMap:!0})},"2hsj":function(e,t,n){var i=n("3w55");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);(0,n("er8A").A)("47d0d304",i,!0,{sourceMap:!0})}}]);
3//# sourceMappingURL=commons.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.