"use strict";(self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[]).push([[3642],{7279:function(i,o,t){t.d(o,{o:function(){return s}});var e=t(6892),s=function(i,o,t){void 0===t&&(t=!0);var s="Function"===i.constructor.name?i.prototype:i,n=s.componentWillLoad;s.componentWillLoad=function(){var i,s=this,a=(0,e.a)(this),r={promise:new Promise((function(o){i=o})),resolve:i},l=new CustomEvent("openWormhole",{bubbles:!0,composed:!0,detail:{consumer:this,fields:o,updater:function(i,o){(i in a?a:s)[i]=o},onOpen:r}});a.dispatchEvent(l);var h=function(){if(n)return n.call(s)};return t?r.promise.then((function(){return h()})):h()}}},3642:function(i,o,t){t.r(o),t.d(o,{sc_order_password:function(){return n}});var e=t(6892),s=t(7279);const n=class{constructor(i){(0,e.r)(this,i),this.loggedIn=void 0,this.size="medium",this.value="",this.pill=!1,this.label=void 0,this.showLabel=!0,this.help="",this.placeholder=void 0,this.disabled=!1,this.readonly=!1,this.required=!1,this.autofocus=void 0,this.emailExists=void 0,this.confirmation=!1,this.confirmationLabel=void 0,this.confirmationPlaceholder=void 0,this.confirmationHelp=void 0,this.enableValidation=!0}async reportValidity(){var i,o;return null===(o=null===(i=this.input)||void 0===i?void 0:i.reportValidity)||void 0===o?void 0:o.call(i)}render(){return this.loggedIn?(0,e.h)(e.H,{style:{display:"none"}}):(0,e.h)("sc-password",{label:this.label,"aria-label":this.label,help:this.help,autofocus:this.autofocus,placeholder:this.placeholder,showLabel:this.showLabel,size:this.size?this.size:"medium",name:"password",ref:i=>this.input=i,value:this.value,required:this.required,disabled:this.disabled,enableValidation:this.enableValidation,confirmationHelp:this.confirmationHelp,confirmationLabel:this.confirmationLabel,confirmationPlaceholder:this.confirmationPlaceholder,confirmation:this.confirmation})}};(0,s.o)(n,["loggedIn","emailExists"],!1),n.style=":host{display:block}.password{display:grid;gap:var(--sc-form-row-spacing, 0.75em)}.password__hint{padding-top:0.36rem;color:red}"}}]);