

/* This view acts as a rendering template to render InitScript(and server-side Form's descriptor) in FormContainerBlock's client-side for Form[3af948be-81ab-4814-b087-8f95a75699cb].
TECHNOTE: all serverside (paths, dynamic values) of EPiServerForms will be transfered to client side here in this section. */
(function initializeOnRenderingFormDescriptor() {
    // each workingFormInfo is store inside epi.EPiServer.Forms, lookup by its FormGuid
    var workingFormInfo = epi.EPiServer.Forms["3af948be-81ab-4814-b087-8f95a75699cb"] = {
        Id: "3af948be-81ab-4814-b087-8f95a75699cb",
        Name: "Email-LA Clubs-Racquet Sports - Private Events Form",
        // whether this Form can be submitted which relates to the visitor's data (cookie, identity) and Form's settings (AllowAnonymous, AllowXXX)

        SubmittableStatus : {"submittable":true,"message":""},        
        ConfirmMessage : "",
        ShowNavigationBar : true,
        ShowSummarizedData : false,
        
        // serialize the dependency configuration of this form to clientside
        DependenciesInfo : [],
        // keep all fieldName which are not satisfied the field dependency conditions
        DependencyInactiveElements: [],

        // Validation info, for executing validating on client side
        ValidationInfo : [{"targetElementName":"__field_438557","targetElementId":"72cc5fcb-3a70-417c-99fc-c1a6564af5da","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_438540","targetElementId":"5e1ac3f5-bfa4-46fe-aebd-2721ec0cc734","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_438541","targetElementId":"71672a15-c0d8-48d9-8545-91e22d47de9f","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_438543","targetElementId":"f9436f29-c40e-4c2d-88a4-da1c11a6c7d9","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}},{"type":"EPiServer.Forms.Implementation.Validation.EmailValidator","description":null,"model":{"jsPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","dotNetPattern":"(^$)|(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)","message":"Enter a valid email address.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_438542","targetElementId":"47320767-34a1-4859-b7a3-63be0ec5a880","validators":[{"type":"EPiServer.Forms.Implementation.Validation.RequiredValidator","description":null,"model":{"message":"This field is required.","validationCssClass":"ValidationRequired","additionalAttributes":{"required":"","aria-required":"true"}}}]},{"targetElementName":"__field_438548","targetElementId":"2a638c0b-67ee-4fef-8428-ea9fdc973444","validators":[{"type":"EPiServer.Forms.Samples.Implementation.Validation.DateValidator","description":null,"model":{"message":"Unexpected value is not accepted.","validationCssClass":null,"additionalAttributes":null}}]},{"targetElementName":"__field_438550","targetElementId":"1dd9006b-a9ac-4162-bbc7-822ff5e74624","validators":[{"type":"EPiServer.Forms.Implementation.Validation.NumericValidator","description":null,"model":{"message":"Enter a valid number.","validationCssClass":null,"additionalAttributes":null}},{"type":"EPiServer.Forms.Implementation.Validation.PositiveIntegerValidator","description":null,"model":{"jsPattern":"^\\d+$","dotNetPattern":"^\\d+$","message":"Enter a valid positive integer.","validationCssClass":null,"additionalAttributes":null}}]}],
        // Steps information for driving multiple-step Forms.
        StepsInfo : {
            Steps: [{"index":0,"attachedUrl":"","dependField":null,"dependCondition":null,"isActive":true,"attachedContentLink":"","dependValue":"","elementName":"__field_","guid":"00000000-0000-0000-0000-000000000000"}]
        },
        FieldsExcludedInSubmissionSummary: [],
        ElementsInfo: {"__field_438557":{"type":"EPiServer.Forms.Implementation.Elements.SelectionElementBlock","friendlyName":"Entity_Code","customBinding":false},"__field_438540":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"first_name","customBinding":false},"__field_438541":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"last_name","customBinding":false},"__field_438543":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"email","customBinding":false},"__field_438542":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"phone","customBinding":false},"__field_438548":{"pickerType":"datepicker","type":"EPiServer.Forms.Samples.Implementation.Elements.DateTimeElementBlock","friendlyName":"Date_of_Interest","customBinding":true},"__field_438549":{"type":"EPiServer.Forms.Implementation.Elements.ChoiceElementBlock","friendlyName":"Date_Flexible","customBinding":false},"__field_438550":{"type":"EPiServer.Forms.Implementation.Elements.NumberElementBlock","friendlyName":"Number_of_Guests","customBinding":false},"__field_438552":{"type":"EPiServer.Forms.Implementation.Elements.TextareaElementBlock","friendlyName":"comments","customBinding":false},"__field_438554":{"type":"EPiServer.Forms.Implementation.Elements.TextboxElementBlock","friendlyName":"PrivateEventOverride_Interaction_Code_Hidden_LAClubs_CorporateGolfOutings_Google","customBinding":false},"__field_440340":{"type":"ClubCorp.Features.Blocks.HoneyPotElementBlock","friendlyName":"HoneyPotElementBlock","customBinding":false},"__field_438547":{"type":"EPiServer.Forms.Implementation.Elements.ResetButtonElementBlock","friendlyName":"Reset button","customBinding":false},"__field_438546":{"type":"EPiServer.Forms.Implementation.Elements.SubmitButtonElementBlock","friendlyName":"Submit button","customBinding":false}},
        DataSubmitController: "/EPiServer.Forms/DataSubmit"
        
    };
    
    /// TECHNOTE: Calculation at FormInfo level, and these values will be static input for later processing.
    workingFormInfo.StepsInfo.FormHasNoStep_VirtualStepCreated = true;  // this FLAG will be true, if Editor does not put any FormStep. Engine will create a virtual step, with empty GUID
    workingFormInfo.StepsInfo.FormHasNothing = false;  // this FLAG will be true if FormContainer has no element at all
    workingFormInfo.StepsInfo.AllStepsAreNotLinked = true;  // this FLAG will be true, if all steps all have contentLink=="" (emptyString)
})();
