!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="132fd9ca-8da9-4531-a3fc-fb83e49c4edc",t._sentryDebugIdIdentifier="sentry-dbid-132fd9ca-8da9-4531-a3fc-fb83e49c4edc")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"c53813d2abf9ffd3d319fa4d0265e910cb5513ea"},(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1282:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n(282),n(28);var r=n(68),o=n(5),d=n(7),l={name:"md-checkbox",components:{MdInkRipple:r.a},props:{name:String,value:[String,Boolean,Array],id:String,disabled:Boolean,mdValue:[String],invalid:{type:Boolean,default:!1},labelAutoHeight:{type:Boolean,default:!1}},data:function(){return{checked:this.value||!1,isFocused:!1}},computed:{classes:function(){return{"md-checked":this.isArray()?this.value.indexOf(this.mdValue)>=0:this.checked,"md-disabled":this.disabled}}},watch:{value:function(){this.isArray()||(this.checked=!!this.value)}},methods:{toggleCheck:function(t){if(!this.disabled)if(this.isArray()){var e=this.value.indexOf(this.mdValue);e>=0?this.value.splice(e,1):this.value.push(this.mdValue),this.$emit("change",this.value,t),this.$emit("input",this.value,t)}else this.checked=!this.checked,this.$emit("change",this.checked,t),this.$emit("input",this.checked,t)},isArray:function(){return Array.isArray(this.value)}}},c=Object(o.a)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-checkbox",class:[t.classes]},[n("div",{class:["md-checkbox-container",{"md-checkbox-container--invalid":t.invalid}],on:{click:function(e){return e.stopPropagation(),t.toggleCheck.apply(null,arguments)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.toggleCheck.apply(null,arguments)}}},[n("input",{attrs:{id:t.id,type:"checkbox",name:t.name,disabled:t.disabled},domProps:{value:t.mdValue,checked:t.checked},on:{focus:function(){return t.isFocused=!0},blur:function(){return t.isFocused=!1}}}),t._v(" "),n("md-ink-ripple",{attrs:{"md-disabled":t.disabled,"is-focused":t.isFocused}})],1),t._v(" "),t.$slots.default?n("label",{class:["md-checkbox-label",{"md-checkbox-label--height-auto":t.labelAutoHeight},{"md-checkbox-label--invalid":t.invalid}],attrs:{for:t.id||t.name},on:{click:function(e){return e.preventDefault(),t.toggleCheck.apply(null,arguments)}}},[t._t("default")],2):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-e50cd9d6_0",{source:'.md-checkbox{width:auto;margin:16px 8px 16px 0;display:inline-flex;position:relative}.md-checkbox:not(.md-disabled){cursor:pointer}.md-checkbox:not(.md-disabled) .md-checkbox-label{cursor:pointer}.md-checkbox.md-checked .md-checkbox-container{background-color:var(--theme-color,#cddc39);border-color:var(--theme-color,#cddc39)}.md-checkbox.md-checked .md-checkbox-container:after{border-color:rgba(0,0,0,.87);opacity:1;transform:rotate(45deg) scale3D(1,1,1);transition:all .4s cubic-bezier(.25,.8,.25,1)}.md-checkbox .md-ink-ripple{color:var(--theme-color,#cddc39)}.md-checkbox .md-ripple{opacity:.26}.md-checkbox.md-primary.md-checked .md-checkbox-container{background-color:var(--theme-color,#cddc39);border-color:var(--theme-color,#cddc39)}.md-checkbox.md-primary.md-checked .md-checkbox-container:after{border-color:rgba(0,0,0,.87)}.md-checkbox.md-primary .md-ink-ripple{color:var(--theme-color,#cddc39)}.md-checkbox.md-warn.md-checked .md-checkbox-container{background-color:#cf6679;border-color:#cf6679}.md-checkbox.md-warn.md-checked .md-checkbox-container:after{border-color:rgba(0,0,0,.87)}.md-checkbox.md-warn .md-ink-ripple{color:#cf6679}.md-checkbox.md-disabled.md-checked .md-checkbox-container{background-color:rgba(255,255,255,.38);border-color:transparent}.md-checkbox.md-disabled:not(.md-checked) .md-checkbox-container{border-color:rgba(255,255,255,.38)}.md-checkbox .md-checkbox-container{width:20px;min-width:20px;height:20px;position:relative;border-radius:2px;transition:all .4s cubic-bezier(.25,.8,.25,1);border:2px solid rgba(255,255,255,.65)}.md-checkbox .md-checkbox-container:focus{outline:0}.md-checkbox .md-checkbox-container:before{width:48px;height:48px;position:absolute;top:50%;left:50%;border-radius:50%;transform:translate(-50%,-50%);transition:all .3s cubic-bezier(.55,0,.55,.2);content:" "}.md-checkbox .md-checkbox-container:after{width:6px;height:13px;position:absolute;top:0;left:5px;border:2px solid #fff;border-top:0;border-left:0;opacity:0;transform:rotate(45deg) scale3D(.15,.15,1);transition:all .3s cubic-bezier(.55,0,.55,.2);content:" "}.md-checkbox .md-checkbox-container input{position:absolute;left:-999em}.md-checkbox .md-checkbox-container .md-ink-ripple{top:-16px;right:-16px;bottom:-16px;left:-16px;border-radius:50%;color:rgba(0,0,0,.54)}.md-checkbox .md-checkbox-container .md-ink-ripple .md-ripple{width:48px!important;height:48px!important;top:0!important;right:0!important;bottom:0!important;left:0!important}.md-checkbox .md-checkbox-container--invalid{border-color:#cf6679}.md-checkbox .md-checkbox-label{height:20px;padding-left:8px;line-height:20px}.md-checkbox .md-checkbox-label--height-auto{height:auto}.md-checkbox .md-checkbox-label--invalid{color:#cf6679}',map:void 0,media:void 0})}),l,undefined,!1,undefined,!1,d.a,void 0,void 0)},1361:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));n(77),n(103);var r=n(552),o=n(64),d=n(58),l=n(220),c=n(324),m=n(5),h=n(7),f={name:"tdl-cards-gallery",components:{MdButton:o.a,MdIcon:d.a},mixins:[c.c],props:{cardWidth:{type:Number,default:235},cardGap:{type:Number,default:8},cardsNumber:{type:Number,default:0},allowComputedCardWidth:{type:Boolean,default:!1},singleCardMovement:{type:Boolean,default:!0},buttonCentered:{type:Boolean,default:!1},buttonIconSet:{type:Array},buttonRaised:{type:Boolean,default:!1},buttonIconSize:{type:String,default:"24px"},buttonOverlapping:{type:Boolean,default:!1},actionButtonsSameOnHover:{type:Boolean,default:!1},animationTime:{type:Number,default:300},theme:{type:String},noActionRightSpacing:{type:Boolean,default:!1},noActionLeftSpacing:{type:Boolean,default:!1},noHorizontalScroll:{type:Boolean,default:!1},lessButtonActive:{type:Boolean,default:!0},moreButtonActive:{type:Boolean,default:!0},buttonSmall:{type:Boolean,default:!1},cardsGalleryIdentifier:{type:String,required:!1},shouldShowScrim:{type:Boolean,default:!1},enableAnimation:{type:Boolean,default:!0},shouldOverlapButtons:{type:Boolean,default:!1},forceMaxWidth:{type:Boolean,default:!1}},computed:{cssProps:function(){return{"--card-gap":"".concat(this.cardGap,"px"),"--icon-size":this.buttonIconSize,"--computed-card-width":"".concat(this.computedCardWidth,"px"),"--less-button-position":this.shouldOverlapButtons?"0px":"-24px","--more-button-position":this.shouldOverlapButtons?"0px":"-12px"}},currentContainerWidth:function(){return this.maxContentWidth<370&&this.$root.$emit("small-container-width"),this.maxContentWidth},showMoreButton:function(){return this.moreButtonActive&&this.currentCard+(this.cardsPerScreen||this.computedCardsPerScreen)<this.cardsNumber},showLessButton:function(){return this.lessButtonActive&&this.currentCard>0},computedCardWidth:function(){return this.allowComputedCardWidth?this.fullWidthView/Math.floor(this.cardsPerScreen)-this.cardGap:this.cardWidth},cardsPerMovement:function(){return this.singleCardMovement?1:Math.floor(this.cardsPerScreen)},currentTheme:function(){return this.theme},computedCardsPerScreen:function(){var t;return(((null===(t=this.$refs.container)||void 0===t||null===(t=t.getBoundingClientRect())||void 0===t?void 0:t.width)||0)+this.cardGap)/(this.cardWidth+this.cardGap)},containerMaxWidth:function(){return this.currentContainerWidth>0&&(this.platformMixin__isMobile||this.forceMaxWidth)?"".concat(this.currentContainerWidth,"px"):""}},watch:{cardsNumber:function(){this.computeCardsPerScreen()}},data:function(){return{fullWidthView:0,currentCard:0,cardsPerScreen:0,isMoving:!1,maxContentWidth:0,shadowGap:4,resizeDebounce:null}},mounted:function(){var t=this;setTimeout((function(){t.computeCardsPerScreen(),t.setupListeners()}),500)},beforeDestroy:function(){this.removeListeners()},methods:{setupListeners:function(){var t=this.$refs.container;t&&t.addEventListener("scroll",this.handleScroll,Object(l.a)()),window.addEventListener("resize",this.computeCardsPerScreen)},removeListeners:function(){var t=this.$refs.container;t&&t.removeEventListener("scroll",this.handleScroll,Object(l.a)()),window.removeEventListener("resize",this.computeCardsPerScreen)},handleScroll:function(){var t=this;this.isMoving||Object(r.a)((function(){t.currentCard=t.$refs.container.scrollLeft/(t.computedCardWidth+t.cardGap)}))()},computeCardsPerScreen:function(){var t=this;this.maxContentWidth=0,this.$nextTick((function(){var e=t.cardsGalleryIdentifier?document.querySelector(".".concat(t.cardsGalleryIdentifier)):document.querySelector(".tdl-cards-gallery__cards-container");t.fullWidthView=null==e?void 0:e.getBoundingClientRect().width,t.cardsPerScreen=(t.fullWidthView+t.cardGap)/(t.cardWidth+t.cardGap),clearTimeout(t.resizeDebounce),t.resizeDebounce=setTimeout((function(){t.setDisplaySize()}),500)}))},moveToNextCard:function(){var t=this;this.currentCard=Math.floor(this.currentCard+this.cardsPerMovement)<this.cardsNumber?Math.floor(this.currentCard+this.cardsPerMovement):this.cardsNumber-Math.floor(this.cardsPerScreen),this.$nextTick((function(){t.animateList()}))},moveToPreviousCard:function(){var t=this;this.currentCard=Math.ceil(this.currentCard-this.cardsPerMovement)>=0?Math.ceil(this.currentCard-this.cardsPerMovement):0,this.$nextTick((function(){t.animateList()}))},animateList:function(){var t=this,e=this.$refs.cardsList.children[this.currentCard];this.$scrollTo(e,this.animationTime,{container:this.$refs.container,easing:"ease-in-out",offset:-2,cancelable:!0,x:!0,y:!1,onStart:function(){t.isMoving=!0},onDone:function(){setTimeout((function(){t.isMoving=!1}),100)},onCancel:function(){t.isMoving=!1}})},setDisplaySize:function(){this.maxContentWidth=Math.floor(this.cardsPerScreen)*this.cardWidth+this.cardGap*(Math.floor(this.cardsPerScreen)-1)+this.shadowGap}}},v=Object(m.a)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["tdl-cards-gallery",{"tdl-cards-gallery--animate":t.enableAnimation}],style:t.cssProps},[n("div",{staticClass:"tdl-cards-gallery__section-container"},[t.showLessButton?t._t("fade-left"):t._e(),t._v(" "),t.showLessButton?n("div",{class:["tdl-cards-gallery__action tdl-cards-gallery__action--less",{"tdl-cards-gallery__action--overlapping":t.buttonOverlapping,"tdl-cards-gallery__action--centered":t.buttonCentered,"tdl-cards-gallery__action--no-spacing":t.noActionLeftSpacing,"tdl-cards-gallery__action--small-div":t.buttonSmall,"tdl-cards-gallery__action--scrim":t.shouldShowScrim,"tdl-cards-gallery__action--less-scrim":t.shouldShowScrim,"tdl-cards-gallery__action--no-scrim-bg":!t.showLessButton}]},[n("md-button",{class:[t.buttonSmall?"dark-background md-icon-button small-button":"md-primary md-icon-button",{"md-raised":t.buttonRaised,"same-on-hover":t.actionButtonsSameOnHover}],attrs:{disabled:t.isMoving,theme:t.theme},on:{click:t.moveToPreviousCard}},[n("md-icon",{class:[{"tmc-theme":t.buttonSmall}],attrs:{"icon-svg":t.buttonIconSet[0],size:"30px"}})],1)],1):t._e(),t._v(" "),n("div",{ref:"container",staticClass:"tdl-cards-gallery__cards-container",class:[{"tdl-cards-gallery__cards-container--less-content":t.cardsNumber<=t.cardsPerScreen},t.cardsGalleryIdentifier,t.noHorizontalScroll?"tdl-cards-gallery__cards-container--not-scrollable":"tdl-cards-gallery__cards-container--scrollable",{"tdl-cards-gallery__cards-container--no-margin-right":!t.showLessButton&&t.showMoreButton},{"tdl-cards-gallery__cards-container--no-margin-left":!t.showMoreButton&&t.showLessButton}],style:{"max-width":t.containerMaxWidth}},[n("div",{ref:"cardsList",staticClass:"tdl-cards-gallery__cards-list"},[t._t("default")],2)]),t._v(" "),t.showMoreButton?n("div",{class:["tdl-cards-gallery__action tdl-cards-gallery__action--more",{"tdl-cards-gallery__action--overlapping":t.buttonOverlapping,"tdl-cards-gallery__action--centered":t.buttonCentered,"tdl-cards-gallery__action--no-spacing":t.noActionRightSpacing,"tdl-cards-gallery__action--small-div":t.buttonSmall,"tdl-cards-gallery__action--scrim":t.shouldShowScrim,"tdl-cards-gallery__action--more-scrim":t.shouldShowScrim,"tdl-cards-gallery__action--no-scrim-bg":!t.showMoreButton}]},[n("md-button",{class:[t.buttonSmall?"dark-background md-icon-button small-button":"md-primary md-icon-button",{"md-raised":t.buttonRaised,"same-on-hover":t.actionButtonsSameOnHover}],attrs:{disabled:t.isMoving,theme:t.theme},on:{click:t.moveToNextCard}},[n("md-icon",{class:[{"tmc-theme":t.buttonSmall}],attrs:{"icon-svg":t.buttonIconSet[1],size:"30px"}})],1)],1):t._e(),t._v(" "),t.showMoreButton?t._t("fade-right"):t._e()],2)])},staticRenderFns:[]},(function(t){t&&t("data-v-38b1c981_0",{source:".tdl-lazy-loader-hide-background-image[data-v-38b1c981]{background-image:none!important;top:0!important}.tdl-cards-gallery[data-v-38b1c981]{display:flex;flex-direction:column;margin-top:24px;margin-bottom:40px}.tdl-cards-gallery--animate[data-v-38b1c981]{opacity:0;animation:increaseOpacity-data-v-38b1c981 .5s 1s;animation-fill-mode:forwards}.tdl-cards-gallery__section-container[data-v-38b1c981]{position:relative;display:flex;align-items:center;min-width:100%}.tdl-cards-gallery__cards-container[data-v-38b1c981]{display:flex;justify-content:flex-start;width:100%;margin:0 auto;padding:2px;overflow-y:hidden;scrollbar-width:none}.tdl-cards-gallery__cards-container[data-v-38b1c981]::-webkit-scrollbar{display:none}.tdl-cards-gallery__cards-container--less-content[data-v-38b1c981]{max-width:100%!important}.tdl-cards-gallery__cards-container--scrollable[data-v-38b1c981]{overflow-x:scroll}.tdl-cards-gallery__cards-container--not-scrollable[data-v-38b1c981]{overflow-x:hidden}@media (min-width:720px){.tdl-cards-gallery__cards-container--no-margin-right[data-v-38b1c981]{margin-right:0}}@media (min-width:720px){.tdl-cards-gallery__cards-container--no-margin-left[data-v-38b1c981]{margin-left:0}}.tdl-cards-gallery__cards-list[data-v-38b1c981]{display:flex;justify-content:flex-start;transition:all .2s}.tdl-cards-gallery__cards-list>*[data-v-38b1c981]{margin-right:var(--card-gap);width:var(--computed-card-width)!important;min-width:var(--computed-card-width)!important}@media (max-width:720px){.tdl-cards-gallery__cards-list[data-v-38b1c981]>:first-child{margin-left:var(--card-gap)!important}.tdl-cards-gallery__cards-list[data-v-38b1c981]>:last-child{margin-right:var(--card-gap)!important}}.tdl-cards-gallery__action[data-v-38b1c981]{min-width:40px;max-width:40px}.tdl-cards-gallery__action--small-div[data-v-38b1c981]{top:auto!important}.tdl-cards-gallery__action .small-button[data-v-38b1c981]{min-width:24px;min-height:24px;width:24px;height:24px}@media (max-width:720px){.tdl-cards-gallery__action[data-v-38b1c981]{min-width:32px}}.tdl-cards-gallery__action .md-icon[data-v-38b1c981]{display:flex;min-width:var(--icon-size);width:var(--icon-size);min-height:var(--icon-size);height:var(--icon-size);font-size:var(--icon-size);line-height:var(--icon-size)}.tdl-cards-gallery__action--overlapping[data-v-38b1c981]{position:absolute;top:calc(50% - 20px)}.tdl-cards-gallery__action--overlapping>.md-button[data-v-38b1c981]{z-index:3;-webkit-transform:translate3d(0,0,0)}.tdl-cards-gallery__action--overlapping.tdl-cards-gallery__action--less[data-v-38b1c981]{left:var(--less-button-position)}.tdl-cards-gallery__action--overlapping.tdl-cards-gallery__action--less.tdl-cards-gallery__action--no-spacing[data-v-38b1c981]{left:0}.tdl-cards-gallery__action--overlapping.tdl-cards-gallery__action--more[data-v-38b1c981]{right:var(--more-button-position)}.tdl-cards-gallery__action--overlapping.tdl-cards-gallery__action--more.tdl-cards-gallery__action--no-spacing[data-v-38b1c981]{right:0}.tdl-cards-gallery__action--overlapping.tdl-cards-gallery__action--centered[data-v-38b1c981]{top:calc(50% - 30px)}.tdl-cards-gallery__action--more .md-button[data-v-38b1c981]{margin-right:0;margin-left:0}@media (max-width:720px){.tdl-cards-gallery__action--more .md-button[data-v-38b1c981]{margin-right:11px;margin-left:0;padding-left:0}}.tdl-cards-gallery__action--less .md-button[data-v-38b1c981]{margin-left:0}.tdl-cards-gallery__action--scrim[data-v-38b1c981]{position:absolute;top:0;top:0;height:100%;display:flex;align-items:center;justify-content:center;z-index:100}.tdl-cards-gallery__action--less-scrim[data-v-38b1c981]{left:0;background-image:linear-gradient(to right,rgba(39,41,45,.98),rgba(39,41,45,.53),rgba(39,41,45,0))}.tdl-cards-gallery__action--more-scrim[data-v-38b1c981]{right:0;background-image:linear-gradient(to left,rgba(39,41,45,.98),rgba(39,41,45,.53),rgba(39,41,45,0))}.tdl-cards-gallery__action--no-scrim-bg[data-v-38b1c981]{background-image:none}@keyframes increaseOpacity-data-v-38b1c981{from{opacity:0}to{opacity:1}}",map:void 0,media:void 0})}),f,"data-v-38b1c981",!1,undefined,!1,h.a,void 0,void 0)},1462:function(t,e,n){"use strict";var r=n(9),o=n(965);r({target:"String",proto:!0,forced:n(966)("link")},{link:function(t){return o(this,"a","href",t)}})},1465:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),o=n(5),d=n(7),l=r.default.extend({name:"tmd-error-container",props:{customError:{type:String,default:""},errorList:{type:Array,default:function(){return[]}},errorMaxWidth:{type:String,default:"80%"},invalid:{type:Boolean,default:!1},noLeftMargin:{type:Boolean,default:!1},hasCounter:{type:Boolean,default:!1},lastInput:{type:Boolean,default:!1}},computed:{cssVariables:function(){return{"--error-max-width":this.errorMaxWidth}},showError:function(){return this.invalid?""!==this.customError?this.customError:this.errorList[0]:""}}}),c=Object(o.a)({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:["tmd-error-container tmd-caption",{"tmd-error-container--invalid":t.invalid,"tmd-error-container--counter":t.hasCounter,"tmd-error-container--no-left-margin":t.noLeftMargin,"tmd-error-container--last-input":t.lastInput}],style:t.cssVariables},[t._v("\n  "+t._s(t.showError)+"\n")])},staticRenderFns:[]},(function(t){t&&t("data-v-4dac4594_0",{source:".tmd-error-container[data-v-4dac4594]{min-height:16px;margin:4px 0 16px 16px;max-width:100%}.tmd-error-container--no-left-margin[data-v-4dac4594]{margin:8px 0 16px 0}.tmd-error-container--last-input[data-v-4dac4594]{margin:4px 0 0 16px}.tmd-error-container--counter[data-v-4dac4594]{max-width:85%}@media (min-width:720px){.tmd-error-container--counter[data-v-4dac4594]{max-width:var(--error-max-width)}}.tmd-error-container--invalid[data-v-4dac4594]{color:#cf6679!important;text-align:left}",map:void 0,media:void 0})}),l,"data-v-4dac4594",!1,undefined,!1,d.a,void 0,void 0)},1530:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));n(77),n(31),n(97),n(6),n(49),n(103);var r=n(331),o=n(109),d=n(3),l=n(196),c=n(5),m=n(7),h=new d.default({data:function(){return{current:null}}}),f={name:"md-snackbar",props:{id:[String,Number],mdPosition:{type:String,default:"bottom center"},mdDuration:{type:[String,Number],default:4e3},mdHeight:{type:[String,Number],default:48},mdWarn:{type:Boolean,default:!1}},data:function(){return{snackbarId:this.id||"snackbar-"+Object(r.a)(),removedSnackBarElementEventName:"removedSnackBarElement",active:!1,rootElement:{},snackbarElement:{},directionClass:null,closeTimeout:null,removedSnackBarElementEvent:null,footersOffset:0,mutationObserver:null}},computed:{classes:function(){var t={"md-active":this.active};return this.directionClass=this.mdPosition.replace(/ /g,"-"),t["md-position-"+this.directionClass]=!0,t},offsetHeight:function(){return{transform:"translate3D(0, calc(100% - ".concat(this.footersOffset,"px), 0)")}}},watch:{active:function(t){var e="md-has-toast-"+this.directionClass,n="md-has-toast";t?(document.body.classList.add(e),document.body.classList.add(n)):(document.body.classList.remove(e),document.body.classList.remove(n))}},methods:{getFootersHeight:function(){if(document){var t=document.querySelectorAll(".md-footer:not(.torreBanner--embedded)"),e=0;t.length&&t.forEach((function(footer){e+=footer.offsetHeight}));var n=document.querySelector(".tds-navigation-tabs");return n&&window.innerWidth<720&&(e+=n.offsetHeight),e}},getMdHeight:function(){var t=this.$refs.container;return(null==t?void 0:t.clientHeight)>this.mdHeight?t.clientHeight:this.mdHeight},updatePosition:function(){var t=document?document.querySelector(".tdl-full-screen-dialog"):null,e=this.getMdHeight();this.footersOffset=t?e:this.getFootersHeight()+e},removeElement:function(){if(document.body.contains(this.snackbarElement)&&!this.active){var t=this.snackbarElement.querySelector(".md-ripple.md-active");t&&t.classList.remove("md-active"),document.body.removeChild(this.snackbarElement)}document.dispatchEvent(this.removedSnackBarElementEvent)},open:function(){if(this.updatePosition(),h.current)return document.removeEventListener(this.removedSnackBarElementEventName,this.showElementAndStartTimer),document.addEventListener(this.removedSnackBarElementEventName,this.showElementAndStartTimer),void h.current.close();this.showElementAndStartTimer()},showElementAndStartTimer:function(){document.body.contains(this.snackbarElement)||(this.pendingDuration=this.mdDuration,document.removeEventListener(this.removedSnackBarElementEventName,this.showElementAndStartTimer),h.current=this,document.body.appendChild(this.snackbarElement),null!==this.$refs.container&&void 0!==this.$refs.container&&window.getComputedStyle(this.$refs.container).backgroundColor,this.active=!0,this.updatePosition(),this.$emit("open"),this.mdDuration!==1/0&&this.setCloseTimeout(this.mdDuration),this.timeoutStartedAt=Date.now())},close:function(){var t=this;if(this.pauseTimeout(),this.$refs.container){this.active=!1,this.footersOffset=0;var e=function e(){document.removeEventListener(o.a,e),t.removeElement()};h.current=null,this.$emit("close"),document.removeEventListener(o.a,e),document.addEventListener(o.a,e),this.clearCloseTimeout(),this.pendingDuration=this.mdDuration}},pauseTimeout:function(){if(Object(l.d)())return!1;0!==this.timeoutStartedAt&&(this.pendingDuration=this.pendingDuration-(Date.now()-this.timeoutStartedAt),this.pendingDuration=Math.max(this.pendingDuration,0)),this.clearCloseTimeout()},resumeTimeout:function(){if(Object(l.d)())return!1;this.timeoutStartedAt=Date.now(),this.pendingDuration!==1/0&&this.setCloseTimeout(this.pendingDuration)},setCloseTimeout:function(t){this.clearCloseTimeout(),this.closeTimeout=window.setTimeout(this.close,t)},clearCloseTimeout:function(){this.closeTimeout&&(window.clearTimeout(this.closeTimeout),this.closeTimeout=null)},updateOnDomChange:function(t){var e=this;t.forEach((function(t){if("class"===t.attributeName){var n=!1;t.target.classList.contains("has-candidate-bar")&&!n&&(e.updatePosition(),n=!0)}t.removedNodes.length>0&&e.updatePosition()}))},setupMutationObserver:function(){var t=this,e=new MutationObserver((function(e){return t.updateOnDomChange(e)}));e.observe(document.body,{attributes:!0,childList:!0}),this.mutationObserver=e}},mounted:function(){var t=this;this.setupMutationObserver(),this.$nextTick((function(){t.snackbarElement=t.$el,t.snackbarElement.parentNode.removeChild(t.snackbarElement),t.timeoutStartedAt=0,t.pendingDuration=t.mdDuration})),this.removedSnackBarElementEvent=new Event(this.removedSnackBarElementEventName)},beforeDestroy:function(){null==this||this.mutationObserver.disconnect(),this.clearCloseTimeout(),this.active=!1,this.removeElement()}},v=Object(c.a)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-snackbar",class:[t.classes],attrs:{id:t.snackbarId}},[n("div",{ref:"container",staticClass:"md-snackbar-container",style:[t.offsetHeight]},[n("div",{staticClass:"md-snackbar-content",class:[{"md-warn":t.mdWarn}]},[t._t("default")],2)])])},staticRenderFns:[]},(function(t){t&&t("data-v-1062a3ec_0",{source:".md-snackbar{display:flex;position:fixed;right:0;left:0;z-index:120;pointer-events:none;transition:all .4s cubic-bezier(.25,.8,.25,1);transition-property:margin-top,margin-bottom}.md-snackbar .md-ink-ripple{color:rgba(0,0,0,.87)}.md-snackbar .md-snackbar-container{background-color:#e3e3e3;color:rgba(0,0,0,.87)}.md-snackbar.md-position-bottom-center,.md-snackbar.md-position-top-center{justify-content:center}.md-snackbar.md-position-bottom-right,.md-snackbar.md-position-top-right{margin-right:24px;justify-content:flex-end}.md-snackbar.md-position-bottom-left,.md-snackbar.md-position-top-left{margin-left:24px;justify-content:flex-start}.md-snackbar.md-position-top-center,.md-snackbar.md-position-top-left,.md-snackbar.md-position-top-right{margin-top:24px}.md-snackbar.md-position-bottom-left,.md-snackbar.md-position-bottom-right{margin-bottom:24px}.md-snackbar.md-position-top-center,.md-snackbar.md-position-top-left,.md-snackbar.md-position-top-right{top:0}.md-snackbar.md-position-top-center .md-snackbar-container,.md-snackbar.md-position-top-left .md-snackbar-container,.md-snackbar.md-position-top-right .md-snackbar-container{transform:translate3D(0,calc(-100% - 24px),0)}.md-snackbar.md-position-bottom-center,.md-snackbar.md-position-bottom-left,.md-snackbar.md-position-bottom-right{bottom:0}.md-snackbar.md-position-bottom-center .md-snackbar-container,.md-snackbar.md-position-bottom-left .md-snackbar-container,.md-snackbar.md-position-bottom-right .md-snackbar-container{transform:translate3D(0,calc(100% + 24px),0)}.md-snackbar.md-active .md-snackbar-container{transform:translate3D(0,0,0)}.md-snackbar.md-active .md-snackbar-content{opacity:1;transition:opacity .4s .1s cubic-bezier(.25,.8,.25,1)}@media (max-width:600px){.md-snackbar{margin:0!important}}.md-snackbar .md-snackbar-content{display:flex;align-items:center;justify-content:space-between;opacity:0;transition:opacity .2s cubic-bezier(.25,.8,.25,1);will-change:opacity}.md-snackbar .md-button{min-width:88px;margin:-8px -4px}.md-snackbar .md-button:last-child{margin-left:48px}.md-snackbar .md-button.md-accent:not(.md-icon-button){color:#98a520}.md-snackbar .md-warn .md-button{color:#a00303}.md-snackbar-container{width:auto;min-width:288px;max-width:568px;min-height:48px;padding:14px 16px;overflow:hidden;pointer-events:auto;border-radius:2px;transition:all .4s cubic-bezier(.25,.8,.25,1);font-size:14px}@media (max-width:600px){.md-snackbar-container{width:100%;max-width:100%;border-radius:0}}.md-has-toast-top-right .md-fab.md-fab-top-right{transform:translate3D(0,68px,0)}@media (max-width:600px){.md-has-toast-top-right .md-fab.md-fab-top-right{transform:translate3D(0,48px,0)}}.md-has-toast-top-center .md-fab.md-fab-top-center{transform:translate3D(-50%,68px,0)}@media (max-width:600px){.md-has-toast-top-center .md-fab.md-fab-top-center{transform:translate3D(-50%,48px,0)}}.md-has-toast-top-left .md-fab.md-fab-top-left{transform:translate3D(0,68px,0)}@media (max-width:600px){.md-has-toast-top-left .md-fab.md-fab-top-left{transform:translate3D(0,48px,0)}}.md-has-toast-bottom-right .md-fab.md-fab-bottom-right{transform:translate3D(0,-68px,0)}@media (max-width:600px){.md-has-toast-bottom-right .md-fab.md-fab-bottom-right{transform:translate3D(0,-48px,0)}}.md-has-toast-bottom-center .md-fab.md-fab-bottom-center{transform:translate3D(-50%,-68px,0)}@media (max-width:600px){.md-has-toast-bottom-center .md-fab.md-fab-bottom-center{transform:translate3D(-50%,-48px,0)}}.md-has-toast-bottom-left .md-fab.md-fab-bottom-left{transform:translate3D(0,-68px,0)}@media (max-width:600px){.md-has-toast-bottom-left .md-fab.md-fab-bottom-left{transform:translate3D(0,-48px,0)}}",map:void 0,media:void 0})}),f,undefined,!1,undefined,!1,m.a,void 0,void 0)},1532:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(20),o=(n(28),n(91),n(3)),d=n(172),l=n(1465),c=n(5),m=n(7),h=o.default.extend({name:"tmd-form-field",components:{TmdErrorContainer:l.a,ValidationProvider:d.a.ValidationProvider},props:{customError:{type:String,default:""},errorMaxWidth:{type:String,default:"80%"},fullWidth:{type:Boolean,default:!1},name:{type:String,required:!0},noLeftMargin:{type:Boolean,default:!1},noOverrides:{type:Boolean,default:!1},hideErrors:{type:String,default:"false"},hasCounter:{type:Boolean,default:!1},lastInput:{type:Boolean,default:!1},rules:{type:[String,Object],default:""},vid:{type:String,default:""},immediate:{type:Boolean,default:!1},mode:{type:[String,Function],default:"aggressive"}},data:function(){return{fieldErrors:[]}},computed:{invalid:function(){return this.fieldErrors.length>0},shouldHideErrors:function(){return"clean"===this.hideErrors?!this.invalid:"true"===this.hideErrors}},watch:{"$i18n.locale":function(t,e){t!==e&&d.a.localize(t)}},mounted:function(){this.$i18n&&d.a.localize(this.$i18n.locale)},methods:{setErrors:function(t){this.fieldErrors=t},reset:function(){var t;null===(t=this.$refs.provider)||void 0===t||t.reset()},validate:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null===(n=t.$refs.provider)||void 0===n?void 0:n.validate());case 1:case"end":return e.stop()}}),e)})))()},validateSilent:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null===(n=t.$refs.provider)||void 0===n?void 0:n.validateSilent());case 1:case"end":return e.stop()}}),e)})))()}}}),f=Object(c.a)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ValidationProvider",{ref:"provider",class:["tmd-form-field",{"tmd-form-field--full-width":t.fullWidth,"tmd-form-field-overrides":!t.noOverrides}],attrs:{tag:"div",mode:t.mode,name:"'"+t.name+"'",immediate:t.immediate,rules:t.rules,vid:t.vid},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors,o=e.failedRules,d=e.classes;return[t._v("\n  "+t._s(t.setErrors(r))+"\n  "),t._t("default",null,{invalid:t.invalid,errors:r,failedRules:o,classes:d}),t._v(" "),t.invalid&&!t.shouldHideErrors?n("tmd-error-container",{attrs:{"custom-error":t.customError,"error-list":t.fieldErrors,"error-max-width":t.errorMaxWidth,"has-counter":t.hasCounter,invalid:t.invalid,"last-input":t.lastInput,"no-left-margin":t.noLeftMargin}}):t._e(),t._v(" "),t.invalid||t.shouldHideErrors?t._e():n("div",{class:["tmd-form-field--helper-container",{"tmd-form-field--no-left-margin":t.noLeftMargin,"tmd-form-field--last-input":t.lastInput}]},[t._t("helper")],2)]}}],null,!0)})},staticRenderFns:[]},(function(t){t&&t("data-v-6a32769a_0",{source:".tmd-input[data-v-6a32769a],.tmd-textarea[data-v-6a32769a]{font-size:16px;line-height:32px}.tmd-button[data-v-6a32769a]{font-size:14px;font-weight:600;letter-spacing:.01em;line-height:20px;text-transform:uppercase;font-family:inherit}.tmd-caption[data-v-6a32769a],small[data-v-6a32769a]{font-size:12px;font-weight:400;letter-spacing:.02em;line-height:16px}.tmd-body[data-v-6a32769a]{font-size:14px;font-weight:400;letter-spacing:.018em;line-height:20px}.tmd-headline[data-v-6a32769a],h1[data-v-6a32769a],h2[data-v-6a32769a]{font-size:20px;font-weight:600;letter-spacing:.005em;line-height:28px}a[data-v-6a32769a]:not(.tmd-button):not(.md-button){text-decoration:none;cursor:pointer}a[data-v-6a32769a]:not(.tmd-button):not(.md-button):hover{text-decoration:underline}button[data-v-6a32769a]:focus{outline:0}.tmd-form-field--helper-container[data-v-6a32769a]{min-height:16px;margin:4px 0 16px 16px;max-width:100%}.tmd-form-field--helper-container.tmd-form-field--no-left-margin[data-v-6a32769a]{margin:8px 0 16px 0}.tmd-form-field--helper-container.tmd-form-field--last-input[data-v-6a32769a]{margin:4px 0 0 16px}.tmd-form-field--full-width[data-v-6a32769a]{width:100%}.tmd-form-field.tmd-form-field-overrides[data-v-6a32769a]  .md-input-container{margin:8px 0 0!important}.tmd-form-field.tmd-form-field-overrides[data-v-6a32769a]  .md-input-container.tdl-typeahead.md-input-invalid{margin-bottom:0!important}",map:void 0,media:void 0})}),h,"data-v-6a32769a",!1,undefined,!1,m.a,void 0,void 0)},1604:function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var r=n(20),o=n(45),d=(n(91),n(28),n(30),n(6),n(38),n(43),n(103),n(36),n(31),n(64)),l=n(1282),c=n(333),m=n(330),h=n(327),f=n(561),v=n(1554),y=n(1465),_=n(1532),x=n(5),k=n(7),w={components:{MdButton:d.a,MdCheckbox:l.a,MdChip:c.a,MdInput:m.a,MdInputContainer:h.a,TdlEntityRender:f.a,TdlTypeahead:v.a,TmdErrorContainer:y.a,TmdFormField:_.a},props:{addNewItemSlotPosition:{type:String,default:"bottom"},addNewItemText:{type:String,required:!1},fetchPeople:{type:Function,required:!1},fetchPeopleObservable:{type:Function,required:!1},mode:{type:String,required:!1,default:""},prefillNewContact:{type:Boolean,default:!1},newContactToPrefill:{type:Object,required:!1},peopleSearchText:{type:String,required:!1},shouldShowTeamLeaderFlag:{type:Boolean,default:!1},shouldValidateQuery:{type:Boolean,default:!0},selectItemOnInputBlur:{type:Boolean,default:!0},filterList:{type:Function,required:!1},createOnBlur:{type:Boolean,default:!1},singlePerson:{type:Boolean,default:!0},value:Array,useComponentCustomValidation:{type:Boolean,default:!1},buttonText:{type:String,default:"ADD"},chipsPosition:{type:String,default:"up"},showSuggestions:{type:Boolean,default:!1},itemDeletable:{type:Function,default:function(){return!0}},typeaheadDisabled:{type:Boolean,default:!1},emitOnDelete:{type:Boolean,default:!1},selectedPeople:Array,compactEntity:{type:Boolean,default:!1}},data:function(){return{people:[],person:[],email:"",name:"",mdiAccountPlusIcon:null,checkTeamLeader:!1,displayRemovingManagerError:!1,fieldFilled:"name",shouldValidateEmail:!1,shouldValidateName:!1,textToPrefill:""}},computed:{shouldAddNewPerson:function(){return!!this.person[0]&&"anonymous"===this.person[0].person.username||this.email},peopleSearchTextValue:function(){return this.shouldAddNewPerson?"name"===this.fieldFilled?"".concat(this.$t("Person's name"),"*"):"".concat(this.$t("Email"),"*"):this.$t("Find or add someone by name or email")},addNewItemCleanText:function(){return this.addNewItemText?this.addNewItemText:this.$t("Add this person")},shouldValidateEmailInternally:function(){return this.useComponentCustomValidation&&this.shouldValidateEmail},emailFieldIsInvalid:function(){return!this.isEmailValid(this.email)},emailFieldInvalidValidationCheck:function(){return!this.useComponentCustomValidation&&this.emailFieldIsInvalid||this.shouldValidateEmailInternally&&(""===this.email||this.emailFieldIsInvalid)},nameFieldIsInvalid:function(){return this.useComponentCustomValidation&&""===this.name},nameFieldInvalidValidationCheck:function(){return!this.useComponentCustomValidation&&""===this.name||this.shouldValidateName&&this.nameFieldIsInvalid},addButtonDisabled:function(){return this.useComponentCustomValidation?!this.name||this.emailFieldIsInvalid||!this.person[0]:!this.name||!this.email||this.emailFieldIsInvalid||this.nameFieldIsInvalid||!this.person[0]},chipsShouldBeUp:function(){return"up"===this.chipsPosition},isNameFilled:function(){return"name"===this.fieldFilled}},watch:{person:{handler:function(t){t[0]&&"anonymous"!==t[0].person.username?(this.shouldShowTeamLeaderFlag&&(t[0].teamLeader=this.checkTeamLeader),this.singlePerson?this.people=[t[0]]:this.people=[].concat(Object(o.a)(this.people),Object(o.a)(t)),this.$emit("input",this.people),this.person=[],this.checkTeamLeader=!1):0===t.length&&this.email&&(this.email=null,this.fieldFilled="name"),this.resetValidations()},deep:!0},shouldAddNewPerson:{handler:function(t){this.$root.$emit("adding-people",!!t),this.resetValidations()}}},created:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(0).then(n.bind(null,1247));case 2:r=e.sent,o=r.mdiAccountPlus,t.mdiAccountPlusIcon=o;case 5:case"end":return e.stop()}}),e)})))()},mounted:function(){var t=this;this.$nextTick((function(){t.people=t.selectedPeople&&t.selectedPeople.length?t.selectedPeople:t.value,t.prefillNewContact&&setTimeout((function(){t.setPrefilledData(t.newContactToPrefill),t.person.push(t.newContactToPrefill)}),100)})),this.$root.$on("remove-person",this.deletePerson)},methods:{personItemFactory:function(text){var t=text;this.isEmailValid(text)&&(this.fieldFilled="email",this.email=text,t=""),this.name=t;var e={username:"anonymous",name:t};return Promise.resolve({id:text,text:text,person:e,teamLeader:this.checkTeamLeader})},getItemLabel:function(t){return t.member?t.member.name||t.member.person.name:t.name||t.person.name},filterPerson:function(t){return!this.people.some((function(e){return e.person.username===t.person.username}))},filterPeople:function(t){return this.filterList?this.filterList(t)&&this.filterPerson(t):this.filterPerson(t)},addPerson:function(){"email"===this.fieldFilled&&(this.person[0].person.name=this.name),this.person[0].person.email=this.email,this.person[0].teamLeader=this.checkTeamLeader,this.singlePerson?this.people=[this.person[0]]:this.people=[].concat(Object(o.a)(this.people),Object(o.a)(this.person)),this.$emit("newcontact-people",this.people),this.$emit("input",this.people),this.person=[],this.email="",this.name="",this.checkTeamLeader=!1,this.fieldFilled="name",this.useComponentCustomValidation&&(this.shouldValidateEmail=!1,this.shouldValidateName=!1),this.resetValidations()},deletePerson:function(t){this.people=t.useName?this.people.filter((function(e){return e.person.name!==t.name})):this.people.filter((function(e){return e.id!==t.id})),this.$emit("unselect-contact",t),this.emitOnDelete&&this.$emit("input",this.people)},isEmailValid:function(text){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/.test(text)},setPrefilledData:function(t){var text=t.text;this.isEmailValid(text)?(this.fieldFilled="email",this.email=text,this.name=""):(this.fieldFilled="name",this.name=text,this.email=""),this.textToPrefill=text},resetValidations:function(){var t=this;this.$nextTick((function(){var e,n;null===(e=t.$refs.mainFormField)||void 0===e||e.reset(),null===(n=t.$refs.secondFormField)||void 0===n||n.reset()}))},updateShouldValidateField:function(t){if(this.useComponentCustomValidation)switch(t){case"email":this.shouldValidateEmail=!0;break;case"name":this.shouldValidateName=!0}}}},C=Object(x.a)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tdl-add-people"},[t.chipsShouldBeUp&&!t.singlePerson&&t.people.length?n("div",{staticClass:"tdl-add-people__selected"},t._l(t.people,(function(e,r){return n("md-chip",{key:r,staticClass:"tdl-add-people__selected-chip",attrs:{"md-editable":!1,"md-deletable":t.itemDeletable(e)},on:{delete:function(n){return t.deletePerson(e)}}},[t._v("\n      "+t._s(t.getItemLabel(e))+"\n    ")])})),1):t._e(),t._v(" "),n("tmd-form-field",{ref:"mainFormField",attrs:{name:t.isNameFilled?t.$t("Person's name"):t.$t("Email"),"hide-errors":"true",rules:{email:!t.useComponentCustomValidation&&!t.isNameFilled}},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors,o=e.invalid;return[n("tdl-typeahead",{class:[{"md-input-invalid":!t.useComponentCustomValidation&&o},{"team-leader-flag":t.shouldShowTeamLeaderFlag}],attrs:{debounce:300,disabled:t.typeaheadDisabled,"input-label":t.peopleSearchTextValue,"min-chars":t.showSuggestions?0:1,"max-items":1,"fetch-list":t.fetchPeople,"observable-list":t.fetchPeopleObservable,"add-new-item":"","add-new-item-element":{type:"People",icon:t.mdiAccountPlusIcon,text:t.addNewItemCleanText},"add-new-item-when-query-matches":"","allow-new-item-text-duplication":"","item-factory":t.personItemFactory,"filter-list":t.filterPeople,"should-validate-query":t.shouldValidateQuery,"desktop-select-item-on-input-blur":t.selectItemOnInputBlur,"create-on-blur":t.createOnBlur,"add-new-item-slot-position":t.addNewItemSlotPosition,"prefilled-text":t.textToPrefill,"max-query-length":"255",validate:!1},scopedSlots:t._u([{key:"item",fn:function(e){var r=e.item;return[n("tdl-entity-render",{class:["tdl-add-people__entity-render",{"tdl-add-people__entity-render--compact":t.compact}],attrs:{entity:r.person,"image-border-width":2,"image-size":40,"icon-size":15,hide:["weight"],"compact-entity":t.compactEntity,shape:"hexagon"}})]}}],null,!0),model:{value:t.person,callback:function(e){t.person=e},expression:"person"}}),t._v(" "),n("tmd-error-container",{attrs:{"error-list":r,invalid:o}})]}}])}),t._v(" "),t.shouldAddNewPerson?n("div",{staticClass:"tdl-add-people__email-container email-container"},[n("tmd-form-field",{ref:"secondFormField",attrs:{name:t.isNameFilled?t.$t("Email"):t.$t("Person's name"),"hide-errors":"true",rules:{required:!t.useComponentCustomValidation,email:!t.useComponentCustomValidation&&t.isNameFilled}},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors,o=e.invalid;return[n("md-input-container",{class:{"md-input-invalid":o},scopedSlots:t._u([{key:"label",fn:function(){return[t._v("\n          "+t._s(t.isNameFilled?t.$t("Email"):t.$t("Person's name"))+"*\n        ")]},proxy:!0}],null,!0)},[t._v(" "),t.isNameFilled?n("md-input",{on:{input:function(e){return t.updateShouldValidateField("email")}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}):t._e(),t._v(" "),t.isNameFilled?t._e():n("md-input",{on:{input:function(e){return t.updateShouldValidateField("name")}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),t._v(" "),n("tmd-error-container",{attrs:{"error-list":r,"custom-error":t.useComponentCustomValidation?t.isNameFilled?t.$t("The email field must be a valid email"):t.$t("The name field is required"):"",invalid:o}})]}}],null,!1,2073451063)}),t._v(" "),t.shouldShowTeamLeaderFlag?n("div",{staticClass:"checkbox-container"},[n("md-checkbox",{staticClass:"md-primary checkbox-container--checkbox",attrs:{name:"checkTeamLeader"},model:{value:t.checkTeamLeader,callback:function(e){t.checkTeamLeader=e},expression:"checkTeamLeader"}},[t._v("\n        "+t._s(t.$t("Team leader"))+"\n      ")])],1):t._e(),t._v(" "),n("div",{staticClass:"email-container__button-wrapper"},[n("md-button",{staticClass:"md-primary md-raised email-container__button",attrs:{disabled:t.addButtonDisabled},on:{click:t.addPerson}},[t._v("\n        "+t._s(t.$t(t.buttonText))+"\n      ")])],1)],1):t.shouldShowTeamLeaderFlag?n("div",{staticClass:"checkbox-container"},[n("md-checkbox",{staticClass:"md-primary checkbox-container--checkbox",attrs:{name:"checkTeamLeader"},model:{value:t.checkTeamLeader,callback:function(e){t.checkTeamLeader=e},expression:"checkTeamLeader"}},[t._v("\n      "+t._s(t.$t("Team leader"))+"\n    ")])],1):t._e(),t._v(" "),t.chipsShouldBeUp||t.singlePerson||!t.people.length?t._e():n("div",{staticClass:"tdl-add-people__selected__down"},t._l(t.people,(function(e,r){return n("md-chip",{key:r,staticClass:"tdl-add-people__selected-chip",attrs:{"md-editable":!1,"md-deletable":t.itemDeletable(e)},on:{delete:function(n){return t.deletePerson(e)}}},[t._v("\n      "+t._s(t.getItemLabel(e))+"\n    ")])})),1)],1)},staticRenderFns:[]},(function(t){t&&t("data-v-3bb8d26e_0",{source:".tdl-add-people[data-v-3bb8d26e]{width:100%;margin-top:24px}.tdl-add-people .md-input-container[data-v-3bb8d26e]{margin:24px 0}.tdl-add-people .team-leader-flag[data-v-3bb8d26e]{margin:24px 0 0 0!important}.tdl-add-people__selected[data-v-3bb8d26e]{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.tdl-add-people__selected__down[data-v-3bb8d26e]{padding-bottom:16px;margin-top:24px}.tdl-add-people__selected-chip[data-v-3bb8d26e]{margin-right:8px;margin-top:8px}.tdl-add-people__selected-chip.md-deletable[data-v-3bb8d26e]{gap:8px;padding-right:8px}.tdl-add-people .email-container__button-wrapper[data-v-3bb8d26e]{display:flex;justify-content:flex-end;width:100%;margin-bottom:24px}@media (max-width:720px){.tdl-add-people .email-container__button-wrapper[data-v-3bb8d26e]{margin-top:24px}}.tdl-add-people .email-container__button[data-v-3bb8d26e]{margin:0}.tdl-add-people .checkbox-container[data-v-3bb8d26e]{display:flex;padding-top:0!important}.tdl-add-people .checkbox-container--checkbox[data-v-3bb8d26e]{margin:0}.tdl-add-people .checkbox-container--label[data-v-3bb8d26e]{margin-left:15px}.tdl-add-people__entity-render[data-v-3bb8d26e]{margin:10px 0}.tdl-add-people__entity-render--compact[data-v-3bb8d26e]{margin:0;padding:12px 0}[data-v-3bb8d26e] .tdl-entity-render__name{color:rgba(255,255,255,.9)}",map:void 0,media:void 0})}),w,"data-v-3bb8d26e",!1,undefined,!1,k.a,void 0,void 0)},1729:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(44),o=n(20),d=(n(91),n(30),n(36),n(6),n(285),n(31),n(105),n(197),n(38),n(43),n(1462),n(90),n(114),n(196)),l=n(64),c=n(58),m=n(1530),h=n(326),f=n(1361),v=n(5),y=n(7),_=Math.floor(100*Math.random()),x={name:"tdl-share-away",components:{MdButton:l.a,MdIcon:c.a,MdSnackbar:m.a,mdSpinner:h.a,TdlCardsGallery:f.a},props:{torreBaseUrl:{type:String,required:!0},torreAppBaseUrl:{type:String,required:!0},text:{type:String},linkedInParams:{type:Object,required:!1,default:function(){return{title:"",summary:""}}},url:{type:String,required:!1},include:{type:Array,default:function(){return["torre","facebook","whatsapp","linkedin","x","email","more"]}},subject:{type:String,required:!1},utm:{type:String,default:function(){return""}},source:{type:String},urlProcessor:{type:Function},preParsedUrl:{type:Boolean,default:!1},flow:{type:String,default:"share"},shareToken:{type:String,required:!1},dialogSubmitButton:{type:String,default:"visible"},fullWidth:{type:Boolean,required:!1},title:{type:String,required:!1},itsOptional:{type:Boolean,default:!1}},data:function(){var t=this;return{shareUrlsAreReady:!1,shortenedUrl:null,encodedUrl:this.copyPasteUrl,copied:!1,imgSize:{width:50,height:50},clipboard:null,webShareApiSupported:!1,config:{email:{icon:null,label:this.$t("Email"),link:function(text,e){return"mailto:?".concat(e?"subject=".concat(e,"&"):"","body=").concat(text?encodeURIComponent(text+" "):"").concat(t.emailUrl())}},facebook:{image:"https://res.cloudinary.com/torre-technologies-co/image/upload/v1620430310/origin/bio/facebook-icon.svg",label:"Facebook",link:function(text,e){return"https://facebook.com/sharer/sharer.php?u=".concat(t.facebookUrl(),"&quote=").concat(text?encodeURIComponent(text+" "):"")}},linkedin:{image:"https://res.cloudinary.com/torre-technologies-co/image/upload/v1620430310/origin/bio/linkedin-icon.svg",label:"LinkedIn",link:function(e,n){return"https://www.linkedin.com/shareArticle?url=".concat(t.linkedinUrl())}},more:{icon:null,label:this.$t("More")},torre:{image:"https://res.cloudinary.com/torre-technologies-co/image/upload/c_scale,h_150/e_grayscale/v1693326045/origin/logo/lme2xzeiyztawrjrcv7y.png",label:"Torre",link:function(text,e){return"".concat(t.torreAppBaseUrl,"/messenger?message=").concat(text?encodeURIComponent(text+" "):"").concat(t.torreUrl())}},x:{image:"https://res.cloudinary.com/torre-technologies-co/image/upload/v1729623859/origin/bio/X-icon.svg",label:"X",link:function(text,e){return"https://x.com/intent/post?url=".concat(t.xUrl(),"&text=").concat(text?encodeURIComponent(text+" "):"")}},whatsapp:{image:"https://res.cloudinary.com/torre-technologies-co/image/upload/v1620430310/origin/bio/whatsapp-icon.svg",label:"WhatsApp",link:function(text,e){return"https://wa.me/?text=".concat(text?encodeURIComponent(text+" "):"").concat(t.whatsappUrl())}}},mdiChevronLeft:null,mdiChevronRight:null,mdiContentCopy:null,mdiDotsHorizontal:null,mdiEmail:null}},computed:{clipboardText:function(){return this.copied?this.$t("Link copied"):this.$t("Copy link")},availableOptions:function(){var t=this;return this.include.filter((function(e){return"more"===e?t.webShareApiSupported&&t.config[e]:t.config[e]}))},parsedUrl:function(){var t=new RegExp(/(http[s]?:\/\/)?([^\/\s]+)(.*)/);return this.urlProcessor&&this.url&&!this.preParsedUrl?this.url.match(t)[3]:this.url},parsedToken:function(){return this.shareToken?"&s=".concat(this.shareToken):""}},watch:{url:function(t,e){this.url&&this.chooseEligibleUrl(),t&&t!==e&&this.checkForUrlReady()}},created:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var r,o,d,l,c,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(0).then(n.bind(null,1247));case 2:r=e.sent,o=r.mdiChevronLeft,d=r.mdiChevronRight,l=r.mdiContentCopy,c=r.mdiDotsHorizontal,m=r.mdiEmail,t.mdiChevronLeft=o,t.mdiChevronRight=d,t.mdiContentCopy=l,t.mdiDotsHorizontal=c,t.mdiEmail=m,t.config.more.icon=c,t.config.email.icon=m;case 15:case"end":return e.stop()}}),e)})))()},methods:{torreUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"utm_source=torre-messenger&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},facebookUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"shareKey=").concat(_,"&utm_source=facebook&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},xUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"shareKey=").concat(_,"&utm_source=twitter&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},linkedinUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"shareKey=").concat(_,"&utm_source=linkedin&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},copyPasteUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"utm_source=copy-paste&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},emailUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"utm_source=email&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},whatsappUrl:function(t){var e=this.parsedUrl&&this.parsedUrl.match(/\?./)?"&":"?";return"".concat(t||this.url).concat(e,"shareKey=").concat(_,"&utm_source=whatsapp&utm_medium=").concat(this.source||"share").concat(this.parsedToken).concat(this.utm)},openLink:function(option){var t=option.link(this.text,this.subject);"Torre"==option.label?window.location.href=t:this.externalLink(t)},httpMatch:function(t){return t.match(/^(https?:\/\/|mailto:)/i)},externalLink:function(t){var e=this.httpMatch(t)?t:"http://"+t;window.open(e,"_blank")},assignUrls:function(t){var e=this,n=Object(r.a)(t,7),o=n[0],d=n[1],l=n[2],c=n[3],m=n[4],h=n[5],f=n[6];this.shortenedUrl=c,this.config.facebook.link=function(text,t){return"https://facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(o),"&quote=").concat(text?encodeURIComponent(text+" "):"")},this.config.x.link=function(text,t){return"https://x.com/intent/post?url=".concat(encodeURIComponent(d)).concat(text?"&text=".concat(encodeURIComponent(text)):"")},this.config.linkedin.link=function(t,e){return"https://www.linkedin.com/shareArticle?url=".concat(encodeURIComponent(l))},this.config.whatsapp.link=function(text,t){return"https://wa.me/?text=".concat(text?encodeURIComponent(text+" "):"").concat(encodeURIComponent(m))},this.config.torre.link=function(text,t){return"".concat(e.torreAppBaseUrl,"/messenger?message=").concat(text?encodeURIComponent(text+" "):"").concat(encodeURIComponent(h))},this.config.email.link=function(text,t){return"mailto:?".concat(t?"subject=".concat(t,"&"):"","body=").concat(text?encodeURIComponent(text+" "):"").concat(encodeURIComponent(f))},this.encodedUrl=function(t,e){return c}},chooseEligibleUrl:function(){var t=this;this.urlProcessor?this.url.includes("sharingToken")?this.encodedUrl=function(e,n){return t.url}:this.encodedUrl=function(e,n){return t.shortenedUrl||t.parsedUrl}:this.url.includes("sharingToken")?this.encodedUrl=function(e,n){return t.url}:this.encodedUrl=function(e,n){return t.parsedUrl}},calculateLinks:function(){var t=this,e=[this.facebookUrl(this.parsedUrl),this.xUrl(this.parsedUrl),this.linkedinUrl(this.parsedUrl),this.copyPasteUrl(this.parsedUrl),this.whatsappUrl(this.parsedUrl),this.torreUrl(this.parsedUrl),this.emailUrl(this.parsedUrl)],n=[this.facebookUrl(this.url),this.xUrl(this.url),this.linkedinUrl(this.url),this.copyPasteUrl(this.url),this.whatsappUrl(this.url),this.torreUrl(this.url),this.emailUrl(this.url)];this.assignUrls(n),this.urlProcessor&&this.url?Promise.all(this.urlProcessor(e)).then((function(e){t.assignUrls(e),t.shareUrlsAreReady=!0})).catch((function(){t.assignUrls(n)})):this.urlProcessor||(this.shareUrlsAreReady=!0)},isEmailOrMore:function(t){return"email"===t||"more"===t},selectOption:function(t){if(this.url&&this.checkForUrlReady(),"more"===t)this.$emit("selected-share-option",{label:t,link:this.encodedUrl()}),this.webShare();else{var option=this.config[t];this.$emit("selected-share-option",{label:option.label,link:option.link(this.text,this.subject)}),this.$root.$emit("selected-share-option",{label:option.label,link:option.link(this.text,this.subject)}),this.openLink(option)}},webShare:function(){var t=this;this.webShareApiSupported&&navigator.share({title:document.title,text:this.text,url:this.encodedUrl()}).then((function(){return t.$emit("shared")})).catch((function(t){return console.error("Error sharing",t)}))},isWebShareApiSupported:function(){return!(!navigator||!navigator.share)&&(navigator.share&&(!Object(d.b)()||Object(d.d)()&&!Object(d.a)()))},onUrlReady:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(43).then(n.t.bind(null,1770,7));case 2:r=e.sent.default,t.calculateLinks(),t.clipboard&&t.clipboard.destroy(),t.clipboard=new r("#copy-link",{text:function(){return t.encodedUrl()}}),t.clipboard.on("success",(function(e){t.copied||e.text!==t.encodedUrl()||t.$emit("link-copied",{link:t.encodedUrl(),duplicated:t.copied}),t.copied=!0,t.$refs.snackbar&&t.$refs.snackbar.open()}));case 7:case"end":return e.stop()}}),e)})))()},checkForUrlReady:function(){this.encodedUrl&&this.url&&this.onUrlReady()},getRightIcon:function(label){return"Email"===label||label===this.$t("Email")?this.mdiEmail:this.mdiDotsHorizontal},resetCopyClipboard:function(){this.copied=!1}},mounted:function(){this.webShareApiSupported=this.isWebShareApiSupported(),this.url&&(this.chooseEligibleUrl(),this.checkForUrlReady()),this.$root.$on("reset-copy-clipboard",this.resetCopyClipboard)},beforeDestroy:function(){this.$refs.snackbar&&this.$refs.snackbar.close(),this.$root.$off("reset-copy-clipboard",this.resetCopyClipboard)}},k=Object(v.a)({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["tdl-share-away",{"tdl-share-away--upper":"hidden"===t.dialogSubmitButton},{"tdl-share-away--shadow":t.fullWidth}]},[!t.fullWidth&&t.url?n("div",[n("p",{staticClass:"tdl-share-away__title md-subheading"},[t._v("\n      "+t._s(t.title||t.$t("Or share via"))+":\n    ")]),t._v(" "),n("div",{staticClass:"tdl-share-away__options"},[n("tdl-cards-gallery",{staticClass:"tdl-share-away__options-gallery",attrs:{"card-width":88,"card-gap":0,"button-icon-set":[t.mdiChevronLeft,t.mdiChevronRight],"cards-number":t.availableOptions.length+1,"animation-time":100,"button-icon-size":"24px","button-raised":!0,"button-overlapping":!0,"button-centered":!0,"action-right-spacing":!0,"action-left-spacing":!0,"enable-animation":!1,"should-overlap-buttons":!0,"cards-gallery-identifier":"shareawayCardsGallery","button-small":!0,"action-buttons-same-on-hover":""}},[n("div",{ref:"clipboardItem",staticClass:"tdl-share-away__option",attrs:{id:"copy-link"}},[n("div",{staticClass:"tdl-share-away__option-icon tdl-share-away__option-icon--copy-link"},[n("md-icon",{staticClass:"tdl-share-away__option-icon-svg",attrs:{"icon-svg":t.mdiContentCopy}})],1),t._v(" "),n("div",{staticClass:"tdl-share-away__option-text md-label"},[t._v("\n            "+t._s(t.clipboardText)+"\n          ")])]),t._v(" "),t._l(t.availableOptions,(function(option){return n("div",{key:option,staticClass:"tdl-share-away__option",on:{click:function(e){return t.selectOption(option)}}},[n("div",{class:["tdl-share-away__option-icon",{"tdl-share-away__option-icon--background":t.isEmailOrMore(option)}]},[t.config[option].hasOwnProperty("image")?n("img",{staticClass:"tdl-share-away__option-icon-image",attrs:{src:t.config[option].image,alt:t.config[option].label,width:t.imgSize.width,height:t.imgSize.height}}):n("md-icon",{staticClass:"tdl-share-away__option-icon-svg",attrs:{"icon-svg":t.getRightIcon(t.config[option].label)}})],1),t._v(" "),n("div",{staticClass:"tdl-share-away__option-text md-label"},[t._v("\n            "+t._s(t.config[option].label)+"\n          ")])])}))],2)],1)]):t.url?n("div",[t.itsOptional?n("p",{staticClass:"tdl-share-away__optional md-subheading"},[t._v("\n      "+t._s(t.$t("Or, share via"))+":\n    ")]):t._e(),t._v(" "),t.shareUrlsAreReady?n("div",{staticClass:"tdl-share-away__options--full-width"},[n("div",{ref:"clipboardItem",staticClass:"tdl-share-away__option",attrs:{id:"copy-link"}},[n("div",{staticClass:"tdl-share-away__option-icon tdl-share-away__option-icon--copy-link"},[n("md-icon",{staticClass:"tdl-share-away__option-icon-svg",attrs:{"icon-svg":t.mdiContentCopy}})],1),t._v(" "),n("div",{staticClass:"tdl-share-away__option-text md-label"},[t._v("\n          "+t._s(t.clipboardText)+"\n        ")])]),t._v(" "),t._l(t.availableOptions,(function(option){return n("div",{key:option,staticClass:"tdl-share-away__option",on:{click:function(e){return t.selectOption(option)}}},[n("div",{class:["tdl-share-away__option-icon",{"tdl-share-away__option-icon--background":t.isEmailOrMore(option)}]},[t.config[option].hasOwnProperty("image")?n("img",{staticClass:"tdl-share-away__option-icon-image",attrs:{src:t.config[option].image,alt:t.config[option].label,width:t.imgSize.width,height:t.imgSize.height}}):n("md-icon",{staticClass:"tdl-share-away__option-icon-svg",attrs:{"icon-svg":t.getRightIcon(t.config[option].label)}})],1),t._v(" "),n("div",{staticClass:"tdl-share-away__option-text md-label"},[t._v("\n          "+t._s(t.config[option].label)+"\n        ")])])}))],2):t._e()]):t._e(),t._v(" "),t.shareUrlsAreReady?t._e():n("div",{staticClass:"tdl-share-away__loading"},[n("md-spinner",{attrs:{"md-indeterminate":"","md-size":56}})],1),t._v(" "),n("md-snackbar",{ref:"snackbar",attrs:{"md-position":"bottom center","md-duration":3e3}},[n("span",[t._v(t._s(t.$t("Link copied to clipboard")))])])],1)},staticRenderFns:[]},(function(t){t&&t("data-v-9d0e448c_0",{source:".tdl-share-away{padding:16px 16px 0 16px}.tdl-share-away__title{text-align:left;opacity:0;animation:increaseOpacity .5s 1s;animation-fill-mode:forwards}.tdl-share-away__optional{margin-bottom:24px!important;white-space:normal!important;text-align:left}.tdl-share-away__loading{text-align:center;overflow:hidden;padding:16px 0}.tdl-share-away__options{max-width:100%;overflow:hidden}.tdl-share-away__options--full-width{max-width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));grid-gap:20px 4px}.tdl-share-away__option{text-align:center;display:inline-block;width:76px;min-width:76px;cursor:pointer;padding-bottom:4px}.tdl-share-away__option-icon{display:inline-flex;align-items:center;border-radius:50%;height:50px;width:50px;margin-bottom:8px;color:rgba(0,0,0,.87)}.tdl-share-away__option-icon--copy-link{background-color:#cddc39}.tdl-share-away__option-icon--background{background-color:rgba(255,255,255,.65)}.tdl-share-away__option-icon-image{height:100%}.tdl-share-away__options-gallery{margin:16px 0!important}@keyframes increaseOpacity{from{opacity:0}to{opacity:1}}",map:void 0,media:void 0})}),x,undefined,!1,undefined,!1,y.a,void 0,void 0)}}]);