{"id":5330,"date":"2026-05-24T00:09:38","date_gmt":"2026-05-24T00:09:38","guid":{"rendered":"https:\/\/casabonitayeficiente.com\/?page_id=5330"},"modified":"2026-06-15T21:45:28","modified_gmt":"2026-06-15T21:45:28","slug":"ebook-001-gratuito","status":"publish","type":"page","link":"https:\/\/casabonitayeficiente.com\/en\/ebook-001-gratuito\/","title":{"rendered":"00 ebook gratuito (landing Page)"},"content":{"rendered":"\n<div class=\"wp-block-stackable-columns alignfull stk-block-columns stk-block stk-763009c\" data-block-id=\"763009c\"><style>.stk-763009c {max-width:1077px !important;min-width:auto !important;}<\/style><div class=\"stk-row stk-inner-blocks stk-block-content stk-content-align stk-763009c-column\">\n<div class=\"wp-block-stackable-column stk-block-column stk-column stk-block stk-9d265f7\" data-v=\"4\" data-block-id=\"9d265f7\"><div class=\"stk-column-wrapper stk-block-column__content stk-container stk-9d265f7-container stk--no-background stk--no-padding\"><div class=\"stk-block-content stk-inner-blocks stk-9d265f7-inner-blocks\">\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-91a52fc\" data-block-id=\"91a52fc\"><style>.stk-91a52fc .stk-img-wrapper{width:354px !important;}<\/style><figure><span class=\"stk-img-wrapper stk-image--shape-stretch\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-5579\" src=\"https:\/\/casabonitayeficiente.com\/wp-content\/uploads\/2026\/06\/Logo-Casabonitayeficiente-1-2-e1781553198152.webp\" width=\"500\" height=\"184\" alt=\"logo casabonitayeficiente 2\" srcset=\"https:\/\/casabonitayeficiente.com\/wp-content\/uploads\/2026\/06\/Logo-Casabonitayeficiente-1-2-e1781553198152.webp 500w, https:\/\/casabonitayeficiente.com\/wp-content\/uploads\/2026\/06\/Logo-Casabonitayeficiente-1-2-e1781553198152-300x110.webp 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/span><\/figure><\/div>\n<\/div><\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-stackable-columns alignfull stk-block-columns stk-block stk-45a31ce stk-block-background\" data-block-id=\"45a31ce\"><style>.stk-45a31ce {background-color:#faf5ec !important;min-height:var(--stk--preset--block-height--none, 0px) !important;padding-top:var(--stk--preset--spacing--30, 0.67rem) !important;padding-right:var(--stk--preset--spacing--30, 0.67rem) !important;padding-bottom:var(--stk--preset--spacing--30, 0.67rem) !important;padding-left:var(--stk--preset--spacing--30, 0.67rem) !important;margin-top:var(--stk--preset--spacing--30, 0.67rem) !important;margin-bottom:0px !important;}.stk-45a31ce:before{background-color:#faf5ec !important;}.stk-45a31ce-column{max-width:903px !important;min-width:auto !important;--stk-columns-spacing:var(--stk--preset--spacing--30, 0.67rem) !important;--stk-column-gap:var(--stk--preset--spacing--30, 0.67rem) !important;}.stk-45a31ce > .stk-separator__bottom svg{fill:#f0e4d1 !important;}@media screen and (max-width:689px){.stk-45a31ce {margin-bottom:0px !important;}}<\/style><div class=\"stk-row stk-inner-blocks has-text-align-left stk-block-content stk-content-align stk-45a31ce-column\">\n<div class=\"wp-block-stackable-column stk-block-column stk-column stk-block stk-421a164\" data-v=\"4\" data-block-id=\"421a164\"><div class=\"stk-column-wrapper stk-block-column__content stk-container stk-421a164-container stk--no-background stk--no-padding\"><div class=\"stk-block-content stk-inner-blocks stk-421a164-inner-blocks\">\n<div class=\"wp-block-stackable-image stk-block-image stk-block stk-a9d8e92\" data-block-id=\"a9d8e92\"><style>.stk-a9d8e92 .stk-img-wrapper{width:100% !important;height:464px !important;}<\/style><figure><span class=\"stk-img-wrapper stk-image--shape-stretch\"><img loading=\"lazy\" decoding=\"async\" class=\"stk-img wp-image-5368\" src=\"https:\/\/casabonitayeficiente.com\/wp-content\/uploads\/2026\/05\/Diseno-sin-titulo-1-e1779901381675.jpg\" width=\"500\" height=\"750\" alt=\"dise\u00f1o sin t\u00edtulo (1)\"\/><\/span><\/figure><\/div>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"wp-block-stackable-column stk-block-column stk-column stk-block stk-841af91\" data-v=\"4\" data-block-id=\"841af91\"><div class=\"stk-column-wrapper stk-block-column__content stk-container stk-841af91-container stk--no-background stk--no-padding\"><div class=\"stk-block-content stk-inner-blocks stk-841af91-inner-blocks\">\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-5d1ff88\" id=\"transforma-tu-cocina-en-un-espacio-organizado-bonito-y-eficiente-incluso-si-tienes-poco-tiempo\" data-block-id=\"5d1ff88\"><h2 class=\"stk-block-heading__text\">Transforma tu cocina en un espacio organizado, bonito y eficiente\u2026 incluso si tienes poco tiempo<\/h2><\/div>\n\n\n\n<div class=\"wp-block-stackable-text stk-block-text stk-block stk-df0a196\" data-block-id=\"df0a196\"><p class=\"stk-block-text__text\">Descarga GRATIS nuestro \u201c Planeador de Cocina Inteligente\u201d y aprende c\u00f3mo ahorrar tiempo, mantener el orden y obtener herramientas pr\u00e1cticas que realmente facilitan tu vida diaria<\/p><\/div>\n\n\n\n<div class=\"wp-block-stackable-button-group stk-block-button-group stk-block stk-9d59f1b\" data-block-id=\"9d59f1b\"><div class=\"stk-row stk-inner-blocks stk-block-content stk-button-group\">\n<div class=\"wp-block-stackable-button stk-block-button stk-block stk-8bd08c5\" data-block-id=\"8bd08c5\"><style>.stk-8bd08c5 .stk-button{background:#b69541 !important;}<\/style><a class=\"stk-link stk-button stk--hover-effect-darken\" href=\"#plantillas\"><span class=\"stk-button__inner-text\">\u201cQuiero mi Planeador GRATIS\u201d<\/span><\/a><\/div>\n<\/div><\/div>\n<\/div><\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-stackable-columns alignfull stk-block-columns stk-block stk-6fa5c2c\" id=\"plantillas\" data-block-id=\"6fa5c2c\"><style>.stk-6fa5c2c {margin-top:var(--stk--preset--spacing--70, 3.38rem) !important;margin-bottom:var(--stk--preset--spacing--70, 3.38rem) !important;}<\/style><div class=\"stk-row stk-inner-blocks stk-block-content stk-content-align stk-6fa5c2c-column alignwide\">\n<div class=\"wp-block-stackable-column stk-block-column stk-column stk-block stk-beaa3fd\" data-v=\"4\" data-block-id=\"beaa3fd\"><div class=\"stk-column-wrapper stk-block-column__content stk-container stk-beaa3fd-container stk--no-background stk--no-padding\"><div class=\"has-text-align-center stk-block-content stk-inner-blocks stk-beaa3fd-inner-blocks\">\n<div class=\"wp-block-stackable-columns stk-block-columns stk-block stk-30e7ef0\" data-block-id=\"30e7ef0\"><style>.stk-30e7ef0-column{--stk-column-gap:var(--stk--preset--spacing--50, clamp(30px, 5vw, 50px)) !important;}<\/style><div class=\"stk-row stk-inner-blocks stk-block-content stk-content-align stk-30e7ef0-column\">\n<div class=\"wp-block-stackable-column stk-block-column stk-column stk-block stk-c6d3db9\" data-v=\"4\" data-block-id=\"c6d3db9\"><style>.stk-c6d3db9 {border-top-width:0px !important;border-right-width:0px !important;border-bottom-width:0px !important;border-left-width:0px !important;}.stk-c6d3db9-container{background-color:#e5f6f7 !important;border-style:solid !important;border-top-width:0px !important;border-right-width:0px !important;border-bottom-width:0px !important;border-left-width:0px !important;}.stk-c6d3db9-container:before{background-color:#e5f6f7 !important;}<\/style><div class=\"stk-column-wrapper stk-block-column__content stk-container stk-c6d3db9-container stk-hover-parent\"><div class=\"stk-block-content stk-inner-blocks stk-c6d3db9-inner-blocks\">\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-434208c\" id=\"haz-que-tu-cocina-trabaje-para-ti-no-al-reves-te-muestro-algunos-beneficios\" data-block-id=\"434208c\"><style>.stk-434208c {margin-bottom:35px !important;}<\/style><h2 class=\"stk-block-heading__text\">\u201cHaz que tu cocina trabaje para ti, no al rev\u00e9s. Te muestro algunos Beneficios\u201d<\/h2><\/div>\n\n\n\n<div class=\"wp-block-stackable-icon-list stk-block-icon-list stk-block stk-0f8e750\" data-block-id=\"0f8e750\"><style>.stk-0f8e750 .stk-block-icon-list-item__content{margin-inline:0 auto !important;}.stk-0f8e750 ul li, .stk-0f8e750 ol li, .stk-0f8e750 ul li span, .stk-0f8e750 ol li span{font-size:var(--stk--preset--font-size--medium, 20px) !important;}.stk-0f8e750 {min-height:var(--stk--preset--block-height--none, 0px) !important;margin-bottom:35px !important;}@media screen and (max-width:999px){.stk-0f8e750 ul li, .stk-0f8e750 ol li, .stk-0f8e750 ul li span, .stk-0f8e750 ol li span{font-size:var(--stk--preset--font-size--medium, 20px) !important;}}<\/style><svg style=\"display:none\"><defs><g id=\"stk-icon-list__icon-svg-def-0f8e750\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 190 190\"><polygon points=\"173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4\"\/><\/svg><\/g><\/defs><\/svg><ul class=\"stk-block-icon-list__ul stk-block-icon-list--column\">\n<li class=\"wp-block-stackable-icon-list-item stk-block-icon-list-item stk-block stk-c406e9e\" data-block-id=\"c406e9e\"><style>.stk-c406e9e {z-index:-10 !important;}<\/style><div class=\"stk-block-icon-list-item__content\"><span class=\"stk--svg-wrapper\"><div class=\"stk--inner-svg\"><svg aria-hidden=\"true\" width=\"32\" height=\"32\"><use xlink:href=\"#stk-icon-list__icon-svg-def-0f8e750\"><\/use><\/svg><\/div><\/span><span class=\"stk-block-icon-list-item__text\">Beneficio 1. Organiza mejor tus espacios:&nbsp; Aprende c\u00f3mo aprovechar cajones, gabinetes y superficies con soluciones simples y funcionales.<\/span><\/div><\/li>\n<\/ul><\/div>\n\n\n\n<div class=\"wp-block-stackable-icon-list stk-block-icon-list stk-block stk-fd16c0d\" data-block-id=\"fd16c0d\"><style>.stk-fd16c0d .stk-block-icon-list-item__content{margin-inline:0 auto !important;}.stk-fd16c0d {margin-bottom:35px !important;}<\/style><svg style=\"display:none\"><defs><g id=\"stk-icon-list__icon-svg-def-fd16c0d\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 190 190\"><polygon points=\"173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4\"\/><\/svg><\/g><\/defs><\/svg><ul class=\"stk-block-icon-list__ul stk-block-icon-list--column\">\n<li class=\"wp-block-stackable-icon-list-item stk-block-icon-list-item stk-block stk-1c51b2d\" data-block-id=\"1c51b2d\"><style>.stk-1c51b2d .stk-block-icon-list-item__text{font-size:var(--stk--preset--font-size--medium, 20px) !important;}@media screen and (max-width:999px){.stk-1c51b2d .stk-block-icon-list-item__text{font-size:var(--stk--preset--font-size--medium, 20px) !important;}}<\/style><div class=\"stk-block-icon-list-item__content\"><span class=\"stk--svg-wrapper\"><div class=\"stk--inner-svg\"><svg aria-hidden=\"true\" width=\"32\" height=\"32\"><use xlink:href=\"#stk-icon-list__icon-svg-def-fd16c0d\"><\/use><\/svg><\/div><\/span><span class=\"stk-block-icon-list-item__text\">Beneficio 2. Cocina m\u00e1s r\u00e1pido: Descubre utensilios y electrodom\u00e9sticos que ayudan a reducir tiempo y esfuerzo.<\/span><\/div><\/li>\n<\/ul><\/div>\n\n\n\n<div class=\"wp-block-stackable-icon-list stk-block-icon-list stk-block stk-f57c90a\" data-block-id=\"f57c90a\"><style>.stk-f57c90a .stk-block-icon-list-item__content{margin-inline:0 auto !important;}<\/style><svg style=\"display:none\"><defs><g id=\"stk-icon-list__icon-svg-def-f57c90a\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 190 190\"><polygon points=\"173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4\"\/><\/svg><\/g><\/defs><\/svg><ul class=\"stk-block-icon-list__ul stk-block-icon-list--column\">\n<li class=\"wp-block-stackable-icon-list-item stk-block-icon-list-item stk-block stk-c39134b\" data-block-id=\"c39134b\"><style>.stk-c39134b .stk-block-icon-list-item__text{font-size:var(--stk--preset--font-size--medium, 20px) !important;}@media screen and (max-width:999px){.stk-c39134b .stk-block-icon-list-item__text{font-size:var(--stk--preset--font-size--medium, 20px) !important;}}<\/style><div class=\"stk-block-icon-list-item__content\"><span class=\"stk--svg-wrapper\"><div class=\"stk--inner-svg\"><svg aria-hidden=\"true\" width=\"32\" height=\"32\"><use xlink:href=\"#stk-icon-list__icon-svg-def-f57c90a\"><\/use><\/svg><\/div><\/span><span class=\"stk-block-icon-list-item__text\">Beneficio 3. Mant\u00e9n una cocina est\u00e9tica y limpia: Ideas pr\u00e1cticas para lograr una cocina bonita, armoniosa y f\u00e1cil de mantener.<\/span><\/div><\/li>\n<\/ul><\/div>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"wp-block-stackable-column stk-block-column stk-column stk-block stk-b4fb73e\" data-v=\"4\" data-block-id=\"b4fb73e\"><style>.stk-b4fb73e-container{background-color:#b1d0d5 !important;}.stk-b4fb73e-container:before{background-color:#b1d0d5 !important;}<\/style><div class=\"stk-column-wrapper stk-block-column__content stk-container stk-b4fb73e-container stk-hover-parent\"><div class=\"stk-block-content stk-inner-blocks stk-b4fb73e-inner-blocks\">\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-bad53b7\" id=\"a-que-correo-electronico-envio-gratis-tu-planeador\" data-block-id=\"bad53b7\"><style>.stk-bad53b7 {border-top-width:0px !important;border-right-width:0px !important;border-bottom-width:0px !important;border-left-width:0px !important;margin-bottom:0px !important;}<\/style><h2 class=\"stk-block-heading__text\">\u00bfA qu\u00e9 correo electr\u00f3nico env\u00edo GRATIS tu Planeador?<\/h2><\/div>\n\n\n\n<div id=\"mc_embed_shell\">\n      <link href=\"\/\/cdn-images.mailchimp.com\/embedcode\/classic-061523.css\" rel=\"stylesheet\" type=\"text\/css\">\n  <style type=\"text\/css\">\n        #mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 427px;}\n        \/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.\n           We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. *\/\n<\/style><style type=\"text\/css\">\n        #mc-embedded-subscribe-form input[type=checkbox]{display: inline; width: auto;margin-right: 10px;}\n#mergeRow-gdpr {margin-top: 20px;}\n#mergeRow-gdpr fieldset label {font-weight: normal;}\n#mc-embedded-subscribe-form .mc_fieldset{border:none;min-height: 0px;padding-bottom:0px;}\n<\/style>\n<div id=\"mc_embed_signup\">\n    <form action=\"https:\/\/casabonitayeficiente.us16.list-manage.com\/subscribe\/post?u=14ed81900e3cc7f1c19768e05&#038;id=1282c7a15c&#038;v_id=2572&#038;f_id=002a23e1f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" onsubmit=\"setTimeout(function(){ window.location.href='https:\/\/casabonitayeficiente.com\/ebook-001-gratuito\/confirmar-001\/'; }, 1000);\">\n        <div id=\"mc_embed_signup_scroll\">\n            <div class=\"indicates-required\"><span class=\"asterisk\">*<\/span> indica que es obligatorio<\/div>\n            <div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Direcci\u00f3n de correo electr\u00f3nico <span class=\"asterisk\">*<\/span><\/label><input type=\"email\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" required=\"\" value=\"\"><\/div><div class=\"mc-field-group\"><label for=\"mce-FNAME\">Nombre <span class=\"asterisk\">*<\/span><\/label><input type=\"text\" name=\"FNAME\" class=\"required text\" id=\"mce-FNAME\" required=\"\" value=\"\"><\/div><div id=\"mergeRow-gdpr\" class=\"mergeRow gdpr-mergeRow content__gdprBlock mc-field-group\"><div class=\"content__gdpr\"><label>RGPD<\/label><p>Aceptar Politicas de Privacidad y Manejo de Datos<\/p><fieldset class=\"mc_fieldset gdprRequired mc-field-group\" name=\"interestgroup_field\"><label class=\"checkbox subfield\" for=\"gdpr64637\"><input type=\"checkbox\" id=\"gdpr_64637\" name=\"gdpr[64637]\" class=\"gdpr\" value=\"Y\"><span>Politicas de privacidad<\/span><\/label><\/fieldset><p>Puedes cancelar la suscripci\u00f3n en cualquier momento haciendo clic en el enlace que aparece en el pie de p\u00e1gina de nuestros correos electr\u00f3nicos. Para obtener informaci\u00f3n sobre nuestras pr\u00e1cticas de privacidad, visita nuestro sitio web.<\/p><\/div><div class=\"content__gdprLegal\"><p>We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. <a href=\"https:\/\/mailchimp.com\/legal\/terms\" target=\"_blank\" rel=\"noopener\">Learn more<\/a> about Mailchimp&#8217;s privacy practices.<\/p><\/div><\/div>\n        <div id=\"mce-responses\" class=\"clear foot\">\n            <div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"><\/div>\n            <div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"><\/div>\n        <\/div>\n    <div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\">\n        \/* real people should not fill this in and expect good things &#8211; do not remove this or risk form bot signups *\/\n        <input type=\"text\" name=\"b_14ed81900e3cc7f1c19768e05_1282c7a15c\" tabindex=\"-1\" value=\"\">\n    <\/div>\n        <div class=\"optionalParent\">\n            <div class=\"clear foot\">\n                <input type=\"submit\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" value=\"Descarga GRATIS\">\n                <p style=\"margin: 0px auto;\"><a href=\"http:\/\/eepurl.com\/h6tzCPweJ_\" title=\"Mailchimp: marketing por correo electr\u00f3nico f\u00e1cil y divertido\" target=\"_blank\" rel=\"noopener\"><span style=\"display: inline-block; background-color: transparent; border-radius: 4px;\"><img decoding=\"async\" class=\"refferal_badge\" src=\"https:\/\/digitalasset.intuit.com\/render\/content\/dam\/intuit\/mc-fe\/en_us\/images\/intuit-mc-rewards-text-dark.svg\" alt=\"Intuit Mailchimp\" style=\"width: 220px; height: 40px; display: flex; padding: 2px 0px; justify-content: center; align-items: center;\"><\/span><\/a><\/p>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/form>\n<\/div>\n<script type=\"text\/javascript\" src=\"\/\/s3.amazonaws.com\/downloads.mailchimp.com\/js\/mc-validate.js\"><\/script><script type=\"text\/javascript\">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='MMERGE2';ftypes[2]='imageurl';}(jQuery));var $mcj = jQuery.noConflict(true);\n    \/\/ SMS Phone Multi-Country Functionality\n    if(!window.MC) {\n      window.MC = {};\n    }\n    window.MC.smsPhoneData = {\n      defaultCountryCode: 'CO',\n      programs: [],\n      smsProgramDataCountryNames: []\n    };\n\n    function getCountryUnicodeFlag(countryCode) {\n       return countryCode.toUpperCase().replace(\/.\/g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))\n    };\n\n    \/\/ HTML sanitization function to prevent XSS\n    function sanitizeHtml(str) {\n      if (typeof str !== 'string') return '';\n      return str\n        .replace(\/&\/g, '&amp;')\n        .replace(\/<\/g, '&lt;')\n        .replace(\/>\/g, '&gt;')\n        .replace(\/\"\/g, '&quot;')\n        .replace(\/'\/g, '&#x27;')\n        .replace(\/\\\/\/g, '&#x2F;');\n    }\n\n    \/\/ URL sanitization function to prevent javascript: and data: URLs\n    function sanitizeUrl(url) {\n      if (typeof url !== 'string') return '';\n      const trimmedUrl = url.trim().toLowerCase();\n      if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) {\n        return '#';\n      }\n      return url;\n    }\n\n    const getBrowserLanguage = () => {\n      if (!window?.navigator?.language?.split('-')[1]) {\n        return window?.navigator?.language?.toUpperCase();\n      }\n      return window?.navigator?.language?.split('-')[1];\n    };\n\n    \n    function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return null;\n      }\n\n      const browserLanguage = getBrowserLanguage();\n\n      if (browserLanguage) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === browserLanguage,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      if (defaultCountryCode) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === defaultCountryCode,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      return smsProgramData[0];\n    }\n\n    function updateSmsLegalText(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n      \n      const programs = window?.MC?.smsPhoneData?.programs;\n      if (!programs || !Array.isArray(programs)) {\n        return;\n      }\n      \n      const program = programs.find(program => program?.countryCode === countryCode);\n      if (!program || !program.requiredTemplate) {\n        return;\n      }\n    \n      \n      var smsConsentHtmlRenderingFixEnabled = true;\n      \n      const legalTextElement = document.querySelector('#legal-text-' + fieldName);\n      if (!legalTextElement) {\n        return;\n      }\n      \n      const divRegex = new RegExp('<\/?[div][^>]*>', 'gi');\n      const blockWrapperRegex = new RegExp('<\/?(?:div|p)[^>]*>', 'gi');\n      const fullAnchorRegex = new RegExp('<a.*?<\/a>', 'g');\n      const anchorRegex = new RegExp('<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\/a>');\n      \n      const template = smsConsentHtmlRenderingFixEnabled\n        ? program.requiredTemplate\n            .replace(\/<\\\/p>\\s*<p[^>]*>\/gi, ' ')\n            .replace(blockWrapperRegex, '')\n        : program.requiredTemplate.replace(divRegex, '');\n      \n      \n\n      legalTextElement.textContent = '';\n      const parts = template.split(\/(<a href=\".*?\" target=\".*?\">.*?<\\\/a>)\/g);\n      parts.forEach(function(part) {\n        if (!part) {\n          return;\n        }\n        const anchorMatch = part.match(\/<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\\\/a>\/);\n        if (anchorMatch) {\n          const linkElement = document.createElement('a');\n          linkElement.href = sanitizeUrl(anchorMatch[1]);\n          linkElement.target = sanitizeHtml(anchorMatch[2]);\n          linkElement.textContent = sanitizeHtml(anchorMatch[3]);\n          legalTextElement.appendChild(linkElement);\n        } else {\n          legalTextElement.appendChild(document.createTextNode(part));\n        }\n      });\n          \n    }\n\n    function generateDropdownOptions(smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return '';\n      }\n\n      var programs = false\n        ? smsProgramData.filter(function(p, i, arr) {\n            return arr.findIndex(function(q) { return q.countryCode === p.countryCode; }) === i;\n          })\n        : smsProgramData;\n      \n      return programs.map(program => {\n        const flag = getCountryUnicodeFlag(program.countryCode);\n        const countryName = getCountryName(program.countryCode);\n        const callingCode = program.countryCallingCode || '';\n        \/\/ Sanitize all values to prevent XSS\n        const sanitizedCountryCode = sanitizeHtml(program.countryCode || '');\n        const sanitizedCountryName = sanitizeHtml(countryName || '');\n        const sanitizedCallingCode = sanitizeHtml(callingCode || '');\n        return '<option value=\"' + sanitizedCountryCode + '\">' + sanitizedCountryName + ' ' + sanitizedCallingCode + '<\/option>';\n      }).join('');\n    }\n\n    function getCountryName(countryCode) {\n      if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) {\n        for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) {\n          if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) {\n            return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name;\n          }\n        }\n      }\n      return countryCode;\n    }\n\n    function getDefaultPlaceholder(countryCode) {\n      if (!countryCode || typeof countryCode !== 'string') {\n        return '+1 000 000 0000'; \/\/ Default US placeholder\n      }\n      \n            var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die DE-L\u00e4ndervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el c\u00f3digo de pa\u00eds ES +34 antes del n\u00famero de tel\u00e9fono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe v\u00f3\u00f3r het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die CH-L\u00e4ndervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die AT-L\u00e4ndervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n        {\n          countryCode: 'NO',\n          placeholder: '+47 000 00 000',\n          helpText: 'Inkluder NO landskode +47 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'SE',\n          placeholder: '+46 00 000 00 00',\n          helpText: 'Inkludera SE landskod +46 f\u00f6re telefonnumret',\n        },\n        {\n          countryCode: 'DK',\n          placeholder: '+45 00 00 00 00',\n          helpText: 'Inkluder DK landekode +45 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'FI',\n          placeholder: '+358 00 000 0000',\n          helpText: 'Sis\u00e4llyt\u00e4 FI-maakoodi +358 ennen puhelinnumeroa',\n        },\n        {\n          countryCode: 'EE',\n          placeholder: '+372 0000 0000',\n          helpText: 'Lisage EE riigikood +372 telefoninumbri ette',\n        },\n        {\n          countryCode: 'PL',\n          placeholder: '+48 000 000 000',\n          helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu',\n        },\n        {\n          countryCode: 'SK',\n          placeholder: '+421 000 000 000',\n          helpText: 'Pred telef\u00f3nne \u010d\u00edslo uve\u010fte k\u00f3d krajiny SK +421',\n        },\n        {\n          countryCode: 'LV',\n          placeholder: '+371 0000 0000',\n          helpText: 'Iek\u013caujiet LV valsts kodu +371 pirms t\u0101lru\u0146a numura',\n        },\n        {\n          countryCode: 'LT',\n          placeholder: '+370 0000 0000',\n          helpText: '\u012etraukite LT \u0161alies kod\u0105 +370 prie\u0161 telefono numer\u012f',\n        },\n        {\n          countryCode: 'GR',\n          placeholder: '+30 000 000 0000',\n          helpText: '\u03a3\u03c5\u03bc\u03c0\u03b5\u03c1\u03b9\u03bb\u03ac\u03b2\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc \u03c7\u03ce\u03c1\u03b1\u03c2 GR +30 \u03c0\u03c1\u03b9\u03bd \u03b1\u03c0\u03cc \u03c4\u03bf\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc \u03c4\u03b7\u03bb\u03b5\u03c6\u03ce\u03bd\u03bf\u03c5',\n        },\n        {\n          countryCode: 'PT',\n          placeholder: '+351 000 000 000',\n          helpText: 'Inclua o c\u00f3digo de pa\u00eds PT +351 antes do n\u00famero de telefone',\n        },\n        {\n          countryCode: 'HR',\n          placeholder: '+385 00 000 0000',\n          helpText: 'Uklju\u010dite HR pozivni broj dr\u017eave +385 prije telefonskog broja',\n        },\n        {\n          countryCode: 'SI',\n          placeholder: '+386 00 000 000',\n          helpText: 'Vklju\u010dite SI kodo dr\u017eave +386 pred telefonsko \u0161tevilko',\n        },\n        {\n          countryCode: 'IS',\n          placeholder: '+354 000 0000',\n          helpText: 'L\u00e1ttu IS landsn\u00famer +354 fylgja \u00e1 undan s\u00edman\u00famerinu',\n        },\n        {\n          countryCode: 'LU',\n          placeholder: '+352 000 000 000',\n          helpText: 'Incluez le code pays LU +352 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'MC',\n          placeholder: '+377 00 00 00 00',\n          helpText: 'Incluez le code pays MC +377 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'AD',\n          placeholder: '+376 000 000',\n          helpText: 'Incloeu el codi de pa\u00eds AD +376 abans del n\u00famero de tel\u00e8fon',\n        },\n        {\n          countryCode: 'JE',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the JE country code +44 before the phone number',\n        },\n        {\n          countryCode: 'IM',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the IM country code +44 before the phone number',\n        },\n        {\n          countryCode: 'GG',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GG country code +44 before the phone number',\n        },\n        {\n          countryCode: 'AL',\n          placeholder: '+355 00 000 0000',\n          helpText: 'P\u00ebrfshini kodin e vendit AL +355 para numrit t\u00eb telefonit',\n        },\n        {\n          countryCode: 'SM',\n          placeholder: '+378 0000 000000',\n          helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono',\n        },\n        {\n          countryCode: 'FO',\n          placeholder: '+298 000000',\n          helpText: 'Inkluder FO landekode +298 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'MT',\n          placeholder: '+356 0000 0000',\n          helpText: 'Include the MT country code +356 before the phone number',\n        },\n        {\n          countryCode: 'LI',\n          placeholder: '+423 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die LI-L\u00e4ndervorwahl +423 ein',\n        },\n        {\n          countryCode: 'GI',\n          placeholder: '+350 000 00000',\n          helpText: 'Include the GI country code +350 before the phone number',\n        },\n        {\n          countryCode: 'MD',\n          placeholder: '+373 00 000 000',\n          helpText: 'Include\u021bi codul de \u021bar\u0103 MD +373 \u00eenaintea num\u0103rului de telefon',\n        },\n        {\n          countryCode: 'HU',\n          placeholder: '+36 00 000 0000',\n          helpText: 'A telefonsz\u00e1m el\u0151tt adja meg a HU orsz\u00e1gk\u00f3dot +36',\n        },\n        {\n          countryCode: 'NZ',\n          placeholder: '+64 00 000 0000',\n          helpText: 'Include the NZ country code +64 before the phone number',\n        },\n        {\n          countryCode: 'ME',\n          placeholder: '+382 00 000 000',\n          helpText: 'Uklju\u010dite ME pozivni broj dr\u017eave +382 prije telefonskog broja',\n        },\n      ];\n\n      const selectedPlaceholder = mockPlaceholders.find(function(item) {\n        return item &#038;&#038; item.countryCode === countryCode;\n      });\n      \n      return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder;\n    }\n\n    function updatePlaceholder(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n      \n      const phoneInput = document.querySelector('#mce-' + fieldName);\n      if (!phoneInput) {\n        return;\n      }\n      \n      const placeholder = getDefaultPlaceholder(countryCode);\n      if (placeholder) {\n        phoneInput.placeholder = placeholder;\n      }\n    }\n\n    function updateCountryCodeInstruction(countryCode, fieldName) {\n      updatePlaceholder(countryCode, fieldName);\n      \n    }\n\n    function getDefaultHelpText(countryCode) {\n      var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die DE-L\u00e4ndervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el c\u00f3digo de pa\u00eds ES +34 antes del n\u00famero de tel\u00e9fono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe v\u00f3\u00f3r het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die CH-L\u00e4ndervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die AT-L\u00e4ndervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n        {\n          countryCode: 'NO',\n          placeholder: '+47 000 00 000',\n          helpText: 'Inkluder NO landskode +47 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'SE',\n          placeholder: '+46 00 000 00 00',\n          helpText: 'Inkludera SE landskod +46 f\u00f6re telefonnumret',\n        },\n        {\n          countryCode: 'DK',\n          placeholder: '+45 00 00 00 00',\n          helpText: 'Inkluder DK landekode +45 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'FI',\n          placeholder: '+358 00 000 0000',\n          helpText: 'Sis\u00e4llyt\u00e4 FI-maakoodi +358 ennen puhelinnumeroa',\n        },\n        {\n          countryCode: 'EE',\n          placeholder: '+372 0000 0000',\n          helpText: 'Lisage EE riigikood +372 telefoninumbri ette',\n        },\n        {\n          countryCode: 'PL',\n          placeholder: '+48 000 000 000',\n          helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu',\n        },\n        {\n          countryCode: 'SK',\n          placeholder: '+421 000 000 000',\n          helpText: 'Pred telef\u00f3nne \u010d\u00edslo uve\u010fte k\u00f3d krajiny SK +421',\n        },\n        {\n          countryCode: 'LV',\n          placeholder: '+371 0000 0000',\n          helpText: 'Iek\u013caujiet LV valsts kodu +371 pirms t\u0101lru\u0146a numura',\n        },\n        {\n          countryCode: 'LT',\n          placeholder: '+370 0000 0000',\n          helpText: '\u012etraukite LT \u0161alies kod\u0105 +370 prie\u0161 telefono numer\u012f',\n        },\n        {\n          countryCode: 'GR',\n          placeholder: '+30 000 000 0000',\n          helpText: '\u03a3\u03c5\u03bc\u03c0\u03b5\u03c1\u03b9\u03bb\u03ac\u03b2\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc \u03c7\u03ce\u03c1\u03b1\u03c2 GR +30 \u03c0\u03c1\u03b9\u03bd \u03b1\u03c0\u03cc \u03c4\u03bf\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc \u03c4\u03b7\u03bb\u03b5\u03c6\u03ce\u03bd\u03bf\u03c5',\n        },\n        {\n          countryCode: 'PT',\n          placeholder: '+351 000 000 000',\n          helpText: 'Inclua o c\u00f3digo de pa\u00eds PT +351 antes do n\u00famero de telefone',\n        },\n        {\n          countryCode: 'HR',\n          placeholder: '+385 00 000 0000',\n          helpText: 'Uklju\u010dite HR pozivni broj dr\u017eave +385 prije telefonskog broja',\n        },\n        {\n          countryCode: 'SI',\n          placeholder: '+386 00 000 000',\n          helpText: 'Vklju\u010dite SI kodo dr\u017eave +386 pred telefonsko \u0161tevilko',\n        },\n        {\n          countryCode: 'IS',\n          placeholder: '+354 000 0000',\n          helpText: 'L\u00e1ttu IS landsn\u00famer +354 fylgja \u00e1 undan s\u00edman\u00famerinu',\n        },\n        {\n          countryCode: 'LU',\n          placeholder: '+352 000 000 000',\n          helpText: 'Incluez le code pays LU +352 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'MC',\n          placeholder: '+377 00 00 00 00',\n          helpText: 'Incluez le code pays MC +377 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'AD',\n          placeholder: '+376 000 000',\n          helpText: 'Incloeu el codi de pa\u00eds AD +376 abans del n\u00famero de tel\u00e8fon',\n        },\n        {\n          countryCode: 'JE',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the JE country code +44 before the phone number',\n        },\n        {\n          countryCode: 'IM',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the IM country code +44 before the phone number',\n        },\n        {\n          countryCode: 'GG',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GG country code +44 before the phone number',\n        },\n        {\n          countryCode: 'AL',\n          placeholder: '+355 00 000 0000',\n          helpText: 'P\u00ebrfshini kodin e vendit AL +355 para numrit t\u00eb telefonit',\n        },\n        {\n          countryCode: 'SM',\n          placeholder: '+378 0000 000000',\n          helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono',\n        },\n        {\n          countryCode: 'FO',\n          placeholder: '+298 000000',\n          helpText: 'Inkluder FO landekode +298 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'MT',\n          placeholder: '+356 0000 0000',\n          helpText: 'Include the MT country code +356 before the phone number',\n        },\n        {\n          countryCode: 'LI',\n          placeholder: '+423 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die LI-L\u00e4ndervorwahl +423 ein',\n        },\n        {\n          countryCode: 'GI',\n          placeholder: '+350 000 00000',\n          helpText: 'Include the GI country code +350 before the phone number',\n        },\n        {\n          countryCode: 'MD',\n          placeholder: '+373 00 000 000',\n          helpText: 'Include\u021bi codul de \u021bar\u0103 MD +373 \u00eenaintea num\u0103rului de telefon',\n        },\n        {\n          countryCode: 'HU',\n          placeholder: '+36 00 000 0000',\n          helpText: 'A telefonsz\u00e1m el\u0151tt adja meg a HU orsz\u00e1gk\u00f3dot +36',\n        },\n        {\n          countryCode: 'NZ',\n          placeholder: '+64 00 000 0000',\n          helpText: 'Include the NZ country code +64 before the phone number',\n        },\n        {\n          countryCode: 'ME',\n          placeholder: '+382 00 000 000',\n          helpText: 'Uklju\u010dite ME pozivni broj dr\u017eave +382 prije telefonskog broja',\n        },\n      ];\n      \n      if (!countryCode || typeof countryCode !== 'string') {\n        return mockPlaceholders[0].helpText;\n      }\n      \n      const selectedHelpText = mockPlaceholders.find(function(item) {\n          return item &#038;&#038; item.countryCode === countryCode;\n        });\n        \n        return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText;\n    }\n\n    function setDefaultHelpText(countryCode) {\n      const helpTextSpan = document.querySelector('#help-text');\n      if (!helpTextSpan) {\n        return;\n      }\n\n        \n    }\n\n    function updateHelpTextCountryCode(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n      \n      setDefaultHelpText(countryCode);\n    }\n\n    function initializeSmsPhoneDropdown(fieldName) {\n      if (!fieldName || typeof fieldName !== 'string') {\n        return;\n      }\n      \n      const dropdown = document.querySelector('#country-select-' + fieldName);\n      const displayFlag = document.querySelector('#flag-display-' + fieldName);\n      \n      if (!dropdown || !displayFlag) {\n        return;\n      }\n\n      const smsPhoneData = window.MC?.smsPhoneData;\n      if (smsPhoneData &#038;&#038; smsPhoneData.programs &#038;&#038; Array.isArray(smsPhoneData.programs)) {\n        dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs);\n      }\n\n      const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs);\n      if (defaultProgram &#038;&#038; defaultProgram.countryCode) {\n        dropdown.value = defaultProgram.countryCode;\n        \n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag');\n        }\n        \n        updateSmsLegalText(defaultProgram.countryCode, fieldName);\n        updatePlaceholder(defaultProgram.countryCode, fieldName);\n        updateCountryCodeInstruction(defaultProgram.countryCode, fieldName);\n      }\n\n     \n      var smsNotRequiredRemoveCountryCodeEnabled = true;\n      var smsField = Object.values({\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Direcci\u00f3n de correo electr\u00f3nico\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Direcci\u00f3n de correo electr\u00f3nico\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":0,\"field_type\":\"merge\"},\"FNAME\":{\"name\":\"FNAME\",\"label\":\"Nombre\",\"helper_text\":\"\",\"type\":\"text\",\"required\":true,\"audience_field_name\":\"Nombre\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":1,\"field_type\":\"merge\"},\"MMERGE2\":{\"name\":\"MMERGE2\",\"label\":\"Image URL\",\"helper_text\":\"\",\"type\":\"imageurl\",\"required\":false,\"audience_field_name\":\"Image URL\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":2},\"interests_70796\":{\"name\":\"interests_70796\",\"label\":\"Plantilla gratuita\",\"helper_text\":\"\",\"type\":\"checkbox\",\"required\":false,\"choices\":[{\"value\":\"1\",\"label\":\"Acepto la Politica de Privacidad\"}],\"audience_field_name\":\"Plantilla gratuita\",\"enabled\":false,\"order\":null,\"field_type\":\"group\",\"group_id\":70796}}).find(function(f) { return f.name === fieldName &#038;&#038; f.type === 'smsphone'; });\n      var isRequired = smsField ? smsField.required : false;\n      var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n      \n      var phoneInput = document.querySelector('#mce-' + fieldName);\n      if (phoneInput &#038;&#038; defaultProgram.countryCallingCode &#038;&#038; shouldAppendCountryCode) {\n        phoneInput.value = defaultProgram.countryCallingCode;\n      }\n      \n\n\n      displayFlag?.addEventListener('click', function(e) {\n        dropdown.focus();\n      });\n\n\n      dropdown?.addEventListener('change', function() {\n        const selectedCountry = this.value;\n        \n        if (!selectedCountry || typeof selectedCountry !== 'string') {\n          return;\n        }\n        \n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(selectedCountry);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag');\n        }\n\n         \n        const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) {\n          return program &#038;&#038; program.countryCode === selectedCountry;\n        });\n\n        var smsNotRequiredRemoveCountryCodeEnabled = true;\n        var smsField = Object.values({\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Direcci\u00f3n de correo electr\u00f3nico\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Direcci\u00f3n de correo electr\u00f3nico\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":0,\"field_type\":\"merge\"},\"FNAME\":{\"name\":\"FNAME\",\"label\":\"Nombre\",\"helper_text\":\"\",\"type\":\"text\",\"required\":true,\"audience_field_name\":\"Nombre\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":1,\"field_type\":\"merge\"},\"MMERGE2\":{\"name\":\"MMERGE2\",\"label\":\"Image URL\",\"helper_text\":\"\",\"type\":\"imageurl\",\"required\":false,\"audience_field_name\":\"Image URL\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":2},\"interests_70796\":{\"name\":\"interests_70796\",\"label\":\"Plantilla gratuita\",\"helper_text\":\"\",\"type\":\"checkbox\",\"required\":false,\"choices\":[{\"value\":\"1\",\"label\":\"Acepto la Politica de Privacidad\"}],\"audience_field_name\":\"Plantilla gratuita\",\"enabled\":false,\"order\":null,\"field_type\":\"group\",\"group_id\":70796}}).find(function(f) { return f.name === fieldName &#038;&#038; f.type === 'smsphone'; });\n        var isRequired = smsField ? smsField.required : false;\n        var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n        \n        var phoneInput = document.querySelector('#mce-' + fieldName);\n        if (phoneInput &#038;&#038; selectedProgram.countryCallingCode &#038;&#038; shouldAppendCountryCode) {\n          phoneInput.value = selectedProgram.countryCallingCode;\n        }\n        \n        \n        updateSmsLegalText(selectedCountry, fieldName);\n        updatePlaceholder(selectedCountry, fieldName);\n        updateCountryCodeInstruction(selectedCountry, fieldName);\n      });\n    }\n\n    document.addEventListener('DOMContentLoaded', function() {\n      const smsPhoneFields = document.querySelectorAll('[id^=\"country-select-\"]');\n      \n      smsPhoneFields.forEach(function(dropdown) {\n        const fieldName = dropdown?.id.replace('country-select-', '');\n        initializeSmsPhoneDropdown(fieldName);\n      });\n    });\n    <\/script><\/div>\n<\/div><\/div><\/div>\n<\/div><\/div>\n<\/div><\/div><\/div>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Transforma tu cocina en un espacio organizado, bonito y eficiente\u2026 incluso si tienes poco tiempo Descarga GRATIS nuestro \u201c Planeador de Cocina Inteligente\u201d y aprende c\u00f3mo ahorrar tiempo, mantener el orden y obtener herramientas pr\u00e1cticas que realmente facilitan tu vida diaria \u201cQuiero mi Planeador GRATIS\u201d \u201cHaz que tu cocina trabaje para ti, no al rev\u00e9s. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"pages\/template-surecart-blank.php","meta":{"_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_saved":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true,"footnotes":""},"class_list":["post-5330","page","type-page","status-publish","hentry"],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/pages\/5330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/comments?post=5330"}],"version-history":[{"count":76,"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/pages\/5330\/revisions"}],"predecessor-version":[{"id":5607,"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/pages\/5330\/revisions\/5607"}],"wp:attachment":[{"href":"https:\/\/casabonitayeficiente.com\/en\/wp-json\/wp\/v2\/media?parent=5330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}