<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_VPS_SDN_ManageNAT, MachSol.MachPanel.Web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">

    <!-- Include the external template so the DOM template is available before the module runs -->
    <!--#include virtual="../../../Components/VPS/SDN/AddEditNAT.html" -->

    <script type="module">

        import { createApp } from 'vue'
        import AddEditNAT from "/Components/VPS/SDN/AddEditNAT.js?v=3.6"
        import { getLabelText } from '/Components/Common/utils.js?v=3.6'

        createApp({
            data() {
                return {
                    readOnly: <%= Helper.ReadOnlyRole %>,
                    isLoggedInAsCustomer: <%= Helper.IsLoggedInAsCustomer.ToString().ToLower() %>,
                    addEditDTO: <%= Newtonsoft.Json.JsonConvert.SerializeObject(AddEditDTO) %>,
                }
            },
            methods: {
                getLabelText,
            },
            components: {
                AddEditNAT,
            },
            created: function () {
                //console.log(this.addEditDTO);
            },
            template: `

<AddEditNAT :addEditDTO="addEditDTO" :readOnly="readOnly" :isLoggedInAsCustomer="isLoggedInAsCustomer" />
`
        }).mount('#app');

    </script>

    <div id="app">
    </div>

</asp:Content>

