1window.Eurus.loadedScript.has("gift-card-recipient.js")||(window.Eurus.loadedScript.add("gift-card-recipient.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xGiftCardRecipent",(sectionId,message_email_required,message_email_invalid,message_send_on,error_message_wrapper)=>({showForm:!1,recipient_control:"if_present",validateEmail:{show:!0,message:""},validateDate:{show:!1,message:""},disabled:!0,init(){this.$refs.timezone_offset.value=new Date().getTimezoneOffset().toString()},onChange(){this.$refs.recipient_checkbox.checked?(this.showForm=!0,this.recipient_control="on"):(this.showForm=!1,this.recipient_control="if_present"),this.setForm()},onChangeInput(el){if(el.type=="email"){var validRegex=/^[0-9a-z]+(?:\.[0-9a-z]+)*@[a-z0-9]{2,}(?:\.[a-z]{2,})+$/;return el.value===""?(this.validateEmail={show:!0,message:message_email_required},!0):el.value.match(validRegex)?(this.validateEmail={show:!1,message:""},!1):(this.validateEmail={show:!0,message:message_email_invalid},!0)}if(el.type=="date"){if(el.value==="")return this.validateDate={show:!1,message:""},el.required=!1,!1;const today=new Date().toLocaleDateString("en-CA"),maxDate=new Date(Date.now()+2160*60*60*1e3).toLocaleDateString("en-CA");return el.value<today||el.value>maxDate?(this.validateDate={show:!0,message:message_send_on},el.required=!0,!0):(this.validateDate={show:!1,message:""},el.required=!1,!1)}},setForm(){document.getElementById(`recipient-form-${sectionId}`).querySelectorAll(".recipient_input").forEach(input=>{input.value=""}),this.$refs.recipient_error_message.classList.add("hidden"),this.validateDate={show:!1,message:""},this.validateEmail={show:!0,message:""},this.$el.closest(".recipient-form")&&(this.$el.closest(".recipient-form").dataset.disabled="true")},handleShowResult(){Object.entries(error_message_wrapper).forEach(([key,value])=>{key=="email"&&(this.validateEmail={show:!0,message:value[0]}),key=="send_on"&&(this.validateDate={show:!0,message:value[0]})})}}))})})); 2//# sourceMappingURL=/cdn/shop/t/80/assets/gift-card-recipient.js.map?v=24951926043059338481785247873
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.