!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js"],t);else{var o="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(e,t,o,r,a)=>(()=>{"use strict";var s,i={1869(e,t,o){o.r(t),o.d(t,{Coachmark:()=>h,coachmarkPlacement:()=>m}),o(5983);var r=o(7704),a=o(9609),s=o(2050),i=o(4084),c=o(7161),n=o(429),l=o(5125),p=o(887),d=function(e,t,o,r){var a,s=arguments.length,i=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(s<3?a(i):s>3?a(t,o,i):a(t,o))||i);return s>3&&i&&Object.defineProperty(t,o,i),i};const m=["auto","left","right","top","bottom"];var h;!function(e){let t=class extends((0,r.dY)(c.LitElement)){constructor(){super(...arguments),this.message="",this.actionname="Next",this.hidebutton=!1,this.placement="auto",this.show=!1,this.color="default",this.slotContent=null}connectedCallback(){super.connectedCallback()}notifyCoachCreate(){this.dispatchEvent(new CustomEvent("coach-create",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}coachAction(){this.dispatchEvent(new CustomEvent("coach-action",{bubbles:!0,composed:!0,detail:{popper:this.popper}}))}handleSlotChange(e){const t=e.target;if(t){const e=t.assignedElements({flatten:!0});e.length&&(this.slotContent=e)}}update(e){var t;super.update(e),e.has("show")&&this.show&&(this.setFocusableElements(),(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus())}get coachWrapClassMap(){return{"md-coachmark--active":!!this.show}}get coachClassMap(){return{[`md-coachmark__popper--${this.placement}`]:!!this.placement,[`md-coachmark__popper--${this.color}`]:!!this.color}}static get styles(){return[i.A,p.A]}coachmarkContentTemplate(){return c.html`
        <div class="md-coachmark__content">
          ${this.message?this.message:c.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
          <div class="md-coachmark__action">
            ${this.hidebutton?c.html` <slot name="coachmark-action"></slot> `:c.html` <md-button variant="secondary" @button-click=${this.coachAction}>${this.actionname}</md-button> `}
          </div>
        </div>
      `}wrappedCoachmarkContentTemplate(){const e=(0,s.QZ)("md-theme",this);return"momentumV2"===(null==e?void 0:e.theme)?c.html`
          <md-theme theme="momentumV2" ?darkTheme=${!e.darkTheme}>
            ${this.coachmarkContentTemplate()}
          </md-theme>
        `:this.coachmarkContentTemplate()}render(){return c.html`
        <div class="md-coachmark ${(0,l.classMap)(this.coachWrapClassMap)}">
          <div class="md-coachmark__popper ${(0,l.classMap)(this.coachClassMap)}" tabindex="0">
            ${this.wrappedCoachmarkContentTemplate()}
            <div id="arrow" class="md-coachmark__arrow" data-popper-arrow></div>
          </div>
          <div class="md-coachmark__reference" @click=${()=>this.notifyCoachCreate()} aria-describedby="coachmark">
            <slot></slot>
          </div>
        </div>
      `}};d([(0,n.property)({type:String})],t.prototype,"message",void 0),d([(0,n.property)({type:String})],t.prototype,"actionname",void 0),d([(0,n.property)({type:Boolean})],t.prototype,"hidebutton",void 0),d([(0,n.property)({type:String})],t.prototype,"placement",void 0),d([(0,n.property)({type:Boolean})],t.prototype,"show",void 0),d([(0,n.property)({type:String})],t.prototype,"color",void 0),d([(0,n.query)(".md-coachmark__popper")],t.prototype,"popper",void 0),d([(0,n.query)(".md-coachmark__reference")],t.prototype,"reference",void 0),t=d([(0,a.w)("md-coachmark")],t),e.ELEMENT=t}(h||(h={}))},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=o},291(e){e.exports=a},318(e){e.exports=r}},c={};function n(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={exports:{}};return i[e](o,o.exports,n),o.exports}n.m=i,s=[],n.O=(e,t,o,r)=>{if(!t){var a=1/0;for(p=0;p<s.length;p++){for(var[t,o,r]=s[p],i=!0,c=0;c<t.length;c++)(!1&r||a>=r)&&Object.keys(n.O).every(e=>n.O[e](t[c]))?t.splice(c--,1):(i=!1,r<a&&(a=r));if(i){s.splice(p--,1);var l=o();void 0!==l&&(e=l)}}return e}r=r||0;for(var p=s.length;p>0&&s[p-1][2]>r;p--)s[p]=s[p-1];s[p]=[t,o,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2779:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[s,i,c]=o,l=0;if(s.some(t=>0!==e[t])){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(c)var p=c(n)}for(t&&t(o);l<s.length;l++)a=s[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(p)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l=n.O(void 0,[9609,4084,3305,4739,7154,9773,5983,2364,4781,519,5201,5584,8227,4700,9669,887,561],()=>n(1869));return n.O(l)})());