/*! * xivado-web * Version: master-0e1b7c58 * Author: Anna Hiden * License: proprietary */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Toast"],{"0967":function(t,e,s){},"0eb4":function(t,e,s){"use strict";s.r(e);var n,i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("BToast",{attrs:{autoHideDelay:t.autoHideDelay,title:t.title,visible:t.visible,"toast-class":t.toastClass},on:{hide:function(e){return t.$emit("hide")}}},["info"===t.toastClass?n("icon",{staticClass:"toastIcon",attrs:{src:s("5cad"),sm:""}}):t._e(),"success"===t.toastClass?n("icon",{staticClass:"toastIcon",attrs:{src:s("1944"),sm:""}}):t._e(),"failed"===t.toastClass?n("icon",{staticClass:"toastIcon",attrs:{src:s("777f"),sm:""}}):t._e(),t._v(" "+t._s(t.message)+" ")],1)],1)},r=[],o=s("2b88"),a=s("2b0e"),c=s("2f79"),u=s("c637"),l=s("0056"),h=s("a723"),d=s("9b76"),f=s("6d40"),p=s("906c"),m=s("6b77"),b=s("a8c8"),g=s("58f2"),v=s("3a58"),y=s("d82f"),O=s("cf75"),j=s("4a38"),T=s("493b"),w=s("90ef"),S=s("602d"),$=s("8c18"),D=s("8d32"),C=s("f29e"),P=s("aa59"),x=s("ce2a"),k=s("686b"),A=a["default"].extend({mixins:[$["a"]],data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(t){var e=this;Object(p["y"])((function(){Object(p["v"])(t,"".concat(e.name,"-enter-to"))}))}},render:function(t){return t("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.normalizeSlot())}}),E=Object(O["b"])({ariaAtomic:Object(O["a"])(h["j"]),ariaLive:Object(O["a"])(h["j"]),name:Object(O["a"])(h["j"],void 0,!0),role:Object(O["a"])(h["j"])},u["o"]),H=a["default"].extend({name:u["o"],mixins:[S["a"]],props:E,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var t=this,e=this.name;this.staticName=e,o["Wormhole"].hasTarget(e)?(Object(k["a"])('A "<portal-target>" with name "'.concat(e,'" already exists in the document.'),u["o"]),this.dead=!0):(this.doRender=!0,this.$once(l["q"],(function(){t.emitOnRoot(Object(m["e"])(u["o"],l["e"]),e)})))},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},render:function(t){var e=t("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var s=t(o["PortalTarget"],{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:A}});e=t("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[s])}return e}});function B(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,n)}return s}function M(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?B(Object(s),!0).forEach((function(e){I(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):B(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function I(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var _=Object(g["a"])("visible",{type:h["e"],defaultValue:!1,event:l["b"]}),L=_.mixin,N=_.props,R=_.prop,z=_.event,F=1e3,U=Object(y["j"])(P["b"],["href","to"]),W=Object(O["b"])(Object(y["l"])(M(M(M(M({},w["b"]),N),U),{},{appendToast:Object(O["a"])(h["e"],!1),autoHideDelay:Object(O["a"])(h["g"],5e3),bodyClass:Object(O["a"])(h["c"]),headerClass:Object(O["a"])(h["c"]),isStatus:Object(O["a"])(h["e"],!1),noAutoHide:Object(O["a"])(h["e"],!1),noCloseButton:Object(O["a"])(h["e"],!1),noFade:Object(O["a"])(h["e"],!1),noHoverPause:Object(O["a"])(h["e"],!1),solid:Object(O["a"])(h["e"],!1),static:Object(O["a"])(h["e"],!1),title:Object(O["a"])(h["j"]),toastClass:Object(O["a"])(h["c"]),toaster:Object(O["a"])(h["j"],"b-toaster-top-right"),variant:Object(O["a"])(h["j"])})),u["n"]),q=a["default"].extend({name:u["n"],mixins:[T["a"],w["a"],L,S["a"],$["a"],D["a"]],inheritAttrs:!1,props:W,data:function(){return{isMounted:!1,doRender:!1,localShow:!1,isTransitioning:!1,isHiding:!1,order:0,dismissStarted:0,resumeDismiss:0}},computed:{toastClasses:function(){var t=this.appendToast,e=this.variant;return I({"b-toast-solid":this.solid,"b-toast-append":t,"b-toast-prepend":!t},"b-toast-".concat(e),e)},slotScope:function(){var t=this.hide;return{hide:t}},computedDuration:function(){return Object(b["a"])(Object(v["c"])(this.autoHideDelay,0),F)},computedToaster:function(){return String(this.toaster)},transitionHandlers:function(){return{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,afterLeave:this.onAfterLeave}},computedAttrs:function(){return M(M({},this.bvAttrs),{},{id:this.safeId(),tabindex:"0"})}},watch:(n={},I(n,R,(function(t){this[t?"show":"hide"]()})),I(n,"localShow",(function(t){t!==this[R]&&this.$emit(z,t)})),I(n,"toaster",(function(){this.$nextTick(this.ensureToaster)})),I(n,"static",(function(t){t&&this.localShow&&this.ensureToaster()})),n),created:function(){this.$_dismissTimer=null},mounted:function(){var t=this;this.isMounted=!0,this.$nextTick((function(){t[R]&&Object(p["y"])((function(){t.show()}))})),this.listenOnRoot(Object(m["d"])(u["n"],l["l"]),(function(e){e===t.safeId()&&t.show()})),this.listenOnRoot(Object(m["d"])(u["n"],l["i"]),(function(e){e&&e!==t.safeId()||t.hide()})),this.listenOnRoot(Object(m["e"])(u["o"],l["e"]),(function(e){e===t.computedToaster&&t.hide()}))},beforeDestroy:function(){this.clearDismissTimer()},methods:{show:function(){var t=this;if(!this.localShow){this.ensureToaster();var e=this.buildEvent(l["l"]);this.emitEvent(e),this.dismissStarted=this.resumeDismiss=0,this.order=Date.now()*(this.appendToast?1:-1),this.isHiding=!1,this.doRender=!0,this.$nextTick((function(){Object(p["y"])((function(){t.localShow=!0}))}))}},hide:function(){var t=this;if(this.localShow){var e=this.buildEvent(l["i"]);this.emitEvent(e),this.setHoverHandler(!1),this.dismissStarted=this.resumeDismiss=0,this.clearDismissTimer(),this.isHiding=!0,Object(p["y"])((function(){t.localShow=!1}))}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new f["a"](t,M(M({cancelable:!1,target:this.$el||null,relatedTarget:null},e),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(t){var e=t.type;this.emitOnRoot(Object(m["e"])(u["n"],e),t),this.$emit(e,t)},ensureToaster:function(){if(!this.static){var t=this.computedToaster;if(!o["Wormhole"].hasTarget(t)){var e=document.createElement("div");document.body.appendChild(e);var s=new H({parent:this.$root,propsData:{name:t}});s.$mount(e)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(t){var e=this.$refs["b-toast"];Object(m["c"])(t,e,"mouseenter",this.onPause,l["o"]),Object(m["c"])(t,e,"mouseleave",this.onUnPause,l["o"])},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.$_dismissTimer&&!this.resumeDismiss){var t=Date.now()-this.dismissStarted;t>0&&(this.clearDismissTimer(),this.resumeDismiss=Object(b["a"])(this.computedDuration-t,F))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var t=this;this.$nextTick((function(){Object(p["y"])((function(){t.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var t=this.buildEvent(l["m"]);this.emitEvent(t),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var t=this.buildEvent(l["h"]);this.emitEvent(t),this.doRender=!1},makeToast:function(t){var e=this,s=this.title,n=this.slotScope,i=Object(j["d"])(this),r=[],o=this.normalizeSlot(d["k"],n);o?r.push(o):s&&r.push(t("strong",{staticClass:"mr-2"},s)),this.noCloseButton||r.push(t(C["a"],{staticClass:"ml-auto mb-1",on:{click:function(){e.hide()}}}));var a=t();r.length>0&&(a=t("header",{staticClass:"toast-header",class:this.headerClass},r));var u=t(i?P["a"]:"div",{staticClass:"toast-body",class:this.bodyClass,props:i?Object(O["c"])(U,this):{},on:i?{click:this.onLinkClick}:{}},this.normalizeSlot(d["b"],n));return t("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[c["a"]]),ref:"toast"},[a,u])}},render:function(t){if(!this.doRender||!this.isMounted)return t();var e=this.order,s=this.static,n=this.isHiding,i=this.isStatus,r="b-toast-".concat(this[c["a"]]),a=t("div",{staticClass:"b-toast",class:this.toastClasses,attrs:M(M({},s?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:n?null:i?"status":"alert","aria-live":n?null:i?"polite":"assertive","aria-atomic":n?null:"true"}),key:r,ref:"b-toast"},[t(x["a"],{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(t):t()])]);return t(o["Portal"],{props:{name:r,to:this.computedToaster,order:e,slim:!0,disabled:s}},[a])}}),V=(s("2dd8"),{name:"Toast",components:{BToast:q},props:{autoHideDelay:{type:Number,default:2e3},title:{type:String,default:""},variant:{type:String,default:""},visible:{type:Boolean,default:!0},message:{type:String,default:""},toastClass:{type:String,default:""}},methods:{}}),J=V,G=(s("9370"),s("2877")),K=Object(G["a"])(J,i,r,!1,null,null,null);e["default"]=K.exports},1944:function(t,e,s){"use strict";s.r(e);var n=s("92fa"),i=s.n(n);e["default"]={name:"Checkmark",functional:!0,render:function(t,e){return t("svg",i()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},e.data]),[t("polyline",{attrs:{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",points:"20,5 9,19 4,14"}})])}}},"2b88":function(t,e,s){"use strict"; /*! * portal-vue © Thorsten Lünborg, 2019 * * Version: 2.1.7 * * LICENCE: MIT * * https://github.com/linusborg/portal-vue * */function n(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var i=n(s("2b0e"));function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t){return a(t)||c(t)||u()}function a(t){if(Array.isArray(t)){for(var e=0,s=new Array(t.length);e<t.length;e++)s[e]=t[e];return s}}function c(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var l="undefined"!==typeof window;function h(t){return Array.isArray(t)||"object"===r(t)?Object.freeze(t):t}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,s){var n=s.passengers[0],i="function"===typeof n?n(e):s.passengers;return t.concat(i)}),[])}function f(t,e){return t.map((function(t,e){return[e,t]})).sort((function(t,s){return e(t[1],s[1])||t[0]-s[0]})).map((function(t){return t[1]}))}function p(t,e){return e.reduce((function(e,s){return t.hasOwnProperty(s)&&(e[s]=t[s]),e}),{})}var m={},b={},g={},v=i.extend({data:function(){return{transports:m,targets:b,sources:g,trackInstances:l}},methods:{open:function(t){if(l){var e=t.to,s=t.from,n=t.passengers,r=t.order,o=void 0===r?1/0:r;if(e&&s&&n){var a={to:e,from:s,passengers:h(n),order:o},c=Object.keys(this.transports);-1===c.indexOf(e)&&i.set(this.transports,e,[]);var u=this.$_getTransportIndex(a),d=this.transports[e].slice(0);-1===u?d.push(a):d[u]=a,this.transports[e]=f(d,(function(t,e){return t.order-e.order}))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t.to,n=t.from;if(s&&(n||!1!==e)&&this.transports[s])if(e)this.transports[s]=[];else{var i=this.$_getTransportIndex(t);if(i>=0){var r=this.transports[s].slice(0);r.splice(i,1),this.transports[s]=r}}},registerTarget:function(t,e,s){l&&(this.trackInstances&&!s&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,s){l&&(this.trackInstances&&!s&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,s=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===s)return+n;return-1}}}),y=new v(m),O=1,j=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(O++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){y.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};y.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:o(t),order:this.order};y.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],s=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(s,[this.normalizeOwnChildren(e)]):this.slim?t():t(s,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),T=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){y.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){y.unregisterTarget(e),y.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return d(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),s=this.children(),n=this.transition||this.tag;return e?s[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},s)}}),w=0,S=["disabled","name","order","slim","slotProps","tag","to"],$=["multiple","transition"],D=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(w++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(y.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=y.targets[e.name];else{var s=e.append;if(s){var n="string"===typeof s?s:"DIV",i=document.createElement(n);t.appendChild(i),t=i}var r=p(this.$props,$);r.slim=this.targetSlim,r.tag=this.targetTag,r.slotProps=this.targetSlotProps,r.name=this.to,this.portalTarget=new T({el:t,parent:this.$parent||this,propsData:r})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,S);return t(j,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var s=this.$scopedSlots.manual({to:this.to});return Array.isArray(s)&&(s=s[0]),s||t()}});function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",j),t.component(e.portalTargetName||"PortalTarget",T),t.component(e.MountingPortalName||"MountingPortal",D)}var P={install:C};e.default=P,e.Portal=j,e.PortalTarget=T,e.MountingPortal=D,e.Wormhole=y},"2dd8":function(t,e,s){},"5cad":function(t,e,s){"use strict";s.r(e);var n=s("92fa"),i=s.n(n);e["default"]={name:"Info",functional:!0,render:function(t,e){return t("svg",i()([{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},e.data]),[t("g",{attrs:{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}},[t("circle",{attrs:{cx:"12",cy:"12",r:"10"}}),t("line",{attrs:{x1:"12",y1:"16",x2:"12",y2:"12"}}),t("line",{attrs:{x1:"11.99",y1:"8",x2:"12.01",y2:"8"}})])])}}},"777f":function(t,e,s){"use strict";s.r(e);var n=s("92fa"),i=s.n(n);e["default"]={name:"Close",functional:!0,render:function(t,e){return t("svg",i()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M19.18 5.18l-.35-.36a.51.51 0 00-.71 0L12 10.94 5.89 4.82a.51.51 0 00-.71 0l-.35.36a.48.48 0 000 .7L11 12l-6.17 6.12a.48.48 0 000 .7l.35.36a.51.51 0 00.71 0L12 13.06l6.11 6.12a.51.51 0 00.71 0l.35-.36a.48.48 0 000-.7L13.07 12l6.11-6.12a.48.48 0 000-.7z",fill:"currentColor"}})])}}},9370:function(t,e,s){"use strict";var n=s("0967"),i=s.n(n);i.a},a8c8:function(t,e,s){"use strict";s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return i}));Math.min;var n=Math.max,i=(Math.abs,Math.ceil,Math.floor,Math.pow);Math.round}}]);