1"use strict";(globalThis.webpackJsonp_yves_default=globalThis.webpackJsonp_yves_default||[]).push([[4105],{55548(t,e,i){i.r(e),i.d(e,{default:()=>o});var s=i(57142);class o extends s.A{constructor(){super(...arguments),this.formHolder=void 0,this.fieldsContainer=void 0,this.submitButton=void 0}readyCallback(){}init(){this.initialMount&&(this.fieldsContainer=this.getElementsByClassName(this.jsName+"__container")[0],this.submitButton=this.getElementsByClassName(this.jsName+"__submit")[0],this.getFormHolder(),this.createForm(),this.removeFieldsContainer(),this.mapEvents())}mapEvents(){this.mapSubmitButtonClickEvent()}mapSubmitButtonClickEvent(){this.submitButton.addEventListener("click",()=>this.submitTargetForm())}submitTargetForm(){var t=document.getElementById(this.formName);this.submitButton.dataset.formAction&&(t.action=this.submitButton.dataset.formAction),t.submit()}getFormHolder(){this.formHolderClassName?this.formHolder=document.getElementsByClassName(this.formHolderClassName)[0]:this.formHolder=document.body}createForm(){var t;if("form"!==(null==(t=document.getElementById(this.formName))?void 0:t.tagName.toLowerCase())){var e='\n <form id="'+this.formName+'" class="is-hidden" name="'+this.formName+'" method="post" action="'+this.formAction+'">\n '+this.fieldsContainer.innerHTML+"\n </form>\n ";this.formHolder.insertAdjacentHTML("beforeend",e)}}removeFieldsContainer(){this.fieldsContainer&&this.fieldsContainer.remove()}get formHolderClassName(){return this.getAttribute("form-holder-class-name")}get formName(){return this.getAttribute("form-name")}get formAction(){return this.getAttribute("form-action")}get initialMount(){return this.hasAttribute("initial-mount")}}}}]);
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.