{"version":3,"file":"ecdawc0L6.0O2IGHtR.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/unMpnu4d7oqNVoOMtQi3/rfO710lYiOolpniOTtWw/ecdawc0L6.js"],"sourcesContent":["// Generated by Framer (0138aee)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Embed from\"https://framerusercontent.com/modules/o1PI5S8YtkA5bP5g4dFz/cAPMVEI6osbJ1UvICgTq/Embed.js\";const EmbedFonts=getFonts(Embed);const cycleOrder=[\"LT7MjEmhx\",\"zZoXT8YJ3\",\"y6iJigdB5\",\"VvKr7vptr\",\"qpES8QavW\",\"MhE5PqvWD\"];const serializationHash=\"framer-OyFHg\";const variantClassNames={LT7MjEmhx:\"framer-v-xl8r2v\",MhE5PqvWD:\"framer-v-owbw1y\",qpES8QavW:\"framer-v-ct0ast\",VvKr7vptr:\"framer-v-repjiv\",y6iJigdB5:\"framer-v-gpw7sc\",zZoXT8YJ3:\"framer-v-5sv5d4\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Arabic Desktop\":\"y6iJigdB5\",\"Arabic Mobile\":\"VvKr7vptr\",\"Serviced Offices Contact Us Mobile\":\"MhE5PqvWD\",\"Serviced Offices Contact Us\":\"qpES8QavW\",\"Variant 1\":\"LT7MjEmhx\",Mobile:\"zZoXT8YJ3\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"LT7MjEmhx\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"LT7MjEmhx\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-xl8r2v\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"LT7MjEmhx\",ref:refBinding,style:{backgroundColor:\"rgb(255, 255, 255)\",...style},...addPropertyOverrides({MhE5PqvWD:{\"data-framer-name\":\"Serviced Offices Contact Us Mobile\"},qpES8QavW:{\"data-framer-name\":\"Serviced Offices Contact Us\"},VvKr7vptr:{\"data-framer-name\":\"Arabic Mobile\"},y6iJigdB5:{\"data-framer-name\":\"Arabic Desktop\"},zZoXT8YJ3:{\"data-framer-name\":\"Mobile\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-1g10pms-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"FjuU5pblh-container\",nodeId:\"FjuU5pblh\",rendersWithMotion:true,scopeId:\"ecdawc0L6\",children:/*#__PURE__*/_jsx(Embed,{height:\"100%\",html:'<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css\" />\\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js\"></script>\\n\\n<style>\\n    .input-box {\\n        flex: 1 1 0%;\\n        border: none;\\n        outline: none;\\n        background-color: transparent;\\n        padding: 16px 0;\\n        color: #000;\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        width: 100%;\\n        border-bottom: 1px solid rgb(0, 46, 93);\\n        border-radius: 0;\\n        accent-color: rgb(0, 117, 255);\\n\\n    }\\n\\n    .textbox {\\n        position: relative;\\n        display: flex;\\n        flex-direction: column;\\n        color: #000;\\n        accent-color: rgb(0, 117, 255);\\n        border-radius: 0px;\\n        /* overflow: auto; */\\n        /* user-select: none; */\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        margin-bottom: 25px;\\n        gap: 10px;\\n    }\\n\\n    label {\\n        /* padding-left: 16px; */\\n        color: rgb(0, 46, 93);\\n    }\\n\\n    form {\\n        place-content: center flex-start;\\n        font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));\\n        place-self: start;\\n        border-radius: 10px;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: column;\\n        gap: 10px;\\n        height: 100%;\\n        /* overflow: visible; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: flex;\\n        flex-direction: row;\\n        align-items: center;\\n        justify-content: center;\\n        color: rgb(0, 0, 0);\\n        border: 1px solid rgb(0, 46, 93);\\n        outline: none;\\n        cursor: pointer;\\n        user-select: none;\\n        border-radius: 0px;\\n        padding: 18px;\\n        font-size: 16px;\\n        font-style: normal;\\n\\n        letter-spacing: 0em;\\n        line-height: 1em;\\n        width: 100%;\\n        background: transparent;\\n    }\\n\\n    .submit-button:hover {\\n        background: rgb(0, 46, 93);\\n        color: #fff;\\n    }\\n\\n    .row {\\n        display: flex;\\n        width: 100%;\\n        place-content: center;\\n        align-items: center;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: row;\\n        gap: 25px;\\n        height: min-content;\\n        /* overflow: auto; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .col-md-6 {\\n        width: 50%;\\n    }\\n\\n    .col-md-12 {\\n        width: 100%;\\n    }\\n\\n    .alert-error,\\n    .error-main {\\n        display: flex;\\n        align-items: center;\\n        color: rgb(255, 0, 0);\\n    }\\n\\n    .error-main {\\n        display: none;\\n        justify-content: center;\\n        text-align: center;\\n    }\\n\\n\\n\\n    @media (max-width: 500px) {\\n        .col-md-6 {\\n            width: 100%;\\n        }\\n\\n        .row {\\n            flex-direction: column;\\n        }\\n\\n        .textbox {\\n            margin-bottom: 0;\\n        }\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: inline-flex;\\n        align-items: center;\\n    }\\n\\n\\n    .loader {\\n        border: 4px solid #000;\\n        /* Light grey */\\n        border-top: 4px solid #000;\\n        /* Blue */\\n        border-radius: 50%;\\n        width: 15px;\\n        height: 15px;\\n        animation: spin 2s linear infinite;\\n        margin-left: 10px;\\n    }\\n\\n    @keyframes spin {\\n        0% {\\n            transform: rotate(0deg);\\n        }\\n\\n        100% {\\n            transform: rotate(360deg);\\n        }\\n    }\\n\\n    /* Basic styling for the select element */\\n    .custom-select {\\n        position: relative;\\n        display: inline-block;\\n        width: 200px;\\n        /* Adjust width as needed */\\n    }\\n\\n    /* Hide the default arrow */\\n    select {\\n        /* appearance: none; */\\n        /* -webkit-appearance: none; */\\n        /* -moz-appearance: none; */\\n        width: 100%;\\n        /* padding: 10px 30px 10px 10px; */\\n        /* Adjust padding to make room for the custom arrow */\\n        border: 1px solid #ccc;\\n        border-radius: 4px;\\n        /* background: url(\\'data:image/svg+xml;utf8,<svg fill=\"none\" height=\"24\" stroke=\"beige\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><polyline points=\"6 9 12 15 18 9\"/></svg>\\') no-repeat right 10px center; */\\n        background-size: 16px 16px;\\n        /* Adjust size as needed */\\n    }\\n\\n    /* Optional: additional styling for the custom select element */\\n    select:focus {\\n        /* outline: none; */\\n    }\\n\\n    textarea {\\n        width: 100%;\\n        /* Adjust the width as needed */\\n        /* height: calc(1.5em * 5); */\\n        /* 1.5em is the line height, 5 is the number of lines */\\n        /* overflow-y: auto; */\\n        /* Add a vertical scrollbar if content exceeds the height */\\n        /* resize: none; */\\n        /* Prevent resizing */\\n    }\\n\\n    .input-file {\\n        text-align: center;\\n        padding-left: 10px;\\n        color: #6f6f6f;\\n        display: flex;\\n        align-items: center;\\n    }\\n\\n    option {\\n        color: #000;\\n        padding-left: 6px;\\n        margin-left: 6px;\\n    }\\n\\n    .base-input,\\n    .first {\\n        color: #6f6f6f;\\n    }\\n\\n    #fileRow .textbox {\\n        padding-bottom: 18px;\\n        padding-top: 14px;\\n        padding-left: 16px;\\n\\n    }\\n\\n    .iti__selected-flag {\\n        padding: 0 6px 0 0;\\n    }\\n\\n    .iti__country-list {\\n        width: max-content;\\n    }\\n\\n    .iti__country-name {\\n        color: #000;\\n    }\\n\\n\\n    /*  */\\n\\n    .item-label a {\\n        color: rgb(0, 46, 93);\\n        ;\\n    }\\n\\n    /*  */\\n    /* Hide the default checkbox */\\n    input[type=\"checkbox\"] {\\n        display: none;\\n    }\\n\\n    /* Style the custom checkbox */\\n    .checkbox-container label {\\n        display: flex;\\n        align-items: center;\\n        cursor: pointer;\\n    }\\n\\n    .custom-checkbox {\\n        width: 11px;\\n        height: 11px;\\n        background-color: #f0f0f0;\\n        border: 0;\\n        border-radius: 4px;\\n        margin-right: 6px;\\n        position: relative;\\n        transition: background-color 0.2s;\\n    }\\n\\n    /* Show checkmark when checkbox is checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox {\\n        background-color: rgb(0, 46, 93);\\n        /* Background color for checked state */\\n        border-color: rgb(0, 46, 93);\\n    }\\n\\n\\n    .custom-checkbox::after {\\n        content: \\'\\';\\n        position: absolute;\\n        top: 0px;\\n        left: 4px;\\n        width: 3px;\\n        height: 7px;\\n        border: solid white;\\n        border-width: 0 2px 2px 0;\\n        transform: rotate(45deg);\\n        opacity: 0;\\n        transition: opacity 0.2s;\\n    }\\n\\n    /* Display checkmark when checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox::after {\\n        opacity: 1;\\n    }\\n\\n    /*  */\\n\\n    .last-name {\\n        position: absolute;\\n        left: -9999px;\\n        opacity: 0;\\n        pointer-events: none;\\n\\n    }\\n\\n    /*  */\\n\\n    @media only screen and (max-width: 900px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n    @media only screen and (max-width: 410px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n</style>\\n\\n<form id=\"form\" class=\"form-tag\" method=\"POST\" accept-charset=\"UTF-8\" id=\"form\" enctype=\"multipart/form-data\">\\n    <div class=\"row\">\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"name\">Name</label>\\n            <input class=\"input-box\" type=\"text\" id=\"name\" name=\"name\" placeholder=\"Joe Smith\" required />\\n        </div>\\n        <div class=\"col-md-6 textbox last-name\">\\n            <input class=\"input-box\" type=\"text\" id=\"last_name_back\" name=\"last_name_back\" placeholder=\"Smith\"\\n                autocomplete=\"off\" readonly onfocus=\"this.removeAttribute(\\'readonly\\');\" />\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"email\">Email</label>\\n            <input class=\"input-box\" type=\"email\" id=\"email\" name=\"email\" placeholder=\"example@gmail.com\" required />\\n        </div>\\n    </div>\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"phone\">Phone</label>\\n            <input class=\"input-box\" type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"501234567\" />\\n            <div class=\"alert alert-info\" style=\"display: none\"></div>\\n            <div class=\"alert alert-error\" style=\"display: none\"></div>\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">Service</label>\\n            <select class=\"base-input input-box\" name=\"interest\" id=\"interest\" required>\\n                <option class=\"first\" value=\"\" disabled selected>Select...</option>\\n                <option value=\"Serviced Office\">Private Offices</option>\\n                <option value=\"Coworking\">Coworking Spaces</option>\\n                <option value=\"Virtual Office\">Virtual Offices</option>\\n                <option value=\"Meeting Rooms\">Meeting/Conference Rooms</option>\\n                <option value=\"Enterprise Solution\">Enterprise Solutions</option>\\n                <option value=\"Event Spaces\">Event Spaces</option>\\n                <option value=\"Coworking\">Business Setup</option>\\n                <option value=\"Coworking\">Business Setup & Visa Application Service</option>\\n            </select>\\n        </div>\\n    </div>\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"message\">Message</label>\\n            <textarea class=\"input-box\" id=\"message\" name=\"message\" placeholder=\"Leave a message\"></textarea>\\n        </div>\\n    </div>\\n\\n    <!--  -->\\n    <div class=\"checkbox-container\">\\n        <label><input type=\"checkbox\" name=\"terms\"\\n                value=\"I agree to TEC\\'s Terms of Use and have read and understood the privacy policy.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox tec-agree-span\"></span>\\n            <span class=\"item-label tec-agree\">I agree to TEC\\'s <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/terms-conditions/\">Terms of\\n                    Use</a> and\\n                have read and understood the <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/privacy-policy/\">Privacy\\n                    Policy</a>.</span>\\n        </label>\\n    </div>\\n    <div class=\"checkbox-container\">\\n        <label>\\n            <input type=\"checkbox\" name=\"offer\" value=\"Please email me special offers, exclusive invites and more.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span class=\"item-label\">Please email me special offers, exclusive invites, and more.</span>\\n        </label>\\n    </div>\\n    <div></div>\\n    <div></div>\\n    <div></div>\\n\\n    <!-- <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">Send</button> -->\\n    <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">\\n        <span class=\"button-text\">SUBMIT</span>\\n        <span class=\"loader\" id=\"loaderIcon\" style=\"display: none;\">\\n            <!-- You can use an SVG or any loader icon here -->\\n            <i class=\"fa fa-spinner fa-spin\"></i>\\n        </span>\\n    </button>\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <span class=\"alert error-main\">Form submission has failed, Please try again later!</span>\\n        </div>\\n    </div>\\n</form>\\n\\n<!--  -->\\n\\n<!-- form functions -->\\n\\n\\n<script>\\n    function checkService() {\\n        // Check if the current window is an iframe\\n        const isEmbedded = window.self !== window.top;\\n        if (isEmbedded) {\\n            // Get the referrer URL to know the main site embedding this iframe\\n            const refUrl = document.referrer;\\n            const referrerUrl = window.parent.location;\\n\\n            if (referrerUrl) {\\n\\n                // Parse URL parameters if available\\n                const urlParams = new URLSearchParams(new URL(referrerUrl).search);\\n                const path = referrerUrl?.pathname;\\n                let cleanPath = path.replace(/^\\\\/+/, \\'\\');\\n                if (cleanPath == \\'contact-us\\' || cleanPath == \"ar/contact-us\" || cleanPath == \"contact\") {\\n                    const service = urlParams.get(\\'services\\') || \"\";\\n                    return service\\n                }\\n                else {\\n                    return cleanPath\\n                }\\n\\n            }\\n            else {\\n                return \\'\\';\\n            }\\n        } else {\\n\\n            const path = window.location.pathname;\\n            console.log(path);\\n            const urlParams = new URLSearchParams(window.location.search);\\n            const service = urlParams.get(\\'services\\') || \"\";\\n            return service;\\n        }\\n    }\\n\\n\\n    function initializeScript() {\\n\\n\\n        const utmParams = getUTMParameters();\\n        console.log(utmParams);\\n        const form = document.getElementById(\\'form\\');\\n        const phoneInputField = document.querySelector(\"#phone\");\\n\\n        const countrtyInputField = document.querySelector(\"#country\");\\n        const countryTextbox = document.querySelector(\"#countryTextbox\");\\n        // Check if phoneInputField is available immediately\\n        if (phoneInputField) {\\n            // Listen for events of number field\\n\\n            const info = document.querySelector(\".alert-info\");\\n            const error = document.querySelector(\".alert-error\");\\n\\n            // List of our error messages\\n            const errorMap = [\"Invalid number\", \"Invalid country code\", \"Phone number is too short\", \"Phone number is too long\", \"Invalid number\"];\\n\\n            // Utility to get the user IP location\\n            function getIp(callback) {\\n                const cachedCountry = sessionStorage.getItem(\\'countryCode\\');\\n                if (cachedCountry) {\\n                    callback(cachedCountry); // Use the cached country code\\n                } else {\\n                    fetch(\\'https://ipapi.co/json\\', { mode: \\'no-cors\\' })\\n                        .then(() => {\\n                            callback(\\'ae\\');  // Use \\'ae\\' if response is opaque\\n                            sessionStorage.setItem(\\'countryCode\\', \\'ae\\');  // Cache the country code\\n                        })\\n                        .catch(() => {\\n                            callback(\\'ae\\'); // Default to \\'ae\\' on error\\n                        });\\n                }\\n            }\\n\\n            // Set the country to users dep: getIp()\\n\\n            const phoneInput = window.intlTelInput(phoneInputField, {\\n                initialCountry: \"auto\",\\n                nationalMode: true,\\n                geoIpLookup: getIp,\\n                utilsScript: \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js\",\\n            });\\n            // Get all country data\\n\\n            const countryData = window.intlTelInputGlobals.getCountryData();\\n\\n            // Create an array of <option> elements for each country\\n            const countryOptions = countryData.map(country => {\\n                const flagUrl = `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/flags/4x3/${country.iso2.toLowerCase()}.svg`;\\n                return `<option value=\"${country.iso2}\" data-country-code=\"+${country.dialCode}\">${country.name} <img src=\"${flagUrl}\" class=\"flag-icon\" alt=\"${country.name} Flag\"></option>`;\\n            });\\n\\n\\n\\n            const checkervice = checkService();\\n            const interestMapping = {\\n                \"private-office\": \"Private Offices\",\\n                \"serviced-offices\": \"Private Offices\",\\n                \"coworking\": \"Coworking Space\",\\n                \"virtual-office\": \"Virtual Offices\",\\n                \"enterprise-solution\": \"Enterprise Solutions\",\\n                \"meeting-rooms\": \"Meeting/Conference Rooms\",\\n                \"event-spaces\": \"Event Spaces\",\\n                \"business-setup\": \"Business Setup\",\\n                \"business-setup-dwtc\": \"Business Setup\"\\n            };\\n\\n            // Business Setup & Visa Application Service\\n            if (checkervice) {\\n                let interestSelect = document.getElementById(\\'interest\\');\\n\\n                if (interestMapping[checkervice]) {\\n                    const targetText = interestMapping[checkervice];\\n                    console.log(targetText)\\n                    // Loop through options to find a match by text\\n                    Array.from(interestSelect.options).forEach(option => {\\n                        if (option.textContent.trim() === targetText) {\\n                            option.selected = true;\\n                        }\\n                    });\\n                }\\n            }\\n\\n            // Run function when user submits the form\\n            document.getElementById(\"form\").addEventListener(\"submit\", function (e) {\\n                e.preventDefault();\\n                var data = new FormData(e.target);\\n                let interestedService = \"\";\\n                const serviceMapping = {\\n                    \"Business Setup\": \"Business Setup\",\\n                    \"Business Setup & Visa Application Service\": \"Business Setup & Visa Application Service\"\\n                }\\n                var interestSelect = document.getElementById(\\'interest\\');\\n                var selectedText = interestSelect.options[interestSelect.selectedIndex].text;\\n                if (serviceMapping[selectedText]) {\\n                    interestedService = serviceMapping[selectedText]; // Set the selected value\\n                }\\n\\n                const submitButton = document.getElementById(\"submitBtnForm\");\\n                const loaderIcon = document.getElementById(\"loaderIcon\");\\n                const buttonText = document.querySelector(\".button-text\");\\n\\n                // Show the loader icon and disable the button\\n                buttonText.style.display = \"none\";\\n                loaderIcon.style.display = \"inline-block\";\\n                submitButton.disabled = true;\\n\\n                // Get phone value\\n                const phoneNumber = phoneInput.getNumber();\\n                const selectedCountryData = phoneInput.getSelectedCountryData();\\n\\n                info.style.display = \"none\";\\n                error.style.display = \"none\";\\n\\n                // Locate and get the form data\\n\\n\\n                const MainError = document.querySelector(\".error-main\");\\n\\n                // Prepare form entries for Web-to-Lead\\n                var formEntries = new URLSearchParams();\\n\\n                var terms = data.get(\"terms\");\\n                var offer = data.get(\"offer\");\\n                if (!terms) {\\n                    terms = \"\"\\n                }\\n\\n                if (!offer) {\\n                    offer = \"\"\\n                }\\n\\n                var formEntriesBot = new URLSearchParams();\\n                var lastname = data.get(\"last_name_back\");\\n\\n                if (lastname) {\\n                    console.log(lastname);\\n\\n                    const formEntriesBot = new FormData();\\n                    formEntriesBot.append(\"first_name\", data.get(\"name\"));\\n                    formEntriesBot.append(\"email\", data.get(\"email\"));\\n                    formEntriesBot.append(\"phone\", phoneNumber);\\n                    formEntriesBot.append(\"offer\", offer);\\n                    formEntriesBot.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                    formEntriesBot.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                    formEntriesBot.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                    formEntriesBot.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                    formEntriesBot.append(\"interest\", data.get(\"interest\"));\\n                    formEntriesBot.append(\"message\", data.get(\"message\"));\\n                    formEntriesBot.append(\"url\", parent.window.location.href);\\n                    // console.log([...formEntriesBot]); // log values\\n\\n                    fetch(\"https://hooks.zapier.com/hooks/catch/4438683/uhbi63t/\", {\\n                        method: \"POST\",\\n                        body: formEntriesBot\\n                    })\\n                        .then(response => {\\n                            if (!response.ok) {\\n                                throw new Error(\"Network response was not ok\");\\n                            }\\n                         MainError.style.display = \"flex\"\\n                        })\\n                        .then(result => {\\n                            console.log(\"Zapier hook success:\", result);\\n                        })\\n                        .catch(error => {\\n                            console.error(\"Zapier hook error:\", error);\\n                        })\\n                        .finally(() => {\\n                       \\n                                buttonText.style.display = \"block\";\\n                                loaderIcon.style.display = \"none\";\\n                                buttonText.textContent = \"Thank You\";\\n                                parent.window.location.href = \"/booking-thank-you\";\\n               \\n                        });\\n\\n                    return;\\n                }\\n\\n\\n\\n                /////\\n\\n\\n\\n                console.log(\\'no name\\')\\n                // /////\\n                formEntries.append(\"oid\", \"00D90000000cwl5\");  // Replace with your Salesforce OID\\n                formEntries.append(\"first_name\", data.get(\"name\"));\\n                formEntries.append(\"email\", data.get(\"email\"));\\n                formEntries.append(\"phone\", phoneNumber);\\n                formEntries.append(\"terms\", terms);\\n                formEntries.append(\"offer\", offer);\\n                formEntries.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                formEntries.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                formEntries.append(\"00N90000003gjYi\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"00N6F00000EDfGh\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"00N6F00000EDfGm\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                // formEntries.append(\"retURL\", \"https://executivecentre.ae/\"); // Redirect after submission\\n\\n                // Additional fields can be added here as needed (like Interest, etc.)\\n                formEntries.append(\"00N90000003ggrg\", data.get(\"interest\"));  // Replace with your custom field API name\\n                formEntries.append(\\'00N6F00000XRBa0\\', data.get(\"interest\"))\\n                formEntries.append(\"00N90000003hH7z\", data.get(\"message\"));\\n                formEntries.append(\"Interested_Services__c\", interestedService || \"\");\\n                formEntries.append(\"00N90000003gh5e\", \\'United Arab Emirates\\');\\n                formEntries.append(\"00N90000003gh5a\", \\'Dubai\\');\\n                formEntries.append(\"debug\", \"1\");\\n                formEntries.append(\"debugEmail\", \"tapiwa@arenacapital.com\");\\n                if (phoneInput.isValidNumber()) {\\n                    info.style.display = \"none\";\\n\\n                    // Send form data to Salesforce Web-to-Lead\\n\\n                    const salesforceRequest = fetch(\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\", {\\n                        method: \"POST\",\\n                        headers: {\\n                            \"Content-Type\": \"application/x-www-form-urlencoded\",\\n                        },\\n                        body: formEntries.toString()\\n                    });\\n\\n                    // Zapier request (using JSON)\\n\\n                    const zapierRequest = fetch(\"https://hooks.zapier.com/hooks/catch/4438683/3r1ku2v/\", {\\n                        method: \"POST\",\\n                        // headers: {\\n                        //     \"Content-Type\": \"application/json\",\\n                        // },\\n                        body: formEntries\\n                    });\\n\\n                    Promise.all([salesforceRequest, zapierRequest])\\n                        .then(responses => {\\n                            const salesforceResponse = responses[0];\\n                            const zapierResponse = responses[1];\\n\\n                            if (salesforceResponse.ok || zapierResponse.status) {\\n                                // Redirect to thank you page after both submissions succeed\\n                                // console.log(salesforceResponse)\\n                                // console.log(zapierResponse)\\n                                parent.window.location.href = \"/thank-you\";\\n                            } else {\\n                                MainError.style.display = \"flex\"\\n                            }\\n                        })\\n                        .catch(function (error) {\\n                            console.log(error)\\n                            parent.window.location.href = \"/thank-you\";\\n                            console.error(\"An error occurred during form submission:\", error);\\n                        })\\n                        .finally(function () {\\n                            // Hide the loader icon and re-enable the button\\n                            buttonText.style.display = \"inline\";\\n                            loaderIcon.style.display = \"none\";\\n                            submitButton.disabled = false;\\n                        });\\n\\n                    // \\n                } else if (!phoneInputField.value.trim()) {\\n                    error.style.display = \"\";\\n                    const errMsg = \"Phone number is required\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                } else {\\n                    const errorCode = phoneInput.getValidationError();\\n                    error.style.display = \"\";\\n                    const errMsg = errorMap[errorCode] || \"Invalid number\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                }\\n            });\\n            // \\n        } else {\\n            // If phoneInputField is not available immediately, check again after 3 seconds\\n            setTimeout(initializeScript, 3000);\\n        }\\n    }\\n\\n\\n    function reloadOnPageChange() {\\n        function addPushStateListener(listener) {\\n            if (!Proxy) return;\\n            window.history.pushState = new Proxy(window.history.pushState, {\\n                apply: (target, thisArg, argArray) => {\\n                    target.apply(thisArg, argArray);\\n                    listener();\\n                },\\n            });\\n        }\\n\\n        addPushStateListener(() => {\\n            initializeScript();\\n        });\\n    }\\n\\n    function getUTMParameters() {\\n        const urlParamsForm = new URLSearchParams(window.location.search);\\n\\n        // Use URL parameters first, fallback to sessionStorage if not available\\n        const utmLeadSource = urlParamsForm.get(\\'utm_lead_source\\') || sessionStorage.getItem(\\'utm_lead_source\\');\\n        const utmSourceLvl1 = urlParamsForm.get(\\'utm_source_lvl_1\\') || sessionStorage.getItem(\\'utm_source_lvl_1\\');\\n        const utmSourceLvl2 = urlParamsForm.get(\\'utm_source_lvl_2\\') || sessionStorage.getItem(\\'utm_source_lvl_2\\');\\n        const utmSourceLvl3 = urlParamsForm.get(\\'utm_source_lvl_3\\') || sessionStorage.getItem(\\'utm_source_lvl_3\\');\\n        const gadSource = urlParamsForm.get(\\'gad_source\\') || sessionStorage.getItem(\\'gad_source\\');\\n        const gclid = urlParamsForm.get(\\'gclid\\') || sessionStorage.getItem(\\'gclid\\');\\n\\n        return {\\n            utmLeadSource,\\n            utmSourceLvl1,\\n            utmSourceLvl2,\\n            utmSourceLvl3,\\n            gadSource,\\n            gclid\\n        };\\n    }\\n\\n</script>\\n\\n\\n<script>\\n    // Function to check and add the class\\n\\n    window.addEventListener(\\'load\\', function () {\\n        // Call the function initially\\n\\n\\n        function checkAndInitialize() {\\n            if (typeof initializeScript === \"function\") {\\n                initializeScript();\\n                console.log(\\'here\\')\\n            } else {\\n                // If initializeScript doesn\\'t exist, wait for 2 seconds and check again\\n                setTimeout(checkAndInitialize, 1000);\\n            }\\n        }\\n        let previousRoute = window.location.pathname;\\n\\n        setInterval(() => {\\n            const currentRoute = window.location.pathname;\\n            if (currentRoute !== previousRoute) {\\n                // Route has changed\\n                previousRoute = currentRoute;\\n                if (currentRoute === \"/\") {\\n                    console.log(\\'go t home\\')\\n                    checkAndInitialize();\\n                }\\n            }\\n        }, 1000);\\n        initializeScript();\\n\\n    })\\n\\n\\n\\n</script>',id:\"FjuU5pblh\",layoutId:\"FjuU5pblh\",radius:\"0px\",style:{width:\"100%\"},type:\"html\",url:\"\",width:\"100%\",zoom:1,...addPropertyOverrides({MhE5PqvWD:{html:'<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css\" />\\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js\"></script>\\n\\n<style>\\n    .input-box {\\n        flex: 1 1 0%;\\n        border: none;\\n        outline: none;\\n        background-color: transparent;\\n        padding: 16px 0;\\n        color: #000;\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        width: 100%;\\n        border-bottom: 1px solid rgb(0, 46, 93);\\n        border-radius: 0;\\n        accent-color: rgb(0, 117, 255);\\n\\n    }\\n\\n    .textbox {\\n        position: relative;\\n        display: flex;\\n        flex-direction: column;\\n        color: #000;\\n        accent-color: rgb(0, 117, 255);\\n        border-radius: 0px;\\n        /* overflow: auto; */\\n        /* user-select: none; */\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        margin-bottom: 25px;\\n        gap: 10px;\\n    }\\n\\n    label {\\n        /* padding-left: 16px; */\\n        color: rgb(0, 46, 93);\\n    }\\n\\n    form {\\n        place-content: center flex-start;\\n        font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));\\n        place-self: start;\\n        border-radius: 10px;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: column;\\n        gap: 10px;\\n        height: 100%;\\n        /* overflow: visible; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: flex;\\n        flex-direction: row;\\n        align-items: center;\\n        justify-content: center;\\n        color: rgb(0, 0, 0);\\n        border: 1px solid rgb(0, 46, 93);\\n        outline: none;\\n        cursor: pointer;\\n        user-select: none;\\n        border-radius: 0px;\\n        padding: 18px;\\n        font-size: 16px;\\n        font-style: normal;\\n\\n        letter-spacing: 0em;\\n        line-height: 1em;\\n        width: 100%;\\n        background: transparent;\\n    }\\n\\n    .submit-button:hover {\\n        background: rgb(0, 46, 93);\\n        color: #fff;\\n    }\\n\\n    .row {\\n        display: flex;\\n        width: 100%;\\n        place-content: center;\\n        align-items: center;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: row;\\n        gap: 25px;\\n        height: min-content;\\n        /* overflow: auto; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .col-md-6 {\\n        width: 50%;\\n    }\\n\\n    .col-md-12 {\\n        width: 100%;\\n    }\\n\\n    .alert-error,\\n    .error-main {\\n        display: flex;\\n        align-items: center;\\n        color: rgb(255, 0, 0);\\n    }\\n\\n    .error-main {\\n        display: none;\\n        justify-content: center;\\n        text-align: center;\\n    }\\n\\n\\n\\n    @media (max-width: 500px) {\\n        .col-md-6 {\\n            width: 100%;\\n        }\\n\\n        .row {\\n            flex-direction: column;\\n        }\\n\\n        .textbox {\\n            margin-bottom: 0;\\n        }\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: inline-flex;\\n        align-items: center;\\n    }\\n\\n\\n    .loader {\\n        border: 4px solid #000;\\n        /* Light grey */\\n        border-top: 4px solid #000;\\n        /* Blue */\\n        border-radius: 50%;\\n        width: 15px;\\n        height: 15px;\\n        animation: spin 2s linear infinite;\\n        margin-left: 10px;\\n    }\\n\\n    @keyframes spin {\\n        0% {\\n            transform: rotate(0deg);\\n        }\\n\\n        100% {\\n            transform: rotate(360deg);\\n        }\\n    }\\n\\n    /* Basic styling for the select element */\\n    .custom-select {\\n        position: relative;\\n        display: inline-block;\\n        width: 200px;\\n        /* Adjust width as needed */\\n    }\\n\\n    /* Hide the default arrow */\\n    select {\\n        /* appearance: none; */\\n        /* -webkit-appearance: none; */\\n        /* -moz-appearance: none; */\\n        width: 100%;\\n        /* padding: 10px 30px 10px 10px; */\\n        /* Adjust padding to make room for the custom arrow */\\n        border: 1px solid #ccc;\\n        border-radius: 4px;\\n        /* background: url(\\'data:image/svg+xml;utf8,<svg fill=\"none\" height=\"24\" stroke=\"beige\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><polyline points=\"6 9 12 15 18 9\"/></svg>\\') no-repeat right 10px center; */\\n        background-size: 16px 16px;\\n        /* Adjust size as needed */\\n    }\\n\\n    /* Optional: additional styling for the custom select element */\\n    select:focus {\\n        /* outline: none; */\\n    }\\n\\n    textarea {\\n        width: 100%;\\n        /* Adjust the width as needed */\\n        /* height: calc(1.5em * 5); */\\n        /* 1.5em is the line height, 5 is the number of lines */\\n        /* overflow-y: auto; */\\n        /* Add a vertical scrollbar if content exceeds the height */\\n        /* resize: none; */\\n        /* Prevent resizing */\\n    }\\n\\n    .input-file {\\n        text-align: center;\\n        padding-left: 10px;\\n        color: #6f6f6f;\\n        display: flex;\\n        align-items: center;\\n    }\\n\\n    option {\\n        color: #000;\\n        padding-left: 6px;\\n        margin-left: 6px;\\n    }\\n\\n    .base-input,\\n    .first {\\n        color: #6f6f6f;\\n    }\\n\\n    #fileRow .textbox {\\n        padding-bottom: 18px;\\n        padding-top: 14px;\\n        padding-left: 16px;\\n\\n    }\\n\\n    .iti__selected-flag {\\n        padding: 0 6px 0 0;\\n    }\\n\\n    .iti__country-list {\\n        width: max-content;\\n    }\\n\\n    .iti__country-name {\\n        color: #000;\\n    }\\n\\n\\n    /*  */\\n\\n    .item-label a {\\n        color: rgb(0, 46, 93);\\n        ;\\n    }\\n\\n    /*  */\\n    /* Hide the default checkbox */\\n    input[type=\"checkbox\"] {\\n        display: none;\\n    }\\n\\n    /* Style the custom checkbox */\\n    .checkbox-container label {\\n        display: flex;\\n        align-items: center;\\n        cursor: pointer;\\n    }\\n\\n    .custom-checkbox {\\n        width: 11px;\\n        height: 11px;\\n        background-color: #f0f0f0;\\n        border: 0;\\n        border-radius: 4px;\\n        margin-right: 6px;\\n        position: relative;\\n        transition: background-color 0.2s;\\n    }\\n\\n    /* Show checkmark when checkbox is checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox {\\n        background-color: rgb(0, 46, 93);\\n        /* Background color for checked state */\\n        border-color: rgb(0, 46, 93);\\n    }\\n\\n\\n    .custom-checkbox::after {\\n        content: \\'\\';\\n        position: absolute;\\n        top: 0px;\\n        left: 4px;\\n        width: 3px;\\n        height: 7px;\\n        border: solid white;\\n        border-width: 0 2px 2px 0;\\n        transform: rotate(45deg);\\n        opacity: 0;\\n        transition: opacity 0.2s;\\n    }\\n\\n    /* Display checkmark when checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox::after {\\n        opacity: 1;\\n    }\\n\\n\\n\\n    .last-name {\\n        position: absolute;\\n        left: -9999px;\\n        opacity: 0;\\n        pointer-events: none;\\n\\n    }\\n\\n    @media only screen and (max-width: 900px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n    @media only screen and (max-width: 410px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n</style>\\n\\n<form id=\"form\" class=\"form-tag\" method=\"POST\" accept-charset=\"UTF-8\" id=\"form\" enctype=\"multipart/form-data\">\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"name\">Name</label>\\n            <input class=\"input-box\" type=\"text\" id=\"name\" name=\"name\" placeholder=\"Joe Smith\" required />\\n        </div>\\n        <div class=\"col-md-6 textbox last-name\">\\n            <label for=\"email\">Last Name</label>\\n            <input class=\"input-box\" type=\"text\" id=\"last_name_back\" name=\"last_name_back\" placeholder=\"Smith\" />\\n        </div>\\n\\n    </div>\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"email\">Email</label>\\n            <input class=\"input-box\" type=\"email\" id=\"email\" name=\"email\" placeholder=\"example@gmail.com\" required />\\n        </div>\\n\\n\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"phone\">Phone</label>\\n            <input class=\"input-box\" type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"501234567\" />\\n            <div class=\"alert alert-info\" style=\"display: none\"></div>\\n            <div class=\"alert alert-error\" style=\"display: none\"></div>\\n        </div>\\n\\n    </div>\\n\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">Service</label>\\n            <select class=\"base-input input-box\" name=\"interest\" id=\"interest\" required>\\n                <option class=\"first\" value=\"\" disabled >Select...</option>\\n                <option value=\"Serviced Office\" selected>Private Offices</option>\\n                <option value=\"Coworking\">Coworking Spaces</option>\\n                <option value=\"Virtual Office\">Virtual Offices</option>\\n                <option value=\"Meeting Rooms\">Meeting/Conference Rooms</option>\\n                <option value=\"Enterprise Solution\">Enterprise Solutions</option>\\n                <option value=\"Event Spaces\">Event Spaces</option>\\n                <option value=\"Coworking\">Business Setup</option>\\n                <option value=\"Coworking\">Business Setup & Visa Application Service</option>\\n            </select>\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">Location*</label>\\n            <select class=\"base-input input-box location\" name=\"location\" id=\"location\" required>\\n                <option class=\"first\" value=\"\" selected disabled>Select Location*</option>\\n                <option value=\"One Central Dubai\">One Central</option>\\n                <option value=\"One Za\\'abeel\">One Za\\'abeel</option>\\n                <option value=\"Abu Dhabi Global Market Square\">Al Sila Tower</option>\\n                <option value=\"Al Maryah Tower\">Al Maryah Tower</option>\\n            </select>\\n        </div>\\n    </div>\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"message\">Message</label>\\n            <textarea class=\"input-box\" id=\"message\" name=\"message\" placeholder=\"Leave a message\"></textarea>\\n        </div>\\n    </div>\\n\\n    <!--  -->\\n    <div class=\"checkbox-container\">\\n        <label><input type=\"checkbox\" name=\"terms\"\\n                value=\"I agree to TEC\\'s Terms of Use and have read and understood the privacy policy.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox tec-agree-span\"></span>\\n            <span class=\"item-label tec-agree\">I agree to TEC\\'s <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/terms-conditions/\">Terms of\\n                    Use</a> and\\n                have read and understood the <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/privacy-policy/\">Privacy\\n                    Policy</a>.</span>\\n        </label>\\n    </div>\\n    <div class=\"checkbox-container\">\\n        <label>\\n            <input type=\"checkbox\" name=\"offer\" value=\"Please email me special offers, exclusive invites and more.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span class=\"item-label\">Please email me special offers, exclusive invites, and more.</span>\\n        </label>\\n    </div>\\n    <div></div>\\n    <div></div>\\n    <div></div>\\n\\n    <!-- <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">Send</button> -->\\n    <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">\\n        <span class=\"button-text\">SUBMIT</span>\\n        <span class=\"loader\" id=\"loaderIcon\" style=\"display: none;\">\\n            <!-- You can use an SVG or any loader icon here -->\\n            <i class=\"fa fa-spinner fa-spin\"></i>\\n        </span>\\n    </button>\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <span class=\"alert error-main\">Form submission has failed, Please try again later!</span>\\n        </div>\\n    </div>\\n</form>\\n\\n<!--  -->\\n\\n<!-- form functions -->\\n\\n\\n<script>\\n    function checkService() {\\n        // Check if the current window is an iframe\\n        const isEmbedded = window.self !== window.top;\\n        if (isEmbedded) {\\n            // Get the referrer URL to know the main site embedding this iframe\\n            const refUrl = document.referrer;\\n            const referrerUrl = window.parent.location;\\n\\n            if (referrerUrl) {\\n\\n                // Parse URL parameters if available\\n                const urlParams = new URLSearchParams(new URL(referrerUrl).search);\\n                const path = referrerUrl?.pathname;\\n                let cleanPath = path.replace(/^\\\\/+/, \\'\\');\\n                if (cleanPath == \\'contact-us\\' || cleanPath == \"ar/contact-us\" || cleanPath == \"contact\") {\\n                    const service = urlParams.get(\\'services\\') || \"\";\\n                    return service\\n                }\\n                else {\\n                    return cleanPath\\n                }\\n\\n            }\\n            else {\\n                return \\'\\';\\n            }\\n        } else {\\n\\n            const path = window.location.pathname;\\n            console.log(path);\\n            const urlParams = new URLSearchParams(window.location.search);\\n            const service = urlParams.get(\\'services\\') || \"\";\\n            return service;\\n        }\\n    }\\n\\n\\n    function initializeScript() {\\n\\n\\n        const utmParams = getUTMParameters();\\n        console.log(utmParams);\\n        const form = document.getElementById(\\'form\\');\\n        const phoneInputField = document.querySelector(\"#phone\");\\n\\n\\n        const countrtyInputField = document.querySelector(\"#country\");\\n        const countryTextbox = document.querySelector(\"#countryTextbox\");\\n        // Check if phoneInputField is available immediately\\n        if (phoneInputField) {\\n            // Listen for events of number field\\n\\n            const info = document.querySelector(\".alert-info\");\\n            const error = document.querySelector(\".alert-error\");\\n\\n            // List of our error messages\\n            const errorMap = [\"Invalid number\", \"Invalid country code\", \"Phone number is too short\", \"Phone number is too long\", \"Invalid number\"];\\n\\n            // Utility to get the user IP location\\n            function getIp(callback) {\\n                const cachedCountry = sessionStorage.getItem(\\'countryCode\\');\\n                if (cachedCountry) {\\n                    callback(cachedCountry); // Use the cached country code\\n                } else {\\n                    fetch(\\'https://ipapi.co/json\\', { mode: \\'no-cors\\' })\\n                        .then(() => {\\n                            callback(\\'ae\\');  // Use \\'ae\\' if response is opaque\\n                            sessionStorage.setItem(\\'countryCode\\', \\'ae\\');  // Cache the country code\\n                        })\\n                        .catch(() => {\\n                            callback(\\'ae\\'); // Default to \\'ae\\' on error\\n                        });\\n                }\\n            }\\n\\n            // Set the country to users dep: getIp()\\n\\n            const phoneInput = window.intlTelInput(phoneInputField, {\\n                initialCountry: \"auto\",\\n                nationalMode: true,\\n                geoIpLookup: getIp,\\n                utilsScript: \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js\",\\n            });\\n            // Get all country data\\n\\n            const countryData = window.intlTelInputGlobals.getCountryData();\\n\\n            // Create an array of <option> elements for each country\\n            const countryOptions = countryData.map(country => {\\n                const flagUrl = `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/flags/4x3/${country.iso2.toLowerCase()}.svg`;\\n                return `<option value=\"${country.iso2}\" data-country-code=\"+${country.dialCode}\">${country.name} <img src=\"${flagUrl}\" class=\"flag-icon\" alt=\"${country.name} Flag\"></option>`;\\n            });\\n\\n\\n\\n            const checkervice = checkService();\\n            const interestMapping = {\\n                \"private-office\": \"Private Offices\",\\n                \"serviced-offices\": \"Private Offices\",\\n                \"coworking\": \"Coworking Space\",\\n                \"virtual-office\": \"Virtual Offices\",\\n                \"enterprise-solution\": \"Enterprise Solutions\",\\n                \"meeting-rooms\": \"Meeting/Conference Rooms\",\\n                \"event-spaces\": \"Event Spaces\",\\n                \"business-setup\": \"Business Setup\",\\n                \"business-setup-dwtc\": \"Business Setup\"\\n            };\\n\\n            // Business Setup & Visa Application Service\\n            if (checkervice) {\\n                let interestSelect = document.getElementById(\\'interest\\');\\n\\n                if (interestMapping[checkervice]) {\\n                    const targetText = interestMapping[checkervice];\\n                    console.log(targetText)\\n                    // Loop through options to find a match by text\\n                    Array.from(interestSelect.options).forEach(option => {\\n                        if (option.textContent.trim() === targetText) {\\n                            option.selected = true;\\n                        }\\n                    });\\n                }\\n            }\\n\\n            // Run function when user submits the form\\n            document.getElementById(\"form\").addEventListener(\"submit\", function (e) {\\n                e.preventDefault();\\n                var data = new FormData(e.target);\\n                let interestedService = \"\";\\n                const serviceMapping = {\\n                    \"Business Setup\": \"Business Setup\",\\n                    \"Business Setup & Visa Application Service\": \"Business Setup & Visa Application Service\"\\n                }\\n                var interestSelect = document.getElementById(\\'interest\\');\\n                var selectedText = interestSelect.options[interestSelect.selectedIndex].text;\\n                if (serviceMapping[selectedText]) {\\n                    interestedService = serviceMapping[selectedText]; // Set the selected value\\n                }\\n\\n                const submitButton = document.getElementById(\"submitBtnForm\");\\n                const loaderIcon = document.getElementById(\"loaderIcon\");\\n                const buttonText = document.querySelector(\".button-text\");\\n\\n                // Show the loader icon and disable the button\\n                buttonText.style.display = \"none\";\\n                loaderIcon.style.display = \"inline-block\";\\n                submitButton.disabled = true;\\n\\n                // Get phone value\\n                const phoneNumber = phoneInput.getNumber();\\n                const selectedCountryData = phoneInput.getSelectedCountryData();\\n\\n                info.style.display = \"none\";\\n                error.style.display = \"none\";\\n\\n                // Locate and get the form data\\n\\n\\n                const MainError = document.querySelector(\".error-main\");\\n\\n                // Prepare form entries for Web-to-Lead\\n                var formEntries = new URLSearchParams();\\n                var terms = data.get(\"terms\");\\n                var offer = data.get(\"offer\");\\n                if (!terms) {\\n                    terms = \"\"\\n                }\\n\\n                if (!offer) {\\n                    offer = \"\"\\n                }\\n\\n                var lastname = data.get(\"last_name_back\");\\n\\n                if (lastname) {\\n                    console.log(lastname);\\n\\n                    const formEntriesBot = new FormData();\\n                    formEntriesBot.append(\"first_name\", data.get(\"name\"));\\n                    formEntriesBot.append(\"email\", data.get(\"email\"));\\n                    formEntriesBot.append(\"phone\", phoneNumber);\\n                    formEntriesBot.append(\"offer\", offer);\\n                    formEntriesBot.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                    formEntriesBot.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                    formEntriesBot.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                    formEntriesBot.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                    formEntriesBot.append(\"interest\", data.get(\"interest\") ) ;\\n                    formEntriesBot.append(\"message\", data.get(\"message\"));\\n                    formEntriesBot.append(\"url\", parent.window.location.href);\\n                    formEntriesBot.append(\"location\", data.get(\"location\"))\\n                    // console.log([...formEntriesBot]); // log values\\n\\n                    fetch(\"https://hooks.zapier.com/hooks/catch/4438683/uhbi63t/\", {\\n                        method: \"POST\",\\n                        body: formEntriesBot\\n                    })\\n                        .then(response => {\\n                            if (!response.ok) {\\n                                throw new Error(\"Network response was not ok\");\\n                            }\\n                         MainError.style.display = \"flex\"\\n                        })\\n                        .then(result => {\\n                            console.log(\"Zapier hook success:\", result);\\n                        })\\n                        .catch(error => {\\n                            console.error(\"Zapier hook error:\", error);\\n                        })\\n                        .finally(() => {\\n                                buttonText.style.display = \"block\";\\n                                loaderIcon.style.display = \"none\";\\n                                buttonText.textContent = \"Thank You\";\\n                                // parent.window.location.href = \"/booking-thank-you\";\\n               \\n                        });\\n\\n                    return;\\n                }\\n\\n\\n                console.log(\\'no name\\')\\n\\n                // /////\\n                formEntries.append(\"oid\", \"00D90000000cwl5\");  // Replace with your Salesforce OID\\n                formEntries.append(\"first_name\", data.get(\"name\"));\\n                formEntries.append(\"email\", data.get(\"email\"));\\n                formEntries.append(\"phone\", phoneNumber);\\n                formEntries.append(\"terms\", terms);\\n                formEntries.append(\"offer\", offer);\\n                formEntries.append(\"location\", data.get(\"location\"));\\n                formEntries.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                formEntries.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                formEntries.append(\"00N90000003gjYi\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"00N6F00000EDfGh\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"00N6F00000EDfGm\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                // formEntries.append(\"retURL\", \"https://executivecentre.ae/\"); // Redirect after submission\\n                // Additional fields can be added here as needed (like Interest, etc.)\\n                formEntries.append(\"00N90000003ggrg\", data.get(\"interest\"));  // Replace with your custom field API name\\n                formEntries.append(\\'00N6F00000XRBa0\\', data.get(\"interest\"))\\n                formEntries.append(\"00N90000003hH7z\", data.get(\"message\"));\\n                formEntries.append(\"Interested_Services__c\", interestedService || \"\");\\n                formEntries.append(\"00N90000003gh5e\", \\'United Arab Emirates\\');\\n                formEntries.append(\"00N90000003gh5a\", \\'Dubai\\');\\n                formEntries.append(\"debug\", \"1\");\\n                formEntries.append(\"debugEmail\", \"tapiwa@arenacapital.com\");\\n                if (phoneInput.isValidNumber()) {\\n                    info.style.display = \"none\";\\n\\n                    // Send form data to Salesforce Web-to-Lead\\n\\n                    const salesforceRequest = fetch(\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\", {\\n                        method: \"POST\",\\n                        headers: {\\n                            \"Content-Type\": \"application/x-www-form-urlencoded\",\\n                        },\\n                        body: formEntries.toString()\\n                    });\\n\\n                    // Zapier request (using JSON)\\n\\n                    const zapierRequest = fetch(\"https://hooks.zapier.com/hooks/catch/4438683/u380eqw/\", {\\n                        method: \"POST\",\\n                        // headers: {\\n                        //     \"Content-Type\": \"application/json\",\\n                        // },\\n                        body: formEntries\\n                    });\\n\\n                    Promise.all([salesforceRequest, zapierRequest])\\n                        .then(responses => {\\n                            const salesforceResponse = responses[0];\\n                            const zapierResponse = responses[1];\\n\\n                            if (salesforceResponse.ok || zapierResponse.status) {\\n                                // Redirect to thank you page after both submissions succeed\\n                                // console.log(salesforceResponse)\\n                                // console.log(zapierResponse)\\n                                parent.window.location.href = \"/serviced-offices-contact-us-thank-you\";\\n                            } else {\\n                                MainError.style.display = \"flex\"\\n                            }\\n                        })\\n                        .catch(function (error) {\\n                            console.log(error)\\n                            parent.window.location.href = \"/serviced-offices-contact-us-thank-you\";\\n                            console.error(\"An error occurred during form submission:\", error);\\n                        })\\n                        .finally(function () {\\n                            // Hide the loader icon and re-enable the button\\n                            buttonText.style.display = \"inline\";\\n                            loaderIcon.style.display = \"none\";\\n                            submitButton.disabled = false;\\n                        });\\n                } else if (!phoneInputField.value.trim()) {\\n                    error.style.display = \"\";\\n                    const errMsg = \"Phone number is required\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                } else {\\n                    const errorCode = phoneInput.getValidationError();\\n                    error.style.display = \"\";\\n                    const errMsg = errorMap[errorCode] || \"Invalid number\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                }\\n            });\\n            // \\n        } else {\\n            // If phoneInputField is not available immediately, check again after 3 seconds\\n            setTimeout(initializeScript, 3000);\\n        }\\n    }\\n\\n\\n    function reloadOnPageChange() {\\n        function addPushStateListener(listener) {\\n            if (!Proxy) return;\\n            window.history.pushState = new Proxy(window.history.pushState, {\\n                apply: (target, thisArg, argArray) => {\\n                    target.apply(thisArg, argArray);\\n                    listener();\\n                },\\n            });\\n        }\\n\\n        addPushStateListener(() => {\\n            initializeScript();\\n        });\\n    }\\n\\n    function getUTMParameters() {\\n        const urlParamsForm = new URLSearchParams(window.location.search);\\n\\n        // Use URL parameters first, fallback to sessionStorage if not available\\n        const utmLeadSource = urlParamsForm.get(\\'utm_lead_source\\') || sessionStorage.getItem(\\'utm_lead_source\\');\\n        const utmSourceLvl1 = urlParamsForm.get(\\'utm_source_lvl_1\\') || sessionStorage.getItem(\\'utm_source_lvl_1\\');\\n        const utmSourceLvl2 = urlParamsForm.get(\\'utm_source_lvl_2\\') || sessionStorage.getItem(\\'utm_source_lvl_2\\');\\n        const utmSourceLvl3 = urlParamsForm.get(\\'utm_source_lvl_3\\') || sessionStorage.getItem(\\'utm_source_lvl_3\\');\\n        const gadSource = urlParamsForm.get(\\'gad_source\\') || sessionStorage.getItem(\\'gad_source\\');\\n        const gclid = urlParamsForm.get(\\'gclid\\') || sessionStorage.getItem(\\'gclid\\');\\n\\n        return {\\n            utmLeadSource,\\n            utmSourceLvl1,\\n            utmSourceLvl2,\\n            utmSourceLvl3,\\n            gadSource,\\n            gclid\\n        };\\n    }\\n\\n</script>\\n\\n\\n<script>\\n    // Function to check and add the class\\n\\n    window.addEventListener(\\'load\\', function () {\\n        // Call the function initially\\n\\n\\n        function checkAndInitialize() {\\n            if (typeof initializeScript === \"function\") {\\n                initializeScript();\\n                console.log(\\'here\\')\\n            } else {\\n                // If initializeScript doesn\\'t exist, wait for 2 seconds and check again\\n                setTimeout(checkAndInitialize, 1000);\\n            }\\n        }\\n        let previousRoute = window.location.pathname;\\n\\n        setInterval(() => {\\n            const currentRoute = window.location.pathname;\\n            if (currentRoute !== previousRoute) {\\n                // Route has changed\\n                previousRoute = currentRoute;\\n                if (currentRoute === \"/\") {\\n                    console.log(\\'go t home\\')\\n                    checkAndInitialize();\\n                }\\n            }\\n        }, 1000);\\n        initializeScript();\\n\\n    })\\n\\n\\n\\n</script>\\n\\n\\n<!--  -->',style:{height:\"100%\",width:\"100%\"}},qpES8QavW:{html:'<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css\" />\\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js\"></script>\\n\\n<style>\\n    .input-box {\\n        flex: 1 1 0%;\\n        border: none;\\n        outline: none;\\n        background-color: transparent;\\n        padding: 16px 0;\\n        color: #000;\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        width: 100%;\\n        border-bottom: 1px solid rgb(0, 46, 93);\\n        border-radius: 0;\\n        accent-color: rgb(0, 117, 255);\\n\\n    }\\n\\n    .textbox {\\n        position: relative;\\n        display: flex;\\n        flex-direction: column;\\n        color: #000;\\n        accent-color: rgb(0, 117, 255);\\n        border-radius: 0px;\\n        /* overflow: auto; */\\n        /* user-select: none; */\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        margin-bottom: 25px;\\n        gap: 10px;\\n    }\\n\\n    label {\\n        /* padding-left: 16px; */\\n        color: rgb(0, 46, 93);\\n    }\\n\\n    form {\\n        place-content: center flex-start;\\n        font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));\\n        place-self: start;\\n        border-radius: 10px;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: column;\\n        gap: 10px;\\n        height: 100%;\\n        /* overflow: visible; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: flex;\\n        flex-direction: row;\\n        align-items: center;\\n        justify-content: center;\\n        color: rgb(0, 0, 0);\\n        border: 1px solid rgb(0, 46, 93);\\n        outline: none;\\n        cursor: pointer;\\n        user-select: none;\\n        border-radius: 0px;\\n        padding: 18px;\\n        font-size: 16px;\\n        font-style: normal;\\n\\n        letter-spacing: 0em;\\n        line-height: 1em;\\n        width: 100%;\\n        background: transparent;\\n    }\\n\\n    .submit-button:hover {\\n        background: rgb(0, 46, 93);\\n        color: #fff;\\n    }\\n\\n    .row {\\n        display: flex;\\n        width: 100%;\\n        place-content: center;\\n        align-items: center;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: row;\\n        gap: 25px;\\n        height: min-content;\\n        /* overflow: auto; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .col-md-6 {\\n        width: 50%;\\n    }\\n\\n    .col-md-12 {\\n        width: 100%;\\n    }\\n\\n    .alert-error,\\n    .error-main {\\n        display: flex;\\n        align-items: center;\\n        color: rgb(255, 0, 0);\\n    }\\n\\n    .error-main {\\n        display: none;\\n        justify-content: center;\\n        text-align: center;\\n    }\\n\\n\\n\\n    @media (max-width: 500px) {\\n        .col-md-6 {\\n            width: 100%;\\n        }\\n\\n        .row {\\n            flex-direction: column;\\n        }\\n\\n        .textbox {\\n            margin-bottom: 0;\\n        }\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: inline-flex;\\n        align-items: center;\\n    }\\n\\n\\n    .loader {\\n        border: 4px solid #000;\\n        /* Light grey */\\n        border-top: 4px solid #000;\\n        /* Blue */\\n        border-radius: 50%;\\n        width: 15px;\\n        height: 15px;\\n        animation: spin 2s linear infinite;\\n        margin-left: 10px;\\n    }\\n\\n    @keyframes spin {\\n        0% {\\n            transform: rotate(0deg);\\n        }\\n\\n        100% {\\n            transform: rotate(360deg);\\n        }\\n    }\\n\\n    /* Basic styling for the select element */\\n    .custom-select {\\n        position: relative;\\n        display: inline-block;\\n        width: 200px;\\n        /* Adjust width as needed */\\n    }\\n\\n    /* Hide the default arrow */\\n    select {\\n        /* appearance: none; */\\n        /* -webkit-appearance: none; */\\n        /* -moz-appearance: none; */\\n        width: 100%;\\n        /* padding: 10px 30px 10px 10px; */\\n        /* Adjust padding to make room for the custom arrow */\\n        border: 1px solid #ccc;\\n        border-radius: 4px;\\n        /* background: url(\\'data:image/svg+xml;utf8,<svg fill=\"none\" height=\"24\" stroke=\"beige\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><polyline points=\"6 9 12 15 18 9\"/></svg>\\') no-repeat right 10px center; */\\n        background-size: 16px 16px;\\n        /* Adjust size as needed */\\n    }\\n\\n    /* Optional: additional styling for the custom select element */\\n    select:focus {\\n        /* outline: none; */\\n    }\\n\\n    textarea {\\n        width: 100%;\\n        /* Adjust the width as needed */\\n        /* height: calc(1.5em * 5); */\\n        /* 1.5em is the line height, 5 is the number of lines */\\n        /* overflow-y: auto; */\\n        /* Add a vertical scrollbar if content exceeds the height */\\n        /* resize: none; */\\n        /* Prevent resizing */\\n    }\\n\\n    .input-file {\\n        text-align: center;\\n        padding-left: 10px;\\n        color: #6f6f6f;\\n        display: flex;\\n        align-items: center;\\n    }\\n\\n    option {\\n        color: #000;\\n        padding-left: 6px;\\n        margin-left: 6px;\\n    }\\n\\n    .base-input,\\n    .first {\\n        color: #6f6f6f;\\n    }\\n\\n    #fileRow .textbox {\\n        padding-bottom: 18px;\\n        padding-top: 14px;\\n        padding-left: 16px;\\n\\n    }\\n\\n    .iti__selected-flag {\\n        padding: 0 6px 0 0;\\n    }\\n\\n    .iti__country-list {\\n        width: max-content;\\n    }\\n\\n    .iti__country-name {\\n        color: #000;\\n    }\\n\\n\\n    /*  */\\n\\n    .item-label a {\\n        color: rgb(0, 46, 93);\\n        ;\\n    }\\n\\n    /*  */\\n    /* Hide the default checkbox */\\n    input[type=\"checkbox\"] {\\n        display: none;\\n    }\\n\\n    /* Style the custom checkbox */\\n    .checkbox-container label {\\n        display: flex;\\n        align-items: center;\\n        cursor: pointer;\\n    }\\n\\n    .custom-checkbox {\\n        width: 11px;\\n        height: 11px;\\n        background-color: #f0f0f0;\\n        border: 0;\\n        border-radius: 4px;\\n        margin-right: 6px;\\n        position: relative;\\n        transition: background-color 0.2s;\\n    }\\n\\n    /* Show checkmark when checkbox is checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox {\\n        background-color: rgb(0, 46, 93);\\n        /* Background color for checked state */\\n        border-color: rgb(0, 46, 93);\\n    }\\n\\n\\n    .custom-checkbox::after {\\n        content: \\'\\';\\n        position: absolute;\\n        top: 0px;\\n        left: 4px;\\n        width: 3px;\\n        height: 7px;\\n        border: solid white;\\n        border-width: 0 2px 2px 0;\\n        transform: rotate(45deg);\\n        opacity: 0;\\n        transition: opacity 0.2s;\\n    }\\n\\n    /* Display checkmark when checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox::after {\\n        opacity: 1;\\n    }\\n\\n\\n\\n    .last-name {\\n        position: absolute;\\n        left: -9999px;\\n        opacity: 0;\\n        pointer-events: none;\\n\\n    }\\n\\n    @media only screen and (max-width: 900px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n    @media only screen and (max-width: 410px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n</style>\\n\\n<form id=\"form\" class=\"form-tag\" method=\"POST\" accept-charset=\"UTF-8\" id=\"form\" enctype=\"multipart/form-data\">\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"name\">Name</label>\\n            <input class=\"input-box\" type=\"text\" id=\"name\" name=\"name\" placeholder=\"Joe Smith\" required />\\n        </div>\\n        <div class=\"col-md-6 textbox last-name\">\\n            <label for=\"email\">Last Name</label>\\n            <input class=\"input-box\" type=\"text\" id=\"last_name_back\" name=\"last_name_back\" placeholder=\"Smith\" />\\n        </div>\\n\\n    </div>\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"email\">Email</label>\\n            <input class=\"input-box\" type=\"email\" id=\"email\" name=\"email\" placeholder=\"example@gmail.com\" required />\\n        </div>\\n\\n\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"phone\">Phone</label>\\n            <input class=\"input-box\" type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"501234567\" />\\n            <div class=\"alert alert-info\" style=\"display: none\"></div>\\n            <div class=\"alert alert-error\" style=\"display: none\"></div>\\n        </div>\\n\\n    </div>\\n\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">Service</label>\\n            <select class=\"base-input input-box\" name=\"interest\" id=\"interest\" required>\\n                <option class=\"first\" value=\"\" disabled >Select...</option>\\n                <option value=\"Serviced Office\" selected>Private Offices</option>\\n                <option value=\"Coworking\">Coworking Spaces</option>\\n                <option value=\"Virtual Office\">Virtual Offices</option>\\n                <option value=\"Meeting Rooms\">Meeting/Conference Rooms</option>\\n                <option value=\"Enterprise Solution\">Enterprise Solutions</option>\\n                <option value=\"Event Spaces\">Event Spaces</option>\\n                <option value=\"Coworking\">Business Setup</option>\\n                <option value=\"Coworking\">Business Setup & Visa Application Service</option>\\n            </select>\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">Location*</label>\\n            <select class=\"base-input input-box location\" name=\"location\" id=\"location\" required>\\n                <option class=\"first\" value=\"\" selected disabled>Select Location*</option>\\n                <option value=\"One Central Dubai\">One Central</option>\\n                <option value=\"One Za\\'abeel\">One Za\\'abeel</option>\\n                <option value=\"Abu Dhabi Global Market Square\">Al Sila Tower</option>\\n                <option value=\"Al Maryah Tower\">Al Maryah Tower</option>\\n            </select>\\n        </div>\\n    </div>\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"message\">Message</label>\\n            <textarea class=\"input-box\" id=\"message\" name=\"message\" placeholder=\"Leave a message\"></textarea>\\n        </div>\\n    </div>\\n\\n    <!--  -->\\n    <div class=\"checkbox-container\">\\n        <label><input type=\"checkbox\" name=\"terms\"\\n                value=\"I agree to TEC\\'s Terms of Use and have read and understood the privacy policy.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox tec-agree-span\"></span>\\n            <span class=\"item-label tec-agree\">I agree to TEC\\'s <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/terms-conditions/\">Terms of\\n                    Use</a> and\\n                have read and understood the <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/privacy-policy/\">Privacy\\n                    Policy</a>.</span>\\n        </label>\\n    </div>\\n    <div class=\"checkbox-container\">\\n        <label>\\n            <input type=\"checkbox\" name=\"offer\" value=\"Please email me special offers, exclusive invites and more.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span class=\"item-label\">Please email me special offers, exclusive invites, and more.</span>\\n        </label>\\n    </div>\\n    <div></div>\\n    <div></div>\\n    <div></div>\\n\\n    <!-- <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">Send</button> -->\\n    <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">\\n        <span class=\"button-text\">SUBMIT</span>\\n        <span class=\"loader\" id=\"loaderIcon\" style=\"display: none;\">\\n            <!-- You can use an SVG or any loader icon here -->\\n            <i class=\"fa fa-spinner fa-spin\"></i>\\n        </span>\\n    </button>\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <span class=\"alert error-main\">Form submission has failed, Please try again later!</span>\\n        </div>\\n    </div>\\n</form>\\n\\n<!--  -->\\n\\n<!-- form functions -->\\n\\n\\n<script>\\n    function checkService() {\\n        // Check if the current window is an iframe\\n        const isEmbedded = window.self !== window.top;\\n        if (isEmbedded) {\\n            // Get the referrer URL to know the main site embedding this iframe\\n            const refUrl = document.referrer;\\n            const referrerUrl = window.parent.location;\\n\\n            if (referrerUrl) {\\n\\n                // Parse URL parameters if available\\n                const urlParams = new URLSearchParams(new URL(referrerUrl).search);\\n                const path = referrerUrl?.pathname;\\n                let cleanPath = path.replace(/^\\\\/+/, \\'\\');\\n                if (cleanPath == \\'contact-us\\' || cleanPath == \"ar/contact-us\" || cleanPath == \"contact\") {\\n                    const service = urlParams.get(\\'services\\') || \"\";\\n                    return service\\n                }\\n                else {\\n                    return cleanPath\\n                }\\n\\n            }\\n            else {\\n                return \\'\\';\\n            }\\n        } else {\\n\\n            const path = window.location.pathname;\\n            console.log(path);\\n            const urlParams = new URLSearchParams(window.location.search);\\n            const service = urlParams.get(\\'services\\') || \"\";\\n            return service;\\n        }\\n    }\\n\\n\\n    function initializeScript() {\\n\\n\\n        const utmParams = getUTMParameters();\\n        console.log(utmParams);\\n        const form = document.getElementById(\\'form\\');\\n        const phoneInputField = document.querySelector(\"#phone\");\\n\\n\\n        const countrtyInputField = document.querySelector(\"#country\");\\n        const countryTextbox = document.querySelector(\"#countryTextbox\");\\n        // Check if phoneInputField is available immediately\\n        if (phoneInputField) {\\n            // Listen for events of number field\\n\\n            const info = document.querySelector(\".alert-info\");\\n            const error = document.querySelector(\".alert-error\");\\n\\n            // List of our error messages\\n            const errorMap = [\"Invalid number\", \"Invalid country code\", \"Phone number is too short\", \"Phone number is too long\", \"Invalid number\"];\\n\\n            // Utility to get the user IP location\\n            function getIp(callback) {\\n                const cachedCountry = sessionStorage.getItem(\\'countryCode\\');\\n                if (cachedCountry) {\\n                    callback(cachedCountry); // Use the cached country code\\n                } else {\\n                    fetch(\\'https://ipapi.co/json\\', { mode: \\'no-cors\\' })\\n                        .then(() => {\\n                            callback(\\'ae\\');  // Use \\'ae\\' if response is opaque\\n                            sessionStorage.setItem(\\'countryCode\\', \\'ae\\');  // Cache the country code\\n                        })\\n                        .catch(() => {\\n                            callback(\\'ae\\'); // Default to \\'ae\\' on error\\n                        });\\n                }\\n            }\\n\\n            // Set the country to users dep: getIp()\\n\\n            const phoneInput = window.intlTelInput(phoneInputField, {\\n                initialCountry: \"auto\",\\n                nationalMode: true,\\n                geoIpLookup: getIp,\\n                utilsScript: \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js\",\\n            });\\n            // Get all country data\\n\\n            const countryData = window.intlTelInputGlobals.getCountryData();\\n\\n            // Create an array of <option> elements for each country\\n            const countryOptions = countryData.map(country => {\\n                const flagUrl = `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/flags/4x3/${country.iso2.toLowerCase()}.svg`;\\n                return `<option value=\"${country.iso2}\" data-country-code=\"+${country.dialCode}\">${country.name} <img src=\"${flagUrl}\" class=\"flag-icon\" alt=\"${country.name} Flag\"></option>`;\\n            });\\n\\n\\n\\n            const checkervice = checkService();\\n            const interestMapping = {\\n                \"private-office\": \"Private Offices\",\\n                \"serviced-offices\": \"Private Offices\",\\n                \"coworking\": \"Coworking Space\",\\n                \"virtual-office\": \"Virtual Offices\",\\n                \"enterprise-solution\": \"Enterprise Solutions\",\\n                \"meeting-rooms\": \"Meeting/Conference Rooms\",\\n                \"event-spaces\": \"Event Spaces\",\\n                \"business-setup\": \"Business Setup\",\\n                \"business-setup-dwtc\": \"Business Setup\"\\n            };\\n\\n            // Business Setup & Visa Application Service\\n            if (checkervice) {\\n                let interestSelect = document.getElementById(\\'interest\\');\\n\\n                if (interestMapping[checkervice]) {\\n                    const targetText = interestMapping[checkervice];\\n                    console.log(targetText)\\n                    // Loop through options to find a match by text\\n                    Array.from(interestSelect.options).forEach(option => {\\n                        if (option.textContent.trim() === targetText) {\\n                            option.selected = true;\\n                        }\\n                    });\\n                }\\n            }\\n\\n            // Run function when user submits the form\\n            document.getElementById(\"form\").addEventListener(\"submit\", function (e) {\\n                e.preventDefault();\\n                var data = new FormData(e.target);\\n                let interestedService = \"\";\\n                const serviceMapping = {\\n                    \"Business Setup\": \"Business Setup\",\\n                    \"Business Setup & Visa Application Service\": \"Business Setup & Visa Application Service\"\\n                }\\n                var interestSelect = document.getElementById(\\'interest\\');\\n                var selectedText = interestSelect.options[interestSelect.selectedIndex].text;\\n                if (serviceMapping[selectedText]) {\\n                    interestedService = serviceMapping[selectedText]; // Set the selected value\\n                }\\n\\n                const submitButton = document.getElementById(\"submitBtnForm\");\\n                const loaderIcon = document.getElementById(\"loaderIcon\");\\n                const buttonText = document.querySelector(\".button-text\");\\n\\n                // Show the loader icon and disable the button\\n                buttonText.style.display = \"none\";\\n                loaderIcon.style.display = \"inline-block\";\\n                submitButton.disabled = true;\\n\\n                // Get phone value\\n                const phoneNumber = phoneInput.getNumber();\\n                const selectedCountryData = phoneInput.getSelectedCountryData();\\n\\n                info.style.display = \"none\";\\n                error.style.display = \"none\";\\n\\n                // Locate and get the form data\\n\\n\\n                const MainError = document.querySelector(\".error-main\");\\n\\n                // Prepare form entries for Web-to-Lead\\n                var formEntries = new URLSearchParams();\\n                var terms = data.get(\"terms\");\\n                var offer = data.get(\"offer\");\\n                if (!terms) {\\n                    terms = \"\"\\n                }\\n\\n                if (!offer) {\\n                    offer = \"\"\\n                }\\n\\n                var lastname = data.get(\"last_name_back\");\\n\\n                if (lastname) {\\n                    console.log(lastname);\\n\\n                    const formEntriesBot = new FormData();\\n                    formEntriesBot.append(\"first_name\", data.get(\"name\"));\\n                    formEntriesBot.append(\"email\", data.get(\"email\"));\\n                    formEntriesBot.append(\"phone\", phoneNumber);\\n                    formEntriesBot.append(\"offer\", offer);\\n                    formEntriesBot.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                    formEntriesBot.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                    formEntriesBot.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                    formEntriesBot.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                    formEntriesBot.append(\"interest\", data.get(\"interest\") ) ;\\n                    formEntriesBot.append(\"message\", data.get(\"message\"));\\n                    formEntriesBot.append(\"url\", parent.window.location.href);\\n                    formEntriesBot.append(\"location\", data.get(\"location\"))\\n                    // console.log([...formEntriesBot]); // log values\\n\\n                    fetch(\"https://hooks.zapier.com/hooks/catch/4438683/uhbi63t/\", {\\n                        method: \"POST\",\\n                        body: formEntriesBot\\n                    })\\n                        .then(response => {\\n                            if (!response.ok) {\\n                                throw new Error(\"Network response was not ok\");\\n                            }\\n                         MainError.style.display = \"flex\"\\n                        })\\n                        .then(result => {\\n                            console.log(\"Zapier hook success:\", result);\\n                        })\\n                        .catch(error => {\\n                            console.error(\"Zapier hook error:\", error);\\n                        })\\n                        .finally(() => {\\n                                buttonText.style.display = \"block\";\\n                                loaderIcon.style.display = \"none\";\\n                                buttonText.textContent = \"Thank You\";\\n                                // parent.window.location.href = \"/booking-thank-you\";\\n               \\n                        });\\n\\n                    return;\\n                }\\n\\n\\n                console.log(\\'no name\\')\\n\\n                // /////\\n                formEntries.append(\"oid\", \"00D90000000cwl5\");  // Replace with your Salesforce OID\\n                formEntries.append(\"first_name\", data.get(\"name\"));\\n                formEntries.append(\"email\", data.get(\"email\"));\\n                formEntries.append(\"phone\", phoneNumber);\\n                formEntries.append(\"terms\", terms);\\n                formEntries.append(\"offer\", offer);\\n                formEntries.append(\"location\", data.get(\"location\"));\\n                formEntries.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                formEntries.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                formEntries.append(\"00N90000003gjYi\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"00N6F00000EDfGh\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"00N6F00000EDfGm\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                // formEntries.append(\"retURL\", \"https://executivecentre.ae/\"); // Redirect after submission\\n                // Additional fields can be added here as needed (like Interest, etc.)\\n                formEntries.append(\"00N90000003ggrg\", data.get(\"interest\"));  // Replace with your custom field API name\\n                formEntries.append(\\'00N6F00000XRBa0\\', data.get(\"interest\"))\\n                formEntries.append(\"00N90000003hH7z\", data.get(\"message\"));\\n                formEntries.append(\"Interested_Services__c\", interestedService || \"\");\\n                formEntries.append(\"00N90000003gh5e\", \\'United Arab Emirates\\');\\n                formEntries.append(\"00N90000003gh5a\", \\'Dubai\\');\\n                formEntries.append(\"debug\", \"1\");\\n                formEntries.append(\"debugEmail\", \"tapiwa@arenacapital.com\");\\n                if (phoneInput.isValidNumber()) {\\n                    info.style.display = \"none\";\\n\\n                    // Send form data to Salesforce Web-to-Lead\\n\\n                    const salesforceRequest = fetch(\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\", {\\n                        method: \"POST\",\\n                        headers: {\\n                            \"Content-Type\": \"application/x-www-form-urlencoded\",\\n                        },\\n                        body: formEntries.toString()\\n                    });\\n\\n                    // Zapier request (using JSON)\\n\\n                    const zapierRequest = fetch(\"https://hooks.zapier.com/hooks/catch/4438683/u380eqw/\", {\\n                        method: \"POST\",\\n                        // headers: {\\n                        //     \"Content-Type\": \"application/json\",\\n                        // },\\n                        body: formEntries\\n                    });\\n\\n                    Promise.all([salesforceRequest, zapierRequest])\\n                        .then(responses => {\\n                            const salesforceResponse = responses[0];\\n                            const zapierResponse = responses[1];\\n\\n                            if (salesforceResponse.ok || zapierResponse.status) {\\n                                // Redirect to thank you page after both submissions succeed\\n                                // console.log(salesforceResponse)\\n                                // console.log(zapierResponse)\\n                                parent.window.location.href = \"/serviced-offices-contact-us-thank-you\";\\n                            } else {\\n                                MainError.style.display = \"flex\"\\n                            }\\n                        })\\n                        .catch(function (error) {\\n                            console.log(error)\\n                            parent.window.location.href = \"/serviced-offices-contact-us-thank-you\";\\n                            console.error(\"An error occurred during form submission:\", error);\\n                        })\\n                        .finally(function () {\\n                            // Hide the loader icon and re-enable the button\\n                            buttonText.style.display = \"inline\";\\n                            loaderIcon.style.display = \"none\";\\n                            submitButton.disabled = false;\\n                        });\\n                } else if (!phoneInputField.value.trim()) {\\n                    error.style.display = \"\";\\n                    const errMsg = \"Phone number is required\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                } else {\\n                    const errorCode = phoneInput.getValidationError();\\n                    error.style.display = \"\";\\n                    const errMsg = errorMap[errorCode] || \"Invalid number\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                }\\n            });\\n            // \\n        } else {\\n            // If phoneInputField is not available immediately, check again after 3 seconds\\n            setTimeout(initializeScript, 3000);\\n        }\\n    }\\n\\n\\n    function reloadOnPageChange() {\\n        function addPushStateListener(listener) {\\n            if (!Proxy) return;\\n            window.history.pushState = new Proxy(window.history.pushState, {\\n                apply: (target, thisArg, argArray) => {\\n                    target.apply(thisArg, argArray);\\n                    listener();\\n                },\\n            });\\n        }\\n\\n        addPushStateListener(() => {\\n            initializeScript();\\n        });\\n    }\\n\\n    function getUTMParameters() {\\n        const urlParamsForm = new URLSearchParams(window.location.search);\\n\\n        // Use URL parameters first, fallback to sessionStorage if not available\\n        const utmLeadSource = urlParamsForm.get(\\'utm_lead_source\\') || sessionStorage.getItem(\\'utm_lead_source\\');\\n        const utmSourceLvl1 = urlParamsForm.get(\\'utm_source_lvl_1\\') || sessionStorage.getItem(\\'utm_source_lvl_1\\');\\n        const utmSourceLvl2 = urlParamsForm.get(\\'utm_source_lvl_2\\') || sessionStorage.getItem(\\'utm_source_lvl_2\\');\\n        const utmSourceLvl3 = urlParamsForm.get(\\'utm_source_lvl_3\\') || sessionStorage.getItem(\\'utm_source_lvl_3\\');\\n        const gadSource = urlParamsForm.get(\\'gad_source\\') || sessionStorage.getItem(\\'gad_source\\');\\n        const gclid = urlParamsForm.get(\\'gclid\\') || sessionStorage.getItem(\\'gclid\\');\\n\\n        return {\\n            utmLeadSource,\\n            utmSourceLvl1,\\n            utmSourceLvl2,\\n            utmSourceLvl3,\\n            gadSource,\\n            gclid\\n        };\\n    }\\n\\n</script>\\n\\n\\n<script>\\n    // Function to check and add the class\\n\\n    window.addEventListener(\\'load\\', function () {\\n        // Call the function initially\\n\\n\\n        function checkAndInitialize() {\\n            if (typeof initializeScript === \"function\") {\\n                initializeScript();\\n                console.log(\\'here\\')\\n            } else {\\n                // If initializeScript doesn\\'t exist, wait for 2 seconds and check again\\n                setTimeout(checkAndInitialize, 1000);\\n            }\\n        }\\n        let previousRoute = window.location.pathname;\\n\\n        setInterval(() => {\\n            const currentRoute = window.location.pathname;\\n            if (currentRoute !== previousRoute) {\\n                // Route has changed\\n                previousRoute = currentRoute;\\n                if (currentRoute === \"/\") {\\n                    console.log(\\'go t home\\')\\n                    checkAndInitialize();\\n                }\\n            }\\n        }, 1000);\\n        initializeScript();\\n\\n    })\\n\\n\\n\\n</script>\\n\\n\\n<!--  -->',style:{height:\"100%\",width:\"100%\"}},VvKr7vptr:{html:'<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css\" />\\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js\"></script>\\n\\n<style>\\n    .input-box {\\n        flex: 1 1 0%;\\n        border: none;\\n        outline: none;\\n        background-color: transparent;\\n        padding: 16px 0;\\n        color: #000;\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        width: 100%;\\n        border-bottom: 1px solid rgb(0, 46, 93);\\n        border-radius: 0;\\n        accent-color: rgb(0, 117, 255);\\n\\n    }\\n\\n    .textbox {\\n        position: relative;\\n        display: flex;\\n        flex-direction: column;\\n        color: #000;\\n        accent-color: rgb(0, 117, 255);\\n        border-radius: 0px;\\n        /* overflow: auto; */\\n        /* user-select: none; */\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        margin-bottom: 25px;\\n        gap: 10px;\\n    }\\n\\n    label {\\n        /* padding-left: 16px; */\\n        color: rgb(0, 46, 93);\\n    }\\n\\n    form {\\n        place-content: center flex-start;\\n        font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));\\n        place-self: start;\\n        border-radius: 10px;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: column;\\n        gap: 10px;\\n        height: 100%;\\n        /* overflow: visible; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: flex;\\n        flex-direction: row;\\n        align-items: center;\\n        justify-content: center;\\n        color: rgb(0, 0, 0);\\n        border: 1px solid rgb(0, 46, 93);\\n        outline: none;\\n        cursor: pointer;\\n        user-select: none;\\n        border-radius: 0px;\\n        padding: 18px;\\n        font-size: 16px;\\n        font-style: normal;\\n\\n        letter-spacing: 0em;\\n        line-height: 1em;\\n        width: 100%;\\n        background: transparent;\\n    }\\n\\n    .submit-button:hover {\\n        background: rgb(0, 46, 93);\\n        color: #fff;\\n    }\\n\\n    .row {\\n        display: flex;\\n        width: 100%;\\n        place-content: center;\\n        align-items: center;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: row;\\n        gap: 25px;\\n        height: min-content;\\n        /* overflow: auto; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .col-md-6 {\\n        width: 50%;\\n    }\\n\\n    .col-md-12 {\\n        width: 100%;\\n    }\\n\\n    .alert-error,\\n    .error-main {\\n        display: flex;\\n        align-items: center;\\n        color: rgb(255, 0, 0);\\n    }\\n\\n    .error-main {\\n        display: none;\\n        justify-content: center;\\n        text-align: center;\\n    }\\n\\n\\n\\n    @media (max-width: 500px) {\\n        .col-md-6 {\\n            width: 100%;\\n        }\\n\\n        .row {\\n            flex-direction: column;\\n        }\\n\\n        .textbox {\\n            margin-bottom: 0;\\n        }\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: inline-flex;\\n        align-items: center;\\n    }\\n\\n\\n    .loader {\\n        border: 4px solid #000;\\n        /* Light grey */\\n        border-top: 4px solid #000;\\n        /* Blue */\\n        border-radius: 50%;\\n        width: 15px;\\n        height: 15px;\\n        animation: spin 2s linear infinite;\\n        margin-left: 10px;\\n    }\\n\\n    @keyframes spin {\\n        0% {\\n            transform: rotate(0deg);\\n        }\\n\\n        100% {\\n            transform: rotate(360deg);\\n        }\\n    }\\n\\n    /* Basic styling for the select element */\\n    .custom-select {\\n        position: relative;\\n        display: inline-block;\\n        width: 200px;\\n        /* Adjust width as needed */\\n    }\\n\\n    /* Hide the default arrow */\\n    select {\\n        /* appearance: none; */\\n        /* -webkit-appearance: none; */\\n        /* -moz-appearance: none; */\\n        width: 100%;\\n        /* padding: 10px 30px 10px 10px; */\\n        /* Adjust padding to make room for the custom arrow */\\n        border: 1px solid #ccc;\\n        border-radius: 4px;\\n        background: url(\\'data:image/svg+xml;utf8,<svg fill=\"none\" height=\"24\" stroke=\"beige\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><polyline points=\"6 9 12 15 18 9\"/></svg>\\') no-repeat right 10px center;\\n        background-size: 16px 16px;\\n        /* Adjust size as needed */\\n    }\\n\\n    /* Optional: additional styling for the custom select element */\\n    select:focus {\\n        /* outline: none; */\\n    }\\n\\n    textarea {\\n        width: 100%;\\n        /* Adjust the width as needed */\\n        /* height: calc(1.5em * 5); */\\n        /* 1.5em is the line height, 5 is the number of lines */\\n        /* overflow-y: auto; */\\n        /* Add a vertical scrollbar if content exceeds the height */\\n        /* resize: none; */\\n        /* Prevent resizing */\\n    }\\n\\n    .input-file {\\n        text-align: center;\\n        padding-left: 10px;\\n        color: #6f6f6f;\\n        display: flex;\\n        align-items: center;\\n    }\\n\\n    option {\\n        color: #000;\\n        padding-left: 6px;\\n        margin-left: 6px;\\n    }\\n\\n    .base-input,\\n    .first {\\n        color: #6f6f6f;\\n    }\\n\\n    #fileRow .textbox {\\n        padding-bottom: 18px;\\n        padding-top: 14px;\\n        padding-left: 16px;\\n\\n    }\\n\\n    .iti__selected-flag {\\n        padding: 0 6px 0 0;\\n    }\\n\\n    .iti__country-list {\\n        width: max-content;\\n    }\\n\\n    .iti__country-name {\\n        color: #000;\\n    }\\n\\n\\n    /*  */\\n\\n    .item-label a {\\n        color: rgb(0, 46, 93);\\n        ;\\n    }\\n\\n    /*  */\\n    /* Hide the default checkbox */\\n    input[type=\"checkbox\"] {\\n        display: none;\\n    }\\n\\n    /* Style the custom checkbox */\\n    .checkbox-container label {\\n        display: flex;\\n        align-items: center;\\n        cursor: pointer;\\n    }\\n\\n    .custom-checkbox {\\n        width: 11px;\\n        height: 11px;\\n        background-color: #f0f0f0;\\n        border: 0;\\n        border-radius: 4px;\\n        margin-left: 6px;\\n        position: relative;\\n        transition: background-color 0.2s;\\n    }\\n\\n    /* Show checkmark when checkbox is checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox {\\n        background-color: rgb(0, 46, 93);\\n        /* Background color for checked state */\\n        border-color: rgb(0, 46, 93);\\n    }\\n\\n\\n    .custom-checkbox::after {\\n        content: \\'\\';\\n        position: absolute;\\n        top: 0px;\\n        left: 4px;\\n        width: 3px;\\n        height: 7px;\\n        border: solid white;\\n        border-width: 0 2px 2px 0;\\n        transform: rotate(45deg);\\n        opacity: 0;\\n        transition: opacity 0.2s;\\n    }\\n\\n    /* Display checkmark when checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox::after {\\n        opacity: 1;\\n    }\\n\\n\\n    .arabic .iti--allow-dropdown .iti__flag-container,\\n    .iti--separate-dial-code .iti__flag-container {\\n        right: 0;\\n        left: auto;\\n    }\\n\\n    .arabic .iti {\\n        direction: rtl;\\n    }\\n\\n    .arabic .iti--allow-dropdown input,\\n    .iti--allow-dropdown input[type=text],\\n    .iti--allow-dropdown input[type=tel],\\n    .iti--separate-dial-code input,\\n    .iti--separate-dial-code input[type=text],\\n    .iti--separate-dial-code input[type=tel] {\\n        padding-right: 52px;\\n    }\\n    .arabic #phone {\\n        text-align: right;\\n    }\\n    @media only screen and (max-width: 900px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n    @media only screen and (max-width: 410px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n        .last-name {\\n        position: absolute;\\n        left: -9999px;\\n        opacity: 0;\\n        pointer-events: none;\\n\\n    }\\n</style>\\n\\n<form dir=\"rtl\" id=\"form\" class=\"form-tag\" method=\"POST\" accept-charset=\"UTF-8\" id=\"form\" enctype=\"multipart/form-data\">\\n    <div class=\"row\">\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"name\">اسمك</label>\\n            <input dir=\"rtl\" class=\"input-box\" type=\"text\" id=\"name\" name=\"name\" placeholder=\"جو سميث\" required />\\n        </div>\\n\\n        <div class=\"col-md-6 textbox last-name\">\\n            <label for=\"email\">اسمك</label>\\n                                    <input class=\"input-box\" type=\"text\" id=\"last_name_back\" name=\"last_name_back\" placeholder=\"Smith\" autocomplete=\"off\"\\n                readonly onfocus=\"this.removeAttribute(\\'readonly\\');\" />\\n        </div>\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"email\">بريدك الإلكتروني</label>\\n            <input dir=\"rtl\" class=\"input-box\" type=\"email\" id=\"email\" name=\"email\" placeholder=\"example@gmail.com\" required />\\n        </div>\\n    </div>\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox arabic\">\\n            <label for=\"phone\">رقم الهاتف</label>\\n            <input dir=\"rtl\" class=\"input-box\" type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"501234567\" />\\n            <div dir=\"rtl\" class=\"alert alert-info\" style=\"display: none\"></div>\\n            <div dir=\"rtl\" class=\"alert alert-error\" style=\"display: none\"></div>\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">الخدمة المطلوبة</label>\\n            <select class=\"base-input input-box\" name=\"interest\" id=\"interest\" required>\\n                <option class=\"first\" value=\"\" disabled selected>...قم بالاختيار</option>\\n                <option value=\"Serviced Office\"> المكاتب الخاصة </option>\\n                <option value=\"Coworking\">مساحة العمل المشتركة</option>\\n                <option value=\"Virtual Office\">المكاتب الافتراضية</option>\\n                <option value=\"Meeting Rooms\">غرف الاجتماعات/المؤتمرات </option>\\n                <option value=\"Enterprise Solution\">حلول المؤسسات</option>\\n                <option value=\"Event Spaces\">قاعات الفعاليات</option>\\n                <option value=\"Coworking\">حلول تأسيس الشركات</option>\\n                <option value=\"Coworking\">خدمة إنشاء الأعمال وتقديم طلبات التأشيرة\\n                </option>\\n            </select>\\n        </div>\\n    </div>\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"message\">محتوى الرسالة</label>\\n            <textarea class=\"input-box\" id=\"message\" name=\"message\" placeholder=\" اترك لنا رسالة\"></textarea>\\n        </div>\\n    </div>\\n\\n    <!--  -->\\n    <div dir=\"rtl\"  class=\"checkbox-container\">\\n\\n        <label><input dir=\"rtl\" type=\"checkbox\" name=\"terms\"\\n                value=\"I agree to TEC\\'s Terms of Use and have read and understood the privacy policy.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span dir=\"rtl\" class=\"item-label\">  أوافق على\\n                <a target=\"_blank\" href=\"https://executivecentre.ae/ar/terms-conditions/\">شروط الاستخدام\\n                </a> الخاصة بالمركز التنفيذي وأقر بأنني قرأت وفهمت\\n                <a target=\"_blank\" href=\"https://executivecentre.ae/ar/privacy-policy/\">سياسة الخصوصية.\\n                </a></span>\\n        </label>\\n    </div>\\n    <div dir=\"rtl\"  class=\"checkbox-container\">\\n        <label>\\n            <input dir=\"rtl\"  type=\"checkbox\" name=\"offer\" value=\"Please email me special offers, exclusive invites and more.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span dir=\"rtl\" class=\"item-label\">أود الحصول على العروض الخاصة، الدعوات الحصرية، والمزيد عبر البريد الإلكتروني.\\n            </span>\\n        </label>\\n    </div>\\n    <div></div>\\n    <div></div>\\n    <div></div>\\n\\n    <!-- <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">Send</button> -->\\n    <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">\\n        <span class=\"button-text\">إرسال</span>\\n        <span class=\"loader\" id=\"loaderIcon\" style=\"display: none;\">\\n            <!-- You can use an SVG or any loader icon here -->\\n            <i class=\"fa fa-spinner fa-spin\"></i>\\n        </span>\\n    </button>\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <span class=\"alert error-main\">فشل إرسال النموذج، يرجى المحاولة مرة أخرى لاحقًا!\\n            </span>\\n        </div>\\n    </div>\\n</form>\\n\\n<!--  -->\\n\\n<!-- form functions -->\\n\\n\\n<script>\\n\\n    function checkService() {\\n        // Check if the current window is an iframe\\n        const isEmbedded = window.self !== window.top;\\n        if (isEmbedded) {\\n            // Get the referrer URL to know the main site embedding this iframe\\n            const refUrl = document.referrer;\\n            const referrerUrl = window.parent.location;\\n            if (referrerUrl) {\\n                // Parse URL parameters if available\\n                const urlParams = new URLSearchParams(new URL(referrerUrl).search);\\n                const path = referrerUrl?.pathname;\\n                let cleanPath = path.replace(/\\\\/ar\\\\//g, \\'\\');\\n                if(cleanPath==\\'contact-us\\'||cleanPath==\"ar/contact-us\" || cleanPath==\"contact\"){\\n                    const service = urlParams.get(\\'services\\') || \"\";\\n                    return service\\n                }\\n                else{\\n                    return cleanPath\\n                }\\n            }\\n            else {\\n                return \\'\\';\\n            }\\n        } else {\\n            const urlParams = new URLSearchParams(window.location.search);\\n            const service = urlParams.get(\\'services\\') || \"\";\\n            return service;\\n        }\\n    }\\n\\n\\n    function initializeScript() {\\n\\n\\n        const utmParams = getUTMParameters();\\n        console.log(utmParams);\\n        const form = document.getElementById(\\'form\\');\\n        const phoneInputField = document.querySelector(\"#phone\");\\n\\n        const countrtyInputField = document.querySelector(\"#country\");\\n        const countryTextbox = document.querySelector(\"#countryTextbox\");\\n        // Check if phoneInputField is available immediately\\n        if (phoneInputField) {\\n            // Listen for events of number field\\n\\n            const info = document.querySelector(\".alert-info\");\\n            const error = document.querySelector(\".alert-error\");\\n\\n            // List of our error messages\\n            const errorMap = [\"رقم غير صالح\", \"رمز البلد غير صالح\", \"رقم الهاتف قصير جدًا\", \"رقم الهاتف طويل جدًا\", \"رقم غير صالح\"];\\n\\n            // Utility to get the user IP location\\n            function getIp(callback) {\\n                const cachedCountry = sessionStorage.getItem(\\'countryCode\\');\\n                if (cachedCountry) {\\n                    callback(cachedCountry); // Use the cached country code\\n                } else {\\n                    fetch(\\'https://ipapi.co/json\\', { mode: \\'no-cors\\' })\\n                        .then(() => {\\n                            callback(\\'ae\\');  // Use \\'ae\\' if response is opaque\\n                            sessionStorage.setItem(\\'countryCode\\', \\'ae\\');  // Cache the country code\\n                        })\\n                        .catch(() => {\\n                            callback(\\'ae\\'); // Default to \\'ae\\' on error\\n                        });\\n                }\\n            }\\n\\n            // Set the country to users dep: getIp()\\n\\n            const phoneInput = window.intlTelInput(phoneInputField, {\\n                initialCountry: \"auto\",\\n                nationalMode: true,\\n                geoIpLookup: getIp,\\n                utilsScript: \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js\",\\n            });\\n            // Get all country data\\n\\n            const countryData = window.intlTelInputGlobals.getCountryData();\\n\\n            // Create an array of <option> elements for each country\\n            const countryOptions = countryData.map(country => {\\n                const flagUrl = `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/flags/4x3/${country.iso2.toLowerCase()}.svg`;\\n                return `<option value=\"${country.iso2}\" data-country-code=\"+${country.dialCode}\">${country.name} <img src=\"${flagUrl}\" class=\"flag-icon\" alt=\"${country.name} Flag\"></option>`;\\n            });\\n\\n\\n            // Function to retrieve items from sessionStorage\\n\\n            // Example usage\\n\\n\\n            const checkervice = checkService()\\n\\n            const interestMapping = {\\n                \"private-office\": \"المكاتب الخاصة\",\\n                \"serviced-offices\": \"المكاتب الخاصة\",\\n                \"coworking\": \"مساحة العمل المشتركة\",\\n                \"virtual-office\": \"المكاتب الافتراضية\",\\n                \"enterprise-solution\": \"غرف الاجتماعات/المؤتمرات\",\\n                \"meeting-rooms\": \"حلول المؤسسات\",\\n                \"event-spaces\": \"قاعات الفعاليات\",\\n                \"business-setup\": \"حلول تأسيس الشركات\",\\n                \"business-setup-dwtc\": \"حلول تأسيس الشركات\",\\n            };\\n                            // \"business-setup-dwtc\": \"خدمة إنشاء الأعمال وتقديم طلبات التأشيرة\"\\n\\n            \\n            if (checkervice) {\\n                const interestSelect = document.getElementById(\\'interest\\');\\n                if (interestMapping[checkervice]) {\\n                    const targetText = interestMapping[checkervice];\\n                    // Loop through options to find a match by text\\n                    Array.from(interestSelect.options).forEach(option => {\\n                        if (option.textContent.trim() === targetText) {\\n                            option.selected = true;\\n                        }\\n                    });\\n                }\\n            }\\n\\n            // Run function when user submits the form\\n            document.getElementById(\"form\").addEventListener(\"submit\", function (e) {\\n                e.preventDefault();\\n                // \\n                // \\n                let interestedService = \"\";\\n                const serviceMapping = {\\n                   \"حلول تأسيس الشركات\": \"Business Setup\",\\n                    \"خدمة إنشاء الأعمال وتقديم طلبات التأشيرة\":\"Business Setup & Visa Application Service\"\\n                }\\n                var interestSelect = document.getElementById(\\'interest\\');\\n                var selectedText = interestSelect.options[interestSelect.selectedIndex].text;\\n                if (serviceMapping[selectedText]) {\\n                    interestedService = serviceMapping[selectedText]; // Set the selected value\\n                }\\n                // \\n\\n                const submitButton = document.getElementById(\"submitBtnForm\");\\n                const loaderIcon = document.getElementById(\"loaderIcon\");\\n                const buttonText = document.querySelector(\".button-text\");\\n\\n                // Show the loader icon and disable the button\\n                buttonText.style.display = \"none\";\\n                loaderIcon.style.display = \"inline-block\";\\n                submitButton.disabled = true;\\n\\n                // Get phone value\\n                const phoneNumber = phoneInput.getNumber();\\n                const selectedCountryData = phoneInput.getSelectedCountryData();\\n\\n                info.style.display = \"none\";\\n                error.style.display = \"none\";\\n\\n                // Locate and get the form data\\n                var data = new FormData(e.target);\\n\\n                const MainError = document.querySelector(\".error-main\");\\n\\n                // Prepare form entries for Web-to-Lead\\n                var formEntries = new URLSearchParams();\\n                var terms = data.get(\"terms\");\\n                var offer = data.get(\"offer\");\\n                if (!terms) {\\n                    terms = \"\"\\n                }\\n\\n                if (!offer) {\\n                    offer = \"\"\\n                }\\n\\n                // \\n                /////////////\\n\\n                var lastname = data.get(\"last_name_back\");\\n\\n                if (lastname) {\\n                    console.log(lastname);\\n\\n                    const formEntriesBot = new FormData();\\n                    formEntriesBot.append(\"first_name\", data.get(\"name\"));\\n                    formEntriesBot.append(\"email\", data.get(\"email\"));\\n                    formEntriesBot.append(\"phone\", phoneNumber);\\n                    formEntriesBot.append(\"offer\", offer);\\n                    formEntriesBot.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                    formEntriesBot.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                    formEntriesBot.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                    formEntriesBot.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                    formEntriesBot.append(\"interest\", data.get(\"interest\"));\\n                    formEntriesBot.append(\"message\", data.get(\"message\"));\\n                    formEntriesBot.append(\"url\", parent.window.location.href);\\n                    // console.log([...formEntriesBot]); // log values\\n\\n                    fetch(\"https://hooks.zapier.com/hooks/catch/4438683/uhbi63t/\", {\\n                        method: \"POST\",\\n                        body: formEntriesBot\\n                    })\\n                        .then(response => {\\n                            if (!response.ok) {\\n                                throw new Error(\"Network response was not ok\");\\n                            }\\n                         MainError.style.display = \"flex\"\\n                        })\\n                        .then(result => {\\n                            console.log(\"Zapier hook success:\", result);\\n                        })\\n                        .catch(error => {\\n                            console.error(\"Zapier hook error:\", error);\\n                        })\\n                        .finally(() => {\\n                                buttonText.style.display = \"block\";\\n                                loaderIcon.style.display = \"none\";\\n                                buttonText.textContent = \"Thank You\";\\n                                parent.window.location.href = \"/ar/booking-thank-you\";\\n               \\n                        });\\n\\n                    return;\\n                }\\n\\n\\n                console.log(\\'no name\\')\\n\\n                // /////\\n                formEntries.append(\"oid\", \"00D90000000cwl5\");  // Replace with your Salesforce OID\\n                formEntries.append(\"first_name\", data.get(\"name\"));\\n                formEntries.append(\"email\", data.get(\"email\"));\\n                formEntries.append(\"phone\", phoneNumber);\\n                formEntries.append(\"terms\", terms);\\n                formEntries.append(\"offer\", offer);\\n                formEntries.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                formEntries.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/ar/\");\\n                formEntries.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                formEntries.append(\"00N90000003gjYi\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/ar/\");\\n                formEntries.append(\"00N6F00000EDfGh\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"00N6F00000EDfGm\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                // formEntries.append(\"retURL\", \"https://executivecentre.ae/\"); // Redirect after submission\\n\\n                formEntries.append(\"Interested_Services__c\", interestedService || \"\");\\n                // Additional fields can be added here as needed (like Interest, etc.)\\n                formEntries.append(\"00N90000003ggrg\", data.get(\"interest\"));  \\n                formEntries.append(\\'00N6F00000XRBa0\\', data.get(\"interest\"))\\n                formEntries.append(\"00N90000003hH7z\", data.get(\"message\"));\\n                formEntries.append(\"00N90000003gh5e\", \\'United Arab Emirates\\');\\n                formEntries.append(\"00N90000003gh5a\", \\'Dubai\\');\\n                formEntries.append(\"debug\", \"1\");\\n                formEntries.append(\"debugEmail\", \"tapiwa@arenacapital.com\");\\n                if (phoneInput.isValidNumber()) {\\n                    info.style.display = \"none\";\\n\\n                    // Send form data to Salesforce Web-to-Lead\\n\\n                    const salesforceRequest = fetch(\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\", {\\n                        method: \"POST\",\\n                        headers: {\\n                            \"Content-Type\": \"application/x-www-form-urlencoded\",\\n                        },\\n                        body: formEntries.toString()\\n                    });\\n\\n                    // Zapier request (using JSON)\\n\\n                    const zapierRequest = fetch(\"https://hooks.zapier.com/hooks/catch/4438683/3r1ku2v/\", {\\n                        method: \"POST\",\\n                        // headers: {\\n                        //     \"Content-Type\": \"application/json\",\\n                        // },\\n                        body: formEntries\\n                    });\\n\\n                    Promise.all([salesforceRequest, zapierRequest])\\n                        .then(responses => {\\n                            const salesforceResponse = responses[0];\\n                            const zapierResponse = responses[1];\\n\\n                            if (salesforceResponse.ok || zapierResponse.status) {\\n                                // Redirect to thank you page after both submissions succeed\\n                                // console.log(salesforceResponse)\\n                                // console.log(zapierResponse)\\n                                parent.window.location.href = \"/ar/thank-you\";\\n                            } else {\\n                                MainError.style.display = \"flex\"\\n                            }\\n                        })\\n                        .catch(function (error) {\\n                            console.log(error)\\n                            parent.window.location.href = \"/ar/thank-you\";\\n                            console.error(\"An error occurred during form submission:\", error);\\n                        })\\n                        .finally(function () {\\n                            // Hide the loader icon and re-enable the button\\n                            buttonText.style.display = \"inline\";\\n                            loaderIcon.style.display = \"none\";\\n                            submitButton.disabled = false;\\n                        });\\n                } else if (!phoneInputField.value.trim()) {\\n                    error.style.display = \"\";\\n                    const errMsg = \"رقم الهاتف مطلوب\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                } else {\\n                    const errorCode = phoneInput.getValidationError();\\n                    error.style.display = \"\";\\n                    const errMsg = errorMap[errorCode] || \"رقم غير صالح\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                }\\n            });\\n            // \\n        } else {\\n            // If phoneInputField is not available immediately, check again after 3 seconds\\n            setTimeout(initializeScript, 3000);\\n        }\\n    }\\n\\n\\n    function reloadOnPageChange() {\\n        function addPushStateListener(listener) {\\n            if (!Proxy) return;\\n            window.history.pushState = new Proxy(window.history.pushState, {\\n                apply: (target, thisArg, argArray) => {\\n                    target.apply(thisArg, argArray);\\n                    listener();\\n                },\\n            });\\n        }\\n\\n        addPushStateListener(() => {\\n            initializeScript();\\n        });\\n    }\\n\\n    function getUTMParameters() {\\n        const urlParamsForm = new URLSearchParams(window.location.search);\\n\\n        // Use URL parameters first, fallback to sessionStorage if not available\\n        const utmLeadSource = urlParamsForm.get(\\'utm_lead_source\\') || sessionStorage.getItem(\\'utm_lead_source\\');\\n        const utmSourceLvl1 = urlParamsForm.get(\\'utm_source_lvl_1\\') || sessionStorage.getItem(\\'utm_source_lvl_1\\');\\n        const utmSourceLvl2 = urlParamsForm.get(\\'utm_source_lvl_2\\') || sessionStorage.getItem(\\'utm_source_lvl_2\\');\\n        const utmSourceLvl3 = urlParamsForm.get(\\'utm_source_lvl_3\\') || sessionStorage.getItem(\\'utm_source_lvl_3\\');\\n        const gadSource = urlParamsForm.get(\\'gad_source\\') || sessionStorage.getItem(\\'gad_source\\');\\n        const gclid = urlParamsForm.get(\\'gclid\\') || sessionStorage.getItem(\\'gclid\\');\\n\\n        return {\\n            utmLeadSource,\\n            utmSourceLvl1,\\n            utmSourceLvl2,\\n            utmSourceLvl3,\\n            gadSource,\\n            gclid\\n        };\\n    }\\n\\n</script>\\n\\n\\n<script>\\n    // Function to check and add the class\\n\\n    window.addEventListener(\\'load\\', function () {\\n        // Call the function initially\\n\\n\\n        function checkAndInitialize() {\\n            if (typeof initializeScript === \"function\") {\\n                initializeScript();\\n                console.log(\\'here\\')\\n            } else {\\n                // If initializeScript doesn\\'t exist, wait for 2 seconds and check again\\n                setTimeout(checkAndInitialize, 1000);\\n            }\\n        }\\n        let previousRoute = window.location.pathname;\\n\\n        setInterval(() => {\\n            const currentRoute = window.location.pathname;\\n            if (currentRoute !== previousRoute) {\\n                // Route has changed\\n                previousRoute = currentRoute;\\n                if (currentRoute === \"/\") {\\n                    console.log(\\'go t home\\')\\n                    checkAndInitialize();\\n                }\\n            }\\n        }, 1000);\\n        initializeScript();\\n\\n    })\\n\\n\\n\\n</script>\\n\\n<script>\\ndocument.addEventListener(\"DOMContentLoaded\", function () {\\n  const inputs = document.querySelectorAll(\"input\");\\n\\n  inputs.forEach(input => {\\n    // Turn off autocomplete\\n    input.setAttribute(\"autocomplete\", \"off\");\\n\\n    // Prevent autofill with readonly-until-focus trick\\n    input.setAttribute(\"readonly\", true);\\n    input.addEventListener(\"focus\", function () {\\n      this.removeAttribute(\"readonly\");\\n    });\\n  });\\n});\\n</script>\\n',style:{height:\"100%\",width:\"100%\"}},y6iJigdB5:{html:'<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css\" />\\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js\"></script>\\n\\n<style>\\n    .input-box {\\n        flex: 1 1 0%;\\n        border: none;\\n        outline: none;\\n        background-color: transparent;\\n        padding: 16px 0;\\n        color: #000;\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        width: 100%;\\n        border-bottom: 1px solid rgb(0, 46, 93);\\n        border-radius: 0;\\n        accent-color: rgb(0, 117, 255);\\n\\n    }\\n\\n    .textbox {\\n        position: relative;\\n        display: flex;\\n        flex-direction: column;\\n        color: #000;\\n        accent-color: rgb(0, 117, 255);\\n        border-radius: 0px;\\n        /* overflow: auto; */\\n        /* user-select: none; */\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        margin-bottom: 25px;\\n        gap: 10px;\\n    }\\n\\n    label {\\n        /* padding-left: 16px; */\\n        color: rgb(0, 46, 93);\\n    }\\n\\n    form {\\n        place-content: center flex-start;\\n        font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));\\n        place-self: start;\\n        border-radius: 10px;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: column;\\n        gap: 10px;\\n        height: 100%;\\n        /* overflow: visible; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: flex;\\n        flex-direction: row;\\n        align-items: center;\\n        justify-content: center;\\n        color: rgb(0, 0, 0);\\n        border: 1px solid rgb(0, 46, 93);\\n        outline: none;\\n        cursor: pointer;\\n        user-select: none;\\n        border-radius: 0px;\\n        padding: 18px;\\n        font-size: 16px;\\n        font-style: normal;\\n\\n        letter-spacing: 0em;\\n        line-height: 1em;\\n        width: 100%;\\n        background: transparent;\\n    }\\n\\n    .submit-button:hover {\\n        background: rgb(0, 46, 93);\\n        color: #fff;\\n    }\\n\\n    .row {\\n        display: flex;\\n        width: 100%;\\n        place-content: center;\\n        align-items: center;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: row;\\n        gap: 25px;\\n        height: min-content;\\n        /* overflow: auto; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .col-md-6 {\\n        width: 50%;\\n    }\\n\\n    .col-md-12 {\\n        width: 100%;\\n    }\\n\\n    .alert-error,\\n    .error-main {\\n        display: flex;\\n        align-items: center;\\n        color: rgb(255, 0, 0);\\n    }\\n\\n    .error-main {\\n        display: none;\\n        justify-content: center;\\n        text-align: center;\\n    }\\n\\n\\n\\n    @media (max-width: 500px) {\\n        .col-md-6 {\\n            width: 100%;\\n        }\\n\\n        .row {\\n            flex-direction: column;\\n        }\\n\\n        .textbox {\\n            margin-bottom: 0;\\n        }\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: inline-flex;\\n        align-items: center;\\n    }\\n\\n\\n    .loader {\\n        border: 4px solid #000;\\n        /* Light grey */\\n        border-top: 4px solid #000;\\n        /* Blue */\\n        border-radius: 50%;\\n        width: 15px;\\n        height: 15px;\\n        animation: spin 2s linear infinite;\\n        margin-left: 10px;\\n    }\\n\\n    @keyframes spin {\\n        0% {\\n            transform: rotate(0deg);\\n        }\\n\\n        100% {\\n            transform: rotate(360deg);\\n        }\\n    }\\n\\n    /* Basic styling for the select element */\\n    .custom-select {\\n        position: relative;\\n        display: inline-block;\\n        width: 200px;\\n        /* Adjust width as needed */\\n    }\\n\\n    /* Hide the default arrow */\\n    select {\\n        /* appearance: none; */\\n        /* -webkit-appearance: none; */\\n        /* -moz-appearance: none; */\\n        width: 100%;\\n        /* padding: 10px 30px 10px 10px; */\\n        /* Adjust padding to make room for the custom arrow */\\n        border: 1px solid #ccc;\\n        border-radius: 4px;\\n        background: url(\\'data:image/svg+xml;utf8,<svg fill=\"none\" height=\"24\" stroke=\"beige\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><polyline points=\"6 9 12 15 18 9\"/></svg>\\') no-repeat right 10px center;\\n        background-size: 16px 16px;\\n        /* Adjust size as needed */\\n    }\\n\\n    /* Optional: additional styling for the custom select element */\\n    select:focus {\\n        /* outline: none; */\\n    }\\n\\n    textarea {\\n        width: 100%;\\n        /* Adjust the width as needed */\\n        /* height: calc(1.5em * 5); */\\n        /* 1.5em is the line height, 5 is the number of lines */\\n        /* overflow-y: auto; */\\n        /* Add a vertical scrollbar if content exceeds the height */\\n        /* resize: none; */\\n        /* Prevent resizing */\\n    }\\n\\n    .input-file {\\n        text-align: center;\\n        padding-left: 10px;\\n        color: #6f6f6f;\\n        display: flex;\\n        align-items: center;\\n    }\\n\\n    option {\\n        color: #000;\\n        padding-left: 6px;\\n        margin-left: 6px;\\n    }\\n\\n    .base-input,\\n    .first {\\n        color: #6f6f6f;\\n    }\\n\\n    #fileRow .textbox {\\n        padding-bottom: 18px;\\n        padding-top: 14px;\\n        padding-left: 16px;\\n\\n    }\\n\\n    .iti__selected-flag {\\n        padding: 0 6px 0 0;\\n    }\\n\\n    .iti__country-list {\\n        width: max-content;\\n    }\\n\\n    .iti__country-name {\\n        color: #000;\\n    }\\n\\n\\n    /*  */\\n\\n    .item-label a {\\n        color: rgb(0, 46, 93);\\n        ;\\n    }\\n\\n    /*  */\\n    /* Hide the default checkbox */\\n    input[type=\"checkbox\"] {\\n        display: none;\\n    }\\n\\n    /* Style the custom checkbox */\\n    .checkbox-container label {\\n        display: flex;\\n        align-items: center;\\n        cursor: pointer;\\n    }\\n\\n    .custom-checkbox {\\n        width: 11px;\\n        height: 11px;\\n        background-color: #f0f0f0;\\n        border: 0;\\n        border-radius: 4px;\\n        margin-left: 6px;\\n        position: relative;\\n        transition: background-color 0.2s;\\n    }\\n\\n    /* Show checkmark when checkbox is checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox {\\n        background-color: rgb(0, 46, 93);\\n        /* Background color for checked state */\\n        border-color: rgb(0, 46, 93);\\n    }\\n\\n\\n    .custom-checkbox::after {\\n        content: \\'\\';\\n        position: absolute;\\n        top: 0px;\\n        left: 4px;\\n        width: 3px;\\n        height: 7px;\\n        border: solid white;\\n        border-width: 0 2px 2px 0;\\n        transform: rotate(45deg);\\n        opacity: 0;\\n        transition: opacity 0.2s;\\n    }\\n\\n    /* Display checkmark when checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox::after {\\n        opacity: 1;\\n    }\\n\\n\\n    .arabic .iti--allow-dropdown .iti__flag-container,\\n    .iti--separate-dial-code .iti__flag-container {\\n        right: 0;\\n        left: auto;\\n    }\\n\\n    .arabic .iti {\\n        direction: rtl;\\n    }\\n\\n    .arabic .iti--allow-dropdown input,\\n    .iti--allow-dropdown input[type=text],\\n    .iti--allow-dropdown input[type=tel],\\n    .iti--separate-dial-code input,\\n    .iti--separate-dial-code input[type=text],\\n    .iti--separate-dial-code input[type=tel] {\\n        padding-right: 52px;\\n    }\\n    .arabic #phone {\\n        text-align: right;\\n    }\\n    @media only screen and (max-width: 900px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n    @media only screen and (max-width: 410px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n        .last-name {\\n        position: absolute;\\n        left: -9999px;\\n        opacity: 0;\\n        pointer-events: none;\\n\\n    }\\n</style>\\n\\n<form dir=\"rtl\" id=\"form\" class=\"form-tag\" method=\"POST\" accept-charset=\"UTF-8\" id=\"form\" enctype=\"multipart/form-data\">\\n    <div class=\"row\">\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"name\">اسمك</label>\\n            <input dir=\"rtl\" class=\"input-box\" type=\"text\" id=\"name\" name=\"name\" placeholder=\"جو سميث\" required />\\n        </div>\\n\\n        <div class=\"col-md-6 textbox last-name\">\\n            <label for=\"email\">اسمك</label>\\n                                    <input class=\"input-box\" type=\"text\" id=\"last_name_back\" name=\"last_name_back\" placeholder=\"Smith\" autocomplete=\"off\"\\n                readonly onfocus=\"this.removeAttribute(\\'readonly\\');\" />\\n        </div>\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"email\">بريدك الإلكتروني</label>\\n            <input dir=\"rtl\" class=\"input-box\" type=\"email\" id=\"email\" name=\"email\" placeholder=\"example@gmail.com\" required />\\n        </div>\\n    </div>\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox arabic\">\\n            <label for=\"phone\">رقم الهاتف</label>\\n            <input dir=\"rtl\" class=\"input-box\" type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"501234567\" />\\n            <div dir=\"rtl\" class=\"alert alert-info\" style=\"display: none\"></div>\\n            <div dir=\"rtl\" class=\"alert alert-error\" style=\"display: none\"></div>\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">الخدمة المطلوبة</label>\\n            <select class=\"base-input input-box\" name=\"interest\" id=\"interest\" required>\\n                <option class=\"first\" value=\"\" disabled selected>...قم بالاختيار</option>\\n                <option value=\"Serviced Office\"> المكاتب الخاصة </option>\\n                <option value=\"Coworking\">مساحة العمل المشتركة</option>\\n                <option value=\"Virtual Office\">المكاتب الافتراضية</option>\\n                <option value=\"Meeting Rooms\">غرف الاجتماعات/المؤتمرات </option>\\n                <option value=\"Enterprise Solution\">حلول المؤسسات</option>\\n                <option value=\"Event Spaces\">قاعات الفعاليات</option>\\n                <option value=\"Coworking\">حلول تأسيس الشركات</option>\\n                <option value=\"Coworking\">خدمة إنشاء الأعمال وتقديم طلبات التأشيرة\\n                </option>\\n            </select>\\n        </div>\\n    </div>\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"message\">محتوى الرسالة</label>\\n            <textarea class=\"input-box\" id=\"message\" name=\"message\" placeholder=\" اترك لنا رسالة\"></textarea>\\n        </div>\\n    </div>\\n\\n    <!--  -->\\n    <div dir=\"rtl\"  class=\"checkbox-container\">\\n\\n        <label><input dir=\"rtl\" type=\"checkbox\" name=\"terms\"\\n                value=\"I agree to TEC\\'s Terms of Use and have read and understood the privacy policy.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span dir=\"rtl\" class=\"item-label\">  أوافق على\\n                <a target=\"_blank\" href=\"https://executivecentre.ae/ar/terms-conditions/\">شروط الاستخدام\\n                </a> الخاصة بالمركز التنفيذي وأقر بأنني قرأت وفهمت\\n                <a target=\"_blank\" href=\"https://executivecentre.ae/ar/privacy-policy/\">سياسة الخصوصية.\\n                </a></span>\\n        </label>\\n    </div>\\n    <div dir=\"rtl\"  class=\"checkbox-container\">\\n        <label>\\n            <input dir=\"rtl\"  type=\"checkbox\" name=\"offer\" value=\"Please email me special offers, exclusive invites and more.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span dir=\"rtl\" class=\"item-label\">أود الحصول على العروض الخاصة، الدعوات الحصرية، والمزيد عبر البريد الإلكتروني.\\n            </span>\\n        </label>\\n    </div>\\n    <div></div>\\n    <div></div>\\n    <div></div>\\n\\n    <!-- <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">Send</button> -->\\n    <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">\\n        <span class=\"button-text\">إرسال</span>\\n        <span class=\"loader\" id=\"loaderIcon\" style=\"display: none;\">\\n            <!-- You can use an SVG or any loader icon here -->\\n            <i class=\"fa fa-spinner fa-spin\"></i>\\n        </span>\\n    </button>\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <span class=\"alert error-main\">فشل إرسال النموذج، يرجى المحاولة مرة أخرى لاحقًا!\\n            </span>\\n        </div>\\n    </div>\\n</form>\\n\\n<!--  -->\\n\\n<!-- form functions -->\\n\\n\\n<script>\\n\\n    function checkService() {\\n        // Check if the current window is an iframe\\n        const isEmbedded = window.self !== window.top;\\n        if (isEmbedded) {\\n            // Get the referrer URL to know the main site embedding this iframe\\n            const refUrl = document.referrer;\\n            const referrerUrl = window.parent.location;\\n            if (referrerUrl) {\\n                // Parse URL parameters if available\\n                const urlParams = new URLSearchParams(new URL(referrerUrl).search);\\n                const path = referrerUrl?.pathname;\\n                let cleanPath = path.replace(/\\\\/ar\\\\//g, \\'\\');\\n                if(cleanPath==\\'contact-us\\'||cleanPath==\"ar/contact-us\" || cleanPath==\"contact\"){\\n                    const service = urlParams.get(\\'services\\') || \"\";\\n                    return service\\n                }\\n                else{\\n                    return cleanPath\\n                }\\n            }\\n            else {\\n                return \\'\\';\\n            }\\n        } else {\\n            const urlParams = new URLSearchParams(window.location.search);\\n            const service = urlParams.get(\\'services\\') || \"\";\\n            return service;\\n        }\\n    }\\n\\n\\n    function initializeScript() {\\n\\n\\n        const utmParams = getUTMParameters();\\n        console.log(utmParams);\\n        const form = document.getElementById(\\'form\\');\\n        const phoneInputField = document.querySelector(\"#phone\");\\n\\n        const countrtyInputField = document.querySelector(\"#country\");\\n        const countryTextbox = document.querySelector(\"#countryTextbox\");\\n        // Check if phoneInputField is available immediately\\n        if (phoneInputField) {\\n            // Listen for events of number field\\n\\n            const info = document.querySelector(\".alert-info\");\\n            const error = document.querySelector(\".alert-error\");\\n\\n            // List of our error messages\\n            const errorMap = [\"رقم غير صالح\", \"رمز البلد غير صالح\", \"رقم الهاتف قصير جدًا\", \"رقم الهاتف طويل جدًا\", \"رقم غير صالح\"];\\n\\n            // Utility to get the user IP location\\n            function getIp(callback) {\\n                const cachedCountry = sessionStorage.getItem(\\'countryCode\\');\\n                if (cachedCountry) {\\n                    callback(cachedCountry); // Use the cached country code\\n                } else {\\n                    fetch(\\'https://ipapi.co/json\\', { mode: \\'no-cors\\' })\\n                        .then(() => {\\n                            callback(\\'ae\\');  // Use \\'ae\\' if response is opaque\\n                            sessionStorage.setItem(\\'countryCode\\', \\'ae\\');  // Cache the country code\\n                        })\\n                        .catch(() => {\\n                            callback(\\'ae\\'); // Default to \\'ae\\' on error\\n                        });\\n                }\\n            }\\n\\n            // Set the country to users dep: getIp()\\n\\n            const phoneInput = window.intlTelInput(phoneInputField, {\\n                initialCountry: \"auto\",\\n                nationalMode: true,\\n                geoIpLookup: getIp,\\n                utilsScript: \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js\",\\n            });\\n            // Get all country data\\n\\n            const countryData = window.intlTelInputGlobals.getCountryData();\\n\\n            // Create an array of <option> elements for each country\\n            const countryOptions = countryData.map(country => {\\n                const flagUrl = `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/flags/4x3/${country.iso2.toLowerCase()}.svg`;\\n                return `<option value=\"${country.iso2}\" data-country-code=\"+${country.dialCode}\">${country.name} <img src=\"${flagUrl}\" class=\"flag-icon\" alt=\"${country.name} Flag\"></option>`;\\n            });\\n\\n\\n            // Function to retrieve items from sessionStorage\\n\\n            // Example usage\\n\\n\\n            const checkervice = checkService()\\n\\n            const interestMapping = {\\n                \"private-office\": \"المكاتب الخاصة\",\\n                \"serviced-offices\": \"المكاتب الخاصة\",\\n                \"coworking\": \"مساحة العمل المشتركة\",\\n                \"virtual-office\": \"المكاتب الافتراضية\",\\n                \"enterprise-solution\": \"غرف الاجتماعات/المؤتمرات\",\\n                \"meeting-rooms\": \"حلول المؤسسات\",\\n                \"event-spaces\": \"قاعات الفعاليات\",\\n                \"business-setup\": \"حلول تأسيس الشركات\",\\n                \"business-setup-dwtc\": \"حلول تأسيس الشركات\",\\n            };\\n                            // \"business-setup-dwtc\": \"خدمة إنشاء الأعمال وتقديم طلبات التأشيرة\"\\n\\n            \\n            if (checkervice) {\\n                const interestSelect = document.getElementById(\\'interest\\');\\n                if (interestMapping[checkervice]) {\\n                    const targetText = interestMapping[checkervice];\\n                    // Loop through options to find a match by text\\n                    Array.from(interestSelect.options).forEach(option => {\\n                        if (option.textContent.trim() === targetText) {\\n                            option.selected = true;\\n                        }\\n                    });\\n                }\\n            }\\n\\n            // Run function when user submits the form\\n            document.getElementById(\"form\").addEventListener(\"submit\", function (e) {\\n                e.preventDefault();\\n                // \\n                // \\n                let interestedService = \"\";\\n                const serviceMapping = {\\n                   \"حلول تأسيس الشركات\": \"Business Setup\",\\n                    \"خدمة إنشاء الأعمال وتقديم طلبات التأشيرة\":\"Business Setup & Visa Application Service\"\\n                }\\n                var interestSelect = document.getElementById(\\'interest\\');\\n                var selectedText = interestSelect.options[interestSelect.selectedIndex].text;\\n                if (serviceMapping[selectedText]) {\\n                    interestedService = serviceMapping[selectedText]; // Set the selected value\\n                }\\n                // \\n\\n                const submitButton = document.getElementById(\"submitBtnForm\");\\n                const loaderIcon = document.getElementById(\"loaderIcon\");\\n                const buttonText = document.querySelector(\".button-text\");\\n\\n                // Show the loader icon and disable the button\\n                buttonText.style.display = \"none\";\\n                loaderIcon.style.display = \"inline-block\";\\n                submitButton.disabled = true;\\n\\n                // Get phone value\\n                const phoneNumber = phoneInput.getNumber();\\n                const selectedCountryData = phoneInput.getSelectedCountryData();\\n\\n                info.style.display = \"none\";\\n                error.style.display = \"none\";\\n\\n                // Locate and get the form data\\n                var data = new FormData(e.target);\\n\\n                const MainError = document.querySelector(\".error-main\");\\n\\n                // Prepare form entries for Web-to-Lead\\n                var formEntries = new URLSearchParams();\\n                var terms = data.get(\"terms\");\\n                var offer = data.get(\"offer\");\\n                if (!terms) {\\n                    terms = \"\"\\n                }\\n\\n                if (!offer) {\\n                    offer = \"\"\\n                }\\n\\n                // \\n                /////////////\\n\\n                var lastname = data.get(\"last_name_back\");\\n\\n                if (lastname) {\\n                    console.log(lastname);\\n\\n                    const formEntriesBot = new FormData();\\n                    formEntriesBot.append(\"first_name\", data.get(\"name\"));\\n                    formEntriesBot.append(\"email\", data.get(\"email\"));\\n                    formEntriesBot.append(\"phone\", phoneNumber);\\n                    formEntriesBot.append(\"offer\", offer);\\n                    formEntriesBot.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                    formEntriesBot.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                    formEntriesBot.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                    formEntriesBot.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                    formEntriesBot.append(\"interest\", data.get(\"interest\"));\\n                    formEntriesBot.append(\"message\", data.get(\"message\"));\\n                    formEntriesBot.append(\"url\", parent.window.location.href);\\n                    // console.log([...formEntriesBot]); // log values\\n\\n                    fetch(\"https://hooks.zapier.com/hooks/catch/4438683/uhbi63t/\", {\\n                        method: \"POST\",\\n                        body: formEntriesBot\\n                    })\\n                        .then(response => {\\n                            if (!response.ok) {\\n                                throw new Error(\"Network response was not ok\");\\n                            }\\n                         MainError.style.display = \"flex\"\\n                        })\\n                        .then(result => {\\n                            console.log(\"Zapier hook success:\", result);\\n                        })\\n                        .catch(error => {\\n                            console.error(\"Zapier hook error:\", error);\\n                        })\\n                        .finally(() => {\\n                                buttonText.style.display = \"block\";\\n                                loaderIcon.style.display = \"none\";\\n                                buttonText.textContent = \"Thank You\";\\n                                parent.window.location.href = \"/ar/booking-thank-you\";\\n               \\n                        });\\n\\n                    return;\\n                }\\n\\n                console.log(\\'no name\\')\\n\\n                // /////\\n                formEntries.append(\"oid\", \"00D90000000cwl5\");  // Replace with your Salesforce OID\\n                formEntries.append(\"first_name\", data.get(\"name\"));\\n                formEntries.append(\"email\", data.get(\"email\"));\\n                formEntries.append(\"phone\", phoneNumber);\\n                formEntries.append(\"terms\", terms);\\n                formEntries.append(\"offer\", offer);\\n                formEntries.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                formEntries.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/ar/\");\\n                formEntries.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                formEntries.append(\"00N90000003gjYi\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/ar/\");\\n                formEntries.append(\"00N6F00000EDfGh\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"00N6F00000EDfGm\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                // formEntries.append(\"retURL\", \"https://executivecentre.ae/\"); // Redirect after submission\\n\\n                formEntries.append(\"Interested_Services__c\", interestedService || \"\");\\n                // Additional fields can be added here as needed (like Interest, etc.)\\n                formEntries.append(\"00N90000003ggrg\", data.get(\"interest\"));  \\n                formEntries.append(\\'00N6F00000XRBa0\\', data.get(\"interest\"))\\n                formEntries.append(\"00N90000003hH7z\", data.get(\"message\"));\\n                formEntries.append(\"00N90000003gh5e\", \\'United Arab Emirates\\');\\n                formEntries.append(\"00N90000003gh5a\", \\'Dubai\\');\\n                formEntries.append(\"debug\", \"1\");\\n                formEntries.append(\"debugEmail\", \"tapiwa@arenacapital.com\");\\n                if (phoneInput.isValidNumber()) {\\n                    info.style.display = \"none\";\\n\\n                    // Send form data to Salesforce Web-to-Lead\\n\\n                    const salesforceRequest = fetch(\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\", {\\n                        method: \"POST\",\\n                        headers: {\\n                            \"Content-Type\": \"application/x-www-form-urlencoded\",\\n                        },\\n                        body: formEntries.toString()\\n                    });\\n\\n                    // Zapier request (using JSON)\\n\\n                    const zapierRequest = fetch(\"https://hooks.zapier.com/hooks/catch/4438683/3r1ku2v/\", {\\n                        method: \"POST\",\\n                        // headers: {\\n                        //     \"Content-Type\": \"application/json\",\\n                        // },\\n                        body: formEntries\\n                    });\\n\\n                    Promise.all([salesforceRequest, zapierRequest])\\n                        .then(responses => {\\n                            const salesforceResponse = responses[0];\\n                            const zapierResponse = responses[1];\\n\\n                            if (salesforceResponse.ok || zapierResponse.status) {\\n                                // Redirect to thank you page after both submissions succeed\\n                                // console.log(salesforceResponse)\\n                                // console.log(zapierResponse)\\n                                parent.window.location.href = \"/ar/thank-you\";\\n                            } else {\\n                                MainError.style.display = \"flex\"\\n                            }\\n                        })\\n                        .catch(function (error) {\\n                            console.log(error)\\n                            parent.window.location.href = \"/ar/thank-you\";\\n                            console.error(\"An error occurred during form submission:\", error);\\n                        })\\n                        .finally(function () {\\n                            // Hide the loader icon and re-enable the button\\n                            buttonText.style.display = \"inline\";\\n                            loaderIcon.style.display = \"none\";\\n                            submitButton.disabled = false;\\n                        });\\n                } else if (!phoneInputField.value.trim()) {\\n                    error.style.display = \"\";\\n                    const errMsg = \"رقم الهاتف مطلوب\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                } else {\\n                    const errorCode = phoneInput.getValidationError();\\n                    error.style.display = \"\";\\n                    const errMsg = errorMap[errorCode] || \"رقم غير صالح\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                }\\n            });\\n            // \\n        } else {\\n            // If phoneInputField is not available immediately, check again after 3 seconds\\n            setTimeout(initializeScript, 3000);\\n        }\\n    }\\n\\n\\n    function reloadOnPageChange() {\\n        function addPushStateListener(listener) {\\n            if (!Proxy) return;\\n            window.history.pushState = new Proxy(window.history.pushState, {\\n                apply: (target, thisArg, argArray) => {\\n                    target.apply(thisArg, argArray);\\n                    listener();\\n                },\\n            });\\n        }\\n\\n        addPushStateListener(() => {\\n            initializeScript();\\n        });\\n    }\\n\\n    function getUTMParameters() {\\n        const urlParamsForm = new URLSearchParams(window.location.search);\\n\\n        // Use URL parameters first, fallback to sessionStorage if not available\\n        const utmLeadSource = urlParamsForm.get(\\'utm_lead_source\\') || sessionStorage.getItem(\\'utm_lead_source\\');\\n        const utmSourceLvl1 = urlParamsForm.get(\\'utm_source_lvl_1\\') || sessionStorage.getItem(\\'utm_source_lvl_1\\');\\n        const utmSourceLvl2 = urlParamsForm.get(\\'utm_source_lvl_2\\') || sessionStorage.getItem(\\'utm_source_lvl_2\\');\\n        const utmSourceLvl3 = urlParamsForm.get(\\'utm_source_lvl_3\\') || sessionStorage.getItem(\\'utm_source_lvl_3\\');\\n        const gadSource = urlParamsForm.get(\\'gad_source\\') || sessionStorage.getItem(\\'gad_source\\');\\n        const gclid = urlParamsForm.get(\\'gclid\\') || sessionStorage.getItem(\\'gclid\\');\\n\\n        return {\\n            utmLeadSource,\\n            utmSourceLvl1,\\n            utmSourceLvl2,\\n            utmSourceLvl3,\\n            gadSource,\\n            gclid\\n        };\\n    }\\n\\n</script>\\n\\n\\n<script>\\n    // Function to check and add the class\\n\\n    window.addEventListener(\\'load\\', function () {\\n        // Call the function initially\\n\\n\\n        function checkAndInitialize() {\\n            if (typeof initializeScript === \"function\") {\\n                initializeScript();\\n                console.log(\\'here\\')\\n            } else {\\n                // If initializeScript doesn\\'t exist, wait for 2 seconds and check again\\n                setTimeout(checkAndInitialize, 1000);\\n            }\\n        }\\n        let previousRoute = window.location.pathname;\\n\\n        setInterval(() => {\\n            const currentRoute = window.location.pathname;\\n            if (currentRoute !== previousRoute) {\\n                // Route has changed\\n                previousRoute = currentRoute;\\n                if (currentRoute === \"/\") {\\n                    console.log(\\'go t home\\')\\n                    checkAndInitialize();\\n                }\\n            }\\n        }, 1000);\\n        initializeScript();\\n\\n    })\\n\\n\\n\\n</script>\\n\\n<script>\\ndocument.addEventListener(\"DOMContentLoaded\", function () {\\n  const inputs = document.querySelectorAll(\"input\");\\n\\n  inputs.forEach(input => {\\n    // Turn off autocomplete\\n    input.setAttribute(\"autocomplete\", \"off\");\\n\\n    // Prevent autofill with readonly-until-focus trick\\n    input.setAttribute(\"readonly\", true);\\n    input.addEventListener(\"focus\", function () {\\n      this.removeAttribute(\"readonly\");\\n    });\\n  });\\n});\\n</script>\\n'},zZoXT8YJ3:{html:'<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css\" />\\n<script src=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/intlTelInput.min.js\"></script>\\n\\n<style>\\n    .input-box {\\n        flex: 1 1 0%;\\n        border: none;\\n        outline: none;\\n        background-color: transparent;\\n        padding: 16px 0;\\n        color: #000;\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        width: 100%;\\n        border-bottom: 1px solid rgb(0, 46, 93);\\n        border-radius: 0;\\n        accent-color: rgb(0, 117, 255);\\n\\n    }\\n\\n    .textbox {\\n        position: relative;\\n        display: flex;\\n        flex-direction: column;\\n        color: #000;\\n        accent-color: rgb(0, 117, 255);\\n        border-radius: 0px;\\n        /* overflow: auto; */\\n        /* user-select: none; */\\n        font-size: 14px;\\n        font-style: normal;\\n        letter-spacing: 0em;\\n        line-height: 1.5em;\\n        margin-bottom: 25px;\\n        gap: 10px;\\n    }\\n\\n    label {\\n        /* padding-left: 16px; */\\n        color: rgb(0, 46, 93);\\n    }\\n\\n    form {\\n        place-content: center flex-start;\\n        font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));\\n        place-self: start;\\n        border-radius: 10px;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: column;\\n        gap: 10px;\\n        height: 100%;\\n        /* overflow: visible; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: flex;\\n        flex-direction: row;\\n        align-items: center;\\n        justify-content: center;\\n        color: rgb(0, 0, 0);\\n        border: 1px solid rgb(0, 46, 93);\\n        outline: none;\\n        cursor: pointer;\\n        user-select: none;\\n        border-radius: 0px;\\n        padding: 18px;\\n        font-size: 16px;\\n        font-style: normal;\\n\\n        letter-spacing: 0em;\\n        line-height: 1em;\\n        width: 100%;\\n        background: transparent;\\n    }\\n\\n    .submit-button:hover {\\n        background: rgb(0, 46, 93);\\n        color: #fff;\\n    }\\n\\n    .row {\\n        display: flex;\\n        width: 100%;\\n        place-content: center;\\n        align-items: center;\\n        display: flex;\\n        flex: 0 0 auto;\\n        flex-flow: row;\\n        gap: 25px;\\n        height: min-content;\\n        /* overflow: auto; */\\n        padding: 0px;\\n        position: relative;\\n        width: 100%;\\n    }\\n\\n    .col-md-6 {\\n        width: 50%;\\n    }\\n\\n    .col-md-12 {\\n        width: 100%;\\n    }\\n\\n    .alert-error,\\n    .error-main {\\n        display: flex;\\n        align-items: center;\\n        color: rgb(255, 0, 0);\\n    }\\n\\n    .error-main {\\n        display: none;\\n        justify-content: center;\\n        text-align: center;\\n    }\\n\\n\\n\\n    @media (max-width: 500px) {\\n        .col-md-6 {\\n            width: 100%;\\n        }\\n\\n        .row {\\n            flex-direction: column;\\n        }\\n\\n        .textbox {\\n            margin-bottom: 0;\\n        }\\n    }\\n\\n    .submit-button {\\n        position: relative;\\n        display: inline-flex;\\n        align-items: center;\\n    }\\n\\n\\n    .loader {\\n        border: 4px solid #000;\\n        /* Light grey */\\n        border-top: 4px solid #000;\\n        /* Blue */\\n        border-radius: 50%;\\n        width: 15px;\\n        height: 15px;\\n        animation: spin 2s linear infinite;\\n        margin-left: 10px;\\n    }\\n\\n    @keyframes spin {\\n        0% {\\n            transform: rotate(0deg);\\n        }\\n\\n        100% {\\n            transform: rotate(360deg);\\n        }\\n    }\\n\\n    /* Basic styling for the select element */\\n    .custom-select {\\n        position: relative;\\n        display: inline-block;\\n        width: 200px;\\n        /* Adjust width as needed */\\n    }\\n\\n    /* Hide the default arrow */\\n    select {\\n        /* appearance: none; */\\n        /* -webkit-appearance: none; */\\n        /* -moz-appearance: none; */\\n        width: 100%;\\n        /* padding: 10px 30px 10px 10px; */\\n        /* Adjust padding to make room for the custom arrow */\\n        border: 1px solid #ccc;\\n        border-radius: 4px;\\n        /* background: url(\\'data:image/svg+xml;utf8,<svg fill=\"none\" height=\"24\" stroke=\"beige\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><polyline points=\"6 9 12 15 18 9\"/></svg>\\') no-repeat right 10px center; */\\n        background-size: 16px 16px;\\n        /* Adjust size as needed */\\n    }\\n\\n    /* Optional: additional styling for the custom select element */\\n    select:focus {\\n        /* outline: none; */\\n    }\\n\\n    textarea {\\n        width: 100%;\\n        /* Adjust the width as needed */\\n        /* height: calc(1.5em * 5); */\\n        /* 1.5em is the line height, 5 is the number of lines */\\n        /* overflow-y: auto; */\\n        /* Add a vertical scrollbar if content exceeds the height */\\n        /* resize: none; */\\n        /* Prevent resizing */\\n    }\\n\\n    .input-file {\\n        text-align: center;\\n        padding-left: 10px;\\n        color: #6f6f6f;\\n        display: flex;\\n        align-items: center;\\n    }\\n\\n    option {\\n        color: #000;\\n        padding-left: 6px;\\n        margin-left: 6px;\\n    }\\n\\n    .base-input,\\n    .first {\\n        color: #6f6f6f;\\n    }\\n\\n    #fileRow .textbox {\\n        padding-bottom: 18px;\\n        padding-top: 14px;\\n        padding-left: 16px;\\n\\n    }\\n\\n    .iti__selected-flag {\\n        padding: 0 6px 0 0;\\n    }\\n\\n    .iti__country-list {\\n        width: max-content;\\n    }\\n\\n    .iti__country-name {\\n        color: #000;\\n    }\\n\\n\\n    /*  */\\n\\n    .item-label a {\\n        color: rgb(0, 46, 93);\\n        ;\\n    }\\n\\n    /*  */\\n    /* Hide the default checkbox */\\n    input[type=\"checkbox\"] {\\n        display: none;\\n    }\\n\\n    /* Style the custom checkbox */\\n    .checkbox-container label {\\n        display: flex;\\n        align-items: center;\\n        cursor: pointer;\\n    }\\n\\n    .custom-checkbox {\\n        width: 11px;\\n        height: 11px;\\n        background-color: #f0f0f0;\\n        border: 0;\\n        border-radius: 4px;\\n        margin-right: 6px;\\n        position: relative;\\n        transition: background-color 0.2s;\\n    }\\n\\n    /* Show checkmark when checkbox is checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox {\\n        background-color: rgb(0, 46, 93);\\n        /* Background color for checked state */\\n        border-color: rgb(0, 46, 93);\\n    }\\n\\n\\n    .custom-checkbox::after {\\n        content: \\'\\';\\n        position: absolute;\\n        top: 0px;\\n        left: 4px;\\n        width: 3px;\\n        height: 7px;\\n        border: solid white;\\n        border-width: 0 2px 2px 0;\\n        transform: rotate(45deg);\\n        opacity: 0;\\n        transition: opacity 0.2s;\\n    }\\n\\n    /* Display checkmark when checked */\\n    input[type=\"checkbox\"]:checked+.custom-checkbox::after {\\n        opacity: 1;\\n    }\\n\\n    /*  */\\n\\n    .last-name {\\n        position: absolute;\\n        left: -9999px;\\n        opacity: 0;\\n        pointer-events: none;\\n\\n    }\\n\\n    /*  */\\n\\n    @media only screen and (max-width: 900px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n\\n    @media only screen and (max-width: 410px) {\\n        .tec-agree-span {\\n            /* width: 13px; */\\n        }\\n    }\\n</style>\\n\\n<form id=\"form\" class=\"form-tag\" method=\"POST\" accept-charset=\"UTF-8\" id=\"form\" enctype=\"multipart/form-data\">\\n    <div class=\"row\">\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"name\">Name</label>\\n            <input class=\"input-box\" type=\"text\" id=\"name\" name=\"name\" placeholder=\"Joe Smith\" required />\\n        </div>\\n        <div class=\"col-md-6 textbox last-name\">\\n            <input class=\"input-box\" type=\"text\" id=\"last_name_back\" name=\"last_name_back\" placeholder=\"Smith\" autocomplete=\"off\"\\n                readonly onfocus=\"this.removeAttribute(\\'readonly\\');\" />\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"email\">Email</label>\\n            <input class=\"input-box\" type=\"email\" id=\"email\" name=\"email\" placeholder=\"example@gmail.com\" required />\\n        </div>\\n    </div>\\n    <div class=\"row\">\\n\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"phone\">Phone</label>\\n            <input class=\"input-box\" type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"501234567\" />\\n            <div class=\"alert alert-info\" style=\"display: none\"></div>\\n            <div class=\"alert alert-error\" style=\"display: none\"></div>\\n        </div>\\n        <div class=\"col-md-6 textbox\">\\n            <label for=\"interest\">Service</label>\\n            <select class=\"base-input input-box\" name=\"interest\" id=\"interest\" required>\\n                <option class=\"first\" value=\"\" disabled selected>Select...</option>\\n                <option value=\"Serviced Office\">Private Offices</option>\\n                <option value=\"Coworking\">Coworking Spaces</option>\\n                <option value=\"Virtual Office\">Virtual Offices</option>\\n                <option value=\"Meeting Rooms\">Meeting/Conference Rooms</option>\\n                <option value=\"Enterprise Solution\">Enterprise Solutions</option>\\n                <option value=\"Event Spaces\">Event Spaces</option>\\n                <option value=\"Coworking\">Business Setup</option>\\n                <option value=\"Coworking\">Business Setup & Visa Application Service</option>\\n            </select>\\n        </div>\\n    </div>\\n\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <label for=\"message\">Message</label>\\n            <textarea class=\"input-box\" id=\"message\" name=\"message\" placeholder=\"Leave a message\"></textarea>\\n        </div>\\n    </div>\\n\\n    <!--  -->\\n    <div class=\"checkbox-container\">\\n        <label><input type=\"checkbox\" name=\"terms\"\\n                value=\"I agree to TEC\\'s Terms of Use and have read and understood the privacy policy.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox tec-agree-span\"></span>\\n            <span class=\"item-label tec-agree\">I agree to TEC\\'s <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/terms-conditions/\">Terms of\\n                    Use</a> and\\n                have read and understood the <a target=\"_blank\"\\n                    href=\"https://executivecentre.ae/privacy-policy/\">Privacy\\n                    Policy</a>.</span>\\n        </label>\\n    </div>\\n    <div class=\"checkbox-container\">\\n        <label>\\n            <input type=\"checkbox\" name=\"offer\" value=\"Please email me special offers, exclusive invites and more.\"\\n                checked=\"checked\">\\n            <span class=\"custom-checkbox\"></span>\\n            <span class=\"item-label\">Please email me special offers, exclusive invites, and more.</span>\\n        </label>\\n    </div>\\n    <div></div>\\n    <div></div>\\n    <div></div>\\n\\n    <!-- <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">Send</button> -->\\n    <button type=\"submit\" class=\"submit-button\" id=\"submitBtnForm\">\\n        <span class=\"button-text\">SUBMIT</span>\\n        <span class=\"loader\" id=\"loaderIcon\" style=\"display: none;\">\\n            <!-- You can use an SVG or any loader icon here -->\\n            <i class=\"fa fa-spinner fa-spin\"></i>\\n        </span>\\n    </button>\\n    <div class=\"row\">\\n        <div class=\"col-md-12 textbox\">\\n            <span class=\"alert error-main\">Form submission has failed, Please try again later!</span>\\n        </div>\\n    </div>\\n</form>\\n\\n<!--  -->\\n\\n<!-- form functions -->\\n\\n\\n<script>\\n    function checkService() {\\n        // Check if the current window is an iframe\\n        const isEmbedded = window.self !== window.top;\\n        if (isEmbedded) {\\n            // Get the referrer URL to know the main site embedding this iframe\\n            const refUrl = document.referrer;\\n            const referrerUrl = window.parent.location;\\n\\n            if (referrerUrl) {\\n\\n                // Parse URL parameters if available\\n                const urlParams = new URLSearchParams(new URL(referrerUrl).search);\\n                const path = referrerUrl?.pathname;\\n                let cleanPath = path.replace(/^\\\\/+/, \\'\\');\\n                if (cleanPath == \\'contact-us\\' || cleanPath == \"ar/contact-us\" || cleanPath == \"contact\") {\\n                    const service = urlParams.get(\\'services\\') || \"\";\\n                    return service\\n                }\\n                else {\\n                    return cleanPath\\n                }\\n\\n            }\\n            else {\\n                return \\'\\';\\n            }\\n        } else {\\n\\n            const path = window.location.pathname;\\n            console.log(path);\\n            const urlParams = new URLSearchParams(window.location.search);\\n            const service = urlParams.get(\\'services\\') || \"\";\\n            return service;\\n        }\\n    }\\n\\n\\n    function initializeScript() {\\n\\n\\n        const utmParams = getUTMParameters();\\n        console.log(utmParams);\\n        const form = document.getElementById(\\'form\\');\\n        const phoneInputField = document.querySelector(\"#phone\");\\n\\n        const countrtyInputField = document.querySelector(\"#country\");\\n        const countryTextbox = document.querySelector(\"#countryTextbox\");\\n        // Check if phoneInputField is available immediately\\n        if (phoneInputField) {\\n            // Listen for events of number field\\n\\n            const info = document.querySelector(\".alert-info\");\\n            const error = document.querySelector(\".alert-error\");\\n\\n            // List of our error messages\\n            const errorMap = [\"Invalid number\", \"Invalid country code\", \"Phone number is too short\", \"Phone number is too long\", \"Invalid number\"];\\n\\n            // Utility to get the user IP location\\n            function getIp(callback) {\\n                const cachedCountry = sessionStorage.getItem(\\'countryCode\\');\\n                if (cachedCountry) {\\n                    callback(cachedCountry); // Use the cached country code\\n                } else {\\n                    fetch(\\'https://ipapi.co/json\\', { mode: \\'no-cors\\' })\\n                        .then(() => {\\n                            callback(\\'ae\\');  // Use \\'ae\\' if response is opaque\\n                            sessionStorage.setItem(\\'countryCode\\', \\'ae\\');  // Cache the country code\\n                        })\\n                        .catch(() => {\\n                            callback(\\'ae\\'); // Default to \\'ae\\' on error\\n                        });\\n                }\\n            }\\n\\n            // Set the country to users dep: getIp()\\n\\n            const phoneInput = window.intlTelInput(phoneInputField, {\\n                initialCountry: \"auto\",\\n                nationalMode: true,\\n                geoIpLookup: getIp,\\n                utilsScript: \"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/js/utils.js\",\\n            });\\n            // Get all country data\\n\\n            const countryData = window.intlTelInputGlobals.getCountryData();\\n\\n            // Create an array of <option> elements for each country\\n            const countryOptions = countryData.map(country => {\\n                const flagUrl = `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/flags/4x3/${country.iso2.toLowerCase()}.svg`;\\n                return `<option value=\"${country.iso2}\" data-country-code=\"+${country.dialCode}\">${country.name} <img src=\"${flagUrl}\" class=\"flag-icon\" alt=\"${country.name} Flag\"></option>`;\\n            });\\n\\n\\n\\n            const checkervice = checkService();\\n            const interestMapping = {\\n                \"private-office\": \"Private Offices\",\\n                \"serviced-offices\": \"Private Offices\",\\n                \"coworking\": \"Coworking Space\",\\n                \"virtual-office\": \"Virtual Offices\",\\n                \"enterprise-solution\": \"Enterprise Solutions\",\\n                \"meeting-rooms\": \"Meeting/Conference Rooms\",\\n                \"event-spaces\": \"Event Spaces\",\\n                \"business-setup\": \"Business Setup\",\\n                \"business-setup-dwtc\": \"Business Setup\"\\n            };\\n\\n            // Business Setup & Visa Application Service\\n            if (checkervice) {\\n                let interestSelect = document.getElementById(\\'interest\\');\\n\\n                if (interestMapping[checkervice]) {\\n                    const targetText = interestMapping[checkervice];\\n                    console.log(targetText)\\n                    // Loop through options to find a match by text\\n                    Array.from(interestSelect.options).forEach(option => {\\n                        if (option.textContent.trim() === targetText) {\\n                            option.selected = true;\\n                        }\\n                    });\\n                }\\n            }\\n\\n            // Run function when user submits the form\\n            document.getElementById(\"form\").addEventListener(\"submit\", function (e) {\\n                e.preventDefault();\\n                var data = new FormData(e.target);\\n                let interestedService = \"\";\\n                const serviceMapping = {\\n                    \"Business Setup\": \"Business Setup\",\\n                    \"Business Setup & Visa Application Service\": \"Business Setup & Visa Application Service\"\\n                }\\n                var interestSelect = document.getElementById(\\'interest\\');\\n                var selectedText = interestSelect.options[interestSelect.selectedIndex].text;\\n                if (serviceMapping[selectedText]) {\\n                    interestedService = serviceMapping[selectedText]; // Set the selected value\\n                }\\n\\n                const submitButton = document.getElementById(\"submitBtnForm\");\\n                const loaderIcon = document.getElementById(\"loaderIcon\");\\n                const buttonText = document.querySelector(\".button-text\");\\n\\n                // Show the loader icon and disable the button\\n                buttonText.style.display = \"none\";\\n                loaderIcon.style.display = \"inline-block\";\\n                submitButton.disabled = true;\\n\\n                // Get phone value\\n                const phoneNumber = phoneInput.getNumber();\\n                const selectedCountryData = phoneInput.getSelectedCountryData();\\n\\n\\n\\n\\n\\n                info.style.display = \"none\";\\n                error.style.display = \"none\";\\n\\n                // Locate and get the form data\\n\\n\\n                const MainError = document.querySelector(\".error-main\");\\n\\n                // Prepare form entries for Web-to-Lead\\n                var formEntries = new URLSearchParams();\\n                var terms = data.get(\"terms\");\\n                var offer = data.get(\"offer\");\\n                if (!terms) {\\n                    terms = \"\"\\n                }\\n\\n                if (!offer) {\\n                    offer = \"\"\\n                }\\n                var lastname = data.get(\"last_name_back\");\\n\\n                if (lastname) {\\n                    console.log(lastname);\\n\\n                    const formEntriesBot = new FormData();\\n                    formEntriesBot.append(\"first_name\", data.get(\"name\"));\\n                    formEntriesBot.append(\"email\", data.get(\"email\"));\\n                    formEntriesBot.append(\"phone\", phoneNumber);\\n                    formEntriesBot.append(\"offer\", offer);\\n                    formEntriesBot.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                    formEntriesBot.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                    formEntriesBot.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                    formEntriesBot.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                    formEntriesBot.append(\"interest\", data.get(\"interest\"));\\n                    formEntriesBot.append(\"message\", data.get(\"message\"));\\n                    formEntriesBot.append(\"url\", parent.window.location.href);\\n                    // console.log([...formEntriesBot]); // log values\\n\\n                    fetch(\"https://hooks.zapier.com/hooks/catch/4438683/uhbi63t/\", {\\n                        method: \"POST\",\\n                        body: formEntriesBot\\n                    })\\n                        .then(response => {\\n                            if (!response.ok) {\\n                                throw new Error(\"Network response was not ok\");\\n                            }\\n                         MainError.style.display = \"flex\"\\n                        })\\n                        .then(result => {\\n                            console.log(\"Zapier hook success:\", result);\\n                        })\\n                        .catch(error => {\\n                            console.error(\"Zapier hook error:\", error);\\n                        })\\n                        .finally(() => {\\n                                buttonText.style.display = \"block\";\\n                                loaderIcon.style.display = \"none\";\\n                                buttonText.textContent = \"Thank You\";\\n                                parent.window.location.href = \"/booking-thank-you\";\\n               \\n                        });\\n\\n                    return;\\n                }\\n\\n\\n                console.log(\\'no name\\')\\n                // /////\\n                formEntries.append(\"oid\", \"00D90000000cwl5\");  // Replace with your Salesforce OID\\n                formEntries.append(\"first_name\", data.get(\"name\"));\\n                formEntries.append(\"email\", data.get(\"email\"));\\n                formEntries.append(\"phone\", phoneNumber);\\n                formEntries.append(\"terms\", terms);\\n                formEntries.append(\"offer\", offer);\\n                formEntries.append(\"lead_source\", utmParams?.utmLeadSource || \"Online\");\\n                formEntries.append(\"lead_source_lv1\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"lead_source_lv2\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"lead_source_lv3\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                formEntries.append(\"00N90000003gjYi\", utmParams?.utmSourceLvl1 || \"https://executivecentre.ae/\");\\n                formEntries.append(\"00N6F00000EDfGh\", utmParams?.utmSourceLvl2 || \"Organic Traffic\");\\n                formEntries.append(\"00N6F00000EDfGm\", utmParams?.utmSourceLvl3 || \"Arena\");\\n                // formEntries.append(\"retURL\", \"https://executivecentre.ae/\"); // Redirect after submission\\n\\n\\n\\n                // Additional fields can be added here as needed (like Interest, etc.)\\n                formEntries.append(\"00N90000003ggrg\", data.get(\"interest\"));  // Replace with your custom field API name\\n                formEntries.append(\\'00N6F00000XRBa0\\', data.get(\"interest\"))\\n                formEntries.append(\"00N90000003hH7z\", data.get(\"message\"));\\n                formEntries.append(\"Interested_Services__c\", interestedService || \"\");\\n                formEntries.append(\"00N90000003gh5e\", \\'United Arab Emirates\\');\\n                formEntries.append(\"00N90000003gh5a\", \\'Dubai\\');\\n                formEntries.append(\"debug\", \"1\");\\n                formEntries.append(\"debugEmail\", \"tapiwa@arenacapital.com\");\\n                if (phoneInput.isValidNumber()) {\\n                    info.style.display = \"none\";\\n\\n                    // Send form data to Salesforce Web-to-Lead\\n\\n                    const salesforceRequest = fetch(\"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\", {\\n                        method: \"POST\",\\n                        headers: {\\n                            \"Content-Type\": \"application/x-www-form-urlencoded\",\\n                        },\\n                        body: formEntries.toString()\\n                    });\\n\\n                    // Zapier request (using JSON)\\n\\n                    const zapierRequest = fetch(\"https://hooks.zapier.com/hooks/catch/4438683/3r1ku2v/\", {\\n                        method: \"POST\",\\n                        // headers: {\\n                        //     \"Content-Type\": \"application/json\",\\n                        // },\\n                        body: formEntries\\n                    });\\n\\n                    Promise.all([salesforceRequest, zapierRequest])\\n                        .then(responses => {\\n                            const salesforceResponse = responses[0];\\n                            const zapierResponse = responses[1];\\n\\n                            if (salesforceResponse.ok || zapierResponse.status) {\\n                                // Redirect to thank you page after both submissions succeed\\n                                // console.log(salesforceResponse)\\n                                // console.log(zapierResponse)\\n                                parent.window.location.href = \"/thank-you\";\\n                            } else {\\n                                MainError.style.display = \"flex\"\\n                            }\\n                        })\\n                        .catch(function (error) {\\n                            console.log(error)\\n                            parent.window.location.href = \"/thank-you\";\\n                            console.error(\"An error occurred during form submission:\", error);\\n                        })\\n                        .finally(function () {\\n                            // Hide the loader icon and re-enable the button\\n                            buttonText.style.display = \"inline\";\\n                            loaderIcon.style.display = \"none\";\\n                            submitButton.disabled = false;\\n                        });\\n                } else if (!phoneInputField.value.trim()) {\\n                    error.style.display = \"\";\\n                    const errMsg = \"Phone number is required\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                } else {\\n                    const errorCode = phoneInput.getValidationError();\\n                    error.style.display = \"\";\\n                    const errMsg = errorMap[errorCode] || \"Invalid number\";\\n                    error.innerHTML = errMsg;\\n                    submitButton.disabled = false;\\n                    buttonText.style.display = \"inline\";\\n                    loaderIcon.style.display = \"none\";\\n                }\\n            });\\n            // \\n        } else {\\n            // If phoneInputField is not available immediately, check again after 3 seconds\\n            setTimeout(initializeScript, 3000);\\n        }\\n    }\\n\\n\\n    function reloadOnPageChange() {\\n        function addPushStateListener(listener) {\\n            if (!Proxy) return;\\n            window.history.pushState = new Proxy(window.history.pushState, {\\n                apply: (target, thisArg, argArray) => {\\n                    target.apply(thisArg, argArray);\\n                    listener();\\n                },\\n            });\\n        }\\n\\n        addPushStateListener(() => {\\n            initializeScript();\\n        });\\n    }\\n\\n    function getUTMParameters() {\\n        const urlParamsForm = new URLSearchParams(window.location.search);\\n\\n        // Use URL parameters first, fallback to sessionStorage if not available\\n        const utmLeadSource = urlParamsForm.get(\\'utm_lead_source\\') || sessionStorage.getItem(\\'utm_lead_source\\');\\n        const utmSourceLvl1 = urlParamsForm.get(\\'utm_source_lvl_1\\') || sessionStorage.getItem(\\'utm_source_lvl_1\\');\\n        const utmSourceLvl2 = urlParamsForm.get(\\'utm_source_lvl_2\\') || sessionStorage.getItem(\\'utm_source_lvl_2\\');\\n        const utmSourceLvl3 = urlParamsForm.get(\\'utm_source_lvl_3\\') || sessionStorage.getItem(\\'utm_source_lvl_3\\');\\n        const gadSource = urlParamsForm.get(\\'gad_source\\') || sessionStorage.getItem(\\'gad_source\\');\\n        const gclid = urlParamsForm.get(\\'gclid\\') || sessionStorage.getItem(\\'gclid\\');\\n\\n        return {\\n            utmLeadSource,\\n            utmSourceLvl1,\\n            utmSourceLvl2,\\n            utmSourceLvl3,\\n            gadSource,\\n            gclid\\n        };\\n    }\\n\\n</script>\\n\\n\\n<script>\\n    // Function to check and add the class\\n\\n    window.addEventListener(\\'load\\', function () {\\n        // Call the function initially\\n\\n\\n        function checkAndInitialize() {\\n            if (typeof initializeScript === \"function\") {\\n                initializeScript();\\n                console.log(\\'here\\')\\n            } else {\\n                // If initializeScript doesn\\'t exist, wait for 2 seconds and check again\\n                setTimeout(checkAndInitialize, 1000);\\n            }\\n        }\\n        let previousRoute = window.location.pathname;\\n\\n        setInterval(() => {\\n            const currentRoute = window.location.pathname;\\n            if (currentRoute !== previousRoute) {\\n                // Route has changed\\n                previousRoute = currentRoute;\\n                if (currentRoute === \"/\") {\\n                    console.log(\\'go t home\\')\\n                    checkAndInitialize();\\n                }\\n            }\\n        }, 1000);\\n        initializeScript();\\n\\n    })\\n\\n\\n\\n</script>\\n\\n',style:{height:\"100%\",width:\"100%\"}}},baseVariant,gestureVariant)})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-OyFHg.framer-1i8gos3, .framer-OyFHg .framer-1i8gos3 { display: block; }\",\".framer-OyFHg.framer-xl8r2v { align-content: flex-start; align-items: flex-start; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: auto; padding: 0px; position: relative; width: 700px; }\",\".framer-OyFHg .framer-1g10pms-container { flex: 1 0 0px; height: auto; position: relative; width: 1px; }\",\".framer-OyFHg.framer-v-5sv5d4.framer-xl8r2v { height: 703px; width: 497px; }\",\".framer-OyFHg.framer-v-5sv5d4 .framer-1g10pms-container, .framer-OyFHg.framer-v-ct0ast.framer-xl8r2v { height: 700px; }\",\".framer-OyFHg.framer-v-repjiv.framer-xl8r2v { height: 741px; width: min-content; }\",\".framer-OyFHg.framer-v-repjiv .framer-1g10pms-container { flex: none; height: 718px; width: 408px; }\",\".framer-OyFHg.framer-v-ct0ast .framer-1g10pms-container { height: 690px; }\",\".framer-OyFHg.framer-v-owbw1y.framer-xl8r2v { height: 782px; width: 499px; }\",\".framer-OyFHg.framer-v-owbw1y .framer-1g10pms-container { height: 767px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 549\n * @framerIntrinsicWidth 700\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"zZoXT8YJ3\":{\"layout\":[\"fixed\",\"fixed\"]},\"y6iJigdB5\":{\"layout\":[\"fixed\",\"auto\"]},\"VvKr7vptr\":{\"layout\":[\"auto\",\"fixed\"]},\"qpES8QavW\":{\"layout\":[\"fixed\",\"fixed\"]},\"MhE5PqvWD\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerecdawc0L6=withCSS(Component,css,\"framer-OyFHg\");export default Framerecdawc0L6;Framerecdawc0L6.displayName=\"Custom Serviced Offices Form\";Framerecdawc0L6.defaultProps={height:549,width:700};addPropertyControls(Framerecdawc0L6,{variant:{options:[\"LT7MjEmhx\",\"zZoXT8YJ3\",\"y6iJigdB5\",\"VvKr7vptr\",\"qpES8QavW\",\"MhE5PqvWD\"],optionTitles:[\"Variant 1\",\"Mobile\",\"Arabic Desktop\",\"Arabic Mobile\",\"Serviced Offices Contact Us\",\"Serviced Offices Contact Us Mobile\"],title:\"Variant\",type:ControlType.Enum}});addFonts(Framerecdawc0L6,[{explicitInter:true,fonts:[]},...EmbedFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerecdawc0L6\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"700\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"zZoXT8YJ3\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"y6iJigdB5\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"VvKr7vptr\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"qpES8QavW\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"MhE5PqvWD\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"549\",\"framerAutoSizeImages\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ecdawc0L6.map"],"mappings":"0XACgzB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAA76B,IAA4L,IAAkE,IAA4B,IAAsI,CAAM,EAAW,EAAS,EAAM,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,EAAS,EAAO,OAAOC,EAAe,CAAO,EAAwB,CAAC,iBAAiB,YAAY,gBAAgB,YAAY,qCAAqC,YAAY,8BAA8B,YAAY,YAAY,YAAY,OAAO,YAAY,CAAO,GAAU,CAAC,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,QAAQ,EAAwB,EAAM,UAAU,EAAM,SAAS,YAAY,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAAC,EAAM,iBAAwB,EAAS,KAAK,IAAI,CAUz4D,EAAgB,EAVy5D,EAAiB,SAAS,EAAM,EAAI,CAAC,IAAM,EAAYC,EAAO,KAAK,CAAO,EAAW,GAAK,EAAkB,EAAgBC,GAAa,CAAM,CAAC,eAAa,aAAW,GAAe,CAAyB,GAAsB,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,GAAG,GAAW,EAAS,EAAM,CAAM,CAAC,cAAY,aAAW,sBAAoB,kBAAgB,iBAAe,YAAU,kBAAgB,aAAW,YAAU,EAAgB,CAAC,aAAW,eAAe,YAAY,IAAI,EAAW,UAAQ,oBAAkB,CAAC,CAAO,EAAiB,EAAuB,EAAM,EAAS,CAAsC,EAAkB,EAAG,EAA2C,CAAC,OAAoB,EAAK,EAAY,CAAC,GAAG,GAAU,EAAgB,SAAsB,EAAK,EAAS,CAAC,QAAQ,EAAS,QAAQ,GAAM,SAAsB,EAAK,EAAW,CAAC,MAAM,EAAY,SAAsB,EAAK,EAAO,IAAI,CAAC,GAAG,EAAU,GAAG,EAAgB,UAAU,EAAG,EAAkB,gBAAgB,EAAU,EAAW,CAAC,mBAAmB,YAA6B,mBAAiB,SAAS,YAAY,IAAI,EAAW,MAAM,CAAC,gBAAgB,qBAAqB,GAAG,EAAM,CAAC,GAAG,EAAqB,CAAC,UAAU,CAAC,mBAAmB,qCAAqC,CAAC,UAAU,CAAC,mBAAmB,8BAA8B,CAAC,UAAU,CAAC,mBAAmB,gBAAgB,CAAC,UAAU,CAAC,mBAAmB,iBAAiB,CAAC,UAAU,CAAC,mBAAmB,SAAS,CAAC,CAAC,EAAY,EAAe,CAAC,SAAsB,EAAK,EAA0B,CAAC,SAAsB,EAAK,EAA8B,CAAC,UAAU,2BAA2B,iBAAiB,GAAK,iBAAiB,GAAsB,mBAAiB,SAAS,sBAAsB,OAAO,YAAY,kBAAkB,GAAK,QAAQ,YAAY,SAAsB,EAAK,EAAM,CAAC,OAAO,OAAO,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA8z6B,GAAG,YAAY,SAAS,YAAY,OAAO,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,KAAK,OAAO,IAAI,GAAG,MAAM,OAAO,KAAK,EAAE,GAAG,EAAqB,CAAC,UAAU,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAk/7B,MAAM,CAAC,OAAO,OAAO,MAAM,OAAO,CAAC,CAAC,UAAU,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAk/7B,MAAM,CAAC,OAAO,OAAO,MAAM,OAAO,CAAC,CAAC,UAAU,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAu/8B,MAAM,CAAC,OAAO,OAAO,MAAM,OAAO,CAAC,CAAC,UAAU,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAq/8B,CAAC,UAAU,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0r6B,MAAM,CAAC,OAAO,OAAO,MAAM,OAAO,CAAC,CAAC,CAAC,EAAY,EAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAG,CAAW,CAAC,kFAAkF,kFAAkF,sQAAsQ,2GAA2G,+EAA+E,0HAA0H,qFAAqF,uGAAuG,6EAA6E,+EAA+E,6EAA6E,CAUzrxL,eAAe,GAAgB,EAAgB,EAAgB,YAAY,+BAA+B,EAAgB,aAAa,CAAC,OAAO,IAAI,MAAM,IAAI,CAAC,EAAoB,EAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,CAAC,aAAa,CAAC,YAAY,SAAS,iBAAiB,gBAAgB,8BAA8B,qCAAqC,CAAC,MAAM,UAAU,KAAK,EAAY,KAAK,CAAC,CAAC,CAAC,EAAS,EAAgB,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,GAAG,EAAW,CAAC,CAAC,6BAA6B,GAAK,CAAC"}