/*! For license information please see adaptivecards.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AdaptiveCards=t():e.AdaptiveCards=t()}(this,(function(){return(()=>{"use strict";var e={920:function(e,t){var n,i,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoginRequestResponse=t.ErrorResponse=t.SuccessResponse=t.ActivityResponse=t.ActivityRequestError=t.ActivityRequestTrigger=void 0,(i=t.ActivityRequestTrigger||(t.ActivityRequestTrigger={})).Automatic="automatic",i.Manual="manual";t.ActivityRequestError=function(e,t){this.code=e,this.message=t};var o=function(e){this.request=e};t.ActivityResponse=o;var s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.request=t,i.rawContent=n,i}return r(t,e),t}(o);t.SuccessResponse=s;var a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.request=t,i.error=n,i}return r(t,e),t}(o);t.ErrorResponse=a;var l=function(e){function t(t,n){var i=e.call(this,t)||this;i.request=t,i._auth=n;for(var r=0,o=i._auth.buttons;r0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?"Stopping automatic refreshes after "+t+" consecutive refreshes.":"The card has a refresh section, but automatic refreshes are disabled."),(a.GlobalSettings.applets.refresh.allowManualRefreshesAfterAutomaticRefreshes||a.GlobalSettings.applets.refresh.mode===o.RefreshMode.Manual)&&(h(o.LogLevel.Info,"Showing manual refresh button."),this.showManualRefreshButton(this._card.refresh.action)))}catch(e){h(o.LogLevel.Error,"setCard: "+e)}},e.prototype.internalExecuteAction=function(e,t,n){if(e instanceof u.ExecuteAction){if(!this.channelAdapter)throw new Error("internalExecuteAction: No channel adapter set.");var i=this.createActivityRequest(e,t,n);i&&i.retryAsync()}this.onAction&&this.onAction(this,e)},e.prototype.createProgressOverlay=function(e){if(!this._progressOverlay)if(this.onCreateProgressOverlay)this._progressOverlay=this.onCreateProgressOverlay(this,e);else{this._progressOverlay=document.createElement("div"),this._progressOverlay.className="aaf-progress-overlay";var t=document.createElement("div");t.className="aaf-spinner",t.style.width="28px",t.style.height="28px",this._progressOverlay.appendChild(t)}return this._progressOverlay},e.prototype.removeProgressOverlay=function(e){this.onRemoveProgressOverlay&&this.onRemoveProgressOverlay(this,e),void 0!==this._progressOverlay&&(this.renderedElement.removeChild(this._progressOverlay),this._progressOverlay=void 0)},e.prototype.activityRequestSucceeded=function(e,t){this.onActivityRequestSucceeded&&this.onActivityRequestSucceeded(this,e,t)},e.prototype.activityRequestFailed=function(e){return this.onActivityRequestFailed?this.onActivityRequestFailed(this,e):a.GlobalSettings.applets.defaultTimeBetweenRetryAttempts},e.prototype.showAuthCodeInputDialog=function(t){var n=this;if(!this.onShowAuthCodeInputDialog||this.onShowAuthCodeInputDialog(this,t)){var i=this.createMagicCodeInputCard(t.attemptNumber);i.render(),i.onExecuteAction=function(i){if(n.card&&i instanceof u.SubmitAction)switch(i.id){case e.submitMagicCodeActionId:var r=void 0;i.data&&"string"==typeof i.data.magicCode&&(r=i.data.magicCode),r?(n.displayCard(n.card),t.authCode=r,t.retryAsync()):alert("Please enter the magic code you received.");break;case e.cancelMagicCodeAuthActionId:h(o.LogLevel.Warning,"Authentication cancelled by user."),n.displayCard(n.card);break;default:h(o.LogLevel.Error,"Unespected action taken from magic code input card (id = "+i.id+")"),alert(p.Strings.magicCodeInputCard.somethingWentWrong())}},this.displayCard(i)}},e.prototype.internalSendActivityRequestAsync=function(e){return i(this,void 0,void 0,(function(){var t,n,i,s;return r(this,(function(u){switch(u.label){case 0:if(!this.channelAdapter)throw new Error("internalSendActivityRequestAsync: channelAdapter is not set.");void 0!==(t=this.createProgressOverlay(e))&&this.renderedElement.appendChild(t),n=!1,i=function(){var t,i,u,c,d,f,y;return r(this,(function(r){switch(r.label){case 0:t=void 0,1===e.attemptNumber?h(o.LogLevel.Info,"Sending activity request to channel (attempt "+e.attemptNumber+")"):h(o.LogLevel.Info,"Re-sending activity request to channel (attempt "+e.attemptNumber+")"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.channelAdapter.sendRequestAsync(e)];case 2:return t=r.sent(),[3,4];case 3:return i=r.sent(),h(o.LogLevel.Error,"Activity request failed: "+i),s.removeProgressOverlay(e),n=!0,[3,4];case 4:if(!t)return[3,10];if(!(t instanceof l.SuccessResponse))return[3,5];if(s.removeProgressOverlay(e),void 0===t.rawContent)throw new Error("internalSendActivityRequestAsync: Action.Execute result is undefined");u=t.rawContent;try{u=JSON.parse(t.rawContent)}catch(e){}if("string"==typeof u)h(o.LogLevel.Info,"The activity request returned a string after "+e.attemptNumber+" attempt(s)."),s.activityRequestSucceeded(t,u);else{if("object"!=typeof u||"AdaptiveCard"!==u.type)throw new Error("internalSendActivityRequestAsync: Action.Execute result is of unsupported type ("+typeof t.rawContent+")");h(o.LogLevel.Info,"The activity request returned an Adaptive Card after "+e.attemptNumber+" attempt(s)."),s.internalSetCard(u,e.consecutiveRefreshes),s.activityRequestSucceeded(t,s.card)}return n=!0,[3,10];case 5:return t instanceof l.ErrorResponse?(c=s.activityRequestFailed(t))>=0&&e.attemptNumber=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.SerializationContext=t.AdaptiveCard=t.Authentication=t.TokenExchangeResource=t.AuthCardButton=t.RefreshDefinition=t.RefreshActionProperty=t.ContainerWithActions=t.ColumnSet=t.Column=t.Container=t.BackgroundImage=t.ContainerBase=t.StylableCardElementContainer=t.ContainerStyleProperty=t.ActionSet=t.ShowCardAction=t.HttpAction=t.HttpHeader=t.ToggleVisibilityAction=t.OpenUrlAction=t.ExecuteAction=t.SubmitAction=t.SubmitActionBase=t.Action=t.TimeInput=t.TimeProperty=t.DateInput=t.NumberInput=t.ChoiceSetInput=t.Choice=t.ToggleInput=t.TextInput=t.Input=t.Media=t.MediaSource=t.ImageSet=t.CardElementContainer=t.Image=t.FactSet=t.Fact=t.RichTextBlock=t.TextRun=t.TextBlock=t.BaseTextBlock=t.ActionProperty=t.CardElement=t.renderSeparation=void 0;var s=n(10),a=n(764),l=n(755),p=n(699),u=n(639),c=n(817),h=n(475),d=n(432),f=n(653),y=n(441);function g(e,t,n){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var i=document.createElement("div");i.className=e.makeCssClassName("ac-"+(n==s.Orientation.Horizontal?"horizontal":"vertical")+"-separator"),i.setAttribute("aria-hidden","true");var r=t.lineColor?l.stringToCssColor(t.lineColor):"";return n==s.Orientation.Horizontal?t.lineThickness?(i.style.paddingTop=t.spacing/2+"px",i.style.marginBottom=t.spacing/2+"px",i.style.borderBottom=t.lineThickness+"px solid "+r):i.style.height=t.spacing+"px":t.lineThickness?(i.style.paddingLeft=t.spacing/2+"px",i.style.marginRight=t.spacing/2+"px",i.style.borderRight=t.lineThickness+"px solid "+r):i.style.width=t.spacing+"px",i.style.overflow="hidden",i.style.flex="0 0 auto",i}}t.renderSeparation=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return r(t,e),Object.defineProperty(t.prototype,"lang",{get:function(){return this.getValue(t.langProperty)||(this.parent?this.parent.lang:void 0)},set:function(e){this.setValue(t.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getValue(t.isVisibleProperty)},set:function(e){a.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(t.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&pe(this)),this._renderedElement&&this._renderedElement.setAttribute("aria-expanded",e.toString())},enumerable:!1,configurable:!0}),t.prototype.internalRenderSeparator=function(){var e=g(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(a.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation==s.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var n=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft="-"+n.left+"px",e.style.marginRight="-"+n.right+"px"}}return e},t.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:"none";this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty("display")),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty("display"))},t.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility="hidden",this.isVisible=!1,pe(this,!1))},t.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty("visibility"),this.isVisible=!0,pe(this,!1))},t.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},t.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},t.prototype.getDefaultSerializationContext=function(){return new ve},t.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=l.stringToCssColor(e.foregroundColors.default.subtle),n=document.createElement("div");return n.style.border="1px dashed "+t,n.style.padding="4px",n.style.minHeight="32px",n.style.fontSize="10px",n.style.color=t,n.innerText="Empty "+this.getJsonTypeName(),n},t.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto"},t.prototype.isDisplayed=function(){return void 0!==this._renderedElement&&this.isVisible&&this._renderedElement.offsetHeight>0},t.prototype.overrideInternalRender=function(){return this.internalRender()},t.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===s.Orientation.Horizontal)if(a.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new a.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft="-"+t.left+"px",this.separatorElement.style.marginRight="-"+t.right+"px"}else this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"},t.prototype.truncateOverflow=function(e){return!1},t.prototype.undoOverflowTruncation=function(){},t.prototype.getDefaultPadding=function(){return new a.PaddingDefinition},t.prototype.getHasBackground=function(){return!1},t.prototype.getHasBorder=function(){return!1},t.prototype.getPadding=function(){return this._padding},t.prototype.setPadding=function(e){this._padding=e},t.prototype.shouldSerialize=function(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return s.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return s.ContainerStyle.Default},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,n){e.prototype.parse.call(this,t,n||new ve)},t.prototype.asString=function(){return""},t.prototype.isBleeding=function(){return!1},t.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},t.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},t.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},t.prototype.getForbiddenActionTypes=function(){return[]},t.prototype.getImmediateSurroundingPadding=function(e,t,n,i,r){if(void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=!0),this.parent){var o=t&&this.parent.isTopElement(this),a=n&&this.parent.isRightMostElement(this),l=i&&this.parent.isBottomElement(this),p=r&&this.parent.isLeftMostElement(this),u=this.parent.getEffectivePadding();u&&(o&&u.top!=s.Spacing.None&&(e.top=u.top,o=!1),a&&u.right!=s.Spacing.None&&(e.right=u.right,a=!1),l&&u.bottom!=s.Spacing.None&&(e.bottom=u.bottom,l=!1),p&&u.left!=s.Spacing.None&&(e.left=u.left,p=!1)),(o||a||l||p)&&this.parent.getImmediateSurroundingPadding(e,o,a,l,p)}},t.prototype.getActionCount=function(){return 0},t.prototype.getActionAt=function(e){throw new Error(f.Strings.errors.indexOutOfRange(e))},t.prototype.indexOfAction=function(e){for(var t=0;t0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+"px"),this.renderedElement.innerHTML=this._originalInnerHtml)},t.prototype.truncateIfSupported=function(e){if(void 0!==this.renderedElement){var t=this.renderedElement.children,n=!t.length;if(n||1==t.length&&"p"==t[0].tagName.toLowerCase()){var i=n?this.renderedElement:t[0];return l.truncate(i,e,this._computedLineHeight),!0}}return!1},t.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},t.prototype.internalRender=function(){var e=this;if(this._processedText=void 0,this.text){var t=this.preProcessPropertyValue(b.textProperty),n=this.hostConfig,i=void 0;if(this.forElementId){var r=document.createElement("label");r.htmlFor=this.forElementId,i=r}else i=document.createElement("div");if(i.classList.add(n.makeCssClassName("ac-textBlock")),i.style.overflow="hidden",this.applyStylesTo(i),"heading"===this.style){i.setAttribute("role","heading");var o=this.hostConfig.textBlock.headingLevel;void 0!==o&&o>0&&i.setAttribute("aria-level",o.toString())}if(this.selectAction&&n.supportsInteractivity&&(i.onclick=function(t){e.selectAction&&e.selectAction.isEnabled&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),this.selectAction.isEnabled&&i.classList.add(n.makeCssClassName("ac-selectable"))),!this._processedText){this._treatAsPlainText=!0;var s=u.formatText(this.lang,t);if(this.useMarkdown&&s){a.GlobalSettings.allowMarkForTextHighlighting&&(s=s.replace(//g,"===").replace(/<\/mark>/g,"/==/"));var p=ge.applyMarkdown(s);if(p.didProcess&&p.outputHtml){if(this._processedText=p.outputHtml,this._treatAsPlainText=!1,a.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var c="",h=this.getEffectiveStyleDefinition();h.highlightBackgroundColor&&(c+="background-color: "+h.highlightBackgroundColor+";"),h.highlightForegroundColor&&(c+="color: "+h.highlightForegroundColor+";"),c&&(c='style="'+c+'"'),this._processedText=this._processedText.replace(/===/g,"").replace(/\/==\//g,"")}}else this._processedText=s,this._treatAsPlainText=!0}else this._processedText=s,this._treatAsPlainText=!0}if(this._processedText||(this._processedText=""),this._treatAsPlainText?i.innerText=this._processedText:i.innerHTML=this._processedText,i.firstElementChild instanceof HTMLElement){var d=i.firstElementChild;d.style.marginTop="0px",d.style.width="100%",this.wrap||(d.style.overflow="hidden",d.style.textOverflow="ellipsis")}i.lastElementChild instanceof HTMLElement&&(i.lastElementChild.style.marginBottom="0px");for(var f=i.getElementsByTagName("a"),y=0;y0&&(i.style.overflow="hidden",l.isInternetExplorer()||!a.GlobalSettings.useWebkitLineClamp?i.style.maxHeight=this._computedLineHeight*this.maxLines+"px":(i.style.removeProperty("line-height"),i.style.display="-webkit-box",i.style.webkitBoxOrient="vertical",i.style.webkitLineClamp=this.maxLines.toString()))):(i.style.whiteSpace="nowrap",i.style.textOverflow="ellipsis"),(a.GlobalSettings.useAdvancedTextBlockTruncation||a.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=i.innerHTML),i}},t.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},t.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),a.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},t.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case s.HorizontalAlignment.Center:t.style.textAlign="center";break;case s.HorizontalAlignment.Right:t.style.textAlign="end";break;default:t.style.textAlign="start"}var n=this.hostConfig.lineHeights;if(n)switch(this.effectiveSize){case s.TextSize.Small:this._computedLineHeight=n.small;break;case s.TextSize.Medium:this._computedLineHeight=n.medium;break;case s.TextSize.Large:this._computedLineHeight=n.large;break;case s.TextSize.ExtraLarge:this._computedLineHeight=n.extraLarge;break;default:this._computedLineHeight=n.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));t.style.lineHeight=this._computedLineHeight+"px"},t.prototype.getJsonTypeName=function(){return"TextBlock"},t.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),e.prototype.updateLayout.call(this,t),a.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},t.wrapProperty=new h.BoolProperty(h.Versions.v1_0,"wrap",!1),t.maxLinesProperty=new h.NumProperty(h.Versions.v1_0,"maxLines"),t.styleProperty=new h.ValueSetProperty(h.Versions.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),o([(0,h.property)(t.wrapProperty)],t.prototype,"wrap",void 0),o([(0,h.property)(t.maxLinesProperty)],t.prototype,"maxLines",void 0),o([(0,h.property)(t.styleProperty)],t.prototype,"style",void 0),t}(b);t.TextBlock=C;var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return r(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(b.selectActionProperty)},t.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(b.textProperty),n=this.hostConfig,i=u.formatText(this.lang,t);i||(i="");var r=document.createElement("span");if(r.classList.add(n.makeCssClassName("ac-textRun")),this.applyStylesTo(r),this.selectAction&&n.supportsInteractivity){var o=document.createElement("a");o.classList.add(n.makeCssClassName("ac-anchor"));var s=this.selectAction.getHref();o.href=s||"",o.target="_blank",o.onclick=function(t){e.selectAction&&e.selectAction.isEnabled&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(o),o.innerText=i,r.appendChild(o)}else r.innerText=i;return r}},t.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle="italic"),this.strikethrough&&(t.style.textDecoration="line-through"),this.highlight){var n=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor);t.style.backgroundColor=l.stringToCssColor(this.effectiveIsSubtle?n.highlightColors.subtle:n.highlightColors.default)}this.underline&&(t.style.textDecoration="underline")},t.prototype.getJsonTypeName=function(){return"TextRun"},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!0},enumerable:!1,configurable:!0}),t.italicProperty=new h.BoolProperty(h.Versions.v1_2,"italic",!1),t.strikethroughProperty=new h.BoolProperty(h.Versions.v1_2,"strikethrough",!1),t.highlightProperty=new h.BoolProperty(h.Versions.v1_2,"highlight",!1),t.underlineProperty=new h.BoolProperty(h.Versions.v1_3,"underline",!1),o([(0,h.property)(t.italicProperty)],t.prototype,"italic",void 0),o([(0,h.property)(t.strikethroughProperty)],t.prototype,"strikethrough",void 0),o([(0,h.property)(t.highlightProperty)],t.prototype,"highlight",void 0),o([(0,h.property)(t.underlineProperty)],t.prototype,"underline",void 0),t}(b);t.TextRun=S;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._inlines=[],t}return r(t,e),t.prototype.internalAddInline=function(e,t){if(void 0===t&&(t=!1),!e.isInline)throw new Error(f.Strings.errors.elementCannotBeUsedAsInline());if(void 0!==e.parent&&!t&&e.parent!=this)throw new Error(f.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this._inlines=[],Array.isArray(t.inlines))for(var i=0,r=t.inlines;i0){for(var i=[],r=0,o=this._inlines;r0){var e=void 0;if(this.forElementId){var t=document.createElement("label");t.htmlFor=this.forElementId,e=t}else e=document.createElement("div");switch(e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),this.getEffectiveHorizontalAlignment()){case s.HorizontalAlignment.Center:e.style.textAlign="center";break;case s.HorizontalAlignment.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}for(var n=0,i=0,r=this._inlines;i0)return e}},t.prototype.asString=function(){for(var e="",t=0,n=this._inlines;t=0&&e=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)},t}(m);t.RichTextBlock=_;var P=function(e){function t(t,n){var i=e.call(this)||this;return i.name=t,i.value=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"Fact"},t.titleProperty=new h.StringProperty(h.Versions.v1_0,"title"),t.valueProperty=new h.StringProperty(h.Versions.v1_0,"value"),o([(0,h.property)(t.titleProperty)],t.prototype,"name",void 0),o([(0,h.property)(t.valueProperty)],t.prototype,"value",void 0),t}(h.SerializableObject);t.Fact=P;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset")),e.setAttribute("role","presentation");for(var n=0;n0&&(i.style.marginTop=t.factSet.spacing+"px");var r=document.createElement("td");r.style.padding="0",r.classList.add(t.makeCssClassName("ac-fact-title")),t.factSet.title.maxWidth&&(r.style.maxWidth=t.factSet.title.maxWidth+"px"),r.style.verticalAlign="top";var o=new C;o.setParent(this),o.text=!this.facts[n].name&&this.isDesignMode()?"Title":this.facts[n].name,o.size=t.factSet.title.size,o.color=t.factSet.title.color,o.isSubtle=t.factSet.title.isSubtle,o.weight=t.factSet.title.weight,o.wrap=t.factSet.title.wrap,o.spacing=s.Spacing.None,l.appendChild(r,o.render()),l.appendChild(i,r),(r=document.createElement("td")).style.width="10px",l.appendChild(i,r),(r=document.createElement("td")).style.padding="0",r.style.verticalAlign="top",r.classList.add(t.makeCssClassName("ac-fact-value")),(o=new C).setParent(this),o.text=this.facts[n].value,o.size=t.factSet.value.size,o.color=t.factSet.value.color,o.isSubtle=t.factSet.value.isSubtle,o.weight=t.factSet.value.weight,o.wrap=t.factSet.value.wrap,o.spacing=s.Spacing.None,l.appendChild(r,o.render()),l.appendChild(i,r),l.appendChild(e,i)}}return e},t.prototype.getJsonTypeName=function(){return"FactSet"},t.factsProperty=new h.SerializableObjectCollectionProperty(h.Versions.v1_0,"facts",P),o([(0,h.property)(t.factsProperty)],t.prototype,"facts",void 0),t}(m);t.FactSet=A;var w=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.targetVersion=t,o.name=n,o.internalName=i,o.fallbackProperty=r,o}return r(t,e),t.prototype.getInternalName=function(){return this.internalName},t.prototype.parse=function(e,t,n){var i=void 0,r=t[this.name];if(void 0===r)return this.defaultValue;var o=!1;if("string"==typeof r){try{var l=a.SizeAndUnit.parse(r,!0);l.unit==s.SizeUnit.Pixel&&(i=l.physicalSize,o=!0)}catch(e){}!o&&this.fallbackProperty&&(o=this.fallbackProperty.isValidValue(r,n))}return o||n.logParseEvent(e,s.ValidationEvent.InvalidPropertyValue,f.Strings.errors.invalidPropertyValue(r,this.name)),i},t.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(h.PropertyDefinition),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.size=s.Size.Auto,t.style=s.ImageStyle.Default,t}return r(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(m.heightProperty)},t.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else if(this.maxHeight){switch(this.size){case s.Size.Small:e.style.height=this.hostConfig.imageSizes.small+"px";break;case s.Size.Large:e.style.height=this.hostConfig.imageSizes.large+"px";break;default:e.style.height=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight=this.maxHeight+"px"}else{switch(this.size){case s.Size.Stretch:e.style.width="100%";break;case s.Size.Auto:e.style.maxWidth="100%";break;case s.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case s.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case s.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight="100%"}},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=this,n=void 0;if(this.url){(n=document.createElement("div")).style.display="flex",n.style.alignItems="flex-start";var i=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case s.HorizontalAlignment.Center:n.style.justifyContent="center";break;case s.HorizontalAlignment.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}var r=document.createElement("img");r.onload=function(t){se(e)},r.onerror=function(t){if(e.renderedElement){var n=e.getRootElement();if(e.renderedElement.innerHTML="",n&&n.designMode){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.backgroundColor="#EEEEEE",i.style.color="black",i.innerText=":-(",i.style.padding="10px",e.applySize(i),e.renderedElement.appendChild(i)}}se(e)},r.style.minWidth="0",r.classList.add(i.makeCssClassName("ac-image")),this.selectAction&&i.supportsInteractivity&&(r.onkeypress=function(t){e.selectAction&&e.selectAction.isEnabled&&("Enter"==t.code||"Space"==t.code)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},r.onclick=function(t){e.selectAction&&e.selectAction.isEnabled&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(r),this.selectAction.isEnabled&&r.classList.add(i.makeCssClassName("ac-selectable"))),this.applySize(r),this.style===s.ImageStyle.Person&&(r.style.borderRadius="50%",r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat"),r.style.backgroundColor=l.stringToCssColor(this.backgroundColor),r.src=this.preProcessPropertyValue(t.urlProperty);var o=this.preProcessPropertyValue(t.altTextProperty);o&&(r.alt=o),n.appendChild(r)}return n},t.prototype.getJsonTypeName=function(){return"Image"},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.selectAction&&(n=this.selectAction.getActionById(t)),n},t.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:"image"}]:[]},t.urlProperty=new h.StringProperty(h.Versions.v1_0,"url"),t.altTextProperty=new h.StringProperty(h.Versions.v1_0,"altText"),t.backgroundColorProperty=new h.StringProperty(h.Versions.v1_1,"backgroundColor"),t.styleProperty=new h.EnumProperty(h.Versions.v1_0,"style",s.ImageStyle,s.ImageStyle.Default),t.sizeProperty=new h.EnumProperty(h.Versions.v1_0,"size",s.Size,s.Size.Auto),t.pixelWidthProperty=new w(h.Versions.v1_1,"width","pixelWidth"),t.pixelHeightProperty=new w(h.Versions.v1_1,"height","pixelHeight",m.heightProperty),t.selectActionProperty=new v(h.Versions.v1_1,"selectAction",["Action.ShowCard"]),o([(0,h.property)(t.urlProperty)],t.prototype,"url",void 0),o([(0,h.property)(t.altTextProperty)],t.prototype,"altText",void 0),o([(0,h.property)(t.backgroundColorProperty)],t.prototype,"backgroundColor",void 0),o([(0,h.property)(t.sizeProperty)],t.prototype,"size",void 0),o([(0,h.property)(t.styleProperty)],t.prototype,"style",void 0),o([(0,h.property)(t.pixelWidthProperty)],t.prototype,"pixelWidth",void 0),o([(0,h.property)(t.pixelHeightProperty)],t.prototype,"pixelHeight",void 0),o([(0,h.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),t}(m);t.Image=E;var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return r(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),this.isSelectable||n.remove(t.selectActionProperty)},t.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new a.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0"}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0;n0){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0,n=this._images;t0?this._images[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},t.prototype.removeItem=function(e){if(e instanceof E){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getJsonTypeName=function(){return"ImageSet"},t.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},t.prototype.indexOf=function(e){return e instanceof E?this._images.indexOf(e):-1},t.imagesProperty=new h.SerializableObjectCollectionProperty(h.Versions.v1_0,"images",E,(function(e,t){t.setParent(e)})),t.imageSizeProperty=new h.EnumProperty(h.Versions.v1_0,"imageSize",s.ImageSize,s.ImageSize.Medium),o([(0,h.property)(t.imagesProperty)],t.prototype,"_images",void 0),o([(0,h.property)(t.imageSizeProperty)],t.prototype,"imageSize",void 0),t}(x);t.ImageSet=I;var T=function(e){function t(t,n){var i=e.call(this)||this;return i.url=t,i.mimeType=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"MediaSource"},t.prototype.isValid=function(){return!(!this.mimeType||!this.url)},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("source")).src=this.url,e.type=this.mimeType),e},t.mimeTypeProperty=new h.StringProperty(h.Versions.v1_1,"mimeType"),t.urlProperty=new h.StringProperty(h.Versions.v1_1,"url"),o([(0,h.property)(t.mimeTypeProperty)],t.prototype,"mimeType",void 0),o([(0,h.property)(t.urlProperty)],t.prototype,"url",void 0),t}(h.SerializableObject);t.MediaSource=T;var V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t}return r(t,e),t.prototype.getPosterUrl=function(){return this.poster?this.poster:this.hostConfig.media.defaultPoster},t.prototype.processSources=function(){this._selectedSources=[],this._selectedMediaType=void 0;for(var e=0,n=this.sources;e=0&&(this._selectedMediaType=t.supportedMediaTypes[o])}r[0]==this._selectedMediaType&&this._selectedSources.push(i)}}},t.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var n=this.renderMediaPlayer();this.renderedElement.innerHTML="",this.renderedElement.appendChild(n),n.play(),n.focus()}}else t.onPlay&&(e.preventDefault(),e.cancelBubble=!0,t.onPlay(this))},t.prototype.renderPoster=function(){var e=this,t=document.createElement("div");t.className=this.hostConfig.makeCssClassName("ac-media-poster"),t.setAttribute("role","contentinfo"),t.setAttribute("aria-label",this.altText?this.altText:f.Strings.defaults.mediaPlayerAriaLabel()),t.style.position="relative",t.style.display="flex";var n=this.getPosterUrl();if(n){var i=document.createElement("img");i.style.width="100%",i.style.height="100%",i.setAttribute("role","presentation"),i.onerror=function(e){i.parentNode&&i.parentNode.removeChild(i),t.classList.add("empty"),t.style.minHeight="150px"},i.src=n,t.appendChild(i)}else t.classList.add("empty"),t.style.minHeight="150px";if(this.hostConfig.supportsInteractivity&&this._selectedSources.length>0){var r=document.createElement("div");r.tabIndex=0,r.setAttribute("role","button"),r.setAttribute("aria-label",f.Strings.defaults.mediaPlayerPlayMedia()),r.className=this.hostConfig.makeCssClassName("ac-media-playButton"),r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.onclick=function(t){e.handlePlayButtonInvoke(t)},r.onkeypress=function(t){"Enter"!=t.code&&"Space"!=t.code||e.handlePlayButtonInvoke(t)};var o=document.createElement("div");o.className=this.hostConfig.makeCssClassName("ac-media-playButton-arrow"),o.style.width="12px",o.style.height="15px",o.style.borderTopWidth="7.5px",o.style.borderBottomWidth="7.5px",o.style.borderLeftWidth="12px",o.style.borderRightWidth="0",o.style.borderStyle="solid",o.style.borderTopColor="transparent",o.style.borderRightColor="transparent",o.style.borderBottomColor="transparent",o.style.transform="translate(1.2px,0px)",r.appendChild(o);var s=document.createElement("div");s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.width="100%",s.style.height="100%",s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center",s.appendChild(r),t.appendChild(s)}return t},t.prototype.renderMediaPlayer=function(){var e;if("video"==this._selectedMediaType){var t=document.createElement("video"),n=this.getPosterUrl();n&&(t.poster=n),e=t}else e=document.createElement("audio");e.setAttribute("aria-label",this.altText?this.altText:f.Strings.defaults.mediaPlayerAriaLabel()),e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline",""),e.autoplay=!0,e.controls=!0,l.isMobileOS()&&(e.muted=!0),e.preload="none",e.style.width="100%";for(var i=0,r=this.sources;i0?this._renderedInputControlElement.setAttribute("aria-labelledby",e.join(" ")):this._renderedInputControlElement.removeAttribute("aria-labelledby")}},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputControlElement",{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputControlContainerElement",{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),t.prototype.overrideInternalRender=function(){var e=this.hostConfig;this._outerContainerElement=document.createElement("div"),this._outerContainerElement.style.display="flex",this._outerContainerElement.style.flexDirection="column";var t=l.generateUniqueId();if(this.label){var n=new _;n.setParent(this),n.forElementId=t;var i=new S(this.label);if(n.addInline(i),this.isRequired){i.init(e.inputs.label.requiredInputs);var r=new S(e.inputs.label.requiredInputs.suffix);r.color=e.inputs.label.requiredInputs.suffixColor,r.ariaHidden=!0,n.addInline(r)}else i.init(e.inputs.label.optionalInputs);this._renderedLabelElement=n.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=l.generateUniqueId(),this._renderedLabelElement.style.marginBottom=e.getEffectiveSpacing(e.inputs.label.inputSpacing)+"px",this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement("div"),this._inputControlContainerElement.className=e.makeCssClassName("ac-input-container"),this._inputControlContainerElement.style.display="flex","stretch"===this.height&&(this._inputControlContainerElement.style.alignItems="stretch",this._inputControlContainerElement.style.flex="1 1 auto"),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement)return this._renderedInputControlElement.id=t,this._renderedInputControlElement.style.minWidth="0px",this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute("aria-required","true"),this._renderedInputControlElement.classList.add(e.makeCssClassName("ac-input-required"))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this.updateInputControlAriaLabelledBy(),this._outerContainerElement},t.prototype.valueChanged=function(){var e,t,n;this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),(n=(t=(e=this).getRootElement())&&t.onInputValueChanged?t.onInputValueChanged:ge.onInputValueChanged)&&n(e)},t.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),this._renderedErrorMessageElement=void 0))},t.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&a.GlobalSettings.displayInputValidationErrors){var e=new C;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=l.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},t.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},t.prototype.isValid=function(){return!0},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,f.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,s.ValidationEvent.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||t.addFailure(this,s.ValidationEvent.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"))},t.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.showValidationErrorMessage()),e},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[this]},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.labelProperty=new h.StringProperty(h.Versions.v1_3,"label",!0),t.isRequiredProperty=new h.BoolProperty(h.Versions.v1_3,"isRequired",!1),t.errorMessageProperty=new h.StringProperty(h.Versions.v1_3,"errorMessage",!0),o([(0,h.property)(t.labelProperty)],t.prototype,"label",void 0),o([(0,h.property)(t.isRequiredProperty)],t.prototype,"isRequired",void 0),o([(0,h.property)(t.errorMessageProperty)],t.prototype,"errorMessage",void 0),t}(m);t.Input=O;var k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=s.InputTextStyle.Text,t}return r(t,e),t.prototype.setupInput=function(e){var t=this;e.style.flex="1 1 auto",e.tabIndex=0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&"Enter"===e.code&&t.inlineAction&&t.inlineAction.isEnabled&&t.inlineAction.execute()}},t.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==s.InputTextStyle.Password?((e=document.createElement("textarea")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),"stretch"===this.height&&(e.style.height="initial")):((e=document.createElement("input")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),e.type=s.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},t.prototype.overrideInternalRender=function(){var t=this,n=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var i=document.createElement("button");if(i.className=this.hostConfig.makeCssClassName(this.inlineAction.isEnabled?"ac-inlineActionButton":"ac-inlineActionButton-disabled"),i.onclick=function(e){t.inlineAction&&t.inlineAction.isEnabled&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){i.classList.add("iconOnly");var r=document.createElement("img");r.style.height="100%",r.setAttribute("role","presentation"),r.style.display="none",r.onload=function(){r.style.removeProperty("display")},r.onerror=function(){i.removeChild(r),i.classList.remove("iconOnly"),i.classList.add("textOnly"),i.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:f.Strings.defaults.inlineActionTitle()},r.src=this.inlineAction.iconUrl,i.appendChild(r),i.title=this.inlineAction.title?this.inlineAction.title:f.Strings.defaults.inlineActionTitle()}else i.classList.add("textOnly"),i.textContent=this.inlineAction.title?this.inlineAction.title:f.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(i,!0),i.style.marginLeft="8px",this.inputControlContainerElement.appendChild(i)}return n},t.prototype.getJsonTypeName=function(){return"Input.Text"},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.inlineAction&&(n=this.inlineAction.getActionById(t)),n},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){return!this.value||!this.regex||new RegExp(this.regex,"g").test(this.value)},Object.defineProperty(t.prototype,"value",{get:function(){return this.renderedInputControlElement?(this.isMultiline,this.renderedInputControlElement.value):void 0},enumerable:!1,configurable:!0}),t.valueProperty=new h.StringProperty(h.Versions.v1_0,"value"),t.maxLengthProperty=new h.NumProperty(h.Versions.v1_0,"maxLength"),t.isMultilineProperty=new h.BoolProperty(h.Versions.v1_0,"isMultiline",!1),t.placeholderProperty=new h.StringProperty(h.Versions.v1_0,"placeholder"),t.styleProperty=new h.EnumProperty(h.Versions.v1_0,"style",s.InputTextStyle,s.InputTextStyle.Text,[{value:s.InputTextStyle.Text},{value:s.InputTextStyle.Tel},{value:s.InputTextStyle.Url},{value:s.InputTextStyle.Email},{value:s.InputTextStyle.Password,targetVersion:h.Versions.v1_5}]),t.inlineActionProperty=new v(h.Versions.v1_0,"inlineAction",["Action.ShowCard"]),t.regexProperty=new h.StringProperty(h.Versions.v1_3,"regex",!0),o([(0,h.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,h.property)(t.maxLengthProperty)],t.prototype,"maxLength",void 0),o([(0,h.property)(t.isMultilineProperty)],t.prototype,"isMultiline",void 0),o([(0,h.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),o([(0,h.property)(t.styleProperty)],t.prototype,"style",void 0),o([(0,h.property)(t.inlineActionProperty)],t.prototype,"inlineAction",void 0),o([(0,h.property)(t.regexProperty)],t.prototype,"regex",void 0),t}(O);t.TextInput=k;var R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueOn="true",t.valueOff="false",t.wrap=!1,t}return r(t,e),t.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(" ");this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=" "+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute("aria-labelledby",e):this._checkboxInputElement.removeAttribute("aria-labelledby")}},t.prototype.internalRender=function(){var e=this,t=document.createElement("div");if(t.className=this.hostConfig.makeCssClassName("ac-input","ac-toggleInput"),t.style.width="100%",t.style.display="flex",t.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=l.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this.title&&this._checkboxInputElement.setAttribute("aria-label",this.title),this.isRequired&&this._checkboxInputElement.setAttribute("aria-required","true"),this._checkboxInputElement.tabIndex=0,this.defaultValue==this.valueOn&&(this._checkboxInputElement.checked=!0),this._checkboxInputElement.onchange=function(){e.valueChanged()},l.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var n=new C;if(n.setParent(this),n.forElementId=this._checkboxInputElement.id,n.hostConfig=this.hostConfig,n.text=this.title?this.title:this.getJsonTypeName(),n.useMarkdown=a.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,n.wrap=this.wrap,this._checkboxInputLabelElement=n.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=l.generateUniqueId(),this._checkboxInputLabelElement.style.display="inline-block",this._checkboxInputLabelElement.style.flex="1 1 auto",this._checkboxInputLabelElement.style.marginLeft="6px",this._checkboxInputLabelElement.style.verticalAlign="middle";var i=document.createElement("div");i.style.width="6px",l.appendChild(t,i),l.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Input.Toggle"},t.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},Object.defineProperty(t.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new h.StringProperty(h.Versions.v1_0,"value"),t.titleProperty=new h.StringProperty(h.Versions.v1_0,"title"),t.valueOnProperty=new h.StringProperty(h.Versions.v1_0,"valueOn",!0,void 0,"true",(function(e){return"true"})),t.valueOffProperty=new h.StringProperty(h.Versions.v1_0,"valueOff",!0,void 0,"false",(function(e){return"false"})),t.wrapProperty=new h.BoolProperty(h.Versions.v1_2,"wrap",!1),o([(0,h.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,h.property)(t.titleProperty)],t.prototype,"title",void 0),o([(0,h.property)(t.valueOnProperty)],t.prototype,"valueOn",void 0),o([(0,h.property)(t.valueOffProperty)],t.prototype,"valueOff",void 0),o([(0,h.property)(t.wrapProperty)],t.prototype,"wrap",void 0),t}(O);t.ToggleInput=R;var z=function(e){function t(t,n){var i=e.call(this)||this;return i.title=t,i.value=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"Choice"},t.titleProperty=new h.StringProperty(h.Versions.v1_0,"title"),t.valueProperty=new h.StringProperty(h.Versions.v1_0,"value"),o([(0,h.property)(t.titleProperty)],t.prototype,"title",void 0),o([(0,h.property)(t.valueProperty)],t.prototype,"value",void 0),t}(h.SerializableObject);t.Choice=z;var N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return r(t,e),Object.defineProperty(t.prototype,"isCompact",{get:function(){return!this.style||"compact"===this.style},set:function(e){this.style=e?void 0:"expanded"},enumerable:!1,configurable:!0}),t.getUniqueCategoryName=function(){var e="__ac-category"+t.uniqueCategoryCounter;return t.uniqueCategoryCounter++,e},t.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0;t=0&&(u.checked=!0),u.onchange=function(){i.valueChanged()},this._toggleInputs.push(u);var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",l.appendChild(c,u);var h=new C;h.setParent(this),h.forElementId=u.id,h.hostConfig=this.hostConfig,h.text=p.title?p.title:"Choice "+this._toggleInputs.length,h.useMarkdown=a.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,h.wrap=this.wrap;var d=h.render();if(this._labels.push(d),d){d.id=l.generateUniqueId(),d.style.display="inline-block",d.style.flex="1 1 auto",d.style.marginLeft="6px",d.style.verticalAlign="middle";var f=document.createElement("div");f.style.width="6px",l.appendChild(c,f),l.appendChild(c,d)}l.appendChild(r,c)}return r},t.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||"expanded"===this.style)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),n=0;n0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),0==this.choices.length&&t.addFailure(this,s.ValidationEvent.CollectionCantBeEmpty,f.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var n=0,i=this.choices;n0?this._selectElement.value:void 0;if(this._textInput){for(var i=0,r=this.choices;i0)for(var s=0,a=this._toggleInputs;s=this.min),void 0!==this.max&&(e=e&&this.value<=this.max),e},Object.defineProperty(t.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new h.NumProperty(h.Versions.v1_0,"value"),t.placeholderProperty=new h.StringProperty(h.Versions.v1_0,"placeholder"),t.minProperty=new h.NumProperty(h.Versions.v1_0,"min"),t.maxProperty=new h.NumProperty(h.Versions.v1_0,"max"),o([(0,h.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,h.property)(t.minProperty)],t.prototype,"min",void 0),o([(0,h.property)(t.maxProperty)],t.prototype,"max",void 0),o([(0,h.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(O);t.NumberInput=B;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this.min&&this._dateInputElement.setAttribute("min",this.min),this.max&&this._dateInputElement.setAttribute("max",this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute("aria-label",this.placeholder)),this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},t.prototype.getJsonTypeName=function(){return"Input.Date"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var n=new Date(this.min);t=t&&e>=n}if(this.max){var i=new Date(this.max);t=t&&e<=i}return t},Object.defineProperty(t.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new h.StringProperty(h.Versions.v1_0,"value"),t.placeholderProperty=new h.StringProperty(h.Versions.v1_0,"placeholder"),t.minProperty=new h.StringProperty(h.Versions.v1_0,"min"),t.maxProperty=new h.StringProperty(h.Versions.v1_0,"max"),o([(0,h.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,h.property)(t.minProperty)],t.prototype,"min",void 0),o([(0,h.property)(t.maxProperty)],t.prototype,"max",void 0),o([(0,h.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(O);t.DateInput=L;var D=function(e){function t(t,n){var i=e.call(this,t,n,(function(e,t,n,i){var r=n[t.name];if("string"==typeof r&&r&&/^[0-9]{2}:[0-9]{2}$/.test(r))return r}),(function(e,t,n,i,r){r.serializeValue(n,t.name,i)}))||this;return i.targetVersion=t,i.name=n,i}return r(t,e),t}(h.CustomProperty);t.TimeProperty=D;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.convertTimeStringToDate=function(e){return new Date("1973-09-04T"+e+":00Z")},t.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this._timeInputElement.setAttribute("min",this.min),this._timeInputElement.setAttribute("max",this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},t.prototype.getJsonTypeName=function(){return"Input.Time"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=t.convertTimeStringToDate(this.value),n=!0;if(this.min){var i=t.convertTimeStringToDate(this.min);n=n&&e>=i}if(this.max){var r=t.convertTimeStringToDate(this.max);n=n&&e<=r}return n},Object.defineProperty(t.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new D(h.Versions.v1_0,"value"),t.placeholderProperty=new h.StringProperty(h.Versions.v1_0,"placeholder"),t.minProperty=new D(h.Versions.v1_0,"min"),t.maxProperty=new D(h.Versions.v1_0,"max"),o([(0,h.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,h.property)(t.minProperty)],t.prototype,"min",void 0),o([(0,h.property)(t.maxProperty)],t.prototype,"max",void 0),o([(0,h.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(O);t.TimeInput=M;var j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=s.ActionStyle.Default,t.mode=s.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return r(t,e),t.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement("div");if(t.style.overflow="hidden",t.style.textOverflow="ellipsis",e.actions.iconPlacement==s.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace="nowrap"),this.title&&(t.innerText=this.title),this.iconUrl){var n=document.createElement("img");n.src=this.iconUrl,n.style.width=e.actions.iconSize+"px",n.style.height=e.actions.iconSize+"px",n.style.flex="0 0 auto",e.actions.iconPlacement==s.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add("iconAbove"),this.renderedElement.style.flexDirection="column",this.title&&(n.style.marginBottom="6px")):(this.renderedElement.classList.add("iconLeft"),n.style.maxHeight="100%",this.title&&(n.style.marginRight="6px")),this.renderedElement.appendChild(n),this.renderedElement.appendChild(t)}else this.renderedElement.classList.add("noIcon"),this.renderedElement.appendChild(t)}},t.prototype.getParentContainer=function(){return this.parent instanceof ie?this.parent:this.parent?this.parent.getParentContainer():void 0},t.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var n=this.parent.hostConfig;this.renderedElement.className=n.makeCssClassName(this.isEnabled?"ac-pushButton":"ac-pushButton-disabled");var i=this.getParentContainer();if(i){var r=i.getEffectiveStyle();r&&this.renderedElement.classList.add("style-"+r)}switch(this.renderedElement.tabIndex=this.isFocusable?0:-1,this._state){case 1:this.renderedElement.classList.add(n.makeCssClassName("expanded"));break;case 2:this.renderedElement.classList.add(n.makeCssClassName("subdued"))}this.style&&this.isEnabled&&(this.style===s.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,n.makeCssClassNames("primary","style-positive")):(t=this.renderedElement.classList).add.apply(t,n.makeCssClassNames("style-"+this.style.toLowerCase())))}},t.prototype.getDefaultSerializationContext=function(){return new ve},t.prototype.internalGetReferencedInputs=function(){return{}},t.prototype.internalPrepareForExecution=function(e){},t.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var n=0,i=Object.keys(e);n0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},t.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[]},t.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]},t.prototype.getActionById=function(e){return this.id===e?this:void 0},t.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},t.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this.style==s.ActionStyle.Positive},set:function(e){e?this.style=s.ActionStyle.Positive:this.style==s.ActionStyle.Positive&&(this.style=s.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this.parent?this.parent.hostConfig:p.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusable",{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),t.titleProperty=new h.StringProperty(h.Versions.v1_0,"title"),t.iconUrlProperty=new h.StringProperty(h.Versions.v1_1,"iconUrl"),t.styleProperty=new h.ValueSetProperty(h.Versions.v1_2,"style",[{value:s.ActionStyle.Default},{value:s.ActionStyle.Positive},{value:s.ActionStyle.Destructive}],s.ActionStyle.Default),t.modeProperty=new h.ValueSetProperty(h.Versions.v1_5,"mode",[{value:s.ActionMode.Primary},{value:s.ActionMode.Secondary}],s.ActionMode.Primary),t.tooltipProperty=new h.StringProperty(h.Versions.v1_5,"tooltip"),t.isEnabledProperty=new h.BoolProperty(h.Versions.v1_5,"isEnabled",!0),o([(0,h.property)(t.titleProperty)],t.prototype,"title",void 0),o([(0,h.property)(t.iconUrlProperty)],t.prototype,"iconUrl",void 0),o([(0,h.property)(t.styleProperty)],t.prototype,"style",void 0),o([(0,h.property)(t.modeProperty)],t.prototype,"mode",void 0),o([(0,h.property)(t.tooltipProperty)],t.prototype,"tooltip",void 0),o([(0,h.property)(t.isEnabledProperty)],t.prototype,"isEnabled",void 0),t}(c.CardObject);t.Action=j;var F=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isPrepared=!1,t}return r(t,e),t.prototype.internalGetReferencedInputs=function(){var e={};if("none"!==this.associatedInputs){for(var t=this.parent,n=[];t;)n=n.concat(t.getAllInputs(!1)),t=t.parent;for(var i=0,r=n;i0?this._renderedElement.setAttribute("aria-controls",e.join(" ")):this._renderedElement.removeAttribute("aria-controls"))}},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,f.Strings.errors.propertyMustBeSet("targetElements"))},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},t.prototype.execute=function(){if(this.parent)for(var e=0,t=Object.keys(this.targetElements);e0)for(var n=0,i=this.headers;n0?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+"px",this._actionCard.style.paddingRight=t.right+"px",this._actionCard.style.marginLeft="-"+t.left+"px",this._actionCard.style.marginRight="-"+t.right+"px",0==t.bottom||this._owner.isDesignMode()||(this._actionCard.style.paddingBottom=t.bottom+"px",this._actionCard.style.marginBottom="-"+t.bottom+"px"),l.appendChild(this._actionCardContainer,this._actionCard))}else this._actionCardContainer.style.marginTop="0px"},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),e.card.suppressStyle=t;var i=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render();this._actionCard=i,this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),le(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;ethis._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,s.ValidationEvent.TooManyActions,f.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,s.ValidationEvent.InteractivityNotAllowed,f.Strings.errors.interactivityNotAllowed());for(var t=0,n=this._items;t0){this._overflowAction||(this._overflowAction=new Y(c),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var f=this._owner instanceof ge&&!this._owner.parent;d=!function(e,t){var n=e.parent?e.parent.getRootElement():void 0,i=n&&n.onRenderOverflowActions?n.onRenderOverflowActions:ge.onRenderOverflowActions;return void 0!==i&&i(e.getActions(),t)}(this._overflowAction,f)}this._overflowAction&&d&&u.push(this._overflowAction)}for(var y=0;y1&&(g.renderedElement.setAttribute("aria-posinset",(y+1).toString()),g.renderedElement.setAttribute("aria-setsize",u.length.toString()),g.renderedElement.setAttribute("role","menuitem")),n.actions.actionsOrientation==s.Orientation.Horizontal&&n.actions.actionAlignment==s.ActionAlignment.Stretch?g.renderedElement.style.flex="0 1 100%":g.renderedElement.style.flex="0 1 auto",o.appendChild(g.renderedElement),this._renderedActions.push(g),y0)){var m=document.createElement("div");e===s.Orientation.Horizontal?(m.style.flex="0 0 auto",m.style.width=n.actions.buttonSpacing+"px"):m.style.height=n.actions.buttonSpacing+"px",l.appendChild(o,m)}}var v=document.createElement("div");v.style.overflow="hidden",v.appendChild(o),l.appendChild(i,v)}l.appendChild(i,this._actionCardContainer);for(var b=0,C=this._renderedActions;b0?i:void 0}},e.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(f.Strings.errors.actionAlreadyParented());this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction==e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var n=0;n=0&&t=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},t.prototype.getItemsCollectionPropertyName=function(){return"items"},t.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},t.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(void 0!==this.rtl&&(t.dir=this.rtl?"rtl":"ltr"),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",a.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveVerticalContentAlignment()){case s.VerticalAlignment.Center:t.style.justifyContent="center";break;case s.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(this._items.length>0)for(var n=0,i=this._items;n0&&r.separatorElement&&(r.separatorElement.style.flex="0 0 auto",l.appendChild(t,r.separatorElement)),l.appendChild(t,o),this._renderedItems.push(r))}else if(this.isDesignMode()){var p=this.createPlaceholderElement();p.style.width="100%",p.style.height="100%",t.appendChild(p)}return t},t.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var i=e.renderedElement;if(i)switch(l.getFitStatus(i,t)){case s.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case s.ContainerFitStatus.Overflowing:var r=t-i.offsetTop;e.handleOverflow(r);break;case s.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},i=0,r=this._items;i0)for(var e=0,t=this._renderedItems;e0)for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]},t.prototype.getJsonTypeName=function(){return"Container"},t.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),n=0,i=this._items;n=0;n--)if(this._items[n].isVisible||t)return this._items[n]==e;return!1},t.prototype.isRtl=function(){if(void 0!==this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},t.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},t.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtBottom()&&e.getEffectiveStyle()==this.getEffectiveStyle()},t.prototype.indexOf=function(e){return this._items.indexOf(e)},t.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},t.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},t.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},t.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.clear=function(){this._items=[],this._renderedItems=[]},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:"image"}),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);if(!n&&(this.selectAction&&(n=this.selectAction.getActionById(t)),!n))for(var i=0,r=this._items;i0?this._computedWeight:this.width.physicalSize)+"%")},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return s.Orientation.Vertical},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Column"},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof oe)&&void 0!==this.separatorElement&&!this.parent.isLeftMostElement(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.widthProperty=new h.CustomProperty(h.Versions.v1_0,"width",(function(e,t,n,i){var r=t.defaultValue,o=n[t.name],l=!1;if("number"!=typeof o||isNaN(o))if("auto"===o||"stretch"===o)r=o;else if("string"==typeof o)try{(r=a.SizeAndUnit.parse(o)).unit===s.SizeUnit.Pixel&&t.targetVersion.compareTo(i.targetVersion)>0&&(l=!0)}catch(e){l=!0}else l=!0;else r=new a.SizeAndUnit(o,s.SizeUnit.Weight);return l&&(i.logParseEvent(e,s.ValidationEvent.InvalidPropertyValue,f.Strings.errors.invalidColumnWidth(o)),r="auto"),r}),(function(e,t,n,i,r){i instanceof a.SizeAndUnit?i.unit===s.SizeUnit.Pixel?r.serializeValue(n,"width",i.physicalSize+"px"):r.serializeNumber(n,"width",i.physicalSize):r.serializeValue(n,"width",i)}),"stretch"),o([(0,h.property)(t.widthProperty)],t.prototype,"width",void 0),t}(ie);t.Column=re;var oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columns=[],t}return r(t,e),t.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),(function(e){return e&&"Column"!==e?void 0:new re}),(function(e,n){t.logParseEvent(void 0,s.ValidationEvent.ElementTypeNotAllowed,f.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",a.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveHorizontalAlignment()){case s.HorizontalAlignment.Center:t.style.justifyContent="center";break;case s.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var n=0,i=0,r=this._columns;i0){var c=100/n*u.width.physicalSize;u._computedWeight=c}var h=u.render();h&&(this._renderedColumns.length>0&&u.separatorElement&&(u.separatorElement.style.flex="0 0 auto",l.appendChild(t,u.separatorElement)),l.appendChild(t,h),this._renderedColumns.push(u))}return this._renderedColumns.length>0?t:void 0}},t.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t0)for(var e=0,t=this._columns;e0)for(var e=0,t=this._columns;e0?this._renderedColumns[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.getItemAt=function(e){return this.getColumnAt(e)},t.prototype.getJsonTypeName=function(){return"ColumnSet"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0,i=0,r=0,o=this._columns;r0&&i>0&&t.addFailure(this,s.ValidationEvent.Hint,f.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},t.prototype.addColumn=function(e){if(e.parent)throw new Error(f.Strings.errors.columnAlreadyBelongsToAnotherSet());this._columns.push(e),e.setParent(this)},t.prototype.removeItem=function(e){if(e instanceof re){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.indexOf=function(e){return e instanceof re?this._columns.indexOf(e):-1},t.prototype.isLeftMostElement=function(e){return 0==this._columns.indexOf(e)},t.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)==this._columns.length-1},t.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.getActionById=function(e){for(var t=void 0,n=0,i=this._columns;n0?t:void 0}},t.prototype.getHasExpandedAction=function(){return 0!=this.renderedActionCount&&(1==this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t=0)o(u,s.TypeErrorType.ForbiddenType);else{var c=!1;if((p=r(u))?(p.setParent(e),p.parse(t,this),c=a.GlobalSettings.enableFallback&&i&&p.shouldFallback()):(c=a.GlobalSettings.enableFallback&&i,o(u,s.TypeErrorType.UnknownType)),c){var h=t.fallback;!h&&e&&e.setShouldFallback(!0),"string"==typeof h&&"drop"===h.toLowerCase()?p=void 0:"object"==typeof h&&(p=this.internalParseCardObject(e,h,n,!0,r,o))}}}return p},t.prototype.cardObjectParsed=function(e,t){e instanceof j&&this.onParseAction?this.onParseAction(e,t,this):e instanceof m&&this.onParseElement&&this.onParseElement(e,t,this)},t.prototype.shouldSerialize=function(e){return e instanceof j?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof m)||void 0!==this.elementRegistry.findByName(e.getJsonTypeName())},t.prototype.parseCardObject=function(e,t,n,i,r,o){var s=this.internalParseCardObject(e,t,n,i,r,o);return void 0!==s&&this.cardObjectParsed(s,t),s},t.prototype.parseElement=function(e,t,n){var i=this;return this.parseCardObject(e,t,[],n,(function(e){return i.elementRegistry.createInstance(e,i.targetVersion)}),(function(e,t){t===s.TypeErrorType.UnknownType?i.logParseEvent(void 0,s.ValidationEvent.UnknownElementType,f.Strings.errors.unknownElementType(e)):i.logParseEvent(void 0,s.ValidationEvent.ElementTypeNotAllowed,f.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.parseAction=function(e,t,n,i){var r=this;return this.parseCardObject(e,t,n,i,(function(e){return r.actionRegistry.createInstance(e,r.targetVersion)}),(function(e,t){t==s.TypeErrorType.UnknownType?r.logParseEvent(void 0,s.ValidationEvent.UnknownActionType,f.Strings.errors.unknownActionType(e)):r.logParseEvent(void 0,s.ValidationEvent.ActionTypeNotAllowed,f.Strings.errors.actionTypeNotAllowed(e))}))},Object.defineProperty(t.prototype,"elementRegistry",{get:function(){return this._elementRegistry?this._elementRegistry:d.GlobalRegistry.elements},enumerable:!1,configurable:!0}),t.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(t.prototype,"actionRegistry",{get:function(){return this._actionRegistry?this._actionRegistry:d.GlobalRegistry.actions},enumerable:!1,configurable:!0}),t.prototype.setActionRegistry=function(e){this._actionRegistry=e},t}(h.BaseSerializationContext);t.SerializationContext=ve,d.GlobalRegistry.defaultElements.register("Container",ie),d.GlobalRegistry.defaultElements.register("TextBlock",C),d.GlobalRegistry.defaultElements.register("RichTextBlock",_,h.Versions.v1_2),d.GlobalRegistry.defaultElements.register("TextRun",S,h.Versions.v1_2),d.GlobalRegistry.defaultElements.register("Image",E),d.GlobalRegistry.defaultElements.register("ImageSet",I),d.GlobalRegistry.defaultElements.register("Media",V,h.Versions.v1_1),d.GlobalRegistry.defaultElements.register("FactSet",A),d.GlobalRegistry.defaultElements.register("ColumnSet",oe),d.GlobalRegistry.defaultElements.register("ActionSet",Z,h.Versions.v1_2),d.GlobalRegistry.defaultElements.register("Input.Text",k),d.GlobalRegistry.defaultElements.register("Input.Date",L),d.GlobalRegistry.defaultElements.register("Input.Time",M),d.GlobalRegistry.defaultElements.register("Input.Number",B),d.GlobalRegistry.defaultElements.register("Input.ChoiceSet",N),d.GlobalRegistry.defaultElements.register("Input.Toggle",R),d.GlobalRegistry.defaultActions.register(J.JsonTypeName,J),d.GlobalRegistry.defaultActions.register(H.JsonTypeName,H),d.GlobalRegistry.defaultActions.register(K.JsonTypeName,K),d.GlobalRegistry.defaultActions.register(U.JsonTypeName,U,h.Versions.v1_2),d.GlobalRegistry.defaultActions.register(W.JsonTypeName,W,h.Versions.v1_4)},817:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.CardObject=t.ValidationResults=void 0;var s=n(10),a=n(653),l=n(764),p=n(233),u=n(475),c=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,n){this.validationEvents.push({phase:s.ValidationPhase.Validation,source:e,event:t,message:n})},e}();t.ValidationResults=c;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return r(t,e),t.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(t.prototype,"requires",{get:function(){return this.getValue(t.requiresProperty)},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return!!this._renderedElement&&this._renderedElement.contains(e)},t.prototype.preProcessPropertyValue=function(e,t){var n=void 0===t?this.getValue(e):t;if(l.GlobalSettings.allowPreProcessingPropertyValues){for(var i=this;i&&!i.onPreProcessPropertyValue;)i=i.parent;if(i&&i.onPreProcessPropertyValue)return i.onPreProcessPropertyValue(this,e,n)}return n},t.prototype.setParent=function(e){this._parent=e},t.prototype.setShouldFallback=function(e){this._shouldFallback=e},t.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},t.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(1==e.allIds[this.id]&&e.addFailure(this,s.ValidationEvent.DuplicateId,a.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},t.prototype.validateProperties=function(){var e=new c;return this.internalValidateProperties(e),e},t.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),t.typeNameProperty=new u.StringProperty(u.Versions.v1_0,"type",void 0,void 0,void 0,(function(e){return e.getJsonTypeName()})),t.idProperty=new u.StringProperty(u.Versions.v1_0,"id"),t.requiresProperty=new u.SerializableObjectProperty(u.Versions.v1_2,"requires",p.HostCapabilities,!1,new p.HostCapabilities),o([(0,u.property)(t.idProperty)],t.prototype,"id",void 0),o([(0,u.property)(t.requiresProperty)],t.prototype,"requires",null),t}(u.SerializableObject);t.CardObject=h},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelAdapter=void 0;t.ChannelAdapter=function(){}},846:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var n=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}();t.Collection=n},994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Constants=void 0;var n=function(){function e(){}return e.keys={tab:"Tab",enter:"Enter",escape:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",delete:"Delete"},e}();t.Constants=n},441:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(57),t),r(n(467),t)},57:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItem=void 0;var i=n(699),r=n(994),o=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:i.defaultHostConfig;this._element.className=e.makeCssClassName("ac-ctrl"),this._element.classList.add(e.makeCssClassName(this.isEnabled?"ac-ctrl-dropdown-item":"ac-ctrl-dropdown-item-disabled")),this.isEnabled||this._element.classList.add(e.makeCssClassName("ac-disabled"))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement("span"),this._element.innerText=this.value,this._element.setAttribute("role","menuitem"),this.isEnabled||this._element.setAttribute("aria-disabled","true"),this._element.setAttribute("aria-selected","false"),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===r.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}();t.MenuItem=o},866:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupControl=void 0;var i=n(994),r=n(755),o=n(699),s=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){switch(e.key){case i.Constants.keys.escape:this.closePopup(!0)}},e.prototype.render=function(e){var t=this,n=document.createElement("div");return n.tabIndex=0,n.className=this.hostConfig.makeCssClassName("ac-ctrl","ac-ctrl-popup-container"),n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},n.appendChild(this.renderContent()),n},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,n,i,o,s,a=this;if(!this._isOpen){this._overlayElement=document.createElement("div"),this._overlayElement.className=this.hostConfig.makeCssClassName("ac-ctrl-overlay"),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+"px",this._overlayElement.style.height=document.documentElement.scrollHeight+"px",this._overlayElement.onfocus=function(e){a.closePopup(!0)},document.body.appendChild(this._overlayElement);var l=e.getBoundingClientRect();this._popupElement=this.render(l),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight","ac-ctrl-slideRightToLeft","ac-ctrl-slideTopToBottom","ac-ctrl-slideRightToLeft")),window.addEventListener("resize",(function(e){a.closePopup(!0)}));var p=e.getAttribute("aria-label");p&&this._popupElement.setAttribute("aria-label",p),this._overlayElement.appendChild(this._popupElement);var u,c=this._popupElement.getBoundingClientRect(),h=window.innerHeight-l.bottom,d=l.top,f=(window.innerWidth,l.left),y=(f=window.innerWidth-l.right,l.left),g=l.left+r.getScrollX();if(d=c.width?(g=r.getScrollX()+l.right,(n=this._popupElement.classList).add.apply(n,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight"))):(g=r.getScrollX()+l.left-c.width,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideRightToLeft")))}else h>=c.height?(u=r.getScrollY()+l.bottom,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideTopToBottom"))):(u=r.getScrollY()+l.top-c.height,(s=this._popupElement.classList).add.apply(s,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideBottomToTop"))),f=this._renderedItems.length)&&(n=0),this.selectedIndex=n,t.cancelBubble=!0}},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=t.RefreshMode=t.TypeErrorType=t.ContainerFitStatus=t.ValidationEvent=t.ValidationPhase=t.ContainerStyle=t.InputTextStyle=t.ActionIconPlacement=t.FillMode=t.Orientation=t.ShowCardActionMode=t.ImageStyle=t.ActionAlignment=t.VerticalAlignment=t.HorizontalAlignment=t.TextColor=t.Spacing=t.FontType=t.TextWeight=t.TextSize=t.SizeUnit=t.ImageSize=t.Size=t.ActionMode=t.ActionStyle=void 0;var n=function(){function e(){}return e.Default="default",e.Positive="positive",e.Destructive="destructive",e}();t.ActionStyle=n;var i,r,o,s,a,l,p,u,c,h,d,f,y,g,m,v,b,C=function(){function e(){}return e.Primary="primary",e.Secondary="secondary",e}();t.ActionMode=C,(b=t.Size||(t.Size={}))[b.Auto=0]="Auto",b[b.Stretch=1]="Stretch",b[b.Small=2]="Small",b[b.Medium=3]="Medium",b[b.Large=4]="Large",(v=t.ImageSize||(t.ImageSize={}))[v.Small=0]="Small",v[v.Medium=1]="Medium",v[v.Large=2]="Large",(m=t.SizeUnit||(t.SizeUnit={}))[m.Weight=0]="Weight",m[m.Pixel=1]="Pixel",(g=t.TextSize||(t.TextSize={}))[g.Small=0]="Small",g[g.Default=1]="Default",g[g.Medium=2]="Medium",g[g.Large=3]="Large",g[g.ExtraLarge=4]="ExtraLarge",(y=t.TextWeight||(t.TextWeight={}))[y.Lighter=0]="Lighter",y[y.Default=1]="Default",y[y.Bolder=2]="Bolder",(f=t.FontType||(t.FontType={}))[f.Default=0]="Default",f[f.Monospace=1]="Monospace",(d=t.Spacing||(t.Spacing={}))[d.None=0]="None",d[d.Small=1]="Small",d[d.Default=2]="Default",d[d.Medium=3]="Medium",d[d.Large=4]="Large",d[d.ExtraLarge=5]="ExtraLarge",d[d.Padding=6]="Padding",(h=t.TextColor||(t.TextColor={}))[h.Default=0]="Default",h[h.Dark=1]="Dark",h[h.Light=2]="Light",h[h.Accent=3]="Accent",h[h.Good=4]="Good",h[h.Warning=5]="Warning",h[h.Attention=6]="Attention",(c=t.HorizontalAlignment||(t.HorizontalAlignment={}))[c.Left=0]="Left",c[c.Center=1]="Center",c[c.Right=2]="Right",(u=t.VerticalAlignment||(t.VerticalAlignment={}))[u.Top=0]="Top",u[u.Center=1]="Center",u[u.Bottom=2]="Bottom",(p=t.ActionAlignment||(t.ActionAlignment={}))[p.Left=0]="Left",p[p.Center=1]="Center",p[p.Right=2]="Right",p[p.Stretch=3]="Stretch",(l=t.ImageStyle||(t.ImageStyle={}))[l.Default=0]="Default",l[l.Person=1]="Person",(a=t.ShowCardActionMode||(t.ShowCardActionMode={}))[a.Inline=0]="Inline",a[a.Popup=1]="Popup",(s=t.Orientation||(t.Orientation={}))[s.Horizontal=0]="Horizontal",s[s.Vertical=1]="Vertical",(o=t.FillMode||(t.FillMode={}))[o.Cover=0]="Cover",o[o.RepeatHorizontally=1]="RepeatHorizontally",o[o.RepeatVertically=2]="RepeatVertically",o[o.Repeat=3]="Repeat",(r=t.ActionIconPlacement||(t.ActionIconPlacement={}))[r.LeftOfTitle=0]="LeftOfTitle",r[r.AboveTitle=1]="AboveTitle",(i=t.InputTextStyle||(t.InputTextStyle={}))[i.Text=0]="Text",i[i.Tel=1]="Tel",i[i.Url=2]="Url",i[i.Email=3]="Email",i[i.Password=4]="Password";var S,_,P,A,w,E,x=function(){function e(){}return e.Default="default",e.Emphasis="emphasis",e.Accent="accent",e.Good="good",e.Attention="attention",e.Warning="warning",e}();t.ContainerStyle=x,(E=t.ValidationPhase||(t.ValidationPhase={}))[E.Parse=0]="Parse",E[E.ToJSON=1]="ToJSON",E[E.Validation=2]="Validation",(w=t.ValidationEvent||(t.ValidationEvent={}))[w.Hint=0]="Hint",w[w.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",w[w.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",w[w.Deprecated=3]="Deprecated",w[w.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",w[w.InteractivityNotAllowed=5]="InteractivityNotAllowed",w[w.InvalidPropertyValue=6]="InvalidPropertyValue",w[w.MissingCardType=7]="MissingCardType",w[w.PropertyCantBeNull=8]="PropertyCantBeNull",w[w.TooManyActions=9]="TooManyActions",w[w.UnknownActionType=10]="UnknownActionType",w[w.UnknownElementType=11]="UnknownElementType",w[w.UnsupportedCardVersion=12]="UnsupportedCardVersion",w[w.DuplicateId=13]="DuplicateId",w[w.UnsupportedProperty=14]="UnsupportedProperty",w[w.RequiredInputsShouldHaveLabel=15]="RequiredInputsShouldHaveLabel",w[w.RequiredInputsShouldHaveErrorMessage=16]="RequiredInputsShouldHaveErrorMessage",w[w.Other=17]="Other",(A=t.ContainerFitStatus||(t.ContainerFitStatus={}))[A.FullyInContainer=0]="FullyInContainer",A[A.Overflowing=1]="Overflowing",A[A.FullyOutOfContainer=2]="FullyOutOfContainer",(P=t.TypeErrorType||(t.TypeErrorType={}))[P.UnknownType=0]="UnknownType",P[P.ForbiddenType=1]="ForbiddenType",(_=t.RefreshMode||(t.RefreshMode={}))[_.Disabled=0]="Disabled",_[_.Manual=1]="Manual",_[_.Automatic=2]="Automatic",(S=t.LogLevel||(t.LogLevel={}))[S.Info=0]="Info",S[S.Warning=1]="Warning",S[S.Error=2]="Error"},233:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HostCapabilities=void 0;var o=n(475),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._capabilities={},t}return r(t,e),t.prototype.getSchemaKey=function(){return"HostCapabilities"},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),t)for(var i in t){var r=t[i];if("string"==typeof r)if("*"==r)this.addCapability(i,"*");else{var s=o.Version.parse(r,n);s&&s.isValid&&this.addCapability(i,s)}}},t.prototype.internalToJSON=function(t,n){for(var i in e.prototype.internalToJSON.call(this,t,n),this._capabilities)t[i]=this._capabilities[i]},t.prototype.addCapability=function(e,t){this._capabilities[e]=t},t.prototype.removeCapability=function(e){delete this._capabilities[e]},t.prototype.clear=function(){this._capabilities={}},t.prototype.hasCapability=function(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"==t||"*"==this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)},t.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},t}(o.SerializableObject);t.HostCapabilities=s},699:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHostConfig=t.HostConfig=t.FontTypeSet=t.FontTypeDefinition=t.ContainerStyleSet=t.ContainerStyleDefinition=t.ColorSetDefinition=t.ActionsConfig=t.ShowCardActionConfig=t.FactSetConfig=t.FactTitleDefinition=t.FactTextDefinition=t.InputConfig=t.InputLabelConfig=t.RequiredInputLabelTextDefinition=t.TextBlockConfig=t.TextStyleSet=t.TextStyleDefinition=t.BaseTextDefinition=t.TableConfig=t.MediaConfig=t.ImageSetConfig=t.AdaptiveCardConfig=t.TextColorDefinition=t.ColorDefinition=void 0;var o=n(10),s=n(755),a=n(764),l=n(233);function p(e,t,n){if("string"==typeof t){var i=s.parseEnum(e,t,n);return void 0!==i?i:n}return"number"==typeof t?t:n}var u=function(){function e(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();t.ColorDefinition=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightColors=new u("#22000000","#11000000"),t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},t}(u);t.TextColorDefinition=c;var h=function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)};t.AdaptiveCardConfig=h;var d=function(){function e(e){this.imageSize=o.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=s.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:o.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();t.ImageSetConfig=d;var f=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();t.MediaConfig=f;var y=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();t.TableConfig=y;var g=function(){function e(e){this.size=o.TextSize.Default,this.color=o.TextColor.Default,this.isSubtle=!1,this.weight=o.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=p(o.TextSize,e.size,this.size),this.color=p(o.TextColor,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=p(o.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return o.TextWeight.Default},e.prototype.toJSON=function(){return{size:o.TextSize[this.size],color:o.TextColor[this.color],isSubtle:this.isSubtle,weight:o.TextWeight[this.weight]}},e}();t.BaseTextDefinition=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontType=o.FontType.Default,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=p(o.FontType,t.fontType,this.fontType))},t}(g);t.TextStyleDefinition=m;var v=function(){function e(e){this.default=new m,this.heading=new m({size:"Large",weight:"Bolder"}),this.columnHeader=new m({weight:"Bolder"}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case"heading":return this.heading;case"columnHeader":return this.columnHeader;default:return this.default}},e}();t.TextStyleSet=v;var b=function(e){e&&(this.headingLevel=s.parseNumber(e.headingLevel))};t.TextBlockConfig=b;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suffix=" *",t.suffixColor=o.TextColor.Attention,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=p(o.TextColor,t.suffixColor,this.suffixColor))},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=o.TextColor[this.suffixColor],t},t}(g);t.RequiredInputLabelTextDefinition=C;var S=function(e){this.inputSpacing=o.Spacing.Small,this.requiredInputs=new C,this.optionalInputs=new g,e&&(this.inputSpacing=p(o.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new C(e.requiredInputs),this.optionalInputs=new g(e.optionalInputs))};t.InputLabelConfig=S;var _=function(e){this.label=new S,this.errorMessage=new g({color:o.TextColor.Attention}),e&&(this.label=new S(e.label),this.errorMessage=new g(e.errorMessage))};t.InputConfig=_;var P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!0,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=null!=t.wrap?t.wrap:this.wrap)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},t}(g);t.FactTextDefinition=P;var A=function(e){function t(t){var n=e.call(this,t)||this;return n.maxWidth=150,n.weight=o.TextWeight.Bolder,t&&(n.maxWidth=null!=t.maxWidth?t.maxWidth:n.maxWidth,n.weight=p(o.TextWeight,t.weight,o.TextWeight.Bolder)),n}return r(t,e),t.prototype.getDefaultWeight=function(){return o.TextWeight.Bolder},t}(P);t.FactTitleDefinition=A;var w=function(e){this.title=new A,this.value=new P,this.spacing=10,e&&(this.title=new A(e.title),this.value=new P(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)};t.FactSetConfig=w;var E=function(){function e(e){this.actionMode=o.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=o.ContainerStyle.Emphasis,e&&(this.actionMode=p(o.ShowCardActionMode,e.actionMode,o.ShowCardActionMode.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:o.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:o.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();t.ShowCardActionConfig=E;var x=function(){function e(e){if(this.maxActions=5,this.spacing=o.Spacing.Default,this.buttonSpacing=20,this.showCard=new E,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=o.Orientation.Horizontal,this.actionAlignment=o.ActionAlignment.Left,this.iconPlacement=o.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=p(o.Spacing,e.spacing&&e.spacing,o.Spacing.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new E(e.showCard),this.preExpandSingleShowCardAction=s.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=p(o.Orientation,e.actionsOrientation,o.Orientation.Horizontal),this.actionAlignment=p(o.ActionAlignment,e.actionAlignment,o.ActionAlignment.Left),this.iconPlacement=p(o.ActionIconPlacement,e.iconPlacement,o.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap;try{var t=a.SizeAndUnit.parse(e.iconSize);t.unit==o.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(e){}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:o.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:o.Orientation[this.actionsOrientation],actionAlignment:o.ActionAlignment[this.actionAlignment]}},e}();t.ActionsConfig=x;var I=function(){function e(e){this.default=new c,this.dark=new c,this.light=new c,this.accent=new c,this.good=new c,this.warning=new c,this.attention=new c,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))},e}();t.ColorSetDefinition=I;var T=function(){function e(e){this.foregroundColors=new I({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!1,configurable:!0}),e}();t.ContainerStyleDefinition=T;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(T),O=function(){function e(e){if(this._allStyles={},this._allStyles[o.ContainerStyle.Default]=new V,this._allStyles[o.ContainerStyle.Emphasis]=new V,this._allStyles[o.ContainerStyle.Accent]=new V,this._allStyles[o.ContainerStyle.Good]=new V,this._allStyles[o.ContainerStyle.Attention]=new V,this._allStyles[o.ContainerStyle.Warning]=new V,e){this._allStyles[o.ContainerStyle.Default].parse(e[o.ContainerStyle.Default]),this._allStyles[o.ContainerStyle.Emphasis].parse(e[o.ContainerStyle.Emphasis]),this._allStyles[o.ContainerStyle.Accent].parse(e[o.ContainerStyle.Accent]),this._allStyles[o.ContainerStyle.Good].parse(e[o.ContainerStyle.Good]),this._allStyles[o.ContainerStyle.Attention].parse(e[o.ContainerStyle.Attention]),this._allStyles[o.ContainerStyle.Warning].parse(e[o.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var n=0,i=t;n0&&(n.customStyles=t),n},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[o.ContainerStyle.Default]},Object.defineProperty(e.prototype,"default",{get:function(){return this._allStyles[o.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._allStyles[o.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();t.ContainerStyleSet=O;var k=function(){function e(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e("'Courier New', Courier, monospace"),e}();t.FontTypeDefinition=k;var R=function(){function e(e){this.default=new k,this.monospace=new k("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case o.FontType.Monospace:return this.monospace;case o.FontType.Default:default:return this.default}},e}();t.FontTypeSet=R;var z=function(){function e(e){this.hostCapabilities=new l.HostCapabilities,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new O,this.inputs=new _,this.actions=new x,this.adaptiveCard=new h,this.imageSet=new d,this.media=new f,this.factSet=new w,this.table=new y,this.textStyles=new v,this.textBlock=new b,this.alwaysAllowBleed=!1,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new k,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new R(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new O(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new _(e.inputs||this.inputs),this.actions=new x(e.actions||this.actions),this.adaptiveCard=new h(e.adaptiveCard||this.adaptiveCard),this.imageSet=new d(e.imageSet),this.factSet=new w(e.factSet),this.textStyles=new v(e.textStyles),this.textBlock=new b(e.textBlock))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e==o.FontType.Monospace?k.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case o.Spacing.Small:return this.spacing.small;case o.Spacing.Default:return this.spacing.default;case o.Spacing.Medium:return this.spacing.medium;case o.Spacing.Large:return this.spacing.large;case o.Spacing.ExtraLarge:return this.spacing.extraLarge;case o.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new a.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalRegistry=t.CardObjectRegistry=void 0;var i=n(475),r=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=0,n=Object.keys(this._items);te.major?1:this.majore.minor?1:this.minor=0};var c=function(){function e(e){void 0===e&&(e=u.latest),this.targetVersion=e,this._validationEvents=[]}return e.prototype.serializeValue=function(e,t,n,i,r){void 0===i&&(i=void 0),void 0===r&&(r=!1),null==n||n===i?o.GlobalSettings.enableFullJsonRoundTrip&&!r||delete e[t]:n===i?delete e[t]:e[t]=n},e.prototype.serializeString=function(e,t,n,i){null==n||n===i?delete e[t]:e[t]=n},e.prototype.serializeBool=function(e,t,n,i){null==n||n===i?delete e[t]:e[t]=n},e.prototype.serializeNumber=function(e,t,n,i){null==n||n===i||isNaN(n)?delete e[t]:e[t]=n},e.prototype.serializeEnum=function(e,t,n,i,r){void 0===r&&(r=void 0),null==i||i===r?delete t[n]:t[n]=e[i]},e.prototype.serializeArray=function(e,t,n){var i=[];if(n)for(var r=0,o=n;r=0&&a._values.push({value:p})}return a}return r(t,e),t.prototype.parse=function(e,t,n){var i=t[this.name];if("string"!=typeof i)return this.defaultValue;var r=s.getEnumValueByName(this.enumType,i);if(void 0!==r)for(var o=0,p=this.values;o0?i:this.onGetInitialValue?this.onGetInitialValue(e):void 0},t.prototype.toJSON=function(e,t,n,i){i.serializeArray(t,this.name,n)},t}(d);t.SerializableObjectCollectionProperty=_;var P=function(e){function t(t,n,i,r,o,s){var a=e.call(this,t,n,o,s)||this;if(a.targetVersion=t,a.name=n,a.onParse=i,a.onToJSON=r,a.defaultValue=o,a.onGetInitialValue=s,!a.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!a.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.");return a}return r(t,e),t.prototype.parse=function(e,t,n){return this.onParse(e,this,t,n)},t.prototype.toJSON=function(e,t,n,i){this.onToJSON(e,this,t,n,i)},t}(d);t.CustomProperty=P;var A=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t=0))break;this._properties.splice(o,1)}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();t.SerializableObjectSchema=A,t.property=function(e){return function(t,n){var i=Object.getOwnPropertyDescriptor(t,n)||{};i.get||i.set||(i.get=function(){return this.getValue(e)},i.set=function(t){this.setValue(e,t)},Object.defineProperty(t,n,i))}};var w=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),n=0;n0){var s=i.sort((function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber{Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=t.SizeAndUnit=t.PaddingDefinition=t.SpacingDefinition=t.StringWithSubstitutions=t.ContentTypes=t.GlobalSettings=void 0;var i=n(10),r=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.applets={logEnabled:!0,logLevel:i.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:i.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}();t.GlobalSettings=r,t.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"};var o=function(){function e(){this._isProcessed=!1}return e.prototype.getReferencedInputs=function(e,t){if(!t)throw new Error("The referencedInputs parameter cannot be null.");for(var n=0,i=e;n=s)return r.physicalSize=parseInt(o[1]),3==o.length&&"px"==o[2]&&(r.unit=i.SizeUnit.Pixel),r}throw new Error("Invalid size: "+t)},e}();t.SizeAndUnit=s;var a=function(){function e(){}return e.generate=function(){var t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return e.lut[255&t]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+"-"+e.lut[255&n]+e.lut[n>>8&255]+"-"+e.lut[n>>16&15|64]+e.lut[n>>24&255]+"-"+e.lut[63&i|128]+e.lut[i>>8&255]+"-"+e.lut[i>>16&255]+e.lut[i>>24&255]+e.lut[255&r]+e.lut[r>>8&255]+e.lut[r>>16&255]+e.lut[r>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?"0":"")+t.toString(16)},e.lut=[],e}();t.UUID=a,a.initialize()},653:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Strings=void 0;var n=function(){function e(){}return e.errors={unknownElementType:function(e){return'Unknown element type "'+e+'". Fallback will be used if present.'},unknownActionType:function(e){return'Unknown action type "'+e+'". Fallback will be used if present.'},elementTypeNotAllowed:function(e){return'Element type "'+e+'" is not allowed in this context.'},actionTypeNotAllowed:function(e){return'Action type "'+e+'" is not allowed in this context.'},invalidPropertyValue:function(e,t){return'Invalid value "'+e+'" for property "'+t+'".'},showCardMustHaveCard:function(){return'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},invalidColumnWidth:function(e){return'Invalid column width "'+e+'" - defaulting to "auto".'},invalidCardVersion:function(e){return'Invalid card version. Defaulting to "'+e+'".'},invalidVersionString:function(e){return'Invalid version string "'+e+'".'},propertyValueNotSupported:function(e,t,n,i){return'Value "'+e+'" for property "'+t+'" is supported in version '+n+", but you are using version "+i+"."},propertyNotSupported:function(e,t,n){return'Property "'+e+'" is supported in version '+t+", but you are using version "+n+"."},indexOutOfRange:function(e){return"Index out of range ("+e+")."},elementCannotBeUsedAsInline:function(){return"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline."},inlineAlreadyParented:function(){return"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock."},interactivityNotAllowed:function(){return"Interactivity is not allowed."},inputsMustHaveUniqueId:function(){return"All inputs must have a unique Id."},choiceSetMustHaveAtLeastOneChoice:function(){return"An Input.ChoiceSet must have at least one choice defined."},choiceSetChoicesMustHaveTitleAndValue:function(){return"All choices in an Input.ChoiceSet must have their title and value properties set."},propertyMustBeSet:function(e){return'Property "'+e+'" must be set.'},actionHttpHeadersMustHaveNameAndValue:function(){return"All headers of an Action.Http must have their name and value properties set."},tooManyActions:function(e){return"Maximum number of actions exceeded ("+e+")."},columnAlreadyBelongsToAnotherSet:function(){return"This column already belongs to another ColumnSet."},invalidCardType:function(){return'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'},unsupportedCardVersion:function(e,t){return"The specified card version ("+e+") is not supported. The maximum supported card version is "+t+"."},duplicateId:function(e){return'Duplicate Id "'+e+'".'},markdownProcessingNotEnabled:function(){return"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"},processMarkdownEventRemoved:function(){return"The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead."},elementAlreadyParented:function(){return"The element already belongs to another container."},actionAlreadyParented:function(){return"The action already belongs to another element."},elementTypeNotStandalone:function(e){return"Elements of type "+e+" cannot be used as standalone elements."}},e.magicCodeInputCard={tryAgain:function(){return"That didn't work... let's try again."},pleaseLogin:function(){return'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"'},enterMagicCode:function(){return"Enter magic code"},pleaseEnterMagicCodeYouReceived:function(){return"Please enter the magic code you received."},submit:function(){return"Submit"},cancel:function(){return"Cancel"},somethingWentWrong:function(){return"Something went wrong. This action can't be handled."},authenticationFailed:function(){return"Authentication failed."}},e.runtime={automaticRefreshPaused:function(){return"Automatic refresh paused."},clckToRestartAutomaticRefresh:function(){return"Click to restart."},refreshThisCard:function(){return"Refresh this card"}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}},e.defaults={inlineActionTitle:function(){return"Inline Action"},overflowButtonText:function(){return"..."},mediaPlayerAriaLabel:function(){return"Media content"},mediaPlayerPlayMedia:function(){return"Play media"}},e}();t.Strings=n},74:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.Table=t.TableRow=t.TableCell=t.StylableContainer=t.TableColumnDefinition=void 0;var s=n(651),a=n(10),l=n(432),p=n(475),u=n(764),c=n(653),h=n(755),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.width=new u.SizeAndUnit(1,a.SizeUnit.Weight),t}return r(t,e),t.prototype.getSchemaKey=function(){return"ColumnDefinition"},t.horizontalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"horizontalCellContentAlignment",a.HorizontalAlignment),t.verticalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"verticalCellContentAlignment",a.VerticalAlignment),t.widthProperty=new p.CustomProperty(p.Versions.v1_5,"width",(function(e,t,n,i){var r=t.defaultValue,o=n[t.name],s=!1;if("number"!=typeof o||isNaN(o))if("string"==typeof o)try{r=u.SizeAndUnit.parse(o)}catch(e){s=!0}else s=!0;else r=new u.SizeAndUnit(o,a.SizeUnit.Weight);return s&&i.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,c.Strings.errors.invalidColumnWidth(o)),r}),(function(e,t,n,i,r){i.unit===a.SizeUnit.Pixel?r.serializeValue(n,"width",i.physicalSize+"px"):r.serializeNumber(n,"width",i.physicalSize)}),new u.SizeAndUnit(1,a.SizeUnit.Weight)),o([(0,p.property)(t.horizontalCellContentAlignmentProperty)],t.prototype,"horizontalCellContentAlignment",void 0),o([(0,p.property)(t.verticalCellContentAlignmentProperty)],t.prototype,"verticalCellContentAlignment",void 0),o([(0,p.property)(t.widthProperty)],t.prototype,"width",void 0),t}(p.SerializableObject);t.TableColumnDefinition=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=[],t}return r(t,e),t.prototype.parseItem=function(e,t){var n=this;return t.parseCardObject(this,e,[],!this.isDesignMode(),(function(e){return n.createItemInstance(e)}),(function(e,n){t.logParseEvent(void 0,a.ValidationEvent.ElementTypeNotAllowed,c.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.internalAddItem=function(e){if(e.parent)throw new Error(c.Strings.errors.elementAlreadyParented());this._items.push(e),e.setParent(this)},t.prototype.internalRemoveItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._items=[];var i=t[this.getCollectionPropertyName()];if(Array.isArray(i))for(var r=0,o=i;r0?this.getItemAt(0):void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.getItemCount()>0?this.getItemAt(this.getItemCount()-1):void 0},t}(s.StylableCardElementContainer);t.StylableContainer=f;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columnIndex=-1,t._cellType="data",t}return r(t,e),t.prototype.getHasBorder=function(){return this.parentRow.parentTable.showGridLines},t.prototype.applyBorder=function(){if(this.renderedElement&&this.getHasBorder()){var e=this.hostConfig.containerStyles.getStyleByName(this.parentRow.parentTable.gridStyle);if(e.borderColor){var t=(0,h.stringToCssColor)(e.borderColor);t&&(this.renderedElement.style.borderRight="1px solid "+t,this.renderedElement.style.borderBottom="1px solid "+t)}}},t.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new u.PaddingDefinition(a.Spacing.Small,a.Spacing.Small,a.Spacing.Small,a.Spacing.Small):e.prototype.getDefaultPadding.call(this)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return t&&(t.setAttribute("role","data"===this.cellType?"cell":"columnheader"),t.style.minWidth="0","header"===this.cellType&&t.setAttribute("scope","col")),t},t.prototype.shouldSerialize=function(e){return!0},t.prototype.getJsonTypeName=function(){return"TableCell"},t.prototype.getEffectiveTextStyleDefinition=function(){return"header"===this.cellType?this.hostConfig.textStyles.columnHeader:e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.getEffectiveHorizontalAlignment=function(){if(void 0!==this.horizontalAlignment)return this.horizontalAlignment;if(void 0!==this.parentRow.horizontalCellContentAlignment)return this.parentRow.horizontalCellContentAlignment;if(this.columnIndex>=0){var t=this.parentRow.parentTable.getColumnAt(this.columnIndex).horizontalCellContentAlignment;if(void 0!==t)return t}return void 0!==this.parentRow.parentTable.horizontalCellContentAlignment?this.parentRow.parentTable.horizontalCellContentAlignment:e.prototype.getEffectiveHorizontalAlignment.call(this)},t.prototype.getEffectiveVerticalContentAlignment=function(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;if(void 0!==this.parentRow.verticalCellContentAlignment)return this.parentRow.verticalCellContentAlignment;if(this.columnIndex>=0){var t=this.parentRow.parentTable.getColumnAt(this.columnIndex).verticalCellContentAlignment;if(void 0!==t)return t}return void 0!==this.parentRow.parentTable.verticalCellContentAlignment?this.parentRow.parentTable.verticalCellContentAlignment:e.prototype.getEffectiveVerticalContentAlignment.call(this)},Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this._columnIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellType",{get:function(){return this._cellType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentRow",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(s.Container);t.TableCell=y;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultPadding=function(){return new u.PaddingDefinition(a.Spacing.None,a.Spacing.None,a.Spacing.None,a.Spacing.None)},t.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=(0,h.stringToCssColor)(e.backgroundColor);this.renderedElement.style.backgroundColor=t}}},t.prototype.getCollectionPropertyName=function(){return"cells"},t.prototype.createItemInstance=function(e){return e&&"TableCell"!==e?void 0:new y},t.prototype.internalRender=function(){var e=this.getIsFirstRow(),t=this.hostConfig.table.cellSpacing,n=document.createElement("div");n.setAttribute("role","row"),n.style.display="flex",n.style.flexDirection="row";for(var i=0;i0&&!this.parentTable.showGridLines&&t>0&&(o.style.marginLeft=t+"px"),n.appendChild(o)}}return n.children.length>0?n:void 0},t.prototype.shouldSerialize=function(e){return!0},t.prototype.addCell=function(e){this.internalAddItem(e)},t.prototype.removeCellAt=function(e){return e>=0&&e0){for(var e=0,t=0,n=this._columns;t0&&!this.showGridLines&&c>0){var y=document.createElement("div");y.setAttribute("aria-hidden","true"),y.style.height=c+"px",s.appendChild(y)}s.appendChild(f)}}return s}},t.prototype.addColumn=function(e){this._columns.push(e),this.ensureRowsHaveEnoughCells()},t.prototype.removeColumn=function(e){var t=this._columns.indexOf(e);t>=0&&(this.removeCellsFromColumn(t),this._columns.splice(t,1))},t.prototype.getColumnCount=function(){return this._columns.length},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.addRow=function(e){this.internalAddItem(e),e.ensureHasEnoughCells(this.getColumnCount())},t.prototype.getJsonTypeName=function(){return"Table"},t.columnsProperty=new p.SerializableObjectCollectionProperty(p.Versions.v1_5,"columns",d),t.firstRowAsHeadersProperty=new p.BoolProperty(p.Versions.v1_5,"firstRowAsHeaders",!0),t.showGridLinesProperty=new p.BoolProperty(p.Versions.v1_5,"showGridLines",!0),t.gridStyleProperty=new s.ContainerStyleProperty(p.Versions.v1_5,"gridStyle"),t.horizontalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"horizontalCellContentAlignment",a.HorizontalAlignment),t.verticalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"verticalCellContentAlignment",a.VerticalAlignment),o([(0,p.property)(t.columnsProperty)],t.prototype,"_columns",void 0),o([(0,p.property)(t.firstRowAsHeadersProperty)],t.prototype,"firstRowAsHeaders",void 0),o([(0,p.property)(t.showGridLinesProperty)],t.prototype,"showGridLines",void 0),o([(0,p.property)(t.gridStyleProperty)],t.prototype,"gridStyle",null),o([(0,p.property)(t.horizontalCellContentAlignmentProperty)],t.prototype,"horizontalCellContentAlignment",void 0),o([(0,p.property)(t.verticalCellContentAlignmentProperty)],t.prototype,"verticalCellContentAlignment",void 0),t}(f);t.Table=m,l.GlobalRegistry.defaultElements.register("Table",m,p.Versions.v1_5)},639:function(e,t){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.formatText=void 0;var r=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var n;if(t){for(var i=t;null!=(n=this._regularExpression.exec(t));)i=i.replace(n[0],this.internalFormat(e,n));return i}return t},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1])),i=null!=t[2]?t[2].toLowerCase():"compact";return"compact"!=i?n.toLocaleDateString(e,{day:"numeric",weekday:i,month:i,year:"numeric"}):n.toLocaleDateString()},t}(r),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},t}(r);t.formatText=function(e,t){for(var n=t,i=0,r=[new o(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new s(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];i{Object.defineProperty(t,"__esModule",{value:!0}),t.clearElementChildren=t.getScrollY=t.getScrollX=t.getFitStatus=t.truncate=t.stringToCssColor=t.parseEnum=t.getEnumValueByName=t.parseBool=t.parseNumber=t.parseString=t.appendChild=t.generateUniqueId=t.isMobileOS=t.isInternetExplorer=void 0;var i=n(10),r=n(764);function o(e,t){for(var n in e){var i=parseInt(n,10);if(i>=0){var r=e[n];if(r&&"string"==typeof r&&r.toLowerCase()===t.toLowerCase())return i}}}function s(e,t){for(t+=1;t"!=e[t++];);return t}t.isInternetExplorer=function(){return void 0!==window.document.documentMode},t.isMobileOS=function(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)},t.generateUniqueId=function(){return"__ac-"+r.UUID.generate()},t.appendChild=function(e,t){t&&e.appendChild(t)},t.parseString=function(e,t){return"string"==typeof e?e:t},t.parseNumber=function(e,t){return"number"==typeof e?e:t},t.parseBool=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t},t.getEnumValueByName=o,t.parseEnum=function(e,t,n){if(!t)return n;var i=o(e,t);return void 0!==i?i:n},t.stringToCssColor=function(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255;return"rgba("+parseInt(t[2],16)+","+parseInt(t[3],16)+","+parseInt(t[4],16)+","+n+")"}}return e},t.truncate=function(e,t,n){var i=function(){return t-e.scrollHeight>=-1};if(!i()){for(var r=e.innerHTML,o=function(t){e.innerHTML=r.substring(0,t)+"..."},a=function(e){for(var t=[],n=s(e,-1);n=n-1){for(var h=s(r,u);h