{
  "version": 3,
  "sources": ["/cdn/shop/t/1/assets/account-login-actions.js?v=132624473766457443991768528522"],
  "sourcesContent": ["/**\n * A custom element that manages the account login actions.\n *\n * @extends {HTMLElement}\n */\nclass AccountLoginActions extends HTMLElement {\n  /**\n   * @type {Element | null}\n   */\n  shopLoginButton = null;\n\n  connectedCallback() {\n    this.shopLoginButton = this.querySelector('shop-login-button');\n\n    if (this.shopLoginButton) {\n      // We don't have control over the shop-login-button markup, so we need to set additional attributes here\n      this.shopLoginButton.setAttribute('full-width', 'true');\n      this.shopLoginButton.setAttribute('persist-after-sign-in', 'true');\n      // Do this only if New Customer Account is ALWAYS the sign in option (and never Classic Customer Account)\n      this.shopLoginButton.setAttribute('analytics-context', 'loginWithShopSelfServe');\n      this.shopLoginButton.setAttribute('flow-version', 'account-actions-popover');\n      this.shopLoginButton.setAttribute('return-uri', window.location.href);\n\n      // Reload the page after the login is completed, otherwise the page state is incorrect\n      this.shopLoginButton.addEventListener('completed', () => {\n        window.location.reload();\n      });\n    }\n  }\n}\n\nif (!customElements.get('account-login-actions')) {\n  customElements.define('account-login-actions', AccountLoginActions);\n}\n"],
  "mappings": "AAKA,MAAM,4BAA4B,WAAY,CAI5C,gBAAkB,KAElB,mBAAoB,CAClB,KAAK,gBAAkB,KAAK,cAAc,mBAAmB,EAEzD,KAAK,kBAEP,KAAK,gBAAgB,aAAa,aAAc,MAAM,EACtD,KAAK,gBAAgB,aAAa,wBAAyB,MAAM,EAEjE,KAAK,gBAAgB,aAAa,oBAAqB,wBAAwB,EAC/E,KAAK,gBAAgB,aAAa,eAAgB,yBAAyB,EAC3E,KAAK,gBAAgB,aAAa,aAAc,OAAO,SAAS,IAAI,EAGpE,KAAK,gBAAgB,iBAAiB,YAAa,IAAM,CACvD,OAAO,SAAS,OAAO,CACzB,CAAC,EAEL,CACF,CAEK,eAAe,IAAI,uBAAuB,GAC7C,eAAe,OAAO,wBAAyB,mBAAmB",
  "names": []
}
